RE: [flexcoders] MXML Components and using mx:Effect

2005-04-11 Thread Matt Chotin










Nope, in 1.x the  tag has
special compiler logic that makes it impossible for it to live on its own.  AS
is the only way to get it standalone.

 

Matt

 









From: Scott Barnes [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 11, 2005 8:58
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] MXML
Components and using mx:Effect



 

Dumb question but i'll ask none the same (in case its not)

You can't
use http://www.macromedia.com...etc">

as a top
level tag for a mxml component can you?














Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












Re: [flexcoders] MXML Components and using mx:Effect

2005-04-11 Thread Scott Barnes

aye thanks matt.



On Apr 12, 2005 2:00 PM, Matt Chotin <[EMAIL PROTECTED]> wrote:
>  
>  
> 
> Nope, in 1.x the  tag has special compiler logic that makes it
> impossible for it to live on its own.  AS is the only way to get it
> standalone. 
> 
>   
> 
> Matt 
> 
>   
>  
>  
>  
> 
> From: Scott Barnes [mailto:[EMAIL PROTECTED] 
>  Sent: Monday, April 11, 2005 8:58 PM
>  To: flexcoders@yahoogroups.com
>  Subject: [flexcoders] MXML Components and using mx:Effect 
> 
>   
> 
> Dumb question but i'll ask none the same (in case its not)
>  
>  You can't use http://www.macromedia.com...etc";>
>  
>  as a top level tag for a mxml component can you?
>  
>  
>  
>  Yahoo! Groups Links
>  
>  
> To visit your group on the web, go to:
> http://groups.yahoo.com/group/flexcoders/
>   
> To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>   
> Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com (Coming Soon)


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] MXML Components and using mx:Effect

2005-04-11 Thread Scott Barnes

Ok Mr Matt,

Got another one for you (or anyone else)

Say I have the need to create a MXML component for the sake of making
life easier by allowing access to mx:Tag based approach (aswell as
script).

if i do something like this:


http://www.macromedia.com/2003/mxml";
initialize="doSomething()">

http://.."; source="..">



OR

*grin*


