Article Focus: In this video tutorial, Creative Cow leader Tony Ross revisits the tutorial how to build a basic site about Colors in Flash. This version is created using Actionscript 3. The basic principles learned from this tutorial will enable the user to create a variety of simple websites. Elements covered are basic Actionscript 3, navigation, labels, button and graphic symbols.
There are so many tutorials online but none of them ever make any sense. Tony explains things in HUMAN terms and every tutorial you can do right away. I love creative cow!
Hey! I've done this tutorial before
by Karl Doerrer on Oct 28, 2009
Hey! I've done this tutorial before when I was using CS3 and it worked fine, but I'm using CS4 now and it's not working. It's doing the same problem as Chris Cardinale. It just runs through the colors and then gives me this error message.
1120: Access of undefined property yellow.
1120: Access of undefined property green.
this is what I have in the actions.
i watched your tutorial again to see what i did differently and i did everything perfectly as you said.
but it still does this error. like i said i've done this tutorial successfully in CS3, but maybe CS4 has some issues? Please help! Thanks man and awesome tutorial your jokes do keep my attention lol.
stop();
function colorNav(event:MouseEvent):void{
gotoAndStop(event.target.name);
}
grey.addEventListener(MouseEvent.CLICK,colorNav);
red.addEventListener(MouseEvent.CLICK,colorNav);
yellow.addEventListener(MouseEvent.CLICK,colorNav);
green.addEventListener(MouseEvent.CLICK,colorNav);
I had the same issue. Your script looks like mine.
Then I saw there was a message in the window "Compiler Errors" It refferred to the first color, which I had written capitalized "Grey" in the Button Layer but not ("grey") in the Labels Layer - to make the names exactly the same fixed it:)
Hi thanks for this tutorial. I'm working on a project that's similar to this. I have two squares, one inside the other. I want to change the color of each square independently. How can I do this?
I watched your tutorial it was excellent but I tried the excercise and ran in to the issue where the file just runs through the colors. I do have the stop in the action script. I am using CS4 v.10. I am new at this so I am not sure if there is a version issue.
This is what is in the script:
stop();
function colorNav(event:MouseEvent):void{
gotoAndStop(event.target.name);
}
grey.addEventListener(MouseEvent.CLICK,colorNav);
yellow.addEventListener(MouseEvent.CLICK,colorNav);
red.addEventListener(MouseEvent.CLICK,colorNav);
green.addEventListener(MouseEvent.CLICK,colorNav);
Thanks again for your efforts
Chris
Build A Basic Site Using AS3 in Flash
by Tony Ross on Aug 7, 2008
Thanks dunya, :)
Jeremy, if you still have problems, post your script on the forum so I can take a look at it.
good luck
Tony
Build A Basic Site Using AS3 in Flash
by dunya Tawfeq on Aug 7, 2008
yes Jeremy if i understood , you need to put stop(); in action script to stop playing the frames until you scroll between them, i think you miss the stop action is that help ?
Build A Basic Site Using AS3 in Flash
by Jeremy Webb on Aug 6, 2008
I love the tutorial but I hit a bit of a jam.
After checking and rechecking the script, I still can not figure out why the file just runs through and plays with out stopping. Pretty much it looks like a flashing box that runs through the colors.
Any suggestions?
Does the difference between Windows/Mac matter?
Build A Basic Site Using AS3 in Flash
by dunya Tawfeq on Aug 3, 2008
Mr, Tony Ross such a nice tutorials you have i love this one how you explained AS3 do you have more about AS3 please
keep it up
Dunya
Build A Basic Site Using AS3 in Flash
by Bryn Watkins on Jun 4, 2008