rco
Tabini
Sent: 18 March 2006 04:06
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Cannot stop loaded movie
Sorry, that was just a bad copy-and-paste job. Moving the listener to
before the clip is loaded doesn't change anything. Good catch, though :)
Marco
Marc Hoffman wrote:
&
Actually, I've confirmed that this is a security limitation. It works
because (probably) your loadTest.swf file is local--try loading up a
file from a remote HTTP server, and then execute the SWF from the
standalone player (not from within Flash). It won't work. I still think
it's a pretty weir
var trgt:MovieClip = _root.createEmptyMovieClip("blabla",1);
var listener:Object = {};
listener.onLoadInit = function(clip:MovieClip){
clip.gotoAndStop(25);
}
var mcl:MovieClipLoader = new MovieClipLoader();
mcl.addListener(listener);
mcl.loadClip("loadTest.swf",trgt);
This worked like a total
Thanks Ian--but no dice. At this point, I'm willing to write this off to
a sandboxing problem, although it makes no sense that you shouldn't be
able to stop a movie that you load, regardless of where it comes from.
I'm sure the folks at Macromedia have thought it through--although,
personally,
Is this a scoping issue? Are you sure that mcClip is defined and
pointing at the right thing inside your function()?
Try
import mx.utils.Delegate;
function onLoadedClip(clip:MovieClip)
{
clip.stop(); // or clip.gotoAndStop(1);
}
var mcl:MovieClipLoader=new MovieClipLoader();
mcl.onLoadInit=D
Thanks Helen--
Still having the same problem though. Here's my code now:
ld = new MovieClipLoader();
url =
ld.onLoadInit = function()
{
mcClip.gotoAndStop (1);
}
ld.loadClip(url, mcClip);
This only works if I publish in Flash 7 compatibility mode with local
access only. If I set it
What Marc said, plus use onLoadInit instead of onLoadComplete. From the
help docs:
"It's important to understand the difference between
MovieClipLoader.onLoadComplete and MovieClipLoader.onLoadInit. The
onLoadComplete event is called after the SWF, JPEG, GIF, or PNG file
loads, but before th
Sorry, that was just a bad copy-and-paste job. Moving the listener to
before the clip is loaded doesn't change anything. Good catch, though :)
Marco
Marc Hoffman wrote:
Try adding the listener to ld before loading the clip.
At 07:07 PM 3/17/2006, you wrote:
To add to the weirdness: this prob
Try adding the listener to ld before loading the clip.
At 07:07 PM 3/17/2006, you wrote:
To add to the weirdness: this problem only presents itself if I
create the project in Flash 8, so I wonder whether I'm hitting my
head against the new security model. Again, any help would be much appreciat
To add to the weirdness: this problem only presents itself if I create
the project in Flash 8, so I wonder whether I'm hitting my head against
the new security model. Again, any help would be much appreciated.
Marco
Marco Tabini wrote:
Hello--
I am trying to control a movie I load from a re
Hello--
I am trying to control a movie I load from a remote location. I've
narrowed down my code to the smallest possible number of lines:
ld = new MovieClipLoader();
ld.loadClip(url, mcClip);
obj = new Object();
obj.onLoadComplete = function()
{
mcClip.gotoAndStop (10);
}
ld.addList
11 matches
Mail list logo