This is G o o g l e's cache of http://www.flashsandy.org/forum/lofiversion/index.php/t545.html as retrieved on 4 Aug 2007 03:30:32 GMT.
G o o g l e's cache is the snapshot that we took of the page as we crawled the web.
The page may have changed since that time. Click here for the current page without highlighting.
This cached page may reference images which are no longer available. Click here for the cached text only.
To link to or bookmark this page, use the following url: http://www.google.com/search?q=cache:9pCMZ953B78J:www.flashsandy.org/forum/lofiversion/index.php/t545.html+site:www.flashsandy.org+index.php&hl=en&ct=clnk&cd=52


Google is neither affiliated with the authors of this page nor responsible for its content.
These terms only appear in links pointing to this page: index php

Full Version: gotoAndPlay
dzedward
flash 8, how can i make this tutorial gotoAndPlay a frame, instead of getting a URL. first time user here.
CODE

function setUpUrls(){
    var baseUrl = "http://petitpub.com/labs/media/flash/sandy/";
    urlList[faces[0].getId()] = baseUrl + "transformations.shtml";
    urlList[faces[1].getId()] = "http://www.flashsandy.org/";
    urlList[faces[2].getId()] = baseUrl + "interpolators.shtml";
    urlList[faces[3].getId()] = baseUrl + "skinning.shtml";
    urlList[faces[4].getId()] = baseUrl + "sprites.shtml";
    urlList[faces[5].getId()] = baseUrl + "filters.shtml";
}
function getPage(e:ObjectEvent){
    var id = e.getTarget().getId();
    getUrl(urlList[id],"_blank");
    //trace("getting " + urlList[id]);
}


nevermind, i just needed to define frame numbers as variables.
in case anyone wants to know
CODE

function setUpUrls(){
    var frame1 = 1;
    var frame2 = 2;
    var frame3 = 3;
    var frame4 = 4
    var frame5 = 5;
    var frame6 = 6;
    urlList[faces[0].getId()] = frame1;
    urlList[faces[1].getId()] = frame2;
    urlList[faces[2].getId()] = frame3;
    urlList[faces[3].getId()] = frame4;
    urlList[faces[4].getId()] = frame5;
    urlList[faces[5].getId()] = frame6;
}
function getPage(e:ObjectEvent){
    var id = e.getTarget().getId();
    gotoAndPlay(urlList[id]);
    trace("getting " + urlList[id]);
}
Petit
QUOTE(dzedward @ Jun 5 2007, 02:04 AM) *

flash 8, how can i make this tutorial gotoAndPlay a frame, instead of getting a URL. first time user here.

nevermind, i just needed to define frame numbers as variables.
in case anyone wants to know


blink.gif That's good!
We always want to know, when a problem gets its solution.
Well done, I'd say cool.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2007 Invision Power Services, Inc.