Microsoft
Software
Hardware
Network
Question : flash as3
hello experts,
I have 2 simple questions about AS3:
I am trying to make a game in flash.
I have put a movieClip called instace court_mc on the frame1
The I use a Game Class that extends a movieClip
var game:Game = new Game();
from Game I try to access the court_mc movie:
I tried
stage.court_mc
this.court_mc
Not good: so How can I access teh court_mc within the Game class ?
2) from gaem I try to add dynamically the court MovieClip (dynamically)
I try:
stage.addChild(court);
and I have a NULL error.
How can I access the stage (Top level) within the Game class ?
simpleCS4.zip
(10 KB)
(File Type Details)
fla + classes from Flash CS4
Answer : flash as3
Access it:
MovieClip(root).court_mc.v
isible = true; //Sets the movie clip to visible if it's on the root stage
inside the game class, try calling this
MovieClip(root).addChild(c
ourt);
Random Solutions
Laptop running windows vista, SYSTEM process goes to 100% cpu after being accessed by any computer on the network.
Which AV receiver will cover listed requirements?
Replace missing images with default image
Error message when replying, sending, openning email in OWA
How do you create a manual SOAP request to a web service in C#?
Creating a Dynamic Form from SQL database tables in ColdFusion
Adding one cell to the bottom of a named range defined byan OFFSET
What is the extension to bring in a 2007 Excel xlsm workbook into Access 2007?
How do I add rows to a datagridview based upon a For Each statement in VS2008?
Exchange 2007 mail relay