Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Actionscript
Index -> Graphics and Design, Web Design -> Flash MX Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
upthescale




PostPosted: Wed Jun 14, 2006 4:25 pm   Post subject: Actionscript

Hi, i'm fairly new to flash mx actionscript, i made a variable

code:

x=0

x=x+1;


_root.text = x



but the number 1 doesnt start counting up ward, hwo can i adfd a loop to maek it go 1,2,3,4,5.etc...
Sponsor
Sponsor
Sponsor
sponsor
lord_pwnerer




PostPosted: Wed Nov 08, 2006 9:17 pm   Post subject: (No subject)

First, you either will have to have 'x' as an instance name, exported for use in ActionScript. (And I appologize if you have already done this, but you didn't mention it) or, you will have to declare a variable 'x'. Here you merely put

code:

x=0


And please, someone correct me if I'm wrong (and I may very well be), the code should be:

code:

var x = 0
Display posts from previous:   
   Index -> Graphics and Design, Web Design -> Flash MX Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 2 Posts ]
Jump to:   


Style:  
Search: