A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: link to htm page and control flash file

  1. #1
    Join Date
    May 2000

    link to htm page and control flash file

    Not really sure how to word this question, but here we go:

    For reasons too long to explain, I have 2 flash files on 2 different htm pages. I am using the getURL function to go back and forth between the two....No problem.
    Here is where it gets tricky, or I can't see the solution if it's right in front of my nose.
    When I link to the other page with the flash file on it, do I have any control over that file? Like this:


    on (release) {
    getURL(diversion.htm, "_self");

    Can I control that movie from within the other movie on another htm page?

    Hope that's clear, and thanks in advance for any help!

  2. #2
    Registered User nunomira's Avatar
    Join Date
    May 2002

    think I understand your question

    you want to control a movie in an html page, from another movie in another html page

    you can't control them directly, can you? because when you try doing something, the movie isn't avaiable.

    If it were avaiable (two movies on the same html page) I guess you could control the other using javascript.

    like this, I think the solution is sending a variable from one page to the other, but to achieve you'll need javascript as well, or a sever side script like php.

    here's the logic:
    you click the button, and send the variable someVariable=whatis:

    on (release) {
    getURL("diversion.htm?someVariable=whatis", "_self");

    then, that variable is sent to the flash movie using flashvarsfor example
    them, the variable is read by the movie, and used:


    Last edited by nunomira; 09-18-2003 at 12:56 PM.

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