Re: [Flashcoders] MouseEvents on overlapping siblings in AS3

2008-09-02 Thread Arka Roy
Here's a very good article about how mouse events propagate.
http://www.adobe.com/devnet/actionscript/articles/event_handling_as3.html

You should be able to have more than one MC capture a single event, although
I haven't tried it.

A


On Fri, Aug 29, 2008 at 8:03 PM, Matthias Dittgen [EMAIL PROTECTED]wrote:

 Hello,

 this was probably asked before, but I can't find.
 Imagine two or more sibling MovieClips. Both listen to
 MouseEvent.ROLL_OVER. When the mouse rolls over the overlapping region
 I would like the event to be dispatched to both of them and not only
 to the one above the other? How can I achieve this without using
 hitTest or enterframe scripts?

 Regards,
 Matthias
 ___
 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


Re: [Flashcoders] flash vars questions.

2008-09-02 Thread Rajiv Seth (Pixelated)
Hi,

it's very simple process. you can view this tutorial
http://www.permadi.com/tutorial/flashVars/index.html

You can view this too
http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_16417sliceId=1

hope it will help.

Rajiv Seth

On Tue, Sep 2, 2008 at 7:39 AM, Gustavo Duenas 
[EMAIL PROTECTED] wrote:

 Hi have a swf file which has a flv inserted and I'd like to know a way to
 pass url variables with the name of the file to the flv.


 like this:

 index.html?video=123.flv

 and I want this to goes to the video.swf, and then to the flv source, any
 ideas or you know a good tutorial, I've been trying one, but for so long no
 results.


 Regards,


 Gustavo

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




-- 
Regards

Rajiv Seth
Ph: 09839157388
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] OT: Mailing lists for Web / Dreamweaver, etc.

2008-09-02 Thread Glen Pike

Hi,

   Can anyone recommend any good mailing lists for Web developers that 
focus on the Adobe tools too - Dreamweaver  Contribute?


   Thanks

   Glen
--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

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


Re: [Flashcoders] MouseEvents on overlapping siblings in AS3

2008-09-02 Thread Meinte van't Kruis
Could you elaborate? Maybe I'm missing something but if you have two mouse
enabled objects
(where A completely overlaps B), I don't see any way to know if a mouse is
over object B, I've tried
different ways, but haven't been able to do it..

On Fri, Aug 29, 2008 at 3:31 PM, eric e. dolecki [EMAIL PROTECTED] wrote:

 Think you need to drink some bubbly - bubbling events

 On Fri, Aug 29, 2008 at 8:40 AM, Matthias Dittgen [EMAIL PROTECTED]
 wrote:

  but imagine one of the mc overlapping the whole other mc.
 
  MovieClips: A and B. A is overlapping B
 
  if the mouse is over A but not over B: i want receive a ROLL_OVER for A
  if the mouse is over A and over B: i want receive a ROLL_OVER for A
  and a ROLL_OVER for B
 
  an I don't want to replace them. A and B are siblings and will always
  be siblings.
 
 
  On Fri, Aug 29, 2008 at 1:30 PM,  [EMAIL PROTECTED] wrote:
   drop them in a movieclip and add an event Listener to that
   --Original Message--
   From: Matthias Dittgen
   Sender:
   To: Flash Coders List
   ReplyTo: Flash Coders List
   Sent: Aug 29, 2008 6:03 AM
   Subject: [Flashcoders] MouseEvents on overlapping siblings in AS3
  
   Hello,
  
   this was probably asked before, but I can't find.
   Imagine two or more sibling MovieClips. Both listen to
   MouseEvent.ROLL_OVER. When the mouse rolls over the overlapping region
   I would like the event to be dispatched to both of them and not only
   to the one above the other? How can I achieve this without using
   hitTest or enterframe scripts?
  
   Regards,
   Matthias
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
  
   Sent via BlackBerry from T-Mobile
   ___
   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
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
M.A. van't Kruis
http://www.malatze.nl/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] MouseEvents on overlapping siblings in AS3

2008-09-02 Thread Meinte van't Kruis
I'm actually talking here where A and B have no relation whatsoever, so
perhaps my question doesn't belong in this
thread, when I read the follow line, I actually guess it's impossible for B
to receive any MouseEvent when A is enabled
and overlapping it:

'This means that even if no event handlers have been assigned to a
particular display object, it will still be targeted for an event when
clicked, preventing anything below it from receiving events.'

On Tue, Sep 2, 2008 at 12:55 PM, Meinte van't Kruis [EMAIL PROTECTED]wrote:

 Could you elaborate? Maybe I'm missing something but if you have two mouse
 enabled objects
 (where A completely overlaps B), I don't see any way to know if a mouse is
 over object B, I've tried
 different ways, but haven't been able to do it..


 On Fri, Aug 29, 2008 at 3:31 PM, eric e. dolecki [EMAIL PROTECTED]wrote:

 Think you need to drink some bubbly - bubbling events

 On Fri, Aug 29, 2008 at 8:40 AM, Matthias Dittgen [EMAIL PROTECTED]
 wrote:

  but imagine one of the mc overlapping the whole other mc.
 
  MovieClips: A and B. A is overlapping B
 
  if the mouse is over A but not over B: i want receive a ROLL_OVER for A
  if the mouse is over A and over B: i want receive a ROLL_OVER for A
  and a ROLL_OVER for B
 
  an I don't want to replace them. A and B are siblings and will always
  be siblings.
 
 
  On Fri, Aug 29, 2008 at 1:30 PM,  [EMAIL PROTECTED] wrote:
   drop them in a movieclip and add an event Listener to that
   --Original Message--
   From: Matthias Dittgen
   Sender:
   To: Flash Coders List
   ReplyTo: Flash Coders List
   Sent: Aug 29, 2008 6:03 AM
   Subject: [Flashcoders] MouseEvents on overlapping siblings in AS3
  
   Hello,
  
   this was probably asked before, but I can't find.
   Imagine two or more sibling MovieClips. Both listen to
   MouseEvent.ROLL_OVER. When the mouse rolls over the overlapping region
   I would like the event to be dispatched to both of them and not only
   to the one above the other? How can I achieve this without using
   hitTest or enterframe scripts?
  
   Regards,
   Matthias
   ___
   Flashcoders mailing list
   Flashcoders@chattyfig.figleaf.com
   http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
  
  
   Sent via BlackBerry from T-Mobile
   ___
   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
 
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




 --
 M.A. van't Kruis
 http://www.malatze.nl/




