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
care to share the source code...
OMG. Can you publish your php script please ?
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.
Oooooooh Thanks Mario, you're a great guy !
And i thought the're are not all features included in this beta... hahahaha GREAT!
Cheers,
Roland
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!
I'm having a heck of a time getting the ContextMenu to work.
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);
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
Just CHange a Byte Simply,U can Make it by self
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.
the beta script in the inhibitor is so funy ahahahah gk=lopklczxk
i should admit that you have a lovely site. Please accept my compliments!