Oh, and... No communication techniques work for embedded clips, they only work for loaded external clips. Embedded clips can't contain any AS code whatsoever.
... . . . . j Joe Berkovitz wrote: > I played with this approach quite a lot a few months back, before giving > up on it. This technique is very limited and there is a lot of data > that will not make it through the AS2/AS3 boundary (there are two > separate AVMs running side by side in the 8.5 player, with totally > different internal data structures). In other words, you can't "set" an > arbitrary object on your property. Strings appear to work OK. > > What's much more sobering is that in both public postings and private > conversations, Adobe has made it clear that this limited communication > is not supported and will probably never be supported. It could stop > working in the next beta and they wouldn't bat an eye. I recommend > using LocalConnection to communicate between the movies, if you want > something that you know you won't have to rip out tomorrow. Maybe you > don't care about that ;) > > You don't have to put an LC in each Flash 8 SWF. You can have a > "dispatcher" SWF that manages the LC communication and talks with the > other Flash SWFs via something in _global. > > It's pretty awful, but there are no good choices here. > > ... . . . . j > > > JesterXL wrote: > >>...whoa... so, if I have an MC inside of the Flash 8 SWF, I can in fact >>run code through a Flash Player 8.5 SWF? Can you post your example >>somewhere, this would be really valuable! >> >>----- Original Message ----- >>*From:* Jason Y. Kwong <mailto:[EMAIL PROTECTED]> >>*To:* flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> >>*Sent:* Wednesday, February 08, 2006 4:42 PM >>*Subject:* Re: [flexcoders] embed a movieclip >> >>Yes, I was able to successfully call a setter property. I put arbitrary >>code in the function and it worked out fine. The only gotcha is that >>the getter/setter must be attached to a MovieClip instance inside the >>SWF. So you have to associate a class with a library MC, place it on >>the stage and give it an instance name. Then in the Flex code: >> >>var swf: MovieClip = MovieClip(myloader.content); >>var mc: MovieClip = MovieClip(swf.getChildByName("myMC")); >>mc.myText = "xxx"; //setter >> >>I'm really hoping there's an easier way...or this gets fixed in the next >>release. >> >> >>On 2/8/06, *JesterXL* <[EMAIL PROTECTED] >><mailto:[EMAIL PROTECTED]>> wrote: >> >> Have you successfully set a getter/setter property? >> >> ----- Original Message ----- >> *From:* Jason Y. Kwong <mailto:[EMAIL PROTECTED]> >> *To:* flexcoders@yahoogroups.com <mailto:flexcoders@yahoogroups.com> >> *Sent:* Wednesday, February 08, 2006 3:08 PM >> *Subject:* Re: [flexcoders] embed a movieclip >> >> Ok, I found something interesting about this. You can actually >> access properties in the loaded swf but trying to call a function >> messes up. The function is actually there, but it isn't recognized >> as a function. For example, my Flash8 swf has a function named >> "callMe". I load this into my Flex2 app and then trace " >> swf.callMe" and I actually get "[object Object]". But if try to >> call it via swf.callMe(), I get a runtime error: Call attempted on >> an object that is not a function. >> >> Ironically, you can actually access getter/setter functions. Since >> they're considered properties, I guess they're good to go. It's a >> useable workaround at this point. >> >> >> On 2/8/06, *Jason Y. Kwong* <[EMAIL PROTECTED] >> <mailto:[EMAIL PROTECTED]>> wrote: >> >> I'm actually trying to do something similar. What I've found so >> far should be able to help you. You need to load the SWF via >> the Loader component and then use its content property: >> >> <mx:Loader id="myloader" source=" SimpleSWF.swf" >> complete="onComplete()"/> >> >> private function onComplete(): void >> { >> var swf: MovieClip = MovieClip(myloader.content); >> swf.gotoAndPlay(...); >> } >> >> My problem is that I can't access additional methods/properties >> that are declared in the loaded swf. I've seen a Flex 1.5 >> example where you can just go ahead and call those methods on >> the MovieClip instance, but that doesn't seem to work in Flex >> 2. I've tried casting it to an Object to get around the >> compiler, but I just end up with a runtime error. >> >> >> >> On 2/8/06, *nacho* < [EMAIL PROTECTED] >> <mailto:[EMAIL PROTECTED]>> wrote: >> >> what I want to do is load a .SWF file and control the >> timeline of this movieclip, with gotoAndPlay, etc... >> but i don't know how to load it >> >> >> >> >> >> -- >> Flexcoders Mailing List >> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt >> Search Archives: >> http://www.mail-archive.com/flexcoders%40yahoogroups.com >> >> >> >> SPONSORED LINKS >> Web site design development >> >> <http://groups.yahoo.com/gads?t=ms&k=Web+site+design+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ> >> Computer software development >> >> <http://groups.yahoo.com/gads?t=ms&k=Computer+software+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw> >> Software design and development >> >> <http://groups.yahoo.com/gads?t=ms&k=Software+design+and+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ> >> >> Macromedia flex >> >> <http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=OO6nPIrz7_EpZI36cYzBjw> >> Software development best practice >> >> <http://groups.yahoo.com/gads?t=ms&k=Software+development+best+practice&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=f89quyyulIDsnABLD6IXIw> >> >> >> >> ------------------------------------------------------------------------ >> YAHOO! GROUPS LINKS >> >> * Visit your group "flexcoders >> <http://groups.yahoo.com/group/flexcoders>" on the web. >> >> * To unsubscribe from this group, send an email to: >> [EMAIL PROTECTED] >> <mailto:[EMAIL PROTECTED]> >> >> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of >> Service <http://docs.yahoo.com/info/terms/> . >> >> >> ------------------------------------------------------------------------ >> >> >> >> >>-- >>Flexcoders Mailing List >>FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt >>Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com >> >> >> >>SPONSORED LINKS >>Web site design development >><http://groups.yahoo.com/gads?t=ms&k=Web+site+design+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ> >> >> Computer software development >><http://groups.yahoo.com/gads?t=ms&k=Computer+software+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw> >> >> Software design and development >><http://groups.yahoo.com/gads?t=ms&k=Software+design+and+development&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ> >> >> >>Macromedia flex >><http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=OO6nPIrz7_EpZI36cYzBjw> >> >> Software development best practice >><http://groups.yahoo.com/gads?t=ms&k=Software+development+best+practice&w1=Web+site+design+development&w2=Computer+software+development&w3=Software+design+and+development&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=166&.sig=f89quyyulIDsnABLD6IXIw> >> >> >> >> >>------------------------------------------------------------------------ >>YAHOO! GROUPS LINKS >> >> * Visit your group "flexcoders >> <http://groups.yahoo.com/group/flexcoders>" on the web. >> >> * To unsubscribe from this group, send an email to: >> [EMAIL PROTECTED] >> <mailto:[EMAIL PROTECTED]> >> >> * Your use of Yahoo! Groups is subject to the Yahoo! Terms of >> Service <http://docs.yahoo.com/info/terms/>. >> >> >>------------------------------------------------------------------------ >> > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com > Yahoo! Groups Links > > > > > > > > > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/