SWF Protection in Flash CS4?

Hi i would like to know if there would be an "Encrypt
ActionScript"-sorta like function in CS4?
If you ask me what i think is so valueable that i should
encrypt it i have nothing to say. I dont have anything important to
encrypt!
But for instance, a company wants to make a game with
accounts and passwords. Wouldnt it be nice to be able to encrypt
the ActionScript so that people can't decompile it?

> But for instance, a company wants to make a game with
accounts and passwords.
> Wouldnt it be nice to be able to encrypt the
ActionScript so that people can't
> decompile it?
That is just so much easier to do it server side rather than
in Flash.
Best Regards
Urami
"Never play Leap-Frog with a Unicorn."
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami>

Similar Messages

  • How can I make a transparent square box swf file in flash cs4?

    Hi,
    I have one picture imported into flash cs4 and would like to make a rectangle box which should be transparent. Finally I will save it as .swf file for later use. But the box should be transparent (without any background). How can I do that? Please do help.
    Thanks.

    Hi just a shot in the dark..
    Have you fiddled with movieclips and the alpha property?
    Best regards
    Peter

  • How can I use Flash_Slideshow.SWF in my Flash CS4 document?

    Hi,
    I have downloaded a nice Flash Slide show file (.SWF) and would like to use in my Flash CS4 document without any modification (as it is). How can I use it? There is no .Fla file this Slide Show. It just works using xml file.
    Please do help.

    Hi,
    You need to load a .swf file in your flash document using the loader class. I'm assuming you are using the AS3. Please click on the below link which helps you to use the loader class.
    http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/display/Loader.html
    Thanks

  • Error while loading a swf created in flash cs4, inside a flex application

    Hi there,
    I have created a rotating logo in flash cs4 using motion presets, named logoRotar.swf. I have used this inside my flex application:
    <mx:SWFLoader width="33.33%" height="100%" source="assets/logoRotar.swf">
    When I execute the flex application, I get this runtime error message:
    VerifyError: Error #1014: Class flash.geom::Matrix3D could not be found.
        at global$init()
        at fl.motion::AnimatorFactory3D/getNewAnimator()
        at fl.motion::AnimatorFactoryBase/addTargetInfo()
        at logoRotar_fla::MainTimeline()
    I also tried adding import flash.geom.*; statement in my flex application, I still get the same message.
    Flash player 10,0,22,87 is running in my browser.
    Please help me out....
    Cheers!
    Deepak

    Get Flex 3.3 and use -target-player=10
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Playing AS2 SWF fiel in Flash CS4

    Naive question perhaps... Does anyone know how adobe plays the AS2 SWF file so beautifully, including being able to go to next frame or prev frame or zoom functions?
    I have tried many different ways to play an AS2 SWF in my flex (AS3) SWF loader and it is a very difficult problem. I use a AS2 Shell as a proxy and I use local connection to communicate between the two AVMs. The result is quite a horrible one because, I am not able to scale the swf very well and also have a torrid time with the debugger.
    Does anyone know of any special methods used by Adobe to achieve that in CS4 Flash or do they also use LocalConnection to play the AS2? Thanks

    Hi Kglad,
    I am indeed using LocalConnection. My requirement is to load an AS2 SWF in my flex app and be able to control the playing of the AS2 file. After a lot of research, I found out that the only way to really accomplish that will be load a proxy AS2 shell swf in the main AS3 app using a SWF loader and to communicate with the AS2 shell using LocalConnection. Thru LocalConnection, I then pass the AS2 SWF movie name and have the peoxy shell load the SWF into an empty movie clip and play.
    This actually works, sort of. My problem is that I am not able to scale the AS2 SWF movie automatically. I can scale using the _xscale and _yscale properties, but to do taht, I need to know the width and height of the incoming SWF, which I don't know of a way of finding.My attempts to find it using the following code have resulted in bupkiss. the trace statement which attempts to show the width and height of the movie clip show 0 and the stage trace staement gives me the dimensions of the browser. Instead of what I really need is the width and height of the movie "fileName" that is loaded. Any thoughts? Thanks, Ramesh
            __vid = createEmptyMovieClip(__vid, 0);
            __vid._lockroot = true;
            __vidMCL = new MovieClipLoader();
            var mclHandler:Object = new Object();
            mclHandler.onLoadComplete = function(mc:MovieClip) {
                trace("wh vals are " + mc._width + "," + mc._height);
                trace("stage wh vals are " + Stage.height + "," + Stage.width);
                mc._xscale = 48;
                mc._yscale = 48;
                out_lc.send(LC_OUT_NAME(), "onPlayVideoResult", true);
            __vidMCL.addListener(mclHandler);
            __vidMCL.loadClip(fileName, __vid);

  • SWF management - Adobe Flash CS4 AS3

    I want to design my own website in flash. But I have a couple of questions about swf management.
    I have a frame which has buttons -it will be my main page- each button will call a swf file as
    submenu.
    For example I have the "about us" button. On click a swf -about us- submenu will appear.
    1. When I call -on the click of a button- a swf file I want that file to have no background, cause I
    want as background my current frame. -generally I want each swf file that i call to have no
    background. How can I do that?
    2. I want to call an intro animation. Its a swf file -short presentation of my copmany it lasts 10
    sec- I want that animation to play before my menu appears. how can I do that? Is it good Idea to
    call that intro as an external swf file or should I make it in my current project -my main page-
    3. (its similar to 2) Lets say that I have 2 layers. In my first layer and frame(1) I will place the
    movieclip1. In my second layer and frame(2) I will place movieclip2. Each movie clip lasts 10
    seconds. When I test my project I want to my first movieclip to be played (10 seconds) and then my
    second clip (another 10 seconds). What  should my actionsript be? One way that I figured out its
    that in order for my first clip to be played for ten seconds I have to place it on
    24fps*10seconds=240frames -the first frame will be the keyframe.
    thank you all in advance

    One last thing. I want now to combine importing code with your code.
    With the following code I am loading intro.swf from file "clips" into my project - first frame (1) - in a current position (x,y). It is supposed (for the imported swf) to start when I test the movie (project) and to go to the next frame when the intro clip (the same imported swf) is done.
    var Xpos:Number=110;
    var Ypos:Number=180;
    var swf:MovieClip=new Loader();
    var defaultSWF:URLRequest=new URLRequest("clips/intro.swf");
    stop();
    loader.load(defaultSWF);
    loader.x=Xpos;
    loader.y=Ypos;
    addChild(loader);
    myclip1.addEventListener(Event.ENTER_FRAME,checkF);
    function checkF(e:Event):void{
         if(e.target.currentFrame==e.target.totalFrames){
         myclip1.removeEventListener(Event.ENTER_FRAME,checkF);
         removeChild(loader);
         nextFrame();
    my questions for the code are:
    1. should be there a stop(); before the loader? (in the upbove code there is)
    2.Is the removeChild(loader) placed in the right line?
    3.Any corrections?

  • Kann man mit Flash CS4 eine (SWF 1.0) Animation erstellen

    Ich habe folgendes Problem:
    ich möchte eine SWF Animation in Flash CS4 erstellen, das hat auch Super funktioniert,
    die SWF Ausgabe hat aber leider keinerlei Optionen für die einzelnen SWF Spezifikationen.
    Ich müsste die Animation mit den gültigen Spezifikationen von SWF 1.0 ausgeben lassen können.
    Da ich das ganze später per Java Script in meine Homepage integrieren will.
    Da durch diesen Umweg der Flash Inhalt auch auf mobilen Endgeräten (iPhone usw...) zu sehen sein wird.
    Kann mir hier vielleicht jemand weiterhelfen?
    Liebe Grüße, Markus

    Schonmal vielen Dank für die Antwort,
    leider funktioniert das ganze auch über Device Central nicht.
    Ich bin mir nicht sicher ob es an der SWF liegt oder an dem Script,
    Beispielanimationen funktionieren im Script jedoch einwandfrei.
    Ich möchte meine Animationen nur gerne auf möglichst vielen Geräten ausführbar machen,
    da ich selber ein iPhone habe und auch sehr viele Leute mit iPhone kenne wäre es schön gewesen,
    auch auf diesen Geräten Flash zu nutzen, vielleicht ist das Script ja bald auch zu höheren SWF Versionen Kompatibel.
    Liebe Grüße, Markus

  • Flash cs4 mac - Error opening URL '/:Users:someting.swf' - Not a "loading external content" problem

    Hello.
    I am having a weird problem when trying to test a movie or publish preview -> flash on mac with Leopard os.
    The result is a blank movie with the usuall "movie not loaded" if u right click on it and the output returns the "Error opening URL 'the path of the swf here'.
    This has nothing to do with loading external files or something like that. It happens even in blank movies and it gives the same error if I try to open a swf from flash ide.
    I can publish the project or export the movie with no problem at all.
    I can preview the movie in html. I can run all the swf files in my hard disk, network, usb stick, dvd etc., but when I try to open any of these files from flash ide I got that stupid error.
    Its not something that stops me from working in flash ide but its slow to export movie any time I want to test it.
    Things that I've tried so far but nothing worked:
    Update the flash cs4 to the latest version
    Update the flash players
    Restored the release flash player as default player (I am using as default the debug player)
    Cleared the preferences
    Move the flash cs4 folder to another location in hd
    Saved the fla document first before testing the movie (in different places with or without spaces in document name or folder)
    Give read & write permissions for everyone for flash.app, players and for fla files when saved first before test movie
    Unistall and install the application 3-4 times.
    Test every as version just in case.
    Also I've checked the folders when testing movie and I can see that it creates an swf file, which I can run it outside flash ide (the one that the flash ide player cannot load) with no problem.
    The mac os has the default set up as it came. Nothing chnaged in permissions or security settings.
    Thanx in advance.

    In this particular example I am using this code to start the
    xml file load:
    // now load the XML file that contains the content strings
    var sXMLFile:String = "xml/home.xml";
    var xmlContent:XML = new XML();
    xmlContent.ignoreWhite = true;
    xmlContent.onLoad = onXMLLoadComplete;
    xmlContent.load( sXMLFile );
    But I don’t think the code is the problem here . This
    happens on every file I load when I am using a relative path to the
    content, regardless of how I load the content (XML object,
    loadMovie, MovieClipLoader, etc…) and the same code executes
    perfectly on every other machine in the office(Mac and PC).
    I’m more concerned with the semi-colons and .swf filename
    that Flash is putting into my relative path on the error message.
    Is that normal?

  • How to load ai file in flash CS4 using code(Like loading swf or images )

    Hi,
    I have to load AI file in flash CS4 and provide the interaction with user.
    Can any body help?
    Thanks

    Hi.
    No you cannot  import Eps, wmf, emf,  ai, cdr files in swf dynamically using Action Script 3.

  • How can I import a .swf file in Adobe Flash CS4?

    Hi,
    How can I import a .swf file in Adobe Flash CS4?
    Thanks.

    you can use file/import but that would be a mistake.
    you should "load" your swf, not import it.
    if you want to load it and need help, are you using as2 or as3?

  • In Flash CS4 a generated html with swf file won't play swf

    Using Flash CS4 and having the Flash plug-in ver 10 on my PC, the generated html file will not play the swf in the browser.
    I noticed that the active-x javascript is now included in the header as well as the javascript portion in the body tag.
    But it won't play.  I get the typical blank window in IE with the "X" in the upper left corner.
    I don't have this problem with Flash CS3.
    Any ideas what may be going on?
    Thank you.

    I am having similar difficulty; mostly I am confused.
    I want to open a flash video file in a frame within a webpage.
    I have generated a Flash CS4 html and swf file. When loaded they play, but they play on a separate, full size web page, not in the frame where I want it.
    I then generated FLV and F4V files but that doesn't work.
    It appears that I need to insert the object and embed tags "for Flash Movies" in the html file.
    Once I do that, do I go back to only putting in the html and swf files and create a link to the html file to bring up the video in the target frame?
    What are the FLV files for?

  • How to find totalFrames of Captivate 4 .swf in Flash CS4

    I have a series of Captivate4 AS3 .swf files that I am loading into an interface created in Flash CS4.  The files are loading and playing correctly, but I need to find a way to detect when an imported .swf gets to the end of it's timeline so that I can load the next one.
    Here's my code:
    var myLoader:Loader = new Loader();
    var movieURL:String = "resources/testTestTest.swf";
    var req:URLRequest = new URLRequest(movieURL);
    var currentMovie;
    var endShow:Boolean = false;
    myLoader.addEventListener(Event.COMPLETE, loadComplete);
    function loadComplete(evt:Event)
        currentMovie = myLoader.content;
        currentMovie.rdcmndPause = 0; //fails to pause imported .swf
        trace(currentMovie.cpInfoCurrentDate); //fails to trace out
    addChild(myLoader);
    myLoader.load(req);
    Please, help!!

    I forgot to add "contentLoaderInfo" to the myLoader eventListener.  Here's my working code:
    Captivate- output to AS3, make sure Flash player is same as destination
    AS3 code from flash UI:
    //initial variables
    var myLoader:Loader = new Loader();
    var movieURL:String = "fileName.swf";
    var req:URLRequest = new URLRequest(movieURL);
    var currentMovie:*; //data type movie; use wildcard- data type unavailable at compile time
    myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
    function loadComplete(evt:Event):void
        currentMovie = MovieClip(myLoader.content);//data type imported .swf
        trace("frame count = " + currentMovie.rdinfoFrameCount); //rdinfoFrameCount is a Captivate var
        //trace("current frame = " + currentMovie.rdinfocurrFrame); //rdinfoFrameCount is a Captivate var
    addChild(myLoader);
    myLoader.load(req);
    //set up timer to check to see if current frame == total frames
    var endTimer:Timer = new Timer(1000);//runs every sec.
    endTimer.addEventListener(TimerEvent.TIMER, onTimer);
    endTimer.start();
    function onTimer(evt:TimerEvent):void
        //trace("current frame = " + currentMovie.rdinfocurrFrame);
        if((currentMovie.rdinfocurrFrame + 10) >= currentMovie.rdinfoFrameCount) //had to add 10 to current frame
         //write your function here
        endTimer.stop();

  • Flash cs4 nothing visible in library or stage but can see it in swf

    Hi,
    I'm not sure what I've done - symbols, graphics, text are visible in swf but not on stage in workspace or in library.  I wonder if I've accidentally reset something. I was trying to import an .ai graphic into a flash cs4 file when this first happened - the graphic was not visible in the workspace but could be seen in swf. Now I can't see anything in any flash file I open even ones that have been fine previously.  Just blank workspace and blank library window when select symbols in library. If I try to draw something, or insert text, it disappears as soon as I switch to selection tool but is visible if I look at the swf (control enter). Please help - much appreciated!
    The project window is just a white blank square in the developer workspace too.

    Thanks for the advice. But what I didn't make clear was that I can't use Flash at all now because nothing is visible in ANY file I open. The symbol names can be seen in the library but there is no image in the library window and no image visible if I open a symbol from the library. This is true in every single flash file I have. This has all happened since I tried to open the .ai file which had CMYK elements so I thought this was why that graphic was not visible.  The problem is that now nothing is visible in ANY .fla file, even ones that worked fine a few days ago. Also projects are not visible in the project window which is just a white blank.   If I open a new file and type text in, it is only visible as long as the text tool is selected. If I deselect the text tool, the text disappears.  If I draw a rectangle, it is only visible while the rectangle tool is selected.  If I deselect the rectangle tool the rectangle I have drawn disappears.  However, both text and rectangle are visible in the swf.  I thought maybe I had accidentally changed some setting. I have tried pressing Ctrl Alt Shift while opening flash to reset defaults but this didn't make a difference.

  • Flash CS4 plug in for swf array?

    Hey everyone.  Does anyone know if there's a free Flash CS4 plug in that creates a swf array that loads external swfs in order and can control the timeline without having to mess with Actionscript?  I'm not even sure what to put in Google to search for such a plug in.
    Right now, I have an array like that.  I got the code from some very helpful people on here.  I still don't understand the majority of the code, though, so I was wondering if a plug in could do the same job that Actionscript does.  I have the code for my Flash file in another discussion thread, and I'm trying to get my file to stop looping the swfs when it reaches the end of the array.  If anyone's curious about seeing the code I'm talking about or if they know how to solve the loop problem, here is the link to that thread:
    http://forums.adobe.com/message/3417613#3417613

    use:
        var listener:Object = new Object();
        var mcl:MovieClipLoader = new MovieClipLoader();
        mcl.addListener(listener);
           // When the swf loads, set it up to constantly check its current frame
        // against the total frames, and if those match, the swf is done playing.
        // If that's the case, then load the next one.
        listener.onLoadInit = function(targ:MovieClip):Void {
           targ.onEnterFrame = function():Void {
              if (this._currentframe == this._totalframes) {
                 loadNext();
                 delete this.onEnterFrame;
    //Previous and Next Swf Buttons
    function loadNext():Void {
        if (currentSwf <swfs.length-1){
      currentSwf++;
        loadSWF(currentSwf);
    function loadSWF(nextSWFToLoad){
       mcl.loadClip(swfs[nextSWFToLoad],theTargetClip_mc);
    loadSWF(currentSwf);
    function loadPrevious():Void{
       currentSwf--;
       if(currentSwf==-1) currentSwf = swfs.length-1;
       loadSWF(currentSwf);
    previous_btn.onRelease = loadPrevious;
    next_btn.onRelease = loadNext;
    //End Previous and Next Swf Buttons
    //Play Button
    play_btn.onRelease = function() {
        theTargetClip_mc.play();
    //Pause Button
    pause_btn.onRelease = function() {
        theTargetClip_mc.stop();

  • Swf increase size mystery publishing into Flash 8 and Flash CS4

    Hello,
    i discovered recently that a swf build with Flash 8 IDE, published for Flash Player 8 get a different size when published with Flash CS4 IDE.
    You can reproduce that effect with all sort of swf.
    I did a report for each publish (same .fla into Flash 8 IDE and Flash CS4 IDE)
    The result was : all vector graphics, all fonts, all bitmaps, all actionscript code increased
    From test.fla, i did one key frame with :
    - a dynamic TextField with some simple chars in it = "Test Chars",
    - a simple shape with brush tool
    - and one movieclip with an ordinary circle
    Size report from Flash 8 :
    test.swf Rapport sur l'animation
    Image #    Image octets    Total octets    Séquence
          1          14419          14419    Séquence 1 (Image d'exportation des classes AS 2.0)
    Séquence                        Forme octets    Texte octets    ActionScript octets
    Séquence 1                           86           132                     0
    Symbole                       Forme octets    Texte octets    ActionScript octets
    clip_circle                           69             0                     0
    Nom de la police                 octets        Caractères   
    Arial                         14056     !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxy z{|}~ˆ˜–—‘’‚“”„†‡•…‰‹›€™
    Size report from Flash CS4 :
    test.swf Rapport sur l'animation
    Image #    Image octets    Total octets    Séquence
          1          18932          18932    Séquence 1 (Image d'exportation des classes AS 2.0)
    Séquence                        Forme octets    Texte octets    ActionScript octets
    Séquence 1                          103           174                     0
    Symbole                       Forme octets    Texte octets    ActionScript octets
    clip_circle                           91             0                     0
    Nom de la police                 octets        Caractères   
    ArialMT                       18467     !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxy z{|}~ˆ˜–—‘’‚“”„†‡•…‰‹›€™
    Does somebody knows something about this strange phenomen ?

    Didn't look at the file size of the FLA, just the SWF as I didn't even necessarily resave the CS4 as CS6. No edits were made, I tried it with a simple open and publish just to make sure I wasn't doing anything to change the file and the resulting file was heavier (kb).
    I looked through the size reports and saw that while image compression was better in the CS6 version, the fonts were all heavier than they were in the CS4 version and this put it over the 40kb limit.

Maybe you are looking for

  • Quandary time

    I have a quandary. I already have an 17" iMac Power PC G5 (3 years old) but have the opportunity to upgrade to either a 24" Intel iMac (top of the range) or the new 17" MacBook Pro. I like both but can only have one so do I keep the 17" iMac Power PC

  • JTextArea not gaining focus

    I have a tabbed pane consisting of 2 JPanels. Each panel has a text area (within a scrollpane) on both. All I want is for the text area to gain focus when its tab has been clicked. I've tried adding a changelistener to the tabbedpane:         tabbedP

  • Failed to deserialize

    I am unable to get the dynamic webservice client to work. It looks like I am not registering the types properly. Could someone be kind enough to review my WSDL and client program and suggest a solution? My test code segment ==================== priva

  • MacBook Pro Retina Audio issue after upgrade to Mountain Lion

    Got my new MacBook Pro with Retina display just over a week ago now and was working brilliantly up until last night. I upgraded to Mountain Lion via the App store as I already bought it for my other macs and didnt wish to wait to redeem my free copy.

  • Why does my Premiere CS6 forget rendering?

    We've been using Premiere since 5.0 - then 5.5 and now 6.0 - and recently, we've noticed that our projects forgets the rendering every time they're re-loaded. If I open a project, render the timeline and saves, it's not rendered when opening the proj