Re: [Flashcoders] AS3 preloader access...or getDefinition ??

2008-03-18 Thread laurent

ho gosh...how many hours...I had the lxl variable PRIVATE...!

laurent a écrit :


I have a index.swf from a Main.as Class, that load a Preloader.swf 
made from a Preloader.as class.


the Main class load is throught a Loader Class. Then the Preloader 
throw Event when loading is own stuff


so from the Main I have EventListener on the Preloader. I can't find 
the way to reach the PreLoader properties and methodfrom my Main Class

the IDE says:
1178: Attempted access of inaccessible property lxl through a 
reference with static type org.lf:PreLoader.


I've tried casting like this:
var l:PreLoader = PreLoader( ev.target );
var mc:MovieClip = l.lxl.getMovieClip( "feuilles" );

does not work. Need some design advice here
thx
L
___
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] Setting buttonMode=true for all movieclips

2008-03-18 Thread Helmut Granda
Could you elaborate on your question?

On 3/18/08, Berkay Unal <[EMAIL PROTECTED]> wrote:
>
> Hi Coders,
>
> Is there a way to set buttonMode=true for all movieclips without extending
> MovieClip class with overwriting?
> Best
>
> --
> Berkay UNAL
> ___
> 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] AS3 preloader access...or getDefinition ??

2008-03-18 Thread laurent


I have a index.swf from a Main.as Class, that load a Preloader.swf made 
from a Preloader.as class.


the Main class load is throught a Loader Class. Then the Preloader throw 
Event when loading is own stuff


so from the Main I have EventListener on the Preloader. I can't find the 
way to reach the PreLoader properties and methodfrom my Main Class

the IDE says:
1178: Attempted access of inaccessible property lxl through a reference 
with static type org.lf:PreLoader.


I've tried casting like this:
var l:PreLoader = PreLoader( ev.target );
var mc:MovieClip = l.lxl.getMovieClip( "feuilles" );

does not work. Need some design advice here
thx
L
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] dictionary vs array

2008-03-18 Thread Steven Sacks

If you want the best performance you can get:

http://lab.polygonal.de/2007/11/26/data-structures-more-on-linked-lists/

His doubly linked list is insanely fast. What I mean is, I had some code 
that moved non-sequential items around a list.  Using an Array, I could 
easily cause Flash to timeout from code taking too long with 25,000 
items.  Using a DLinkedList, I could do the same operation with 200,000 
items in about 300ms.  25,000 items was < 10ms on average.


Obviously, YMMV, but these classes are fantastic.


Leandro Ferreira wrote:

There's also a performance issue there, since some array operations(ie.
splice) are more expensive than in dictionaries and some dictionaries
operations(ie.
for in) are more expensive than array ones.
  


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


Re: [Flashcoders] dictionary vs array

2008-03-18 Thread Leandro Ferreira
There's also a performance issue there, since some array operations(ie.
splice) are more expensive than in dictionaries and some dictionaries
operations(ie.
for in) are more expensive than array ones.


   Leandro Ferreira

On 3/11/08, Hans Wichman <[EMAIL PROTECTED]> wrote:
>
> On a sidenote, it's pretty easy to implement for as2 too btw, although the
> performance is probably not uber.
> I gotta admit once you get used to object-to-object mapping ... ;)
> On Tue, Mar 11, 2008 at 9:07 PM, Claus Wahlers <[EMAIL PROTECTED]>
> wrote:
>
>
> > Claus Wahlers wrote:
> >
> > > An associative Array behaves similar to a Dictionary.
> >
> > (if you are using string keys)
> >
> > Cheers,
> > Claus.
> > ___
> > 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] Custom method calls from loaded SWFs

2008-03-18 Thread Helmut Granda
sure... it is as simple as this:

// gets the loaded SWF
var theContent:MovieClip = bulkLoader.getMovieClip(path);

// creates a movieclip that will hold the loaded content
var movieHolder:MovieClip = new MovieClip;

// add the content to the movieHolder clip
movieHolder.addChild(theContent);

// down the line we tell "the content" to play
MovieClip(theContent).gotoAndPlay(2);

now "theContent" has to fire a method that will be used by the main shell
that holds the movieHolder and theContent

On 3/18/08, Sidney de Koning <[EMAIL PROTECTED]> wrote:
>
> In AS3 your dynamic loaded content is placed in a sanbox, where you
> have limited functionality.
> Can you show the code of how you are loading that specific item?
>
>
> S.
>
> On Mar 18, 2008, at 5:27 PM, Helmut Granda wrote:
>
> > AS3, compiled with Flash IDE.
> >
> > On 3/18/08, Sidney de Koning <[EMAIL PROTECTED]> wrote:
> >>
> >> AS2, AS3, AIR? Tell us more!
> >>
> >>
> >> On Mar 18, 2008, at 5:02 PM, Helmut Granda wrote:
> >>
> >>> Hi All,
> >>>
> >>> I have a small dilema with calling an event from a loaded SWF,
> >>> either
> >>> through a direct call or dispatching an event.
> >>>
> >>> Basically my main application loads different SWFs to a container
> >>> and there
> >>> is about 20 of them but one (and only one) needs to interact with
> >>> the
> >>> application.
> >>>
> >>> I tried to put a simple function call callToParent() but of course
> >>> it gives
> >>> me errors at compile time. whining that the method doesnt exists.
> >>>
> >>> Any suggestions? I know the long way to go around to this is to
> >>> create a
> >>> custom class that will load the content in to that class and then
> >>> make the
> >>> calls frorm there but I was wondering if there was an "easier" way
> >>> around
> >>> it.
> >>>
> >>>   TIA
> >>
> >>> ___
> >>> 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
> >>
> >
> >
> >
> > --
> > ...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
>



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


RE: [Flashcoders] Custom method calls from loaded SWFs

2008-03-18 Thread Merrill, Jason
hmmm... reading Sydney's post, reminds me that events bubbling up the
display list from loaded assets might not be possible, not sure if
events are turned off or not from loaded .swfs...