-- 
M.A. van't Kruis
http://www.malatze.nl/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] synchronize FLV with SWF

2008-09-02 Thread Karim Beyrouti
Hi All - 


I am synchronizing a loaded SWF with an FLV using the FLVPlayback component
(AS3). I've got it quite close, but there is still some slight delay. 

I have this on a timer:

var frame:Number = Math.round( content.totalFrames * ( (
FLVPlayer.playheadPercentage - .25 ) / 100 )  );
content.gotoAndPlay(frame);

Just wondering if anyone has been there with this before, and if you managed
to get it spot on ( remove any delay ), or if you have any tips...


Regards


Karim



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


Re: [Flashcoders] MouseEvents on overlapping siblings in AS3

2008-09-02 Thread Glen Pike

Hi,

   I think you could make one item the parent of another so you could 
listen to rollover events on both objects.


   If A is the parent, you might to make A or B a custom object so that 
events from the child will get passed up to the grandparent C via 
event bubbling.


   If you have a B as child of A, when you rollover A, you get an over 
event, when you rollover B within A, A rolls-out and B rolls-over, so 
you need to handle this.  You also need to handle the Release Outside 
issue - AS2 did this nicely, now you have to listen for 
MouseEvent.MOUSE_UP to find this out as MOUSE_OUT does not seem to work 
when your button is down - I may be wrong, but this has caused problems 
for me recently.


   Glen

Meinte van't Kruis wrote:

I'm actually talking here where A and B have no relation whatsoever, so
perhaps my question doesn't belong in this
thread, when I read the follow line, I actually guess it's impossible for B
to receive any MouseEvent when A is enabled
and overlapping it:

'This means that even if no event handlers have been assigned to a
particular display object, it will still be targeted for an event when
clicked, preventing anything below it from receiving events.'

On Tue, Sep 2, 2008 at 12:55 PM, Meinte van't Kruis [EMAIL PROTECTED]wrote:

  

Could you elaborate? Maybe I'm missing something but if you have two mouse
enabled objects
(where A completely overlaps B), I don't see any way to know if a mouse is
over object B, I've tried
different ways, but haven't been able to do it..


On Fri, Aug 29, 2008 at 3:31 PM, eric e. dolecki [EMAIL PROTECTED]wrote:



Think you need to drink some bubbly - bubbling events

On Fri, Aug 29, 2008 at 8:40 AM, Matthias Dittgen [EMAIL PROTECTED]
  

wrote:

but imagine one of the mc overlapping the whole other mc.


MovieClips: A and B. A is overlapping B

if the mouse is over A but not over B: i want receive a ROLL_OVER for A
if the mouse is over A and over B: i want receive a ROLL_OVER for A
and a ROLL_OVER for B

an I don't want to replace them. A and B are siblings and will always
be siblings.


On Fri, Aug 29, 2008 at 1:30 PM,  [EMAIL PROTECTED] wrote:


drop them in a movieclip and add an event Listener to that
--Original Message--
From: Matthias Dittgen
Sender:
To: Flash Coders List
ReplyTo: Flash Coders List
Sent: Aug 29, 2008 6:03 AM
Subject: [Flashcoders] MouseEvents on overlapping siblings in AS3

Hello,

this was probably asked before, but I can't find.
Imagine two or more sibling MovieClips. Both listen to
MouseEvent.ROLL_OVER. When the mouse rolls over the overlapping region
I would like the event to be dispatched to both of them and not only
to the one above the other? How can I achieve this without using
hitTest or enterframe scripts?

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


Sent via BlackBerry from T-Mobile
___
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



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

  


--
M.A. van't Kruis
http://www.malatze.nl/






  


--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

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


[Flashcoders] Memory usage and bitmapdata issue in flash game design

2008-09-02 Thread Beach Boy
We have a huge movieclip of 5000 by 5000 pixels with different (transparant)
layers.
We can make an instance of the movieclip and work with it, we can move
layers, scale them, ...

But as soon as we add the MovieClip to the stage the ram memory-usage jumps
to 200 MB!
My guess is that flash retrieves all the bitmapdata from the MovieClip (all
25 million pixels) so it can display it. And all this data takes up around
200MB.

For cpu performance and obviously the memory-issue we use bitmapdata with
clipRect to extract a single 'screenshot' of 600 by 400 and add that to the
stage instead of the entire mc. At first the memory-usage is reasonable, but
as we start to explore the map it goes up again. It keeps rising to the
point that, when you have explored the entire map, the memory-usage is back
at around 200MB, same as when we added the mc to the stage.

We use BitmapData.dispose() but this doens't seem to help either as the
garbage-collector doesn't free up the ram instantly.
We tried using tiles, we cut the entire mc up in tiles and added and removed
the necessary tiles, but again, the memory starts low and rises as we
explore the map.

It's hard to believe that all those papervision-applications run so smoothly
using BitmapData while we only use a couple large jpg's and have such
extreme memory-usage.
Is there any way to make the garbage-collector pass (we use flash player 9)
or reduce the memory-usage?

