[flexcoders] data canvas beginFill problem

2008-04-22 Thread Paul Hastings
i might be seeing a bug with beginFill() on a data canvas. the following snippet produces a leaked shape: endPoint=findEndPoint(UV,x,y); uvCanvas.lineStyle(1,0xCC,.75,true); uvCanvas.drawCircle(x,y,7) uvCanvas.moveTo(x,y);

Re: [flexcoders] Re: how do I loop thru dynamically created UI components?

2008-04-22 Thread Lee
did you import them? - Original Message From: hoytlee2000 [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, April 22, 2008 6:38:47 AM Subject: [flexcoders] Re: how do I loop thru dynamically created UI components? Unfortunately it didn't work, I get an error saying I am

Re: [flexcoders] Debugging application

2008-04-22 Thread Lee
you have to download the adobe flashplayer plugin for the browser you will be using... yes, you can use the trace function after you get that installed... =) -- Lee - Original Message From: markgoldin_2000 [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, April 22, 2008

Re: [flexcoders] Why does iterating over an array of functions fail?

2008-04-22 Thread Ralf Bokelberg
The code below (from your example) looks strange. var validatorFn:Function = Filters.getFilter(options[i]); validators[validatorFn] = validatorFn; If validatorFn is a Function, you need a Dictionary to make it work. Otherwise the toString() value of validatorFn is used on the left hand side,

[flexcoders] Re: Scaling Child Images

2008-04-22 Thread stldvd
I forgot to say that I've tried scaleContent=true for the child images. That doesn't seem to work either. Anyone? --- In flexcoders@yahoogroups.com, stldvd [EMAIL PROTECTED] wrote: Hi All, I'm working on some interactive maps (just one so far) at

[flexcoders] Newbie Question: loading text file.

2008-04-22 Thread khan.ibraheem
I want to do 2 different things: 1) I want to load a text file from a hard-coded location and load its contents in a string. 2) I want to load a text file from a location choosed by user and load its contents in a string. How can I achieve these 2 tasks. Thanks.

[flexcoders] color of new text for rich text area

2008-04-22 Thread grimmwerks
Hey - I've got a RTE that gets it's starting text from a file, but then allows people to comment. I want to set the commenters text to be red. I've tried rte.colorPicker.selectedColor=0xFF; but it doesn't seem to be doing anything. Can anyone tell me how to set this?

Re: [flexcoders] color of new text for rich text area

2008-04-22 Thread grimmwerks
Argh. It gets worse - I've set setStyle(color, 0xFF) but I've a different issue. If a commenter clicks within a block of text that is already black, it sets their text to be black again. Is there a way of automatically setting the colorPicker to red and KEEPING it at red even if

Re: [flexcoders] color of new text for rich text area

2008-04-22 Thread grimmwerks
Ok -- adding on this I can see I have to have a function upon click -- so that when anyone clicks anywhere to set the text to be red, bold, fontsize, etc -- correct? On Apr 22, 2008, at 7:52 AM, grimmwerks wrote: Argh. It gets worse - I've set setStyle(color, 0xFF) but I've a

[flexcoders] Re: Debugging application

2008-04-22 Thread markgoldin_2000
I see, thanks. --- In flexcoders@yahoogroups.com, Lee [EMAIL PROTECTED] wrote: you have to download the adobe flashplayer plugin for the browser you will be using... yes, you can use the trace function after you get that installed... =) -- Lee - Original Message From:

Re: [flexcoders] Re: Unable to apply FB3 license on solaris

2008-04-22 Thread Jyoti Kishnani
How have you specified seria number in flex-config.xml? The licenses tag should be a child of the top-level flex-config tag. So for example: example follows. flex-config licenses license productflexbuilder3/product serial-number-xxx-x/serial-number /license /licenses compiler

Re: [flexcoders] Question about Cairngorm / UM extensions

2008-04-22 Thread gabriel montagné
On Mon, Apr 21, 2008 at 10:14 PM, shaun [EMAIL PROTECTED] wrote: I see. So did they use an IResponder for that? Exactly: http://code.google.com/p/flexcairngorm/source/browse/trunk/code/src/com/universalmind/cairngorm/events/Callbacks.as#37 It sounds like a good improvement. Thanks for the