Jason Merrill
Bank of America  
GT&O and Risk L&LD Solutions Design & Development 
eTools & Multimedia 

Bank of America Flash Platform Developer Community


Are you a Bank of America associate interested in innovative learning
ideas and technologies? 
Check out our internal  GT&O Innovative Learning Blog & subscribe.




 

>>-Original Message-
>>From: [EMAIL PROTECTED] 
>>[mailto:[EMAIL PROTECTED] On Behalf 
>>Of Helmut Granda
>>Sent: Tuesday, March 18, 2008 1:00 PM
>>To: Flash Coders List
>>Subject: Re: [Flashcoders] Custom method calls from loaded SWFs
>>
>>time to read on event bubbling.. currently I just have the 
>>call on the timeline
>>
>>frame5:
>>callParentMethod();
>>
>>so, i would need to investigate how to make it "bubble"
>>
>>Would that be the only way to access this method?
>>
>>On 3/18/08, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>>>
>>> Does the event in the .swf bubble?  If so, you should be able to 
>>> detect it's event as it travels up the display list.  If 
>>not, can you 
>>> make it bubble?
>>>
>>> Jason Merrill
>>> Bank of America
>>> GT&O and Risk L&LD Solutions Design & Development eTools & 
>>Multimedia
>>>
>>> Bank of America Flash Platform Developer Community
>>>
>>>
>>> Are you a Bank of America associate interested in 
>>innovative learning 
>>> ideas and technologies?
>>> Check out our internal  GT&O Innovative Learning Blog & subscribe.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> >>-Original Message-
>>> >>From: [EMAIL PROTECTED]
>>> >>[mailto:[EMAIL PROTECTED] On Behalf Of 
>>> >>Helmut Granda
>>> >>Sent: Tuesday, March 18, 2008 12:28 PM
>>> >>To: Flash Coders List
>>> >>Subject: Re: [Flashcoders] Custom method calls from loaded SWFs
>>> >>
>>> >>AS3, compiled with Flash IDE.
>>> >>
>>> >>On 3/18/08, Sidney de Koning <[EMAIL PROTECTED]> wrote:
>>> >>>
>>> >>> AS2, AS3, AIR? Tell us more!
>>> >>>
>>> >>>
>>> >>> On Mar 18, 2008, at 5:02 PM, Helmut Granda wrote:
>>> >>>
>>> >>> > Hi All,
>>> >>> >
>>> >>> > I have a small dilema with calling an event from a 
>>loaded SWF, 
>>> >>> > either through a direct call or dispatching an event.
>>> >>> >
>>> >>> > Basically my main application loads different SWFs to a 
>>> >>> > container and there is about 20 of them but one (and 
>>only one) 
>>> >>> > needs to interact with the application.
>>> >>> >
>>> >>> > I tried to put a simple function call callToParent() but
>>> >>of course
>>> >>> > it gives me errors at compile time. whining that the
>>> >>method doesnt
>>> >>> > exists.
>>> >>> >
>>> >>> > Any suggestions? I know the long way to go around to 
>>this is to 
>>> >>> > create a custom class that will load the content in to that 
>>> >>> > class and then make the calls frorm there but I was wondering
>>> >>if there was
>>> >>> > an "easier" way around it.
>>> >>> >
>>> >>> >TIA
>>> >>>
>>> >>> > ___
>>> >>> > 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
>>> >>>
>>> >>
>>> >>
>>> >>
>>> >>--
>>> >>...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
>>>
>>
>>
>>
>>--
>>...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


[Flashcoders] Setting buttonMode=true for all movieclips

2008-03-18 Thread Berkay Unal
Hi Coders,

Is there a way to set buttonMode=true for all movieclips without extending
MovieClip class with overwriting?
Best
-- 
Berkay UNAL
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Custom method calls from loaded SWFs

2008-03-18 Thread Helmut Granda
time to read on event bubbling.. currently I just have the call on the
timeline

frame5:
callParentMethod();

so, i would need to investigate how to make it "bubble"

Would that be the only way to access this method?

On 3/18/08, Merrill, Jason <[EMAIL PROTECTED]> wrote:
>
> Does the event in the .swf bubble?  If so, you should be able to detect
> it's event as it travels up the display list.  If not, can you make it
> bubble?
>
> Jason Merrill
> Bank of America
> GT&O and Risk L&LD Solutions Design & Development
> eTools & Multimedia
>
> Bank of America Flash Platform Developer Community
>
>
> Are you a Bank of America associate interested in innovative learning
> ideas and technologies?
> Check out our internal  GT&O Innovative Learning Blog & subscribe.
>
>
>
>
>
>
>
> >>-Original Message-
> >>From: [EMAIL PROTECTED]
> >>[mailto:[EMAIL PROTECTED] On Behalf
> >>Of Helmut Granda
> >>Sent: Tuesday, March 18, 2008 12:28 PM
> >>To: Flash Coders List
> >>Subject: Re: [Flashcoders] Custom method calls from loaded SWFs
> >>
> >>AS3, compiled with Flash IDE.
> >>
> >>On 3/18/08, Sidney de Koning <[EMAIL PROTECTED]> wrote:
> >>>
> >>> AS2, AS3, AIR? Tell us more!
> >>>
> >>>
> >>> On Mar 18, 2008, at 5:02 PM, Helmut Granda wrote:
> >>>
> >>> > Hi All,
> >>> >
> >>> > I have a small dilema with calling an event from a loaded SWF,
> >>> > either through a direct call or dispatching an event.
> >>> >
> >>> > Basically my main application loads different SWFs to a container
> >>> > and there is about 20 of them but one (and only one) needs to
> >>> > interact with the application.
> >>> >
> >>> > I tried to put a simple function call callToParent() but
> >>of course
> >>> > it gives me errors at compile time. whining that the
> >>method doesnt
> >>> > exists.
> >>> >
> >>> > Any suggestions? I know the long way to go around to this is to
> >>> > create a custom class that will load the content in to that class
> >>> > and then make the calls frorm there but I was wondering
> >>if there was
> >>> > an "easier" way around it.
> >>> >
> >>> >TIA
> >>>
> >>> > ___
> >>> > 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
> >>>
> >>
> >>
> >>
> >>--
> >>...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
>



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


Re: [Flashcoders] Custom method calls from loaded SWFs

2008-03-18 Thread Sidney de Koning
In AS3 your dynamic loaded content is placed in a sanbox, where you  
have limited functionality.

Can you show the code of how you are loading that specific item?

S.
On Mar 18, 2008, at 5:27 PM, Helmut Granda wrote:


AS3, compiled with Flash IDE.

On 3/18/08, Sidney de Koning <[EMAIL PROTECTED]> wrote:


AS2, AS3, AIR? Tell us more!


On Mar 18, 2008, at 5:02 PM, Helmut Granda wrote:


Hi All,

I have a small dilema with calling an event from a loaded SWF,  
either

through a direct call or dispatching an event.

Basically my main application loads different SWFs to a container
and there
is about 20 of them but one (and only one) needs to interact with  
the

application.

I tried to put a simple function call callToParent() but of course
it gives
me errors at compile time. whining that the method doesnt exists.

Any suggestions? I know the long way to go around to this is to
create a
custom class that will load the content in to that class and then
make the
calls frorm there but I was wondering if there was an "easier" way
around
it.

  TIA



___
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





--
...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


RE: [Flashcoders] Custom method calls from loaded SWFs

2008-03-18 Thread Merrill, Jason
Does the event in the .swf bubble?  If so, you should be able to detect
it's event as it travels up the display list.  If not, can you make it
bubble?

Jason Merrill
Bank of America  
GT&O and Risk L&LD Solutions Design & Development 
eTools & Multimedia 

Bank of America Flash Platform Developer Community


Are you a Bank of America associate interested in innovative learning
ideas and technologies? 
Check out our internal  GT&O Innovative Learning Blog & subscribe.




 

>>-Original Message-
>>From: [EMAIL PROTECTED] 
>>[mailto:[EMAIL PROTECTED] On Behalf 
>>Of Helmut Granda
>>Sent: Tuesday, March 18, 2008 12:28 PM
>>To: Flash Coders List
>>Subject: Re: [Flashcoders] Custom method calls from loaded SWFs
>>
>>AS3, compiled with Flash IDE.
>>
>>On 3/18/08, Sidney de Koning <[EMAIL PROTECTED]> wrote:
>>>
>>> AS2, AS3, AIR? Tell us more!
>>>
>>>
>>> On Mar 18, 2008, at 5:02 PM, Helmut Granda wrote:
>>>
>>> > Hi All,
>>> >
>>> > I have a small dilema with calling an event from a loaded SWF, 
>>> > either through a direct call or dispatching an event.
>>> >
>>> > Basically my main application loads different SWFs to a container 
>>> > and there is about 20 of them but one (and only one) needs to 
>>> > interact with the application.
>>> >
>>> > I tried to put a simple function call callToParent() but 
>>of course 
>>> > it gives me errors at compile time. whining that the 
>>method doesnt 
>>> > exists.
>>> >
>>> > Any suggestions? I know the long way to go around to this is to 
>>> > create a custom class that will load the content in to that class 
>>> > and then make the calls frorm there but I was wondering 
>>if there was 
>>> > an "easier" way around it.
>>> >
>>> >TIA
>>>
>>> > ___
>>> > 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
>>>
>>
>>
>>
>>--
>>...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


Re: [Flashcoders] Custom method calls from loaded SWFs

2008-03-18 Thread Helmut Granda
AS3, compiled with Flash IDE.

On 3/18/08, Sidney de Koning <[EMAIL PROTECTED]> wrote:
>
> AS2, AS3, AIR? Tell us more!
>
>
> On Mar 18, 2008, at 5:02 PM, Helmut Granda wrote:
>
> > Hi All,
> >
> > I have a small dilema with calling an event from a loaded SWF, either
> > through a direct call or dispatching an event.
> >
> > Basically my main application loads different SWFs to a container
> > and there
> > is about 20 of them but one (and only one) needs to interact with the
> > application.
> >
> > I tried to put a simple function call callToParent() but of course
> > it gives
> > me errors at compile time. whining that the method doesnt exists.
> >
> > Any suggestions? I know the long way to go around to this is to
> > create a
> > custom class that will load the content in to that class and then
> > make the
> > calls frorm there but I was wondering if there was an "easier" way
> > around
> > it.
> >
> >TIA
>
> > ___
> > 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
>



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


Re: [Flashcoders] Custom method calls from loaded SWFs

2008-03-18 Thread Sidney de Koning

AS2, AS3, AIR? Tell us more!

On Mar 18, 2008, at 5:02 PM, Helmut Granda wrote:


Hi All,

I have a small dilema with calling an event from a loaded SWF, either
through a direct call or dispatching an event.

Basically my main application loads different SWFs to a container  
and there

is about 20 of them but one (and only one) needs to interact with the
application.

I tried to put a simple function call callToParent() but of course  
it gives

me errors at compile time. whining that the method doesnt exists.

Any suggestions? I know the long way to go around to this is to  
create a
custom class that will load the content in to that class and then  
make the
calls frorm there but I was wondering if there was an "easier" way  
around

it.

   TIA
___
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] Custom method calls from loaded SWFs

2008-03-18 Thread Helmut Granda
Hi All,

I have a small dilema with calling an event from a loaded SWF, either
through a direct call or dispatching an event.

Basically my main application loads different SWFs to a container and there
is about 20 of them but one (and only one) needs to interact with the
application.

I tried to put a simple function call callToParent() but of course it gives
me errors at compile time. whining that the method doesnt exists.

Any suggestions? I know the long way to go around to this is to create a
custom class that will load the content in to that class and then make the
calls frorm there but I was wondering if there was an "easier" way around
it.

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


Re: [Flashcoders] TextField motion

2008-03-18 Thread Pedro Kostelec
Yes i know this questions are very basic, so don't need to reply them,. I am
not gonna do it like this i will leave this part  for another day

Thanks to all

On Tue, Mar 18, 2008 at 3:34 PM, Glen Pike <[EMAIL PROTECTED]>
wrote:

> You might want to try the newbie list, as these questions are getting
> very basic.
>
> Pedro Kostelec wrote:
> > And aprt form that textFiel motion i have another prblem
> >
> > I was vreating a short movie with as3, nothing on the stage
> >
> > No, i want to add something on the stage on Frame 1000 and when i press
> > spacebar, go there.
> > How can i do this?
> > gotoandplay?
> > Always when i try i get an error.
> >
> >
> > On Tue, Mar 18, 2008 at 3:04 PM, Pedro Kostelec <[EMAIL PROTECTED]>
> wrote:
> >
> >
> >> Yep you are right.
> >> myTextField.x++ should work, but when i put it on a timer i get an
> error :
> >> access of undefined property myTextField
> >>
> >> Here's the code
> >>
> >> import flash.text.TextField;
> >> import flash.text.TextFormat;
> >>
> >> var myTextField:TextField = new TextField();
> >> addChild(myTextField);
> >> myTextField.text = "Križev pot";
> >> myTextField.width = 800;
> >> myTextField.height = 200;
> >> myTextField.x = stage.stageWidth/2-200;
> >> myTextField.y = stage.stageHeight/2+50;
> >> myTextField.border = false;
> >>
> >> var myFormat:TextFormat = new TextFormat();
> >> myFormat.color = 0xAA;
> >> myFormat.size = 92;
> >> myFormat.italic = false;
> >> myFormat.bold = true;
> >> myTextField.setTextFormat(myFormat);
> >>
> >> timer2= new Timer(50);
> >> timer2.addEventListener(TimerEvent.TIMER, onTimer2);
> >> timer2.start;
> >>
> >> private function onTimer2(timer2:TimerEvent):void {
> >> myTextField.y++;
> >> }
> >>
> >> Allan thanks for the alpha. Actually the alpha was only a workaround if
> >> motion wouldn't work. It is just to take this of stage and then
> removing it.
> >>
> >> On Tue, Mar 18, 2008 at 2:36 PM, Adrian Park <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >>> Hi Pedro.
> >>> You can't set alpha on TextFields which use device fonts - you'll have
> >>> to
> >>> embed the font if you want to be able to set alpha.
> >>>
> >>> I think myTextField.x++; probably works but since you only do it once
> it
> >>> isn't apparent. You'll have to set up a timer or frame event to do
> this
> >>> repeatedly in order to see the motion.
> >>>
> >>> HTH.
> >>>
> >>> Adrian Park
> >>>
> >>>
> >>> On Tue, Mar 18, 2008 at 2:17 PM, Pedro Kostelec <[EMAIL PROTECTED]>
> >>> wrote:
> >>>
> >>>
>  Hi
> 
>  Is there a way to apply to som text added with as3 some motion or
> 
> >>> alpha?
> >>>
>  I've got this working well:
> 
> import flash.text.TextField;
> import flash.text.TextFormat;
> 
>  var myTextField:TextField = new TextField();
> addChild(myTextField);
> myTextField.text = "Križev pot";
> myTextField.width = 800;
> myTextField.height = 200;
> myTextField.x = stage.stageWidth/2-200;
> myTextField.y = stage.stageHeight/2+50;
> *myTextField.alpha=0.5;//doean't work, how to do it? Or should
> 
> >>> i
> >>>
>  import something else???
>    myTextField.x++;//doean't work, how to do it?*
> myTextField.border = false;
> var myFormat:TextFormat = new TextFormat();
> myFormat.color = 0xAA;
> myFormat.size = 92;
> myFormat.italic = false;
> myFormat.bold = true;
> myTextField.setTextFormat(myFormat);
> 
>  --
>  Pedro D.K.
> 
>  ___
>  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
> >>>
> >>>
> >>
> >> --
> >> Pedro D.K.
> >>
> >
> >
> >
> >
> >
> > 
> >
> > ___
> > Flashcoders mailing list
> > Flashcoders@chattyfig.figleaf.com
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
> --
>
> Glen Pike
> 01736 759321
> www.glenpike.co.uk 
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
Pedro D.K.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://

Re: [Flashcoders] TextField motion

2008-03-18 Thread Allandt Bik-Elliott (Receptacle)

you should import the Timer and TimerEvent classes


On 18 Mar 2008, at 14:04, Pedro Kostelec wrote:


Yep you are right.
myTextField.x++ should work, but when i put it on a timer i get an  
error :

access of undefined property myTextField

Here's the code

import flash.text.TextField;
import flash.text.TextFormat;

var myTextField:TextField = new TextField();
addChild(myTextField);
myTextField.text = "Križev pot";
myTextField.width = 800;
myTextField.height = 200;
myTextField.x = stage.stageWidth/2-200;
myTextField.y = stage.stageHeight/2+50;
myTextField.border = false;

var myFormat:TextFormat = new TextFormat();
myFormat.color = 0xAA;
myFormat.size = 92;
myFormat.italic = false;
myFormat.bold = true;
myTextField.setTextFormat(myFormat);

timer2= new Timer(50);
timer2.addEventListener(TimerEvent.TIMER, onTimer2);
timer2.start;

private function onTimer2(timer2:TimerEvent):void {
myTextField.y++;
}

Allan thanks for the alpha. Actually the alpha was only a  
workaround if
motion wouldn't work. It is just to take this of stage and then  
removing it.


On Tue, Mar 18, 2008 at 2:36 PM, Adrian Park <[EMAIL PROTECTED]> wrote:


Hi Pedro.
You can't set alpha on TextFields which use device fonts - you'll  
have to

embed the font if you want to be able to set alpha.

I think myTextField.x++; probably works but since you only do it  
once it
isn't apparent. You'll have to set up a timer or frame event to do  
this

repeatedly in order to see the motion.

HTH.

Adrian Park


On Tue, Mar 18, 2008 at 2:17 PM, Pedro Kostelec <[EMAIL PROTECTED]>
wrote:


Hi

Is there a way to apply to som text added with as3 some motion or  
alpha?


I've got this working well:

   import flash.text.TextField;
   import flash.text.TextFormat;

var myTextField:TextField = new TextField();
   addChild(myTextField);
   myTextField.text = "Križev pot";
   myTextField.width = 800;
   myTextField.height = 200;
   myTextField.x = stage.stageWidth/2-200;
   myTextField.y = stage.stageHeight/2+50;
   *myTextField.alpha=0.5;//doean't work, how to do it? Or  
should i

import something else???
  myTextField.x++;//doean't work, how to do it?*
   myTextField.border = false;
   var myFormat:TextFormat = new TextFormat();
   myFormat.color = 0xAA;
   myFormat.size = 92;
   myFormat.italic = false;
   myFormat.bold = true;
   myTextField.setTextFormat(myFormat);

--
Pedro D.K.

___
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





--
Pedro D.K.
___
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] TextField motion

2008-03-18 Thread Matt S.
Do you need to name your textField, eg say "myTextField.name = "foo"",
and then say :

private function onTimer2(timer2:TimerEvent):void {
 var moveme = this.getChildByName("foo");
 moveme.y++;
   }



On Tue, Mar 18, 2008 at 10:04 AM, Pedro Kostelec <[EMAIL PROTECTED]> wrote:
> Yep you are right.
>  myTextField.x++ should work, but when i put it on a timer i get an error :
>  access of undefined property myTextField
>
>  Here's the code
>
>
> import flash.text.TextField;
> import flash.text.TextFormat;
>
>  var myTextField:TextField = new TextField();
> addChild(myTextField);
> myTextField.text = "Križev pot";
> myTextField.width = 800;
> myTextField.height = 200;
> myTextField.x = stage.stageWidth/2-200;
> myTextField.y = stage.stageHeight/2+50;
>
> myTextField.border = false;
>
> var myFormat:TextFormat = new TextFormat();
> myFormat.color = 0xAA;
> myFormat.size = 92;
> myFormat.italic = false;
> myFormat.bold = true;
> myTextField.setTextFormat(myFormat);
>
> timer2= new Timer(50);
> timer2.addEventListener(TimerEvent.TIMER, onTimer2);
> timer2.start;
>
>  private function onTimer2(timer2:TimerEvent):void {
> myTextField.y++;
> }
>
>  Allan thanks for the alpha. Actually the alpha was only a workaround if
>  motion wouldn't work. It is just to take this of stage and then removing it.
>
>
>  On Tue, Mar 18, 2008 at 2:36 PM, Adrian Park <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi Pedro.
>  > You can't set alpha on TextFields which use device fonts - you'll have to
>  > embed the font if you want to be able to set alpha.
>  >
>  > I think myTextField.x++; probably works but since you only do it once it
>  > isn't apparent. You'll have to set up a timer or frame event to do this
>  > repeatedly in order to see the motion.
>  >
>  > HTH.
>  >
>  > Adrian Park
>  >
>  >
>  > On Tue, Mar 18, 2008 at 2:17 PM, Pedro Kostelec <[EMAIL PROTECTED]>
>  > wrote:
>  >
>  > > Hi
>  > >
>  > > Is there a way to apply to som text added with as3 some motion or alpha?
>  > >
>  > > I've got this working well:
>  > >
>  > >import flash.text.TextField;
>  > >import flash.text.TextFormat;
>  > >
>  > > var myTextField:TextField = new TextField();
>  > >addChild(myTextField);
>  > >myTextField.text = "Križev pot";
>  > >myTextField.width = 800;
>  > >myTextField.height = 200;
>  > >myTextField.x = stage.stageWidth/2-200;
>  > >myTextField.y = stage.stageHeight/2+50;
>  > >*myTextField.alpha=0.5;//doean't work, how to do it? Or should i
>  > > import something else???
>  > >   myTextField.x++;//doean't work, how to do it?*
>  > >myTextField.border = false;
>  > >var myFormat:TextFormat = new TextFormat();
>  > >myFormat.color = 0xAA;
>  > >myFormat.size = 92;
>  > >myFormat.italic = false;
>  > >myFormat.bold = true;
>  > >myTextField.setTextFormat(myFormat);
>  > >
>  > > --
>  > > Pedro D.K.
>  > >
>  > > ___
>  > > 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
>  >
>
>
>
>  --
>  Pedro D.K.
>
> ___
>  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] TextField motion

2008-03-18 Thread Glen Pike
You might want to try the newbie list, as these questions are getting 
very basic.


Pedro Kostelec wrote:

And aprt form that textFiel motion i have another prblem

I was vreating a short movie with as3, nothing on the stage

No, i want to add something on the stage on Frame 1000 and when i press
spacebar, go there.
How can i do this?
gotoandplay?
Always when i try i get an error.


On Tue, Mar 18, 2008 at 3:04 PM, Pedro Kostelec <[EMAIL PROTECTED]> wrote:

  

Yep you are right.
myTextField.x++ should work, but when i put it on a timer i get an error :
access of undefined property myTextField

Here's the code

import flash.text.TextField;
import flash.text.TextFormat;

var myTextField:TextField = new TextField();
addChild(myTextField);
myTextField.text = "Križev pot";
myTextField.width = 800;
myTextField.height = 200;
myTextField.x = stage.stageWidth/2-200;
myTextField.y = stage.stageHeight/2+50;
myTextField.border = false;

var myFormat:TextFormat = new TextFormat();
myFormat.color = 0xAA;
myFormat.size = 92;
myFormat.italic = false;
myFormat.bold = true;
myTextField.setTextFormat(myFormat);

timer2= new Timer(50);
timer2.addEventListener(TimerEvent.TIMER, onTimer2);
timer2.start;

private function onTimer2(timer2:TimerEvent):void {
myTextField.y++;
}

Allan thanks for the alpha. Actually the alpha was only a workaround if
motion wouldn't work. It is just to take this of stage and then removing it.

On Tue, Mar 18, 2008 at 2:36 PM, Adrian Park <[EMAIL PROTECTED]> wrote:



Hi Pedro.
You can't set alpha on TextFields which use device fonts - you'll have
to
embed the font if you want to be able to set alpha.

I think myTextField.x++; probably works but since you only do it once it
isn't apparent. You'll have to set up a timer or frame event to do this
repeatedly in order to see the motion.

HTH.

Adrian Park


On Tue, Mar 18, 2008 at 2:17 PM, Pedro Kostelec <[EMAIL PROTECTED]>
wrote:

  

Hi

Is there a way to apply to som text added with as3 some motion or


alpha?
  

I've got this working well:

   import flash.text.TextField;
   import flash.text.TextFormat;

var myTextField:TextField = new TextField();
   addChild(myTextField);
   myTextField.text = "Križev pot";
   myTextField.width = 800;
   myTextField.height = 200;
   myTextField.x = stage.stageWidth/2-200;
   myTextField.y = stage.stageHeight/2+50;
   *myTextField.alpha=0.5;//doean't work, how to do it? Or should


i
  

import something else???
  myTextField.x++;//doean't work, how to do it?*
   myTextField.border = false;
   var myFormat:TextFormat = new TextFormat();
   myFormat.color = 0xAA;
   myFormat.size = 92;
   myFormat.italic = false;
   myFormat.bold = true;
   myTextField.setTextFormat(myFormat);

--
Pedro D.K.

___
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

  


--
Pedro D.K.






  



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


--

Glen Pike
01736 759321
www.glenpike.co.uk 
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] TextField motion