Any help or tips would be greatly appreciated!
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Memory usage and bitmapdata issue in flash game design

2008-09-02 Thread Paul Andrews
- Original Message - 
From: Beach Boy [EMAIL PROTECTED]

To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, September 02, 2008 1:16 PM
Subject: [Flashcoders] Memory usage and bitmapdata issue in flash game 
design



We have a huge movieclip of 5000 by 5000 pixels with different 
(transparant)

layers.
We can make an instance of the movieclip and work with it, we can move
layers, scale them, ...

But as soon as we add the MovieClip to the stage the ram memory-usage 
jumps

to 200 MB!
My guess is that flash retrieves all the bitmapdata from the MovieClip 
(all

25 million pixels) so it can display it. And all this data takes up around
200MB.

For cpu performance and obviously the memory-issue we use bitmapdata with
clipRect to extract a single 'screenshot' of 600 by 400 and add that to 
the
stage instead of the entire mc. At first the memory-usage is reasonable, 
but

as we start to explore the map it goes up again. It keeps rising to the
point that, when you have explored the entire map, the memory-usage is 
back

at around 200MB, same as when we added the mc to the stage.

We use BitmapData.dispose() but this doens't seem to help either as the
garbage-collector doesn't free up the ram instantly.
We tried using tiles, we cut the entire mc up in tiles and added and 
removed

the necessary tiles, but again, the memory starts low and rises as we
explore the map.

It's hard to believe that all those papervision-applications run so 
smoothly

using BitmapData while we only use a couple large jpg's and have such
extreme memory-usage.
Is there any way to make the garbage-collector pass (we use flash player 
9)

or reduce the memory-usage?


If you're using AS3, the GC won't remove anything that has a reference to 
it. There's already been considerable discussion about this here and on the 
flexcoders list and no doubt googling AS3 and garbage collection will be 
very revealing.


Sounds as though you are gradually collecting the bitmap info until you are 
back to the whole 200MB.


200MB is a LOT of bitmap data for a flash game IMHO and maybe you can look 
at reducing it.


Paul




Any help or tips would be greatly appreciated!
___
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


Re: [Flashcoders] Memory usage and bitmapdata issue in flash game design

2008-09-02 Thread Ashim D'Silva
I'd really like to see where this thread goes because efficiency in Flash is
a touch subject I guess.
First suggestion I have is stop using MovieClips. They're kinda useless.
Move as far down the chain as possible... to bitmapData and shapes. The
simpler you go and the more low level stuff you write, the better it gets.
We wrote an animated bitmap class for a flash game we wrote, and we got more
than 5000 of them running without a problem (in the world, not on screen).
The display list and event listeners are two other places that chew up a lot
of power. I've been tempted many a time to eliminate the display list
entirely and do everything rendered to a bitmapData and then display that -
not sure if it would make a difference but it would be a fun experiment, and
a telling one.
Hope this helped... its two cents from a designer and part time coder, so
don't trust it too much!

Cheers,

Ashim

2008/9/2 Beach Boy [EMAIL PROTECTED]

 We have a huge movieclip of 5000 by 5000 pixels with different
 (transparant)
 layers.
 We can make an instance of the movieclip and work with it, we can move
 layers, scale them, ...

 But as soon as we add the MovieClip to the stage the ram memory-usage jumps
 to 200 MB!
 My guess is that flash retrieves all the bitmapdata from the MovieClip (all
 25 million pixels) so it can display it. And all this data takes up around
 200MB.

 For cpu performance and obviously the memory-issue we use bitmapdata with
 clipRect to extract a single 'screenshot' of 600 by 400 and add that to the
 stage instead of the entire mc. At first the memory-usage is reasonable,
 but
 as we start to explore the map it goes up again. It keeps rising to the
 point that, when you have explored the entire map, the memory-usage is back
 at around 200MB, same as when we added the mc to the stage.

 We use BitmapData.dispose() but this doens't seem to help either as the
 garbage-collector doesn't free up the ram instantly.
 We tried using tiles, we cut the entire mc up in tiles and added and
 removed
 the necessary tiles, but again, the memory starts low and rises as we
 explore the map.

 It's hard to believe that all those papervision-applications run so
 smoothly
 using BitmapData while we only use a couple large jpg's and have such
 extreme memory-usage.
 Is there any way to make the garbage-collector pass (we use flash player 9)
 or reduce the memory-usage?

 Any help or tips would be greatly appreciated!
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




-- 
The Random Lines
My online portfolio
www.therandomlines.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] MouseEvents on overlapping siblings in AS3

2008-09-02 Thread EECOLOR
Just a guess, but you could change the listener to MOUSE_OVER instead of
ROLL_OVER. The difference between the two is very subtle and explained at
the reference documentation of InteractiveObject. I am not sure if it is
applicable to the problem posed.

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


Re: [Flashcoders] AMF objects storing in database

2008-09-02 Thread EECOLOR
In the example they expect you to implement IExternalizable. This is only
needed if you want to preserve properties that do not have both a getter and
a setter. In most cases a public var is enough, then you wont have to
implement the IExternalizable.

I wanted to know, can I then just send the AMF object to a server and store
it as a binary in a mysql database? And also is this adviceable?

I have used this approach to store typed and complex data that is only used
in Flash. I love it :)

Greetz Erik


On Thu, Aug 28, 2008 at 7:00 PM, Jiri Heitlager 
[EMAIL PROTECTED] wrote:

 I came across a post on storing custom classes as an AMF object. It
 explains how to do the following.

 If you ever need to store the state of a custom object in a ByteArray or
 SharedObject, or send a custom object through a LocalConnection, there are a
 few simple steps you can take that will allow your object's state to be
 serialised (converted to AMF) and preserved for future restoration.
 
 src: http://www.si-robertson.com/go/serialise-custom-classes


 I wanted to know, can I then just send the AMF object to a server and store
 it as a binary in a mysql database? And also is this adviceable?

 Thank you,

 Jiri

 ___
 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


