Go Back   OXYLUS Flash Board > Support > Flash Menus > 2 Levels Accordion Menu

Reply
 
LinkBack Thread Tools Display Modes
Old 03-19-2009, 09:22 PM   #1 (permalink)
Junior Member
 
Join Date: Mar 2009
Posts: 1
Default I want to load external swf and drag it around

Hello,
I want to use the menu to load an external swf and them be able to drag that swf around the stage. I have done it with my own menu with this code on the buttons

on (release) {
nextdepth = _root.getNextHighestDepth()
newclip =_root.attachMovie("shell_work","clip"+nextdepth,n extdepth)
newclip._x = 210
newclip._y = 50
newclip.target_mc.loadMovie("images/work.swf")
}

can I add this code to individual buttons (main/sub)
or do you have a solution?
chonz is offline   Reply With Quote
Old 03-26-2009, 03:55 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

Try using this code:

Code:
menu_mc.onItemClick= function(node:XMLNode, level:Number){ 
_root.loadMovie(node.attributes.clip);
    };
(inside the action script)

- you can replace _root with any other movie clip holder.
- you will have to deal with the drag script


and in the xml file, use this structure:

Code:
<item label="Home" clip="swf_or_image_path_will_go_here" />
Adrian is offline   Reply With Quote
Old 04-13-2009, 07:12 PM   #3 (permalink)
Junior Member
 
Join Date: Apr 2009
Posts: 8
Default

Adrian - I did same as you said and its loading external swf also but in output window i am getting this message "Error opening URL 'file:///D|/Clients/AlKamali/Website%202009/undefined" what is this for and what is the error?
umarmughal 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:54 PM.