A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: _root.gotoAndPlay Help

  1. #1
    Registered User
    Join Date
    Aug 2008
    Posts
    0

    _root.gotoAndPlay Help

    Ok will i made my site a intro and i trying to link it so my main site that is a flash too umm i think i did the link right

    Code:
    on (release) {
    	bb1.useHandCursor = false;
    	_root.gotoAndPlay("/flash/main_v8.swf");
    }
    http://original-gamers.net/intro -- That is the intro page
    http://original-gamers.net/ -- That is the Main Site

    if anyone can help me much <3

  2. #2
    Working On An Online RPG grimm 88's Avatar
    Join Date
    Sep 2007
    Location
    Nowhere
    Posts
    280
    gotoAndPlay takes you to another frame in your SAME movie rather than loading another movie

    if you want to load in your main site and replace your intro, use:

    _root.loadMovie("./flash/main_v8.swf");

    otherwise, if you want to load your ACTUAL html (or whatever) page replacing whatever page you are on then you should use:

    getURL("http://www.yoursite.com/yourpage.htm","_self");

    and if you want it to load a new popup window with your main page, replace "_self" with "_blank"

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