2008-03-18 Thread Pedro Kostelec
And aprt form that textFiel motion i have another prblem

I was vreating a short movie with as3, nothing on the stage

No, i want to add something on the stage on Frame 1000 and when i press
spacebar, go there.
How can i do this?
gotoandplay?
Always when i try i get an error.


On Tue, Mar 18, 2008 at 3:04 PM, Pedro Kostelec <[EMAIL PROTECTED]> wrote:

> Yep you are right.
> myTextField.x++ should work, but when i put it on a timer i get an error :
> access of undefined property myTextField
>
> Here's the code
>
> import flash.text.TextField;
> import flash.text.TextFormat;
>
> var myTextField:TextField = new TextField();
> addChild(myTextField);
> myTextField.text = "Križev pot";
> myTextField.width = 800;
> myTextField.height = 200;
> myTextField.x = stage.stageWidth/2-200;
> myTextField.y = stage.stageHeight/2+50;
> myTextField.border = false;
>
> var myFormat:TextFormat = new TextFormat();
> myFormat.color = 0xAA;
> myFormat.size = 92;
> myFormat.italic = false;
> myFormat.bold = true;
> myTextField.setTextFormat(myFormat);
>
> timer2= new Timer(50);
> timer2.addEventListener(TimerEvent.TIMER, onTimer2);
> timer2.start;
>
> private function onTimer2(timer2:TimerEvent):void {
> myTextField.y++;
> }
>
> Allan thanks for the alpha. Actually the alpha was only a workaround if
> motion wouldn't work. It is just to take this of stage and then removing it.
>
> On Tue, Mar 18, 2008 at 2:36 PM, Adrian Park <[EMAIL PROTECTED]> wrote:
>
> > Hi Pedro.
> > You can't set alpha on TextFields which use device fonts - you'll have
> > to
> > embed the font if you want to be able to set alpha.
> >
> > I think myTextField.x++; probably works but since you only do it once it
> > isn't apparent. You'll have to set up a timer or frame event to do this
> > repeatedly in order to see the motion.
> >
> > HTH.
> >
> > Adrian Park
> >
> >
> > On Tue, Mar 18, 2008 at 2:17 PM, Pedro Kostelec <[EMAIL PROTECTED]>
> > wrote:
> >
> > > Hi
> > >
> > > Is there a way to apply to som text added with as3 some motion or
> > alpha?
> > >
> > > I've got this working well:
> > >
> > >import flash.text.TextField;
> > >import flash.text.TextFormat;
> > >
> > > var myTextField:TextField = new TextField();
> > >addChild(myTextField);
> > >myTextField.text = "Križev pot";
> > >myTextField.width = 800;
> > >myTextField.height = 200;
> > >myTextField.x = stage.stageWidth/2-200;
> > >myTextField.y = stage.stageHeight/2+50;
> > >*myTextField.alpha=0.5;//doean't work, how to do it? Or should
> > i
> > > import something else???
> > >   myTextField.x++;//doean't work, how to do it?*
> > >myTextField.border = false;
> > >var myFormat:TextFormat = new TextFormat();
> > >myFormat.color = 0xAA;
> > >myFormat.size = 92;
> > >myFormat.italic = false;
> > >myFormat.bold = true;
> > >myTextField.setTextFormat(myFormat);
> > >
> > > --
> > > Pedro D.K.
> > >
> > > ___
> > > 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
> >
>
>
>
> --
> Pedro D.K.




