A Flash Developer Resource Site

+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Jan 2001
    Posts
    1
    Hello,

    I've a big problem is there somebody how can help me to solve it.
    I have a HTML Frameset Like this,

    (left.html, framename--> leftFrame) left.swf
    (index.html, framename--> mainFrame) mainmovie.swf
    (right.html, framename--> rightFrame) right.swf

    a button in my flashmovie (in the mainFrame HTML) opens a sliding door in al the three Frames at the same time but in the left and right frames are different flashmovies with a stop action on the first frame, there is also a layer with a movieclip with instancename opendoor. To open the doors the movieclip needs to play on the moment that the button in the mainmovie is pressed. But in te left and right frames the doors are still closed because the stop action.
    What can I do to start the other two flashmovies????

    Here is the script on the button in the mainmovie:

    on (press) {
    getURL ( "left.html", "leftFrame");
    getURL ( "right.html", "rightFrame");
    nextFrame ();
    }

    Please help me to solve this problem

    Thanks


  2. #2
    Senior Member
    Join Date
    Feb 2001
    Posts
    1,835

    not sure whether fscommand can help here but I don't think you can send commands to a movie once it's loaded.

    in the meantime, here's a clunky solution.

    change the 'stop();' frameaction to:

    if(_root.open ne "yes")
    stop();

    Then make two html files 'left.html' and 'left_open.html' with your swf file embedded in both.
    In the first, just load 'left.swf' as you are doing at the moment, in the other load 'left.swf?open=yes'.
    Then in the getURL button action put
    getURL("left_open.html","leftFrame");

    and do the same for the other one. The swf will be cached so it won't have to load before playing but the pages still have to reload so it's a bit clunky as I said...

    hope this makes sense - just ask if the explanation isn't too clear.

    see ya - n.



  3. #3
    Senior Member
    Join Date
    Mar 2001
    Posts
    246
    Originally posted by enemem

    not sure whether fscommand can help here but I don't think you can send commands to a movie once it's loaded.
    You can send quite a few commands to a movie with javascript. Macromedia's got a list of the flashmethods at http://www.macromedia.com/support/fl...hflash_03.html

    I haven't tried it out myself, but I quite sure what martstri wants can be done with fscommand and javascript.

    regards,
    HC

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