Old 06-01-2009, 03:18 PM   #1 (permalink)
Junior Member
 
Join Date: Jun 2009
Posts: 1
Default in the xml, apart of the frame number a path

Hi,

I would like to know how can I have in the xml, apart of the frame number a path for a gallery, for example in the xml file <item label="gallery 1" url="10" thepath = "images/gallery1/" ></item> and in the flash file when I click on a item in the menu the flash would go to frame 10 and read a variable with the path for the slide show that is in frame 10.

Thank you.
aris is offline   Reply With Quote
Old 06-02-2009, 11:18 AM   #2 (permalink)
OYXLUSFlash.com Staff Member
 
Adrian's Avatar
 
Join Date: May 2008
Posts: 1,981
Send a message via Yahoo to Adrian Send a message via Skype™ to Adrian
Default

Hi,
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_));
             _root.yourVariable = _node_.attributes.thepath;
    }
Republish the swf
Adrian is offline   Reply With Quote
Reply

Bookmarks

Tags
path, xml

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 09:37 AM.