Yes, i think from flex you can perfectly use them using only AS3.
No secret about that.
If you mean using them in flash, i thing it's also possible using the special
packaged flex component kit for flash, available at flex website.
--
David Pariente
RIA consultor
Normally you only need to implement measure if you didn't base the component on
a container, but item renderers are a bit different. Their measure methods
must take the explicitWIdth and calculate measuredHeight.
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf
like you're
misinterpreting it.
Gordon Smith
Adobe Flex SDK Team
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Scott
Sent: Saturday, July 26, 2008 4:16 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] mxml components
I
!
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon
Smith
Sent: Monday, July 28, 2008 3:34 PM
To: flexcoders@yahoogroups.com
Subject: {Disarmed} RE: [flexcoders] mxml components
all classes are created when the application is started
AS3 classes get
Are these the same instance or unique instances with in each of the
class instances themselves (mainclass/class3)?
MainClass.mxml:
mx:script
![CDATA{
Import com.myapp.models.LoginClass;
...
..
And
Class3.mxml
mx:script
![CDATA{
: Tue 7/29/2008 10:30 AM
To: flexcoders@yahoogroups.com
Subject: {Disarmed} Re: {Disarmed} RE: [flexcoders] mxml components
Are these the same instance or unique instances with in each of the
class instances themselves (mainclass/class3)?
MainClass.mxml:
mx:script
![CDATA
To: flexcoders@yahoogroups.com
Subject: {Disarmed} RE: [flexcoders] mxml components
First, there are classes and instances. When it matters, use these
terms correctly.
Second, call does not apply to a class, or even really an
instance.
An instantiated class stays instantiated untill all
it.
Gordon Smith
Adobe Flex SDK Team
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Scott
Sent: Saturday, July 26, 2008 4:16 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] mxml components
I was afraid of that...
Ok
Some terminology: Classes aren't calling classes. Classes don't call
anything... methods inside classes call other methods.
In your MXML, an instance of MainClass is creating instances of
subclass1 and subclass2 and -- because they are Sprites, which can have
parent/child relationships --
First, there are classes and instances. When it matters, use these
terms correctly.
Second, call does not apply to a class, or even really an
instance.
An instantiated class stays instantiated untill all references to it are
removed, and Garbage Collection has run and removed it.
If
it depends on references, not whether you use or not.
so for example, if the code is like this:
MainClass.mxml
foo:MainClass
foo:SubClass id=bl/
/foo:MainClass
SubClass.mxml
foo:SubClass
foo:SubClass2a id='bla'/
/foo:SubClass
they will live forever. But if you load
hi Rohan,
This should help you http://aralbalkan.com/691
hf:)
On 8/22/06, tinywhistles [EMAIL PROTECTED] wrote:
Hi
I am trying to access MXML components insideAS files. Like I have an MXML file where I have defined a panel with an ID, say loginPanel.
What's required is that in an AS
You can create ActionScript or MXML class; they are effectively the same
thing. The only real limitation I've found is I've failed to create
extensible containers via MXML; meaning, extending CheckBox, Label, Loader,
with MXML works great, but extending Containers like VBox, Panel, etc. gave
So you're saying just extend a standard MXML component with an mx:script
include on line #2. And it should associate the AS file with the class
of the MXML component?
Well, that sounds hacky :) I hope this is addressed for the Beta.
-Trey
JesterXL wrote:
You can create ActionScript or MXML
mx.containers.VBox;
class MyVBox extends VBox
{
public function method():Void
{
trace(yo);
}
}
- Original Message -
From: Trey Long [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, January 20, 2006 3:50 PM
Subject: Re: [flexcoders] MXML Components
If you just nned to check the type of the component your
basicSearchCompany currently sits in during runtime try:
if (parentDocument instanceof marketingMain) {
parentDocument.marketingDetails.selectedIndex = 2;
parentDocument.gridContacts.dragable = true;
}
parentDocument points
Hi Dirk!
Thanks a lot for your answer. Unfortunatly the parentDocument doesn't
work, I still got the error Two MXML Files cannot reference each
other as child tags.
Another idea: why not dispatching an event object from your
basicSearchCompany? The embedding component could register for this
Hi Dirk!
Thanks a lot for your detailed answer. I will try and give you a feedback!
Cheers
Reto
Yahoo! Groups Sponsor ~--
Most low income households are not online. Help bridge the digital divide today!
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
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:
?xml version=1.0 encoding=utf-8?
mxCore:View xmlns=mx.core.*
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
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
. 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
. 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
Nope, in 1.x the mx:Effect 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
aye thanks matt.
On Apr 12, 2005 2:00 PM, Matt Chotin [EMAIL PROTECTED] wrote:
Nope, in 1.x the mx:Effect 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
Could you post some sample code so see
exactly what you're trying? It'll make it easier for us to
identify our bug or limitation or simply put you on the right path.
Matt
-Original Message-
From: bobpardoe1959 [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 04, 2004 12:58
AM
27 matches
Mail list logo