Skip to main content

How to get "local" class

3 replies [Last post]
while_na
Offline
Joined: 2008-07-30
Points: 0

Hello again..:)
somebody know how to get "local" class??
in old javafx :

Text
{
var:me <==???
transform:bind Translate{x:me.currentWidth/2,y:me.currentHeight/2}
}

How about the new ones?
Thanks..

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
alexsch
Offline
Joined: 2007-07-12
Points: 0

Here is a workaround:
[code]
var me:Text;

me = Text {
// use me varibale
}
[/code]

while_na
Offline
Joined: 2008-07-30
Points: 0

Thanks it work.. :)
but i think the older one is more simple.. :)

alexsch
Offline
Joined: 2007-07-12
Points: 0

It is only a workaround.

There is an issue on it: JFXC-427 Replacement syntax for var: self
http://openjfx.java.sun.com/jira/browse/JFXC-427