A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: pass variable from 1 swf to another swf on the same html page? help!

  1. #1
    Senior Member
    Join Date
    Jun 2002
    Posts
    102

    pass variable from 1 swf to another swf on the same html page? help!

    I have 2 swf. I do not want B.swf to load until A.swf get the the certain point. They both are on the same html page.

    Is there a way I could pass the variable (say if I send a _global in A.swf) from one swf to another if they are on the same html page?

    thank you so much!
    *!* I really need some help *!*

  2. #2
    Senior Member
    Join Date
    Jun 2002
    Posts
    102
    I have tried to set

    var movie = window.document.register
    movie.GotoFrame(5);

    in my A.swf (register is the swf I want to tell it to go play frame 5)
    and in html code, I have set B.swf to :
    <embed height="40" name="register".....>

    Is this how I set the name of B.swf?

    please help someone..
    *!* I really need some help *!*

  3. #3
    Flash Gordon McUsher's Avatar
    Join Date
    Mar 2001
    Location
    Krautland
    Posts
    1,560
    You can pass variables between flash movies running on the same client
    with the LocalConnection class. you'll find some example code in Flash Help.
    My letters on the F1 key have faded, how are yours today?

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center