PDA

View Full Version : efficiency questions:


Benaiah
09-29-2003, 02:59 AM
Lately I've been making whatever random thing I can think of, or that I'm able to, just to further familiarize myself with whatever I can in flash...

I made a simple start of a navigation for a webpage, but it seems like I'm going the total long way of going about it, with all my objects/layers/mc's and such...

if anyone has some free time and wants to check it out, lemme know how I can be more efficient, or if there are easier ways of going about something I've done. Thanks

pixelwit
09-30-2003, 01:46 PM
One "problem" with Flash is that there are many different ways to do the same thing. What's "right" is what works for you.

I checked your code and didn't see any big mistakes or anything like that. As a continuation of the above statement, Flash has so many different ways to do the same thing that if you should run into a snag with the structure of your code, you can just use copy and paste to move things around.

The most important part about "structure" is pathing. If you are constantly writing something like this:_root.Farm.BarnYard.Pig.Piglet.PigsEar._visib le = true;
_root.Farm.BarnYard.Pig.Piglet.PigsNose._visible = true;
_root.Farm.BarnYard.Pig.Piglet.PigsEye._visible = true;Then maybe you should place your code on Piglet so you don't have to write such long path names. Or if you're ready to try some advanced stuff you could write a prototype (or class) for piglet.

Anyway, your file looks fine. Just keep adding stuff where necessary until you get the effect you're after.

Good luck,

-PiXELWiT
http://www.pixelwit.com