List Info

Thread: AW: Alpha on a loaded Movie .swf




AW: Alpha on a loaded Movie .swf
country flaguser name
Switzerland
2007-03-21 09:47:19
> So I am wondering if there is a easy call to
> start working with the fileName.swf like I would
> be working with a localMC.

The 'handle' is the MovieClip the .swf file is loaded into:
if you load 'some.swf' into holder_mc you can set the swf's
_alpha by just
doing holder_mc._alpha = 33;

Note one fundamental difference to attaching from the
library: to access the
holder clips properties (e.g. _alpha) you have to wait until
the load is
completely finished. One option is to use the
MovieClipLoader class - wait
until the MovieClipLoader.onLoadInit handler is called
before setting the
clips properties.

hth
-------------
Andreas Weber



-----Ursprüngliche Nachricht-----
Von: flashnewbie-bounceschattyfig.figleaf.com
[mailto:flashnewbie-bounceschattyfig.figleaf.com]Im
Auftrag von Paul V.
Gesendet: Mittwoch, 21. März 2007 16:20
An: Flashnewbie Mailing List
Betreff: [Flashnewbie] Alpha on a loaded Movie .swf


Hello,
   I am looking at having to load in several movies (which
are images) as
separate swf's, to reduce load time.  I have to do this way.
 I had it set
with attachmoive files from the library, and then I was
setting the alpha
and positioning it.  I want to be able to call it from the
parent swf, and
have parameter control.  I could run an alpha fade-in on the
child swf I
realize but I also want to get some the size parameters for
some hitTest
events I am going to be running after the swf is loaded.  So
I am wondering
if there is a easy call to start working with the
fileName.swf like I would
be working with a localMC.   ie:  localMC._alpha = 5;
localMC._y =
Stage.width/2 - localMC._width/2;    etc...


Thank for the help on this one.

Paul
_______________________________________________
Flashnewbiechattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashnewb
ie

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.c
om

_______________________________________________
Flashnewbiechattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashnewb
ie

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.c
om

Re: Alpha on a loaded Movie .swf -Thank you
country flaguser name
Canada
2007-03-21 13:22:56
 Andreas,
  So I can just use the handlerMC.  and set the properties
from there that
is fine.  thank you.
I will look into the MovieClipLoader class  if I need it.
Thanks again,

Paul Vdst
----- Orinal Message ----- 
From: "Andreas Weber" <webwebergmail.com>
To: "Flashnewbie Mailing List" <flashnewbiechattyfig.figleaf.com>
Sent: Wednesday, March 21, 2007 8:47 AM
Subject: AW: [Flashnewbie] Alpha on a loaded Movie .swf


> So I am wondering if there is a easy call to
> start working with the fileName.swf like I would
> be working with a localMC.

The 'handle' is the MovieClip the .swf file is loaded into:
if you load 'some.swf' into holder_mc you can set the swf's
_alpha by just
doing holder_mc._alpha = 33;

Note one fundamental difference to attaching from the
library: to access the
holder clips properties (e.g. _alpha) you have to wait until
the load is
completely finished. One option is to use the
MovieClipLoader class - wait
until the MovieClipLoader.onLoadInit handler is called
before setting the
clips properties.

hth
-------------
Andreas Weber



-----Ursprüngliche Nachricht-----
Von: flashnewbie-bounceschattyfig.figleaf.com
[mailto:flashnewbie-bounceschattyfig.figleaf.com]Im
Auftrag von Paul V.
Gesendet: Mittwoch, 21. März 2007 16:20
An: Flashnewbie Mailing List
Betreff: [Flashnewbie] Alpha on a loaded Movie .swf


Hello,
   I am looking at having to load in several movies (which
are images) as
separate swf's, to reduce load time.  I have to do this way.
 I had it set
with attachmoive files from the library, and then I was
setting the alpha
and positioning it.  I want to be able to call it from the
parent swf, and
have parameter control.  I could run an alpha fade-in on the
child swf I
realize but I also want to get some the size parameters for
some hitTest
events I am going to be running after the swf is loaded.  So
I am wondering
if there is a easy call to start working with the
fileName.swf like I would
be working with a localMC.   ie:  localMC._alpha = 5;
localMC._y =
Stage.width/2 - localMC._width/2;    etc...


Thank for the help on this one.

Paul
_______________________________________________
Flashnewbiechattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashnewb
ie

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.c
om

_______________________________________________
Flashnewbiechattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashnewb
ie

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.c
om


_______________________________________________
Flashnewbiechattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashnewb
ie

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.c
om

[1-2]

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