// insert your MXML effects here and use them outside this file via
index.mxml (ie var tmp =
this.createObjectClass(yourpath.to.yourmxmlfile,"name");

tmp["testItem"].getTestMethod(); // will invoke the RemoteObject
within the mxml movieclip.




In theory this should give me the smallest footprint in terms of
memory/bandwidth usage, in that I know it sux to create a container
for the sake of having a container, but if the need arises this
*above* seems to me as being the optimal choice?

Purpose:
By doing this, you can use a MXML tag-based approach to building a
"CLASS" (aka MovieClip) instead of ActionScript 2.0 approach?

I tried mx:MovieClip and other undocumented tags but seems mx:View is
the only one that will work - is that because of the childDescriptors?
ie in order to access a movieclips property FLEX requires that logic
to be there in order to call on it for various routines?


Also, probably outside the scope of this thread but whats the
difference between a MovieClip and an Object (ie technically, i know
MovieClip adds "timeline" to the equation etc.. but how is a MovieClip
Constructed vs a plain object)

O.o

Scott.


On Apr 12, 2005 2:05 PM, Scott Barnes <[EMAIL PROTECTED]> wrote:
> aye thanks matt.
> 
> 
> On Apr 12, 2005 2:00 PM, Matt Chotin <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > Nope, in 1.x the  tag has special compiler logic that makes it
> > impossible for it to live on its own.  AS is the only way to get it
> > standalone.
> >
> >
> >
> > Matt
> >
> >
> >
> >  
> >
> >
> > From: Scott Barnes [mailto:[EMAIL PROTECTED]
> >  Sent: Monday, April 11, 2005 8:58 PM
> >  To: flexcoders@yahoogroups.com
> >  Subject: [flexcoders] MXML Components and using mx:Effect
> >
> >
> >
> > Dumb question but i'll ask none the same (in case its not)
> >
> >  You can't use http://www.macromedia.com...etc";>
> >
> >  as a top level tag for a mxml component can you?
> >
> >
> >  
> >  Yahoo! Groups Links
> >
> >
> > To visit your group on the web, go to:
> > http://groups.yahoo.com/group/flexcoders/
> >
> > To unsubscribe from this group, send an email to:
> > [EMAIL PROTECTED]
> >
> > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
> 
> --
> Regards,
> Scott Barnes
> http://www.mossyblog.com
> http://www.flexcoder.com (Coming Soon)
> 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com (Coming Soon)


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] MXML Components and using mx:Effect

2005-04-11 Thread Scott Barnes

Ooops


index.mxml (ie var tmp =
this.createObjectClass(yourpath.to.yourmxmlfile,"name");

tmp["testItem"].getTestMethod(); // will invoke the RemoteObject
within the mxml movieclip.
-

should be inside its own mx:Script tag etc.


On Apr 12, 2005 4:29 PM, Scott Barnes <[EMAIL PROTECTED]> wrote:
> Ok Mr Matt,
> 
> Got another one for you (or anyone else)
> 
> Say I have the need to create a MXML component for the sake of making
> life easier by allowing access to mx:Tag based approach (aswell as
> script).
> 
> if i do something like this:
> 
> 
>  xmlns:mx="http://www.macromedia.com/2003/mxml";
> initialize="doSomething()">
> 
> http://.."; source="..">
> 
> 
> 
> OR
> 
> *grin*
> 
> 
> // insert your MXML effects here and use them outside this file via
> index.mxml (ie var tmp =
> this.createObjectClass(yourpath.to.yourmxmlfile,"name");
> 
> tmp["testItem"].getTestMethod(); // will invoke the RemoteObject
> within the mxml movieclip.
> 
> 
> 
> 
> In theory this should give me the smallest footprint in terms of
> memory/bandwidth usage, in that I know it sux to create a container
> for the sake of having a container, but if the need arises this
> *above* seems to me as being the optimal choice?
> 
> Purpose:
> By doing this, you can use a MXML tag-based approach to building a
> "CLASS" (aka MovieClip) instead of ActionScript 2.0 approach?
> 
> I tried mx:MovieClip and other undocumented tags but seems mx:View is
> the only one that will work - is that because of the childDescriptors?
> ie in order to access a movieclips property FLEX requires that logic
> to be there in order to call on it for various routines?
> 
> Also, probably outside the scope of this thread but whats the
> difference between a MovieClip and an Object (ie technically, i know
> MovieClip adds "timeline" to the equation etc.. but how is a MovieClip
> Constructed vs a plain object)
> 
> O.o
> 
> Scott.
> 
> 
> On Apr 12, 2005 2:05 PM, Scott Barnes <[EMAIL PROTECTED]> wrote:
> > aye thanks matt.
> >
> >
> > On Apr 12, 2005 2:00 PM, Matt Chotin <[EMAIL PROTECTED]> wrote:
> > >
> > >
> > >
> > > Nope, in 1.x the  tag has special compiler logic that makes it
> > > impossible for it to live on its own.  AS is the only way to get it
> > > standalone.
> > >
> > >
> > >
> > > Matt
> > >
> > >
> > >
> > >  
> > >
> > >
> > > From: Scott Barnes [mailto:[EMAIL PROTECTED]
> > >  Sent: Monday, April 11, 2005 8:58 PM
> > >  To: flexcoders@yahoogroups.com
> > >  Subject: [flexcoders] MXML Components and using mx:Effect
> > >
> > >
> > >
> > > Dumb question but i'll ask none the same (in case its not)
> > >
> > >  You can't use http://www.macromedia.com...etc";>
> > >
> > >  as a top level tag for a mxml component can you?
> > >
> > >
> > >  
> > >  Yahoo! Groups Links
> > >
> > >
> > > To visit your group on the web, go to:
> > > http://groups.yahoo.com/group/flexcoders/
> > >
> > > To unsubscribe from this group, send an email to:
> > > [EMAIL PROTECTED]
> > >
> > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
> >
> > --
> > Regards,
> > Scott Barnes
> > http://www.mossyblog.com
> > http://www.flexcoder.com (Coming Soon)
> >
> 
> --
> Regards,
> Scott Barnes
> http://www.mossyblog.com
> http://www.flexcoder.com (Coming Soon)
> 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com (Coming Soon)


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] MXML Components and using mx:Effect

2005-04-12 Thread Manish Jethani

On 4/12/05, Scott Barnes <[EMAIL PROTECTED]> wrote:

> Also, probably outside the scope of this thread but whats the
> difference between a MovieClip and an Object (ie technically, i know
> MovieClip adds "timeline" to the equation etc.. but how is a MovieClip
> Constructed vs a plain object)

An object is an ActionScript object.

Object is the name of the topmost class in the ActionScript class
heirarchy.  Every object "is an" Object.

MovieClip in ActionScript is the class that represents "movie clips". 
All Flex UI components are movie clips.  Class mx.core.UIObject
extends MovieClip.

-- 
[EMAIL PROTECTED]
http://manish.revise.org/


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] MXML Components and using mx:Effect

2005-04-12 Thread Scott Barnes

Yup, sorry I knew all that anyway (I'm a vetran Flash MX 2004 monkey
hehe) i was more looking for info on MovieClip vs Object under the
hood. Haven't you all wondered or pondered as to what the significant
difference between the two are?

A MovieClip extends Object but what changes or difference does it
actually do to an Object, i ask this more out of courisity :)

Sorry I should of asked that more directly heh :P


Scott.

On 4/13/05, Manish Jethani <[EMAIL PROTECTED]> wrote:
> 
> On 4/12/05, Scott Barnes <[EMAIL PROTECTED]> wrote:
> 
> > Also, probably outside the scope of this thread but whats the
> > difference between a MovieClip and an Object (ie technically, i know
> > MovieClip adds "timeline" to the equation etc.. but how is a MovieClip
> > Constructed vs a plain object)
> 
> An object is an ActionScript object.
> 
> Object is the name of the topmost class in the ActionScript class
> heirarchy.  Every object "is an" Object.
> 
> MovieClip in ActionScript is the class that represents "movie clips".
> All Flex UI components are movie clips.  Class mx.core.UIObject
> extends MovieClip.
> 
> --
> [EMAIL PROTECTED]
> http://manish.revise.org/
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com (Coming Soon)


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] MXML Components and using mx:Effect

