I've been playing with flash.ocx and I want to know how to load all the variables in the game playing and send them to a listbox.
How would I do this?
Printable View
I've been playing with flash.ocx and I want to know how to load all the variables in the game playing and send them to a listbox.
How would I do this?
Thanks for skipping over MY thread guys...
If you check Planet Source Code, there are several sample applications that use the flash.ocx.
yes, but none of them get ALL the vars in the flash animation
there's no way to know what var to set unless you decompile or guess the name of the var
Are you trying to get all the variables from a swf file that you can not edit in flash software (Macromedia Flash)? Basically it is not your own creation.
If so, open the swf file in notepad. (right click on file and select "Open With..." menu to do this). You will see all the code to the swf. If you know anything about flash code should be able to find the variables.
I knowI can do it not in vb
But I want to get all of the vars and send them to a listbox in vb, this way I wont have to go through the hassle of doing everything else
Sorry, you can not just use vb code to find the variables in a swf file. Vb has to know the variable first. You have to know what they are first to send the var to the list box.
The only way to find out what all the variables are is to mannually open up the swf file in a flash program (flash MX or Swish) or do the "Open With.." (select program) and open it in notepad if it is not encrypted.
For VB to go through the code of the swf file you could use the vb Open statement to open the file and read it. But then you will have to know what to parse in the swf code. Which will not be any easier unless you know how the flash programmer set up his variables.
Any way you approach this, it will not be quick. I suggest finding a friend who has flash and open the swf and telling you what the variables are.
I'm a flash artist and I need to use a flash decompiler to find out the vars...also when you open it with notepad all you see is encrypted text
If your a flash artist, then you should have a flash program. Which program do you have?
I'm a flash artist too... :bigyello:
I use Macromedia Flash 5 and Koolmoves.
Why do you have to decompile the swf? I don't have to. I just look in my Action script explorer in Flash5 and view all my variables. Or I just click on my object and check out the variable name of the textbox, button or object.
you can't do this??
I use MX(not 2004) and I want to change the vars of other peoples games but to see what the name of the vars are I gotta decompile their swf file
Well... because the file is encrypted, using the vb "open" statement may not work. Unless of course you can decrypt it in VB first.
So I guess the only thing you can do is de-compile it to get the variables.
Unless you can get VB to do the decryption and parsing of the open file (using open statement), I don't see any other way to do it.
Sorry, I can't be much more help.