If you are from who likes to work with flash but for some reasons you
have to work with flex, no problem you can add the flex sdk to your
flash archive and you can start to work.
Go to file-> ActionScript settings
Browse flex sdk
Browse for core
And now you're ready to work with it
Create a class and run it:
package {
import flash.display.MovieClip;
[SWF(frameRate="30", backgroundColor="#000000")]
public class Example extends MovieClip {
public function Example() {
// constructor code
init();
}
private function init():void{
trace("Running with flex sdk");
}
}
}
If everything is alright it will display the message: "Running with flex sdk".
Go to file-> ActionScript settings
Browse flex sdk
Browse for core
And now you're ready to work with it
Create a class and run it:
package {
import flash.display.MovieClip;
[SWF(frameRate="30", backgroundColor="#000000")]
public class Example extends MovieClip {
public function Example() {
// constructor code
init();
}
private function init():void{
trace("Running with flex sdk");
}
}
}
If everything is alright it will display the message: "Running with flex sdk".
No comments:
Post a Comment
Note: only a member of this blog may post a comment.