Well, it sounds as though each of these elements should be on separate movie
clips each with elements attached. Extract as much functionality into
separate classes and put as little actionscript onto the timeline as you
can. You can switch between the main elements by hopping to different frames
on the timeline. Try and look at a few Flash application examples,
particularly flash frameworks (just google flash frameworks) that will help
structure your code if you follow them.
It also sounds like an application rather than a game or eye candy. I know
this is a flash list, but Flex is better suited to this kind of development.
Paul
----- Original Message -----
From: "Helmut Granda" <[EMAIL PROTECTED]>
To: "Flash Coders List" <flashcoders@chattyfig.figleaf.com>
Sent: Saturday, January 19, 2008 6:55 PM
Subject: Re: [Flashcoders] How much memory elements on the display list
take?
Hi Paul,
I am building an application with 4 main elements that talk to each other
during the life of the application, each element contains several elements
that vary from 10 to maybe 100.
As I am writing this application I am trying to write it with the idea
that
in the future when I need to make updates I could see clearly what is
going
on or if some one else picks up this application they are able to
understand
it. often we pick/develop applications that only we can understand add
that
AS3 and you have a lot of spaghetti code that is passed around from
developer to developer and few years later the applications have to be
rewritten because there was not a basic structure followed since the
beginning.
In the end it might be just a personal code style rather than a software
developer question... thanks for chiming in.
On 1/19/08, Paul Andrews <[EMAIL PROTECTED]> wrote:
Helmut, I think you are finding yourself a tricky way of building
applications.
If you can give us an idea of what you're trying to build I'm sure we can
chime in with a lot of good ideas that will be easier than your current
route.
For example if you attach elements to a movieclip, you can control panel
displays by moving/hiding the movieclip to which they are attached,
rather
than have to mess around with every individual element.
Paul
----- Original Message -----
From: "Helmut Granda" <[EMAIL PROTECTED]>
To: "Flash Coders List" <flashcoders@chattyfig.figleaf.com>
Sent: Saturday, January 19, 2008 5:07 PM
Subject: Re: [Flashcoders] How much memory elements on the display list
take?
> Thanks for the comments Eric... When writing code I was thinking more
> on
> the
> lines of this:
>
> current Coding:
>
> var myelement1 = new Element
> myelement1.alpha = 0;
snip
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
--
...helmut
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders