Welcome to GraphicForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Trouble with a tutorial

 
   Graphic Forums (Home) -> Newbie Corner RSS
Next:  urgent/ building tutorials  
Author Message
Sand3

External


Since: Jun 06, 2008
Posts: 2



(Msg. 1) Posted: Fri Jun 06, 2008 8:39 am
Post subject: Trouble with a tutorial
Archived from groups: macromedia>flash (more info?)

I have been trying to make a loading bar using this tutorial:
http://www.m0interactive.com/archives/2006/06/20/flash_preloa.html

I've checked it over several times and I've done everything it says and
copy-pasted all the action script right, but it's still not working properly.
When I 'test movie' it sticks on the first frame and won't move onto the second
scene (off the loading screen) and also the loading bar doesn't move. This is
the error report I'm getting:

**Error** Symbol=loading, layer=Layer 1, frame=24:Line 1: ')' or ',' expected
gotoAndPlay(frame 1);

**Error** Scene=main, layer=Layer 26, frame=851:Line 1: Statement must appear
within on handler
gotoAndPlay("Main", 1);

Total ActionScript Errors: 2 Reported Errors: 2

Action script is my weak point, so I really need help translating this. Is
there something obvious that can be pointed out here or would somebody who
knows action script need to be looking at the actual .fla to figure this out?
I'm really hoping it's not the latter. I'm using Flash MX Professional and I
think that's what the tutorial was made in. Any help is appreciated.

 >> Stay informed about: Trouble with a tutorial 
Back to top
Login to vote
Noelbaland

External


Since: Jun 03, 2008
Posts: 5



(Msg. 2) Posted: Fri Jun 06, 2008 12:33 pm
Post subject: Re: Trouble with a tutorial [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hello there,

[First Error]

**Error** Symbol=loading, layer=Layer 1, frame=24:Line 1: ')' or ',' expected
gotoAndPlay(frame 1);

This error assumes you have a frame with a label named "frame 1". If so then
you need to enclose the name with quotes in the gotoAndPlay method
So it looks like this

gotoAndPlay("frame 1");

However, I think this is wrong and should say

gotoAndPlay(1);

Like in the tutorial. Unless you have a frame with a label named frame1 in
your movie?

[Second Error]

**Error** Scene=main, layer=Layer 26, frame=851:Line 1: Statement must appear
within on handler
gotoAndPlay("Main", 1);

Try one (or both) of the following. Test the movie after each change.

1) Change this

gotoAndPlay("Main", 1);

to match the name of your scene (lowercase m)

gotoAndPlay("main", 1);

The case must match when naming things in Actionscript.

2) Check in the main scene whether you have this code

gotoAndPlay("Main", 1);

attached to a button or movieclip symbol? If so then delete it off the symbol.


Hope this helps resolve your problem!

 >> Stay informed about: Trouble with a tutorial 
Back to top
Login to vote
urami_

External


Since: Nov 12, 2007
Posts: 20



(Msg. 3) Posted: Fri Jun 06, 2008 5:46 pm
Post subject: Re: Trouble with a tutorial [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Sand3 wrote:
> I have been trying to make a loading bar using this tutorial:
> http://www.m0interactive.com/archives/2006/06/20/flash_preloa.html
>
> I've checked it over several times and I've done everything it says and
> copy-pasted all the action script right, but it's still not working properly.
> When I 'test movie' it sticks on the first frame and won't move onto the second
> scene (off the loading screen) and also the loading bar doesn't move. This is
> the error report I'm getting:
>
> **Error** Symbol=loading, layer=Layer 1, frame=24:Line 1: ')' or ',' expected
> gotoAndPlay(frame 1);
>
> **Error** Scene=main, layer=Layer 26, frame=851:Line 1: Statement must appear
> within on handler
> gotoAndPlay("Main", 1);
>
> Total ActionScript Errors: 2 Reported Errors: 2

The error basically state that the way you type the action is incorrect
so can't tel you much based on it.
You need to upload your FLA and let us check it out, the actual file, not
paste error.


--
Best Regards

Urami


--
"Never play Leap-Frog with a Unicorn."


<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami>
 >> Stay informed about: Trouble with a tutorial 
Back to top
Login to vote
Sand3

External


Since: Jun 06, 2008
Posts: 2



(Msg. 4) Posted: Fri Jun 06, 2008 6:54 pm
Post subject: Re: Trouble with a tutorial [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Back to top
Login to vote
Display posts from previous:   
   Graphic Forums (Home) -> Newbie Corner All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]