[flexcoders] Re: Does anyone have a Flex 2 Cairngorm example for a master/detail view/edit/de

2006-09-28 Thread Michael Ritchie
putting a small example together to demonstrate the issue, I will post it when I have it online. Thanks! - mr --- In flexcoders@yahoogroups.com, Tom Chiverton [EMAIL PROTECTED] wrote: On Thursday 28 September 2006 16:03, Michael Ritchie wrote: always get error trying to access a null object. I

[flexcoders] Re: Does anyone have a Flex 2 Cairngorm example for a master/detail view/edit/de

2006-09-28 Thread Michael Ritchie
Thanks, I will try that and post my example so maybe some others can comment or find what they need if the solution works. --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Hi Michael, Alternatively, you could define the selectedItem in the ModelLocator. On the Change

[flexcoders] Re: Does anyone have a Flex 2 Cairngorm example for a master/detail view/edit/de

2006-09-28 Thread Michael Ritchie
to the quick development of Cairngorm ;). I could not get some parts of the Cairngorm example to work, mainly the part that TH fixed. Maybe someone has a better solution or can locate where I messed up. Michael Ritchie --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Hi

Re: [flexcoders] Re: Resizable components

2006-09-27 Thread Michael Schmalle
ResizeManagerFX | Designed to be a rectangular mouse resizer | teotigraphics / Michael Schmalle |By the way,I have a transform manager that is coming out within a week that rotates and snaps. It does everything you would expect a Q(transform) key to do in a graphics program. looks exactly like

Re: [flexcoders] Outline view in FB2 does not work with classes from mx.* package?

2006-09-22 Thread Michael Schmalle
Hi, For hacks sake, my temporary work around was just to link a folder that is mx in the project.Once you open the folder from a dir in your project regardless if it is linked or not, you get the outline view. It's a hack, but works for someone with no other options.Peace, MikeOn 9/22/06, Tom

Re: [flexcoders] Re: Where can I find the source code of Flex2 framework?

2006-09-22 Thread Michael Schmalle
They are (most likely) like the rpc sources not included.No, they are included. If you have a registered version of the charting components for FB2, you will find them here;C:\Program Files\Adobe\Flex Builder 2\Flex SDK 2\frameworks\source\mx\charts At least that is where they are on my

Re: [flexcoders] Re: UI Advise

2006-09-22 Thread Michael Schmalle
I read it to today also and man you have some good seeds there waiting to sprout ;-)Peace, MikeOn 9/22/06, Andrew Trice [EMAIL PROTECTED] wrote: No problem. Thanks for reading it! _ Andrew Trice Cynergy

Re: [flexcoders] What is the most proper place to add event listeners to component's children?