Re: [Flashcoders] A Question that I've been asking for years!!

2008-09-02 Thread EECOLOR
There is one usecase that most Flash developers will come across. Lets say
we have a loader.swf in which the main (or base) class is Loader.as.
Loader.as loads main.swf, main.swf has as main (or base) class Main.as.
Loader.as needs to give a signal to the loaded main.swf and tries to type
the instance on the stage as Main. This way, Loader.as will makes sure the
file that is loaded is who he expects it to be (namely Main.as).
The above situation poses a problem. If Loader.as references Main.as,
Main.as will be compiled into loader.swf as well. In most cases this will
result in a loader.swf that is of the same size as main.swf. In order to fix
this we need to make use of an interface.
The Main.as will implement the interface and Loader.as will type Main.as not
as Main, but as the interface. This way only the interface will be compiled
into the loader and not the implementation (or Main.as). While this solves
the problem described earlier it also gives some extra benefits. The loader
is suddenly reusable. It no longer depends on a specific implementation of
any class. It will accept all classes that implement the interface.
I hope this usecase adds anything to the discussion.
Greetz Erik
On Tue, Aug 26, 2008 at 4:32 AM, ben gomez farrell [EMAIL PROTECTED]wrote:

 Yah, maybe the word isn't contract but a contract with loopholes.
  Anyway, it does a good job of getting intention across, regardless, across
 a broad set of code.  But yah, i can see the value in it, and I can see that
 its a little extra effort that might not be worth it.  I'm still more in the
 stage where I try to apply it to things to see if it's useful.  I'm not sure
 if it's helped so far, but it hasn't hurt.


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


[Flashcoders] Unloading an SWF in Flash and controlling the loaded SWF

2008-09-02 Thread Lord, Susan, CTR, DSS

Hi there,

I have a newbie question for you. I posted this to the newbie list and
recieved no response. I am wondering if it might be too advanced for
that  list. For those of you who are on both lists, please excuse the
double post.

I have a pop-up box that I am loading as an external swf, using the
following code:

function displayHotword(evt:Event):void {
trace(in function);
var i =new Loader();
addChild(i);
i.load(new URLRequest(hotword.swf));
i.scaleX = 1;
i.scaleY = 1;
i.x = 100;
i.y = 150
;
}
btClassified.addEventListener(MouseEvent.CLICK, displayHotword);


I am not sure how to unload the movie. I am also not sure on how to
control the movie when it is on the screen. In AS2, I always used a
movie holder so I had an instance... with this method, I don't know what
the movie instance would be.  

Right now to close the loaded SWF, I am using following code within the
loaded swf file.

function closeHotword(evt:Event):void {
this.visible=false;

}
btClose.addEventListener(MouseEvent.CLICK, closeHotword);

And simply making it invisible from the swf file.

I am wondering if there is a better way to do this?  It seems like this
would cause some memory issues eventually as each time the student will
click on the link to load pop-up window, it would create a new instance
of the movie and just hide it, instead of unloading it.

I am new to AS3 and not sure how to approach this.

Any help you could provide is appreciated!

Thanks!




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


Re: [Flashcoders] Unloading an SWF in Flash and controlling the loadedSWF

2008-09-02 Thread Paul Andrews

Hi Susan,

Check out the documention for the Loader() Class - you'll find that the 
loaded swf is a child of the loader.


AS3 won't unload instances while there are any references to them. You can 
try unloading the loader - it won't be unloadable while the 'i' variable is 
refering to the instance. I think it will be eligible for GC once I has been 
pointed at a new Loader instance.


It's usually helpful to type variables and give them meaningful names - for 
example var i = new Loader() might be written as var swfLoader:Loader = new 
Loader();


