-
Trouble finding the syntax error
http://www.mediafire.com/?5qldljhmf0iv92q
I have trouble finding the following syntax, went to the actions panel cannot find it at all.
Location:
frame1, Line 1
Description
1087: Syntax error: extra characters found after end of program.
Source:
on (release) {
I've had it, tried everything but nothing works Anyone here who wants to help me out, wants to take a look?
-
Senior Member
This is obviously written in AS2.
I dont even know where to start---
If you are asking what is the as3 version of as2's on(release), then:
Actionscript Code:
mc.addEventListener(MouseEvent.MOUSE_UP, mcRelease);//mc is the movieclip function mcRelease(e:MouseEvent):void{//event handler //code }
Most of the actionscript that I see in the flash document has been excluded because they were location 'on top of' movieclips (which is a big as2 thing, but was completely removed in as3).
Best of Luck!
-GK>'.'<
Last edited by guardiankitty; 01-05-2012 at 07:33 PM.
-
Sorry mate, you get me wrong here. I'm not asking you to rewrite. Just to point where exactly that faulty line, because that's the only syntax error left.
I cannot find it at all.
Location:
frame1, Line 1
Description
1087: Syntax error: extra characters found after end of program.
Source:
on (release) {
All the other old AS2 lines are just stop(); should not make any problems or do they?
-
Senior Member
I looked throught he file that you have linked to, I dont see the following:
Location:
frame1, Line 1
Description
1087: Syntax error: extra characters found after end of program.
Source:
on (release) {
SINCE on(param){} is a (prevalent) as2 function, it most likely is located 'on top' of an instance of a movieclip.
In actionscript 3, you are unable to place as3 script on any movieclips (but in them is OK).
So I am guessing that any as3 script that was on movieclips, has gotten 'eaten up' when converted to as3 from as2 (the warnings the compiler is giving me are confirming this).
Honestly, I would cut your losses and rewrite the whole kit and kaboodle for as3.
Best of luck!
-GK
-
Or I have to make a guestbook in AS2, but so far none of the AS2 guestbooks work on my school server while AS3 based Guestbook do. Or do you know a AS2 based guestbook tutorial that's sure to work?
-
Senior Member
none of the AS2 guestbooks work on my school server while AS3 based Guestbook do
All that means is the as2 swfs are written incorrectly. Flash is a client side technology that runs on the client not the server.
Actionscript Code:
Or I have to make a guestbook in AS2, but so far none of the AS2 guestbooks work on my school server while AS3 based Guestbook do. Or do you know a AS2 based guestbook tutorial that's sure to work?
The word guestbook really means nothing to me.
If by 'guestbook' you mean to ask: 'how can I save an input field (like for a someones name) that can be saved and displayed in flash', then you will need to use a language outside of as2-3 for use on your server.
I would recommend php for this job. Read up on this here and here
In short,
Saving Names:
Have an input field in flash.
Take input and send to PHP.
PHP script, opens a file (like a txt file), appends to the end of it on a new line, the input.
php saves and closes the file.
php echos a 'im all done and everything is well' message.
flash reads this 'im done' message, and displays: "Name Saved Successfully".
Loading Names:
Have a text field in flash.
When the movie is first run, have it load variables from a php script.
php reads from a given text file.
php echos all of the results.
Flash loads these results.
When load is complete, parse and display the names in flash.
That should give you a little to chew on without me just typing the whole thing for you.
Hope that helps friend,
GK
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|