Statement must appear within on/onClipEvent handler

Here's my code on my main timeline; and it makes each movie
clip (A, B, C, D, E) 'glow' when mousing-over.
Why do I keep getting this error message?
Thanks

I figured out what I did wrong there kglad. You were right -
I had the code attached to a movie clip (the parent of the movie
clip that the correct code is on the timeline of). In other words,
I had code in two different places, so eliminated the code from the
parent movie clip and the error disappeared.
Thanks!

Similar Messages

  • Error: Statement must appear within on/onClipEvent handler

    I'm getting this error Scene=Scene1, Layer=Layer 3, frame=1,
    Line1
    Statement must appear within on/onClipEvent handler
    shape.swapDepths(_root.getNextHighestDepth());
    i'm using this code:
    shape.swapDepths(_root.getNextHighestDepth());
    //shape is a movie clip
    stop();
    this.attachMovie('bcPlayer','bcPlayerInstance',this.getNextHighestDepth());
    //bcPlayerInstance._xscale = 75;
    //bcPlayerInstance._yscale = 75;
    bcPlayerInstance._y = -50;
    bcPlayerInstance._x = -5;
    //bcPlayerInstance is a movie clip
    please help anyone knows what i'm doing wrong

    >>Actually swapDepths can take either a moveclip or a
    number. That isn't the
    >>problem.
    So it can! Sorry, just never used it with anything besides a
    clip ref, and
    even then I really don't use it much as I like to keep track
    of things
    myself.
    Thanks
    Dave -
    www.offroadfire.com
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Using variables: Statement must appear within on handler

    I would like to use variables in my flash app. The app is quite simple, has many buttons, and on each of those buttons I have a simple script: on-rollover and on-release. For both actions I use the same value, which I want to put in a variable. The following script results in an error message: Statement must appear within on handler. When I have to declare the variable inside the on-handler, I have to declare it twice, which makes it useless as I have to enter the value twice. How can I get this working?
    country = "uk"
    on (rollOver)
        gotoAndPlay(country)
    on (release)
        getURL("/"+country+"/", "_self");

    try:
    Select a frame on the timeline where your buttons live and then move the buttons handlers there:
    e.g.
    myButton1.onPress = onPressFunction
    myButton2.onPress = onPressFunction
    myButton3.onPress = onPressFunction
    etc.etc.
    myButton1.onRelease = onReleaseFunction
    myButton2.onRelease = onReleaseFunction
    myButton3.onRelease = onReleaseFunction
    etc.etc.
    country = "uk"
    function onPressFunction(){
         this.gotoAndPlay(country)
    function onReleaseFunction(){
        getURL("/"+country+"/", "_self");
    If you use this approach you MUST remove the scripts from buttons themselves.
    I hope this helps.

  • Statement must appear within on Handler

    Ok. So there are a lot of things asking about this already,
    but I keep getting the "statement must appear within on handler"
    error when I try to add a gotoAndPlay event to my button...and
    reading other peoples problems and solutions has not helped me at
    all. I have attached my code, but what I am really confused about
    is what I am supposed to call everything.

    so now I have it attached to a frame in a separate layer
    (after reading some other threads) and i'm getting an Expected a
    field name after '.' operator.

  • Statment must appear within on hanlder....

    when i keep this code on my button in action.. "statment must appear within on handler" erro is generating.....
    what should i do for this .,, my code is....
    nxt.onRelease = function(){
              newthumb();

    Do not put that code on your button.  Put it in the timeline that contains the button that has an instance name of "nxt" - you can create a layer specifically for actionscript and place it there so that it is easy to find.  If you do it correctly a lowercase "a" should appear in the timeline frame where you place it.  I deally the newthumb() function should also be in that same timeline frame.
    In AS2 you can place code on objects but it is written differently.  Doing that is considered bad practice though because it makes code harder to find and can confuse targeting things properly.
    The code you show is the timeline version which is better. 

  • LOVE Firefox! I have just launched a website. One designer told me it takes 7-10 days for any changes to appear. Why? I have cleared caches and cookies etc. I need to be more responsive than 7-1o days. I need changes to appear within 24hrs.

    LOVE Firefox! I have just launched a website: www.animalhealingandhumans.com. My web designer told me it takes 7-10 days for any changes to appear. Why? I have cleared caches and cookies etc. I need to be more responsive than 7-1o days. I need changes to appear within 24hrs. How can I achieve a much better response time to good feedback?

    Hello binbingogoABC,
    Shopping on BestBuy.com should be easy and fun and not fraught with the kind of trouble that you describe. I regret very much that this has been your experience.
    Using the information you provided when you signed up for Best Buy Unboxed I was able to locate your cancelled orders. I have requested more information from my back-office partners. As soon as I have additional details about your situation, I will reply again to this message. In the interim, I'm sorry that I must impose upon your patience.
    I'm very grateful that you wrote to us with your concerns.
    Sincerely,

  • "The CREATE USER statement must be the only statement in the batch" in SQL Azure - why? what to do?

    I'm getting an error on a line in the middle of a larger sql script, only in SQL Azure.
    IF NOT EXISTS (SELECT * FROM sys.database_principals WHERE name = N'foouser')
    CREATE USER [foouser] FOR LOGIN [foouser] WITH DEFAULT_SCHEMA=[dbo]
    GO
    Error: "The CREATE USER statement must be the only statement in the batch."
    I don't actually understand what 'the only statement in the batch' means.
    What is a batch? Is it a SQL file? Is it related to a 'GO' statement or an 'IF' statement? What is the reason for the error? And how do I avoid it?
    Thanks,
    Tim

    >IF...ELSE imposes conditions on the execution of a Transact-SQL statement
    I understand the general purpose of an If statement. I could let go of our definition of statement counting disagreeing too except that because of the error I'm stuck.
    It's less important for Create User but what I am really puzzled over now is a very similar issue how am I supposed to do a safe version of CREATE LOGIN, when I don't know whether a login has been previously created on the server or whether I
    am setting up the database on a clean server?
    IF NOT EXISTS (SELECT * FROM sys.server_principals WHERE name = N'foouser')
    CREATE LOGIN [foouser] WITH PASSWORD = 'asdfasdf'
    GO
    If I try and execute this script, it throws the same error as above.
    The first unworkable workaround idea is to omit the if statement
    CREATE LOGIN [foouser] WITH PASSWORD = 'asdfasdf'
    GO
    But if the login already exists on the server (because a similar script was already run), then the script throws an error.
    The second unworkable workaround idea is to do
    DROP LOGIN [foouser]
    GO
    CREATE LOGIN [foouser] WITH PASSWORD = 'asdfasdf'
    GO
    Obviously this throws an error in the second block if the login doesn't already exist on the server.
    The third workaround idea I have is to go conditional by putting an IF condition around DROP instead of CREATE:
    Unfortunately that doesn't work for me either!
    "The DROP LOGIN statement must be the only statement in the batch"
    (This is despite the fact that 'drop login' is listed on the
    supported commands page, not the partially supported page..?! Which disagrees with the notes on
    this page.)
    Anyway the real question I am interesting in addressing is: is there actually a way to have a 'Create/Delete login
    if exists' operation which is SQL-Azure compatible and doesn't throw me error messages (which messes with the sql execution tool I am using)?
    If there is no way, I would like to believe it's because it would be a bad idea to do this. But in that case why is it a bad idea?
    Tim

  • Has anyone had an additional black screen tab appear within the apps sync screen when there are no apps on the tab?

    Hi all,
    The description of the question that I have put as the title is probably as clear as mud! LOL
    So i have attached a picture so that you can hopefully see what i am trying to explain!
    When I sysnc'd my iphone I suddenly has a "spare" black apps tab appear within iTunes but on the actual phone i only have the top tab appearing!?
    Does anyone have any thoughts on this?
    This is also doing the exact same thing on my work iphone!?

    Do you have iTunes installed on your laptop, and if so has the iPad been connected/synced to it ? If you don't have iTunes installed on it then you can download and install it from here : http://www.apple.com/itunes/download/
    If the iPad hasn't been connected/synced to iTunes on that laptop then you may also find this page useful for syncing to it for the first time : https://discussions.apple.com/docs/DOC-3141
    If you are using a PC then you should be able to copy photos off the iPad via the windows camera wizard, if you are using a Mac then iPhoto, Aperture and Image Capture can be used
    Copying photos : http://support.apple.com/kb/HT4083
    In terms of copying your documents so that you have a copy of them outside of the iPad backup (just in case the backup gets corrupted and can't be restored back to the iPad), then it depends upon what the apps that the documents are in support - some use the file sharing section on the device's Apps tab on your computer's iTunes, some allow transfer to/from a computer via your wifi network, in some you can email them, use Dropbox etc.
    When connected to your computer's iTunes you can also do File > Devices > Transfer Purchases to copy the apps and any music, tv shows etc that you've downloaded from iTunes over to your computer - they are not included in the actual (just the apps content and settings), so for the restore to be able to work they will need to be on your computer's iTunes library so that they can be copied back

  • Cookies do not get deleted / re-appear within seconds if I delete them manually and yes I've checked every single support page about this and it didn't help

    – I have the most recent version of Firefox.
    – I have my settings in Preferences -> Privacy on "Keep third party cookies until I close Firefox".
    – I've checked "Clear history when Firefox closes" and have ticked every single box under settings (except saved passwords).
    – But still, Cookies do not get deleted when I close Firefox – there are hundreds of cookies every time I open it.
    – If I go to Tools -> Clear recent history, choose "everything" and tick every single box, history etc. get deleted but the cookies remain.
    – If I go to Preferences -> Privacy and click "Show Cookies" and then click "Remove all cookies" twice, the cookies disappear, but they're back just seconds later.
    – I've even tried going to Preferences, clicking on Exceptions and manually adding some of the websites that showed up under "show cookies" and blocking them and then deleting the cookies, but still they re-appeared within seconds, and the exceptions were blank again.
    – I've checked all your support pages about this topic.
    – I've seen this https://support.mozilla.org/en-US/questions/740598?esab=a&as=aaq and tried it and it didn't help.
    – I've seen this https://support.mozilla.org/en-US/questions/936308?esab=a&as=aaq and this https://support.mozilla.org/en-US/questions/868910?esab=a&as=aaq, and yes I do use "Do Not Track Plus" and some of the Cookies seem to be Opt-Out-Cookies but most are not.
    Please help me. I used to be a big fan of Firefox but this is getting really scary.

    You can't remove opt-cookies that are added by an extension unless you disable or uninstall that extension, so you can disable the do not track extension as a test to see if that allows to remove the cookies.
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    If clearing cookies doesn't work then it is possible that the <i>cookies.sqlite</i> file that stores the cookies is corrupted.
    Rename (or delete) <b>cookies.sqlite</b> (cookies.sqlite.old) and delete other present cookie files like <b>cookies.sqlite-journal</b> in the Firefox Profile Folder in case the file cookies.sqlite got corrupted.
    You can use this button to go to the Firefox profile folder:
    *Help > Troubleshooting Information > Profile Directory: Show Folder

  • Items must appear only on the last page of a report region

    Hello everybody,
    I have a report region1, the report can contain many records thus I will have to paginate it....
    In the same page, I must have another region2 with some fields on it, but theses fields must appear only on the last page of my report,
    I don't succed to find a condition to apply to region2 in order to make it appear only on the last page of the report region1.
    Any help on this ???

    Assuming you have other content, you could:
    set the Print Object On property to be last page.
    anchor it to the main content that repeats on every page, so this frame only prints after the other one is done
    Assign a format trigger where you make it display only if current page is equal to total number of pages
    create a trailer and move the frame there

  • ORA-24333: zero iteration count  Cause: An iteration count of zero was specified for the statement Action: Specify the number of times this statement must be executed

    Get the following error from Oracle 
    ORA-24333: zero iteration count
    Cause: An iteration count of zero was specified for the statement
    Action: Specify the number of times this statement must be executed
    Any suggestions on whether is this a Oracle bug or if not what should be set to avoid this failure.

    Hello get this from executing the following.
    Occurs intermitently.
    select MAX(LENGTH(lxVal)) from lxString_74501fb6 where lxType=910231053
    Find the MaxLenght(LxVal) returned is null for this query.
    Did google it but says the iterator not initialized. But not the case here
    Thanks

  • Hello, I have try to install Snow Leopard but when I am checking the section"about this computer" is show me the same soft OS x 10.5.8. Is it that normal or it must appear a different soft there. Please also advice what to do, because I have tried twice.

    Hello, I have try to install Snow Leopard but when I checking the section"about this computer" is show me the same soft OS x 10.5.8. Is it that normal or it must appear a different soft there. Please also advice what to do, because I have tried twice.
    Thanks

    These places,
    MacBook Pro
    https://discussions.apple.com/community/notebooks/macbook_pro
    https://discussions.apple.com/community/mac_os?view=discussions 
    http://www.apple.com/support/macbookpro
    You need to buy 10.6.x DVD or flash drive (w/ Lion or Mountain Lion).
    Check Apple Store or call.

  • Making pop-up image always appear within browser window

    In my CS3 CSS site I want to have images which are only revealed when the user runs their mouse over a photo icon. I've worked out how to make the AP div, which contains the show-hide image, appear in the same position relative to the left margin of my text container div but can't seem to control where they are vertically. As they are absolutely positioned, I know that they will, in theory, always remain in the place where I have positioned them (although this appears to vary greatly from browser to browser) but this causes problems if, for example, I place them above the icon and the viewer happens to rollover the icon while it is near the top of their browser window - the photo can't be seen. Can I make the image's vertical position relative to the browser window, whatever its size, or make sure it always appears within the browser window?! I've tried setting margin top and bottom to auto but that doesn't seem to work in the same way that it does for margin right and left. An example is on this page http://www.ernestcooktrust.org.uk/Contact_biogs/biogs_trustees.html . At the moment the images are set to appear above the icon of the person they are referring to. Or is there a better way then show/hide AP divs to achieve this? Many thanks in advance for any (not too technical please) help.

    Learn CSS positioning in 10 steps - with visual examples of Static, Relative, Absolute, Fixed, Floats
    http://www.barelyfitz.com/screencast/html-training/css/positioning/
    CSS Positioning explained
    http://www.brainjar.com/css/positioning/
    CSS Positioning tutorials - w3schools
    http://www.w3schools.com/Css/css_positioning.asp
    Why  do APDivs move?
    http://forums.adobe.com/message/2181263#2181263
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Airport time capsule does not appear within wi-fi networks on my OSX neither on my IOS devices, even though the backup for my OSX is on progress. why it does not appear?

    Airport time capsule does not appear within wi-fi networks on my OSX neither on my IOS devices, even though the backup for my OSX is on progress. why it does not appear?
    Is it because the backup on progress?

    Hmmm.. ok.. well you are kind of on your own.. purchasing from another country leads to problems.. especially as the TC itself is regional .. all the setup applies to the region it is sold in.
    Make sure you are using ipv6 in the computers..
    See
    http://support.apple.com/kb/TS4597
    The 6.3 utility will not work without it.
    Make sure all names are short, no spaces and pure alphanumeric.
    Do a full reset and start over.
    But there are no more controls.. you cannot set mode..
    You can set wireless channels.. so do .. try different wireless names for the different bands.. and set fixed channels.. whatever your country allows, usually 2.4ghz you can use 1, 6, 11 but 13 maybe an option as well. 5ghz is much less clear and there are more variation. Just set to one channel and then another.
    Set WPA2 Personal security with a 10-20 character password .. pure alphanumeric mix of upper and lower case and numbers.

  • Safari Screen Draw Glitch? - History Coverflow Appears within Web Pages

    I've started noticing on a few websites that somewhere within the webpage a portion of History Coverflow will appear within the website I'm visiting...
    See pic below
    Running Safari 5.0.2 with all OS updates installed.

    I'm not getting the CoverFlow interface partially appearing in windows like you are, but on two of my Macs, I've noticed hundreds of +error: unknown error code: invalid drawable+ messages in the console from Safari.
    I think it's definitely a problem with CoverFlow, as when I launch Safari without going near the History or TopSites screens, I don't get these messages. As soon as I invoke the History window (CoverFlow view), once I return to browsing, the messages start. It's something to do with Safari capturing and caching screen images.
    The way I've avoided this until it's fixed is to change my default homepage to anything other than TopSites, and to use the History menu rather than the CoverFlow view.
    I've certainly had a few little glitches in Safari 5.x generally.

Maybe you are looking for

  • Values of fields cleared when navigating to a new page

    Hi In a transaction, I am giving values to the mandatory fields and other fields. From that page, i am navigating to other page for creating a relation or a new contact for that transaction. When i come back to the main page, values in 2 assignment b

  • Use of Cell Variant for a normal table

    Hi Experts, I have a requirement in a normal table where a row is first in read-only mode, then on click of edit button (given on that row), the row should become editable and also edit button should become invisible and two more buttons update/cance

  • How do I sync with icloud?

    I just upgraded to iPhone 4S. How do I sync my old phone to the new ones using iCloud?

  • Feature Request: Make a Setting Option for Export - Media - What to Render

    As I just changed after many years with Premiere Elements to Pro, I certainly find many things just anconversant. But there's one thing I really can't take: When I'm trying to render a project, there's a small selection list near the bottom of the "E

  • How to uninstall the always crashing Bridge soft ?

    Hello, 10,20, 30 times per day, Bridge CS5 on an Imac crashes. I would like to uninstall it before installing it again ? or remove the Preferences parameters... Do you know a way to do that ? I'm really borred by this crashing soft for a professional