This will make the code  easier to follow especially since the compiler will 
know what the variable refers to (since you've specified the class) and can 
make sure that the variable is used correctly. I usually expect variables 
called 'i' to be counters of some kind.


Good luck!

Paul


- Original Message - 
From: Lord, Susan, CTR, DSS [EMAIL PROTECTED]

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Tuesday, September 02, 2008 4:53 PM
Subject: [Flashcoders] Unloading an SWF in Flash and controlling the 
loadedSWF





Hi there,

I have a newbie question for you. I posted this to the newbie list and
recieved no response. I am wondering if it might be too advanced for
that  list. For those of you who are on both lists, please excuse the
double post.

I have a pop-up box that I am loading as an external swf, using the
following code:

function displayHotword(evt:Event):void {
trace(in function);
var i =new Loader();
addChild(i);
i.load(new URLRequest(hotword.swf));
i.scaleX = 1;
i.scaleY = 1;
i.x = 100;
i.y = 150
;
}
btClassified.addEventListener(MouseEvent.CLICK, displayHotword);


I am not sure how to unload the movie. I am also not sure on how to
control the movie when it is on the screen. In AS2, I always used a
movie holder so I had an instance... with this method, I don't know what
the movie instance would be.

Right now to close the loaded SWF, I am using following code within the
loaded swf file.

function closeHotword(evt:Event):void {
this.visible=false;

}
btClose.addEventListener(MouseEvent.CLICK, closeHotword);

And simply making it invisible from the swf file.

I am wondering if there is a better way to do this?  It seems like this
would cause some memory issues eventually as each time the student will
click on the link to load pop-up window, it would create a new instance
of the movie and just hide it, instead of unloading it.

I am new to AS3 and not sure how to approach this.

Any help you could provide is appreciated!

Thanks!




___
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


RE: [BULK] Re: [Flashcoders] Unloading an SWF in Flash and controlling the loadedSWF

2008-09-02 Thread Lord, Susan, CTR, DSS
Thanks Paul,

I rewrote the code, so its easier to read:

var request:URLRequest = new URLRequest(hotword.swf);
var loader:Loader = new Loader()

function displayHotword(evt:Event):void {
loader.load(request);
addChild(loader);
loader.x = 100;
loader.y = 150
}


btClassified.addEventListener(MouseEvent.CLICK, displayHotword);

My question is, how do I control the instance that is now on the stage?
Say I wanted to create a function that would change the opacity of that
movie or something like that. How do I reference that item. In the old
flash, I would create a movie clip that would hold the swf and reference
that instance name. With this new method, I have no instance name to
reference.   


Also, I can't seem to talk to the file.  If they click a button within
the file (the close button), I want the popup removed from the stage.
Right now, I am hiding (visibility = false) the clip and putting the
code to hide it within the loaded swf.  I am not communicating with the
clip from the parent file.

Any direction you could provide is very much appreciated! 

Thank you!
Susan 

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


Re: [BULK] Re: [Flashcoders] Unloading an SWF in Flash and controlling the loadedSWF

2008-09-02 Thread eric e. dolecki
I think you want to listen for the event of the loader being loaded  then
use .content for it.

loader.addEventListener( Event.COMPLETE, iAmLoaded_Drunk );

function iAmLoaded_Drunk( e:Event ):void

{

 var lo:Loader = e.target as Loader;

 lo.content.alpha = 20; // what you actually loaded

}



On Tue, Sep 2, 2008 at 12:55 PM, Lord, Susan, CTR, DSS 
[EMAIL PROTECTED] wrote:

 Thanks Paul,

 I rewrote the code, so its easier to read:

 var request:URLRequest = new URLRequest(hotword.swf);
 var loader:Loader = new Loader()

 function displayHotword(evt:Event):void {
 loader.load(request);
addChild(loader);
loader.x = 100;
loader.y = 150
 }


 btClassified.addEventListener(MouseEvent.CLICK, displayHotword);

 My question is, how do I control the instance that is now on the stage?
 Say I wanted to create a function that would change the opacity of that
 movie or something like that. How do I reference that item. In the old
 flash, I would create a movie clip that would hold the swf and reference
 that instance name. With this new method, I have no instance name to
 reference.


 Also, I can't seem to talk to the file.  If they click a button within
 the file (the close button), I want the popup removed from the stage.
 Right now, I am hiding (visibility = false) the clip and putting the
 code to hide it within the loaded swf.  I am not communicating with the
 clip from the parent file.

 Any direction you could provide is very much appreciated!

 Thank you!
 Susan

 ___
 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


Re: [BULK] Re: [Flashcoders] Unloading an SWF in Flash and controlling the loadedSWF

2008-09-02 Thread eric e. dolecki
hehe oops - .alpha = 0.2;

On Tue, Sep 2, 2008 at 1:11 PM, eric e. dolecki [EMAIL PROTECTED] wrote:

 I think you want to listen for the event of the loader being loaded  then
 use .content for it.

 loader.addEventListener( Event.COMPLETE, iAmLoaded_Drunk );

 function iAmLoaded_Drunk( e:Event ):void

 {

  var lo:Loader = e.target as Loader;

  lo.content.alpha = 20; // what you actually loaded

 }



 On Tue, Sep 2, 2008 at 12:55 PM, Lord, Susan, CTR, DSS 
 [EMAIL PROTECTED] wrote:

 Thanks Paul,

 I rewrote the code, so its easier to read:

 var request:URLRequest = new URLRequest(hotword.swf);
 var loader:Loader = new Loader()

 function displayHotword(evt:Event):void {
 loader.load(request);
addChild(loader);
loader.x = 100;
loader.y = 150
 }


 btClassified.addEventListener(MouseEvent.CLICK, displayHotword);

 My question is, how do I control the instance that is now on the stage?
 Say I wanted to create a function that would change the opacity of that
 movie or something like that. How do I reference that item. In the old
 flash, I would create a movie clip that would hold the swf and reference
 that instance name. With this new method, I have no instance name to
 reference.


 Also, I can't seem to talk to the file.  If they click a button within
 the file (the close button), I want the popup removed from the stage.
 Right now, I am hiding (visibility = false) the clip and putting the
 code to hide it within the loaded swf.  I am not communicating with the
 clip from the parent file.

 Any direction you could provide is very much appreciated!

 Thank you!
 Susan

 ___
 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


Re: [Flashcoders] MouseEvents on overlapping siblings in AS3

2008-09-02 Thread Meinte van't Kruis
I think rollover means it will fire once, wether or not it 'rolls' over a
child of that parent. With mouseover,
the event will fire each time the mouse also get's over a child of the
parent which is listening to the event.
(in short; rollover is like a parent with mouseover only with mousechildren
set to false).

On Tue, Sep 2, 2008 at 5:26 PM, EECOLOR [EMAIL PROTECTED] wrote:

 Just a guess, but you could change the listener to MOUSE_OVER instead of
 ROLL_OVER. The difference between the two is very subtle and explained at
 the reference documentation of InteractiveObject. I am not sure if it is
 applicable to the problem posed.

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




-- 
M.A. van't Kruis
http://www.malatze.nl/
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [BULK] Re: [Flashcoders] Unloading an SWF in Flash andcontrolling the loadedSWF

2008-09-02 Thread Lord, Susan, CTR, DSS
Your function cracked me up!  LOL!  Thanks! I will give it a shot.

I just added the following to unload the movie clip:

function unloadHotword(evt:Event):void {
loader.unload();
}

loader.addEventListener(MouseEvent.CLICK, unloadHotword);

It seemed to work well.  :)

