Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 6 of 6

Thread: Flash probs

  1. #1
    Join Date
    Jun 2006
    Location
    UK SouthWest
    Posts
    420

    Flash probs

    Hi , im trying to get some interaction between flash and am6.
    All im trying to do at this point is to take a flash movie out of a loop.

    in flash i have got
    Code:
    if (AString=="Go") { gotoAndPlay(100;
    }
    else
    {
    gotoAndPlay(10);
    }
    causing the movie to loop. When i try and set AString from AM6 the flash movie just keeps on looping?
    Last edited by clueless; 01-09-2007 at 11:22 AM.

  2. #2
    Join Date
    Aug 2003
    Location
    Maine, USA
    Posts
    1,695
    Look into fscommand()

  3. #3
    Join Date
    Jun 2006
    Location
    UK SouthWest
    Posts
    420
    ill look into it , thanks.

  4. #4
    Join Date
    Aug 2003
    Location
    Maine, USA
    Posts
    1,695
    If you get lost, try providing a bit more detail.

    How are you sending the variable info to Flash (or vice-versa)? The more detail, the better.

  5. #5
    Join Date
    Jun 2006
    Location
    UK SouthWest
    Posts
    420
    i made a simple movie using 200 frames in flash mx.
    - In the first frame of the flash movie i added the code;
    Code:
    set(AString="loop");
    -i then set another key frame at frame 10 (more of a visual ref)

    -Then at frame 99i added the code;-
    Code:
    if (AString=="Go") { gotoAndPlay(100;
    }
    else
    {
    gotoAndPlay(10);
    }
    ... to the flash movie.
    - i then added the compiled swf to my AM6 project and added a simple button . Using the OnClick event on the button i tried to set the variable "AString" inside the flash movie to "go" to make the movie continue past the condition causing the loop.
    To set the flash variable i used Flash.SetFlashVariable() ;-
    Code:
    Flash.SetFlashVariable("Flash1", "AString", "go");
    But I've been getting no visible results in the flash movie.

    I swapped the value in the Astring variable a few times to check the flash code was working OK and everything seems to be fine.

  6. #6
    Join Date
    Aug 2003
    Location
    Maine, USA
    Posts
    1,695
    Ah, I misinterpreted your first post, try the attachment.

    You have some typos in your code for starters, but could be just from transposing?
    Attached Files

Similar Threads

  1. Replies: 14
    Last Post: 06-24-2003, 04:21 AM
  2. Flash install not successful
    By LegoGirl in forum AutoPlay Media Studio 4.0
    Replies: 4
    Last Post: 05-14-2003, 10:33 PM
  3. HOWTO: Install the Flash Player from a CD-ROM
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-29-2002, 04:05 PM
  4. Replies: 0
    Last Post: 10-04-2002, 10:09 AM

Posting Permissions

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