2005-04-12 Thread Gordon Smith

I'd say that the most important differences between a MovieClip and a plain
Object are the following:

1. A MovieClip has all kinds of properties (_x, _width, _visible, etc.) and
methods (attachMovie(), loadMovie(), etc.) that an Object doesn't.

2. A MovieClip can't be created with the 'new' operator, but an Object can.

3. A MovieClip is  a visual object that is connected to the player's
rendering engine. When you change a property of a MovieClip, the player
automatically re-renders it when moving to the next frame; you don't have to
call redraw() or update() to make this happen. An Object has nothing to do
with the renderer.

4. Certain methods of a MovieClip -- onPress(), onRelease(), etc. -- are
automatically called by the Player in response to various user actions.

5. A MovieClip can be destroyed with removeMovieClip() (I think), while an
Object is simply garbage-collected.

6. MovieClip is a Flash-specific class, while Object is a class of the
standard EcmaScript language.

- Gordon


-Original Message-
From: Scott Barnes [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 6:44 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] MXML Components and using mx:Effect



Yup, sorry I knew all that anyway (I'm a vetran Flash MX 2004 monkey
hehe) i was more looking for info on MovieClip vs Object under the
hood. Haven't you all wondered or pondered as to what the significant
difference between the two are?

A MovieClip extends Object but what changes or difference does it
actually do to an Object, i ask this more out of courisity :)