2006-09-21 Thread Michael Schmalle
I would have to agree on the createChildren() override.There is no reason to get any more complicated than that. I have made a lot of the things called flex components and have had no need to put addEventListener() in any other spot EXCEPT commitProperties() [or some method that knows what it

Re: [flexcoders] Alpha setting of 0 doesn't work with controls' text

2006-09-21 Thread Michael Schmalle
Hi,The Label cannot have alpha applied to it unless you embed the font.TextField objects do not support alpha.Peace, MikeOn 9/21/06, tombaggett [EMAIL PROTECTED] wrote: Hi all, Shouldn't this code result in all the controls being invisible? ?xml version=1.0

Re: [flexcoders] Converting Flash components to use in Flex

2006-09-20 Thread Michael Schmalle
Hi,Not a chance. The validation algorithm shares similar patterns but, on a whole what you will have to do is 'abstract' what you know about your Flash 8 component and transfer logic into the flex framework. 1. Flash 8 is AS2, there is a huge difference, interfaces, formatting, namespace

Re: [flexcoders] call function (how-to)

2006-09-19 Thread Michael Schmalle
Hi,You could use;mx:Application ... creationComplete=drawer() .../mx:ApplicationPeace, MikeOn 9/19/06, caruso_canepari [EMAIL PROTECTED] wrote: Hi, I'm trying to use and understand Flex Builder. I made up this test function but I don't understand how it can

Re: [flexcoders] call function (how-to)

2006-09-19 Thread Michael Schmalle
BTW,Looking at your code, you cannot do this; mySprite.addChild(lab); addChild(mySprite);You need at least; mySprite.addChild(lab);var wrapper:UIComponent = new UIComponent();wrapper.addChild(mySprite); addChild(wrapper);Peace, MikeOn 9/19/06, Michael Schmalle

Re: [flexcoders] Re: Tree Component closing and opening item

2006-09-18 Thread Michael Schmalle
Hi,Actually, 'I think'... Having looked at the Tree code quite extensively, it is NOT possible.The reason being is the way the tween logic works in the Tree. When a tween is currently running, there cannot be any other tween going because there is only 1 instance of the tween in the whole tree.

Re: [flexcoders] alpha value of a text field...

2006-09-14 Thread Michael Schmalle
Yeah, embed the font.You cannot change the alpha of system fonts or any font for that matter that does not have it's paths embeded into the application.Peace, Mike On 9/14/06, oktay nba [EMAIL PROTECTED] wrote: why can't we change alpha valueof a text field?

[flexcoders] Re: Flex with FMS (something like Breeze...)

2006-09-12 Thread Michael Ritchie
I recently updated Adobe's FCS Text Chat example to work with Flex 2 and FMS, you can find my post and example here: http://thanksmister.com/?p=26 The problem with the Adobe examples are that they are outdated and some of the code to update them is not easy to find. I wanted an updated and

Re: [flexcoders] Public getter, private setter?

2006-09-09 Thread Michael Schmalle
Hah!So in my post a couple days ago... This is just a guess but, I would be willing to bet this is a Player bug. I was right. hehePeace, MikeOn 9/8/06, Matt Chotin [EMAIL PROTECTED] wrote: So actually we investigated further and it turns out this is

Re: [flexcoders] File Download: Can scriptTimeLimit only be set globally?

2006-09-08 Thread Michael Schmalle
[EMAIL PROTECTED] wrote: Hi Michael, I'm not sure I follow …any chance you could provide some additional detail? I was thinking of trying a setInterval function while the client awaits download …not sure yet if that would fool the player into thinking its

Re: [flexcoders] File Download: Can scriptTimeLimit only be set globally?

2006-09-08 Thread Michael Schmalle
an exception that a script timeout has occurred Process is terminated -Stace From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com] On Behalf Of Michael Schmalle Sent: Friday, September 08, 2006 10:48 AM To: [EMAIL PROTECTED]ups.com Subject: Re: [flexcoders

Re: [flexcoders] Re: flex2 final - TextInput focusRoundedCorners

2006-09-07 Thread Michael Schmalle
corners try this. mx:TextInput cornerRadius=10 borderStyle=solid/ without the borderStyle set to solid it doesn't work. .but i'll still need to use your (Mike) 'quick/right fix' for my issue. thanks bod --- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: BTW

Re: [flexcoders] Public getter, private setter?

2006-09-07 Thread Michael Schmalle
Hi,Ironically, I just ran into this same issue the other day.I had a post I didn't finish yesterday and what you just wrote about Java style was what I was going to say I did. :)This is just a guess but, I would be willing to bet this is a Player bug. If you think about the error, it is the

Re: [flexcoders] Public getter, private setter?

2006-09-07 Thread Michael Schmalle
opps,I meantprivate var height:Number;Peace, MikeOn 9/7/06, Michael Schmalle [EMAIL PROTECTED] wrote:Hi,Ironically, I just ran into this same issue the other day. I had a post I didn't finish yesterday and what you just wrote about Java style was what I was going to say I did. :)This is just

Re: [flexcoders] using application.callLater from a non-UI component?

2006-09-07 Thread Michael Schmalle
Hey,Try this;import mx.core.UIComponent;public class nonUIClass{ private var callLaterObject:UIComponent; public function invalidate(func:Function):void { if (!callLaterObject) { callLaterObject = new UIComponent(); } engine.callLater(func); } public function

Re: [flexcoders] using application.callLater from a non-UI component?

2006-09-07 Thread Michael Schmalle
sent it to soon;import mx.core.UIComponent;public class nonUIClass{ private var callLaterObject:UIComponent; public function invalidate(func:Function):void { if (!callLaterObject) { callLaterObject = new UIComponent(); } callLaterObject.callLater(func); } public function

Re: [flexcoders] using application.callLater from a non-UI component?

2006-09-07 Thread Michael Schmalle
function invalidateSomething():void { invalidate(updateSomething); } public function updateSomething():void { }}Peace, MikeOn 9/7/06, Michael Schmalle [EMAIL PROTECTED] wrote: sent it to soon;import mx.core.UIComponent;public class nonUIClass{ private var callLaterObject:UIComponent; public

Re: [flexcoders] Re: What comes after FlexEvent.INITIALIZE and FlexEvent.CREATION_COMPLETE?

2006-09-07 Thread Michael Schmalle
don't think SuperCheckBox is an accurate name :) Michael, I would be interested in hearing your rationale, because so far it seems like a perfectly valid way of dealing with the underlying processes of Flash/Flex. Thanks all, Ben --- In flexcoders@yahoogroups.com, Darron J. Schall [EMAIL PROTECTED

Re: [flexcoders] Re: using application.callLater from a non-UI component?

2006-09-07 Thread Michael Schmalle
is private? I'm kinda at a loss. Thunder --- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: Hmm.. my post didn't seem to send... import mx.core.UIComponent; public class nonUIClass { private var callLaterObject:UIComponent; public function invalidate

Re: [flexcoders] Re: What comes after FlexEvent.INITIALIZE and FlexEvent.CREATION_COMPLETE?

2006-09-07 Thread Michael Schmalle
it is that we are just faking a rollOver :) Ben --- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: Hi Ben, Well you know what, people have called me extreme, can you believe that?! ;-) Anyway, I am totally an advocate of callLater(), just not using callLater

Re: [flexcoders] File Download: Can scriptTimeLimit only be set globally?

2006-09-07 Thread Michael Schmalle
Hi,There is a work around with using the timer in a queue to give back cpu cycles to the cpu and trick the flash player that it is not locking up.I have a documenter that can easily do the flex framework, that takes 5 minutes from loading files, analyzing and rendering to server. Nothing locks

Re: [flexcoders] Re: flex2 final - TextInput focusRoundedCorners

2006-09-06 Thread Michael Schmalle
I think there is a bug which prevents the TextField from having roundedCorners.There is no bug, the HaloBorder specifications do not allow a TextInput to have rounded corners.The only styles it allows are none, solid, inset. And in those render methods, it only callsdraw3dBorder() which does

Re: [flexcoders] Re: flex2 final - TextInput focusRoundedCorners

2006-09-06 Thread Michael Schmalle
. --- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: I think there is a bug which prevents the TextField from having roundedCorners. There is no bug, the HaloBorder specifications do not allow a TextInput to have rounded corners. The only styles it allows are none, solid

Re: [flexcoders] What comes after FlexEvent.INITIALIZE and FlexEvent.CREATION_COMPLETE?

2006-09-06 Thread Michael Schmalle
Hi Ben,Why don't you do this? // SuperCheckBox.as *** package { import mx.controls.CheckBox; import mx.events.FlexEvent; import flash.text.TextFieldAutoSize; import flash.events.Event; public class SuperCheckBox extends CheckBox { public function SuperCheckBox() { super();}

Re: [flexcoders] Re: What comes after FlexEvent.INITIALIZE and FlexEvent.CREATION_COMPLETE?

2006-09-06 Thread Michael Schmalle
Hey,I will look at this and come up with an answer. :)I just guessed. ;-)Peace, MikeOn 9/6/06, ben.clinkinbeard [EMAIL PROTECTED] wrote: Hi Michael, Unfortunately, that code didn't help :( They still end up on top of each other. I am dispatching

Re: [flexcoders] Re: What comes after FlexEvent.INITIALIZE and FlexEvent.CREATION_COMPLETE?

2006-09-06 Thread Michael Schmalle
You know,I replied with the same exact post saying to migrate everything into createChildren();IMHO, you should never call callLater() on a protected method. There is just something seriously wrong with that path. I don't know but, I tried it with the create children and set the width (to get

Re: [flexcoders] Re: What comes after FlexEvent.INITIALIZE and FlexEvent.CREATION_COMPLETE?

2006-09-06 Thread Michael Schmalle
this class into the framework it is definitely not right. Sorry I don't have enough time to give you my take on it from a framework point of view. :)Peace, MikeOn 9/6/06, Michael Schmalle [EMAIL PROTECTED] wrote:You know, I replied with the same exact post saying to migrate everything

Re: [flexcoders] pop-up window x and y settings

2006-09-06 Thread Michael Schmalle
Hi, basics(PopUpManager.createPopUp(this, basics, false));What is 'this' refering to?That is probably the problem. Are you loading into an Application from another Application?Just for a test you can also comment out the x and y setting calls and try;

[flexcoders] Save image at server-side with ColdFusion

2006-09-05 Thread Michael Klishin
Hi, Is there a well-known way to save an image from bitmap data into the file on server with ColdFusion? I never worked with it and struggle to find an example... Thanks! -- Michael 'Antares' Klishin novemberain.com | flexwiki.novemberain.com | osflash.org/red5 | rubyonrails.ru

Re: [flexcoders] Overlays

2006-09-05 Thread Michael Schmalle
Hey,check out Sho's blog, he has a Drawer component that does exactly what you want.Peace, MikeOn 9/5/06, Benjamin Dobler [EMAIL PROTECTED] wrote: Hi, i`m looking for a good way to implement overlays. Something like a sidebar that hides outside the

