|
|
#1 (permalink) |
|
Junior Member
Join Date: Mar 2009
Posts: 1
|
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? |
|
|
|
|
|
#2 (permalink) |
|
OYXLUSFlash.com Staff Member
|
Try using this code:
Code:
menu_mc.onItemClick= function(node:XMLNode, level:Number){
_root.loadMovie(node.attributes.clip);
};
- 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" /> |
|
|
|
|
|
#3 (permalink) |
|
Junior Member
Join Date: Apr 2009
Posts: 8
|
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?
|
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
All times are GMT. The time now is 04:54 PM.








Linear Mode
