Something is corrupted: Code auto format, Flash CS3

Not sure if this is the forum to post, but thought someone
here would know where and kindly direct me if I'm in the wrong
place!
I have had Flash CS3 Pro installed for a while, but am only
now using it regularly as AS 3.0 projects were few and far
between...
However, now that I am, I am being driven insane by the code
autoformat that strips out parentheses and breaks all my code by
changing the meaning of code. As far as I can make out, this is
specific to my machine - implying something is corrupt. So, I
uninstalled all versions of Flash and reinstalled CS3 specifically.
The trouble is, code formatting is still dangerously buggy
and now (because I have uninstalled Flash 8) I no longer have code
formatting even for AS 2.0!
Has anyone come across this before?
Any ideas how to get past it?
G
PS: As an additional piece of trivia that may be related,
Flash player is now not correctly reported so I am getting "Install
flash plugins" warnings from a couple of sites even though I have
it and it works fine.

Hi,
Sorry, but you are not understanding me - I do not have an AS
2.0 formatter because the formatter I have with CS3 breaks code no
matter what version of ActionScript I am in - the Flash 8 one
didn't.
As for using non-standard coding, here is an example:
halfWinPositionWidthRelative=visibleImageW / (2 * fullWidth);
Is formatted to:
halfWinPositionWidthRelative=visibleImageW / 2 * fullWidth;
To give you an idea of why this is so bad:
var visibleImageW =50;
var fullWidth = 1500;
trace(visibleImageW / 2 * fullWidth) // traces 37500
trace(visibleImageW / (2 * fullWidth)) // traces
0.0166666666666
As another symptom (more an irritant than a problem) all my
"new WhateverClassNameIAmUsing();" declarations get formatted to
"new WhateverClassNameIAmUsing ;"
This means that I _cannot_ use the auto formatter for any of
my work as it _breaks_ my code - resulting in endless loops, random
madness and absolute corruption of all the work I have done.
I have compared with another CS3 user and the results are
specific to my machine - which is why I want to find out how to fix
the corruption on my machine.
Gaius