-- 
Pedro D.K.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] TextField motion

2008-03-18 Thread Pedro Kostelec
Yep you are right.
myTextField.x++ should work, but when i put it on a timer i get an error :
access of undefined property myTextField

Here's the code

import flash.text.TextField;
import flash.text.TextFormat;

var myTextField:TextField = new TextField();
addChild(myTextField);
myTextField.text = "Križev pot";
myTextField.width = 800;
myTextField.height = 200;
myTextField.x = stage.stageWidth/2-200;
myTextField.y = stage.stageHeight/2+50;
myTextField.border = false;

var myFormat:TextFormat = new TextFormat();
myFormat.color = 0xAA;
myFormat.size = 92;
myFormat.italic = false;
myFormat.bold = true;
myTextField.setTextFormat(myFormat);

timer2= new Timer(50);
timer2.addEventListener(TimerEvent.TIMER, onTimer2);
timer2.start;

private function onTimer2(timer2:TimerEvent):void {
myTextField.y++;
}

Allan thanks for the alpha. Actually the alpha was only a workaround if
motion wouldn't work. It is just to take this of stage and then removing it.

On Tue, Mar 18, 2008 at 2:36 PM, Adrian Park <[EMAIL PROTECTED]> wrote:

> Hi Pedro.
> You can't set alpha on TextFields which use device fonts - you'll have to
> embed the font if you want to be able to set alpha.
>
> I think myTextField.x++; probably works but since you only do it once it
> isn't apparent. You'll have to set up a timer or frame event to do this
> repeatedly in order to see the motion.
>
> HTH.
>
> Adrian Park
>
>
> On Tue, Mar 18, 2008 at 2:17 PM, Pedro Kostelec <[EMAIL PROTECTED]>
> wrote:
>
> > Hi
> >
> > Is there a way to apply to som text added with as3 some motion or alpha?
> >
> > I've got this working well:
> >
> >import flash.text.TextField;
> >import flash.text.TextFormat;
> >
> > var myTextField:TextField = new TextField();
> >addChild(myTextField);
> >myTextField.text = "Križev pot";
> >myTextField.width = 800;
> >myTextField.height = 200;
> >myTextField.x = stage.stageWidth/2-200;
> >myTextField.y = stage.stageHeight/2+50;
> >*myTextField.alpha=0.5;//doean't work, how to do it? Or should i
> > import something else???
> >   myTextField.x++;//doean't work, how to do it?*
> >myTextField.border = false;
> >var myFormat:TextFormat = new TextFormat();
> >myFormat.color = 0xAA;
> >myFormat.size = 92;
> >myFormat.italic = false;
> >myFormat.bold = true;
> >myTextField.setTextFormat(myFormat);
> >
> > --
> > Pedro D.K.
> >
> > ___
> > 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
>



