|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Eval on MX
I have been doing flash actionscripting for a while now...but i have come across a little problem..
I have code in Flash 5, that works fine, but i am recreating a site in flash mx, but some of the functions do not seem to work, its either my bad coding, or some stuff that was allowed in Flash 5, does not seem to work in Flash MX.. i use to have a line in Flash 5 i have a series of buttons, named pcb1, pcb2 pcb3..... and so on.... i have a loop i go through, and do some checks..... and this is the line that is giving me problems... eval("pcb"+leftbtn).gotoAndStop(1) in flash 5 this line works fine, but as soon as i put it in flash mx, it stops working.. I have read up on some stuff, that i need to use this["pcb"+leftbtn].gotoAndStop(1) but this does not seem to work neither.. can some one please help me with this dilemma.. what am i doing wrong!!!! |
|
#2
|
|||
|
|||
|
Where do the clips, pb1, etc... live? In the same timeline as the frame calling that action? If not you will need to path it correctly, for instance if they were on root
_root["pcb"+leftbtn].gotoAndStop(1) or in another clip on root _root.someclip["pcb"+leftbtn].gotoAndStop(1) |
![]() |
| Viewing: Dev Shed Forums > Web Design > Flash Help > Eval on MX |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|