PDA

View Full Version : would someone please help me?


nicole
08-17-2002, 04:55 PM
I am ready to jump out the window. I have been trying to learn how to do so called simple actionscripting (enormous final project is due in 3 days and I have no earthly idea what I'm doing)

I am attempting some simple things and then if they worked I was going to try to build on that and try to learn that way. I thought the code below was pretty basic but aparantly I am mistaken. any assistance you could provide would be greatly appreciated!

onClipEvent (enterframe);
{
if (press=true);
}
{
_root.green circle mc. rotation +10;
}
_________________________
on (rollOver)
press=true;
{
on (rollOut)
}
{
press=false;
}

Abelius
08-17-2002, 08:46 PM
Can you upload the file, so we can analyze it and see what is to be done? :)

nicole
08-17-2002, 10:05 PM
thanks!

tg
08-19-2002, 03:52 PM
well, you've got quite a few problems here.
1. your not using your instance names:
one circle has an instance name of GC and you are referencing it with 'green circle mc' change all of those to 'GC'.
your other mc has no instance name.
2.you need to double check the way your nesting things:
your code looks like:

onClipEvent (enterframe);
{
if (press=true);
}
{
_root.green circle mc. rotation +10;
}

if should look like:

onClipEvent (enterframe);{
if (press=true){
_root.green circle mc. rotation +10;
}
}


there are also problems with the nesting in your on(rollOver)/on(rollOut)
3. change if(press=true) /*to*/ if(press==true)

i think if you go thru the first 5-10 beginner tutorials here, they will give you a good idea on how alot of this stuff works. and you'll have no problems sorting thru these problems.