Sorry I should of asked that more directly heh :P


Scott.

On 4/13/05, Manish Jethani <[EMAIL PROTECTED]> wrote:
> 
> On 4/12/05, Scott Barnes <[EMAIL PROTECTED]> wrote:
> 
> > Also, probably outside the scope of this thread but whats the
> > difference between a MovieClip and an Object (ie technically, i know
> > MovieClip adds "timeline" to the equation etc.. but how is a MovieClip
> > Constructed vs a plain object)
> 
> An object is an ActionScript object.
> 
> Object is the name of the topmost class in the ActionScript class
> heirarchy.  Every object "is an" Object.
> 
> MovieClip in ActionScript is the class that represents "movie clips".
> All Flex UI components are movie clips.  Class mx.core.UIObject
> extends MovieClip.
> 
> --
> [EMAIL PROTECTED]
> http://manish.revise.org/
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com (Coming Soon)


 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] MXML Components and using mx:Effect

2005-04-12 Thread Scott Barnes

hmm

thanks for that gordon,

I wonder if MM will ever allow us to do new MovieClip instead of
createEmptyMovieClip etc..

i've seen some MovieClip.prototype workarounds for this but *sigh* ...
anyway thanks for the info! :)


On 4/13/05, Gordon Smith <[EMAIL PROTECTED]> wrote:
> 
> I'd say that the most important differences between a MovieClip and a plain
> Object are the following:
> 
> 1. A MovieClip has all kinds of properties (_x, _width, _visible, etc.) and
> methods (attachMovie(), loadMovie(), etc.) that an Object doesn't.
> 
> 2. A MovieClip can't be created with the 'new' operator, but an Object can.
> 
> 3. A MovieClip is  a visual object that is connected to the player's
> rendering engine. When you change a property of a MovieClip, the player
> automatically re-renders it when moving to the next frame; you don't have to
> call redraw() or update() to make this happen. An Object has nothing to do
> with the renderer.
> 
> 4. Certain methods of a MovieClip -- onPress(), onRelease(), etc. -- are
> automatically called by the Player in response to various user actions.
> 
> 5. A MovieClip can be destroyed with removeMovieClip() (I think), while an
> Object is simply garbage-collected.
> 
> 6. MovieClip is a Flash-specific class, while Object is a class of the
> standard EcmaScript language.
> 
> - Gordon
> 
> 
> -Original Message-
> From: Scott Barnes [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 12, 2005 6:44 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] MXML Components and using mx:Effect
> 
> Yup, sorry I knew all that anyway (I'm a vetran Flash MX 2004 monkey
> hehe) i was more looking for info on MovieClip vs Object under the
> hood. Haven't you all wondered or pondered as to what the significant
> difference between the two are?
> 
> A MovieClip extends Object but what changes or difference does it
> actually do to an Object, i ask this more out of courisity :)
> 
> Sorry I should of asked that more directly heh :P
> 
> Scott.
> 
> On 4/13/05, Manish Jethani <[EMAIL PROTECTED]> wrote:
> >
> > On 4/12/05, Scott Barnes <[EMAIL PROTECTED]> wrote:
> >
> > > Also, probably outside the scope of this thread but whats the
> > > difference between a MovieClip and an Object (ie technically, i know
> > > MovieClip adds "timeline" to the equation etc.. but how is a MovieClip
> > > Constructed vs a plain object)
> >
> > An object is an ActionScript object.
> >
> > Object is the name of the topmost class in the ActionScript class
> > heirarchy.  Every object "is an" Object.
> >
> > MovieClip in ActionScript is the class that represents "movie clips".
> > All Flex UI components are movie clips.  Class mx.core.UIObject
> > extends MovieClip.
> >
> > --
> > [EMAIL PROTECTED]
> > http://manish.revise.org/
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> 
> --
> Regards,
> Scott Barnes
> http://www.mossyblog.com
> http://www.flexcoder.com (Coming Soon)
> 
> Yahoo! Groups Links
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com (Coming Soon)


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





