>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: flexcoders@yahoogroups.com on behalf of Kevin Aebig
Sent: Thu 21/08/2008 21:10
To: flexcoders@yahoogroups.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: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Nik Derewianka
Sent: Wednesday, August 20, 2008 9:22 AM
To: flexcoders@yahoogroups.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.
______________________________________________________________________

<<winmail.dat>>

Reply via email to