-- 
Pedro D.K.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] swc

2008-03-18 Thread Glen Pike
You can reduce compile times by using the Flex Compiler Shell.  If you 
are using Flash Develop or similar it works as well.


http://www.google.co.uk/search?hl=en&q=fcsh+compiler&btnG=Search&meta= 



This is not a Papervision thing, but it really helps compile times...

Dwayne Neckles wrote:

I am gettign long compile times witha papervision project im doing.. i have a 
hunch that if i use somethign called a swc that has the pv3dclasses precompiled 
already.. then i can save massive times...

anyone know of a way to create them.. and i dont have flex

_
Do more with your photos with Windows Live Photo Gallery.
http://www.windowslive.com/share.html?ocid=TXT_TAGLM_Wave2_photos_022008___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  


--

Glen Pike
01736 759321
www.glenpike.co.uk 
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] TextField motion

2008-03-18 Thread Matt S.
if you use a tweening Library like Tweener you can apply fancy-pants
tweens directly to the TextField.

2¢...

.m

On Tue, Mar 18, 2008 at 9:36 AM, Adrian Park <[EMAIL PROTECTED]> wrote:
> Hi Pedro.
>  You can't set alpha on TextFields which use device fonts - you'll have to
>  embed the font if you want to be able to set alpha.
>
>  I think myTextField.x++; probably works but since you only do it once it
>  isn't apparent. You'll have to set up a timer or frame event to do this
>  repeatedly in order to see the motion.
>
>  HTH.
>
>  Adrian Park
>
>
>
>
>  On Tue, Mar 18, 2008 at 2:17 PM, Pedro Kostelec <[EMAIL PROTECTED]> wrote:
>
>  > Hi
>  >
>  > Is there a way to apply to som text added with as3 some motion or alpha?
>  >
>  > I've got this working well:
>  >
>  >import flash.text.TextField;
>  >import flash.text.TextFormat;
>  >
>  > var myTextField:TextField = new TextField();
>  >addChild(myTextField);
>  >myTextField.text = "Križev pot";
>  >myTextField.width = 800;
>  >myTextField.height = 200;
>  >myTextField.x = stage.stageWidth/2-200;
>  >myTextField.y = stage.stageHeight/2+50;
>  >*myTextField.alpha=0.5;//doean't work, how to do it? Or should i
>  > import something else???
>  >   myTextField.x++;//doean't work, how to do it?*
>  >myTextField.border = false;
>  >var myFormat:TextFormat = new TextFormat();
>  >myFormat.color = 0xAA;
>  >myFormat.size = 92;
>  >myFormat.italic = false;
>  >myFormat.bold = true;
>  >myTextField.setTextFormat(myFormat);
>  >
>  > --
>  > Pedro D.K.
>  >
>  > ___
>  > 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] TextField motion

