View Full Version : $50 (US) quick AS job
Ryall
October 9th, 2004, 09:10 PM
Hey everyone...
Basically I have an infinite menu that Ive created, but I need it modified.
I need the AS in it changed so that it can be loaded into another swf and still work, right now it only works as a stand alone movie. There is a tight deadline of within the next 30 hrs or so.
Thanks guys!
Findal
October 9th, 2004, 09:23 PM
Just curious if lockroot would work for you as the quick fix?
Use it in either the previous menu or the clip loading the menu and it may fix your issue.
http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/js/html/wwhelp.htm?href=Part_ASLR.html
MovieClip._lockroot
Availability
Flash Player 7.
Usage
<CODE>my_mc</CODE><CODE>._lockroot</CODE><CODE>:Boolean</CODE></PRE>Description
Property; specifies what _root (http://livedocs.macromedia.com/flash/mx2004/main_7_2/00001649.html#4403391) refers to when a SWF file is loaded into a movie clip. The <CODE>_lockroot</CODE> property is <CODE>undefined</CODE> by default. You can set this property within the SWF file that is being loaded or in the handler that is loading the movie clip.
For example, suppose you have a document called Games.fla that lets a user choose a game to play, and loads the game (for example, Chess.swf) into the <CODE>game_mc</CODE> movie clip. You want to make sure that, if <CODE>_root</CODE> is used in Chess.swf, it still refers to <CODE>_root</CODE> in Chess.swf after being loaded into Games.swf. If you have access to Chess.fla and publish it to Flash Player 7 or later, you can add this statement to Chess.fla on the main Timeline:
this._lockroot = true;</PRE>If you don't have access to Chess.fla (for example, if you are loading Chess.swf from someone else's site into <CODE>chess_mc</CODE>), you can set its<CODE> _lockroot</CODE> property when you load it, as shown below. In this case, Chess.swf can be published for any version of Flash Player, as long as Games.swf is published for Flash Player 7 or later. Place the following ActionScript on the main Timeline:
chess_mc._lockroot = true;</PRE>When calling <CODE>loadMovie()</CODE>, set the MovieClip._lockroot (http://livedocs.macromedia.com/flash/mx2004/main_7_2/00001522.html#3999468) property to <CODE>true</CODE> in the loader movie, as shown in the following code. If you don't set <CODE>_lockroot</CODE> to <CODE>true</CODE> in the loader movie, the loader has access only to its own library, but not the library in the loaded movie:
myMovieClip._lockroot = true;</PRE>
:)
I accept cheques ;)
Findal
www.fndzinz.com (http://www.fndzinz.com)
Ryall
October 9th, 2004, 09:45 PM
nope sorry
Ryall
October 9th, 2004, 10:36 PM
here lost...
Ryall
October 9th, 2004, 11:38 PM
THIS JOB OFFER IS NOW CLOSED
3rdeye
October 9th, 2004, 11:54 PM
oh and I was soo close to solving it! ahahahah and to think I almost spent 2 minutes thinking about... hey I thought you said 30 hours, that's only 2 between post and retraction. talk about a tough boss.. ;)
Findal
October 10th, 2004, 12:05 AM
Oh , I think it just took him 2 and a quater hours how to make lockroot work.
;)
:P
Findal
lostinbeta
October 10th, 2004, 12:54 AM
The lockroot property is for MX 2k4 only. It probably didn't work for him because he uses MX.
Otherwise no problem should have occurred with the lockroot solution.
Voetsjoeba
October 10th, 2004, 08:34 AM
Gah, ****ed timedifference :D
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.