Old 02-12-2009, 03:09 PM   #1 (permalink)
Junior Member
 
Join Date: Feb 2009
Posts: 1
Default target flash timeline and not URL's

Hi, This is very nice but how would I make it to work within flash, i.e. gotoAndPlay, gotoAndStop, target a label or frame and other things. Thank you.
benrudolph is offline   Reply With Quote
Old 02-14-2009, 02:38 PM   #2 (permalink)
OYXLUSFlash.com Staff Member
 
Adrian's Avatar
 
Join Date: May 2008
Posts: 1,967
Send a message via Yahoo to Adrian Send a message via Skype™ to Adrian
Default

Hi,
In the xml file replace url with the frame number:

Code:
<item label="Super Beatle" url="3"></item>
Now open GenericMenuItem.as and find this block of code:

Code:
    public function onRelease() {
        if (_url_ != "") {
            getURL(_url_, "_self");
        }
    }
replace it with:

Code:
    public function onRelease() {
             _root.gotoAndStop(Number(_url_));
    }
Republish the swf
Adrian is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:55 PM.