[flexcoders] swf loader for a ustream flash xml file
Does anyone know or can point me to how to use the swf loader or video loader to display a feed from the xml file of ustream
[flexcoders] swf loader
I am working on a web site and having an issue with flash files. I have a tabbed navigation viewport with a swfloader in the page. I am having an issue with a flash file that I am loading on the page, it is a flash game (asteroids) that isn't contained by the swfloader. The flash game occupies the the entire width of the page. any suggestions Thanks
RE: [flexcoders] swf loader
If a subswf expects to size to the stage then you can clip it, but you can't resize it. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of veritech82 Sent: Sunday, June 14, 2009 5:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] swf loader I am working on a web site and having an issue with flash files. I have a tabbed navigation viewport with a swfloader in the page. I am having an issue with a flash file that I am loading on the page, it is a flash game (asteroids) that isn't contained by the swfloader. The flash game occupies the the entire width of the page. any suggestions Thanks
[flexcoders] SWF Loader is not repainting when I make the with to 0 and again expand it.
Hi, SWF loader is loading the swf file and when I minimize the swf loader by setting its width to 0 and expand it then it is not repainting. Here is the code snippet i am using mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; x=0 y=0 width=100% height=100% paddingTop=0 paddingLeft=0 paddingRight=0 paddingBottom=0 verticalAlign=middle verticalGap=0 mx:Script ![CDATA[ /* Collapse : Expand Left Panel */ public function sizeSearchPanel():void { if (searchView.width=0) { searchView.width=260; } else if (searchView.width=0){ searchView.width=0; } } ]] /mx:Script mx:HBox width=100% height=100% horizontalGap=0 mx:SWFLoader id=searchView source=SearchComponent.swf scaleContent=true x=0 y=0 width=260 height=100%/ mx:VBox id=seperator width=6 height=100% verticalAlign=middle horizontalAlign=center horizontalGap=0 backgroundImage=@Embed(source='resources/togglebar.png') top=2 bottom=2 mx:Button id=btnCloseSearch width=6 height=43 toggle=true selected=false styleName=CollapseLeft click=sizeSearchPanel()/ /mx:VBox mx:Canvas id=tableView width=100% height=100%/ /mx:HBox /mx:VBox There is a expand/collapse panel and SWFloader sits in it and when I expand i set the SWFloader width to 250 and when I close I set the SWF width to 0. Initially the panel will be in the expanded mode and I can see the SWF loaded and rendered. When I minimize and expand again poof... it disappears and doen't render again? Am I doing some thing wrong or is it a bug in SWF loader? Thanks, Srikanth
RE: [flexcoders] SWF Loader is not repainting when I make the with to 0 and again expand it.
Don't set its width/height to 0. It creates a degenerate transform (scaleX/Y = 0) then future scaling is using that scaleFactor. Set it to 1, set visible=false. Or reset scaleX/Y before setting width/height when expanding From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of srikanth_reddy_007 Sent: Thursday, September 04, 2008 3:19 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] SWF Loader is not repainting when I make the with to 0 and again expand it. Hi, SWF loader is loading the swf file and when I minimize the swf loader by setting its width to 0 and expand it then it is not repainting. Here is the code snippet i am using mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; x=0 y=0 width=100% height=100% paddingTop=0 paddingLeft=0 paddingRight=0 paddingBottom=0 verticalAlign=middle verticalGap=0 mx:Script ![CDATA[ /* Collapse : Expand Left Panel */ public function sizeSearchPanel():void { if (searchView.width=0) { searchView.width=260; } else if (searchView.width=0){ searchView.width=0; } } ]] /mx:Script mx:HBox width=100% height=100% horizontalGap=0 mx:SWFLoader id=searchView source=SearchComponent.swf scaleContent=true x=0 y=0 width=260 height=100%/ mx:VBox id=seperator width=6 height=100% verticalAlign=middle horizontalAlign=center horizontalGap=0 backgroundImage=@Embed(source='resources/togglebar.png') top=2 bottom=2 mx:Button id=btnCloseSearch width=6 height=43 toggle=true selected=false styleName=CollapseLeft click=sizeSearchPanel()/ /mx:VBox mx:Canvas id=tableView width=100% height=100%/ /mx:HBox /mx:VBox There is a expand/collapse panel and SWFloader sits in it and when I expand i set the SWFloader width to 250 and when I close I set the SWF width to 0. Initially the panel will be in the expanded mode and I can see the SWF loaded and rendered. When I minimize and expand again poof... it disappears and doen't render again? Am I doing some thing wrong or is it a bug in SWF loader? Thanks, Srikanth
Re: [flexcoders] SWF Loader
Hi Jesse, Would you recommend LocalConnection over ExternalInterface for this type of communication? Just wondering what the pitfalls of using ExternalInterface might be. On 7/12/06, JesterXL [EMAIL PROTECTED] wrote: Sorry, I posted the wrong link earlier: http://weblogs.macromedia.com/pent/archives/2006/07/using_actionscr.cfm - Original Message - From: Jean-Luc ESSER To: flexcoders@yahoogroups.com Sent: Wednesday, July 12, 2006 9:25 AM Subject: Re: [flexcoders] SWF Loader Jester, Does this mean that there is no way of getting a loaded swf to play, pause or stop without using localConnection ? JL - Original Message - From: JesterXL To: flexcoders@yahoogroups.com Sent: Wednesday, July 12, 2006 3:07 PM Subject: Re: [flexcoders] SWF Loader It's an AVM1Movie, not a MovieClip. Unfortunately, this prevents you from talking to the SWF; you have to use LocalConnection, or some other binary socket way.Have you tried with Flash 9 Alpha yet? I haven't had time but I bet this'd work.- Original Message - From: flexnewbie06 [EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Wednesday, July 12, 2006 8:48 AMSubject: [flexcoders] SWF LoaderI am trying to cast swf as MovieClip in Flex 2.0. The SWF wascreated with Flash 8...I get an coercion error...is this somethingthat can not be done or maybe I am doing it incorrectly.I have posted the error and my code. Any Suggestions?TypeError: Error #1034: Type Coercion failed: cannot convertflash.display::[EMAIL PROTECTED] to flash.display.MovieClip.at EPlayer/::test()at EPlayer/___Button1_click()CODE:?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx= http://www.adobe.com/2006/mxmllayout=absolutemx:Script![CDATA[import mx.core.FlexMovieClip;import mx.controls.SWFLoader;function test():void{var myMovieClip:MovieClip = MovieClip(mySWF.content);myMovieClip.gotoAndPlay(1);}]]/mx:Scriptmx:Panel height=406 width=525paddingTop=10 paddingBottom=10 paddingLeft=10 paddingRight=10y=10 x=10mx:SWFLoader id=mySWF source=RFP intro.swf height=338width=459//mx:Panelmx:Button label=test x=300 y=424 click=test();//mx:Application--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Derek Vadneau __._,_.___ -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] SWF Loader
LocalConnection. Why? Browser support. I've seen no reports on Flashcoders, Flexcoders, or blogs about LocalConnection "not working". I've seen a few for ExternalInterface. Usually they are work aroundable, but that's one more thing to worry about in an already diffucult profession. Secondly, relying on the browser makes your code less portable. For example, I can add 5 lines of code in my Flex 1.5 apps, and make them work as executable applications. If you used ExternalInterface, you couldn't do that. Third, ExternalInterface blocks. While this could be viewed as a nice thing by Win32/fat client developers, it is actually a bottleneck. It doesn't scale; meaning, if a process takes 20 seconds, so to will your app not do anything for 20 seconds. LocalConnection is asynchronous, and Flash Developers (and soon to be Flex developers) are used to this style of development: register for an event, do something, act on the response. In the meantime, you can do other stuff like play animations, have the user do other things in the app, etc. The process in the other app has no direct impact on the app making the call. If, however, you're Flex app you are talking to is having a recursion puke... well, that's an indirect impact, but you can't really control that; bad code is bad code. Fix it. Fourth, security. ExternalInterface has more tendrils in the browser, and thus is bound by the weird (weird to me) security restrictions a browser places on it, like iframes, etc. LocalConnection follows the standard rules of Flash Player. Easier to debug, and easier to fix via crossdomain.xml, and underscore's in front of the name. Bottom line, you can still control SWF's that you embed that are Flash 8, they are just stripped of code; they still retain their labels. Additionally, as I've said before, plans by various individuals are in the works for utilizing Socket to communicate to these SWF's. In the meantime, LocalConnection enforced via Interfaces is your best bet. - Original Message - From: Derek Vadneau To: flexcoders@yahoogroups.com Sent: Tuesday, July 18, 2006 12:18 PM Subject: Re: [flexcoders] SWF Loader Hi Jesse,Would you recommend LocalConnection over ExternalInterface for this type of communication? Just wondering what the pitfalls of using ExternalInterface might be. On 7/12/06, JesterXL [EMAIL PROTECTED] wrote: Sorry, I posted the wrong link earlier: http://weblogs.macromedia.com/pent/archives/2006/07/using_actionscr.cfm - Original Message - From: Jean-Luc ESSER To: flexcoders@yahoogroups.com Sent: Wednesday, July 12, 2006 9:25 AM Subject: Re: [flexcoders] SWF Loader Jester, Does this mean that there is no way of getting a loaded swf to play, pause or stop without using localConnection ? JL - Original Message - From: JesterXL To: flexcoders@yahoogroups.com Sent: Wednesday, July 12, 2006 3:07 PM Subject: Re: [flexcoders] SWF Loader It's an AVM1Movie, not a MovieClip. Unfortunately, this prevents you from talking to the SWF; you have to use LocalConnection, or some other binary socket way.Have you tried with Flash 9 Alpha yet? I haven't had time but I bet this'd work.- Original Message - From: "flexnewbie06" [EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Wednesday, July 12, 2006 8:48 AMSubject: [flexcoders] SWF LoaderI am trying to cast swf as MovieClip in Flex 2.0. The SWF wascreated with Flash 8...I get an coercion error...is this somethingthat can not be done or maybe I am doing it incorrectly.I have posted the error and my code. Any Suggestions?TypeError: Error #1034: Type Coercion failed: cannot convertflash.display::[EMAIL PROTECTED] to flash.display.MovieClip.at EPlayer/::test()at EPlayer/___Button1_click()CODE:?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml"layout="absolute"mx:Script![CDATA[import mx.core.FlexMovieClip;import mx.controls.SWFLoader;function test():void{var myMovieClip:MovieClip = MovieClip(mySWF.content);myMovieClip.gotoAndPlay(1);}]]/mx:Scriptmx:Panel height="406" width="525"paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10"y="10" x="10"mx:SWFLoader id="mySWF" source="RFP intro.swf" height="338"width="459"//mx:Panelmx:Button label="test" x="300" y="424" click="test();"//mx:Application--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.c
Re: [flexcoders] SWF Loader
Awesome explanation, Jesse. While I don't completely agree with the blocking issue the others are enough to convince me. Thanks. On 7/18/06, JesterXL [EMAIL PROTECTED] wrote: LocalConnection. Why? Browser support. I've seen no reports on Flashcoders, Flexcoders, or blogs about LocalConnection not working. I've seen a few for ExternalInterface. Usually they are work aroundable, but that's one more thing to worry about in an already diffucult profession. Secondly, relying on the browser makes your code less portable. For example, I can add 5 lines of code in my Flex 1.5 apps, and make them work as executable applications. If you used ExternalInterface, you couldn't do that. Third, ExternalInterface blocks. While this could be viewed as a nice thing by Win32/fat client developers, it is actually a bottleneck. It doesn't scale; meaning, if a process takes 20 seconds, so to will your app not do anything for 20 seconds. LocalConnection is asynchronous, and Flash Developers (and soon to be Flex developers) are used to this style of development: register for an event, do something, act on the response. In the meantime, you can do other stuff like play animations, have the user do other things in the app, etc. The process in the other app has no direct impact on the app making the call. If, however, you're Flex app you are talking to is having a recursion puke... well, that's an indirect impact, but you can't really control that; bad code is bad code. Fix it. Fourth, security. ExternalInterface has more tendrils in the browser, and thus is bound by the weird (weird to me) security restrictions a browser places on it, like iframes, etc. LocalConnection follows the standard rules of Flash Player. Easier to debug, and easier to fix via crossdomain.xml, and underscore's in front of the name. Bottom line, you can still control SWF's that you embed that are Flash 8, they are just stripped of code; they still retain their labels. Additionally, as I've said before, plans by various individuals are in the works for utilizing Socket to communicate to these SWF's. In the meantime, LocalConnection enforced via Interfaces is your best bet. - Original Message - From: Derek Vadneau To: flexcoders@yahoogroups.com Sent: Tuesday, July 18, 2006 12:18 PM Subject: Re: [flexcoders] SWF Loader Hi Jesse,Would you recommend LocalConnection over ExternalInterface for this type of communication? Just wondering what the pitfalls of using ExternalInterface might be. On 7/12/06, JesterXL [EMAIL PROTECTED] wrote: Sorry, I posted the wrong link earlier: http://weblogs.macromedia.com/pent/archives/2006/07/using_actionscr.cfm - Original Message - From: Jean-Luc ESSER To: flexcoders@yahoogroups.com Sent: Wednesday, July 12, 2006 9:25 AM Subject: Re: [flexcoders] SWF Loader Jester, Does this mean that there is no way of getting a loaded swf to play, pause or stop without using localConnection ? JL - Original Message - From: JesterXL To: flexcoders@yahoogroups.com Sent: Wednesday, July 12, 2006 3:07 PM Subject: Re: [flexcoders] SWF Loader It's an AVM1Movie, not a MovieClip. Unfortunately, this prevents you from talking to the SWF; you have to use LocalConnection, or some other binary socket way.Have you tried with Flash 9 Alpha yet? I haven't had time but I bet this'd work.- Original Message - From: flexnewbie06 [EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Wednesday, July 12, 2006 8:48 AMSubject: [flexcoders] SWF LoaderI am trying to cast swf as MovieClip in Flex 2.0. The SWF wascreated with Flash 8...I get an coercion error...is this somethingthat can not be done or maybe I am doing it incorrectly.I have posted the error and my code. Any Suggestions?TypeError: Error #1034: Type Coercion failed: cannot convertflash.display::[EMAIL PROTECTED] to flash.display.MovieClip.at EPlayer/::test()at EPlayer/___Button1_click()CODE:?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx= http://www.adobe.com/2006/mxmllayout=absolutemx:Script![CDATA[import mx.core.FlexMovieClip;import mx.controls.SWFLoader;function test():void{var myMovieClip:MovieClip = MovieClip(mySWF.content);myMovieClip.gotoAndPlay(1);}]]/mx:Scriptmx:Panel height=406 width=525paddingTop=10 paddingBottom=10 paddingLeft=10 paddingRight=10y=10 x=10mx:SWFLoader id=mySWF source=RFP intro.swf height=338width=459//mx:Panelmx:Button label=test x=300 y=424 click=test();//mx:Application--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Derek Vadneau
Re: [flexcoders] SWF Loader
Here's a technote on it: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=749eaa47pss=rss_flex_749eaa47 - Original Message - From: Derek Vadneau To: flexcoders@yahoogroups.com Sent: Tuesday, July 18, 2006 3:47 PM Subject: Re: [flexcoders] SWF Loader Awesome explanation, Jesse. While I don't completely agree with the blocking issue the others are enough to convince me.Thanks. On 7/18/06, JesterXL [EMAIL PROTECTED] wrote: LocalConnection. Why? Browser support. I've seen no reports on Flashcoders, Flexcoders, or blogs about LocalConnection "not working". I've seen a few for ExternalInterface. Usually they are work aroundable, but that's one more thing to worry about in an already diffucult profession. Secondly, relying on the browser makes your code less portable. For example, I can add 5 lines of code in my Flex 1.5 apps, and make them work as executable applications. If you used ExternalInterface, you couldn't do that. Third, ExternalInterface blocks. While this could be viewed as a nice thing by Win32/fat client developers, it is actually a bottleneck. It doesn't scale; meaning, if a process takes 20 seconds, so to will your app not do anything for 20 seconds. LocalConnection is asynchronous, and Flash Developers (and soon to be Flex developers) are used to this style of development: register for an event, do something, act on the response. In the meantime, you can do other stuff like play animations, have the user do other things in the app, etc. The process in the other app has no direct impact on the app making the call. If, however, you're Flex app you are talking to is having a recursion puke... well, that's an indirect impact, but you can't really control that; bad code is bad code. Fix it. Fourth, security. ExternalInterface has more tendrils in the browser, and thus is bound by the weird (weird to me) security restrictions a browser places on it, like iframes, etc. LocalConnection follows the standard rules of Flash Player. Easier to debug, and easier to fix via crossdomain.xml, and underscore's in front of the name. Bottom line, you can still control SWF's that you embed that are Flash 8, they are just stripped of code; they still retain their labels. Additionally, as I've said before, plans by various individuals are in the works for utilizing Socket to communicate to these SWF's. In the meantime, LocalConnection enforced via Interfaces is your best bet. - Original Message - From: Derek Vadneau To: flexcoders@yahoogroups.com Sent: Tuesday, July 18, 2006 12:18 PM Subject: Re: [flexcoders] SWF Loader Hi Jesse,Would you recommend LocalConnection over ExternalInterface for this type of communication? Just wondering what the pitfalls of using ExternalInterface might be. On 7/12/06, JesterXL [EMAIL PROTECTED] wrote: Sorry, I posted the wrong link earlier: http://weblogs.macromedia.com/pent/archives/2006/07/using_actionscr.cfm - Original Message - From: Jean-Luc ESSER To: flexcoders@yahoogroups.com Sent: Wednesday, July 12, 2006 9:25 AM Subject: Re: [flexcoders] SWF Loader Jester, Does this mean that there is no way of getting a loaded swf to play, pause or stop without using localConnection ? JL - Original Message - From: JesterXL To: flexcoders@yahoogroups.com Sent: Wednesday, July 12, 2006 3:07 PM Subject: Re: [flexcoders] SWF Loader It's an AVM1Movie, not a MovieClip. Unfortunately, this prevents you from talking to the SWF; you have to use LocalConnection, or some other binary socket way.Have you tried with Flash 9 Alpha yet? I haven't had time but I bet this'd work.- Original Message - From: "flexnewbie06" [EMAIL PROTECTED]To: flexcoders@yahoogroups.comSent: Wednesday, July 12, 2006 8:48 AMSubject: [flexcoders] SWF LoaderI am trying to cast swf as MovieClip in Flex 2.0. The SWF wascreated with Flash 8...I get an coercion error...is this somethingthat can not be done or maybe I am doing it incorrectly.I have posted the error and my code. Any Suggestions?TypeError: Error #1034: Type Coercion failed: cannot convertflash.display::[EMAIL PROTECTED] to flash.display.MovieClip.at EPlayer/::test()at EPlayer/___Button1_click()CODE:?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml"layout="absolute"mx:Script![CDATA[import mx.core.FlexMovieClip;import mx.controls.SWFLoader;function test():void{var myMovieClip:MovieClip
Re: [flexcoders] SWF Loader
Sorry, I posted the wrong link earlier: http://weblogs.macromedia.com/pent/archives/2006/07/using_actionscr.cfm - Original Message - From: Jean-Luc ESSER To: flexcoders@yahoogroups.com Sent: Wednesday, July 12, 2006 9:25 AM Subject: Re: [flexcoders] SWF Loader Jester, Does this mean that there is no way of getting a loaded swf to play, pause or stop without using localConnection ? JL - Original Message - From: JesterXL To: flexcoders@yahoogroups.com Sent: Wednesday, July 12, 2006 3:07 PM Subject: Re: [flexcoders] SWF Loader It's an AVM1Movie, not a MovieClip. Unfortunately, this prevents you from talking to the SWF; you have to use LocalConnection, or some other binary socket way.Have you tried with Flash 9 Alpha yet? I haven't had time but I bet this'd work.- Original Message - From: "flexnewbie06" flexnewbie06@yahoo.caTo: [EMAIL PROTECTED]ups.comSent: Wednesday, July 12, 2006 8:48 AMSubject: [flexcoders] SWF LoaderI am trying to cast swf as MovieClip in Flex 2.0. The SWF wascreated with Flash 8...I get an coercion error...is this somethingthat can not be done or maybe I am doing it incorrectly.I have posted the error and my code. Any Suggestions?TypeError: Error #1034: Type Coercion failed: cannot convertflash.display::AVM1Movie@27faa81 to flash.display.MovieClip.at EPlayer/::test()at EPlayer/___Button1_click()CODE:?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"layout="absolute"mx:Script![CDATA[import mx.core.FlexMovieClip;import mx.controls.SWFLoader;function test():void{var myMovieClip:MovieClip = MovieClip(mySWF.content);myMovieClip.gotoAndPlay(1);}]]/mx:Scriptmx:Panel height="406" width="525"paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10"y="10" x="10"mx:SWFLoader id="mySWF" source="RFP intro.swf" height="338"width="459"//mx:Panelmx:Button label="test" x="300" y="424" click="test();"//mx:Application--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 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 SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] SWF Loader
I am trying to cast swf as MovieClip in Flex 2.0. The SWF was created with Flash 8...I get an coercion error...is this something that can not be done or maybe I am doing it incorrectly. I have posted the error and my code. Any Suggestions? TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::[EMAIL PROTECTED] to flash.display.MovieClip. at EPlayer/::test() at EPlayer/___Button1_click() CODE: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.core.FlexMovieClip; import mx.controls.SWFLoader; function test():void{ var myMovieClip:MovieClip = MovieClip(mySWF.content); myMovieClip.gotoAndPlay(1); } ]] /mx:Script mx:Panel height=406 width=525 paddingTop=10 paddingBottom=10 paddingLeft=10 paddingRight=10 y=10 x=10 mx:SWFLoader id=mySWF source=RFP intro.swf height=338 width=459/ /mx:Panel mx:Button label=test x=300 y=424 click=test();/ /mx:Application Yahoo! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM ~- -- 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/
Re: [flexcoders] SWF Loader
Hi, There is an example on my site with a Flash 9 SWF. http://www.bridel.org/ Hilary -- On 7/12/06, flexnewbie06 [EMAIL PROTECTED] wrote: I am trying to cast swf as MovieClip in Flex 2.0.The SWF wascreated with Flash 8...I get an coercion error...is this something that can not be done or maybe I am doing it incorrectly.I have posted the error and my code.Any Suggestions?TypeError: Error #1034: Type Coercion failed: cannot convertflash.display::[EMAIL PROTECTED] to flash.display.MovieClip. at EPlayer/::test() at EPlayer/___Button1_click()CODE:?xml version=1.0 encoding=utf-8?mx:Application xmlns:mx= http://www.adobe.com/2006/mxmllayout=absolutemx:Script ![CDATA[ import mx.core.FlexMovieClip; import mx.controls.SWFLoader ; function test():void{ var myMovieClip:MovieClip = MovieClip(mySWF.content); myMovieClip.gotoAndPlay(1); } ]]/mx:Script mx:Panel height=406 width=525paddingTop=10 paddingBottom=10 paddingLeft=10 paddingRight=10y=10 x=10 mx:SWFLoader id=mySWF source=RFP intro.swf height=338width=459//mx:Panelmx:Button label=test x=300 y=424 click=test();/ /mx:Application Yahoo! Groups Sponsor ~--Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM~---Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 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/ -- Hilary-- __._,_.___ -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] SWF Loader
Jester, Does this mean that there is no way of getting a loaded swf to play, pause or stop without using localConnection ? JL - Original Message - From: JesterXL To: flexcoders@yahoogroups.com Sent: Wednesday, July 12, 2006 3:07 PM Subject: Re: [flexcoders] SWF Loader It's an AVM1Movie, not a MovieClip. Unfortunately, this prevents you from talking to the SWF; you have to use LocalConnection, or some other binary socket way.Have you tried with Flash 9 Alpha yet? I haven't had time but I bet this'd work.- Original Message - From: "flexnewbie06" flexnewbie06@yahoo.caTo: [EMAIL PROTECTED]ups.comSent: Wednesday, July 12, 2006 8:48 AMSubject: [flexcoders] SWF LoaderI am trying to cast swf as MovieClip in Flex 2.0. The SWF wascreated with Flash 8...I get an coercion error...is this somethingthat can not be done or maybe I am doing it incorrectly.I have posted the error and my code. Any Suggestions?TypeError: Error #1034: Type Coercion failed: cannot convertflash.display::AVM1Movie@27faa81 to flash.display.MovieClip.at EPlayer/::test()at EPlayer/___Button1_click()CODE:?xml version="1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"layout="absolute"mx:Script![CDATA[import mx.core.FlexMovieClip;import mx.controls.SWFLoader;function test():void{var myMovieClip:MovieClip = MovieClip(mySWF.content);myMovieClip.gotoAndPlay(1);}]]/mx:Scriptmx:Panel height="406" width="525"paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10"y="10" x="10"mx:SWFLoader id="mySWF" source="RFP intro.swf" height="338"width="459"//mx:Panelmx:Button label="test" x="300" y="424" click="test();"//mx:Application--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 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 SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] SWF Loader TitleWindows / Pop ups
I'm not sure if this is a feature or a bug, but something that is driving us mad is the inability for a loaded SWF movie (a Flex created one) not to being able to spawn TitleWindows or any Alerts etc. We have many instances of requiring such functionality - we could always extend your class, but I would rather not have a custom class if there is the possibility of this being a bug. Any thoughts are much appreciated. Thanks very much Owen -- 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 Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.