2008-03-18 Thread Allandt Bik-Elliott (Receptacle)

you could put it into a sprite and apply alpha / transformations to that

code:

import flash.text.TextField;
import flash.text.TextFormat;
import flash.display.Sprite;

var myTextField:TextField = new TextField();
myTextField.text = "Križev pot";
myTextField.width = 800;
myTextField.height = 200;
myTextField.x = stage.stageWidth/2-200;
myTextField.y = stage.stageHeight/2+50;
//  myTextField.alpha=0.5; Comes out - replaced below

myTextField.x++;//doean't work, how to do it?*
// 	this will set the textfield to (stage.stageWidth/2-200)+1  
which i guess isn't what you want


myTextField.border = false;
var myFormat:TextFormat = new TextFormat();
myFormat.color = 0xAA;
myFormat.size = 92;
myFormat.italic = false;
myFormat.bold = true;
myTextField.setTextFormat(myFormat);

var mySprite:Sprite = new Sprite();
mySprite.alpha = 0.5;

//  prolly best to put these after you've set everything els
addChild(mySprite);
mySprite.addChild(myTextField);

/code


On 18 Mar 2008, at 13:17, Pedro Kostelec wrote:


Hi

Is there a way to apply to som text added with as3 some motion or  
alpha?


I've got this working well:

import flash.text.TextField;
import flash.text.TextFormat;

var myTextField:TextField = new TextField();
addChild(myTextField);
myTextField.text = "Križev pot";
myTextField.width = 800;
myTextField.height = 200;
myTextField.x = stage.stageWidth/2-200;
myTextField.y = stage.stageHeight/2+50;
*myTextField.alpha=0.5;//doean't work, how to do it? Or  
should i

import something else???
   myTextField.x++;//doean't work, how to do it?*
myTextField.border = false;
var myFormat:TextFormat = new TextFormat();
myFormat.color = 0xAA;
myFormat.size = 92;
myFormat.italic = false;
myFormat.bold = true;
myTextField.setTextFormat(myFormat);

--
Pedro D.K.
___
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] swc

2008-03-18 Thread Dwayne Neckles
I am gettign long compile times witha papervision project im doing.. i have a 
hunch that if i use somethign called a swc that has the pv3dclasses precompiled 
already.. then i can save massive times...

anyone know of a way to create them.. and i dont have flex

_
Do more with your photos with Windows Live Photo Gallery.
http://www.windowslive.com/share.html?ocid=TXT_TAGLM_Wave2_photos_022008___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] TextField motion

2008-03-18 Thread Adrian Park
Hi Pedro.
You can't set alpha on TextFields which use device fonts - you'll have to
embed the font if you want to be able to set alpha.

