[swfmill] Accessing frames in AS3
Joel Poloney
jpoloney at gmail.com
Mon Nov 12 23:55:20 PST 2007
If I used the LocalConnection, it's main purpose would basically be for
initialization. I would create a LocalConnection class and use it as a proxy
to communicate between AVM1 movieclips and the rest of my Flex project.
So... the most I would be doing is issuing commands across the
LocalConnection that says "goto this frame and stop". Is it slow if you use
1 instance heavily? or is it slow if you use 50 instances very light?
Also, getting back to the main part of this thread. Trevor, did you have any
suggestions on the syntax of my swfmill xml? I'm curious why it's not
outputting to flash 9 (Flex seems to think it's an AVM1 movie). I also think
that I'm not setting up the frames correctly.
Thanks again!
-- Joel
On Nov 12, 2007 11:39 PM, Trevor Burton <trevor.burton at virtuefusion.com>
wrote:
> LocalConnection is very easy to set up and utilise. It can be quite slow
> if you use it heavily - and you wouldn't be able to send an image over it as
> such.... it's more like an rpc setup.... You declare a LocalConnection with
> the same name in both of the swfs and then call the connection and pass the
> name of the function you'd like to call on the other swf and pass the
> parameters along with it.
>
> The data size limit is documented somewhere - it's reasonably well-known.
>
> Something that isn't documented about it (as far as i know) is an issue
> with multiple browser windows. The LocalConnection will only work in the
> first browser window that's opened containing your swfs. So if you open a
> browser window to test your swfs you'll seei t working, if you then open
> another browser window it won't be working. This can cause confusing when
> you're testing - you open it in IE and it works, you open it in FireFox and
> it doesn't work.... i remember having great fun trying to explain this to a
> client who was adamant it didn't work in FireFox, but was caused by this
> 'Security Feature'
>
> T
>
> -------------------------
> Trevor Burton
> Flash Developer
> VirtueFusion
> 14-16 Betterton Street
> London, WC2H 9AH
> t: 0207 420 6420
> m: 07954 239 024
>
> ________________________________
>
> From: swfmill-bounces at osflash.org on behalf of Joel Poloney
> Sent: Tue 13/11/2007 04:37
> To: swfmill at osflash.org
> Subject: Re: [swfmill] Accessing frames in AS3
>
>
> That's interesting that Adobe doesn't formerly announce a data size limit
> like that. Is that a data size limit per transaction? What would happen if I
> tried to send an image over the LocalConnection? would this fail if the
> image was larger than 32k?
>
> I would be loading arbitrary AVM1 swfs in the following manner (from the
> first post in this thread):
>
>
>
> I've been trying to use swfmill to generate a movie in which I can
> access the specific frames (eg: gotoAndStop(2) for frame 2) in AS3. But, I
> haven't been successful yet. Is this possible? For example, I want to create
> a movie with 10 frames, and on each frame there's an image, text, etc.
>
>
> I already have existing swf files (more than I would be willing to
> manually add code to) and I am looking to make this process automated. So,
> the wrapper idea would be favorable. Actually, being able to compile into
> AVM2 would be most favorable... but this LocalConnection wrapper/hack works
> too I suppose :)
>
>
> On Nov 12, 2007 8:03 PM, Hudson Ansley <hudsonansley at gmail.com> wrote:
>
>
> the data size limit was from experience, not sure of the exact
> number.
> Are you loading arbitrary AVM1 swfs or could you recompile them
> with
> some added code?
>
>
>
>
> _______________________________________________
> swfmill mailing list
> swfmill at osflash.org
> http://osflash.org/mailman/listinfo/swfmill_osflash.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/swfmill_osflash.org/attachments/20071112/4e7b621f/attachment-0001.html
More information about the swfmill
mailing list