Ok first of thanks for reading..
first off to tell you what im doing. im editing the action script of an swf file
ok i decompiled it got a folder containing the as and the fla-flash part of the swf
now i edited what i needed to in the few as files.
now the question is the fla no longer has all the as that was in the swf it is in the folder along with the orignal fla that was made
how do i go ahead and compile all the as and fla together to publish the swf again
again note if i try to publish the fla it is half the size (the as part isnt in there)
is there a way i can do this easily.?
thanks again
any helpful comments greatly appreciated thanks again
again note if i try to publish the fla it is half the size (the as
part isnt in there)
This shouldn't happen because of .as files not being compiled. It should be because you must be missing some other symbols and their linkages in your fla.
I hope you are using some tool like Adobe Professional CS5 etc for editing and seeing the fla
Check whether the ActionScript Settings has the correct folder for the sources file
In your main document of the fla, check whether the Document class is set. You can also click on the pen mark beside the document to open it up.
check your library containing all the symbols and their linkages
This is more of a problem with your decompiler. First off, you shouldn't be using one since the majority of them out there are far from perfect. You didn't exactly give enough details other than the fact that you want to get your decompiler to work, so I don't see what the issue is.
Related
Ok, so I'm working on an Adobe Flash ActionScript 3 file. I programmed a hyperlink to an external pdf file, but I was told that that's a no-go. The file needs to be included inside the SWF, and clicking a button should let the user save it on his computer. I have no clue how that should work.
Any ideas?
You can use FileReference.download(), you can read the documentation. You don't need to include the file in the SWF.
FileReference documentation
I have created a SWF file using Flash that loads an FLV file on my local development machine. When publishing the SWF file and generating the appropriate HTML, I can successfully load the video by opening the generated HTML page that Flash creates. However, when placing the generated HTML code in my View, the Flash is loading, but the video is not playing. I think it's a reference error to the location of the FLV file, but I've tried every combination I can think of. I placed the SWF and FLV in the corresponding View folder where I want the video to load, but to no avail. Does anyone have a working example that I can look at, or any suggestions? Thanks.
I think it's a reference error to the location of the FLV file, but I've tried every combination I can think of.
Yes, I think so as well. Have you tried using Url helpers to reference static resources on your site, like
#Url.Content("~/Content/Videos/MySupervideo.flv")
The actual solution to this for me was this...
In your Flash file, the Component Inspector should point to the location on the web server where the FLV file is located...
Publish the SWF, copy the appropriate HTML to the View you would like the video to play in...
And just as Darin has pointed out, use the Helpers to write the path to the SWF file on your web server where it is located. The only difference is this (which I discovered using Google's 'Inspect Element' feature and then clicking on the 'Network' item, then clicking the path loaded on the left for the 'SWF'... on the right it stated 404 Status Not Found... why?
#Url.Content("~/Content/video/name-of-swf.swf") actually produced
src='http://localhost/content/video/name-of-swf.swf.swf'
This obviously incorrect... so here is the correct way to use the Helpers...
#Url.Content("~/Content/video/name-of-swf")
Hope this helps someone... I am giving Darin credit because he pushed me in the right direction...
Evening, I have a SWF file (Flash file) that uses ActionScript 2 code.
What I like to do is convert it to a SWF file that uses Actionscript 3 code.
Note that I say "uses", not contains. The SWF may contain AS2 code still even though it will appear from the outisde that it contains AS3 code. This is because the code will never be processed, I just need to make the AS2 SWF file into a AS3 SWF file.
The ActionScript can be removed altogether from the resulting SWF file. That doesn't matter.
There is a way to do this, just a question of how.
How?
If anyone know how I should go about doing this please say. Perhaps you know of an already-existing application that removes all ActionScript code from a SWF file?
Just to be perfectly clear: I do not wish to convert the AS2 code into AS3 code. Although if that somehow is magically possible I wouldn't complain of course.
It's the SWF that must change to be defined as a AS3 SWF instead of a AS2 SWF file.
So you don't have the source code, do you? I've never tried this myself, but I guess the code could be stripped with Flasm, and then convert the SWF movie by hex edition the header values that define the ActionScript and Flash Player versions.
Aside from code tags, and a lot of code bytecode, I don't know right now of any AS1 & 2 tag that isn't compatible with AVM2. Could be wrong tho.
I am no flash expert however I need to edit the source of the flash project here: http://tools.assembla.com/1pixelout/browser/audio-player/
It's the "Wordpress audio player" I need to remove the skip forward and back buttons when there is more than one audio file.
Anyone know how to first of all use this folder structure, I thought it would simply be a .fla file that you edit but it seems to be loads of files. And then how do I compile it?
Thanks in advance,
Stefan
It appears to be FLA-based, meaning you will need to purchase a copy of Flash Professional (what version you need depends on the version of the FLA file).
It depends on how it was coded, either you need to edit the graphics / layout inside the FLA file, or you need to edit the code in one of the classes. The classes can either be embedded in the FLA file, or they can be in separate standalone AS files.
i have a player which is of swf file. I need to edit it to remove user defined conextmenu.( when i right click its showing one name, i need to remove that)
Can any one help me how to do that.
how i can edit swf file in flash. when i open swf file in flash am unable to edit anything.
u can see the flash player here
http://test2.musicking.in/video/4/abd
Please need help.
Thanks in advance.
Unless you've got the source, you can't edit it in the Flash IDE. You can usually import some assets, but that's about it. Your best bet is probably something like this:
http://www.sothink.com/product/flashdecompiler/
You can convert it first to .fla and then edit it.
Here is a link to the free download of swf to fla converter.