I think myTextField.x++; probably works but since you only do it once it
isn't apparent. You'll have to set up a timer or frame event to do this
repeatedly in order to see the motion.

HTH.

Adrian Park


On Tue, Mar 18, 2008 at 2:17 PM, Pedro Kostelec <[EMAIL PROTECTED]> wrote:

> Hi
>
> Is there a way to apply to som text added with as3 some motion or alpha?
>
> I've got this working well:
>
>import flash.text.TextField;
>import flash.text.TextFormat;
>
> var myTextField:TextField = new TextField();
>addChild(myTextField);
>myTextField.text = "Križev pot";
>myTextField.width = 800;
>myTextField.height = 200;
>myTextField.x = stage.stageWidth/2-200;
>myTextField.y = stage.stageHeight/2+50;
>*myTextField.alpha=0.5;//doean't work, how to do it? Or should i
> import something else???
>   myTextField.x++;//doean't work, how to do it?*
>myTextField.border = false;
>var myFormat:TextFormat = new TextFormat();
>myFormat.color = 0xAA;
>myFormat.size = 92;
>myFormat.italic = false;
>myFormat.bold = true;
>myTextField.setTextFormat(myFormat);
>
> --
> Pedro D.K.
>
> ___
> 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] TextField motion

2008-03-18 Thread Pedro Kostelec
Hi

Is there a way to apply to som text added with as3 some motion or alpha?

I've got this working well:

import flash.text.TextField;
import flash.text.TextFormat;

var myTextField:TextField = new TextField();
addChild(myTextField);
myTextField.text = "Križev pot";
myTextField.width = 800;
myTextField.height = 200;
myTextField.x = stage.stageWidth/2-200;
myTextField.y = stage.stageHeight/2+50;
*myTextField.alpha=0.5;//doean't work, how to do it? Or should i
import something else???
   myTextField.x++;//doean't work, how to do it?*
myTextField.border = false;
var myFormat:TextFormat = new TextFormat();
myFormat.color = 0xAA;
myFormat.size = 92;
myFormat.italic = false;
myFormat.bold = true;
myTextField.setTextFormat(myFormat);

-- 
Pedro D.K.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] Color to black & white

2008-03-18 Thread Sidney de Koning
Oh and to reset an image to its normal color again you apply an new  
matrix like this:

var originalColour:Array =  [
1,0,0,0,0,
0,1,0,0,0,
0,0,1,0,0,
0,0,0,1,0
];
And if you like here is a matrix for sepia, because i know this stuff  
is hard to find:


var sepiaColors:Array = [
0.393, 0.769, 0.189,0,0,
0.349, 0.686, 0.168,0,0,
0.272, 0.534, 0.131,0,0,
0,0,0,1,0
];  

Have fun playing around,

Sid

On Mar 18, 2008, at 3:40 AM, laurent wrote:


Hi,

What would you suggest to make an image go from color to black and  
white ?


thanks.
Laurent
___
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] Color to black & white

2008-03-18 Thread Sidney de Koning

You can use a color matrix like this:

// Flash Imports
import flash.filters.ColorMatrixFilter;

var greys:Array =   [
0.3086,0.6094,0.082,0,0,
0.3086,0.6094,0.082,0,0,
0.3086,0.6094,0.082,0,0,
0,0,0,1,0
];
var greyscale:ColorMatrixFilter;
greyscale = new ColorMatrixFilter(greys);
var tmp:MovieClip;
tmp = someClip_mc;
tmp.filters = [greyscale];

setGreyScaleColor(tmp, greyscale, "greyscale");

function setGreyScaleColor(theClip:MovieClip, theColor,  
filterType:String)

{
theClip.filters = [theColor];
this.filterType = filterType;
}

So there you have it :)

Sid

On Mar 18, 2008, at 3:40 AM, laurent wrote:


Hi,

What would you suggest to make an image go from color to black and  
white ?


thanks.
Laurent
___
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] need:: Flex 3 & AS3 // tutorials, links, book recs.

2008-03-18 Thread Sidney de Koning
You can check out the books on the FirendOfEd.com site, onother good  
book on solely AS3 is the Colin Moock book. Or the programming Flex3  
by Joey Lott


Have fun!

Sid

On Mar 18, 2008, at 1:50 AM, Muzak wrote:


Read the docs. that's what I did :-)

If you already know Flex2, Flex 3 isn't that different. Just some  
added IDE functionality/wizards/skinning stuff.



- Original Message - From: "artur" <[EMAIL PROTECTED]>
To: "flashcoders" 
Sent: Monday, March 17, 2008 6:48 PM
Subject: [Flashcoders] need:: Flex 3 & AS3 // tutorials, links, book  
recs.




2nd try..
can ANYONE please send me their links and book recommendations
for migrating from Flex2-->3 and AS2-->3
it would be greatly 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