Re: [flexcoders] Re: SWF Loader

2006-07-13 Thread Derek Vadneau



Yes, your Flex App needs to be compiled. Not sure how you are running your SWF without an SWF ...

Make sure your Flash SWF is in your Flex project folder. I've also
found that you occasionally need to run twice in order for the Flash
SWF to be copied to the test location (typically the bin folder).

Change your connection name so that it contains an underscore in front: _swf8connector. Check the docs for why that's important.

Also, if you're interested, I've posted an example of getting a SWF9
and a SWF8 to talk via ExternalInterface. I'll make up another example
based on your code.

On 7/13/06, flexnewbie06 <[EMAIL PROTECTED]> wrote:













  



Okay, please don't laugh at this question!  Does my Flex App need to 
be compiled before the LocalConnection will work

I will post my Flash Action Code and my Flex 2 Code...I get no errors 
and the button label does change...the SWF just doesn't stop...it 
does nothing...Can anyone see what I'm doing wrong?

---FLEX Code--


http://www.adobe.com/2006/mxml" 

layout="absolute" initialize="initApp()" 
viewSourceURL="srcview/index.html">
	
height="120"/>
	
click="stopOrResume()"/>
	
		
	


---FlASH Action Script-

var lc:LocalConnection = new LocalConnection();

lc.stopFile = function() {
	stop();
}
lc.resumeFile = function() {
	play();
}
lc.connect("swf8connector");

--- In flexcoders@yahoogroups.com, "Hilary Bridel" <[EMAIL PROTECTED]> 

wrote:
>
> Here is great example (by Peter Ent) of localconnection applied 
between Flex
> and SWF v8
> 

http://weblogs.macromedia.com/pent/archives/2006/07/using_actionscr.cf
m
> Hilary
> 
> --
> 
> 
> On 7/13/06, Derek Vadneau <[EMAIL PROTECTED]> wrote:
> >
> >  You could use ExternalInterface to communicate between the two. 
It's as
> > easy to setup as LocalConnection (maybe easier).
> >
> > Check out this example:
> >
> > http://tracethis.com/wp-
content/playground/SWF9_SWF8_Comms/SWF9_SWF8_Comms.html
> >
> > The content on the left is created by the SWF9 and the content on 
the
> > right is a version 8 SWF. Typing in the top textfield of one side 
updates
> > text in the lower textfield of the other side. And no _javascript_ 
involved.
> >
> > With this you could communicate synchronously, even create 
Proxy/__resolve
> > functionality to make most calls transparent.
> >
> >
> >
> >
> > On 7/12/06, JesterXL <[EMAIL PROTECTED] > wrote:
> > >
> > >Yeah, basically. It's asynchronus communication. It's not as 
cool as
> > > myLoadedSWF.gotoAndPlay(2), but those are the breaks.
> > >
> > >
> > > - Original Message -
> > > From: "flexnewbie06" <[EMAIL PROTECTED] 
40yahoo.ca>>
> > > To: <flexcoders@yahoogroups.com >

