ActionScript 2.0 :: Preventing Swf Files From Decompiling?
Sep 10, 2009What is the best way for preventing swf files from decompiling?
View 1 RepliesWhat is the best way for preventing swf files from decompiling?
View 1 RepliesCan i know whether there is any way to protect swf files from being decompiling. I have seen that some tools are available for decompiling the swf files.
View 4 RepliesI'm having trouble with my text and xml files seeming to be cached. They are altered by a php script called from flash, and this overwrites the text files correctly, but when they are reloaded into flash (eg. when the page is refreshed) the old data is still being used.I was reading this article and was interested in this line:
Code:
input_xml.load(xml_file + "?uniq=" + new Date().getTime());
could someone please explain why this would work, and whether this would prevent the problem that I'm having. I'm presuming that this unique number is never used in any way, it just forces the new file to be loaded, but I'm just a bit unsure why.
How do I prevent my SWF from decompiling?
Is there any difference between ActionScript 1/2 and ActionScript 3 in the perspective of decompile prevention?
This is an opposite question of the following question:
How do you decompile a swf file? [URL]
I have decompiled an swf file in to .fla file by using a registered decompiling software, in that fla file there is code "getURL("./home.html", "_self");" , but when i run this file getting the following error.The currently targeted Flash Player does not support the getURL action.
View 1 RepliesHas anyone used Flash Secure Optimizer to protect their SWF files? I read an article about it online, how reliable the article was.
Basically, I just want to take precaution from my SWF file being decompiled and/or reverse engineered.
I have the following code but it only works when published for flash 6 and I need it to work for flash 8.Ive tried to tweak it but cant get it to work.I think it would be best if I could make a function out of it - ie:call the function like:myTextbox.textEffect("this is some decoding text");My actionscript is coming along but Im still learning.
Code:
myString = "this is some decoding text";
charDisplay = myString.length;
[code].....
I have a simple login form in Flash for a website. All users login using the same password. The current actionscript which I am using is as follows.
[Code]...
however it is very easy to extract the password by decompiling the swf. somebody direct me to a Flash - PHP (but no Sql) validation tutorial?
I'm developing some photo viewer app for some web site in flex 3. One of the demands made by my customers is preventing of their unique visual content from copying at least by standard Windows tools ("Print Screen" button). Are there any tricky techniques capable of doing this?
The first thing occurred to me is handling "Print Screen" button of keyboard doesn't seem to be as effective as my client needs.
How can I prevent concatenating when using the addition operator? totalCost_txt.text = (firstCost_txt.text + secondCost_txt.text)I can replace the "+" with any other operator and it works. (huh?)
View 3 RepliesI stayed up all night building an application on cs5.5 that needs to keep running for up to an hour without the screeen dimming or the device going to sleep. After a lot of googling I could not find anything. Is there a way to emulate or trick the system and make it think that there is user interation ? Or is there an option I can change to make this work? I am testing on an ipod touch 4g
View 3 RepliesI'm working on the Java backend for a Flash webgame - the client and server communicate using Action Message Format (AMF). A few weeks ago, another team in our company had their product hacked by a user who decompiled the Flash client, and used an altered version to flood the backend with bogus requests. We want to prevent this kind of attack in our new game.(More details: webserver used is Tomcat, AMF client is BlazeDS.)I'd like to know what the best way to prevent this kind of attack would be. Some ideas I had:the nginx configuration seemed like the best place to handle rate limiting, but I cant find any resources on how nginx interacts with AMF. Do the AMF requests just get sent straight to Tomcat?most requests involve a userId param for the relevant user. Rate-limiting requests involving overused userIds might be one approach - however, an attacker who just wants to flood the server could easily spam random userIds.
View 1 RepliesThis may be simple. All i want to do is prevent the onRollOver event from firing while the tween for the onRollOut event is playing.
View 1 RepliesI imported a video using progressive download method (so not embedded). I don't want the video to play until the user clicks on it. Right now, it's playing as soon as I get to the frame it's on. Is there a way to prevent it from playing until the user activates it?
View 3 RepliesI have a movie clip, asterixHolder, with multiple frames that is instructed, at times, to gotoAndPlay at a particular frame (where'currentSection' is a number):
Code:
asterixHolder.gotoAndPlay("tween"+currentSection); Nested inside asterixHolder is a clip called theAsterix that I want to continually rotate. I've been achieving this with a Timer Event:
[Code]...
However, when the TimerEvent code is included - or to be more precise, when the function timerHandler references asterixHolder - the previous code to send the clip to the appropriate frame does not work. Could anyone tell me why this is the case? It doesn't seem logical that calling a nested clip should prevent the parent clip from doing anything.
edit: Resolved; my ActionScript function for parsing the mySQL results didn't correctly interpret a recently modified column, and the corrupted new output happened to be identical to the old output.
I have created an application that accesses a PHP/mySQL database, but it caches old information.
I used the workaround from Adobe's website, where I append '+ new Date().getTime()' to the URLRequest String, but the application continues to use the old data.
When I trace the URLRequest String and C&P it into a browser window, however, I receive the correct data.
I have a class that extends the MovieClip class, is there a way that I can prevent this MovieClip from dispatching a certain event? More specifically I want to prevent it from dispatching MouseEvent.CLICK under certain conditions.
View 5 RepliesI have two rectangles, one of which is draggable, and when hitTestObject occurs I want to prevent the overlap.
here is the code:
addEventListener(Event.ENTER_FRAME, detectColl);
redSquare.addEventListener(MouseEvent.MOUSE_DOWN, grabIt);
redSquare.addEventListener(MouseEvent.MOUSE_UP, dropIt);
[code]....
whenever i view my animaion on my browsers, it plays to fit the screen. actionscrip that will keep it the size it is meant to be. And if the actionscript has to be added to the first frame..does that mean to every layers first frame(there are about 6 or 7 layers)..one more thing..with the animation already done, how can i insert a preloader all the way in the begining?
View 2 RepliesIs there anyway to disable the Print Screen key or stop users from capturing the screen.
I've tried the fallowing method
private function init():void
{
this.addEventListener(Event.ENTER_FRAME, onEnterFrame);
}
[Code]...
but it gives me this error, anyway to make this work?
Error: Error #2176: Certain actions, such as those that display a pop-up window, may only be invoked upon user interaction, for example by a mouse click or button press. at flash.system::System$/setClipboard()
Flash CS5, CS4
Actionscript 2
What I want the SWF to do is play from the beginning when someone hits the index.php file and gotoAndStop(234) when someone goes to a sub-page (like contact.htm).What I did first was:
<CODE>
function checkSO() {
var SO = SharedObject.getLocal("siteSO");
if (SO.data.visitedAlready != undefined) {
[code]....
And that worked in the sense of no cookie-it loads and plays the swf from the beginning. If
there is a cookie it starts from frame 234.
As it sits now as long as the cookie exist in the TIF everytime they return to my page it will not play the opening animation it will just jump to then end even on the index.php.
Someone else suggested:
<CODE>
import flash.external.*;
var currentURL:String = String(ExternalInterface.call("window.location.hre f.toString"));
[code]....
I just don't know what string (I think) to put in the /** ...flush.. **/ part
What I want the SWF to do is play from the beginning when someone hits the index.php file and gotoAndStop(234) when someone goes to a sub-page (like contact.htm).What I did first was:
[code]function checkSO() {var SO = SharedObject.getLocal("siteSO");if (SO.data.visitedAlready != undefined) {this.gotoAndPlay(234);}else {SO.data.visitedAlready = "yes";SO.flush(); }}checkSO();[/code]
And that worked in the sense of no cookie-it loads and plays the swf from the beginning. If there is a cookie it starts from frame 234.
As it sits now as long as the cookie exist in the TIF everytime they return to my page it will not play the opening animation it will just jump to then end even on the index.php.
[code].....
I am working on a product options form whose contents should be cleared by a clearOptions() method each time the user adds an option. The option name TextInput is bound to a value object that is reinstantiated each time the the user adds a product option. The problem I am having is that the StringValidator fires each time the bound value object is reinstantiated.
[Code]...
Basically I have some TLF text as a symbol, it's read only, the font is embedded and I set mouseEnabled to false. It's sitting as a graphic, on top of a button. When I mouse over the text, or the area where the text would be, it prevents the button from receiving the on mouse over event. Using classic, dynamic text, this route normally works just fine. Any ideas what could be causing the problem?
View 1 RepliesI have a ViewStack, with a bunch of NavigatorContainers in. Each NavigatorContainer contains a different category of settings for the application.
I would like to be able to display a popup prompting the user if they try to leave the current NavigatorContainer without saving the changes they have made to the container's settings.
What would be ideal is something like the 'changing' event in the List component, whereby you are able to cancel or defer the event. Calling preventDefault() on the change event in ViewStack doesn't prevent the index change from happening.
Normally I'd not post my questions in this forum but this is a exeption .Anyway how can i prevent the menu from showing up when right clicking the mouse button in flash runtime?EDIT: I learned that it's not possible to completely hide it in as3, but it's possible in as2 though, or when using html. You however can hide everythng in that list except for "settings" and "show redraw regions"
View 2 Repliesthis little problem here. every time i export my fla i get some stream errors becouse of my localhost stuff, like this:
[Code]...
I currently have an AS3 swf that uses a loader to load in various other swfs, some AS3 some AS2. I load in all the swfs at the start and store them in an array for when they are need later. This works fine with the AS3 swfs, as they all have eventListeners for the ADDED_TO_STAGE event and so won't start until I need them. Unfortuantely, I haven't found a similar solution for the AS2 swfs, and they will run immediatley as I load them. Is there any way to stop this?
View 2 RepliesI've got a text field that is deep down in a hierarchy of DisplayObjects. The root object is scaled by a variable factor.I want the text field to display it's text in a specific font size, but the text field scales because it's a child of the scaled root object. Is there any possibility to prevent this? I didn't find something in the Adobe documentation.
View 2 RepliesI am currently creating a remake of the game Geometry Wars but in Flash using AS2 but the further you get through the game it seems the more lag builds up. And it is down to my computer (which does suck) but it's been tested on multiple pretty good PCs. It lags when a lot of enemies enter the screen but to be fair there isn't a lot. Here is my game which I am currently blogging to get feedback : geowarsbeta.tk <- with http at the start.
Stuff I am doing to prevent lag:
-Enemies are not visible when offscreen.
-Unwanted movieclips (like bullets) are deleted once offscreen.
-Main ships 'onEnterFrame' is split up in to lot of small functions.