Can anyone help me modify a fully functional SWF file to behave slightly differently?

I have a working SWF file which I used a free decompiler to get to the ActionScript of.  I do not know Actionscript, but I know enough other languages to have a vague understanding of whats going on.  I am not certain if this is Actionscript 1 or 2 or 3 honestly so I simply posted here.  The main thing I need to understand is the order in which code is executed within Actionscript.  What I'm trying to do is make a telnet applet which initializes with a giant connect button simply connect by default upon initializing and then if the connection is lost of disconnected function as normal and display the connect button again.  I believe this should be a fairly simply modification just moving a few lines of code around, I just do not have a good grasp on ActionScript.  If someone out there is willing to work briefly on this with me, you would have my gratitude greatly, or even any brief explanation anyone can offer as to what I may want to look into. It looks similar to java, but I just am not sure on too much to want to try to tackle this blindly.

   public class FlashTerm extends Sprite
      public function FlashTerm() {
         super();
         trace("test");
         this.stage.align = StageAlign.TOP;
         this.stage.quality = StageQuality.BEST;
         this.stage.scaleMode = StageScaleMode.EXACT_FIT;
         drawContextMenu();
         drawBorder();
         DisplayShortcuts.init();
         init();
      public static var EMBEDDED_FONT:String = "FlashTerm_EMBEDDED_FONT";
      public static const h:Number = 440;
      public static var EMBEDDED_FONT2:String = "FlashTerm_EMBEDDED_FONT2";
      public static var debug:TextField;
      public static var ansiViewer:MultiFontViewer;
      public static const w:Number = 650;
      public static var defaultFontName:String;
      private function handleCancelClicked(param1:MouseEvent) : void {
         var _loc2_:DownloadPanel = DownloadPanel(param1.currentTarget.parent);
         _loc2_.download.removeEventListener(MouseEvent.CLICK,handleDownloadClicked);
         _loc2_.cancel.removeEventListener(MouseEvent.CLICK,handleCancelClicked);
         Tweener.addTween(_loc2_,
               "alpha":0,
               "y":h / 2 - 10,
               "time":0.4
      private function handleLoadComplete(param1:Event) : void {
         var e:Event = param1;
         var xml:XML = XML(e.currentTarget.data);
         serverName = [email protected]();
         serverAddress = [email protected]();
         serverPort = xml.@port;
         serverSocketPort = xml.@socket_server_port;
         defaultFontName = xml.@default_font.toString();
         columnWidth = xml.@columns == undefined || xml.@columns == ""?80:xml.@columns;
         lineHeight = xml.@lines == undefined || xml.@lines == ""?25:xml.@lines;
         if(serverSocketPort != 843)
            try
               Security.loadPolicyFile("xmlsocket://" + serverAddress + ":" + serverSocketPort);
            catch(error:Error)
               status.setStatus("Error: Socket security not configured");
         if(xml.@info_graphic.toString() != "")
            loadGraphic(xml.@info_graphic.toString());
         else
            readyToConnect();
      }

Similar Messages

  • Can anyone help me find the airplay function on my Macbook air (new)

    Can anyone help me find the airplay function on my Macbook air (new)

    Hi there,
    I would recommend taking a look at the troubleshooting steps found in the article below.
    Troubleshooting AirPlay and AirPlay Mirroring
    http://support.apple.com/kb/TS4215
    -Griff W.

  • Can anyone help me as to why my raw files in bridge are not showing as thumbnails as they normally do . I can seem to fix it

    Can anyone help me as to why my raw files in bridge are not showing as thumbnails as they normally do . I can seem to fix it

    BOILERPLATE TEXT:
    Note that this is boilerplate text.
    If you give complete and detailed information about your setup and the issue at hand,
    such as your platform (Mac or Win),
    exact versions of your OS, of Photoshop (not just "CS6", but something like CS6v.13.0.6) and of Bridge,
    your settings in Photoshop > Preference > Performance
    the type of file you were working on,
    machine specs, such as total installed RAM, scratch file HDs, total available HD space, video card specs, including total VRAM installed,
    what troubleshooting steps you have taken so far,
    what error message(s) you receive,
    if having issues opening raw files also the exact camera make and model that generated them,
    if you're having printing issues, indicate the exact make and model of your printer, paper size, image dimensions in pixels (so many pixels wide by so many pixels high). if going through a RIP, specify that too.
    A screen shot of your settings or of the image could be very helpful too,
    etc.,
    someone may be able to help you (not necessarily this poster, who is not a Windows user).
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • Can anyone help me recover a corrupt Quicktime Export file?

    I recently erased a hard drive by mistake. Yes. I really did.
    So I took it round to my computer guy, Les Mannos, in the SF Valley and he recovered the material to another drive.
    It all looks fine and the files are all the same size and the icons are there. So I thought I had dodged a bullet but ...
    When I went to open the only really important file - a 72 gig Quicktime export file - neither FCP, nor SOuntrack Pro, not MPEG Streamclip nor anything would get it to open. It sits there saying that QT does not recognize the file.
    Since the file size has remained the same, it makes me think that the actual track is probably intact, but that the information (wrapper?) is corrupted.
    Can any of you boffins out there tell me if this file can undergo surgery and, if so, who could do it? I can pay a nominal fee.
    Best wishes, and thanks for reading this,
    Harry.

    Sounds more likely that the pointers were recovered, but the area that they'd pointed to was already overwritten. Unlikely that anything can be done at this point.
    VLC will make a more valiant attempt to parse the file if you wanna try it -
    http://www.videolan.org/vlc/
    Patrick

  • How can I edit my website from another computer? and how can I create a new website next to the one, I have already? Can anyone help, please?

    How can I edit my website from another computer? and how can I create a new website next to the one, I already have? Can anyone help, please?

    Move the domain.sites file from one computer to the other.
    The file is located under User/Library/Application Support/iWeb/domain.sites.  Move this file to the same location on the other computer and double click and iWeb will open it.  Remember, it is your User Library that you want and not your System Library, as you will not find iWeb there.
    Just create a new site on the same domain file and it will appear below the other site.  If you want them side by side then duplicate your domain file and have one site per a domain file and they can then be side by side.

  • Batch processing problems-can anyone help?

    Setup: Quadcore, 4GB RAM, 4 internal drives all with plenty of space, Leopard OS, latest version.
    Software: CS4 with Photoshop Extended; all updates installed. I also have CS3 installed; only use Bridge and PS in both apps.
    Problem: Working in CS4. All edits/crops/corrections done in the Camera Raw window; all edits saved and viewable in Bridge. However, when I use Batch from the Tools dropdown (Tools > Photoshop > Batch), and check all the usual places, select an Action, select a Destination, and hit "Go", the results are totally weird. Some images process as expected, but many are at least two stops overexposed.
    All individual files will Open, and can be Saved As manually; all works fine. That is in fact how my assistant and I got the job done tonight. The Batch Action is simplicity itself: Open, Save As (JPEG level 9), and Close file—but if I run Batch on the same files that can be opened and Saved As perfectly, it all goes crazy; three quarters of the files are totally overexposed, in blocks (10–25, roughly), and at random.
    I have used the Ctrl + Alt + Shift after opening Bridge; I have run Cocktail; and lit the right incense. But this still will not work properly! Can anyone help???

    Batching the same files in CS3 works perfectly, in terms of the processed JPEGs at least being correctly exposed, but the CS4-only edits (like the healing brush) are not recognised, nor are many, tho' not all, of the crops.
    I have decided to deactivate and uninstall, then reinstall CS4, after upgrading to Snow Leopard. Usually, I wait for a few months for others to report on OS update interactions with CS and FCP, but since CS4 as installed was useless and I had done the usual resets of Preferences without any change to Batch Processing's reliability, I felt I could not be worse off.
    So, after upgrading to Snow Leopard, I will reinstall CS4 (and all apps this time, rather than just PS and Bridge, as I usually do) in case there are soime weird unintended consequences of a Custom install.
    Very frustrating and time-consuming, and I wonder what I might have done to create this problem—seeing as no one commented, I can only assume that this is an unique experience.
    I will report back today, hopefully.

  • Unable to upgrade iTunes 10.5.  I get a message "on network resource that is unavailable" when trying to install.  Can anyone help?

    When trying to upgrade from iTunes 10.2 to 10.5 I get a pop-up window with message "on a network resource that is unavailable".  I was able to upgrade earlier iTune versions, but for some reason I keep getting this message.  I'm using Windows XP.  Can anyone help?
    Thanks!
    SilverFox

    Which particular .msi file does it go on to say is missing, charlotte? (Several different files might possibly be referenced in this context.)

  • Why do I keep losing audio/recorded tracks and SFX in my projects? I have tried: Saving as archive file/searching package contents etc. to no avail. Can anyone help?

    Why do I keep losing audio/recorded tracks and SFX in my projects? I have tried: Saving as archive file/searching package contents etc. to no avail. Can anyone help? It keeps telling me 'Audio file not found', and seems to be different tracks in the same project each time too.

    iamthewaughrus wrote:
    I also have this problem using Garageband in a school network situation when students open their project on one station, save it to their network drive, and later open it at a different station.  90% of the time there will be no issue, but sometimes audio files are lost. (Garageband '11, iMacs)
    That sounds like it might be a failure of the students to perform a Save As and check Archive Project when they do. This asks GB to pull all the files it needs into the associated .band document rather than point to them externally (and then risk not having them be there).

  • To function with the format VTR. Can anyone help?

    ok i have final cut pro but i use a dvd recorder to record all of my shows and I was trying to figure out if Final cut Pro has a way to function with the format VTR. Can anyone help?

    If you want to record directly to the DVD recorder, you'll most likely find that most DVD recorders with a Firewire input will NOT record directly from your Mac.  I'm only aware of a couple of models (long since discontinued) that would allow it.  So what you have to do it to connect your Mac via Fireiwre to a digital-to-analog converter (most any DV camcorder, VTR or DV converter box), then connect the converting device to your DVD recorder using the analog connections.
    If you want to capture from the DVD recorder (hard drive or disc), you can usually do that via Firewire directly to your Mac: in FCP, set Device Control to "Non-Controllable Device" and use Capture Now. Do not expect FCP to control the DVD recorder like it can with camcorders and VTRs.
    -DH

  • My ipod nano is fully charged, I put on shuffle and song starts about 1 minute into song it shuts off can anyone help?

    My ipod nano is fully charged, I put it on shuffle and the song starts, about 1 minute into the song the ipod shuts, I push the power button and it turns on to play screen I push play and song starts again where it was when it shut off. Can anyone help?

    This is usually a good indication that your headphones aren't plugged all the way in.  The white part of the headset should be flush with the body of the Nano and no silver from the headphone's plug should still be seen.  The headphone jacks on the newer nanos are a bit tighter than in previous generations and require a bit of extra force.
    B-rock

  • I just subscribed to imatch while logged in to iTunes on a mac computer that belongs to someone else. (I was logged in to MY iTunes)  my iPhone will not turn on the MATCH function, saying I am no subscribed. I've powered off and on.  can anyone help?

    I just subscribed to imatch while logged in to iTunes on a mac computer that belongs to someone else. (I was logged in to MY iTunes)  my iPhone will not turn on the MATCH function, saying I am no subscribed. I've powered off and on.  can anyone help?

    Hi,
    I am having the same problem. Itunes reports that it's uploaded all the music etc.
    When I turn the match function on, it says "you are not currently subscribed to itunes match".
    I have restarted the phone and coputer, logged in & out several times to no avail.
    Any ideas or suggestions?

  • Despite it is claimed in Adobe forum that Lightroom is fully compatible with OS Maverics on my MacBook Air IT IS NOT. A message "an error occurred while attempting to change modules" appears and I cannot go any further. Can anyone help?

    Despite it is claimed in Adobe forum that Lightroom is fully compatible with OS Maverics on my MacBook Air IT IS NOT. A message "an error occurred while attempting to change modules" appears every time I try to open Lightroom. This happened immediately after upgrading to Mavericks. On my doughter's same machine Lightroom works perfectly. Can anyone help?

    Surely the Adobe forums are the place for help with Adobe applications. The fact that the problem doesn't occur on your daughter's machine suggests that it's not an issue with Mavericks but a local problem on your own machine.

  • My CC wont open. and Once again my LR and PS keep asking me to licence the software. I am a fully paid subscriber to CC. This issue keeps happening and was only fixed by Adobe lastnight, but its happening again can anyone HELP?

    My CC wont open. and Once again my LR and PS keep asking me to licence the software. I am a fully paid subscriber to CC. This issue keeps happening and was only fixed by Adobe lastnight, but its happening again can anyone HELP?

    This is an open forum with a mix of other users and Adobe staff, not Adobe support... you need Adobe support
    Adobe contact information - http://helpx.adobe.com/contact.html may help
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"

  • Can anyone help me with a bit of script modifying?

    Hey guys, can anyone help me?
    Here is some script that makes my character obviously move
    and detects walls. I would like to modify the script so that when
    my character hits the right keydown, the sprite changes to cast
    member "right". I have tried and so far all i have done is succeed
    in making the cast member change but this then deactivates the
    walls. Any ideas??
    on exitFrame me
    if keyPressed(123) then
    move(me,-5,0)
    end if
    if keyPressed(124) then
    move(me,5,0)
    end if
    if keyPressed(125) then
    move(me,0,5)
    end if
    if keyPressed(126) then
    move(me,0,-5)
    end if
    end
    on move me, dx, dy
    oldRect = sprite(me.spritenum).rect
    newRect = oldRect + rect(dx,dy,dx,dy)
    hitWall = FALSE
    repeat with i = 2 to 30
    if sendSprite(i,#hitWall,newRect) then
    hitWall = TRUE
    exit repeat
    end if
    end repeat
    if not hitWall then
    sprite(me.spriteNum).loc = sprite(me.spriteNum).loc +
    point(dx,dy)
    end if
    end
    Many thanks.

    Hi Hayz,
    I actually recognise that script.
    Try the following:
    on exitFrame me
    if keyPressed(123) then --left
    move(me,-5,0,1)
    end if
    if keyPressed(124) then -- right
    move(me,5,0, 2)
    end if
    if keyPressed(125) then -- down
    move(me,0,5, 3)
    end if
    if keyPressed(126) then -- up
    move(me,0,-5, 4)
    end if
    end
    on move me, dx, dy, directionMove
    -- get rect and add change to it
    oldRect = sprite(me.spriteNum).rect
    newRect = oldRect + rect(dx,dy,dx,dy)
    case directionMove of
    1: (sprite(me.spritenum)).member = member("character_left")
    2: (sprite(me.spritenum)).member = member("character_right")
    3: (sprite(me.spritenum)).member = member("character_down")
    4: (sprite(me.spritenum)).member = member("character_up")
    end case
    -- loop through possible wall sprites and detect collisions
    hitWall = FALSE
    repeat with i = 2 to 30
    if sendSprite(i,#hitWall,newRect) then
    hitWall = TRUE
    -- insert collision instructions here
    exit repeat
    end if
    end repeat
    -- if no collision, then move sprite
    if not hitWall then
    sprite(me.spriteNum).loc = sprite(me.spriteNum).loc +
    point(dx,dy)
    end if
    end
    And remember, the sprites that you're colliding with need
    their own behavior with:
    on hitWall me, objRect
    if intersect(sprite(me.spriteNum).rect,objRect) <>
    rect(0,0,0,0) then
    return TRUE
    else
    return FALSE
    end if
    end
    regards
    Dean
    Director Lecturer / Consultant / Director Enthusiast
    http://www.fbe.unsw.edu.au/learning/director
    http://www.multimediacreative.com.au
    email: [email protected]

  • About FIRST_ROW analytic function; can anyone help?

    Hi everyone,
    Can anyone help me with this simple query?
    Let's suppose I have this query (the with clause contains some data):
    WITH T AS (
    SELECT 'TEST' as COL1, 1 as COL2, 'z' as COL3 FROM dual
    UNION ALL
    SELECT 'TEST', 2, 'y' FROM dual
    UNION ALL
    SELECT 'TEST', 2, 'h' FROM dual
    SELECT FIRST_VALUE(COL1) OVER (PARTITION BY COL1), COL2, COL3
      FROM T;I would like to have only the first row returned. I was thinking that with FIRST_VALUE it will be possible, but it returns 3 records.
    So can anyone help me to have only the first record returned?
    TEST     1     zThis is just a simple example. In reality I have thousands of records. I need to get only the first record based on the name (TEST in this example). We don't really care about the other columns.
    Thanks for your help,

    user13117585 wrote:
    I would like to have only the first row returned. I was thinking that with FIRST_VALUE it will be possible, but it returns 3 records. Analytic functions don't filter rows, they just calculate values from some part of the result set.
    Aggregating is the most efficient way of doing this query:
    SQL> WITH T AS (
      2  SELECT 'TEST' as COL1, 1 as COL2, 'z' as COL3 FROM dual
      3  UNION ALL
      4  SELECT 'TEST', 2, 'y' FROM dual
      5  UNION ALL
      6  SELECT 'TEST', 2, 'h' FROM dual
      7  )
      8  select col1
      9       , min(col2) col2
    10       , max(col3) keep (dense_rank first order by col2) col3
    11    from t
    12   group by col1
    13  /
    COL1       COL2 C
    TEST          1 z
    1 row selected.Regards,
    Rob.

Maybe you are looking for

  • JSP, Data tags, How to build a form edit with multiple records

    Hi, I'm using Jdev 9i. I would like to have a JSP form where I can update, delete, insert records displayed in the same page. I know that I can use the data tag jbo:DataEdit to do it, but it only works with a single record, I want to have several rec

  • Is a Cintiq 24HD touch overkill if Illustrator/Photoshop is a hobby?

    Is it overkill? I enjoy these programs very much, but I'm wondering if it's ridiculous to invest in something that large and complex (but oh so cool), or in one of the MANY Intuos pads I know little to nothing about. Any suggestions/ comments?

  • MSI MEGA 533 with FM Radio won't connect on USB! Brand new from a box !!!

    hello, i'm having trouble connecting MSI MEGA 533 with FM Radio, on usb port on my computer. I've tried to connect it on USB 2.0 port on laptop and desktop computer, with MS Windows XP SP2 installed, nothing happens. When I start player it works like

  • Copy/paste bug in RichEditableText.as

    Hi All, I found this bug when I accidentally copied an excel file and pasted it inside a TextInput control (I thought I had copied one of the cell in the spreadsheet). Flex throws the following: Error #1009: Cannot access a property or method of a nu

  • Sendmail and host file

    How can I get sendmail to read etc/hosts when I boot our solaris machine?