Now I just need to figure out how to incorporate my array of movie
clips! :)

Thanks!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of eric e.
dolecki
Sent: Tuesday, September 02, 2008 1:12 PM
To: Flash Coders List
Subject: Re: [BULK] Re: [Flashcoders] Unloading an SWF in Flash
andcontrolling the loadedSWF
Importance: Low

I think you want to listen for the event of the loader being loaded 
then
use .content for it.

loader.addEventListener( Event.COMPLETE, iAmLoaded_Drunk );

function iAmLoaded_Drunk( e:Event ):void

{

 var lo:Loader = e.target as Loader;

 lo.content.alpha = 20; // what you actually loaded

}



On Tue, Sep 2, 2008 at 12:55 PM, Lord, Susan, CTR, DSS 
[EMAIL PROTECTED] wrote:

 Thanks Paul,

 I rewrote the code, so its easier to read:

 var request:URLRequest = new URLRequest(hotword.swf);
 var loader:Loader = new Loader()

 function displayHotword(evt:Event):void {
 loader.load(request);
addChild(loader);
loader.x = 100;
loader.y = 150
 }


 btClassified.addEventListener(MouseEvent.CLICK, displayHotword);

 My question is, how do I control the instance that is now on the
stage?
 Say I wanted to create a function that would change the opacity of
that
 movie or something like that. How do I reference that item. In the old
 flash, I would create a movie clip that would hold the swf and
reference
 that instance name. With this new method, I have no instance name to
 reference.


 Also, I can't seem to talk to the file.  If they click a button
within
 the file (the close button), I want the popup removed from the stage.
 Right now, I am hiding (visibility = false) the clip and putting the
 code to hide it within the loaded swf.  I am not communicating with
the
 clip from the parent file.

 Any direction you could provide is very much appreciated!

 Thank you!
 Susan

 ___
 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

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


[Flashcoders] Re: How to avoid little blink while loading another movie

2008-09-02 Thread anuj sharma
I am sorry i forgot to mention i am using UILoader componenet for loading
that external SWF , if you guys have any other container in mind for this
purpose i would be happy to use that.
Thanks
Anuj

On Tue, Sep 2, 2008 at 11:01 AM, anuj sharma [EMAIL PROTECTED] wrote:

 Hi All
 I am building a simple tween movie in which a line just goes from left to
 right and as soon as it reaches the end point I need to call external swf
 file and need to make the already running tween movie invisible. Everything
 is working fine except when i reach at the end of the movie and calling
 external swf file , it shows a little blink (for a fraction of second) to
 signify that something external has been loaded. I do not want my
 aaplication to show that it is loading some external files. Can i avoid that
 fraction of second of delay (blink showing unloading and loading movies).
 Here's my code which i used at the end of my first tween movie.

 import fl.containers.UILoader;

 mc_FirstLine.visible=false;
 var myUILoader:UILoader=new UILoader();
 myUILoader.height=23.6;
 myUILoader.move(-17,-1);
 myUILoader.source=SecondLine.swf;
 addChild(myUILoader);

 Please let me know if we can , any help and suggestions will be highly
 appreciated.
 Thanks
 Anuj

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


Re: [BULK] Re: [Flashcoders] Unloading an SWF in Flash andcontrollingthe loadedSWF

2008-09-02 Thread Paul Andrews

Susan,

I suspect that you'll also have to use the removeChild() method to remove 
the loader from the display list.


removeChild(loader);

Otherwise the display list will still have a reference to the loader object 
and stop the object being garbage collected.


Paul


- Original Message - 
From: Lord, Susan, CTR, DSS [EMAIL PROTECTED]

To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Tuesday, September 02, 2008 6:38 PM
Subject: RE: [BULK] Re: [Flashcoders] Unloading an SWF in Flash 
andcontrollingthe loadedSWF




Your function cracked me up!  LOL!  Thanks! I will give it a shot.

I just added the following to unload the movie clip:

function unloadHotword(evt:Event):void {
loader.unload();
}

loader.addEventListener(MouseEvent.CLICK, unloadHotword);

It seemed to work well.  :)

Now I just need to figure out how to incorporate my array of movie
clips! :)

Thanks!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of eric e.
dolecki
Sent: Tuesday, September 02, 2008 1:12 PM
To: Flash Coders List
Subject: Re: [BULK] Re: [Flashcoders] Unloading an SWF in Flash
andcontrolling the loadedSWF
Importance: Low

I think you want to listen for the event of the loader being loaded 
then
use .content for it.

loader.addEventListener( Event.COMPLETE, iAmLoaded_Drunk );

function iAmLoaded_Drunk( e:Event ):void

{

var lo:Loader = e.target as Loader;

lo.content.alpha = 20; // what you actually loaded

}



On Tue, Sep 2, 2008 at 12:55 PM, Lord, Susan, CTR, DSS 
[EMAIL PROTECTED] wrote:


Thanks Paul,

I rewrote the code, so its easier to read:

var request:URLRequest = new URLRequest(hotword.swf);
var loader:Loader = new Loader()

function displayHotword(evt:Event):void {
loader.load(request);
   addChild(loader);
   loader.x = 100;
   loader.y = 150
}


btClassified.addEventListener(MouseEvent.CLICK, displayHotword);

My question is, how do I control the instance that is now on the

stage?

Say I wanted to create a function that would change the opacity of

that

movie or something like that. How do I reference that item. In the old
flash, I would create a movie clip that would hold the swf and

reference

that instance name. With this new method, I have no instance name to
reference.


Also, I can't seem to talk to the file.  If they click a button

within

the file (the close button), I want the popup removed from the stage.
Right now, I am hiding (visibility = false) the clip and putting the
code to hide it within the loaded swf.  I am not communicating with

the

clip from the parent file.

