August 01, 2003
How to use the new Flash 7 goodies

Now everybody is exicted about the new possibilites that the Flash 7 player has to offer: right click context menu, mouse wheel support etc. The problem is: it doesn't seem to work. Bokel found the reason: you have to change the internal version number of the published swf files from 6 to 7 then the objects get activated. You can use a hex editor for that or you use my little online tool I quickly hacked together: Flash Version Converter - you upload a version 6 swf and get back a version 7.

UPDATE: I've made a new version of the converter which will change the version tag to 8.

Posted at August 01, 2003 01:25 PM | Further reading
Comments

hahahaha incredible.

Posted by: a on August 1, 2003 01:31 PM

care to share the source code...

Posted by: Geoffrey Williams on August 1, 2003 01:34 PM

OMG. Can you publish your php script please ?

Posted by: jj on August 1, 2003 01:35 PM

Sure, the core part of the code (after the upload) is:

//upload file is $userfile

$fp=fopen($userfile,"rb");
$data=fread($fp,filesize($userfile));
fclose($fp);

$data[3]=chr(7); //this is the only change - very simple...

header("Content-Type: application/octet-stream; name=".$userfile_name);
header("Content-length: " . $userfile_size);
header("Content-Transfer-Encoding: binary");
header("Accept-Ranges: none");
header("Content-Disposition: attachment; filename=".$userfile_name."\n");
echo $data;

I hope the code didn't get mingled by MovableType.

Posted by: Mario Klingemann on August 1, 2003 01:41 PM

Oooooooh Thanks Mario, you're a great guy !

Posted by: jj on August 1, 2003 01:47 PM

Thanks.

Posted by: Geoffrey Williams on August 1, 2003 01:54 PM

And i thought the're are not all features included in this beta... hahahaha GREAT!

Cheers,
Roland

Posted by: Roland Schaer on August 1, 2003 02:29 PM

wow - i was able to get a bunch of stuff working! the img tag thing seems weird - its working but seems really buggy... although i just guessed at the code. maybe im missing something there. anyway - cool script man!

Posted by: ericd on August 1, 2003 03:59 PM

Yup, there are some strange things going on:

http://code.audiofarm.de/temp/ThreeOddPushButtons.html

Mhm, maybe 8 does the trick ... ;o)

Posted by: Ralf Siegel on August 1, 2003 04:29 PM

I'm having a heck of a time getting the ContextMenu to work.

Posted by: John Giotta on August 1, 2003 05:05 PM

Peter Hall just posted on FlashCoders that the following line has the same effect as the byte manipulation:

// make properties of class available to SWF6
ASSetPropFlags(class.prototype, null, 0, 1024);

Posted by: Mario Klingemann on August 1, 2003 06:09 PM

Hi Mario, that´s very nice... :)
here is an little offline Tool similar to your PHP Script written by Sebastian Deutsch:

http://www.9elements.com/convert2f7.zip

Posted by: Marcello on August 1, 2003 08:32 PM

Thanx all for all the input i did a trackback to this post so the dutch thing you see is my post in holland ;)
The contexT menu is really something else i guess i can't get it right

Posted by: Folkert Hielema on August 2, 2003 12:00 AM

hi. id like to share an swf patcher i wrote in python... ;)
http://www23.brinkster.com/palelips/python/f627.html.

Posted by: krist on August 10, 2003 10:19 AM

you can now download a win32 console application which also performs the patch, easier to use, better for bigger files: http://www.active-web.cc/html/flash7/

enjoy!!!

Posted by: Frank Baumgartner on August 10, 2003 04:04 PM

Seems like everybody is writing converters..
Here's another one in C:
http://www.dynamicflash.co.uk/

Posted by: eyezberg on August 13, 2003 03:17 PM

Just CHange a Byte Simply,U can Make it by self

Posted by: icee on August 17, 2003 06:04 AM

icee: What do you think this means: "You can use a hex editor"? Of course it's easy. But some people may have never used a hex editor before.

Posted by: Mario Klingemann on August 17, 2003 12:04 PM

the beta script in the inhibitor is so funy ahahahah gk=lopklczxk

Posted by: Bryce Loy on November 20, 2003 08:23 PM

i should admit that you have a lovely site. Please accept my compliments!

Posted by: Abbi on September 15, 2004 11:50 AM
Post a comment
Name:


Email Address:


URL:


Comments:


Remember info?



Thank you!

Most Visited Entries
Sketches, Works & Source Code
Lectures
Contact
Backlog
In Love with
Powered by
Movable Type 2.661

© Copyright Mario Klingemann

Syndicate this site:
RSS 1.0 - RSS 2.0

Quasimondo @ flickr
Quasimondo @ LinkedIn
Quasimondo @ Twitter
Quasimondo @ Facebook
Quasimondo @ MySpace
Quasimondo is a Bright
Citizen of the TRansnational Republic
My other blog in german
Impressum


My family name is written Klingemann,
not Klingelmann, Klingeman, Klingaman, Kingemann,
Kindermann, Killingaman, Klingman, Klingmann, Klingonman
Klingemman, Cleangerman, Klingerman or Kleangerman

profile for Quasimondo at Stack Overflow, Q&A for professional and enthusiast programmers