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:[EMAIL PROTECTED] On
Behalf Of Nik Derewianka
Sent: Wednesday, August 20, 2008 9:22 AM
To: [email protected]
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

 

Reply via email to