Fail getting swf animation

3 views
Skip to first unread message

dsirijus

unread,
Sep 14, 2010, 11:04:38 AM9/14/10
to BulkLoader users
Here's extended BulkLoader I'm using http://pastie.org/1158287

Everything works fine, except this little detail with 'counter.swf'.

I'm trying to get it with
Downloader.getLoader().getMovieClip("counter") and add it to stage,
but nothing shows up. In counter.swf is a certain animation, nothing
special.

Also, any tips on extending BulkLoader would be helpful.

Arthur Debert

unread,
Sep 14, 2010, 11:12:06 AM9/14/10
to bulkload...@googlegroups.com
Hi Dsirijus.

>
> I'm trying to get it with
> Downloader.getLoader().getMovieClip("counter") and add it to stage,
> but nothing shows up. In counter.swf is a certain animation, nothing
> special.

It's a bit hard to know how to fix this without more info. The usual suspects:
- set logLevel to info, see if anything else comes up (for example if
the url is wrong)
- Check to see if the request is coming through (e.g. use firebug), is
it loading?
- If it is, is it a visual issue?
var clip : MovieClip = Downloader.getLoader().getMovieClip("counter");
trace(clip)
trace(clip.width)... etc
- Is it a AVM2 movie? If it is you need to fetch content with the
getAVM2... method...


> Also, any tips on extending BulkLoader would be helpful.

There isn't too many BulkLoader especific things to add. All the
general inheritance vs composition considerations do apply. The main
areas where things can get interesting is:
- Capture events from bulkloader (progress, error, complete) and act on it.
- Create different loading types. The test suite has a JSONItem
example that should give you some pointers

Best regards

Reply all
Reply to author
Forward
0 new messages