> > > Sent: Wednesday, July 12, 2006 9:37 AM
> > > Subject: [flexcoders] Re: SWF Loader
> > >
> > > Thank you for your response...I am not very familiar with
> > > LocalConnection, however I have a general understanding...would 
I
> > > need to create a "sender" lc in my Flex app and add 
a "receiver" lc
> > > in my SWF to make the two communicate?
> > >
> > > --- In flexcoders@yahoogroups.com 
40yahoogroups.com>,
> > > "JesterXL"  wrote:
> > > >
> > > > 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" 
> > > > To: <flexcoders@yahoogroups.com 
40yahoogroups.com>>
> > > > Sent: Wednesday, July 12, 2006 8:48 AM
> > > > Subject: [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
> > >

Re: [flexcoders] Re: SWF Loader

2006-07-13 Thread Derek Vadneau



Crap, forgot the link to the ExternalInterface example:
http://tracethis.com/archives/2006/07/13/swf9-to-swf8-communication-ei-not-lc-part-1/
On 7/13/06, Derek Vadneau <[EMAIL PROTECTED]> wrote:
Yes, your Flex App needs to be compiled. Not sure how you are running your SWF without an SWF ...

Make sure your Flash SWF is in your Flex project folder. I've also
found that you occasionally need to run twice in order for the Flash
SWF to be copied to the test location (typically the bin folder).

Change your connection name so that it contains an underscore in front: _swf8connector. Check the docs for why that's important.

Also, if you're interested, I've posted an example of getting a SWF9
and a SWF8 to talk via ExternalInterface. I'll make up another example
based on your code.

On 7/13/06, flexnewbie06 <
[EMAIL PROTECTED]> wrote:













  



Okay, please don't laugh at this question!  Does my Flex App need to 
be compiled before the LocalConnection will work

I will post my Flash Action Code and my Flex 2 Code...I get no errors 
and the button label does change...the SWF just doesn't stop...it 
does nothing...Can anyone see what I'm doing wrong?

---FLEX Code--


http://www.adobe.com/2006/mxml
" 

layout="absolute" initialize="initApp()" 
viewSourceURL="srcview/index.html">
	
height="120"/>
	
click="stopOrResume()"/>
	
		
	


---FlASH Action Script-

var lc:LocalConnection = new LocalConnection();

lc.stopFile = function() {
	stop();
}
lc.resumeFile = function() {
	play();
}
lc.connect("swf8connector");

--- In flexcoders@yahoogroups.com
, "Hilary Bridel" <[EMAIL PROTECTED]> 

wrote:
>
> Here is great example (by Peter Ent) of localconnection applied 
between Flex
> and SWF v8
> 


http://weblogs.macromedia.com/pent/archives/2006/07/using_actionscr.cf
m
> Hilary
> 
> --
> 
> 
> On 7/13/06, Derek Vadneau <[EMAIL PROTECTED]> wrote:
> >
> >  You could use ExternalInterface to communicate between the two. 
It's as
> > easy to setup as LocalConnection (maybe easier).
> >
> > Check out this example:
> >
> > http://tracethis.com/wp-
content/playground/SWF9_SWF8_Comms/SWF9_SWF8_Comms.html
> >
> > The content on the left is created by the SWF9 and the content on 
the
> > right is a version 8 SWF. Typing in the top textfield of one side 
updates
> > text in the lower textfield of the other side. And no _javascript_ 
involved.
> >
> > With this you could communicate synchronously, even create 
Proxy/__resolve
> > functionality to make most calls transparent.
> >
> >
> >
> >
> > On 7/12/06, JesterXL <[EMAIL PROTECTED] > wrote:
> > >
> > >Yeah, basically. It's asynchronus communication. It's not as 
cool as
> > > myLoadedSWF.gotoAndPlay(2), but those are the breaks.
> > >
> > >
> > > - Original Message -
> > > From: "flexnewbie06" <[EMAIL PROTECTED] 
40yahoo.ca>>
> > > To: <
flexcoders@yahoogroups.com >

> > > Sent: Wednesday, July 12, 2006 9:37 AM
> > > Subject: [flexcoders] Re: SWF Loader
> > >
> > > Thank you for your response...I am not very familiar with
> > > LocalConnection, however I have a general understanding...would 
I
> > > need to create a "sender" lc in my Flex app and add 
a "receiver" lc
> > > in my SWF to make the two communicate?
> > >
> > > --- In 
flexcoders@yahoogroups.com 
40yahoogroups.com>,
> > > "JesterXL"  wrote:
> > > >
> > > > 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" 
> > > > To: <
flexcoders@yahoogroups.com 
40yahoogroups.com>>
> > > > Sent: Wednesday, July 12, 2006 8:48 AM
> > > > Subject: [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.
> > > >
> >

[flexcoders] Re: SWF Loader

2006-07-13 Thread flexnewbie06
Okay, please don't laugh at this question!  Does my Flex App need to 
be compiled before the LocalConnection will work

I will post my Flash Action Code and my Flex 2 Code...I get no errors 
and the button label does change...the SWF just doesn't stop...it 
does nothing...Can anyone see what I'm doing wrong?

---FLEX Code--


http://www.adobe.com/2006/mxml"; 
layout="absolute" initialize="initApp()" 
viewSourceURL="srcview/index.html">








---FlASH Action Script-

var lc:LocalConnection = new LocalConnection();

lc.stopFile = function() {
stop();
}
lc.resumeFile = function() {
play();
}
lc.connect("swf8connector");




--- In flexcoders@yahoogroups.com, "Hilary Bridel" <[EMAIL PROTECTED]> 
wrote:
>
> Here is great example (by Peter Ent) of localconnection applied 
between Flex
> and SWF v8
> 
http://weblogs.macromedia.com/pent/archives/2006/07/using_actionscr.cf
m
> Hilary
> 
> --
> 
> 
> On 7/13/06, Derek Vadneau <[EMAIL PROTECTED]> wrote:
> >
> >  You could use ExternalInterface to communicate between the two. 
It's as
> > easy to setup as LocalConnection (maybe easier).
> >
> > Check out this example:
> >
> > http://tracethis.com/wp-
content/playground/SWF9_SWF8_Comms/SWF9_SWF8_Comms.html
> >
> > The content on the left is created by the SWF9 and the content on 
the
> > right is a version 8 SWF. Typing in the top textfield of one side 
updates
> > text in the lower textfield of the other side. And no JavaScript 
involved.
> >
> > With this you could communicate synchronously, even create 
Proxy/__resolve
> > functionality to make most calls transparent.
> >
> >
> >
> >
> > On 7/12/06, JesterXL <[EMAIL PROTECTED] > wrote:
> > >
> > >Yeah, basically. It's asynchronus communication. It's not as 
cool as
> > > myLoadedSWF.gotoAndPlay(2), but those are the breaks.
> > >
> > >
> > > - Original Message -
> > > From: "flexnewbie06" <[EMAIL PROTECTED] >
> > > To: >
> > > Sent: Wednesday, July 12, 2006 9:37 AM
> > > Subject: [flexcoders] Re: SWF Loader
> > >
> > > Thank you for your response...I am not very familiar with
> > > LocalConnection, however I have a general understanding...would 
I
> > > need to create a "sender" lc in my Flex app and add 
a "receiver" lc
> > > in my SWF to make the two communicate?
> > >
> > > --- In flexcoders@yahoogroups.com ,
> > > "JesterXL"  wrote:
> > > >
> > > > 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" 
> > > > To: >
> > > > Sent: Wednesday, July 12, 2006 8:48 AM
> > > > Subject: [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:
> > > >
> > > >
> > > > 
> > > > http://www.adobe.com/2006/mxml";
> > > > layout="absolute">
> > > > 
> > > > 
> > > > 
> > > >
> > > >  > > > paddingTop="10" paddingBottom="10" paddingLeft="10"
> > > paddingRight="10"
> > > > y="10" x="10">
> > > >
> > > >  > > > width="459"/>
> > > >
> > > > 
> > > >
> > > > 
> > > > 
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Flexcoders Mailing List
> > > > FAQ:
> > > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > > Search Archives: http://www.mail-archive.com/flexcoders%
<http://www.mail-archive.com/flexcoders%25>
> > > 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
> > >
> > >
> >
> >
> > --
> >
> > Derek Vadneau 
> >
> 
> 
> 
> -- 
> 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

<*> 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] Re: SWF Loader

2006-07-12 Thread Hilary Bridel



Here is great example (by Peter Ent) of localconnection applied between Flex and SWF v8
http://weblogs.macromedia.com/pent/archives/2006/07/using_actionscr.cfm
Hilary
 
-- 
On 7/13/06, Derek Vadneau <[EMAIL PROTECTED]> wrote:


You could use ExternalInterface to communicate between the two. It's as easy to setup as LocalConnection (maybe easier).Check out this example:
http://tracethis.com/wp-content/playground/SWF9_SWF8_Comms/SWF9_SWF8_Comms.htmlThe content on the left is created by the SWF9 and the content on the right is a version 8 SWF. Typing in the top textfield of one side updates text in the lower textfield of the other side. And no _javascript_ involved.
With this you could communicate synchronously, even create Proxy/__resolve functionality to make most calls transparent.

On 7/12/06, JesterXL <
[EMAIL PROTECTED] > wrote: 






Yeah, basically. It's asynchronus communication. It's not as cool as myLoadedSWF.gotoAndPlay(2), but those are the breaks.
- Original Message - From: "flexnewbie06" <
[EMAIL PROTECTED]>To: 
Sent: Wednesday, July 12, 2006 9:37 AMSubject: [flexcoders] Re: SWF LoaderThank you for your response...I am not very familiar withLocalConnection, however I have a general understanding...would I
need to create a "sender" lc in my Flex app and add a "receiver" lcin my SWF to make the two communicate?--- In 
flexcoders@yahoogroups.com, "JesterXL" <[EMAIL PROTECTED]> wrote:>> It's an AVM1Movie, not a MovieClip. Unfortunately, this preventsyou 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 Ibet this'd> work.>> - Original Message - > From: "flexnewbie06" <[EMAIL PROTECTED]>
> To: > Sent: Wednesday, July 12, 2006 8:48 AM
> Subject: [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:>>> > http://www.adobe.com/2006/mxml"> layout="absolute">
> > > >> > paddingTop="10" paddingBottom="10" paddingLeft="10"
paddingRight="10"> y="10" x="10">>> > width="459"/>
>> >> > 
 --> 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 ListFAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links

-- 
Derek Vadneau  -- Hilary-- 

__._,_.___





--
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.



  






__,_._,___



Re: [flexcoders] Re: SWF Loader

2006-07-12 Thread Derek Vadneau



You could use ExternalInterface to communicate between the two. It's as easy to setup as LocalConnection (maybe easier).

Check out this example:
http://tracethis.com/wp-content/playground/SWF9_SWF8_Comms/SWF9_SWF8_Comms.html

The content on the left is created by the SWF9 and the content on the
right is a version 8 SWF. Typing in the top textfield of one side
updates text in the lower textfield of the other side. And no
_javascript_ involved.

With this you could communicate synchronously, even create Proxy/__resolve functionality to make most calls transparent.

On 7/12/06, JesterXL <[EMAIL PROTECTED]
> wrote:













  



Yeah, basically.  It's asynchronus communication.  It's not as cool as 
myLoadedSWF.gotoAndPlay(2), but those are the breaks.

- Original Message - 
From: "flexnewbie06" <[EMAIL PROTECTED]>
To: <flexcoders@yahoogroups.com>

Sent: Wednesday, July 12, 2006 9:37 AM
Subject: [flexcoders] Re: SWF Loader

Thank you for your response...I am not very familiar with
LocalConnection, however I have a general understanding...would I
need to create a "sender" lc in my Flex app and add a "receiver" lc
in my SWF to make the two communicate?

--- In flexcoders@yahoogroups.com, "JesterXL" <[EMAIL PROTECTED]> wrote:
>
> 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.com>
> Sent: Wednesday, July 12, 2006 8:48 AM
> Subject: [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:
>
>
> 
> http://www.adobe.com/2006/mxml"
> layout="absolute">
> 
> 
> 
>
> 
> paddingTop="10" paddingBottom="10" paddingLeft="10"
paddingRight="10"
> y="10" x="10">
>
> 
> width="459"/>
>
> 
>
> 
> 
>
>
>
>
>
>
>
> --
> 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


  













-- 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








   






  
  
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] Re: SWF Loader

2006-07-12 Thread flexnewbie06
Hilary, that is EXACTLY what I am trying to do...so basically my V8 
SWF just won't work and I'll have to export to V9??...

QUOTE"So, I imported my V8 SWF into the Flash 9 alpha IDE, and 
exported it as a V9 SWF."END QUOTE

Thanks everyone for your replies...

Jenn


--- In flexcoders@yahoogroups.com, "Hilary Bridel" <[EMAIL PROTECTED]> 
wrote:
>
> 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 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:
> >
> >
> > 
> > http://www.adobe.com/2006/mxml";
> > layout="absolute">
> > 
> >
> > 
> >
> >  > paddingTop="10" paddingBottom="10" paddingLeft="10" 
paddingRight="10"
> > y="10" x="10">
> >
> >  > width="459"/>
> >
> > 
> >
> > 
> > 
> >
> >
> >
> >
> >
> >
> >
> > --
> > 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
> >
> >
> >
> >
> >
> >
> >
> 
> 
> -- 
> 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

<*> 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] Re: SWF Loader

2006-07-12 Thread JesterXL
Here's another example:
http://www.templatemonster.com/flash-templates/6554.html

- Original Message - 
From: "JesterXL" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, July 12, 2006 10:04 AM
Subject: Re: [flexcoders] Re: SWF Loader


Yeah, basically.  It's asynchronus communication.  It's not as cool as 
myLoadedSWF.gotoAndPlay(2), but those are the breaks.

- Original Message - 
From: "flexnewbie06" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, July 12, 2006 9:37 AM
Subject: [flexcoders] Re: SWF Loader


Thank you for your response...I am not very familiar with
LocalConnection, however I have a general understanding...would I
need to create a "sender" lc in my Flex app and add a "receiver" lc
in my SWF to make the two communicate?


--- In flexcoders@yahoogroups.com, "JesterXL" <[EMAIL PROTECTED]> wrote:
>
> 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: 
> Sent: Wednesday, July 12, 2006 8:48 AM
> Subject: [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:
>
>
> 
> http://www.adobe.com/2006/mxml";
> layout="absolute">
> 
> 
> 
>
>  paddingTop="10" paddingBottom="10" paddingLeft="10"
paddingRight="10"
> y="10" x="10">
>
>  width="459"/>
>
> 
>
> 
> 
>
>
>
>
>
>
>
> --
> 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









--
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



 



 Yahoo! Groups Sponsor ~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/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] Re: SWF Loader

2006-07-12 Thread JesterXL
Yeah, basically.  It's asynchronus communication.  It's not as cool as 
myLoadedSWF.gotoAndPlay(2), but those are the breaks.

- Original Message - 
From: "flexnewbie06" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, July 12, 2006 9:37 AM
Subject: [flexcoders] Re: SWF Loader


Thank you for your response...I am not very familiar with
LocalConnection, however I have a general understanding...would I
need to create a "sender" lc in my Flex app and add a "receiver" lc
in my SWF to make the two communicate?


--- In flexcoders@yahoogroups.com, "JesterXL" <[EMAIL PROTECTED]> wrote:
>
> 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: 
> Sent: Wednesday, July 12, 2006 8:48 AM
> Subject: [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:
>
>
> 
> http://www.adobe.com/2006/mxml";
> layout="absolute">
> 
> 
> 
>
>  paddingTop="10" paddingBottom="10" paddingLeft="10"
paddingRight="10"
> y="10" x="10">
>
>  width="459"/>
>
> 
>
> 
> 
>
>
>
>
>
>
>
> --
> 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








 Yahoo! Groups Sponsor ~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/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/
 




[flexcoders] Re: SWF Loader

2006-07-12 Thread flexnewbie06
Thank you for your response...I am not very familiar with 
LocalConnection, however I have a general understanding...would I 
need to create a "sender" lc in my Flex app and add a "receiver" lc 
in my SWF to make the two communicate?


--- In flexcoders@yahoogroups.com, "JesterXL" <[EMAIL PROTECTED]> wrote:
>
> 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: 
> Sent: Wednesday, July 12, 2006 8:48 AM
> Subject: [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:
> 
> 
> 
> http://www.adobe.com/2006/mxml";
> layout="absolute">
> 
> 
> 
> 
>  paddingTop="10" paddingBottom="10" paddingLeft="10" 
paddingRight="10"
> y="10" x="10">
> 
>  width="459"/>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> --
> 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/