| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Hi, I have a movie clip in library i named bleu, with linkage identifier bleu. I want to place it on stage at runtime using AS 2.0, here is the code i type: var depth:Number = 1000; _root.attachMovie("bleu", "bleu_mc", depth); bleu_mc._x = bleu_mc._y = 0; Flash gives me error message: "Statement must appear within on/onClipEvent handler" This Three times on each of the three lines of codes. What am i doing wrong? What should i type? Thanks for helping |
|
#2
| |||
| |||
| Quick additional information: it just appears as if any movieclip control command i type in AS panel, flash CS3 gives same error message! Imagine this time i put the clip directly manually on stage, gave it an instance name and just put the code: bleu_mc._x = bleu_mc._y = 0; Same error message!! |
|
#3
| |||
| |||
| Where is your code? The code is fine... but it needs to be on the main timeline. -- Dave - www.offroadfire.com Head Developer http://www.blurredistinction.com Adobe Community Expert http://www.adobe.com/communities/experts/ |
|
#4
| |||
| |||
| Hello Dave, The code is indeed on main timeline... |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.