I think it could be a subtly different context here, in that it's a
remoting call, and would return the swf typed as a bytearray, so you
wouldn't be using a urlrequest in this case.
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Rick Winscot
Sent: 22 August 2008 07:45
To: [email protected]
Subject: Re: [flexcoders] Intriguing AMFPHP sample
On the loader complete event... The 'content' ._is_. The swf.
var foo:Object = loader.content;
What this looks like... Is that someone is saying that hitting a page
like foo.php could actually provide Flex with foo.swf. So... The url
request target would probably be "foo.php."
Rick Winscot
On 8/21/08 7:27 PM, "Jim Hayes" <[EMAIL PROTECTED]> wrote:
>How would you convert that ByteArray of the swf file back to a
>MovieClip/SWFLoader/something displayable ??
I guess use Loader.loadBytes and type the resultant contents as
a MovieClip?
But that is guessing, I hasten to add.
-----Original Message-----
From: [email protected]
<mailto:flexcoders%40yahoogroups.com>
<mailto:flexcoders%40yahoogroups.com> on behalf of Kevin Aebig
Sent: Thu 21/08/2008 21:10
To: [email protected]
<mailto:flexcoders%40yahoogroups.com>
<mailto:flexcoders%40yahoogroups.com>
Subject: RE: [flexcoders] Intriguing AMFPHP sample
If it's going to an Air application, than it can write the bytes
temporarily, load the Movie and delete the temporary file. I did
that years
ago with C# and Flash and it worked really well.
!k
From: [email protected]
<mailto:flexcoders%40yahoogroups.com>
<mailto:flexcoders%40yahoogroups.com>
[mailto:[email protected] <mailto:[email protected]>
<mailto:flexcoders%40yahoogroups.com>
<mailto:flexcoders%40yahoogroups.com> ] On
Behalf Of Nik Derewianka
Sent: Wednesday, August 20, 2008 9:22 AM
To: [email protected]
<mailto:flexcoders%40yahoogroups.com>
<mailto:flexcoders%40yahoogroups.com>
Subject: [flexcoders] Intriguing AMFPHP sample
Hi,
Was just looking through some blogs on AMFPHP and came across a
php
snippet that showed:
function getSwf()
{
return new ByteArray(file_get_contents("my.swf"));
}
But no sample of what to do on the Flex side to turn it back
into
something useable.
How would you convert that ByteArray of the swf file back to a
MovieClip/SWFLoader/something displayable ??
Thanks,
Nik
__________________________________________________________
This communication is from Primal Pictures Ltd., a company
registered in England and Wales with registration No. 02622298 and
registered office: 4th Floor, Tennyson House, 159-165 Great Portland
Street, London, W1W 5PA, UK. VAT registration No. 648874577.
This e-mail is confidential and may be privileged. It may be
read, copied and used only by the intended recipient. If you have
received it in error, please contact the sender immediately by return
e-mail or by telephoning +44(0)20 7637 1010. Please then delete the
e-mail and do not disclose its contents to any person.
This email has been scanned for Primal Pictures by the
MessageLabs Email Security System.
__________________________________________________________
______________________________________________________________________
This communication is from Primal Pictures Ltd., a company registered in
England and Wales with registration No. 02622298 and registered office: 4th
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT
registration No. 648874577.
This e-mail is confidential and may be privileged. It may be read, copied and
used only by the intended recipient. If you have received it in error, please
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637
1010. Please then delete the e-mail and do not disclose its contents to any
person.
This email has been scanned for Primal Pictures by the MessageLabs Email
Security System.
______________________________________________________________________