This is a discussion on "What is wrong with my code" within the Flash & Multimedia Forum section. This forum, and the thread "What is wrong with my code are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
What is wrong with my code
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|
|
|||
|
Re: What is wrong with my code
his error occurs if you put object code on a frame instead of the object...
"**Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: Mouse events are permitted only for button instances on (release) ( The next two errors can result from and incomplete function or a function with an extra paren that is not needed... **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 2: ')' expected getURL("http://www.google.com", "_self"); **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 3: Unexpected ')' encountered ) The final error is due to the getURL method being empty... **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 1: Wrong number of parameters; getURL requires between 1 and 3. getURL();" If your using object code, make sure the object is highlighted before posting code in the AS window. The AS window will tell you what object or frame is in focus at the top of the window. Useful Tutorials http://ntdesigns.net/tutorial/imageAnimation.html http://ntdesigns.net/tutorial/toolTips.html http://ntdesigns.net/tutorial/Mailform.html http://ntdesigns.net/tutorial/FlashCardGames.html Wayne |
|
||||
|
Re: What is wrong with my code
Ok I get:
Scene 1, Layer 'Layer Name', Frame 1, Line 1 1071: Syntax error: expected a definition keyword (such as function) after attribute on, not release. on release{ |
|
|||
|
Re: What is wrong with my code
It should look like this:
Scott
Last Blog Entry: Yay!? (Oct 8th, 2007)
Last edited by Sgaspar11; Jul 30th, 2007 at 15:01. |
|
||||
|
Re: What is wrong with my code
ok that gives me more errors
|
|
|||
|
Re: What is wrong with my code
Flash 8 or 9? No errors for me in Flash 8.
Remember, this needs to be ON a button, NOT on the actions layer since it uses the "on" scripting feature.
Last Blog Entry: Yay!? (Oct 8th, 2007)
|
|
||||
|
Re: What is wrong with my code
9 and I'm putting the code here:
![]() |
|
||||
|
Re: What is wrong with my code
select the layer that the button is on as a symbol and action scripting, if I go into the button it says:
Current selection cannot have actions applied to it |
![]() |
| Tags |
| code, wrong |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] What have I done wrong in this code? | acrikey | JavaScript Forum | 6 | Mar 23rd, 2008 22:39 |
| What's wrong with this code?? | Lexxi | JavaScript Forum | 1 | Apr 26th, 2007 01:07 |
| AAArrrgggg....what;s wrong with this code | murf | JavaScript Forum | 2 | Nov 25th, 2006 00:50 |
| what is wrong with this code | inusrat | JavaScript Forum | 0 | Jun 28th, 2006 13:18 |
| Can somebody give me the code to hide the source code? | renren | JavaScript Forum | 7 | Mar 7th, 2006 12:27 |