[Flashcoders] Loaded class definition problem

2011-03-15 Thread chiek...@gmail.com
Hey people!

I'm having here a bit wicked layout to dynamically load library assets with
which I have quite a problem.
My app works in following way:
1) I got plenty of external asset files stored on server which I request as
any of them need to be diplsayed;
2) I use Loader class to bring file to client side;
3) As it is done i store class definition of loader.content into variable;
4) And then whenever anything needs an instance of that object i'm
creating new piece of it by doing something like return new (resourceVar as
Class);

The problem is in a fact that with this workflow timeline code is not
working. I've tried to play with loaderContext but that is not it! To be
more precise if I try to interact with loaded asset while it's still inside
loader it works fine though if I extract class definition and then create
new instance timeline code is gone for good ... and that is a big problem
indeed!

thanks in advance!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Getting Data into my SWF

2011-03-15 Thread Kevin Holleran
On Mon, Mar 14, 2011 at 5:31 PM, Henrik Andersson he...@henke37.cjb.netwrote:

 Jordan L. Chilcott - Interactivity Unlimited skriver:

  Unless the client is actually displaying a countdown, it has no need for
 the data. All the client needs in this case is a polling mechanism to occur
 on a set interval, whether or not it intends to display any countdown down.
 No data needs to be pass back to the server. All the client is essentially
 asking is coupon?. Server either gives a coupon or something else that is
 of no use for anyone to manipulate.

 jord


 To elaborate on that idea:

 Client asks the server and the server either sends the coupon or the time
 left. The client then acts differently depending on the received data. This
 way there is only one request made in either case.

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders



I like that!  Good call, much more efficient.  The countdown is displayed so
that date is important.  I like the single call that way.

Thanks again.

Kevin
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Getting Data into my SWF

2011-03-15 Thread Jordan L. Chilcott - Interactivity Unlimited
In this case, you just manipulate the time on the client side for the user's 
amusement (if they try to tamper with it, the next call will just reset the 
values, if it's not time yet).

jord
-- 
Jordan L. Chilcott

Sent from my iPhone... because I can

On 2011-03-15, at 1:06 PM, Kevin Holleran kdaw...@gmail.com wrote:

 I like that!  Good call, much more efficient.  The countdown is displayed so
 that date is important.  I like the single call that way.

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Getting Data into my SWF

2011-03-15 Thread Kevin Newman

This is the perfect opportunity to introduce a clever Easter egg. ;-)

Kevin N.


On 3/15/11 1:35 PM, Jordan L. Chilcott - Interactivity Unlimited wrote:

In this case, you just manipulate the time on the client side for the user's 
amusement (if they try to tamper with it, the next call will just reset the 
values, if it's not time yet).

jord


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders