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?
<br><br>Also, getting back to the main part of this thread. Trevor, did you have any suggestions on the syntax of my swfmill xml? I&#39;m curious why it&#39;s not outputting to flash 9 (Flex seems to think it&#39;s an AVM1 movie). I also think that I&#39;m not setting up the frames correctly.
<br><br>Thanks again!<br><br>-- Joel<br><br><div class="gmail_quote">On Nov 12, 2007 11:39 PM, Trevor Burton &lt;<a href="mailto:trevor.burton@virtuefusion.com">trevor.burton@virtuefusion.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
LocalConnection is very easy to set up and utilise. It can be quite slow if you use it heavily - and you wouldn&#39;t be able to send an image over it as such.... it&#39;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&#39;d like to call on the other swf and pass the parameters along with it.
<br><br>The data size limit is documented somewhere - it&#39;s reasonably well-known.<br><br>Something that isn&#39;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&#39;s opened containing your swfs. So if you open a browser window to test your swfs you&#39;ll seei t working, if you then open another browser window it won&#39;t be working. This can cause confusing when you&#39;re testing - you open it in IE and it works, you open it in FireFox and it doesn&#39;t work.... i remember having great fun trying to explain this to a client who was adamant it didn&#39;t work in FireFox, but was caused by this &#39;Security Feature&#39;
<br><div class="Ih2E3d"><br>T<br><br>-------------------------<br>Trevor Burton<br>Flash Developer<br>VirtueFusion<br>14-16 Betterton Street<br>London, WC2H 9AH<br>t: 0207 420 6420<br>m: 07954 239 024<br><br></div><div class="Ih2E3d">
________________________________<br><br>From: <a href="mailto:swfmill-bounces@osflash.org">swfmill-bounces@osflash.org</a> on behalf of Joel Poloney<br></div>Sent: Tue 13/11/2007 04:37<br><div class="Ih2E3d">To: <a href="mailto:swfmill@osflash.org">
swfmill@osflash.org</a><br>Subject: Re: [swfmill] Accessing frames in AS3<br><br><br></div><div><div></div><div class="Wj3C7c">That&#39;s interesting that Adobe doesn&#39;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?
<br><br>I would be loading arbitrary AVM1 swfs in the following manner (from the first post in this thread):<br><br><br><br> &nbsp; &nbsp; &nbsp; &nbsp;I&#39;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&#39;t been successful yet. Is this possible? For example, I want to create a movie with 10 frames, and on each frame there&#39;s an image, text, etc.
<br><br><br>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 :)
<br><br><br>On Nov 12, 2007 8:03 PM, Hudson Ansley &lt;<a href="mailto:hudsonansley@gmail.com">hudsonansley@gmail.com</a>&gt; wrote:<br><br><br> &nbsp; &nbsp; &nbsp; &nbsp;the data size limit was from experience, not sure of the exact number.
<br> &nbsp; &nbsp; &nbsp; &nbsp;Are you loading arbitrary AVM1 swfs or could you recompile them with<br> &nbsp; &nbsp; &nbsp; &nbsp;some added code?<br><br><br><br></div></div><br>_______________________________________________<br>swfmill mailing list<br><a href="mailto:swfmill@osflash.org">
swfmill@osflash.org</a><br><a href="http://osflash.org/mailman/listinfo/swfmill_osflash.org" target="_blank">http://osflash.org/mailman/listinfo/swfmill_osflash.org</a><br><br></blockquote></div><br>