Similar Messages

  • Code auto-formatting question

    I just looked at the textmate editor, and they have the
    feature that quotes, braces, parentheses, etc. are auto-matched
    when you enter the first of a pair. They also have some nice
    auto-indenting.
    Is there any way to get the matching functionality in
    Dreamweaver? I found that tags can be auto-closed, but I couldn't
    find the option for anything else. Thanks for your help.

    Please make this good suggestion using the wish form.
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "invictus26" <[email protected]> wrote in
    message
    news:gj7hud$n8h$[email protected]..
    >I just looked at the textmate editor, and they have the
    feature that
    >quotes,
    > braces, parentheses, etc. are auto-matched when you
    enter the first of a
    > pair.
    > They also have some nice auto-indenting.
    >
    > Is there any way to get the matching functionality in
    Dreamweaver? I
    > found
    > that tags can be auto-closed, but I couldn't find the
    option for anything
    > else.
    > Thanks for your help.
    >

  • New version of Flash, same auto format bugs

    When Flash CS3 came out, the first thing I noticed when I sat
    down to use it for the first time was that the ActionScript Auto
    Format was unusable because of bugs that were present in it. One of
    the bugs was that it would actually REMOVE parenthesis from certain
    lines of code, and next to object initializations. This made it
    unusable because it would constantly break programs. So pretty
    much, in CS3 you had this Auto Format feature (that worked
    wonderfully in previous versions of Flash) that was just there and
    couldn't actually be used by anyone who was going to do any sort of
    serious programming. This was pretty hard to believe being that
    Auto format worked fine in previous versions of Flash (I can't
    remember if it was in 8 or after 8 it broke).
    So I take my time, go to the Flash CS3 bug reporter, and
    report the bug.
    Fast forward a few years. CS4 comes out. I immediately buy
    the upgrade. What's the first thing I look at? The Auto formatter.
    To my dismay, it still contains the exact same bugs it did when CS3
    came out years ago. I almost felt like asking for a refund. I don't
    think it's too high of an expectation for a bunch of obvious bugs
    to be fixed.
    Then I have to ask myself, am I the only person on planet
    earth who uses the ActionScript Auto format? I used to love it to
    just clean up my code and indent it. I mean right now, it's just
    like "there". I don't see how anyone can actually be using it in
    its current state. Adobe should either get rid of it or fix it,
    preferably fix it.
    I guess my question is, to anyone really, or preferably
    Adobe, what's going on here? Is this ever going to be fixed? It's
    not really fair that a feature that used to work perfectly has been
    broken in the last two major versions of Flash. Is there any
    possible way for Adobe to send down a fix for this, or is there a
    way for the user to fix it on their own?
    Thanks in advance.

    Never mind, I chose this option:
    http://fpdownload.macromedia.com/pub/flashplayer/latest/help/install_flash_player.exe
    It finally allowed me to install. It is working. Adobe, I am disappointed that this update was so frustrating to install. Shame on you.

  • CS3 - Auto Format doesn't compact blank lines?

    In Flash 8 on OS X, using Auto Format used to remove blank
    lines. I can't seem to find a way to enable this in CS3. Is it
    possible?

    Additional three thoughts: First, is there anything I can do while still in MS Word to enable Acrobat to see the check boxes easier? Different font? Same font, but different "character"? Etc. Second, if there is no way the check boxes can be recognized and converted, is there a way to do an after-the-fact search-and-replace, searching for the check boxes and replacing them with clickable boxes. By the way, I don't need to capture data; I just need for people to be able to fill out the form on their computer and print it. Third, if Acrobat can't do this, is there third-party form software that recognizes check boxes?

  • Import Swf file corrupts in Flash CS3

    Hi,
    I have recorded my desktop activity in "My Screen Recorder
    Pro" and export the movie as swf file. While playing it on Flash
    player 9, I found NO problem at all but when I import it into Flash
    CS3 (or Flash 8) to embed with my project the file get corrupted
    and I could see black solids squares in between. How do I get clean
    swf file which is just fine when playing in Flash player?
    Raju Sachania

    Probably because you used _root within your scrollbar code.
    If that's the
    case you can fix by setting lockroot to true, within your
    scroll bar swf.
    Just place a this._lockroot = true; as the first line in
    frame 1's code.
    That being said, it's better to simply avoid using _root.
    Dave -
    www.offroadfire.com
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Migrating from older Flash Pro versions causes Auto Formatting to malfunction

    I have recently upgraded my Flash CS4 to Flash CS5 on my MAC, and Flash CS5 to Flash CS5.5 on my PC, these upgrades are causing the Flash Auto Formatting feature to malfunction, it somehow becomes a tool that breaks my code and causes errors while exporting, instead of simply re-arranging the lines.
    This is happening with all my codes and all my projects, not a specific line of code.
    Anybody has a clue how to fix this? Is there some sort of an Adobe update for this?
    Thanks folks!

    Nope it is just badluck, i just answered this on another thread but google it im sure there is a way to fix this, i am sure of it.
    but next time FINISH your projects before moving computers or flash versions because you might encounter this.
    I have no problems with changing versions but changing computers OS is pretty understandable to cause errors.
    hope this helped.

  • Help with Flash CS3 Particle Effect Tutorial Code

    I did the tutorial from http://www.schoolofflash.com/2008/03/flash-cs3-particle-effect/. I used a star to replace the circle. Here's my code:
    var starsArray:Array = new Array();
    var maxStarss:Number = 8;
    function addStars(e:Event)
        var stars:Stars = new Stars();
        stars.x = stage.stageWidth/2;
        stars.y = stage.stageHeight/2;
        stars.alpha = Math.random() * .8 + .2;
        stars.scaleX = stars.scaleY = Math.random() * .8 + .2;
        stars.xMovement = Math.random() * 10 - 5;
        stars.yMovement = Math.random() * 10 - 5;
        starsArray.push(stars);
        addChild(stars);
        stars.cacheAsBitmap = true;
        if (starsArray.length >= maxStarss)
            removeChild(starsArray.shift());
        stars.addEventListener(Event.ENTER_FRAME,moveStars);
    function moveStars(e:Event)
        e.currentTarget.x += e.currentTarget.xMovement;
        e.currentTarget.y += e.currentTarget.yMovement;
    var myTimer:Timer = new Timer(50);
    myTimer.addEventListener(TimerEvent.TIMER, addStars);
    myTimer.start();
    This time, I'm trying to make the stars shrink and transparent as they move away from the point. So I coded it like this:
    import flash.events.Event;
    var starsArray:Array = new Array();
    var maxStarss:Number = 8;
    function addStars(e:Event)
        var stars:Stars = new Stars();
        stars.x = stage.stageWidth/2;
        stars.y = stage.stageHeight/2;
        stars.alpha = Math.random() * .8 + .2;
        stars.scaleX = stars.scaleY = Math.random() * .8 + .2;
        stars.xMovement = Math.random() * 10 - 5;
        stars.yMovement = Math.random() * 10 - 5;
        starsArray.push(stars);
        addChild(stars);
        stars.cacheAsBitmap = true;
        if (starsArray.length >= maxStarss)
            removeChild(starsArray.shift());
        stars.addEventListener(Event.ENTER_FRAME,moveStars);
        stars.addEventListener(Event.ENTER_FRAME,animeStars);
    function animeStars(e:Event)
        trace(this.starsArray);
        this.scaleX-=0.01;
        this.scaleY-=0.01;
        this.alpha-=0.01;
        if (this.alpha<=0) // remove this object from stage
    function moveStars(e:Event)
        e.currentTarget.x += e.currentTarget.xMovement;
        e.currentTarget.y += e.currentTarget.yMovement;
    var myTimer:Timer = new Timer(50);
    myTimer.addEventListener(TimerEvent.TIMER, addStars, animeStars);
    myTimer.start();
    I couldn't make it work. All I got was an error message saying "
    1084: Syntax error: expecting identifier before rightbrace.
    Help?

    It is because of this line of code at the end
    myTimer.addEventListener(TimerEvent.TIMER, addStars, animeStars);
    if you read the documentation on addeventlistener it looks for these type of arguments to be passed
    addEventListener(type:String, listener:Function, useCapture:Boolean);
    animeStars is not a boolean it is a function. Since you already have animeStars in your addStars function you can exclude it in the last event listerer. try this:
    myTimer.addEventListener(TimerEvent.TIMER, addStars);

  • Flash CS5 format to Flash CS3 Format

    Hi.
    I'm using Flash CS5 and i need to save the animations i am making on Flash CS3 format.
    How can i do it?

    Get a copy of Flash CS4 (or find someone who has it) so that you can save from 5 to 4, then from 4 to 3.  If you used any features that are new since CS3 they will be lost.  If you need to find CS4 you can trial versions at http://prodesigntools.com/download-adobe-cs4-and-cs3-free-trials-here.html

  • Do  new  FLASH CS3  support s AS2  codes ?

    Hi folks . . .
    When we use AS3 development tools , will old flash codes (
    AS1 and AS2 ) work correctly after this ?
    And can we use AS2 codes by flash cs3 tools ?
    Do ADOBE support AS1 and AS2 codes for a long time ??

    Yes. Flash CS3 is pretty much Flash 8 with new features and
    support for what
    it supported before (AS1 and AS2) and more (now additionally
    AS3)
    "firatadobeturk" <[email protected]> wrote
    in message
    news:f2l4f9$9i3$[email protected]..
    > Hi folks . . .
    > When we use AS3 development tools , Do old flash codes (
    AS1 and AS2 )
    > will work correctly after this ?
    > For a long time , does ADOBE supports , AS1 and AS2
    codes?
    >

  • My Flash CS3 document got corrupted and its not showing timeline frames & drawings on stage. How to retrieve it?

    My Flash CS3 document got corrupted when I clicked on the option "Save & Compact".Now its not showing timeline frames & drawings on stage. Can someone please help me by telling how can I retrieve my work..???

    copy your fla.
    rename the copy to a dot rar file and use winrar to repair it.  then unrar to see if you can get a uncorrupted copy.
    otherwise, rename your fla to a zip, unzip it and recover whatever assets you can.
    or if you have a good swf, try a decompiler (like sothink's) to see if you can recreate your fla.
    and, in the future, save versions of your work so you never have to go through this learning experience with flash or any other document creation tool.

  • Flash cs3 unexpected file format ... how can I open this .fla??

    Hi there,
    Someone sent me a .fla file that I can't seem to get opened in my Flash CS3 program.  I think it's because it was made in CS4 which isn't backwards compatible with CS3.
    So, now I'm wondering if there is a way I can open the .fla file in CS3.  Better yet, is there some kind soul here that could possibly open the .fla in CS4, and save it as a CS3 and send it back to me?
    I would normally just ask the guy to do this himself but he left on vacation today and I haven't had a chance to try and open the file until now.
    Thanks
    Mike

    upload your fla and post a link.

  • AS3 Auto Format not recognizing comments

    Something is corrupt with my Flash Professional CS5 Actionscript Auto format:
    Comments within a block, such as ' // ' or block comments ' /* ... */ ' are tripping up the Auto Formattor, which returns this error: ' Error with autoformat near line: }  '.
    Comments before package block don't cause an error.
    When I remove comments within package block, Auto format works correctly.
    How can I fix my Flash CS3 ActionScript editor Auto format?

    the problem you're seeing is the least of the known problems with auto-formatter.  the worst is the auto-formatter change change well-written code to be mal-formed code.
    so, while i don't think you can fix your auto formatter, what you can do is copy chunks of code to a new fla or as file and auto-format that chunk.
    then check that it's been formatted correctly and nothing essential has been changed.  (ie, at least, check for errors.)  if everything looks ok, replace the unformatted chunk in your original file with the formatted chunk.
    that's the wisest way to use auto-formatter.   it's also good to know and use the undo so you can always undo an auto-format botch.

  • Flash CS3 Issues ..?

    Hi - General question ii hope some cna help me with.
    Recently downed Flash CS3 - Dreamweaver and PS
    No issue on install - things i thought were going fine
    Comps got a fresh OS and updated drivers new - 2 gig of
    memory.
    i've been noticing little things like - when i save my fla -
    i updates other .fla's in the same folder - (not with the same
    name)
    I just built a CF and now - with no change to the swf - when
    i saved the .fla after a minor update - it changed all the other
    versions of .fla and the .swfs - all were empty - 1k swf and 1k
    .fla's after saving.
    when attempting to preview the fla's i had been using and is
    working fine on my site. Flash stated it had preformed and illigal
    something? and crashed and keeps crashing upon attempting a preview
    whethr browser or flash.
    I checked all code and code in the xml's js nad action
    scripts html etc etc - it was fine
    Now here is the kicker - my flash player ? seems to be
    missing over and over - i go to the adobe site - it shows it's not
    installed - i've installed it at least 8 damn times today. I dont'
    know if this is realated - but - it seems to be happening
    after deleting the 1k .swf's and fla files it produced
    I coped and pasted a back up copies of the .swfs and .fla's -
    which worked fine while in the back up folder - worked perfectly -
    till i opened it up the .fla in flash ( rechecking code to be sure
    i didn't miss something.
    Flash did it again, emptied or changed the back-up copy of
    the .swf and .fla down to .1k - empty nothing there. all i did was
    open it up?
    did a virus scan - a spy ware scan - nothing - didnt' think
    there would be - but better safe than sorry.
    These issues just really kicked in today - while i was
    working on a final .fla and considering some changes additions -
    going to experiment and get deeper into what i wanted to create.
    Till around 4pm today my .fla's and .swf Previewed fine and
    played fine - then just quit - and though it won't preview - i
    tested a export movie - the new .swf worked???
    any thoughts on the cause?
    Possible software conflict - maybe?
    but that wouldn't explain the Flash player not showing as
    installed on the adobe site or would it.
    I need to finish this fla soon, so i could use some help with
    this if any one has some suggestions as to what may be causing the
    issues.
    tia
    - c -

    thanx for the reply jdmajor -
    as mentioned - i scanned yesterday - first thing was a boot
    scan - memory scan - file scan - took 3 hrs to scan everything so
    many times - nothing popped up - well.....
    a Avast stated a cab file was corrupted on the boot scan -
    reinstalled Avast - re-updated signatures and Re-Boot scanned,
    memory scanned.
    Nothing showing as corrupted as far as viruses trojans worms
    etc
    did the usual maintanence - defrag - etc etc which
    maintanance is done nightly anyway.
    checked all updates for wares - nothing.
    drivers - nothing new.
    The flash player needing to be re-installed has been from the
    begining - lasts usually a couple days - then it shows as not being
    installed and i have to re-install it - now it's worse - yet
    thoughit shows not installed via the Flash Player page - it plays
    flash fine so i know it's installed.
    there are no hacked warz on the comp.
    Tried again last night - with some other back-up copies of
    the fla. -
    it keeps bring the 12k file to 1k and it refuses to work -
    now claiming it can't load the .xml file which is ...
    aaaarrggh! frustrating to say the least... lol up till 2:30am
    trying to fix it
    rebilt another mini file - worked fine - maybe there is
    something conflicting with paper vision.
    though there shouldn't be - i'm not re-writting the files.
    Just opening an existing previously working .fla file.
    I downed flash again last night - thought maybe a re-install
    of flash cs3
    - but...??? haven't done it yet
    tried debugging the script - nothing other than it keeps
    staing now that it can't load the .xml file
    checked pathways - a hundred times - they're correct.
    issue is somewhere... that's for sure.
    thanx for the suggestion
    i'll try a safemode scan - maybe it will reviel somthing
    though to be honest i hope not - not wishing for virus or worm I'd
    rather it be something else to be honest.
    Doesn't anyone come up with viruses and hacks that do good
    things ?
    lol theres a thought

  • Bug in Auto Format

    I copy a large chunk of code into a new project in CS3 and
    press the Auto Format button, the result was that some of the '('
    character disappear
    the code before:
    aoX = (aR * 0.607) + (aG * 0.174) + (aB * 0.201);
    the corrupted code after
    aoX=aR * 0.607 + aG * 0.174 + aB * 0.201;
    Be careful
    Yair

    The promlem that Auto Format remove even it change the math
    before
    public function demo(val:int):int
    return ((val - 5) * 7);
    after
    public function demo(val:int):int
    return val - 5 * 7;
    if val = 7
    before result = 14
    after result = -28
    I have got weird result after I run an algorithm of painting
    and thats was the reson
    ANY WAY auto format should not delete any code and specially
    parens
    Yair

  • CS5 will not compile AS3; no AS3 Syntax Check; no AS3 Auto Format

    I had the trial version of CS5, but it expired. I bought the upgrade and tried to modify a previous Document Class from CS3 in AS3, but the Syntax Check just gives me the error beep, not the happy "ding" with the no errors popup. I try to click the Auto Format and the IDE pops up an error window: "This script contains syntax errors, so it cannot be Auto Formatted. Fix the errors and try again." No errors are in the ouput window (even with either Filter level). Document Classes do nothing even though the compilation runs without any problems; no errors, but no code execution (not even a trace("x");).
    This seems related to the "no code hinting" posts, but I've tried their workarounds, but nothing seems to get my AS3 engine working properly.
    I have removed, reinstalled & rebooted 3 times, the demo version and LWS version (which have different sized install Setup.exe ?!?!), and tried the Adobe update. I also tried using the 4.1.0 flex_sdk, but I've found no solution.
    All the code I am trying in CS5 comes from CS3 and Sytnax Check fine and Auto Formats correctly. AS2 in CS5 functions as expected with Syntax Check and Auto Format working just fine.
    My repeated Web cases through the Support Portal have been denied and they tell me to post it here. I posted to the Flash General forum, but no one had anything to say.
    I'm on Win XP Pro SP3.
    Thanks,
    Dave

    Dave,
    It sounds to me like you may need to find a clean up script after the app is uninstalled. Or you can try just a few bits and pieces or you code to start with in a new file. That's the only thing I can think of besides reformatting to clear your entire registry of Adobe Flash items. I always do a reformat of my entire computer everytime a new version of the Adobe products comes out, saves a bit of headache.
    C

Maybe you are looking for

  • [HP PAVILION DV6T-7000 (A5F76AV)] Can the graphics card be upgraded?

    Hi.  My [HP DV6T-7000 (A5F76AV)] has a dedicated NVIDIA GT-650M 2GB graphics card. Would it be possible to upgrade this to say GTX-680M or higher? Thanks.

  • How do I copy artwork to iPod just once for an album, not for every track?

    I don't download music. All my music is ripped from CDs that I own. After I rip a CD, choosing "Get Album Artwork" from the Advanced menu normally works, and if not, I find the highest quality image I can from the web, and copy & paste that into the

  • How can I get suggested spellings in Keynote 09.

    Choose Edit > Spelling > Spelling. The Spelling window opens and the first misspelled word is highlighted. Each language has a different spelling dictionary. To make sure that the correct language is selected, select the text you want to work with, c

  • If u expert Please tell me

    i have one doubt i have 4 table this table have record a is 11,b is 3,c is 1 and d_city is 0 and field is a(city_code,name ,dept) b(dept,dname) c(dept,salary) d_city(city_code,city_name) all table dont have index,con. ect just simple create.. my quer

  • ISE 1.0.4 & Windows Active Directory

    We are planning to add a NAC sollution in our network and we are a  little confused with ISE. Can ISE support signle sign on with Windows  Active Directory in this version 1.0.4? If yes how we can do it? Thank you