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.
Similar Messages
-
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. -
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/ -
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. -
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?
ThanksI 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! -
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, -
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 -
– 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 -
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.
ThanksThese 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?
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. -
Menu bar (that has tools, history, etc.) that must appear on top of firefox page is absent. How do I fix the problem?
There are other things that need attention.
Your above posted system details show outdated plugin(s) with known security and stability risks that you should update.
# Shockwave Flash 10.1 r85
# Next Generation Java Plug-in 1.6.0_18 for Mozilla browsers
Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
*http://www.adobe.com/software/flash/about/
Update the [[Java]] plugin to the latest version.
*http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE) -
Some Google delegate calendars won't appear within iCal
Strange. My main Google calendar syncs just fine with iCal. So does the Google Holiday calendar (which is a delegate.) I added the St. Louis Rams and St. Louis Blues calendars as delegates. They appear in the delegate window in iCal preferences and, when I checkmark them there, also appear in the calendar list within iCal. Trouble is, the actual events contained in the sports calendars are not displayed in iCal, for example, a Rams game scheduled for Sunday at 4:05pm doesn't appear at all. I did check and those events are displayed correctly on the web-based Google calendar. Any ideas as to a fix are appreciated.
Similar problem here. I can select the delegate calendars within iCal, but it simply doesn't sync any events for the delegate calendars. I'm also returned an error if I try to manually subscribe to the calendars, e.g. using a direct link from the Google calendar settings.
Either way, I think it's all related to a known block Google have implemented to deal with an iCloud conflict. Keep an eye here for a solution...although it's been several months already obviously:
http://support.google.com/calendar/bin/answer.py?hl=en-GB&answer=99360#
The iPhone select utility should get things rolling on any iOS devices. See:
https://www.google.com/calendar/iphoneselect
NB. You must do it individually from each individual iOS device.
Maybe you are looking for
-
Keyboard doesn't work on my Satellite L when built-in
Hi, I have a really strange problem. One day suddenly my keyboard stopped working (doesn't matter if in windows or on boot). I thought maybe some how the cable between keyboard and notebook disconnected and opened the keyboard to check this and reali
-
I have an iPad 2s, I use DSL with Century Link as my internet provider using a router for my wireless connection. I am on my computer at the moment writing this question so I am online. Problem is I cannot get online with my iPad. Do I need to send m
-
Disk Utilities- how to erase HD?
i'm trying to erase the content of my macPro and i was told that using Disk Utilities was a good choice. the problem is that when i open it and click "Erase" the 'Volume Format' option remains dark grey, not giving me the option to select my hardrive
-
Can't download Indesign CC to my laptop.
I receive the following message when clicking on the download button "InDesign is a desktop app so you'll want to download it from your computer." I am trying to download inDesign CC on my ultrabook with Win 7 installed. Please help!!
-
3 month old 3gs never had a problem bought iphone 4 att moved contacts n pic now 3gs is always mre booting its self every few min any help to stop it have done hard shut down no help