Any direction you could provide is very much appreciated!

Thank you!
Susan

___
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

___
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


Re: [Flashcoders] Re: How to avoid little blink while loading another movie

2008-09-02 Thread anuj sharma
Hi Sebastian
Thanks for the reply.
Your second point works form me. Just one frame from the end of tween i
added the UILoader and i moved the loader to the main stage after making my
first movie invisible.
Thanks a lot for your help. I appreciate that
Anuj


On Tue, Sep 2, 2008 at 11:21 AM, sebastian [EMAIL PROTECTED] wrote:

 Hi,

 Presumably the blink is caused by the delay between your loading movie
 being called and you setting its state to visible=false.

 You can resolve that in a few ways:

 1. have the swf you load in already be visible=false, pre-set in the
 external file.
 2. load the swf off-stage coordinates and then move it to the stage only
 after you set visible=false
 3. set the alpha of the loading clip to zero, load the child then set
 visible to false and restore the alpha as needed

 Hope this helps, maybe someone else has a better solution.

 anuj sharma wrote:

 I am sorry i forgot to mention i am using UILoader componenet for loading
 that external SWF , if you guys have any other container in mind for this
 purpose i would be happy to use that.
 Thanks
 Anuj

 On Tue, Sep 2, 2008 at 11:01 AM, anuj sharma [EMAIL PROTECTED] wrote:

  Hi All
 I am building a simple tween movie in which a line just goes from left to
 right and as soon as it reaches the end point I need to call external swf
 file and need to make the already running tween movie invisible.
 Everything
 is working fine except when i reach at the end of the movie and calling
 external swf file , it shows a little blink (for a fraction of second) to
 signify that something external has been loaded. I do not want my
 aaplication to show that it is loading some external files. Can i avoid
 that
 fraction of second of delay (blink showing unloading and loading movies).
 Here's my code which i used at the end of my first tween movie.

 import fl.containers.UILoader;

 mc_FirstLine.visible=false;
 var myUILoader:UILoader=new UILoader();
 myUILoader.height=23.6;
 myUILoader.move(-17,-1);
 myUILoader.source=SecondLine.swf;
 addChild(myUILoader);

 Please let me know if we can , any help and suggestions will be highly
 appreciated.
 Thanks
 Anuj

  ___
 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

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


RE: [Flashcoders] Re: How to avoid little blink while loading another movie

2008-09-02 Thread Robert Leisle
You could also load the SecondLine.swf slightly before you actually want to
display it, but delay adding it to the display list until you do want to
display it. 
var myUILoader:UILoader=new UILoader(); 
myUILoader.height=23.6; 
myUILoader.move(-17,-1); 
myUILoader.source=SecondLine.swf;

Then at the moment it should be displayed do this:
removeChild(mc_FirstLine); // ( OR mc_FirstLine.visible=false; )
addChild(myUILoader);

hth,
Bob

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of sebastian
Sent: Tuesday, September 02, 2008 11:21 AM
To: Flash Coders List
Subject: Re: [Flashcoders] Re: How to avoid little blink while loading
another movie

Hi,

Presumably the blink is caused by the delay between your loading movie 
being called and you setting its state to visible=false.

You can resolve that in a few ways:

1. have the swf you load in already be visible=false, pre-set in the 
external file.
2. load the swf off-stage coordinates and then move it to the stage only 
after you set visible=false
3. set the alpha of the loading clip to zero, load the child then set 
visible to false and restore the alpha as needed

Hope this helps, maybe someone else has a better solution.

anuj sharma wrote:
 I am sorry i forgot to mention i am using UILoader componenet for loading
 that external SWF , if you guys have any other container in mind for this
 purpose i would be happy to use that.
 Thanks
 Anuj
 
 On Tue, Sep 2, 2008 at 11:01 AM, anuj sharma [EMAIL PROTECTED] wrote:
 
 Hi All
 I am building a simple tween movie in which a line just goes from left to
 right and as soon as it reaches the end point I need to call external swf
 file and need to make the already running tween movie invisible.
Everything
 is working fine except when i reach at the end of the movie and calling
 external swf file , it shows a little blink (for a fraction of second) to
 signify that something external has been loaded. I do not want my
 aaplication to show that it is loading some external files. Can i avoid
that
 fraction of second of delay (blink showing unloading and loading movies).
 Here's my code which i used at the end of my first tween movie.

 import fl.containers.UILoader;

 mc_FirstLine.visible=false;
 var myUILoader:UILoader=new UILoader();
 myUILoader.height=23.6;
 myUILoader.move(-17,-1);
 myUILoader.source=SecondLine.swf;
 addChild(myUILoader);

 Please let me know if we can , any help and suggestions will be highly
 appreciated.
 Thanks
 Anuj

 ___
 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


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


RE: [BULK] Re: [Flashcoders] Unloading an SWF in Flashandcontrollingthe loadedSWF

2008-09-02 Thread Lord, Susan, CTR, DSS
Thank you, Paul!

I was wondering if there might be a cleaner way to call my swf's.  Below
is my code. You will notice that each button calls a different swf.  

Any suggestions are appreciated!

Thanks!
Susan 

---
var fileName:String = ;
var request:URLRequest = new URLRequest(fileName);
var myMovie:Loader = new Loader()

//load hotword swf

function displayHotword(file:String):void {
addChild(myMovie);
myMovie.load(new URLRequest(file));
myMovie.x = 100;
myMovie.y = 150;
}

//unload hotword swf

function unloadHotword(evt:Event):void {
//trace(evt);
myMovie.unload();
removeChild(myMovie);
}

myMovie.addEventListener(MouseEvent.CLICK, unloadHotword);


//click each hotword button to load a different swf

function button1Clicked(evt:Event) {
displayHotword(hotword.swf);
}
btHotWord1.addEventListener(MouseEvent.CLICK, button1Clicked);


