View Full Version : set variable of flash object...how?
yosik
08-29-2003, 06:06 AM
Hi,
I don't quite understand how this works. How does the flash object (or actually the swf file itself) use a variable set in AMS. Ideally, I would like a flash movie to react differently according to a user input.
Thanks
Yossi
Corey
08-29-2003, 06:08 AM
Well let's say in the .swf itself there is actionscript setting a variable, i.e.:
myName = "Corey";
You can then edit that value from AMS simply by setting the value of the flash object variable myName to whatever you like, i.e. "Yosik"...
Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)
yosik
08-30-2003, 04:48 PM
Oh I see, Corey. So you don't have to declare the var value in Flash. just set it in AMS, thus transferring its value to the movie, right?
BTW, are you sure you want to change name from Corey to yosik??! :-)
Corey
08-30-2003, 05:04 PM
/ubbthreads/images/icons/smile.gif There must be a reference to the variable in Flash though, i..e the variable must exist. So for clarification you can't *create* a variable in your Flash movie but you can *set the value* of any variable which already exists.
Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)
yosik
08-31-2003, 03:36 AM
ok. I got it.
Thanks, Corey...as always
Yossi
Corey
08-31-2003, 03:37 AM
/ubbthreads/images/icons/smile.gif BTW Yossi if I waaassss going to change my name it would be to Prairie Como because I am truly the Perry Como of the Canadian prairies. I can put an unsuspecting badger to sleep at 50 paces with my cooing strains (my range for suspicious badgers is currently about half that).
Nothing personal though, Yosik is a fine name too. I would also consider Quiche Richards, Stephen Livingston Seagal, or Swami Davis Jr. as well...
Corey Milner
Creative Director, Indigo Rose Software (http://www.indigorose.com)
yosik
09-01-2003, 04:50 PM
lol
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.