Re: [flexcoders] Question about Cairngorm / UM extensions

2008-04-22 Thread gabriel montagné
On Mon, Apr 21, 2008 at 10:15 PM, Josh McDonald [EMAIL PROTECTED] wrote: Are the callbacks members of the UM Event or something? Like do you do event.success = myFunc; before you dispatchEvent() or something? Is there a copy of the api docs online I can poke around in? I'm just looking to

[flexcoders] Re: List Renderer error

2008-04-22 Thread duzengqiang
When the verticalScrollBar moves down(BY code),the items change. But when it moves up(by code),the items don't change. And the list cann't work as its usual way. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: You did not specify what the problem is. Please provide more

Re: [flexcoders] Re: Cairngorm ModelLocator array filter...

2008-04-22 Thread Douglas McCarroll
Hi Vivian, Is there any way I can draw a visual diagram from which I can visually see which event it tied with which command .. etc? I'm guessing that you mean some way that is easier than using diagramming software - perhaps an automated solution? I don't know of any. What I do is to make

RE: [flexcoders] Re: how do I loop thru dynamically created UI components?

2008-04-22 Thread Rick Winscot
Right on - what is stored in the array collection is a reference to the object (text input). Rick Winscot From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of hoytlee2000 Sent: Tuesday, April 22, 2008 1:02 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re:

[flexcoders] onclick call not able to access parent doc

2008-04-22 Thread Jason B
how do i get the onclick to work accessing script at the top of this mxml doc? mx:DataGrid x=10 y=40 width=886 height=441 dataProvider={referencetable} mx:columns

Re: [flexcoders] Is SWFObject ready for prime time?

2008-04-22 Thread Carlos Rovira
I tried to switch to SWFObject 2.0 but I was not be able to get it work so I switch back to 1.5 Something weird is happening with 2.0, and it's not working as expected. anyone knows why 2.0 it's not valid? Thanks for point this issue Best. C. 2008/4/22, Richard Rodseth [EMAIL PROTECTED]:

[flexcoders] Overriding the mouseClickHandler in DataGrid