function button2Clicked(evt:Event) {
displayHotword(hotword2.swf);
}
btHotWord2.addEventListener(MouseEvent.CLICK, button2Clicked);


function button3Clicked(evt:Event) {
displayHotword(hotword3.swf);
}
btHotWord3.addEventListener(MouseEvent.CLICK, button3Clicked);




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


RE: [BULK] Re: [Flashcoders] Unloading an SWF inFlashandcontrollingthe loadedSWF

2008-09-02 Thread Lord, Susan, CTR, DSS
I asked too soon... I found an easier way to activate the buttons using
an array (see code below).  

Thanks again for your help!



var fileName:String = ;
var request:URLRequest = new URLRequest(fileName);
var myMovie:Loader = new Loader();

//load hotword swf

function displayHotword(file:String):void {
addChild(myMovie);
myMovie.load(new URLRequest(file));
myMovie.x = 100;
myMovie.y = 150;
}

//unload hotword swf

function unloadHotword(evt:Event):void {
//trace(evt);
myMovie.unload();
removeChild(myMovie);
}

myMovie.addEventListener(MouseEvent.CLICK, unloadHotword);


//click each hotword button to load a different swf

var aHotWord:Array = new Array(hotword.swf,
hotword2.swf,hotword3.swf);
var aHotButtons:Array = new Array(btHotWord0, btHotWord1, btHotWord2);

for (var i:Number = 0; i  aHotWord.length; i++) {
trace(aHotWord[i]);
aHotButtons[i].addEventListener(MouseEvent.CLICK,
buttonClicked);
}

function buttonClicked(evt:Event) {
trace(evt.target.name);
var count:Number = aHotButtons.length;
var index:Number;

for (var i:Number = 0; i  count; i++) {
if (evt.target.name == aHotButtons[i].name) {
index = i;
trace(index)
}
}
displayHotword(aHotWord[index]);
}

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


Re: [Flashcoders] flash vars questions.

2008-09-02 Thread Gustavo Duenas

do you know something that  actually can work in as3?

Regards,

Gustavo

On Sep 2, 2008, at 2:36 AM, Rajiv Seth (Pixelated) wrote:


Hi,

it's very simple process. you can view this tutorial
http://www.permadi.com/tutorial/flashVars/index.html

You can view this too
http://kb.adobe.com/selfservice/viewContent.do? 
externalId=tn_16417sliceId=1


hope it will help.

Rajiv Seth

On Tue, Sep 2, 2008 at 7:39 AM, Gustavo Duenas 
[EMAIL PROTECTED] wrote:

Hi have a swf file which has a flv inserted and I'd like to know a  
way to

pass url variables with the name of the file to the flv.


like this:

index.html?video=123.flv

and I want this to goes to the video.swf, and then to the flv  
source, any
ideas or you know a good tutorial, I've been trying one, but for  
so long no

results.


Regards,


Gustavo

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





--
Regards

Rajiv Seth
Ph: 09839157388
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders





Gustavo A. Duenas
Creative Director
LEFT AND RIGHT SOLUTIONS
904.  265 0330 - 904. 386 7958
www.leftandrightsolutions.com
Jacksonville - Florida




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


[Flashcoders] Using the TextArea Class

2008-09-02 Thread Lord, Susan, CTR, DSS
Hi there,

When I use a TextArea and import HTML, I see the flash of the scroll
bars come up, just prior to the text displaying.  Is there anyway to
avoid that flash? If the text string is not html, this does not happen.

Thanks!
Susan

~

import fl.controls.TextArea;
import fl.events.ComponentEvent;
import flash.display.Sprite;
import flash.events.Event;
import flash.events.TextEvent;
import flash.text.TextField;

ta1.editable=false;
ta1.setStyle(textPadding,15);

var testStringHTML:String = ' bfont face=Arial, Helvetica,
sans-serifcolor=#364981 size = 16pxx/fontbrimg
src=line.gif /p/pfont face=Arial, Helvetica,
sans-serifcolor=#66 size =
12pxyy/f
ont/b';

ta1.htmlText = testStringHTML;



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


Re: [Flashcoders] flash vars questions.

2008-09-02 Thread Ashim D'Silva
AS3 example:

http://www.permadi.com/tutorial/flashVars/indexAs3.html

link was at the top of the page..

2008/9/3 Gustavo Duenas [EMAIL PROTECTED]

 do you know something that  actually can work in as3?

 Regards,

 Gustavo

 On Sep 2, 2008, at 2:36 AM, Rajiv Seth (Pixelated) wrote:

  Hi,

 it's very simple process. you can view this tutorial
 http://www.permadi.com/tutorial/flashVars/index.html

 You can view this too
 http://kb.adobe.com/selfservice/viewContent.do
 ?externalId=tn_16417sliceId=1

 hope it will help.

 Rajiv Seth

 On Tue, Sep 2, 2008 at 7:39 AM, Gustavo Duenas 
 [EMAIL PROTECTED] wrote:

  Hi have a swf file which has a flv inserted and I'd like to know a way to
 pass url variables with the name of the file to the flv.


 like this:

 index.html?video=123.flv

 and I want this to goes to the video.swf, and then to the flv source, any
 ideas or you know a good tutorial, I've been trying one, but for so long
 no
 results.


 Regards,


 Gustavo

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




 --
 Regards

 Rajiv Seth
 Ph: 09839157388
 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders




 Gustavo A. Duenas
 Creative Director
 LEFT AND RIGHT SOLUTIONS
 904.  265 0330 - 904. 386 7958
 www.leftandrightsolutions.com
 Jacksonville - Florida




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




-- 
The Random Lines
My online portfolio
www.therandomlines.com
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders