SunQuest
           Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 21st, 2003, 10:55 AM
iissa69 iissa69 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 1 iissa69 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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!!!!

Reply With Quote
  #2  
Old August 24th, 2003, 05:21 PM
freddydoesphp freddydoesphp is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jul 2000
Posts: 669 freddydoesphp User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
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)

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Eval on MX


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

IBM developerWorks




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway