List Info

Thread: Re: Pixlib Digest, Vol 25, Issue 7




Re: Pixlib Digest, Vol 25, Issue 7
user name
2007-09-10 04:55:53
hi there,
first of all, tnxs elimak for the tutorial, and tnxs also for offering your help.
I think is a good and clear example.
Im starting to go through the source.

In the Index.as of the first step, at the _init:

var libs:LibStack = new LibStack();
...
libs.enqueue( new ConfigLoader(), "config", "config/config.xml");

i do more or less follow the idea behind, but im not confident about it.
What ive read about LibStacks tells me that its used to make a queue of GraphicLib objects to laod.

By GraphicLib objects i understand movieclips (that usually end up related to a view)
ConfirgLoader holds data.

I know GraphicLib and ConfirgLoader both extend AbstractLib (which implements ILib) and thus are accepted as parameters by LibStack.

Why do you use a LibStack here instead of loading the config.xml directly with the ConfigLoader?

Lets say we had different xml to load and we want to make a queue, we could use LibStack, yes?

As well, could we acces the config xml object with an ILocator implementation?

A different question i have. Im traying to understand the MVCC workflow in the example.
the application runs like this:
Index=>Site=>SiteEngine
In site we make the view of the site and load the movies (LibStack)
In SiteEngine we make Movie instances and fire the RUN_SITE event.

ok, here my question, how does the Controller work? where/how do we instantiate it and where/who do we call it?

regards,
goliatone

Hey ami,
If you have any question about the tuto, just drop a message,
Im not really active, but i check the mailing everyday

elimak

Re: Pixlib Digest, Vol 25, Issue 7
country flaguser name
Netherlands
2007-09-10 06:02:56

Hey Emi,

 

First, Ive to say that im not really advanced, and many people from this list would be able to tell you better informations and advices.

 

“In the Index.as of the first step, at the _init:
var libs:LibStack = new LibStack();
libs.enqueue( new ConfigLoader(), "config", "config/config.xml");

 

In this case you dont enqueue a new GraphicLib Object but a ConfigLoader.

I use the Index as a generic file for almost all my project. Using a LibSatck as default allows you to enqueue more files, in case you need it.


i do more or less follow the idea behind, but im not confident about it.
What ive read about LibStacks tells me that its used to make a queue of GraphicLib objects to laod.

By GraphicLib objects i understand movieclips (that usually end up related to a view)
ConfirgLoader holds data.

 

As far as i know, i understand it like you

I know GraphicLib and ConfirgLoader both extend AbstractLib (which implements ILib) and thus are accepted as parameters by LibStack.
Why do you use a LibStack here instead of loading the config.xml directly with the ConfigLoader?

 

To be honnest, i dont really know, i used a sample that Francis provided me, and i keeped the same structure … if he is arround, im also curious about his answer ^^

Lets say we had different xml to load and we want to make a queue, we could use LibStack, yes?

 

I guess so

As well, could we acces the config xml object with an ILocator implementation?  I think, but never did it


A different question i have. Im traying to understand the MVCC workflow in the example.
the application runs like this:
Index=>Site=>SiteEngine
In site we make the view of the site and load the movies (LibStack)
In SiteEngine we make Movie instances and fire the RUN_SITE event.

 

Index setup the stage, root, globals, and preloader

Site loads the external lib

SiteEngine links everything together … you instanciate your Controller on this step, with your Views and your Model + listener … from that Point your event flow can run properly


ok, here my question, how does the Controller work? where/how do we instantiate it and where/who do we call it?

 

ok … i hope this is a bit helpful … lol, not really indeed … lisssssst … : ))  please help!


Valerie Alloix aka Elimak

KEGA | verne
Wattstraat 3 | 2171 TP Sassenheim
Postbus 94 | 2170 AB Sassenheim
T 0252 22 26 66 | F 0252 22 61 72
valerie.alloixkega.nl">valerie.alloixkega.nl | www.kega-verne.nl

a KEGA | group company


Van: pixlib-bouncesosflash.org [mailto:pixlib-bouncesosflash.org] Namens Emi Burgos
Verzonden: maandag 10 september 2007 11:56
Aan: pixlibosflash.org
Onderwerp: Re: [Pixlib] Pixlib Digest, Vol 25, Issue 7

 

hi there,
first of all, tnxs elimak for the tutorial, and tnxs also for offering your help.
I think is a good and clear example.
Im starting to go through the source.

In the Index.as of the first step, at the _init:

var libs:LibStack = new LibStack();
...
libs.enqueue( new ConfigLoader(), "config", "config/config.xml");


i do more or less follow the idea behind, but im not confident about it.
What ive read about LibStacks tells me that its used to make a queue of GraphicLib objects to laod.

By GraphicLib objects i understand movieclips (that usually end up related to a view)
ConfirgLoader holds data.

I know GraphicLib and ConfirgLoader both extend AbstractLib (which implements ILib) and thus are accepted as parameters by LibStack.

Why do you use a LibStack here instead of loading the config.xml directly with the ConfigLoader?

Lets say we had different xml to load and we want to make a queue, we could use LibStack, yes?

As well, could we acces the config xml object with an ILocator implementation?

A different question i have. Im traying to understand the MVCC workflow in the example.
the application runs like this:
Index=>Site=>SiteEngine
In site we make the view of the site and load the movies (LibStack)
In SiteEngine we make Movie instances and fire the RUN_SITE event.

ok, here my question, how does the Controller work? where/how do we instantiate it and where/who do we call it?

regards,
goliatone

 

Hey ami,
If you have any question about the tuto, just drop a message,
Im not really active, but i check the mailing everyday

elimak

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )