Revolution => Flash

Jim Ault JimAultWins at yahoo.com
Sat Oct 20 12:09:56 EDT 2007


Mark,

> Do you think there would be a possibility to do this without Director?
You will find utilities that convert to SWF (like Video2SWF, SWFFork,
png2swf) that may do what you want.

I think what Andreas is describing could also be done by using the 'binary
write' capability of Rev that can generate the file that is the SWF (in this
case).  Flash and other products can export to the SWF format.  Check
version tracker and do a search.
Once you have the SWF file, you can do a hex dump from a word processor or
BBEdit, etc. to reveal the byte level strings that match the format. Use the
>> 1- Register and download the "File Format Specification" form Adobe
>> (when I did, I agreed not to share it, sorry)
>> 2- Take a look at the document to understand the "Tags" conformation.

There are commands in Rev that can work at the byte level,( and even the bit
level of a file format.. binaryDecode, binaryEncode) so the hexcode is your
oyster :-)

If you are always spooling out the same image library, then you could make
the correct file-write to match these in the final SWF.  Store the file
header and other parts of the SWF file in a stack.

However, Andreas may be going through a better process than I have described
to get results.

Hope this helps, and is not too far off a correct, workable answer.

Jim Ault
Las Vegas


On 10/20/07 8:16 AM, "Mark Schonewille" <m.schonewille at economy-x-talk.com>
wrote:

> Thanks, Andreas.
> 
> Unfortunately, I think that the requirement to have Director
> available makes this method unfeasible.
> 
> I am not familiar with the Flash format. What is the byte level and
> how do I find it? Or is that clearly described in the File Format
> specification?
> 
> Do you think there would be a possibility to do this without Director?
> 
> Best regards and thanks for taking the time to explain this,
> 
> Mark Schonewille

> Op 20-okt-2007, om 16:03 heeft Andres Martinez het volgende geschreven:
> 
>> Hello Mark
>> 
>> The process can be automated but it would take too much effort. Let
>> me enumerate the steps I took to simplify it...
>> 
>> 1- Register and download the "File Format Specification" form Adobe
>> (when I did, I agreed not to share it, sorry)
>> 2- Take a look at the document to understand the "Tags" conformation.
>> 3- Use Flash app to generate a simple animation that has the same
>> look (background and characters) as your Rev Stack
>> 4- Experiment, experiment and experiment exporting the .SWF movie
>> from Director and looking at the byte level file (I used HexEdit
>> for this).
>> 5- Code your Stack to generate the sequence of positions of all
>> your animated characters
>> 6- Transform those positions to the right byte level format that
>> flash understands, and paste them into the file exported from Flash
>> app.
>> 
>> If you want to see the functionality in action, you can download
>> our game MacPool and press Ctrl-S (Save) when playing a 9-Ball game.
>> This is a sample animation exported from the game...   http://
>> www.bakno.com/MacPool/animation.html
>> 
>> Regards,
>> Andres Martinez
>> www.baKno.com





More information about the Use-livecode mailing list