all groups > flash actionscript > december 2004 >
You're in the

flash actionscript

group:

how can i disable AS in a loaded swf?


how can i disable AS in a loaded swf? freeflashland
12/12/2004 10:03:18 PM
flash actionscript:
i am desperately to load external swf files in my movie without their actions
being active. i don't have the fla files for these swfs and i can't edit their
actions. they ruin my project those bloody actions, even high-end pc's crash
because of those damn interval functions in the swf files....help!
Re: how can i disable AS in a loaded swf? Rothrock
12/12/2004 10:06:20 PM
I don't think you can. And if the original files are coded with actionscript I
would imagine they needed them? And if you don't have access to the original
fla files, how do you know what is causing the crash? What are you really
trying to do?
Re: how can i disable AS in a loaded swf? freeflashland
12/12/2004 11:09:32 PM
we have a project in the university and i want to create a "flash city". it is
a large floor plan of a city using swf files as city squares. the user sends
his/hers swf through ftp and then a program running in the server "reads" its
dimensions and places it as a new city square in the city web(it actually just
writes a x,y value in a txt file nothing fancy so far). Then my swf comes
in,reads the x,y value and loads the user's swf file in those coordinates. what
u see is an iometric view of the city's floor plan whith all the swf files send
to the server. I know that they are causing the crash bcause when i test the
movie in flash the output panel fills with "error loading url" messages from
some onEnterFrame or interval. i thought of searching through the swf files
after they load with a for in 2 find onEnterFrame or intevals and somehow
diasble them. idon't know how though.
Re: how can i disable AS in a loaded swf? freeflashland
12/12/2004 11:19:00 PM
here is a testing upload i've done to bring into shape the above description
http://195.251.17.156/index.htm
in the grey squares load the user's swf
(sorry 4 the lousy graprhics it was only a test 4 the code
it is the most recent version in my pc with IIS )

Re: how can i disable AS in a loaded swf? freeflashland
12/12/2004 11:42:54 PM
that's a good idea but since i'm studying architecture and not programming
ihave little idea on how to parse and no idea att all on how to reassemple an
swf file. could u give me a hint? i would appreciate it.
Re: how can i disable AS in a loaded swf? Jeckyl
12/13/2004 9:06:00 AM
then don't load them .. you cannot disable script.
--
All the best,
Jeckyl
[quoted text, click to view]

Re: how can i disable AS in a loaded swf? Jeckyl
12/13/2004 10:20:03 AM
You can specify to your users that movies cannot contain script .. and ban
people who violate the rules.

It is also possible to write yourself a filter program that removes all the
script from a movie .. SWF format is easy to parse, and you just need to
strip out the tags for scripting.
--
All the best,
Jeckyl

Re: how can i disable AS in a loaded swf? Jeckyl
12/13/2004 10:51:19 AM
You'd need to find yourself a programmer. Then get the free spec for SWF
files and process the SWF file tag by tag. When you see a DoAction or
DoInitAction tags, strip it out. You would also have to strip action
records from place tags (to get rid of onClipEvent() actions) and button
definitions (to get rid of on() actions from buttons). Everything else you
just leave untouched and pass through to the output file.
--
All the best,
Jeckyl
[quoted text, click to view]

AddThis Social Bookmark Button