If you are looking for the decompiler itself, visit https://github.com/jindrapetrik/jpexs-decompiler
NEW : We have got a new blog where we post some interesting SWF internals info.
List of issues#626 swf after save doens't work
Author: vinnitu
Date created:
Type: question
Visibility: Everybody
Assigned to:
Labels: LZMA
State: closed
My changes are - comment next lines
16: stage.scaleMode = StageScaleMode.NO_SCALE;
17: stage.align = StageAlign.TOP_LEFT;
And save.
After that swf doens't work ((
Can you help me?
I have JPEXS v.2.1.2
Ubuntu x64 14.04
and PlayerGlobal.swc (playerglobal14_0.swc)
VideoExample.as (1 KiB)VideoExample.swf (1 KiB)
UpdateVideoExample.swf (1 KiB)
Please try to edit the P-Code (on the right side, when you put the cursor into the
function).
If you only want to remove 2 lines, it is very easy with P-Code.
Editing AS is Experimental, probably you saw the warning.
can you try? I will too
I tried it, and it seems to work with AS editing and with P-Code editing, too.
Please try the latest nightly build, maybe it was fixed after the latest stable release.
e.g. i want to remove
16: stage.scaleMode = StageScaleMode.NO_SCALE;
I remove i P-Code lines
19: getlex Qname(PackageNamespace(""),"stage")
20: getlex Qname(PackageNamespace("flash.display"),"StageScaleMode")
21: getproperty Qname(PackageNamespace(""),"NO_SCALE")
22: setproperty Qname(PackageNamespace(""),"scaleMode")
and save, but my swf doesn't work (((
PS: and I made git pull as you recommended
VideoExample.swf (1 KiB)
Strange... for me it is working, when i remove line 19-22
I attached the modified swf.
So you have the source in your machine and netbeans? Ok, then you can get the latest
sources from GitHub, too.
But you alse can try the latest compiled nightly build, too:
/www.free-decompiler.com/flash/nightly.html
UpdateVideoExample3.swf (1 KiB)
Strange things...
I checkout all options in settings and tried again.
And it works!!! Even in source code edit!
But I still unhappy with my target base swf ((
in console I got exception
[java] Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
[java] at com.jpexs.decompiler.flash.SWF.saveTo(SWF.java:441)
[java] at com.jpexs.decompiler.flash.SWF.saveTo(SWF.java:369)
[java] at com.jpexs.decompiler.flash.gui.Main.saveFile(Main.java:348)
[java] at com.jpexs.decompiler.flash.gui.Main.saveFile(Main.java:319)
[java] at
com.jpexs.decompiler.flash.gui.MainFrameRibbonMenu.actionPerformed(MainFrameRibbonMenu.jav
a:730)
[java] at
com.jpexs.decompiler.flash.gui.MainFrameRibbonMenu$1.actionPerformed(MainFrameRibbonMenu.j
ava:192)
[java] at
org.pushingpixels.flamingo.api.common.AbstractCommandButton.fireActionPerformed(AbstractCo
mmandButton.java:616)
[java] at
org.pushingpixels.flamingo.api.common.AbstractCommandButton$ActionHandler.actionPerformed(
AbstractCommandButton.java:568)
[java] at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
[java] at
org.pushingpixels.flamingo.api.common.model.ActionRepeatableButtonModel.setPressed(ActionR
epeatableButtonModel.java:123)
[java] at
org.pushingpixels.flamingo.internal.ui.common.BasicCommandButtonListener.mouseReleased(Bas
icCommandButtonListener.java:147)
[java] at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
[java] at java.awt.Component.processMouseEvent(Component.java:6505)
[java] at javax.swing.JComponent.processMouseEvent(JComponent.java:3311)
[java] at java.awt.Component.processEvent(Component.java:6270)
[java] at java.awt.Container.processEvent(Container.java:2229)
[java] at java.awt.Component.dispatchEventImpl(Component.java:4861)
[java] at java.awt.Container.dispatchEventImpl(Container.java:2287)
[java] at java.awt.Component.dispatchEvent(Component.java:4687)
[java] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
[java] at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
[java] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
[java] at java.awt.Container.dispatchEventImpl(Container.java:2273)
[java] at java.awt.Window.dispatchEventImpl(Window.java:2719)
[java] at java.awt.Component.dispatchEvent(Component.java:4687)
[java] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
[java] at java.awt.EventQueue.access$200(EventQueue.java:103)
[java] at java.awt.EventQueue$3.run(EventQueue.java:694)
[java] at java.awt.EventQueue$3.run(EventQueue.java:692)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at
java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
[java] at
java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
[java] at java.awt.EventQueue$4.run(EventQueue.java:708)
[java] at java.awt.EventQueue$4.run(EventQueue.java:706)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at
java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
[java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
[java] at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
[java] at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
[java] at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
[java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
[java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
[java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
what about it? it seems trouble with GUI? or am I wrong?
So I cannot save modified swf...
PS: maybe it is have some sence but my target flash has ZWS signature? (VideoExample in
CWS)
So you have 2 swfs? One of them is working (VideoExample)? Please could you attach it?
Please try the latest nightly build. There was a bug in the LZMA saving method.
State: new→upgraded
I'm going to close this issue due to inactivity. Feel free to create new issue if you find
any new problem.
State: upgraded→closed