RE: [flexcoders] MXML Components and using mx:Effect

2005-04-13 Thread Gordon Smith

> I wonder if MM will ever allow us to do new MovieClip instead of
> createEmptyMovieClip etc..

The Flash team is investigating this. I hope MovieClips can become more
normal.

- Gordon


-Original Message-
From: Scott Barnes [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 12, 2005 10:54 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] MXML Components and using mx:Effect



hmm

thanks for that gordon,

I wonder if MM will ever allow us to do new MovieClip instead of
createEmptyMovieClip etc..

i've seen some MovieClip.prototype workarounds for this but *sigh* ...
anyway thanks for the info! :)


On 4/13/05, Gordon Smith <[EMAIL PROTECTED]> wrote:
> 
> I'd say that the most important differences between a MovieClip and a
plain
> Object are the following:
> 
> 1. A MovieClip has all kinds of properties (_x, _width, _visible, etc.)
and
> methods (attachMovie(), loadMovie(), etc.) that an Object doesn't.
> 
> 2. A MovieClip can't be created with the 'new' operator, but an Object
can.
> 
> 3. A MovieClip is  a visual object that is connected to the player's
> rendering engine. When you change a property of a MovieClip, the player
> automatically re-renders it when moving to the next frame; you don't have
to
> call redraw() or update() to make this happen. An Object has nothing to do
> with the renderer.
> 
> 4. Certain methods of a MovieClip -- onPress(), onRelease(), etc. -- are
> automatically called by the Player in response to various user actions.
> 
> 5. A MovieClip can be destroyed with removeMovieClip() (I think), while an
> Object is simply garbage-collected.
> 
> 6. MovieClip is a Flash-specific class, while Object is a class of the
> standard EcmaScript language.
> 
> - Gordon
> 
> 
> -Original Message-----
> From: Scott Barnes [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 12, 2005 6:44 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] MXML Components and using mx:Effect
> 
> Yup, sorry I knew all that anyway (I'm a vetran Flash MX 2004 monkey
> hehe) i was more looking for info on MovieClip vs Object under the
> hood. Haven't you all wondered or pondered as to what the significant
> difference between the two are?
> 
> A MovieClip extends Object but what changes or difference does it
> actually do to an Object, i ask this more out of courisity :)
> 
> Sorry I should of asked that more directly heh :P
> 
> Scott.
> 
> On 4/13/05, Manish Jethani <[EMAIL PROTECTED]> wrote:
> >
> > On 4/12/05, Scott Barnes <[EMAIL PROTECTED]> wrote:
> >
> > > Also, probably outside the scope of this thread but whats the
> > > difference between a MovieClip and an Object (ie technically, i know
> > > MovieClip adds "timeline" to the equation etc.. but how is a MovieClip
> > > Constructed vs a plain object)
> >
> > An object is an ActionScript object.
> >
> > Object is the name of the topmost class in the ActionScript class
> > heirarchy.  Every object "is an" Object.
> >
> > MovieClip in ActionScript is the class that represents "movie clips".
> > All Flex UI components are movie clips.  Class mx.core.UIObject
> > extends MovieClip.
> >
> > --
> > [EMAIL PROTECTED]
> > http://manish.revise.org/
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> 
> --
> Regards,
> Scott Barnes
> http://www.mossyblog.com
> http://www.flexcoder.com (Coming Soon)
> 
> Yahoo! Groups Links
> 
> 
> Yahoo! Groups Links
> 
> 
> 
> 
> 


-- 
Regards,
Scott Barnes
http://www.mossyblog.com
http://www.flexcoder.com (Coming Soon)


 
Yahoo! Groups Links



 





 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/