Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,843

    Grin set variable of flash object...how?

    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

  2. #2
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746

    Re: set variable of flash object...how?

    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

  3. #3
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,843

    Re: set variable of flash object...how?

    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??! :-)

  4. #4
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746

    Re: set variable of flash object...how?

    [img]/ubbthreads/images/icons/smile.gif[/img] 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

  5. #5
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,843

    Re: set variable of flash object...how?

    ok. I got it.
    Thanks, Corey...as always
    Yossi

  6. #6
    Corey is offline Indigo Rose Staff Alumni
    Join Date
    Aug 2002
    Posts
    9,746

    Re: set variable of flash object...how?

    [img]/ubbthreads/images/icons/smile.gif[/img] 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

  7. #7
    Join Date
    Jun 2002
    Location
    Israel
    Posts
    1,843

    Re: set variable of flash object...how?

    lol

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts