Actionscript Problems....  HELP

Ok so heres the thing. I am kind of new to actionscript 3.0
and I am trying to figure out what I am doing wrong with my coding.
I have used this code time and time again and up until I got CS3 it
worked just fine. If there is anyone that can take a look at this
code and tell me what I am missing or what I might have done wrong
I would greatly appreciate your help. below is my coding I am using
to call the outside swf files and also call text documents that
hold my info. Thank you so much for looking and helping if you can
figure out what I messed up.
this.rootcontainer.onLoad = function ()
heightscale = 270.45;
this.btn_news.onRelease = function ()
if (_root.currMovie == undefined)
_root.currMovie = "news";
rootcontainer.loadMovie("News.swf",
this.getNextHighestDepth());
else if (_root.currMovie != "news")
if (rootcontainer._currentframe >=
rootcontainer.midframe)
_root.currMovie = "news";
rootcontainer.play();
} // end if
} // end else if
this.btn_band.onRelease = function ()
if (_root.currMovie == undefined)
_root.currMovie = "band";
rootcontainer.loadMovie("Band.swf",
this.getNextHighestDepth());
else if (_root.currMovie != "band")
if (rootcontainer._currentframe >=
rootcontainer.midframe)
_root.currMovie = "band";
rootcontainer.play();
} // end if
} // end else if
_root.currMovie = "news";
rootcontainer.loadMovie(_root.currMovie + ".swf");
stop ();

I tried using that code and it came up with Duplicate
function definition, function onPress_but(event:MouseEvent). do you
know why this might be showing up or did I just place this script
in the wrong spot? I have added a few more lines of code but I
didnt change anything till I added this to it and thats when it
came up with that error.

