A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: How to: get one movie to load another movie in an HTML page

  1. #1
    Junior Member
    Join Date
    Jul 2001
    Posts
    4
    Heres my prob:

    i have one .swf running in an HTML frame. I would like to have a button that launches another .swf in a different frame on the same HTML page.

    Any advice?

  2. #2
    Senior Member
    Join Date
    Jun 2001
    Posts
    148
    Heres the action:
    Flash 4:
    On (press)
    getUrl (http://www.url.com/moviename.html,"framename")
    end on

    Flash 5:
    on (release) {
    getURL ("http://www.yoururl.com/moviename.html", "framename");
    }

    Replace the url with the url of the movie's html page. and replace framename with the frames name.

  3. #3
    Junior Member
    Join Date
    Jul 2001
    Posts
    4

    still not working

    thanks for the reply flashtrack, but i still cant seem to get it to work.

    this is what i typed:
    on (release){
    getURL("second.html", "secondframe");
    }

    Where second.html holds the second swf movie and the target frame name is "secondframe" .


    Is there a way to do it vie the loadMovie actionscript??

  4. #4
    Senior Member
    Join Date
    Jun 2001
    Posts
    148
    fundoshi_sensei,
    Do you have an example loaded on the www so I can look at it? It appears that by your script below, it should work properly. If you dont have an example for viewing, what exactly is it doing when you press the button?

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