2008-04-22 Thread Cato Paus
Hi Alex, do you have a better suggestion? override protected function mouseClickHandler(event:MouseEvent):void { var pattern:RegExp = /DataGridHeader/; var test:String = String(event.target); if(pattern.test(test)){ var r:IListItemRenderer; r =

[flexcoders] Re: Is SWFObject ready for prime time?

2008-04-22 Thread Richard Rodseth
Isn't CSS wonderful? I found the answer here: http://code.google.com/p/swfobject/wiki/SWFObject_2_0_faq_web_authors Any general experience reports or comments about SWFObject are still welcome. On Mon, Apr 21, 2008 at 4:09 PM, Richard Rodseth [EMAIL PROTECTED] wrote: I need a simple template

[flexcoders] Re: Overriding the mouseClickHandler in DataGrid

2008-04-22 Thread Cato Paus
it shall say: if(!pattern.test(test)){ --- In flexcoders@yahoogroups.com, Cato Paus [EMAIL PROTECTED] wrote: Hi Alex, do you have a better suggestion? override protected function mouseClickHandler(event:MouseEvent):void { var pattern:RegExp = /DataGridHeader/; var

[flexcoders] how to access current xml node name

2008-04-22 Thread Derrick Anderson
i have a function which accepts XML as an argument, how can i retrieve the root node name for that XML? so if the xml was node2 attrib1=asdf... i need to get the 'node2' value. thanks, d.

[flexcoders] Conditional compilation in Flex 2.0?

2008-04-22 Thread Raghunandan MutalikDesai
Is there a way to accomplish conditional compilation in Flex 2.0? I know I can do this in Flex 3.0 using -define command line switch or define tag in the config file. However, I did not find anything similar for Flex 2.0. Can anyone help?

[flexcoders] Re: Scaling Child Images

2008-04-22 Thread Ben Throop
Hey David... How are things currently laid out and in what container? If I knew that I could make a more accurate suggestion... but what I will say is that if you treat the entire map as a single component, then having the entire thing scale may be more effective than what appears to be there,

[flexcoders] Re: Opening the Browser From AIR

2008-04-22 Thread valdhor
Your example works perfectly for me. I click the button, the browser starts and takes me to the page specified. Have you set up your Windows Registry to open a text editor when opening a file that ends with .htm or .html? ie. what happens when you double click a file in windows explorer with

[flexcoders] Inline Tree's node name editing creates visible empty nodes in a Tree when labelFunction property is set

2008-04-22 Thread Andriy Panas
Hi Flexcoders, Steps to reproduce: 1. Compile this file ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; applicationComplete=onCreationComplete() mx:Script ![CDATA[ import mx.collections.XMLListCollection; import

Re: [flexcoders] how to access current xml node name

2008-04-22 Thread Daniel Gold
should just be able to do xmlObj.name(); On Tue, Apr 22, 2008 at 8:58 AM, Derrick Anderson [EMAIL PROTECTED] wrote: i have a function which accepts XML as an argument, how can i retrieve the root node name for that XML? so if the xml was node2 attrib1=asdf... i need to get the 'node2'

Re: [flexcoders] how to access current xml node name

2008-04-22 Thread Derrick Anderson
thanks, i also found .localName() On Tue, Apr 22, 2008 at 10:31 AM, Daniel Gold [EMAIL PROTECTED] wrote: should just be able to do xmlObj.name(); On Tue, Apr 22, 2008 at 8:58 AM, Derrick Anderson [EMAIL PROTECTED] wrote: i have a function which accepts XML as an argument, how can i

[flexcoders] Add property to an object at run time

2008-04-22 Thread markgoldin_2000
Can a property be added to a Flex object (Timer) at the run time? Thanks

[flexcoders] Re: Tiny components when using callLater()

2008-04-22 Thread Amy
Hi, Alex; The HBox has been pretty thoroughly debugged, but that doesn't mean it will work for you in all possible scenarios. A single call to validateClient is made then the HBox's measurements are used. Anything that causes a second validation pass can be missed. Calling

[flexcoders] Re: Scaling Child Images

2008-04-22 Thread stldvd
Hi Ben -- Here's what I have: Application BaseContainer, which extends VBox and contains a viewstack (each of the maps is a canvas in the viewstack) So then for each map itself I've got this: mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; mx:Image width=100% height=100%

[flexcoders] RemoteObject CFC error - Channel disconnected - Client.Error.DeliveryInDoubt

2008-04-22 Thread Jeff Switzer
Has anybody encountered an error similar to this? This happens when using RemoteObject calls (to ColdFusion CFCs). It seems to have started happening after a new deployment the other day. Our app was compiled using Flex2 (with the most recent hotfixes). I can't reproduce the error locally, but

Re: [flexcoders] Re: Unable to apply FB3 license on solaris

2008-04-22 Thread none
I have received a full license key and it works fine with the flex-config.xml route on windows but not on solaris. On Tue, Apr 22, 2008 at 3:27 PM, Jyoti Kishnani [EMAIL PROTECTED] wrote: How have you specified seria number in flex-config.xml? The licenses tag should be a child of the

[flexcoders] Re: Sizing and layout of UI components with respect to parent containers

2008-04-22 Thread y_kessler
I apologize for never responding Adam- I must have lost track of this post- I found a solid solution to this- Inherit from the container class and override the 'measure' method. See code below: ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml;

[flexcoders] horizontal tree control

2008-04-22 Thread Claudio M. E. Bastos Iorio
Is there any control in flex (or custom made) like the tree control but displayed horizontally? I'm trying the tree control, but it doesn't seem to be able to be formatted horizontally. TIA ___ Claudio M. E. Bastos Iorio http://www.blumer.com.ar

[flexcoders] Re: Newbie Question: loading text file.

2008-04-22 Thread Amy
--- In flexcoders@yahoogroups.com, khan.ibraheem [EMAIL PROTECTED] wrote: I want to do 2 different things: 1) I want to load a text file from a hard-coded location and load its contents in a string. 2) I want to load a text file from a location choosed by user and load its contents in a

[flexcoders] Restricting mouseX, mouseY while dragging?

2008-04-22 Thread djbrown_rotonews
I have the need to restrict the mouse (x,y) of my DragProxy when dragging (basically, allow dragging only vertically and not horizontally). What's the best way to go this using the various Drag/Drop event handlers?

[flexcoders] Re: Scaling Child Images

2008-04-22 Thread Danny Venier
Hard to tell without a snippet of your code, but I have an implementation with a base Canvas which holds other Canvas layers and when I apply my scaling to the base Canvas, those canvases within the base Canvas scale as well. I don't, however, tie my base Canvas scaling to the scaling of the

RES: [flexcoders] Restricting mouseX, mouseY while dragging?

2008-04-22 Thread Luciano Manerich Junior
I would go for not dragging, and just handle the click event, adding an mouseMove handler to set the new X pos of the object. De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de djbrown_rotonews Enviada em: terça-feira, 22 de abril de 2008 12:25

[flexcoders] Passing arrayCollections to .cfm in URL

2008-04-22 Thread Mark Forsberg
I am attempting to pass several small arrayCollections along with a file upload. variables.myAssignedRoles = assignedRoles; //arrayCollections variables.myAssignedGroups = assignedGroups; variables.myAssignedApprovers = assignedApprovers; var request:URLRequest = new

[flexcoders] html-template under source control

2008-04-22 Thread Richard Rodseth
In the past I avoided putting html-template in Subversion, because of various dire warnings as well as the fact that earlier versions of Flexbuilder had a tendency to overwrite it without warning. But now I would like myself and other develops to have the FlashVars available when running within

[flexcoders] Determining visible and total rows in a List

2008-04-22 Thread Daniel Gold
If I want to add paging information to a list, ie there are 10 items in view and 40 total so you are on page 1/4, what is the best way to get that data. Obviously length of the dataProvider will give me total items, but how can I see how many are currently visible? Looks like there is a protected

[flexcoders] Event.MOUSE_MOVE poor performer

2008-04-22 Thread Randy Troppmann
Why is Event.MOUSE_MOVE such a poor performer when trying to get a sprite follow the mouse?

[flexcoders] Re: Sizing and layout of UI components with respect to parent containers

2008-04-22 Thread aduston1976
Yarin, no need to apologize for not responding; I invariably lose track of flexcoders posts also. Anyway, I followed Alex's advice (setting minWidth and minHeight to 0) and it worked perfectly, and I've been using it ever since. Adam --- In flexcoders@yahoogroups.com, y_kessler [EMAIL PROTECTED]

[flexcoders] pretty newbie question

2008-04-22 Thread Gustavo Duenas
Anyone knows where could I find a tutorial about how can I read an mxml application inside my main application in flex? Regards, Gustavo D.

[flexcoders] Flex process flow

2008-04-22 Thread markgoldin_2000
I need to understand Flex process flow. For example, a column in a dataGrid gets a custom renderer. var codeDestinationRenderer:IFactory = new ClassFactory (hourColumnRendererCanvas); // next line will take some time: ClassFactory(codeDestinationRenderer).properties = {trainId:prop.train_id,

[flexcoders] mouseCatcher getting in the way

2008-04-22 Thread actionscript_czar
I made a Flex App that is getting loaded into a flash movie. Unfortunately when the Flex App is loaded into the flash movie, some of the flash movie's mouse events don't work anymore. Most notably all of the one's to the right and bottom of the Flex movie. I've tracked it down to the

Re: [flexcoders] Event.MOUSE_MOVE poor performer

2008-04-22 Thread Troy Gilbert
Why is Event.MOUSE_MOVE such a poor performer when trying to get a sprite follow the mouse? Can you provide some more details on what poor performance you're seeing? Is the event not firing often enough? Is it not firing when you think it should be? How are you trying to get your sprite to

[flexcoders] easiest way to instantiate a class from xml data

2008-04-22 Thread Derrick Anderson
say i have an xml node like class property1=blah / what's the easiest way to convert that to: myClass = new class(); myClass.property1 = blah; i've seen it done with regular objects and VO's just by casting, but not with XML. this is dynamic in nature, so I'm wondering how i can convert the

[flexcoders] Re: Flex Builder 3 - RemoteObject connection failure

2008-04-22 Thread valdhor
Based on my use situations I can rule out 1, 2 and 4. To debug 1, you may like to try an older version of the Flash Player from Adobe's site. BTW Is there is any difference using a release or debug version of the Flash player? To debug 2, you may like to try WebORB. It is fairly simple to change

[flexcoders] Live tiling

2008-04-22 Thread Richard Rodseth
I'm looking for a tiled layout that performs well during resizing of the browser window. The flexmdi approach below is very slow. Is there a way I can improve the event handling, or is flexmdi the wrong choice? I've thought of writing a container that does this sort of tiling, and supports

RE: [flexcoders] crossdomain where is the server root?

2008-04-22 Thread Tracy Spratt
Yes, the crossdomain restriction only applies to data service calls make directly from the Flash Player. Server processes, like Blaze, or LCDS or .net, or whatever do not have that restriction. You can avoid the crossdomain restriction by proxying the data service calls through the server, in

[flexcoders] RichTextEditor and keeping a color....

2008-04-22 Thread grimmwerks
OK - I've got student data I'm loading into the RTE; it's got text that could be any color, etc. I've got teachers coming in to comment and make suggestions and I want their text to always be bold, red, and a certain font, even when they're clicking in and appending student text. I've got

RE: [flexcoders] onclick call not able to access parent doc

2008-04-22 Thread Tracy Spratt
Component creates its own scope. Use outerDocument to reference the parent scope. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jason B Sent: Tuesday, April 22, 2008 9:12 AM To: flexcoders@yahoogroups.com Subject:

RE: [flexcoders] pretty newbie question

2008-04-22 Thread Tracy Spratt
I do not understand. What do you mean by read an mxml application? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gustavo Duenas Sent: Tuesday, April 22, 2008 11:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] pretty

RE: [flexcoders] RemoteObject CFC error - Channel disconnected - Client.Error.DeliveryInDoubt

2008-04-22 Thread Kevin Aebig
The only time I receive this error is when there's a file that has an error in it that's included into the Service. !k _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Switzer Sent: Tuesday, April 22, 2008 9:10 AM To: flexcoders@yahoogroups.com

RE: [flexcoders] Re: Flex Builder 3 - RemoteObject connection failure

2008-04-22 Thread Kevin Aebig
Which version of AMFPHP? !k _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of supertodda Sent: Thursday, April 17, 2008 6:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex Builder 3 - RemoteObject connection failure Anybody out there

RE: [flexcoders] html-template under source control

2008-04-22 Thread Tracy Spratt
Not that I know of. I do that. What dire warnings? And if it is likely to get overwritten (I have never seen FB do that), all the more reason to protect it. What is your concern? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On

RE: [flexcoders] Determining visible and total rows in a List

2008-04-22 Thread Tracy Spratt
verticalScrollPosition is the index of the first visible row. That, along with rowCount, and the DP.length should let you build your logic. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Gold Sent: Tuesday, April 22,

RE: [flexcoders] Re: Newbie Question: loading text file.

2008-04-22 Thread Tracy Spratt
Note that any data you need to load must be on the server, not the client, unless you are running under AIR. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Amy Sent: Tuesday, April 22, 2008 11:23 AM To:

[flexcoders] Jboss + BlazeDS + Custom Java message producer = 5 to 6 days of up time

2008-04-22 Thread jfujita1
Hi, I've built a GIS FLEX application that uses blazeDS' messaging capability to push location (latitude/longitude/geocode) info to flex clients. The message producer is a custom Java bootstrapper and adapter that configures the messaging destination endpoints upon server startup. The

RE: [flexcoders] Add property to an object at run time

2008-04-22 Thread Tracy Spratt
Most clases in AS3 do not allow this. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Tuesday, April 22, 2008 10:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Add property to an object at run

RE: [flexcoders] html-template under source control

2008-04-22 Thread Blake Barrett
The HTML-template folder being over-written is a frequent problem we have. We've had to just run our command-line build that overwrites whenever flex builder overwrites it. Not a real solution, but it works in a pinch. Blake From: flexcoders@yahoogroups.com

Re: [flexcoders] pretty newbie question

2008-04-22 Thread Meaglith Ma
the explorer sample, in the Flex_SDK/sample folder. Gustavo Duenas 写道: I have a mxml file which is not my main app(mxml) the file reads a yahoo map, so instead of creating other stage in the main application, could I read that file in my main mxml application? regards, Gustavo On

RES: [flexcoders] Event.MOUSE_MOVE poor performer

2008-04-22 Thread Luciano Manerich Junior
Did you changed the Flex FPS rate? the default value it will give you that poor performance illusion. De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de Randy Troppmann Enviada em: terça-feira, 22 de abril de 2008 12:49 Para:

Re: [flexcoders] Live tiling

2008-04-22 Thread Daniel Gold
I've extended the Flex Dashboard from Adobe Devnet for a few applications. Pretty easy to take out the ability to close/minimize and you'd be left with a tiling container that supports maximization and drag/drop re-ordering. http://www.adobe.com/devnet/flex/samples/dashboard/dashboard.html You

Re: RES: [flexcoders] Restricting mouseX, mouseY while dragging?

2008-04-22 Thread djbrown_rotonews
I currently have it hooked in via a mouseMove handler, and I create my proxyRenderer and DragSource in the handler. Is this where I'd set the xPos? --- In flexcoders@yahoogroups.com, Luciano Manerich Junior [EMAIL PROTECTED] wrote: I would go for not dragging, and just handle the click

[flexcoders] Convert ApplicationControlBar to Accordion Navigation????

2008-04-22 Thread advd4u2
Hi All, Please help if you can, I have to following code from to book Flex3:Training form to source : mx:ApplicationControlBar dock=true width=100% height=90 mx:Canvas width=100% height=100% horizontalScrollPolicy=off verticalScrollPolicy=off

[flexcoders] Re: pretty newbie question

2008-04-22 Thread advd4u2
If I understand you correctly you are wanting something like this: You have a map.mxml file and a main.mxml file if the map file is in the views folder set the mx:application tag up like this: mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:m=views.*

Re: [flexcoders] html-template under source control

2008-04-22 Thread Richard Rodseth
If I recall correctly, the problem I had in the distant past was when updating from FB2 to a beta of FB3. The warnings I referred to were just from various blogs I don't have handy. Anyway, despite Blake's response below, I feel more confident checking the templates in, as I believe FB3 is more

RE: [flexcoders] Add property to an object at run time

2008-04-22 Thread Alex Harui
You can use a Dictionary to associate data with the Timer. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Tuesday, April 22, 2008 10:09 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Add property to an

RE: [flexcoders] easiest way to instantiate a class from xml data

2008-04-22 Thread Alex Harui
Your first problem is getting the classes you want to create to be available. Are you going to link in every class that can possibly be used? Are you going to use modules to load those classes? Once you have that, you can just run through the XML, get the name() for the tag, use

RE: [flexcoders] mouseCatcher getting in the way

2008-04-22 Thread Alex Harui
Try setting mouseCatcher.visible=false From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of actionscript_czar Sent: Tuesday, April 22, 2008 9:11 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] mouseCatcher getting in the way I

RE: [flexcoders] horizontal tree control

2008-04-22 Thread Alex Harui
Tree does not support horizontal. You could try rotating the tree From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Claudio M. E. Bastos Iorio Sent: Tuesday, April 22, 2008 8:19 AM To: flexcoders@yahoogroups.com Subject: [flexcoders]

[flexcoders] How do I repaint?

2008-04-22 Thread Matt
I am dynamically setting the 'icon' to a LinkButton using Ben Stucki's IconUtility and it works great when the link first gets loaded, but if I want to dynamically change the icon after it is displayed it doesn't refresh properly. If I add a line to displayLoader that calls

Re: [flexcoders] html-template under source control

2008-04-22 Thread jeff
On Tue, Apr 22, 2008 at 08:39:04AM -0700, Richard Rodseth wrote: In the past I avoided putting html-template in Subversion, because of various dire warnings as well as the fact that earlier versions of Flexbuilder had a tendency to overwrite it without warning. But now I would like myself and

Re: [flexcoders] easiest way to instantiate a class from xml data

2008-04-22 Thread Derrick Anderson
hey Alex, yes, there are about 10 different classes that can be called on this way, and currently I am linking to all of them so they will be available, I'm not using modules. i was more asking if there was a way to just 'cast' that xml to the class, so i don't have to loop over the attributes-

[flexcoders] Re: Add property to an object at run time

2008-04-22 Thread markgoldin_2000
I probably could while I haven't done that yet. The reason I was asking this question is: Let's say I want to a Timer: timer:Timer = new Timer(1000); timer.addEventListener(TimerEvent.TIMER, processSomething); private function processSomething(event:TimerEvent):void { // do some processing }

Re: [flexcoders] html-template under source control

2008-04-22 Thread Richard Rodseth
Good to know. I think I can probably live with that, since the release build will be built via continuous integration, not from FlexBuilder. On Tue, Apr 22, 2008 at 10:36 AM, [EMAIL PROTECTED] wrote: On Tue, Apr 22, 2008 at 08:39:04AM -0700, Richard Rodseth wrote: In the past I

[flexcoders] Re: Writing text directly to Graphics object.

2008-04-22 Thread Eric Cooper
I have tried this, but it doesn't seem to be working. Here's what I am doing: override public function renderShape(graphics:Graphics):void { var matrix:Matrix = new Matrix() matrix.createBox(1, 1, 0, this.center.x, this.center.y ); //

[flexcoders] TextInput with a corner radius

2008-04-22 Thread Nate Pearson
I want to have a text input with nice rounded corners. You can't do this through CSS but you can do it through scale 9 (i think). Anyone have a link to an example? Black background preferred? I know scale9.com has a lot of them but I haven't found one I could use. -Nate

RE: [flexcoders] Re: Tiny components when using callLater()

2008-04-22 Thread Alex Harui
Amy, Many folks have used HBox as a renderer successfully. Maybe there's something about repeater that is exposing a problem, but all I can do at this point is try to offer advice on how to get more information about the problem. Overriding measure so you can see what it says is a temporary

RE: [flexcoders] Inline Tree's node name editing creates visible empty nodes in a Tree when labelFunction property is set

2008-04-22 Thread Alex Harui
If you have a labelFunction, you'll probably need a custom itemEditEnd handler as we have no idea how to write out the edited data back into the node. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andriy Panas Sent: Tuesday, April 22,

RE: [flexcoders] Conditional compilation in Flex 2.0?

2008-04-22 Thread Alex Harui
Not in 2.0. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Raghunandan MutalikDesai Sent: Tuesday, April 22, 2008 6:32 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Conditional compilation in Flex 2.0? Is there a way to

RE: [flexcoders] Overriding the mouseClickHandler in DataGrid

2008-04-22 Thread Alex Harui
You want to know if the header got clicked? Try If (r.data is DataGridColumn) From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Cato Paus Sent: Tuesday, April 22, 2008 6:23 AM To: flexcoders@yahoogroups.com Subject: [flexcoders]

Re: [flexcoders] Re: Is SWFObject ready for prime time?

2008-04-22 Thread Cutter (Flex Related)
We switched over to SWFObject (then FlashObject) when the EOLAS patent stuff first came out, and it worked fantastic. Until we began to use JQuery. Some things were fine, but any page that had a flash object, renedered via SWFObject, would not be able to use any functions of JQuery. Wait, let

[flexcoders] Re: onclick call not able to access parent doc

2008-04-22 Thread Jason B
Thanks Tracy do you mean like this? mx:Button label=Edit click=outerDocument.launchreferencetable(); / --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Component creates its own scope. Use outerDocument to reference the parent scope. Tracy

[flexcoders] Re: mouseCatcher getting in the way

2008-04-22 Thread actionscript_czar
Thank you Alex, it was just that easy. Just to give anyone else a heads up, you must wait until the ApplicationComplete event fires and then do something like this: private function onAppComplete():void { var mouseCatcher:DisplayObject = SystemManager( this.systemManager

Re: [flexcoders] Event.MOUSE_MOVE poor performer

2008-04-22 Thread Randy Troppmann
Sorry about the sparse details. I have tried this on a few occasions with similar results. I add a sprite to the displayList and then I add mouse event listeners so that someone can click and drag the sprite around the stage. In flash I tend to use the MOUSE_MOVE event to do this. In Flex I found

Re: [flexcoders] easiest way to instantiate a class from xml data

2008-04-22 Thread Derrick Anderson
also, attributes() only get's me the attribute values, not the name=value pairs, how can i get both the attribute names and the values? d. On Tue, Apr 22, 2008 at 1:43 PM, Derrick Anderson [EMAIL PROTECTED] wrote: hey Alex, yes, there are about 10 different classes that can be called on

[flexcoders] Re: Jboss + BlazeDS + Custom Java message producer = 5 to 6 days of up time

2008-04-22 Thread meteatamel
I've added some info to the bug report. Please take a look. -Mete --- In flexcoders@yahoogroups.com, jfujita1 [EMAIL PROTECTED] wrote: Hi, I've built a GIS FLEX application that uses blazeDS' messaging capability to push location (latitude/longitude/geocode) info to flex clients.

RE: [flexcoders] ResourceBundle

2008-04-22 Thread Matt Horn
There is a section in the Flex documentation called Creating resource bundles at run time here: http://livedocs.adobe.com/flex/3/html/l10n_6.html hth, matt horn flex docs From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon

[flexcoders] Re: Overriding the mouseClickHandler in DataGrid

2008-04-22 Thread Cato Paus
Hi Alex thanks for reply, the r = mouseEventToItemRenderer(event); is returning null if I hit the header (DataGridHeader), and the ListBaseContentHolder. Can I get a index from somewhere, I have try to get the index and it seams like it have a delay, I'm getting the pri value, I have to click

RE: [flexcoders] easiest way to instantiate a class from xml data

2008-04-22 Thread Gordon Smith
i was more asking if there was a way to just 'cast' that xml to the class, so i don't have to loop over the attributes No, sorry, there isn't. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of

[flexcoders] AutoComplete with multiple items

2008-04-22 Thread stuartward
I would like to create an AutoComplete component that functions with multiple items entered into the text input box and separated by commas or semicolons (similar to an email application's To: field). I've looked at both the Adobe AutoCompleete Component and the Yahoo Astra AutoComplete

Re: [flexcoders] easiest way to instantiate a class from xml data

2008-04-22 Thread Derrick Anderson
in case it helps anybody else, this is how i got it to work var Cklass:Class = getDefinitionByName('com.components._'+mdp.localName()) as Class; var DOklass:DisplayObject = DisplayObject(new Cklass()); for each(var a:XML in [EMAIL PROTECTED]) { DOklass[a.localName()] = a; }

[flexcoders] Re: Add property to an object at run time

2008-04-22 Thread valdhor
Couldn't you just extend the timer class and just add a new property? --- In flexcoders@yahoogroups.com, markgoldin_2000 [EMAIL PROTECTED] wrote: I probably could while I haven't done that yet. The reason I was asking this question is: Let's say I want to a Timer: timer:Timer = new

RE: [flexcoders] Re: Add property to an object at run time

2008-04-22 Thread Gordon Smith
You have your choice of 1. Storing your state data in the Timer instance. This requires subclassing Timer because Timer isn't declared to be a 'dynamic' class . 2. Storing it in the instance of the class which has the processSomething() method. Remember that event handler methods, like

[flexcoders] Rollover rollout on child components

2008-04-22 Thread Denis
Hello everybody, I have a parent component that expands/shrinks in size on its own rollOver / rollOut events. Within this component there is a number of other components. Among them are many comboboxes. When I open any combobox and try to change the item from the dropdown list, the rollOut event

RE: [flexcoders] Re: Overriding the mouseClickHandler in DataGrid

2008-04-22 Thread Alex Harui
I'm still not sure what you want. If you click into a place on the ListBaseContentHolder where there are no renderers because you don't have enough data in your DP, then yeah, it'll return null. If you want to estimate what index it would be, you can use rowHeight and rowInfo to guess at it.

  1   2   >