Re: [flexcoders] UIComponent.width is always 0

2006-09-03 Thread Michael Schmalle
: - Original Message - From: Michael Schmalle [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, September 02, 2006 2:35 PM Subject: Re: [flexcoders] UIComponent.width is always 0 Hi, I don't know where this is going but, Really there is no issue here. He wanted width, he got

Re: [flexcoders] UIComponent.width is always 0

2006-09-02 Thread Michael Schmalle
to the display list through actionscript. regards, Muzak - Original Message - From: Michael Schmalle [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, September 02, 2006 6:54 AM Subject: Re: [flexcoders] UIComponent.width is always 0 Nope, it doesn't. It returns 0. If you

Re: [flexcoders] UIComponent.width is always 0

2006-09-02 Thread Michael Schmalle
measuredWidth, explicitWidth for a capable component to have itself perform the needed calculations for proper display in a Container, not Sprite. I have written a lot about this and a huge book is coming on my web site talking about all this.Peace, MikeOn 9/2/06, Michael Schmalle [EMAIL PROTECTED] wrote

Re: [flexcoders] UIComponent.width is always 0

2006-09-02 Thread Michael Schmalle
Haha, just adding fuel to the fire but,To make things even more crazy;-) When you set percentWidth to anything above 0, the witdth property of a UIComponent then becomes NaN. I think this proves the theory of what I am saying. Peace, MikeOn 9/2/06, Michael Schmalle [EMAIL PROTECTED] wrote: If I

[flexcoders] Save image @ server side with ColdFusion 5

2006-09-01 Thread Michael Klishin
Hi, What would you recommend to use to encode ByteArray as Base64 and send to ColdFusion 5 script to save it? I've never dealt with CF before as I'm the Rails guy so I'm pretty stuck... You can just point me to the class I need to investigate ;) Thanks in advance! -- Michael 'Antares' Klishin

Re: [flexcoders] Re: Order of drawing/rendering in a custom AS component

2006-09-01 Thread Michael Schmalle
err.. fridaysetChildIndex()Peace, MikeOn 9/1/06, Michael Schmalle [EMAIL PROTECTED] wrote:Hi,getChildAt()getChildByName()getChildIndex() all IDisplayObjectContainer interface methods and properties. setChildAt() work great for setting depth along with the property numChildren [0

Re: [flexcoders] Re: Order of drawing/rendering in a custom AS component

2006-09-01 Thread Michael Schmalle
Hi,getChildAt()getChildByName()getChildIndex()all IDisplayObjectContainer interface methods and properties. setChildAt() work great for setting depth along with the property numChildren [0] == topnumChildren - 1 == bottomPeace, MikeOn 9/1/06, jeremyrichman [EMAIL PROTECTED] wrote:

Re: [flexcoders] UIComponent.width is always 0

2006-09-01 Thread Michael Schmalle
Hi,Not to step on toes here but...The reason is not that a 'width' is not getting set but explicitWidth has not been set by YOU.If you call text.getExplicitOrMeasuredWidth(), this will return the correct measurement. Now, if you set text.width OR text.explicitWidth, you will get text.width. ;-)

Re: [flexcoders] UIComponent.width is always 0

2006-09-01 Thread Michael Schmalle
- From: Michael Schmalle [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, September 02, 2006 5:27 AM Subject: Re: [flexcoders] UIComponent.width is always 0 Hi, Not to step on toes here but... The reason is not that a 'width' is not getting set but explicitWidth has not been set

[flexcoders] Re: Buffer progress bar for streaming FLV

2006-08-30 Thread Michael Ritchie
Abdul is correct, you need to get the netstream time, use the following code for your enterframe function: private function onEnterFrame(event:Event):void { if(stream == null) return; var loadpct:Number = stream.bytesLoaded /

Re: [flexcoders] The supplied index is out of bounds error is thrown when binding LinkBar dataProvider and selectedIndex properties simultaneously

2006-08-30 Thread Michael Klishin
event and check whether dataProvider size is greater than 0. That is, do not use MXML tag property but set it from AS. -- Michael 'Antares' Klishin novemberain.com | osflash.org/red5 | rubyonrails.ru | flex.org -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files

Re: [flexcoders] NumberValidator question

2006-08-29 Thread Michael Schmalle
Michael, You have mentioned that it shoud send some sort of message with the event. What do you want this for? The error tips are shown for the inputs that are not number. So like any other validator it doesn't show any error tip when it is right. The error tips that are shown are meant to be readable

[flexcoders] output directive broken for absolute paths using compc

2006-08-29 Thread Michael
Hello, A minor but frustrating oddity: I have been tinkering around with compilation configuration files and this question is related to 'compc' and its configuration file. Does anyone know why compc doesn't take absolute paths inside the output directive? If I run compc from ~/foo, this

[flexcoders] Flex abruptly closes on startup with error

2006-08-29 Thread Michael Ritchie
. - michael ritchie -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders

Re: [flexcoders] NumberValidator question

2006-08-28 Thread Michael Schmalle
Hi,seems like the logicve is there; /** * Determines if the value is not null and not NaN value. */ override protected function isRealValue(value:Object):Boolean { return ((value != null) !isNaN(Number(value))); }Peace, MikeOn 8/28/06, Jeff Tapper [EMAIL PROTECTED] wrote:

Re: [flexcoders] NumberValidator question

2006-08-28 Thread Michael Schmalle
Hi,Yeah, I guess if I would have looked into the superclass I would have saw that. :)That is odd and I to wonder why they at least didn't send some sort of message with the event then just saying it is VALID. Maybe they are expecting you to catch NaN before any invalidation occurs but, that

Re: [flexcoders] mx:ToggleButtonBar / mx:Button

2006-08-28 Thread Michael Schmalle
on it..I remember, we actually did things that way while we were designing ButtonBar/ToggleButtonBar. But we changed it to current implementation later for some reasons. -abdulOn 8/24/06, Michael Schmalle [EMAIL PROTECTED] wrote: Hi,You don't put components

Re: [flexcoders] mx:ToggleButtonBar / mx:Button

2006-08-28 Thread Michael Schmalle
The interface actually would be;INavBarClientPeace, MikeOn 8/28/06, Michael Schmalle [EMAIL PROTECTED] wrote:Hi, mx:ToggleButtonBar x=10 y=60 width=640 height=202 mx:Array mx:Button label=Button 1 / mx:Button label=Button 2 / mx:Button label=Button 3 / /mx:Array

Re: [flexcoders] flex-config.xml in Flexbuilder

2006-08-26 Thread Michael Schmalle
Or if you actually want the config file ;-)?xml version=1.0?flex-config xmlns=http://www.adobe.com/2006/flex-config compiler keep-generated-actionscripttrue/keep-generated-actionscript theme tags, etc /compiler/flex-config If you have the main app called, MyLittleApp.mxml, name this file

[flexcoders] Re: add additional data to list-based drag and drop?

2006-08-25 Thread Michael Ritchie
I had a similar need using two datagrid components. I wanted to drag from datagrid one to datagrid two, and also drag/drop within datagrid two. I had to determine the names of each datagrid to allow/deny drag and drop targets. You can check out my example and source code here:

Re: [flexcoders] Need help identifying which Event to listen for

2006-08-24 Thread Michael Schmalle
I would think you could try the show / hide events also.The ViewStack would be making the next child visible as it is changing the selectedChild.Peace, MikeOn 8/23/06, Jeremy Lu [EMAIL PROTECTED] wrote: When selection changes, you can access current selected

Re: [flexcoders] ListCollectionView.contains( )

2006-08-24 Thread Michael Schmalle
Hi,Unfortunately, I think I remember looking at the source of the ListCollectionView and it only check object(item) reference.So what you are doing will not work. You could easily subclass ListCollectionView and override contains to do what you want there. Just create your own implementation.

Re: [flexcoders] Extending a subclass of Proxy

2006-08-24 Thread Michael Schmalle
Hi,It should be;package {// you need the import AND use namespace// if you don't have the import, the compiler has no idea what flash_proxy is in the namespace callimport flash.utils.flash_proxy;use namespace flash_proxy; public class ProxyB extends ProxyA {flash_proxy override function

Re: [flexcoders] mx:ToggleButtonBar / mx:Button

2006-08-24 Thread Michael Schmalle
Hi,You don't put components in a dataProvider. The ButtonBar reads from the model of a dataProvider which has for example a label property in the list of objects.You can also just specify an array of strings to be the label names. The ButtonBar will always use a Button for it's button. ;-)

Re: [flexcoders] Don't bindings work both ways??

2006-08-24 Thread Michael Schmalle
Hi,I don't know if this helps or not but,I use the change event in the textinput to update the model.Then when you want to update to the server the model is current.mx:TextInput id=userName text={model.userName} change={model.userName = userName.text}/then you can submit the model with

Re: [flexcoders] Don't bindings work both ways??

2006-08-24 Thread Michael Schmalle
, MikeOn 8/24/06, Michael Schmalle [EMAIL PROTECTED] wrote:Hi,I don't know if this helps or not but,I use the change event in the textinput to update the model. Then when you want to update to the server the model is current.mx:TextInput id=userName text={model.userName} change={model.userName

Re: [flexcoders] specifying a percentage width in script?

2006-08-24 Thread Michael Schmalle
Hi,UsemyComponent.percentWidth = 100;Peace, MikeOn 8/24/06, Doug Arthur [EMAIL PROTECTED] wrote: How can I specify spacer.width = 100%??? It throws an error because 100% is not an int. Thanks! -- What goes up, does come down.

Re: [Junk E-Mail - LOW] [flexcoders] Re: Choice of backend systems - which provides

2006-08-24 Thread Michael Schmalle
Hey Hank,Using FDS also means that you have root access to the web server right? Seeing as this is Java, you would need permissions to install in root folders.So, even if you can use FDS Express, it is still restricted(not free in the sense of Flex SDK). Dedicated servers are not cheap. Peace,

[flexcoders] Re: How to bring a combo box component inside the dataGrid Component

2006-08-23 Thread Michael Ritchie
I just finished a sample application because I needed to do the same exact thing for a recent project. I posted my sample files and source on my blog, hope it helps: http://thanksmister.com/?p=24 - mr --- In flexcoders@yahoogroups.com, richinternetapps [EMAIL PROTECTED] wrote: Hi Folks,

Re: [flexcoders] Re: Custom containers in Flex 2

2006-08-23 Thread Michael Schmalle
Heh,On that note :: I reread what I wrote and noticed something that some might not see right off the bat.this part ;override protected function updateDisplayList({ super.updateDisplayList (... mySlider.move(... mySlider.setActualSize(...}Should be (since you are doing this at runtime not

Re: [flexcoders] mx:Button but without the border

2006-08-23 Thread Michael Schmalle
Just another note;You can kill the button skins by setting their style to nullPeace, MikeOn 8/23/06, Impudent1 [EMAIL PROTECTED] wrote: Just to note something that got me with skinning a button was that I was using a toggle button. When using one you have to

Re: [flexcoders] custom component: how to tap into resize?

2006-08-23 Thread Michael Schmalle
Hi,There is a RESIZE event but...If you are actually creating a custom component, I wouldn't recommend attaching events that actually are going to effect your updateDisplayList() and commitProperties(). Ok, If a client calls width or height, you are going to get an invalidateProperties(),

Re: [flexcoders] custom component: how to tap into resize?

2006-08-23 Thread Michael Schmalle
opps, missed one;5a) myComponent.commitProperties()5b) myComponent.measure()Peace, MikeOn 8/23/06, Michael Schmalle [EMAIL PROTECTED] wrote:Hi,There is a RESIZE event but... If you are actually creating a custom component, I wouldn't recommend attaching events that actually are going to effect

Re: [flexcoders] Re: How to refresh a tree

2006-08-23 Thread Michael Schmalle
Hi,There is some issues with the Tree and XML dtat provider collections.One thing I can suggest is;Add an event listener to the divider bar release, I can't remeber what it is, in that handler call myTree.invalidateList();Give it a try and let me know.I have the same issues with using

Re: [flexcoders] Re: custom component: how to tap into resize?

2006-08-23 Thread Michael Schmalle
, framework you will want to use, no? --- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: opps, missed one; 5a) myComponent.commitProperties() 5b) myComponent.measure() Peace, Mike On 8/23/06, Michael Schmalle [EMAIL PROTECTED] wrote: Hi, There is a RESIZE

Re: [flexcoders] Can Flex handle mixed-content XML?

2006-08-20 Thread Michael Schmalle
Hi,That is an XMLList(), I don't know what you are doing but, you could load it asvar list:XMLList = new XMLList('nodeI like to drink beer everyfield key=frequency/ day(s)./node'); Peace, MikeOn 8/20/06, John Mazzocchi [EMAIL PROTECTED] wrote: Just a quickie

Re: [flexcoders] What event is fired by UIComponent successors if any its style is changed?

2006-08-18 Thread Michael Schmalle
None,But.. this method is triggeredpublic function styleChanged(propName:String):voidWhen passed null or 'styleName' this ususally signifies a full style cache refresh.Peace, Mike On 8/18/06, Sergey Kovalyov [EMAIL PROTECTED] wrote: Hi All! What event is

Re: [flexcoders] PopUp Windows 50% Transparent???

2006-08-17 Thread Michael Schmalle
I guess I really need to study up on Styles a bit more As far as base styles, check out the Flex Style Explorer. In about 10 minutes you will have a thorough understanding of the style implications on each of the base components. Peace, MikeOn 8/17/06, Mike Anderson [EMAIL PROTECTED] wrote:

Re: [flexcoders] Finding an Object in ActionScript

2006-08-17 Thread Michael Schmalle
Hi,1) There is a method of DisplayObjectContainer that does this by name.getChildByName();Note : This does not return a child by it's id only the name assignment. Which at anytime you can name a component in MXML or actionscript. myComponent.name = lblText;Then you could find it. If you need

Re: [flexcoders] Bug in Slider::UpdateDisplayList

2006-08-17 Thread Michael Schmalle
Hi, I'm instantiating new components and calling addChild() as needed in my container component's UpdateDisplayList function.If I hear you right, no this is not the right place to call add child.You should use commitProperties() override to create and add children in your component.Say,

Re: [flexcoders] TabNavigator vs. TabBar

2006-08-17 Thread Michael Schmalle
The only other thing it does that might BE of importance to a hard core programmer is that it binds the dataProvider to the TabBar and ViewStack for you(selectedIndex, selectedItem etc.).I guess if you like writing code and it didn't offer you something, use them separately. As far as

Re: [flexcoders] Event to detect data was loaded in a tree

2006-08-17 Thread Michael Schmalle
Hi,I have run into this issue before and I swear I couldn't find an answer for it. There are many events you can listen for for a Tree changing it's state and data changing.But... As far as granular control dealing with when particular nodes are loaded AND rendered is a completely different

Re: [flexcoders] how to text wrap in a label?

2006-08-17 Thread Michael Schmalle
Well it is easy, the Label is a single line text component. The 'Text' component will wrap and has multiline support. can I ask why I can't use a namespace for all my custom stuff?Because if you look at the itemRenderer's type, it is IFactory. This means it has to be a class reference not a

Re: [flexcoders] Event to detect data was loaded in a tree

2006-08-17 Thread Michael Schmalle
: There should be an appropriate CollectionEvent.CHANGE event coming from the dataProvider when data becomes available. Matt From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Michael Schmalle Sent: Thursday, August 17, 2006 4:19 PM

Re: [flexcoders] Re: Custom UIComponent creating problem

2006-08-15 Thread Michael Schmalle
Hi,It's not that it is not getting added to the display list, it's that UIComponet does not have a border.If you want something with a border, you either have to create a border skin instance in your extended UIComponent subclass OR subclass container that has a border(which is expensive if

Re: [flexcoders] Custom UIComponent creating problem

2006-08-15 Thread Michael Schmalle
Gordon;Opps my bad; to early in the morning;I read to much into this,He needed item_button.label = As;override protected function updateDisplayList({ super.updateD ... item_button.move(0, 0); item_button.setActualSize( item_button.measuredWidth, item_button.measuredHeight); Heh, sorry

Re: [flexcoders] Awe

2006-08-15 Thread Michael Schmalle
It happens when people enjoy what they do :)On 8/15/06, Samuel D. Colak [EMAIL PROTECTED] wrote: Dear All, Ive been a member of this group for the last 2 days and frankly am very amazed regarding the quality of the posts and replies given. Its fun to be

Re: [flexcoders] MyPrintPreview,,,,,how to print images?

2006-08-13 Thread Michael Schmalle
Hi,This method might help you protected function getComponentBitmap(target:IUIComponent,transparent:Boolean = false):IUIComponent { var bitmapData:BitmapData = new BitmapData( Math.round(target.width / target.scaleX), Math.round(target.height / target.scaleY), transparent);

[flexcoders] Re: T shirt......Was.. Loading Unicode values from XML and viewing in Flex compo

2006-08-13 Thread Michael
Gordon, Lol, thanks for the info. I will be attending the conference in Vegas, I already registered and have the hotel. - michael ritchie --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: If you attend MAX 2006, the annual Adobe user conference, there should be some

Re: [flexcoders] Re: AS3 Question

2006-08-12 Thread Michael Schmalle
Tim, good to see you back from the component exclusive world. Well, it was more of a 'had to answer most of questions world'.I don't know, you are out in lala land creating and using things that are new, it gets lonley sometimes.-) Really, I have been working on components, I had to turn the

Re: [flexcoders] request for adobe: stop being so private

2006-08-11 Thread Michael Schmalle
get to choose how much I want this feature (a lot). Enough to deal with it being all screwed up in the design mode? Not sure. On 8/10/06, Michael Schmalle [EMAIL PROTECTED] wrote: Hey,I totally agree with you. ;-) Most of what you said I have run into myself. What I have done? I created

Re: [flexcoders] Overall consensus of using the this keyword

2006-08-11 Thread Michael Schmalle
My question is, do all these same rules apply, to ActionScript that is contained within .MXML files?Yes, it is exactly the same. All mxml files are actually quasi classes. The all get compiled into as3 classes.So, if you had a button likemxApplication ... mx:Button id=myButton

Re: [flexcoders] http://www.gliffy.com

2006-08-11 Thread Michael Schmalle
oh,If you want to look at the asdochttp://www.teotigraphix.com/flex2/docs/SizerManagerFX/index-frames.htmlThat was printed a week ago and it is not totally current. Peace, MikeOn 8/11/06, Michael Schmalle [EMAIL PROTECTED] wrote: Hi,I have a component comming out soon that does exactly

Re: [flexcoders] Newbie Question - attaching a Sprite

2006-08-11 Thread Michael Schmalle
Hi,You could..var wrapper:IUIComponent = new UIComponent();wrapper.addChild(contentBg);panelOne.addChild(wrapper);This makes it harder to ref and size.You should look into skin subclasses like ProgrammaticSkin. If you make a class that subclasses ProgrammaticSkin, then you can use the graphics

Re: [flexcoders] Re: Newbie Question - attaching a Sprite

2006-08-11 Thread Michael Schmalle
extend mx.core.IUIComponent,A DisplayObject dosn't have to extend UIComponent it just has to implement the IUIComponent interface which ProgrammaticSkin does.ProgrammaticSkin is a Shape/FlexShape subclass. Peace, MikeOn 8/11/06, dadrobson [EMAIL PROTECTED] wrote:

Re: [flexcoders] Re: Newbie Question - attaching a Sprite

2006-08-11 Thread Michael Schmalle
Hi Jim, Canvas.addChild(Sprite),You cannot do this because The DisplayObject to add as a child of this Container. It must implement the IUIComponent interface.Sprite does not implement IUIComponent. Basically all children of a container have to be a IUIComponent becasue of the way Flex lays

Re: [flexcoders] Re: Newbie Question - attaching a Sprite

2006-08-11 Thread Michael Schmalle
danfrap767Have you been reading my posts? From the thread it dosn't look like you are seeing them or something.You need to create a skin class from ProgrammaticSkin. Subclass it.Peace, MikeOn 8/11/06, danfrap767 [EMAIL PROTECTED] wrote: I thought so too, as

Re: [flexcoders] AS3 Question

2006-08-11 Thread Michael Schmalle
Hi, mx:Script import AppStarter; var app:AppStarter = new AppStarter(); /mx:ScriptYou can't do this.you need to put that call inprivate function init(event:FlexEvent):void{ var app:AppStarter = new AppStarter(); }Here again, you cannot add a Sprite to an Application becasue Application is a

Re: [flexcoders] AS3 Question

2006-08-11 Thread Michael Schmalle
() { var t:TextField = new TextField(); t.text = Hello World; addChild( t ); } }}On 8/11/06, Michael Schmalle [EMAIL PROTECTED] wrote: Hi, mx:Script import AppStarter; var app:AppStarter = new AppStarter(); /mx:ScriptYou can't do this.you need to put that call inprivate function init

Re: [flexcoders] request for adobe: stop being so private

2006-08-10 Thread Michael Schmalle
: Michael,I understand why things are marked as private versus protected. What I'm suggesting is that enough thought isn't going into it and a LOT of stuff is being marked as private that shouldn't be. This is hobbling component extension. I have dealt with a lot

[flexcoders] Re: Tree-to-tree drag drop

2006-08-10 Thread Michael Montagna
COPY operations arent supported in the Tree by default because the framework cant guarantee deep copies of your objects. You'll need to implement your own COPY logic in the DND methods (MOVE can stay the same) including your own object copy. HTH, -Michael On 8/9/06 10:47 PM, John Mazzocchi

[flexcoders] Loading Unicode values from XML and viewing in Flex components as HTML

2006-08-09 Thread Michael Ritchie
=UTF-8? specialChars character data\u00A9/data labelCopyright sign/label /character /specialChars Thanks, Michael -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders

[flexcoders] Re: Loading Unicode values from XML and viewing in Flex components as HTML

2006-08-09 Thread Michael Ritchie
Gordon, That makes sense but its still strange that when I created an XML var in side application, it worked: var localXML:XML = character data\u00A9/data labelInverted Exclamation Mark/label /character; I was able to see the copyright symbol as HTML on my label. What threw me was that I

<    5   6   7   8   9   10   11   12   13   14   >