For god's sake. it works =) ! The button hasn't (at all) width and height!
What is the difference between the
addChild(buttonFromMainClass);
and
Application(Application.application).addChild(buttonFromMainClass);
In the adding process??? Does any body knows?
Thanks Amy anyway!!!
--- In flexcoders@yahoogroups.com, dennis den...@... wrote:
In small test application I have the follow object. stack
The Main.mxml loads the EntryClass.as - class EntryClass (that
doesn't extends anything) - public static function Main().
This EntryClass.Main() function is
--- In flexcoders@yahoogroups.com, ew6014 ew6...@... wrote:
hi guys. i was reading flex3 for dummies page 221 on containers and it gave
an example of adding childen using actionscript. it worked fine. but i
thought about adding a removeChild function. but it doesnt seem to be
working. can
You are not removing one of the checkboxes you added. If you check the
documentation for VBox at
http://livedocs.adobe.com/flex/3/langref/mx/containers/VBox.html you will see
there are a couple of ways to remove a single child - removeChild and
removeChildAt.
removeChild would work if you had
There are also UIComponents that must have children added at specific
places. I can't remember what these components are off-hand but I did
run into this same kind of problem with a window control bar that had
to be added as the last child. If another child was added after it,
then I got a range
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Sunday, January 20, 2008 7:57 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: addchild
I'm still missing something very basic. Why would you think
i practice
was flash only actionscript examples. It does take a while to understand the
whole framework so yaaa
- Original Message
From: Gordon Smith [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Monday, January 21, 2008 2:58:38 PM
Subject: RE: [flexcoders] Re: addchild
Why
Gordon Smith wrote:
Why would you think that a book called actionscript 3 animation
uses only only
flash.* classes throughout and avoids the mx.* classes completely ?
It was just a guess, because the title didn't include the word Flex.
Are you saying that this book actually does use
@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Monday, January 21, 2008 6:03 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: addchild
Gordon Smith wrote:
Why would you think that a book called actionscript 3 animation
uses only only
flash
]
*On Behalf Of [EMAIL PROTECTED]
*Sent:* Monday, January 21, 2008 6:03 PM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] Re: addchild
Gordon Smith wrote:
Why would you think that a book called actionscript 3 animation
uses only only
flash.* classes throughout and avoids the mx
: [flexcoders] Re: addchild
I just use whatever I can get to work. I'm happy just using flex, and
when I use some old flash its only because I don't know any better.
The ball class is from the foundation action script 3 animation book and
there is no import mx.core.UIComponent; in thier example.
When
of [EMAIL PROTECTED]
Sent: Sun 20/01/2008 15:56
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: addchild
I'm still missing something very basic. Why would you think that a book
called actionscript 3 animation
uses only only flash.* classes throughout and avoids the mx.* classes
: [flexcoders] Re: addchild
I'm still missing something very basic. Why would you think that a book
called actionscript 3 animation
uses only only flash.* classes throughout and avoids the mx.* classes
completely ? Doesn't Flex use actionscript 3? Doesn't it do animation?
I bought lots of other
That is if you do an ActionScript Project instead of a FlexProject
- Original Message
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Sunday, January 20, 2008 1:05:32 PM
Subject: Re: [flexcoders] Re: addchild
Thanks, that helps alot.
Why isn't
PM
Subject: Re: [flexcoders] Re: addchild
Thanks, that helps alot.
Why isn't this in the documentation ?
http://livedocs. adobe.com/ labs/flex3/ html/help. html?content=
Drawing_Vector_ Graphics_ 6.html
http://livedocs.adobe.com/labs/flex3/html/help.html?content=Drawing_Vector_Graphics_6
that it pays of quite rapidly.
It did for me.
-Original Message-
From: flexcoders@yahoogroups.com on behalf of [EMAIL PROTECTED]
Sent: Sun 20/01/2008 21:20
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: addchild
Yes I know, but where is the documentation for a flex project
Of *rueter007
*Sent:* Thursday, January 17, 2008 10:12 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Re: addchild
you cannot add sprites directly that way. you can do the following.
var ballParent: UIComponent = new UIComponent();
ballParent.addChild(ball);
vbox.addChild(ballParent
This may help:
http://weblogs.thekeunster.com/?p=6
Jason Merrill
Bank of America
GTO LLD Solutions Design Development
eTools Multimedia
Bank of America Flash Platform Developer Community
you cannot add sprites directly that way. you can do the following.
var ballParent: UIComponent = new UIComponent();
ballParent.addChild(ball);
vbox.addChild(ballParent);
and ofcourse, you have to set the width, height etc.
- venkat
http://www.venkatj.com
--- In flexcoders@yahoogroups.com,
Ok thanks, I tried that, Now I get this error,
Type was not found or was not a compile-time constant: UIComponent.
rueter007 wrote:
you cannot add sprites directly that way. you can do the following.
var ballParent: UIComponent = new UIComponent();
ballParent.addChild(ball);
import mx.core.UIComponent;
- Original Message
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, January 18, 2008 5:28:02 PM
Subject: Re: [flexcoders] Re: addchild
Ok thanks, I tried that, Now I get this error,
Type
mx.core.UIComponent;
- Original Message
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, January 18, 2008 5:28:02 PM
Subject: Re: [flexcoders] Re: addchild
Ok thanks, I tried that, Now I get this error,
Type was not found or was not a compile
, 2008 10:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: addchild
you cannot add sprites directly that way. you can do the following.
var ballParent: UIComponent = new UIComponent();
ballParent.addChild(ball);
vbox.addChild(ballParent);
and ofcourse, you have to set the width
@yahoogroups.com
Subject: Re: [flexcoders] Re: addchild
I just use whatever I can get to work. I'm happy just using flex, and
when I use some old flash its only because I don't know any better.
The ball class is from the foundation action script 3 animation book and
there is no import
--- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
Max Ok thanks, I can finally see the ball. I did look on
Max http://livedocs.adobe.com/flex/2/langref/mx/core/UIComponent.html
Max It should have this line somewhere on this page:
Max import.mx.core.UIComponent
Max For
I just use whatever I can get to work. I'm happy just using flex, and
when I use some old flash its only because I don't know any better.
The ball class is from the foundation action script 3 animation book and
there is no import mx.core.UIComponent; in thier example.
When you say: If you're
Containers are really containers of UIComponents (Flex stuff only).
You could add to rawChildren, but I think what Jason did is a better
idea. He created a UIComponent, and then just added the non-Flex
component to that.
-Ryan
--- In flexcoders@yahoogroups.com, Daniel Thompson [EMAIL
Nevermind, I forgot I need to add a UIComponent inside the Canvas:
mx:Canvas id=myCanvas x=10 y=10 width=774
height=463 borderColor=0xD4001A borderStyle=solid
mx:UIComponent id=myUIComponent /
/mx:Canvas
Jason
--- In flexcoders@yahoogroups.com, Merrill, Jason
What I have done is setting a breakpoint on the line of the
move-effect-tag in which both width and height are 0.
So Now I have added some 'debugging-alerts'
(1) one in the creationcomplete-event of the popupwindowcomponent,
before the inner form is added
(2) one in the creationcomplete-event
Nobody with any tips? :(
--Johan
--- In flexcoders@yahoogroups.com, johantrax [EMAIL PROTECTED]
wrote:
Hi all,
I create a TitleWindow with the PopupManager. The titlewindow should
dynamically contain a canvas.
So how did I do that. I gave the titlewindow a property called
'contentForm'
, 2007 8:16 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: addChild creationCompleteEffect
Nobody with any tips? :(
--Johan
--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, johantrax [EMAIL PROTECTED]
wrote:
Hi all,
I create a TitleWindow
, 2007 10:06 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: addChild creationCompleteEffect
Maybe try your effect on the showEffect rather than the
creationCompleteEffect? I haven't tried this to see if it works... just
a suggestion.
Joan
: [flexcoders] Re: addChild creationCompleteEffect
Maybe try your effect on the showEffect rather than the
creationCompleteEffect? I haven't tried this to see if it works... just
a suggestion.
Joan
Hie, and thanks
i'd like make a windows with every page that i want to print before
printing to select it
addpage is for print job isn't it ?
--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:
You can't add a child twice. Did you mean to call addPage?
: [flexcoders] Re: addchild error
Hie, and thanks
i'd like make a windows with every page that i want to print before
printing to select it
addpage is for print job isn't it ?
--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex
Harui [EMAIL PROTECTED] wrote:
You can't
[mailto:[EMAIL PROTECTED] On Behalf Of wifi19
Sent: Wednesday, March 28, 2007 12:07 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: addchild error
Hie, and thanks
i'd like make a windows with every page that i want to print before
printing to select it
addpage
that helped ,
Thanks a lot
Regards
Ps
On 10/16/06, learner [EMAIL PROTECTED] wrote:
Hello all ,
Is there any way by which i can decide if the any component contains a particular component or not.
something like this :
box:: VBox = new VBox();
box.width = 100;box.height = 100;
--- In flexcoders@yahoogroups.com, Jens Halm [EMAIL PROTECTED] wrote:
You can wrap your Sprite inside an UIComponent (code not tested):
var s:Sprite = new Sprite();
var c:UIComponent = new UIComponent();
c.addChild(s);
var b:Box = new Box();
b.addChild(b);
I meant
Did you ever get an answer on this? I'm running into the same
problem with getClassByName(MyCustomClass) blowing up unless I
create a dummy instance of it first. Even when I do create a dummy
instance first, it only works the first time I call the
getClassByName(MyCustomClass) method. After
-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of pwhite40
Sent: Saturday, February 18, 2006 9:46 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: addChild from String
Did you ever get an answer on this? I'm running
Hey Jens,
Thanks for the help. It's now working (sort of)...
If I create an instance of a built-in class (such as Button), the
method below works fine. However, if I try creating a custom Class
(eg. MyCustClass which extends from Canvas) like so:
import custclasses.MyCustClass;
var
search the flash coders list for this, there are a ton of sollutions floating around in there. On 1/18/06, Brendan Meutzner
[EMAIL PROTECTED] wrote:Hey Jens,Thanks for the help.It's now working (sort of)...
If I create an instance of a built-in class (such as Button), themethod below works
42 matches
Mail list logo