Similar Messages

  • My daughter has just bought me an iPad 2 from Dubai and set it all up for me but unfortunately the iMessage function doesn't seem to work. We keep getting messages,when trying to activate it, that there is a network connection problem - help!

    My daughter has just bought me an iPad 2 from Dubai and set it all up for me but unfortunately the iMessage function doesn't seem to work. We keep getting messages,when trying to activate it, that there is a network connection problem - help!

    Thank you both for your responses but my daughter was reassured by the salesman in the iStyle store (official Apple store in the UAE) that iMessages would work but conceded that FaceTime wouldn't. My iTunes account is registered in the uk and my daughter's iPhone has iMessages even though she bought it (and uses it) in Dubai. Can anyone else throw any light on this?

  • I couldn't log into my apple account on my iPad, then i couldn't unlock it resulting in it being disabled, however it's the same as my iPhones password, I then called apple, i was hung up on twice and they said it will cost £70 to fix THEIR problem, help?

    I couldn't log into my apple account on my iPad, then i couldn't unlock it resulting in it being disabled, however it's the same as my iPhones password, I then called apple, i was hung up on twice and they said it will cost £70 to fix THEIR problem, help?

    If you cannot remember the passcode, you will need to restore your device using the computer with which you last synced it. This allows you to reset your passcode and resync the data from the device (or restore from a backup).
    If you restore on a different computer that was never synced with the device, you will be able to unlock the device for use and remove the passcode, but your data will not be present.
    You may have to force iPad/iPod into Recovery Mode
    http://support.apple.com/kb/ht4097

  • IPad syncing problem - HELP!

    iPad sync problem - HELP!  I keep getting this message "...cannot be synced because there is not enough free space to hold all of the items in the iTunes library (additional ...space needed)"  and yet I seem to have plenty of space on the iPad.  This just started today.  I even tried deleting some things to make even more room, but it didn't help.  Any ideas??? 
    I was thinking of restoring, but I've never done it...  should I? 
    thank you!

    Hello florafromnv,
    Welcome to Apple Support Communities.
    The following article addresses how to resolve the issues related to this message:
    iOS: "Not enough free space" alert when trying to sync
    http://support.apple.com/kb/TS1503
    Regards,
    Jeff D.

  • MOVED: KT333 Ultra; fuzzy logic, 1.6xp overclocking problem help !!!!!

    This topic has been moved to Overclockers & Modding Corner.
    KT333 Ultra; fuzzy logic, 1.6xp overclocking problem help !!!!!

    Not that I am an expert o/c but here are some thoughts on the matter.
    My comments are based on my experiences of the KT3 Ultra2 which is basically the same as the Ultra version.
    This mobo does not have the ability to lock the PCI/AGP bus freely from the FSB. However, it does have dividers. At 133 a 1/4 divider kicks in. Above 152FSB the 1/5 divider works, so that at 166 the PCI & AGP buses will be back in sync. If you are o/c your cpu, don't go from 133 to 145, etc since you will be running the PCI/AGP buses further out of whack. Just go to either the mid 150's or to 166 in one jump. The other problem / issue relates to your cpu. From what you say you have one of the old Palominos which are not great o/c's. I would personally o/c your cpu from the BIOS rather than 'Fluffy Logic' which I would tend to stay away from. 
    With a 166FSB cpu a very stable o/c would be 175-177 beyond 180 gets decidedly tricky.
    Hope this helps

  • Itunes keeps closing as soon as i open it and states 'windows has detected a problem' HELP!!!!

    Help!! Itunes keeps closing straight away and message states 'windows has detected a problem' HELP ASAP PLEASE!!!!

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    If you've already tried a complete uninstall and reinstall try opening iTunes in safe mode (hold down CTRL+SHIFT as you start iTunes) then going to Edit > Preferences > Store and turning off Show iTunes in the Cloud purchases. You may find iTunes will now start normally.
    tt2

  • I have installed photoshop elements 12. when I try use the editing features it said that i must login to Adobe to register the product. but each time i try to it said there is a problem. help the problem stated that the internet is not connected, but that

    i have installed photoshop elements 12.
    when I try use the editing features it said that i must login to Adobe to register the product.
    but each time i try to it said there is a problem.
    help
    the problem stated that the internet is not connected, but that is not the case.

    I had the same issue and I'm running Windows 7.  Tried working with technical support for several hours but they were no help.  They just had me doing the same things over and over, offering no real answers.  I finally got fed up and have decided to return my product for a full refund.

  • I can't install the itunes to my windows 7 X86 APPCRASH problem, help me guys

    i can't install the itunes to my windows 7 X86 APPCRASH problem, help me guys??  i don't know what to do..

    Why are you unable to install the iPod Updater? Are you getting an error message? Please be specific.
    Cheers!
    -Bryan

  • Camera (focus) problem - help?

    Duplicate post, please see: Camera (focus) problem - help?
    Message was edited by: Admin Moderator

    Warranty is valid only in country of original purchase. You have to return
    the iPhone to the US for evaluation. Either you return it personally or send
    it to a friend/relative/co-worker in the US to take into Apple. Apple will not
    accept international shipments for evaluation nor will Apple ship out of the
    country after repair/replacement.
    Have you tried the standard trouble shooting steps: restart, restore, restore
    as new iPhone?

  • After update iPhone4 to iOS6, its stuck, showing only USB to iTunes on the screen. What to do, how to solve problem, help

    after update iPhone4 to iOS6, its stuck, showing only USB to iTunes on the screen. What to do, how to solve problem, help 

    Connect your phone to iTunes on your computer like the diagram has indicated and restore the phone

  • Actionscript 3 Help

    Hello !
    I am trying to build a dynamic menu with php , mysql and
    actionscript 3 !
    As far as this point all works fine as i can display my menu
    to flash using actionscript 3 and loading vars from php
    the problem is that i cant pass the variable correct to some
    functions i have, so my menu is useless.
    Please someone to help me or guide me to a possible solution.

    This is the Flash Player forum; why don't you post this in the ActionScript 3 forum...?

  • Actionscript problem

    Hi everyone, my first post one here so i hope someone can be of assistance.
    I have been using CS4 with no problems for a couple of months, but i suddenly encountered a problem that i can't get beyond now.
    when i click on 'actions' my timeline collapses. This happens whether from right clicking on my timeline or selecting it from the top menu.
    Since this has happened i can't find a way of bringing up the actionscript screen.
    Has anyone had this problem before?
    I hope this makes sense!
    Thanks very much in advance.

    This forum is for suite specific issues only. I can only assume you're looking for Flash help.
    If so, please post in the Flash forum.
    Bob

  • Preloader Actionscript problem

    As a relative newcomer to Actionscript, I came across a
    preloader tutorial (from a trusted source) which reveals a cut out
    photograph as the movie loads. I decided to use it, but although I
    have checked and double-checked the Actionscript, Flash 2004 keeps
    reporting an error and the preloader is not working.
    The problem is obviously in line 6 and I just thought that
    someone might be able to look at the Actionscript and see the
    problem (which I can't!).
    Here's the Actionscript;
    stop();
    mask_mc._height = 1;
    this.onEnterFrame = function() :Void {
    var loadedData:Number = this.getBytesLoaded();
    var allData:Number = this.getBytesTotal();
    var percent:Number = Math.round(loadedData/allData=100);
    mask_mc._yscale = percent;
    if (loadedData>=allData) {
    gotoAndStop(10);
    delete this.onEnterFrame;
    Here's the error report from Flash;
    **Error** Scene=Scene 1, layer=Actions, frame=1:
    Line 6: Left side of assignment operator must be variable or
    property.
    var percent:Number = Math.round(loadedData/allData=100);
    Total ActionScript Errors: 1 Reported Errors: 1
    Many thanks for any help.

    you have an assignment operator (=) where you should have a
    multiplication operator (*) at the END of that line.

  • Actionscript 3 help. Please respond!

    Hello, I'm new to Actionscript 3 and still getting the hang of all the changes and such. However, one problem is sorely annoying me, and I need some outside opinions on what could be wrong. The code is basically a rewritten version of some code I found someplace else, and my main goal is to find out the error with the code. The code looks like:
    package
    import flash.display.MovieClip;
    import flash.events.MouseEvent;
    public class Main extends MovieClip
    var sceneOne:SceneOne;
    var sceneTwo:SceneTwo;
    var sceneThree:SceneThree;
    public function Main()
    sceneOne = new SceneOne(); trace("Working");
    sceneTwo = new SceneTwo(); trace("Working");
    sceneThree = new SceneThree(); trace("Working");
    addChild(sceneOne); trace("Working");
    //Add event listeners
    this.sceneTwo.OutsideButton.addEventListener(MouseEvent.CLICK, onHillButtonClick); trace("Working");
    this.sceneTwo.bathroomButton.addEventListener(MouseEvent.CLICK, onPondButtonClick); trace("Working");
    this.sceneOne.livingRoomButton.addEventListener(MouseEvent.CLICK, onBackButtonClick_Hill); trace("Working");
    this.sceneThree.livingRoomButton.addEventListener(MouseEvent.CLICK, onBackButtonClick_Pond); trace("Working");
    //Event handlers
    function onHillButtonClick(event:MouseEvent):void
    addChild(sceneOne);
    removeChild(sceneTwo);
    function onPondButtonClick(event:MouseEvent):void
    addChild(sceneThree);
    removeChild(sceneTwo);
    function onBackButtonClick_Hill(event:MouseEvent):void
    addChild(sceneTwo);
    removeChild(sceneOne);
    function onBackButtonClick_Pond(event:MouseEvent):void
    addChild(sceneTwo);
    removeChild(sceneThree);
    The error is occuring @ line 22, saying:
    TypeError: Error #1010: A term is undefined and has no properties.
    at Main()[/Users/Mike/Documents/Main.as:22]
    I'm unsure as to what the problem is, as I give it properties. Please help, thank you.

    This is the Flash Player forum; why don't you post this in the ActionScript 3 forum...?

Maybe you are looking for

  • Ipod Touch internet

    Hi Im having a problem that many people seem to have. My Ipod touch 2nd Gen wont connect to the internet. I know that my wireless Netgear router works as im using it now. i also know that my ipod touch works as when i was at home it worked on that wi

  • Photos on Hard drive

    I imported about 1000 photos on my macbook pro and when i look at my all images folder it shows duplicates of all pictures and i have over 6000 photos in the folder. What can be done to clear up hard drive space on my computer.

  • Certain MP3s cause iPod reset on fw 1.2

    Wow, this is odd. I have two iPods that keep (or kept) me sane while travelling. I have the 60GB video ipod, and the all new 80GB video ipod. Both are running firmware 1.2. The new ipod I manage using iTunes and the old one is managed by Anapod Explo

  • JBO Debug Info

    After running my applet in the java plugin i get the following error: the Diagnostic.properties in jbomt.zip are set to the defaults in the package. i think the jbo wants to open a local stream for debugoutput, but i can to that by security restricti

  • Batch import of metadata?

    Hello, I'm hoping someone can help me with the following problem: I have a large amount of PDFs and XMP files. Each PDF needs metadata imported from a corresponding xmp file of the same name. All the files are located in the same folder. Is it possib