[flexcoders] OT: Possible recruiting scam??

2008-04-22 Thread Giles Roadnight
Hi All

Just wanted some feedback on this. A few days ago I was sent an e-mail
saying the following:

Thank you for your interest in .  After our first round of
resume reviews, we are interested in moving you forward to our next round of
evaluations.  This is a significant accomplishment considering the
competitive nature of this position, and the small number of candidates for
a position that go to on – so congratulations!

Then followed a series of questions about where I am, what time zone, do I
have IM, rate ect.

I have no idea who this company is and do not remember applying for any job
in the US. Anyway, I replied answering the questions and asked about where
they had heard of me and had I applied for a job or what.

I've just got another e-mail from them completely ignoring my questions and
saying this:

Thank you for your interest in .  After our second round of
resume reviews, we are interested in moving you forward to our next round of
evaluations, called the mini-test.

Basically the mini test is a project spec that they want me to design,
document and code in no more than 10 hours!!! Then I go onto interview.

Does this sound a little dodgy to anyone else? I have no idea what the job
description is that they refer to in the second e-mail, I have no idea of
the rate they are offering and I never applied for the job!
The fact that they haven't explained who they are and ignored my questions
are a bit odd as well.

As they are based in the US I think I'm going to leave it. With the exchange
rate the way it is it woudl be very expensive for them to match my rate in
the UK.

Thanks

-- 
Giles Roadnight
http://giles.roadnight.name


Re: [flexcoders] Cairngorm ServiceLocator

2008-04-22 Thread Christophe Herreman
Hi Vivian,

we have recently been talking about this with the development team.
I agree with you that video tutorials would be a great aid, so I'll try to
put something together.

regards,
Christophe

-- 
Christophe Herreman
http://www.herrodius.com
http://www.pranaframework.org

2008/4/23 Vivian Richard <[EMAIL PROTECTED]>:

>
>
>Hey Christophe, is it possible that you create some video tutorial of
> Prana?
>I guess that way developers will be able to adopt it faster. Just my 2
> cents!!!
>
>
>
> On Tue, Apr 22, 2008 at 9:07 PM, Christophe Herreman <[EMAIL PROTECTED]>
> wrote:
>
> >   Hi Eric,
> >
> > have you looked at the modified CairngormServiceLocator in Prana?
> > http://www.herrodius.com/blog/131
> >
> > regards,
> > Christophe
> >
> > 2008/4/23 Eric Cancil <[EMAIL PROTECTED]>:
> >
> > >   I think a little more thought could be put into this class.  Due to
> > > the fact that it uses describeType to discover the services that have been
> > > added to it, and it is not a dynamic class/ does not have any way to
> > > dynamically add services at runtime...it makes it in my view impossible to
> > > add say for example services that youve loaded in an initialization file 
> > > at
> > > runtime.  If an accessor method to add service at runtime was added I 
> > > think
> > > it would make this class a lot more dynamic.  Instead it relies on MXML
> > > being compiled down to AS and variables automatically being added.
> > >
> > > Any thoughts?
> > > Eric
> > >
> > > Ps... please dont suggest to roll my own locator, i know ;)
> > >
> >
> >
> >
> > --
> > Christophe Herreman
> > http://www.herrodius.com
> > http://www.pranaframework.org
> >
>
>  
>



-- 
Christophe Herreman
http://www.herrodius.com
http://www.pranaframework.org


RE: [flexcoders]Setting DataGrid header to transparent

2008-04-22 Thread Alex Harui
Dude, that was four months ago!  You could've asked again sooner.

 

Another approach may be to subclass, get the .header,
getChildByName("headerBG") and set its alpha=0

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dorkie dork from dorktown
Sent: Tuesday, April 22, 2008 9:57 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]Setting DataGrid header to transparent

 

I've been working on this for a while with no luck... can you provide an
example or some tips?

On Thu, Dec 27, 2007 at 6:53 PM, Alex Harui <[EMAIL PROTECTED]
 > wrote:

Override drawHeaderBackground?

 



From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
On Behalf Of dorkie dork from dorktown
Sent: Thursday, December 27, 2007 3:31 PM
To: flexcoders@yahoogroups.com  
Subject: [flexcoders]Setting DataGrid header to transparent

 

Is there a way to set the Datagrid header to transparent? I want to set
the header background fill to transparent and show a border along the
bottom of the column headers. Currently the CSS Design View does not let
me change the Datagrid header fill alpha. 

Here is the code I am using: 




 








 




 

 



RE: [flexcoders] DateTimeAxis ( or any other axis) how to get a point in pixels from Date object

2008-04-22 Thread Sunil Bannur
Use dataToLocal method in the series class. If you are using Flex 2.0.1
the method is part of ChartBase. 

 

-Sunil

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of alex
Sent: Monday, April 21, 2008 10:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DateTimeAxis ( or any other axis) how to get a
point in pixels from Date object

 

Is there a function in DateTimeAxis that given some Date object will
return me the Point(x,y) 
on the chart ?

I just have a LineSeries with DateTimeAxis and it displays fine and also
some custom series 
that giving Date object to mapCache and transformCache I get the pixel
values.
But the problem is that they are not aligned using the same Date.
Something in the process 
of Date -> Point in my custom series makes it couple of pixels off, so
I'm trying to realign 
them.

 

<><>

Re: [flexcoders] Re: Partial result from HTTPService call

2008-04-22 Thread Josh McDonald
See if it goes away if you delay your work with a callLater()? If so, then
you're probably dead right :)

-J

On Wed, Apr 23, 2008 at 3:27 PM, Dmitri Girski <[EMAIL PROTECTED]> wrote:

>   Hi Tracy,
>
> Probably you are right after all.
> After some time of trouble free usage of httService.lastResult I've
> bumped into the problem that it is null and event.result is not.
>
> Maybe it is a race condition and event comes before the lastResult
> property is set?
>
> Cheers,
> Dmitri.
>
>
> --- In flexcoders@yahoogroups.com , "Tracy
> Spratt" <[EMAIL PROTECTED]> wrote:
> >
> > It is in the docs somewhere, but I couldn't find it when I looked now.
> > Maybe it isn't "exactly" the same.
> >
> > Tracy
> >
> >
> >
> > 
> >
> > From: flexcoders@yahoogroups.com  [mailto:
> flexcoders@yahoogroups.com ] On
> > Behalf Of Dmitri Girski
> > Sent: Wednesday, April 02, 2008 4:05 PM
> > To: flexcoders@yahoogroups.com 
> > Subject: [flexcoders] Re: Partial result from HTTPService call
> >
> >
> >
> > Why not to use lastResult? It is absolutely the same as event.result.
> > Even better - you can bind to it :)
> >
> > --- In flexcoders@yahoogroups.com  flexcoders%40yahoogroups.com >
> > , "Tracy Spratt"  wrote:
> > >
> > > First, don't use lastResult. It is intended for binding
> > expressions. Use event.result. Change that an see if it helps.
> > >
> > > Tracy
> > >
> >
>
>  
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] Re: Partial result from HTTPService call

2008-04-22 Thread Dmitri Girski
Hi Tracy,

Probably you are right after all.
After some time of trouble free usage of httService.lastResult I've
bumped into the problem that it is null and event.result is not.

Maybe it is a race condition and event comes before the lastResult
property is set? 



Cheers,
Dmitri.



--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> It is in the docs somewhere, but I couldn't find it when I looked now.
> Maybe it isn't "exactly" the same.
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Dmitri Girski
> Sent: Wednesday, April 02, 2008 4:05 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Partial result from HTTPService call
> 
>  
> 
> Why not to use lastResult? It is absolutely the same as event.result.
> Even better - you can bind to it :)
> 
> --- In flexcoders@yahoogroups.com 
> , "Tracy Spratt"  wrote:
> >
> > First, don't use lastResult. It is intended for binding
> expressions. Use event.result. Change that an see if it helps.
> > 
> > Tracy
> >
>




Re: [flexcoders] Cairngorm ServiceLocator

2008-04-22 Thread Vivian Richard
   Hey Christophe, is it possible that you create some video tutorial of
Prana?
   I guess that way developers will be able to adopt it faster. Just my 2
cents!!!



On Tue, Apr 22, 2008 at 9:07 PM, Christophe Herreman <[EMAIL PROTECTED]>
wrote:

>   Hi Eric,
>
> have you looked at the modified CairngormServiceLocator in Prana?
> http://www.herrodius.com/blog/131
>
> regards,
> Christophe
>
> 2008/4/23 Eric Cancil <[EMAIL PROTECTED]>:
>
> >   I think a little more thought could be put into this class.  Due to
> > the fact that it uses describeType to discover the services that have been
> > added to it, and it is not a dynamic class/ does not have any way to
> > dynamically add services at runtime...it makes it in my view impossible to
> > add say for example services that youve loaded in an initialization file at
> > runtime.  If an accessor method to add service at runtime was added I think
> > it would make this class a lot more dynamic.  Instead it relies on MXML
> > being compiled down to AS and variables automatically being added.
> >
> > Any thoughts?
> > Eric
> >
> > Ps... please dont suggest to roll my own locator, i know ;)
> >
>
>
>
> --
> Christophe Herreman
> http://www.herrodius.com
> http://www.pranaframework.org
> 
>


Re: [flexcoders] Cairngorm ServiceLocator

2008-04-22 Thread Christophe Herreman
Hi Eric,

have you looked at the modified CairngormServiceLocator in Prana?
http://www.herrodius.com/blog/131

regards,
Christophe

2008/4/23 Eric Cancil <[EMAIL PROTECTED]>:

>   I think a little more thought could be put into this class.  Due to the
> fact that it uses describeType to discover the services that have been added
> to it, and it is not a dynamic class/ does not have any way to dynamically
> add services at runtime...it makes it in my view impossible to add say for
> example services that youve loaded in an initialization file at runtime.  If
> an accessor method to add service at runtime was added I think it would make
> this class a lot more dynamic.  Instead it relies on MXML being compiled
> down to AS and variables automatically being added.
>
> Any thoughts?
> Eric
>
> Ps... please dont suggest to roll my own locator, i know ;)
>  
>



-- 
Christophe Herreman
http://www.herrodius.com
http://www.pranaframework.org


Re: [flexcoders]Setting DataGrid header to transparent

2008-04-22 Thread dorkie dork from dorktown
I've been working on this for a while with no luck... can you provide an
example or some tips?

On Thu, Dec 27, 2007 at 6:53 PM, Alex Harui <[EMAIL PROTECTED]> wrote:

>Override drawHeaderBackground?
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *dorkie dork from dorktown
> *Sent:* Thursday, December 27, 2007 3:31 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders]Setting DataGrid header to transparent
>
>
>
> Is there a way to set the Datagrid header to transparent? I want to set
> the header background fill to transparent and show a border along the bottom
> of the column headers. Currently the CSS Design View does not let me change
> the Datagrid header fill alpha.
>
> Here is the code I am using:
>
> 
> 
> 
> 
> 
> 
> 
>
> 
> 
> 
>  dataField="@column1"/>
> 
> 
> 
> 
>
>  
>


Re: [flexcoders] BlazeDS in the integrated Tomcat configuration

2008-04-22 Thread ibo
it means blazeds was pre-configured to run on tomcat and it came with the 
download. if you unzip the downloaded file, you'll see that there is a tomcat 
directory included. and if you take a look at /tomcat/webapps/ , youll notice 
that a sample web application using blazeds is pre-installed. "unzip and run".

hworke <[EMAIL PROTECTED]> wrote: 
Hi in the BlazeDS configuration document they are talking
about "integrated Tomcat"- what does in really mean? How
do I know if my tomcat is "integrated Tomcat" or not. Here
is the installation guide that I am referring to: 
 
 "http://opensource.adobe.com/wiki/display/blazeds/Installation+Guide
 
 Regards.
 
 
 
   

   
-
Be a better friend, newshound, and know-it-all with Yahoo! Mobile.  Try it now.

[flexcoders] How do I call the correct web services server in Flex

2008-04-22 Thread scarfire2004
I have 3 different platforms/web farms at work. 

Development
System Test
Production

I will eventually have to host Flex SWFs on one machine and web
services on another (don't ask why - just doing what I am told). 

What are other people doing to be certain that their Flex SWF file
calls the correct domain for web services? In ASP.Net this would
probably be in a web.config file. Does anyone have sample code I can
use? It must be a common problem that everyone has to deal with.

Thanks
Todd




Re: [flexcoders] Import air.net.URLMonitor

2008-04-22 Thread Anirudh Sasikumar
Hi,

You can only use URLMonitor in an AIR application.(If by web app you
meant a normal Flex application, I'm curious to why you would need
such a thing)

If you're talking about using URLMonitor from an HTML AIR application,
you can say:

var urlMon = new window.runtime.air.net.URLMonitor();

to create a URLMonitor object.

On Wed, Apr 23, 2008 at 4:14 AM, timgerr <[EMAIL PROTECTED]> wrote:
>  It says that I need to import air.net.URLMonitor;. Can I use air
>  stuff in a we app, and if so how do I get the air.net.URLMonitor part?
>

Cheers,
-- 
Anirudh Sasikumar
http://anirudhs.chaosnet.org/


[flexcoders] Re: Scaling Child Images

2008-04-22 Thread Ben Throop
Yeah the other reply makes sense and what you want to do is avoid
scaling the image and setting scaleContent. Instead, think of the map
as having a constant size and doing all of your layout in a single
fixed size canvas. 

So it'll be something like this:







  
  width="400" 
  height="300" 
  
  
  








then 



[Bindable]
public var myMeasuredScaleX:Number;

[Bindable]
public var myMeasuredScaleY:Number;

private function setScale():void
{
  //figure out how big the area you have to work in is, then make
  //a scale factor out of it by comparing it to the natural size
  //of your map component (400x300 in this case) - this is all 
  //hardcoded and nasty but it should get you started. Don't rely on
  //asking mapCanvas for its width and height, because it will give 
  //you the value post-scale. you want a constant value so you can 
  //build the scale factor yourself.

  var factor:Number = sizeDeterminer.width/400;
  myMeasuredScaleX = myMeasuredScaleY = factor;
}



Now I haven't run this and there are likely typos - but it shows how
you can do this. Again, the idea is that your map part and all its sub
parts are laid out absolutely in a fixed size canvas. Then there's a
canvas above that which we scale. Then above that is the canvas that
is the actual child of the ViewStack.  If anyone sees errors (and I'm
sure they are there) please point them out.

Cheers,
-b

--- In flexcoders@yahoogroups.com, "stldvd" <[EMAIL PROTECTED]> wrote:
>
> 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:
> 
> http://www.adobe.com/2006/mxml";>
> 
>width="100%" 
>   height="100%"
>   source="com/alandalus/assets/images/wideMap.jpg"
>   scaleContent="true"
>   maintainAspectRatio="true"/>
> 
>id="line"
>   source="com/alandalus/assets/images/5line100percent.png"
>   alpha=".5"/>
> 
>x="255"
>   y="373" 
>   width="42"
>   useHandCursor="true" 
>   buttonMode="true"
>   mouseOver="line.alpha=1"
>   mouseOut="line.alpha=.5"
>   click="playMP3()" toolTip="Click to Play Audio"/>
> 
> 
> Thanks,
> 
> David
> 
> --- In flexcoders@yahoogroups.com, "Ben Throop"  wrote:
> >
> > 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, which is the map image, and then the icons on top of it, all 
> in
> > a container at the same level. So if you have something like this
> > 
> > Application
> > |
> > Canvas
> > ||
> > | Map Image
> > Map Icons
> > 
> > What you'd rather have is 
> > Application
> > |
> > Canvas
> > |
> > Map Component (this is what you'd scale)
> > ||
> > |Map Image
> > Map Icons
> > 
> > So how is it set up now?
> > -b
> > 
> > --- In flexcoders@yahoogroups.com, "stldvd"  wrote:
> > >
> > > 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"  wrote:
> > > >
> > > > Hi All,
> > > > 
> > > > I'm working on some interactive maps (just one so far) at 
> > > > http://www.brighttext.com/afropop/alandalus.html
> > > > 
> > > > I need to be able to position precisely some icons and arrows, 
> so 
> > > I've 
> > > > got the parent container as a canvas -- I can use absolute 
> layout 
> > > and 
> > > > position the child images using x and y properties.  
> > > > 
> > > > The problem is that the child images won't scale with the 
> parent. 
> > > If 
> > > > you resize the browser you'll see what I mean.
> > > > 
> > > > How does one precisely position images in such a way that they 
> will 
> > > > scale with their parent container?
> > > > 
> > > > Thanks,
> > > > 
> > > > David
> > > >
> > >
> >
>




Re: [flexcoders] BlazeDS in the integrated Tomcat configuration

2008-04-22 Thread Anirudh Sasikumar
Hi,

On the BlazeDS download page
(http://opensource.adobe.com/wiki/display/blazeds/Release+Builds),
you'll see download turnkey and download blazeds binary.

The blazeds turnkey includes Tomcat within it pre-configured to use
BlazeDS. This is what the installation guide means by "Integrated
Tomcat".

The binary download is just the blazeds war file that you will have to
deploy to your tomcat server (which you have to separately download
from the apache site) manually.

On Wed, Apr 23, 2008 at 8:27 AM, hworke <[EMAIL PROTECTED]> wrote:

>
>  Hi in the BlazeDS configuration document they are talking
>  about "integrated Tomcat"- what does in really mean?

Cheers,
-- 
Anirudh Sasikumar
http://anirudhs.chaosnet.org/


RE: [flexcoders] Timer questions

2008-04-22 Thread Alex Harui
Flex/Flash is single-threaded which means that nothing can keep the next
line of code from running.

 

You won't get a timer event until you finish your loop, and you don't
need to worry about calling stop() until you no longer want timer
events.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Tuesday, April 22, 2008 8:22 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Timer questions

 

1. If I timer.start() in a loop will the loop be waiting for TimerEvent 
to complete before it (loop) moves to next step?
2. Do I need to timer.stop() inside of TimerEvent handler to make sure 
Flex processes that handler in a whole? What I mean is if a timer 
interval is very small and handler processing takes longer then timer 
interval then timer might interrupt it before it is complete.

Thanks for help.

 



RE: [flexcoders] Re: Question about commitProperties

2008-04-22 Thread Alex Harui
commitProperties, measure or updateDisplayList  being called over and
over again.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Tuesday, April 22, 2008 8:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Question about commitProperties

 

Saying "invalidation problem " what would have been the nature of 
this problem? What should I look for in my code?

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> I would normally expect that the model is the dataProvider for a
> top-level datagrid, or the model is a singleton and doesn't require
> pushing down.
> 
> 
> 
> If callLater solved your timeout problem it makes me think that 
there's
> some invalidation problem and you might now be hitting a slow
> performance problem. That might be worth diagnosing and resolving 
in
> the more "standard" way so you have fewer problems down the road.
> 
> 
> 
> Often, when I run into issues like this, it makes me re-think my 
design.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 

[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of markgoldin_2000
> Sent: Tuesday, April 22, 2008 6:05 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Re: Question about commitProperties
> 
> 
> 
> I am using callLater only because I was getting 15 secs. error. I 
am 
> changing xmlModelData down the road.
> 
> --- In flexcoders@yahoogroups.com
  
> , "Alex Harui"  wrote:
> >
> > There's not enough context here to know for sure, but it's 
probably 
> a
> > bad sign to be using callLater in any validation method as the 
> point is
> > to validate synchronously. I'm also concerned about how you are 
> using
> > your properties bag on the ClassFactory. I hope you're not 
> changing the
> > values assigned.
> > 
> > 
> > 
> > Everything should be data-driven (pulling data from data 
objects). 
> If
> > feels like you're pushing stuff down, instead of pulling.
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com
  
> 
> [mailto:flexcoders@yahoogroups.com
  
> ] On
> > Behalf Of markgoldin_2000
> > Sent: Tuesday, April 22, 2008 3:29 PM
> > To: flexcoders@yahoogroups.com 
 
> > Subject: [flexcoders] Question about commitProperties
> > 
> > 
> > 
> > I have a custom renderer based on canvas that has the following 
> > setters:
> > public function set trainId(value:String):void
> > {
> > _trainId = value;
> > }
> > public function get trainId():String
> > {
> > return _trainId;
> > } 
> > public function set highlightCurrentHour(value:String):void
> > {
> > _backgroundColor = value;
> > } 
> > public function get highlightCurrentHour():String
> > {
> > return _backgroundColor;
> > }
> > public function set xmlModelData(value:XML):void
> > {
> > _xmlModelData = value;
> > } 
> > public function get xmlModelData():XML
> > {
> > return _xmlModelData;
> > }
> > 
> > then I have:
> > override protected function commitProperties():void 
> > {
> > super.commitProperties();
> > assignBlocks(xmlModelData, trainId, highlightCurrentHour);
> > } 
> > and
> > public function assignBlocks(xmlModelData:XML, trainId:String, 
> > highlightCurrentHour:String):void
> > { 
> > callLater(trainDepartGrid.assignBlocks, [trainId, 
> > xmlModelData, highlightCurrentHour]); 
> > trainDepartGrid.width = xmlModelData.trainshours.(train_id == 
> > trainId).setwidth;
> > callLater(trainReceivingGrid.assignCars, [trainId, 
> > xmlModelData, highlightCurrentHour]);
> > trainReceivingGrid.width = xmlModelData.trainshours.(train_id 
> > == trainId).setwidth;
> > }
> > 
> > I am setting these properties on this renderer like this:
> > ClassFactory(codeDestinationRenderer).properties =
> > {trainId:prop.train_id, highlightCurrentHour:bBackgroundColor, 
> > xmlModelData:xmlModelData};
> > 
> > My question is:
> > Is commitProperties is a right place to call assignBlocks?
> > Before I changed my code to this version the program worked much 
> > better though.
> > 
> > Please help.
> > 
> > Thanks
> >
>

 



RE: [flexcoders] passing parameters to components

2008-04-22 Thread Gordon Smith
Hi, Tracy.

 

Nice writeup! I have a few comments...

 

1. The phrase "sibling child controls" seems confusing to me. You might
have a structure like

 









...





 

which creates myTextInput and myButton as "sibling" reference vars in
the application's scope, despite the fact that the MyTextInput and
MyButton instances aren't siblings in the DisplayObject hierarchy the
MyButton instance isn't a direct child of the application.

 

Also, saying that the controls share the same scope -- as opposed to
their reference vars being in the same scope -- could make some people
think that the scope for MyTextInput's 

[flexcoders] Timer questions

2008-04-22 Thread markgoldin_2000
1. If I timer.start() in a loop will the loop be waiting for TimerEvent 
to complete before it (loop) moves to next step?
2. Do I need to timer.stop() inside of TimerEvent handler to make sure 
Flex processes that handler in a whole? What I mean is if a timer 
interval is very small and handler processing takes longer then timer 
interval then timer might interrupt it before it is complete.

Thanks for help.



[flexcoders] Re: Question about commitProperties

2008-04-22 Thread markgoldin_2000
Saying "invalidation problem " what would have been the nature of 
this problem? What should I look for in my code?

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> I would normally expect that the model is the dataProvider for a
> top-level datagrid, or the model is a singleton and doesn't require
> pushing down.
> 
>  
> 
> If callLater solved your timeout problem it makes me think that 
there's
> some invalidation problem and you might now be hitting a slow
> performance problem.  That might be worth diagnosing and resolving 
in
> the more "standard" way so you have fewer problems down the road.
> 
>  
> 
> Often, when I run into issues like this, it makes me re-think my 
design.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of markgoldin_2000
> Sent: Tuesday, April 22, 2008 6:05 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Question about commitProperties
> 
>  
> 
> I am using callLater only because I was getting 15 secs. error. I 
am 
> changing xmlModelData down the road.
> 
> --- In flexcoders@yahoogroups.com 
> , "Alex Harui"  wrote:
> >
> > There's not enough context here to know for sure, but it's 
probably 
> a
> > bad sign to be using callLater in any validation method as the 
> point is
> > to validate synchronously. I'm also concerned about how you are 
> using
> > your properties bag on the ClassFactory. I hope you're not 
> changing the
> > values assigned.
> > 
> > 
> > 
> > Everything should be data-driven (pulling data from data 
objects). 
> If
> > feels like you're pushing stuff down, instead of pulling.
> > 
> > 
> > 
> > 
> > 
> > From: flexcoders@yahoogroups.com 
> 
> [mailto:flexcoders@yahoogroups.com 
> ] On
> > Behalf Of markgoldin_2000
> > Sent: Tuesday, April 22, 2008 3:29 PM
> > To: flexcoders@yahoogroups.com  
> > Subject: [flexcoders] Question about commitProperties
> > 
> > 
> > 
> > I have a custom renderer based on canvas that has the following 
> > setters:
> > public function set trainId(value:String):void
> > {
> > _trainId = value;
> > }
> > public function get trainId():String
> > {
> > return _trainId;
> > } 
> > public function set highlightCurrentHour(value:String):void
> > {
> > _backgroundColor = value;
> > } 
> > public function get highlightCurrentHour():String
> > {
> > return _backgroundColor;
> > }
> > public function set xmlModelData(value:XML):void
> > {
> > _xmlModelData = value;
> > } 
> > public function get xmlModelData():XML
> > {
> > return _xmlModelData;
> > }
> > 
> > then I have:
> > override protected function commitProperties():void 
> > {
> > super.commitProperties();
> > assignBlocks(xmlModelData, trainId, highlightCurrentHour);
> > } 
> > and
> > public function assignBlocks(xmlModelData:XML, trainId:String, 
> > highlightCurrentHour:String):void
> > { 
> > callLater(trainDepartGrid.assignBlocks, [trainId, 
> > xmlModelData, highlightCurrentHour]); 
> > trainDepartGrid.width = xmlModelData.trainshours.(train_id == 
> > trainId).setwidth;
> > callLater(trainReceivingGrid.assignCars, [trainId, 
> > xmlModelData, highlightCurrentHour]);
> > trainReceivingGrid.width = xmlModelData.trainshours.(train_id 
> > == trainId).setwidth;
> > }
> > 
> > I am setting these properties on this renderer like this:
> > ClassFactory(codeDestinationRenderer).properties =
> > {trainId:prop.train_id, highlightCurrentHour:bBackgroundColor, 
> > xmlModelData:xmlModelData};
> > 
> > My question is:
> > Is commitProperties is a right place to call assignBlocks?
> > Before I changed my code to this version the program worked much 
> > better though.
> > 
> > Please help.
> > 
> > Thanks
> >
>




[flexcoders] BlazeDS in the integrated Tomcat configuration

2008-04-22 Thread hworke

   Hi in the BlazeDS configuration document they are talking
   about "integrated Tomcat"- what does in really mean? How
   do I know if my tomcat is "integrated Tomcat" or not. Here
   is the installation guide that I am referring to: 

 "http://opensource.adobe.com/wiki/display/blazeds/Installation+Guide

   Regards.



Re: [flexcoders] How do I debug a flex app that's sitting in an IE wrapper within a Java app?

2008-04-22 Thread gabriel montagné
On Mon, Apr 21, 2008 at 11:25 AM, EddieBerman
<[EMAIL PROTECTED]> wrote:
> Our flex 3 app is running in an IE wrapper which is sitting within our
>  Java application. Can anyone give me any hint as to how to go about
>  debugging the flex app?

I worked on a project on which we had a swf on an IE instance running
on a .NET application and we could debug normally using traces with
the debug player installed on IE.  Also, we did have an html in that
embeded Exploder and we could use javascript for additional logging
and debugging.

-- 
gabriel montagné láscaris comneno
http://rojored.com
t/506.8392.2040


[flexcoders] Adobe Air HTML component and popups

2008-04-22 Thread Pablo Godel
I am trying to use the HTML component to load an external website into
an Adobe AIR app. It works fine, but if the website has a link or
button that opens a popup window, the window never opens.

Any idea if this is supported and how to solve the problem?

Thanks
Pablo



[flexcoders] Re: AIR: Forcing a file to be opened By OS Default Application

2008-04-22 Thread tfendall2
Hi Jeff

I haven't tried it personally, but I think what you are looking for 
is related to the getDefaultApplication() function in the 
NativeApplication class.
http://livedocs.adobe.com/flex/3/langref/flash/desktop/
NativeApplication.html#getDefaultApplication()

The should give you the path to the application which the OS has 
associated with the given file extension.

Hope that helps
Tony


--- In flexcoders@yahoogroups.com, "Battershall, 
Jeff" <[EMAIL PROTECTED]> wrote:
>
> Pardon the cross post, but I'm trying to find out if AIR supports
> triggering a file to be opened by the OS's default application for 
that
> file extension.
> 
> Like having MS Excel open a .xls file.
> 
> Jeff Battershall
> Application Architect
> Dow Jones Indexes
> [EMAIL PROTECTED]
> (609) 520-5637 (p)
> (484) 477-9900 (c)
>




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

2008-04-22 Thread Vivian Richard
   Thanks Tracy.

   For proxying I do need to use BladeDS right? I guess this is also better
as I did
   read that in one of the article. This way you can hide the source of
HTTPService
   url from those users who can reverse engineer your code. After getting
your mail
   I was reading this article and now this article makes sence:

http://www.bloginblack.de/files/MAXKorea2006_KaiKoenig_FDS101.swf

By the way do you know any good source which can guide me to install
BlazeDS on my servelet container.

Best regards





On Tue, Apr 22, 2008 at 8:52 AM, Tracy Spratt <[EMAIL PROTECTED]> wrote:

>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 many ways.
>
>
>
> Tracy
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Vivian Richard
> *Sent:* Tuesday, April 22, 2008 1:12 AM
>
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] crossdomain where is the server root?
>
>
>
>
>
>
> By the way did you guys try Christophe Coenrates' BlazeDS 30 mins test
> drive
> examples? His tutorial includes a tomcat server with BlazeDS
> installed. I did
> not find the crossdomain.xml file in it!!! and it works :)))
> Here is the link
> if you want to take a look at it...
>
>
> http://coenraets.org/blog/2007/12/blazeds-open-sourcing-remoting-and-messaging/
>
>
>
>  On Mon, Apr 21, 2008 at 9:33 AM, Tracy Spratt <[EMAIL PROTECTED]>
> wrote:
>
> Also, at least for testing, I think you should specify to-ports="*"
>
>
>
> Tracy
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of [EMAIL PROTECTED]
> *Sent:* Monday, April 21, 2008 12:15 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] crossdomain where is the server root?
>
>
>
>
> Yes, stick it under ROOT.
>
> cheers,
>
> David
> x54680
>
> *"Vivian Richard" <[EMAIL PROTECTED]>*
> Sent by: flexcoders@yahoogroups.com
>
> 04/20/2008 06:54 PM
>
> Please respond to
> flexcoders@yahoogroups.com
>
>To
>
> flexcoders@yahoogroups.com
>
> cc
>
>
>
> Subject
>
> Re: [flexcoders] crossdomain where is the server root?
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>Thanks for the emails. When I run tomcat and go to
> http://localhost:8080/
>it will take me to the ROOT directory and there is an index.html file
> which
>is show on the browser. So does that mean my root is ROOT directory?
>
>By the way since I did not update the flash player, I did use the older
>
>version of crossdomain.xml file. This one:
>
>  
>   http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";>
>  
>  
>  
>
>
>
>
>
> On Sun, Apr 20, 2008 at 7:05 AM,  <[EMAIL PROTECTED]> wrote:
>
>
> In tomcat it needs to go in the root webapp, not in the webapps directory.
>
> If you just do http://myserver/, what does it resolve to?
>
> cheers,
>
> David
>
>
> *"Tracy Spratt" <[EMAIL PROTECTED] <[EMAIL PROTECTED]>*>*
> Sent by: flexcoders@yahoogroups.com
>
> 04/20/2008 11:04 AM
>
> Please respond to
> flexcoders@yahoogroups.com
>
>To
>
> 
>
> cc
>
>
>
> Subject
>
> RE: [flexcoders] crossdomain where is the server root?
>
>
>
>
>
>
>
>
>
>
>
>
> It goes wherever the web server domain name resolves to.  In IIS,
> …\inetpub\wwwroot.  In JRUN, …\jrun4\servers\default.  I have never put one
> in a Tomcat installation… hmm, I just went and looked at a tomcat server and
> I would have expected it to go in "webapps", as you said you tried.
>
>
>
> First are you trying a global setting, using wildcards for both the port
> and server?  Also, with the latest versions of the player, yo need a couple
> more entries in tht file.  Here is an example.
>
>
>
> 
>
>  http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";>
>
> 
>
>
>
>
>
>
>
> 
>
>
>
> That way I figured mine out is to put a global crossdomain in every
> possible location until it worked, then removed them till it broke.
>
>
>
> Tracy
>
>
>
>
>  --
>
>
>
>
>
>
> *From:[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] *On
> Behalf Of *hworke
> *Sent:* Friday, April 18, 2008 8:50 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] crossdomain where is the server root?
>
>
>
>
>
> Sorry for asking this question. I am using jetty
> and put the crossdomain.xml in webapps folder but
> look like it is not the root. Also which one is the
> tomcat root? ROOT folder?
>
>
>
>
>
>  
>


RE: [flexcoders] Rich Text Editor

2008-04-22 Thread Alex Harui
This is your third thread all about the same thing.  RichTextEditor is
an mxml file.  Copy it and look inside.  There isn't much to it, and the
piece you want to modify is when and where it sets defaultTextFormat on
the internal textfield.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of grimmwerks
Sent: Tuesday, April 22, 2008 5:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Rich Text Editor

 

How does the rich text editor GET it's control events for setting text 
size, color, etc?

Cause I need to emulate it whenever someone clicks anywhere within an 
RTE and it's just not working

 



RE: [flexcoders] Re: Question about commitProperties

2008-04-22 Thread Alex Harui
I would normally expect that the model is the dataProvider for a
top-level datagrid, or the model is a singleton and doesn't require
pushing down.

 

If callLater solved your timeout problem it makes me think that there's
some invalidation problem and you might now be hitting a slow
performance problem.  That might be worth diagnosing and resolving in
the more "standard" way so you have fewer problems down the road.

 

Often, when I run into issues like this, it makes me re-think my design.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Tuesday, April 22, 2008 6:05 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Question about commitProperties

 

I am using callLater only because I was getting 15 secs. error. I am 
changing xmlModelData down the road.

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> There's not enough context here to know for sure, but it's probably 
a
> bad sign to be using callLater in any validation method as the 
point is
> to validate synchronously. I'm also concerned about how you are 
using
> your properties bag on the ClassFactory. I hope you're not 
changing the
> values assigned.
> 
> 
> 
> Everything should be data-driven (pulling data from data objects). 
If
> feels like you're pushing stuff down, instead of pulling.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 

[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of markgoldin_2000
> Sent: Tuesday, April 22, 2008 3:29 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Question about commitProperties
> 
> 
> 
> I have a custom renderer based on canvas that has the following 
> setters:
> public function set trainId(value:String):void
> {
> _trainId = value;
> }
> public function get trainId():String
> {
> return _trainId;
> } 
> public function set highlightCurrentHour(value:String):void
> {
> _backgroundColor = value;
> } 
> public function get highlightCurrentHour():String
> {
> return _backgroundColor;
> }
> public function set xmlModelData(value:XML):void
> {
> _xmlModelData = value;
> } 
> public function get xmlModelData():XML
> {
> return _xmlModelData;
> }
> 
> then I have:
> override protected function commitProperties():void 
> {
> super.commitProperties();
> assignBlocks(xmlModelData, trainId, highlightCurrentHour);
> } 
> and
> public function assignBlocks(xmlModelData:XML, trainId:String, 
> highlightCurrentHour:String):void
> { 
> callLater(trainDepartGrid.assignBlocks, [trainId, 
> xmlModelData, highlightCurrentHour]); 
> trainDepartGrid.width = xmlModelData.trainshours.(train_id == 
> trainId).setwidth;
> callLater(trainReceivingGrid.assignCars, [trainId, 
> xmlModelData, highlightCurrentHour]);
> trainReceivingGrid.width = xmlModelData.trainshours.(train_id 
> == trainId).setwidth;
> }
> 
> I am setting these properties on this renderer like this:
> ClassFactory(codeDestinationRenderer).properties =
> {trainId:prop.train_id, highlightCurrentHour:bBackgroundColor, 
> xmlModelData:xmlModelData};
> 
> My question is:
> Is commitProperties is a right place to call assignBlocks?
> Before I changed my code to this version the program worked much 
> better though.
> 
> Please help.
> 
> Thanks
>

 



RE: [flexcoders] Re: Showroot - Tree control

2008-04-22 Thread Tracy Spratt
First, do away with the collections and just try it with XML.  XML works
extremely well with Tree, since it is inherently hierarchical.  Nested
collections add a level of complexity you probably do not need.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rafael Faria
Sent: Tuesday, April 22, 2008 7:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Showroot - Tree control

 

any help?! im really tight on it. =/

Thanks
Raf

--- In flexcoders@yahoogroups.com 
, "Rafael Faria"
<[EMAIL PROTECTED]> wrote:
>
> 
> 
> http://www.adobe.com/2006/mxml
 ">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Whenever i have just 1 node (that is the root one) on the XML it
> doesnt matter if i set the attribute showRoot="false" because it keep
> showing.
> 
> I need to keep the root to not show on my tree.
> 
> 
> if i do
> 
> 
> 
> 
> http://www.adobe.com/2006/mxml
 ">
> 
> 
> 
> 
> 
> 
> 
>  
>  
>  
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> The "Mail" one its not there...
> 
> i cant filter, or delete, or whatever... i just need it to work
> exactly how it work on the second example, but whenever i dont have
> the nodes after the root i just want to show a blank tree.
> 
> The reason i need to keep root is because i have a drag and drop the
> needs to keep the root on it.
> 
> anyone can explain why in the first example even though i set
> showroot="false" it still show it?!
> 
> thanks
>

 



RE: [flexcoders] passing parameters to components

2008-04-22 Thread Tracy Spratt
There are many ways.  Below is a document I started, but have not
polished, but should be of some use.

Tracy

 

Communicating between Components:

 

Note: for "loose coupling" use events.  But that is another topic.

 

A non-trivial flex application is "component" based. While all of the
built-in controls are components, the question of communicating between
components most often arises when you are using a custom component. A
custom component, whether implemented in mxml or ActionScript, has its
own "scope". Within that component (Application is a component too!),
all sibling child controls share the same scope, so you can refer to
controls by their id.  If the controls(components) have public
properties or methods, you can reference those members directly through
the id:





 

Ok, so far, its a "duh" right?

 

When you use custom components in a Flex app, at run time they make a
document object model hierarchy (DOM).  Each subcomponent has its own
scope and code within that component can't *directly* reference the
member properties or methods of its sibling subcomponents.

 

So again, within a component, code can reference children  directly, as
in the example above.  But there are two other cases inherent in a
hierarchy.  You might want to reference "up", to get to public members
of the parent, grandparent, etc, or 'down", to get to a "grandchild".

 

Accessing members in the parent:

On an ordinary component DOM, you can reference the parent component
using the .parent property.  Say that a control with id="textinput1"
exists in the parent of the current component.  then you could do:



 

Accessing members in the main application:

Components can be nested, sometimes very deeply.  If the reference you
want is all the way at the top-level, main application (the one with the
 tag), you could do
{parent.parent.parent.textinput1.text}, but you would have to count the
component levels just right.  Instead, you can use
Application.application to get to that scope:



You can shoretn this style of reference by importing
mx.core.Application, and assigning Application.application to a
variable, like _app, the doing (_app.textinput1.text)

 

Accessing components of a child component ("grandchildren"):

Say that in this case, a child component has the TextInput control you
want to reference.  First, make sure the child component has an id:



Then, in the same scope (the same component/file that contains "mycc1"
above) you can say:



 

Accessing a nested component:

As mentioned above you can go "up" the hierarchy using
"parent.parent...".  You can also go "down" the hirearchy using id
references:



 

Additional notes:

If you are using SWFLoader to load an entire Application, you can
reference the immediate parent application using "parentDocument".  You
can also use Application.application to reach the main app, as shown
above.

 

Accessing members of an application loaded by SWFLoader is a bit more
complicated.  See the example here:

http://www.cflex.net/showFileDetails.cfm?ObjectID=690

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Luke Vanderfluit
Sent: Tuesday, April 22, 2008 7:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] passing parameters to components

 

Hi.

I have a flex application that gets called from an html link and is
passed a 
parameter. The param is personid.

I retrieve the parameter in the flex application (BrowserManager).
So I have access to it in the main application file.

I have a number of components within the main application, that do
server 
requests. In some of those requests I need to pass the personid (that I
have 
retrieved from the browser url).

My question is:

What is the accepted method of passing variables (params) between
components, 
specifically, in this case, from parent to child component?

Thanks for your responses.

Kind regards.
Luke.

-- 
Luke Vanderfluit
Analyst / Web Programmer
e3Learning.com.au
08 8221 6422

 



[flexcoders] Re: data canvas beginFill problem

2008-04-22 Thread coldfusionpaul
--- In flexcoders@yahoogroups.com, Paul Hastings <[EMAIL PROTECTED]>
wrote:


> i might be seeing a bug with beginFill() on a data canvas. the
following snippet 
> produces a "leaked" shape:

still not sure if this is a bug but rearranging the code to this:

uvCanvas.lineStyle(1,0xCC,.75,true);
uvCanvas.drawCircle(x,y,7)
uvCanvas.beginFill(0xCC,0.5);
uvCanvas.drawCircle(x,y,2);
uvCanvas.endFill(); 

seems to workaround that "leaked" shape.

> 
> endPoint=findEndPoint("UV",x,y);
> uvCanvas.lineStyle(1,0xCC,.75,true);
> uvCanvas.drawCircle(x,y,7)
> uvCanvas.moveTo(x,y); 
> uvCanvas.lineTo(endPoint.x,endPoint.y);
> uvCanvas.beginFill(0xCC,0.5);
> uvCanvas.drawCircle(x,y,2);
> uvCanvas.endFill();
> 
> have a look at:
> 
> http://www.sustainablegis.com/projects/git/dataCanvas.jpg




[flexcoders] Re: Question about commitProperties

2008-04-22 Thread markgoldin_2000
I am using callLater only because I was getting 15 secs. error. I am 
changing xmlModelData down the road.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> There's not enough context here to know for sure, but it's probably 
a
> bad sign to be using callLater in any validation method as the 
point is
> to validate synchronously.  I'm also concerned about how you are 
using
> your properties bag on the ClassFactory.  I hope you're not 
changing the
> values assigned.
> 
>  
> 
> Everything should be data-driven (pulling data from data objects).  
If
> feels like you're pushing stuff down, instead of pulling.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of markgoldin_2000
> Sent: Tuesday, April 22, 2008 3:29 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Question about commitProperties
> 
>  
> 
> I have a custom renderer based on canvas that has the following 
> setters:
> public function set trainId(value:String):void
> {
> _trainId = value;
> }
> public function get trainId():String
> {
> return _trainId;
> } 
> public function set highlightCurrentHour(value:String):void
> {
> _backgroundColor = value;
> } 
> public function get highlightCurrentHour():String
> {
> return _backgroundColor;
> }
> public function set xmlModelData(value:XML):void
> {
> _xmlModelData = value;
> } 
> public function get xmlModelData():XML
> {
> return _xmlModelData;
> }
> 
> then I have:
> override protected function commitProperties():void 
> {
> super.commitProperties();
> assignBlocks(xmlModelData, trainId, highlightCurrentHour);
> } 
> and
> public function assignBlocks(xmlModelData:XML, trainId:String, 
> highlightCurrentHour:String):void
> { 
> callLater(trainDepartGrid.assignBlocks, [trainId, 
> xmlModelData, highlightCurrentHour]); 
> trainDepartGrid.width = xmlModelData.trainshours.(train_id == 
> trainId).setwidth;
> callLater(trainReceivingGrid.assignCars, [trainId, 
> xmlModelData, highlightCurrentHour]);
> trainReceivingGrid.width = xmlModelData.trainshours.(train_id 
> == trainId).setwidth;
> }
> 
> I am setting these properties on this renderer like this:
> ClassFactory(codeDestinationRenderer).properties =
> {trainId:prop.train_id, highlightCurrentHour:bBackgroundColor, 
> xmlModelData:xmlModelData};
> 
> My question is:
> Is commitProperties is a right place to call assignBlocks?
> Before I changed my code to this version the program worked much 
> better though.
> 
> Please help.
> 
> Thanks
>




RE: [flexcoders] passing parameters to components

2008-04-22 Thread Gordon Smith
Any component can retrieve an application parameter as
Application.application.parameter.personid. There is no point in pushing
a parameter like this down into every component. It is stored on the
Application instance and components should access it there instead of
keeping redundant copies of this information.

 

If you really want to pass it down to SiteList, you can simply declare a
public var rather than writing a setter. (BTW, setters without getters
are weird.) And if you do write a setter, the convention is to name it
personID, not setPersonID (and to name its private storage var
_personID).

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Luke Vanderfluit
Sent: Tuesday, April 22, 2008 4:57 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] passing parameters to components

 

Hi.

In partial answer to my own question (and not seem a complete and utter
idiot) 
here's what Im currently doing:

In my component (SiteList) I have a setter function:

private var personId:String;
public function set setPersonId(p:String):void {
personId = p;
}

In my main component:


Is this the recommended way?
What are the alternatives?

Thanks again.

Kr.
Luke.

Luke Vanderfluit wrote:
> Hi.
> 
> I have a flex application that gets called from an html link and is
passed a 
> parameter. The param is personid.
> 
> I retrieve the parameter in the flex application (BrowserManager).
> So I have access to it in the main application file.
> 
> I have a number of components within the main application, that do
server 
> requests. In some of those requests I need to pass the personid (that
I have 
> retrieved from the browser url).
> 
> My question is:
> 
> What is the accepted method of passing variables (params) between
components, 
> specifically, in this case, from parent to child component?
> 
> Thanks for your responses.
> 
> Kind regards.
> Luke.
> 

-- 
Luke Vanderfluit
Analyst / Web Programmer
e3Learning.com.au
08 8221 6422

 



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

2008-04-22 Thread Gordon Smith
I think you want parentDocument, unless your Button is inside an
 tag.

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Tuesday, April 22, 2008 3:34 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: onclick call not able to access parent doc

 

That looks correct.  What is the error?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jason B
Sent: Tuesday, April 22, 2008 4:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: onclick call not able to access parent doc

 

I tried that and get a error !
Can you explain further

--- In flexcoders@yahoogroups.com 
, "Jason B" <[EMAIL PROTECTED]> wrote:
>
> Thanks Tracy 
> 
> do you mean like this?
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com
 , "Tracy Spratt"  wrote:
> >
> > "Component" creates its own scope. Use "outerDocument" to
reference the
> > parent scope.
> > 
> > 
> > 
> > Tracy
> > 
> > 
> >
>

 



RE: [flexcoders] Question about commitProperties

2008-04-22 Thread Alex Harui
There's not enough context here to know for sure, but it's probably a
bad sign to be using callLater in any validation method as the point is
to validate synchronously.  I'm also concerned about how you are using
your properties bag on the ClassFactory.  I hope you're not changing the
values assigned.

 

Everything should be data-driven (pulling data from data objects).  If
feels like you're pushing stuff down, instead of pulling.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Tuesday, April 22, 2008 3:29 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Question about commitProperties

 

I have a custom renderer based on canvas that has the following 
setters:
public function set trainId(value:String):void
{
_trainId = value;
}
public function get trainId():String
{
return _trainId;
} 
public function set highlightCurrentHour(value:String):void
{
_backgroundColor = value;
} 
public function get highlightCurrentHour():String
{
return _backgroundColor;
}
public function set xmlModelData(value:XML):void
{
_xmlModelData = value;
} 
public function get xmlModelData():XML
{
return _xmlModelData;
}

then I have:
override protected function commitProperties():void 
{
super.commitProperties();
assignBlocks(xmlModelData, trainId, highlightCurrentHour);
} 
and
public function assignBlocks(xmlModelData:XML, trainId:String, 
highlightCurrentHour:String):void
{ 
callLater(trainDepartGrid.assignBlocks, [trainId, 
xmlModelData, highlightCurrentHour]); 
trainDepartGrid.width = xmlModelData.trainshours.(train_id == 
trainId).setwidth;
callLater(trainReceivingGrid.assignCars, [trainId, 
xmlModelData, highlightCurrentHour]);
trainReceivingGrid.width = xmlModelData.trainshours.(train_id 
== trainId).setwidth;
}

I am setting these properties on this renderer like this:
ClassFactory(codeDestinationRenderer).properties =
{trainId:prop.train_id, highlightCurrentHour:bBackgroundColor, 
xmlModelData:xmlModelData};

My question is:
Is commitProperties is a right place to call assignBlocks?
Before I changed my code to this version the program worked much 
better though.

Please help.

Thanks

 



[flexcoders] Rich Text Editor

2008-04-22 Thread grimmwerks
How does the rich text editor GET it's control events for setting text  
size, color, etc?

Cause I need to emulate it whenever someone clicks anywhere within an  
RTE and it's just not working


Re: [flexcoders] passing parameters to components

2008-04-22 Thread Luke Vanderfluit
Hi.

In partial answer to my own question (and not seem a complete and utter idiot) 
here's what Im currently doing:

In my component (SiteList) I have a setter function:

private var personId:String;
public function set setPersonId(p:String):void {
personId = p;
}

In my main component:


Is this the recommended way?
What are the alternatives?

Thanks again.

Kr.
Luke.

Luke Vanderfluit wrote:
> Hi.
> 
> I have a flex application that gets called from an html link and is passed a 
> parameter. The param is personid.
> 
> I retrieve the parameter in the flex application (BrowserManager).
> So I have access to it in the main application file.
> 
> I have a number of components within the main application, that do server 
> requests. In some of those requests I need to pass the personid (that I have 
> retrieved from the browser url).
> 
> My question is:
> 
> What is the accepted method of passing variables (params) between components, 
> specifically, in this case, from parent to child component?
> 
> Thanks for your responses.
> 
> Kind regards.
> Luke.
> 


-- 
Luke Vanderfluit
Analyst / Web Programmer
e3Learning.com.au
08 8221 6422


[flexcoders] Cairngorm ServiceLocator

2008-04-22 Thread Eric Cancil
I think a little more thought could be put into this class.  Due to the fact
that it uses describeType to discover the services that have been added to
it, and it is not a dynamic class/ does not have any way to dynamically add
services at runtime...it makes it in my view impossible to add say for
example services that youve loaded in an initialization file at runtime.  If
an accessor method to add service at runtime was added I think it would make
this class a lot more dynamic.  Instead it relies on MXML being compiled
down to AS and variables automatically being added.

Any thoughts?
Eric

Ps... please dont suggest to roll my own locator, i know ;)


[flexcoders] Flex 2 to Flex 3 migration problem - can't copy event.result from remote call

2008-04-22 Thread bobklhr
I'm using calls to ColdFusion to populate master detail pages. This 
works fine in Flex 2. In Flex 3, the remote call to populate the 
master datagrid works fine using the returned query results, but the 
call to get the details no longer works - I'm now getting an error 
#1009 - Cannot access a property of a null object reference.

Here's the remote call:



and part of the showOrderfunction:

public function showOrder(result:Object):void
{
currentOrder =  result as ORDERS; <-- this doesn't work
if(currentOrder.manuallyCreated) <-- this causes the error

debugging shows that event.result is being returned from ColdFusion 
and is being passed to showOrder() but for some reason the 
assignment to currentOrder no longer works.

Any ideas as to what might have changed to caused this, or am I 
doing something wrong?

Thanks

Bob



[flexcoders] Import air.net.URLMonitor

2008-04-22 Thread timgerr
Hello all,
I am creating a app and I have to see if I can connect to the url.  I
found some code
(http://livedocs.adobe.com/flex/3/html/help.html?content=network_connectivity_1.html):
import air.net.URLMonitor;
import flash.net.URLRequest;
import flash.events.StatusEvent;

var monitor:URLMonitor;
monitor = new URLMonitor(new URLRequest('http://www.adobe.com'));
monitor.addEventListener(StatusEvent.STATUS, announceStatus);
monitor.start();

function announceStatus(e:StatusEvent):void {
trace("Status change. Current status: " + monitor.available);
}

It says that I need to import air.net.URLMonitor;.  Can I use air
stuff in a we app, and if so how do I get the air.net.URLMonitor part?

Thanks,
Timgerr



Re: [flexcoders] DataGrid Header Center Align??

2008-04-22 Thread fredly

If you are using the Advanced datagrid, you need to use horizontalAlign or
verticalAlign.
so in CSS you would say horizontalAlign:left.

textAlign does not work for the Advanced Datagrid. 
See  http://bugs.adobe.com/jira/browse/FLEXDMV-1633 Flex bug 1663  - 
-- 
View this message in context: 
http://www.nabble.com/DataGrid-Header-Center-Align---tp9100312p16826469.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Flex 2 to Flex 3 migration problem - can't copy event.result from remote call

2008-04-22 Thread bobklhr
I'm using calls to ColdFusion to populate master detail pages. This 
works fine in Flex 2. In Flex 3, the remote call to populate the 
master datagrid works fine using the returned query results, but the 
call to get the details no longer works - I'm now getting an error 
#1009 - Cannot access a property of a null object reference.

Here's the remote call:



and part of the showOrderfunction:

public function showOrder(result:Object):void
{
currentOrder =  result as ORDERS; <-- this doesn't work
if(currentOrder.manuallyCreated) <-- this causes the error

debugging shows that event.result is being returned from ColdFusion 
and is being passed to showOrder() but for some reason the 
assignment to currentOrder no longer works.

Any ideas as to what might have changed to caused this, or am I 
doing something wrong?

Thanks

Bob



[flexcoders] Best way to secure a ColdFusion web service

2008-04-22 Thread richclient
Our flex application is using  where the web service is a 
ColdFusion CFC. 
Works great. Now we need to deploy the application and the web service in a 
production 
environment across SSL, and ensure that not just any application can call that 
web service. 

With Flex calling the ColdFusion web service, we cannot hold the credentials in 
a session 
scope because there isn't one for a web service. (?)  How do we make sure no 
unauthorized 
consumers succeed in getting data back from our web service calls? Are we going 
to have to 
pass credentials to the web service on every call?



[flexcoders] How to Build Flex via the Command line?

2008-04-22 Thread Justin Bozonier
Do I have to use Ant or can I use TFS?

Thanks in advance,

Justin Bozonier



[flexcoders] Re: Showroot - Tree control

2008-04-22 Thread Rafael Faria
any help?! im really tight on it. =/

Thanks
Raf


--- In flexcoders@yahoogroups.com, "Rafael Faria"
<[EMAIL PROTECTED]> wrote:
>
> 
> 
> http://www.adobe.com/2006/mxml";>
>   
>   
>  
> 
>
> 
>  
>   
>
> 
> 
> Whenever i have just 1 node (that is the root one) on the XML it
> doesnt matter if i set the attribute showRoot="false" because it keep
> showing.
> 
> I need to keep the root to not show on my tree.
> 
> 
> if i do
> 
> 
> 
> 
> http://www.adobe.com/2006/mxml";>
>
>   
>  
> 
>
>
>   
>
>   
>   
>   
>   
>   
> 
>  
>   
>
> 
> 
> 
> The "Mail" one its not there...
> 
> i cant filter, or delete, or whatever... i just need it to work
> exactly how it work on the second example, but whenever i dont have
> the nodes after the root i just want to show a blank tree.
> 
> The reason i need to keep root is because i have a drag and drop the
> needs to keep the root on it.
> 
> anyone can explain why in the first example even though i set
> showroot="false" it still show it?!
> 
> thanks
>




[flexcoders] passing parameters to components

2008-04-22 Thread Luke Vanderfluit
Hi.

I have a flex application that gets called from an html link and is passed a 
parameter. The param is personid.

I retrieve the parameter in the flex application (BrowserManager).
So I have access to it in the main application file.

I have a number of components within the main application, that do server 
requests. In some of those requests I need to pass the personid (that I have 
retrieved from the browser url).

My question is:

What is the accepted method of passing variables (params) between components, 
specifically, in this case, from parent to child component?

Thanks for your responses.

Kind regards.
Luke.

-- 
Luke Vanderfluit
Analyst / Web Programmer
e3Learning.com.au
08 8221 6422


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

2008-04-22 Thread Bob Wohl
I just updated an application to use SWFObject 2.0 yesterday. Hopefully when
it gets to QA I won't get bombarded by failed browser issues. If so, I'll
just switch, so not to big of a deal.

Although, trying to remember, I've used SWFObject in a quite a few apps that
use ExternalInterface/JS in the past and only had to loop through the dom to
deal with IE,. Is it something internal to JQuery that was killing IE?
Or

B.

On Tue, Apr 22, 2008 at 11:02 AM, Cutter (Flex Related) <
[EMAIL PROTECTED]> wrote:

>   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 me fix that statement: would not be able to use any
> functions of JQuery **in Internet Explorer** (go figure). We saw
> something similar with a legacy SWFObject call interfering with us using
> Ext on the same page. This took a little time to discover, and even
> longer to figure out, but basically SWFObject breaks the DOM in IE. We
> found that this wasn't an issue when we used the js that Flash bundles
> in when you compile your Flash movie, so we wrote a wrapper and started
> using that instead. It's worked flawlessly ever since.
>
> Steve "Cutter" Blades
> Adobe Certified Professional
> Advanced Macromedia ColdFusion MX 7 Developer
> _
> http://blog.cutterscrossing.com
>
>  
>


[flexcoders] Date and Time Math (DST change implications)

2008-04-22 Thread jmfillman
I have two date variables. 

Variable myDate1 has the following date:
Sun Mar 30 00:00:00 GMT-0700 2008

Variable myDate2 has the following date:
Sun Feb 24 00:00:00 GMT-0800 2008

I need to subtract date 2 from date 1 to get a number of days between:
((myDate1.getTime() - myDate2.getTime()) / 8640);

Usually, this give me a nice round number, like 35. However, in the 
example above, returns a number of 34.9583336..

I assume that I need to account for that 1 hour, the question is, how? 
It still needs to work regardless of whether or not the two dates cross 
a time change. 



[flexcoders] Question about commitProperties

2008-04-22 Thread markgoldin_2000
I have a custom renderer based on canvas that has the following 
setters:
public function set trainId(value:String):void
{
_trainId = value;
}
public function get trainId():String
{
return _trainId;
}   
public function set highlightCurrentHour(value:String):void
{
_backgroundColor = value;
}   
public function get highlightCurrentHour():String
{
   return _backgroundColor;
}
public function set xmlModelData(value:XML):void
{
_xmlModelData = value;
}   
public function get xmlModelData():XML
{
return _xmlModelData;
}

then I have:
override protected function commitProperties():void 
{
super.commitProperties();
assignBlocks(xmlModelData, trainId, highlightCurrentHour);
}   
and
public function assignBlocks(xmlModelData:XML, trainId:String, 
highlightCurrentHour:String):void
{   
callLater(trainDepartGrid.assignBlocks, [trainId,  
xmlModelData, highlightCurrentHour]);   
trainDepartGrid.width = xmlModelData.trainshours.(train_id == 
trainId).setwidth;
callLater(trainReceivingGrid.assignCars, [trainId, 
xmlModelData, highlightCurrentHour]);
trainReceivingGrid.width = xmlModelData.trainshours.(train_id 
== trainId).setwidth;
}

I am setting these properties on this renderer like this:
ClassFactory(codeDestinationRenderer).properties =
{trainId:prop.train_id, highlightCurrentHour:bBackgroundColor, 
xmlModelData:xmlModelData};

My question is:
Is commitProperties is a right place to call assignBlocks?
Before I changed my code to this version the program worked much 
better though.

Please help.

Thanks



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

2008-04-22 Thread Tracy Spratt
That looks correct.  What is the error?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jason B
Sent: Tuesday, April 22, 2008 4:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: onclick call not able to access parent doc

 

I tried that and get a error !
Can you explain further

--- In flexcoders@yahoogroups.com 
, "Jason B" <[EMAIL PROTECTED]> wrote:
>
> Thanks Tracy 
> 
> do you mean like this?
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com
 , "Tracy Spratt"  wrote:
> >
> > "Component" creates its own scope. Use "outerDocument" to
reference the
> > parent scope.
> > 
> > 
> > 
> > Tracy
> > 
> > 
> >
>

 



[flexcoders] Please help

2008-04-22 Thread markgoldin_2000
I have been having a very hard time trying to get the following working 
for me:
A custom itemRenderer goes into a column. This custom renderer is a 
dataGrid with a few columns. Columns to that grid are added 
dynamically. After these columns have been added a total width is 
assigned to the internal dataGrid and an array element is set to carry 
that value.
After this an external column is getting its width set to the array 
element. Everything works perfectly well, but ...
Looks like I am having a timing issue here. I need to wait somehow till 
internal grid is built and its width is stored into array.
How someone would design it? I am trying to use Timer to monitor 
setting for the internal dataGrid but that is not going well either. 
I think that going with Timer is right thinkg to do. But I mignt be 
wrong and that's why I need help.
My project is under a deadline, please help.

Thanks




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

2008-04-22 Thread supertodda
I've Fixed the problem!

Thanks to those who have contributed solutions.  To answer your
question, I was using the latest 1.9 beta version of AMFPHP with the
PHP  class for performance.  This was not the problem...

The fix was to move all the code onto a Apache 2.2 server.  Originally
was was running the code on an apache 1.x instance for backwards
compatibility, legacy, PHP thread issue reasons.  When I served the
same code over Apache 2.2 the problem was resolved (and the
performance was a little better - Bonus!)  I think that the new apache
handles SSL a bit better/faster.  Also, just to note, I'm running on
Windows 2003, which has been a great platform for us.

I've tested it throughly, I've even dumbed my net connection down to
53Kbs using NetLimiter and everything runs fine, so the slow
connection is not a factor.

Please let me know if you need me to elaborate the fix anymore, but if
anybody out there is having connection issues, then this may be the
solution.

Thanks again.

-Todd


--- In flexcoders@yahoogroups.com, "supertodda" <[EMAIL PROTECTED]> wrote:
>
> Anybody out there experiencing this issue in flex 3 with AMFPHP?
>




[flexcoders] flex portlet

2008-04-22 Thread mailamal2
Hi

I've developed a simple flex portlet (I'm using flex 3) 
(http://www.adobe.com/devnet/flex/articles/flex_portals_05.html)

But it didn't work on Liferay portal

If someone has a flex portlet working on liferay or an other portal
Please send me.

Thanks in advance 





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

2008-04-22 Thread Justin Fujita
Thanks Mete,

I really appreciate your help.  I've changed up my java message producer a
bit to see if that helps as well.   I guess I'll let you know how it works
out in about 5-6 days


Thanks again,
-Justin

On Tue, Apr 22, 2008 at 11:15 AM, meteatamel <[EMAIL PROTECTED]> wrote:

>   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.
> >
> > The message producer is a custom Java bootstrapper and adapter that
> > configures the messaging destination endpoints upon server startup.
> >
> > The destination runtime config java bootstrap method for our
> > "fleet_demo" destination looks like this:
> >
> > public void initializeDestinations()
> > {
> > String destinationId = "fleet_demo";
> > String serviceId = "message-service";
> > MessageBroker broker = MessageBroker.getMessageBroker(null);
> > MessageService service = (MessageService)
> > broker.getService(serviceId);
> > MessageDestination destination = (MessageDestination)
> > service.createDestination(destinationId);
> >
> > destination.addChannel("my-streaming-amf");
> > destination.addChannel("my-polling-amf");
> >
> > ServerSettings serverSettings = new ServerSettings();
> > serverSettings.setMaxCacheSize(1000);
> > serverSettings.setMessageTTL(0);
> > serverSettings.setDurable(false);
> >
> > destination.setServerSettings(serverSettings);
> >
> > if (service.isStarted())
> > {
> > //initialize and run the destination
> > destination.start();
> > }
> > }
> >
> >
> > The bootstrapper also spawns a separate thread that continuously
> > receives location data from our server and packages it into an
> > AsyncMessage and routes it to the appropriate destination using a
> > method similar to this:
> >
> > private void sendMessage(latitudeFromServer:double,
> > longitudeFromServer:double)
> > {
> > MessageBroker msgBroker = MessageBroker.getMessageBroker(null);
> > String clientID = UUIDUtils.createUUID(false);
> > AsyncMessage msg = new AsyncMessage();
> >
> > msg.setDestination("fleet_demo");
> > msg.setHeader("latitude", latitudeFromServer);
> > msg.setHeader("longitude", longitudeFromServer);
> >
> > msg.setClientId(clientID);
> > msg.setMessageId(UUIDUtils.createUUID(false));
> > msg.setTimestamp(System.currentTimeMillis());
> > msgBroker.routeMessageToService(msg, null);
> > }
> >
> >
> > Now I start up the server and the bootstrapper initializes the
> > "fleet_demo" endpoint and the sendMessage thread routes location data
> > perfectly to my flex client(averaging about 500-1600 messages per
> > hour) It works! This keeps up for about 5-6 days. After that I stop
> > receiving any messages when I should be. Its as though the
> > MessageBrokerServlet just goes silent. The only way to fix this is to
> > restart jboss and when I try to shutdown the server I get this NPE
> > message from the MessageBrokerServlet:
> >
> > 11:22:36,295 INFO [Server] Runtime shutdown hook called, forceHalt: true
> > 11:22:36,295 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
> > 11:22:36,296 INFO [TomcatDeployer] undeploy, ctxPath=/jmx-console,
> > warUrl=.../deploy/jmx-console.war/
> > 11:22:36,330 INFO [TomcatDeployer] undeploy, ctxPath=/enterprise,
> > warUrl=.../deploy/enterprise.war/
> > 11:22:36,331 INFO [StandardWrapper] Waiting for 5 instance(s) to be
> > deallocated
> > 11:22:37,350 INFO [StandardWrapper] Waiting for 5 instance(s) to be
> > deallocated
> > 11:22:38,373 INFO [StandardWrapper] Waiting for 3 instance(s) to be
> > deallocated
> > 11:22:38,512 ERROR [[MessageBrokerServlet]] Servlet.service() for
> > servlet MessageBrokerServlet threw exception
> > java.lang.NullPointerException
> > at
> >
>
> flex.messaging.endpoints.BaseStreamingHTTPEndpoint.handleFlexClientStreamingOpenRequest(BaseStreamingHTTPEndpoint.java:959)
> > at
> >
>
> flex.messaging.endpoints.BaseStreamingHTTPEndpoint.serviceStreamingRequest(BaseStreamingHTTPEndpoint.java:1131)
> > at
> >
>
> flex.messaging.endpoints.BaseStreamingHTTPEndpoint.service(BaseStreamingHTTPEndpoint.java:468)
> > at
> >
> flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java:377)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> > at
> >
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> > at
> >
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> > at
> >
>
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> > at
> >
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> > at
> >
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> > at
> >
>
> org.apache.catalina.core.StandardWrapperValv

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

2008-04-22 Thread Jeff Switzer
Yes. That was the case.  After a little debugging, I found out the
problem (shortly after my original post).

Thanks for the response!

--- In flexcoders@yahoogroups.com, "Kevin Aebig" <[EMAIL PROTECTED]> wrote:
>
> 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




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

2008-04-22 Thread Gordon Smith
Unfortunately, there are no plans to add a text-drawing API like
Graphics.drawText() in Flash Player 10. Text will continue to be
renderable only by a special type of DisplayObject.

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Eric Cooper
Sent: Tuesday, April 22, 2008 12:51 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Writing text directly to Graphics object.

 

Yes, this is what I was hoping for. And even though it is not now
available, I wonder, 
Gordon, if you are at liberty to tell us about the future? Is
Graphics.drawText() be 
something that might get added?

-eric

--- In flexcoders@yahoogroups.com 
, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> I think the original poster was looking for something like
> 
> 
> 
> graphics.drawText("Hello", format);
> 
> 
> 
> But there are (alas!) no APIs in the Graphics class that know how to
> render a text string. Only TextField knows how to do that.
> 
> 
> 
> Gordon Smith
> 
> Adobe Flex SDK Team
> 

 



[flexcoders] Override canvas set width

2008-04-22 Thread markgoldin_2000
Can I override it?

Thanks



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

2008-04-22 Thread Jason B
I tried that and get a error !
Can you explain further


--- In flexcoders@yahoogroups.com, "Jason B" <[EMAIL PROTECTED]> wrote:
>
> Thanks Tracy 
> 
> do you mean like this?
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
> >
> > "Component" creates its own scope.  Use "outerDocument" to
reference the
> > parent scope.
> > 
> >  
> > 
> > Tracy
> > 
> >  
> >
>




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

2008-04-22 Thread Alex Harui
I'm pretty sure you're not lazy, which is why I'm suggesting that you
continue to spend time upgrading your skills at debugging.  As your
applications reach a certain level of sophistication, good debugging
skills are essential.  If someone had an example, they would provide it,
but your combination of HList/HBox/Repeater probably isn't common enough
for someone to have one handy.

 

I didn't reply to your other post as it seemed like this thread was
covering both issues.  Recycling of renderers has bamboozled lots of
folks and is usually the cause of problems with the list classes.   The
HList probably isn't loading its first child several times, although it
will use the first dataprovider item to do some measurements before it
uses the item to tell a renderer to display it.  But the loop that
generates the renderers for display has been quite thoroughly used and
doesn't use the first item twice.  I assume you've proven that the
dataProvider doesn't have the first item in there twice.

 

Anyway, you want to know if the renderer reports the right size.  Try
something like

 

override protected function measure():void

{

super.measure();

trace("measured", measuredWidth, measuredHeight);

}

 

override protected function updateDisplayList(w:Number, h:Number):void

{

trace("udl", w, h);

super.updateDisplayList(w, h)

}

 

and see if those numbers make sense to you.  I'm thinking that your
measured numbers are wrong, so you'll need to find out why by adding
other trace statements, maybe like the number of children, the data
object, stuff like that.

 

 

-Alex

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Amy
Sent: Tuesday, April 22, 2008 12:35 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Tiny components when using callLater()

 

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> 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 measure for debugging purposes and a worthwhile pattern 
to use
> in other scenarios. If you're comfortable with the debugger, debug
> through the makeRowsAndColumns and see what the renderer is 
reporting.

The thing is, I don't know what I properly need to include in a 
measure() function to successfully create the appropriate 
functionality. 

I'm actually _not_ comfortable with the debugger, since the step over 
button sometimes seems to land you in very verbose code where the 
step out button will then gray out and you are forced to step through 
it line by line. The debugger is not at all well documented, and I 
haven't been able to find a way to address this problem which means 
it can take literally hours to debug the code...your eyes glaze over 
and you hit step over, step over, oops now that is grayed out, step 
into, step into, whoops, I was doing it by rote and I missed the bit 
I was looking for, must start over, etc.

> You've been one this list long enough that you are no longer 
a "newbie"
> and should be learning these debugging techniques.

That's all very well and good, but when I ask for examples that would 
help me I get nothing. Sometimes I can "just figure things out" but 
often I do a lot better with an example in front of me. It's not 
like I'm lazy or an idiot. I spent about an extra ten hours trying 
to get this to work in what ought to be a "best practice" way before 
throwing up my hands and simply calling the method from both 
dataChange and creationComplete like was working before rather than 
trying to use callLater.

> My last point about recycling was important. Because there is
> recycling, it is possible that the repeater is regenerating its 
children
> more than once, which might somehow be related to this problem, and 
is
> likely to cause performance issues for you later. 

It has _already_ caused issues for me. 

http://tech.groups.yahoo.com/group/flexcoders/message/110798
 

But I figured either there was no solution or people on the list 
didn't find it terribly interesting, so I just accepted the problem. 
Hours trying to fix it on my own didn't help.

> Avoiding the use of
> repeater would probably be a good thing. Is the number of children 
the
> repeater generates the same for every row? Does it only vary by a 
few?
> If so, it might be worth skipping repeater and simply declaring the 
max
> set of children and hiding a few.

I don't think the problem is in the Repeater. I think the problem is 
that the HorizontalList is loading its first child several times and 
that the size information that is coming back out of the 

[flexcoders] Re: Rollover rollout on child components

2008-04-22 Thread Denis
Alex, thanks for your help.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Even if you fix that, what will you do when someone clicks on the popup,
> leaving the mouse outside the component.  Should it shrink back?  If so
> when?  After the dropdown tween finishes?
> 
>  
> 
> Anyway, the event.relatedTarget will have a .owner (instead of .parent)
> chain pointing back to your component
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Denis
> Sent: Tuesday, April 22, 2008 12:12 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Rollover rollout on child components
> 
>  
> 
> 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 is being fired on the parent component and it shrinks,
> leaving only the dropdown list open the screen. 
> 
> How can I prevent this kind of behaviour? Is there a way to determine
> which object has focus so I can prevent the shrinkage of the parent in
> certain situations? Is there any other easier solution that someone
> can suggest?
> 
> Many thanks
>




[flexcoders] creating multiple series in a chart programatically?

2008-04-22 Thread blc187
Does anybody have any good links to examples of programatically 
creating multiple series in a chart?

I have a chart that I'd like to populate with a new series everytime a 
checkbox is checked, so it is possible to have up to maybe half a dozen 
different series on the chart at the same time.
I'm having some difficulty to get them to overlay each other though...

var cs:AreaSeries = new AreaSeries();
cs.id = brokerId;
cs.yField = 'value';
this.chart.series.push(cs);


The chart itself holds the dataProvider, not the series.
This works with the first series, but not more than one.
Any suggestions?



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

2008-04-22 Thread Eric Cooper
Yes, this is what I was hoping for. And even though it is not now available, I 
wonder, 
Gordon, if you are at liberty to tell us about the future? Is 
Graphics.drawText() be 
something that might get added?

-eric

--- In flexcoders@yahoogroups.com, "Gordon Smith" <[EMAIL PROTECTED]> wrote:
>
> I think the original poster was looking for something like
> 
>  
> 
> graphics.drawText("Hello", format);
> 
>  
> 
> But there are (alas!) no APIs in the Graphics class that know how to
> render a text string. Only TextField knows how to do that.
> 
>  
> 
> Gordon Smith
> 
> Adobe Flex SDK Team
> 




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

2008-04-22 Thread Amy
--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> 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 measure for debugging purposes and a worthwhile pattern 
to use
> in other scenarios.  If you're comfortable with the debugger, debug
> through the makeRowsAndColumns and see what the renderer is 
reporting.

The thing is, I don't know what I properly need to include in a 
measure() function to successfully create the appropriate 
functionality.  

I'm actually _not_ comfortable with the debugger, since the step over 
button sometimes seems to land you in very verbose code where the 
step out button will then gray out and you are forced to step through 
it line by line.  The debugger is not at all well documented, and I 
haven't been able to find a way to address this problem which means 
it can take literally hours to debug the code...your eyes glaze over 
and you hit step over, step over, oops now that is grayed out, step 
into, step into, whoops, I was doing it by rote and I missed the bit 
I was looking for, must start over, etc.

> You've been one this list long enough that you are no longer 
a "newbie"
> and should be learning these debugging techniques.

That's all very well and good, but when I ask for examples that would 
help me I get nothing.  Sometimes I can "just figure things out" but 
often I do a lot better with an example in front of me.  It's not 
like I'm lazy or an idiot.  I spent about an extra ten hours trying 
to get this to work in what ought to be a "best practice" way before 
throwing up my hands and simply calling the method from both 
dataChange and creationComplete like was working before rather than 
trying to use callLater.

> My last point about recycling was important.  Because there is
> recycling, it is possible that the repeater is regenerating its 
children
> more than once, which might somehow be related to this problem, and 
is
> likely to cause performance issues for you later. 

It has _already_ caused issues for me. 

http://tech.groups.yahoo.com/group/flexcoders/message/110798

But I figured either there was no solution or people on the list 
didn't find it terribly interesting, so I just accepted the problem.  
Hours trying to fix it on my own didn't help.

> Avoiding the use of
> repeater would probably be a good thing.  Is the number of children 
the
> repeater generates the same for every row?  Does it only vary by a 
few?
> If so, it might be worth skipping repeater and simply declaring the 
max
> set of children and hiding a few.

I don't think the problem is in the Repeater.  I think the problem is 
that the HorizontalList is loading its first child several times and 
that the size information that is coming back out of the HBox isn't 
getting propogated upwards, like the HorizontalList decides how big 
it will be before its itemRenderers are finished deciding how big 
they will be, and I haven't found a way to convince it otherwise.

To be honest, after trying to debug a HorizontalList vs. a Repeater, 
I much prefer the Repeater.  At least you're able to directly see 
what is going on in it.  If I had it to do over, I'd have just stuck 
a repeater in an HBox rather than trying to use a HorizontalList, but 
I don't have time to rewrite this now.

> I can tell from your tone that you've run out of patience, and I 
wish I
> had the quick answer for you, but I don't because use of repeaters 
in a
> renderer isn't that common.  I will continue to try to help if you
> remain patient with me.

I appreciate that :-). It's not so much being out of patience as the 
fact that I genunely don't know where to look to figure out how to 
solve this, and I've already spent way too much time trying to do 
it "right."   Maybe I just need to accept that this is an edge case 
and in this case best practice won't work and just move on with what 
_will_work.

-Amy



RES: [flexcoders] Event.MOUSE_MOVE poor performer

2008-04-22 Thread Luciano Manerich Junior
Hi,
 
even with the MOUSE_MOVE event, your objects will just be drawed after the 
screen refresh, you may want to call this method after the new objects position:
 
private function mouseMoveHandler(event:MouseEvent):void {
trace("mouseMoveHandler");
event.updateAfterEvent();
}




De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em nome de Randy 
Troppmann
Enviada em: terça-feira, 22 de abril de 2008 15:07
Para: flexcoders@yahoogroups.com
Assunto: Re: [flexcoders] Event.MOUSE_MOVE poor performer



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 that MOUSE_MOVE fires in a manner that the 
sprite does not smoothly follow the cursor, for example. However, switching to 
ENTER_FRAME to manage the x and y position, the movement is perfect and fluid. 
So this is not a issue about frame rate. 

I know about startDrag() and stopDrag() to manage dragging a sprite ... that is 
not what I am trying to do here. My latest need was to build a selection 
marquee so I need to manage the position of other sprites based on the one 
being dragged.

So what is clobbering the MOUSE_MOVE event?

- Randy


On Tue, Apr 22, 2008 at 10:05 AM, Luciano Manerich Junior <[EMAIL PROTECTED] 
 > wrote:




Did you changed the Flex FPS rate? the default value it will give you 
that poor performance illusion.



De: flexcoders@yahoogroups.com   
[mailto:flexcoders@yahoogroups.com  ] Em 
nome de Randy Troppmann
Enviada em: terça-feira, 22 de abril de 2008 12:49
Para: flexcoders@yahoogroups.com  
Assunto: [flexcoders] Event.MOUSE_MOVE poor performer



Why is Event.MOUSE_MOVE such a poor performer when trying to get a 
sprite follow the mouse? 






 


RE: [flexcoders] Rollover rollout on child components

2008-04-22 Thread Alex Harui
Even if you fix that, what will you do when someone clicks on the popup,
leaving the mouse outside the component.  Should it shrink back?  If so
when?  After the dropdown tween finishes?

 

Anyway, the event.relatedTarget will have a .owner (instead of .parent)
chain pointing back to your component

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Denis
Sent: Tuesday, April 22, 2008 12:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Rollover rollout on child components

 

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 is being fired on the parent component and it shrinks,
leaving only the dropdown list open the screen. 

How can I prevent this kind of behaviour? Is there a way to determine
which object has focus so I can prevent the shrinkage of the parent in
certain situations? Is there any other easier solution that someone
can suggest?

Many thanks

 



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

2008-04-22 Thread Alex Harui
There is no API for that kind of thing.  I would copy
RichTextEditor.mxml and modify it.  The key is to set the
defaultTextFormat.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of grimmwerks
Sent: Tuesday, April 22, 2008 9:45 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RichTextEditor and keeping a color

 

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 a function fired upon click that is trying to set the style 
for the text -- it works once, but when the teacher clicks someplace 
the text colors have been set - it resets itself to that color.

All I want to do is what a user would do if they clicked, set their 
font, size, and color, and started to type. I just want to make it 
super simple.

What am I missing?

 



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.

 

If a header gets clicked on, you can look at event.target, figure out if
it is a renderer or child of a renderer, make sure it is a header
renderer and look at the dataGridColumn in its .data property.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Cato Paus
Sent: Tuesday, April 22, 2008 11:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Overriding the mouseClickHandler in DataGrid

 

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 it two times before the index changes.

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> You want to know if the header got clicked? Try
> 
> 
> 
> If (r.data is DataGridColumn)
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 

[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Cato Paus
> Sent: Tuesday, April 22, 2008 6:23 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Overriding the mouseClickHandler in DataGrid
> 
> 
> 
> 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 = mouseEventToItemRenderer(event);
> if(r)
> {
> super.mouseClickHandler(event);
> }
> else
> {
> clearSelected(true);
> dispatchEvent(new ListEvent(ListEvent.CHANGE));
> event.stopImmediatePropagation();
> }
> }
> }
>

 



[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 is being fired on the parent component and it shrinks,
leaving only the dropdown list open the screen. 

How can I prevent this kind of behaviour? Is there a way to determine
which object has focus so I can prevent the shrinkage of the parent in
certain situations? Is there any other easier solution that someone
can suggest?

Many thanks



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 any
methods, can access all the instance data of the class.

 

The second case makes more sense as a design. You write a processing
class that encapsulates the state of the data that you want to process,
and a Timer to provide the processing heartbeat. You would simply have
code like

 

class Processor

{

var state:Object;

var timer:Timer;

 

function Processor(state:Object):void

{

this.state = state;

timer = new Timer(1000);

timer.addEventListener(TimerEvent.TIMER, processSomething);

}

 

function processSomething(event:TimerEvent):void

{

// can access 'state' here

}

}

 

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Tuesday, April 22, 2008 10:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Add property to an object at run time

 

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
}
In order to let processSomething access anything from the process 
that creates Timer in a first place I have to create a bunch or 
vars. "visible" in processSomething function. While technically it 
should work but still I would prefer dealing with properties and 
parameters and not with vars. I was thinking to add some props. to 
Timer and doing event.target.newPropName to acceess them.

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> You can use a Dictionary to associate data with the Timer.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 

[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Tracy Spratt
> Sent: Tuesday, April 22, 2008 10:09 AM
> To: flexcoders@yahoogroups.com  
> Subject: RE: [flexcoders] Add property to an object at run time
> 
> 
> 
> Most clases in AS3 do not allow this.
> 
> Tracy
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 

[mailto:flexcoders@yahoogroups.com 
] 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 time
> 
> 
> 
> Can a property be added to a Flex object (Timer) at the run time?
> 
> Thanks
>

 



[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 Timer(1000);
> timer.addEventListener(TimerEvent.TIMER, processSomething);
> private function processSomething(event:TimerEvent):void 
> {
>  // do some processing
> }
> In order to let processSomething access anything from the process 
> that creates Timer in a first place I have to create a bunch or 
> vars. "visible" in processSomething function. While technically it 
> should work but still I would prefer dealing with properties and 
> parameters and not with vars. I was thinking to add some props. to 
> Timer and doing event.target.newPropName to acceess them.
> 
> 
> --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> >
> > 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 object at run time
> > 
> >  
> > 
> > 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 time
> > 
> >  
> > 
> > Can a property be added to a Flex object (Timer) at the run time?
> > 
> > Thanks
> >
>




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;
}

addChild(DOklass);

On Tue, Apr 22, 2008 at 2:31 PM, Gordon Smith <[EMAIL PROTECTED]> wrote:

>> 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 *Derrick Anderson
> *Sent:* Tuesday, April 22, 2008 10:43 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] easiest way to instantiate a class from xml
> data
>
>
>
> 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- but if that's the way to go,
> that will work too.
>
> thanks,
> d.
>
> On Tue, Apr 22, 2008 at 1:31 PM, Alex Harui <[EMAIL PROTECTED]> wrote:
>
> 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 getDefinition() to get the class and make the new class, then
> get the attributes() and assign them using [] syntax.
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Derrick Anderson
> *Sent:* Tuesday, April 22, 2008 9:33 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] easiest way to instantiate a class from xml data
>
>
>
> say i have an xml node like
>
> 
>
> 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 xml data
> to instantiated classes, any ideas?
>
> thanks,
> d.
>
>
>
>  
>


[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 component and they do not appear to support this 
functionality natively. I would appreciate any help on how to extend 
these components to function with multiple entries, or if there is 
another autocomplete component that already has this functionality, 
please let me know.
Thanks for your help,
Stuart



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 Derrick Anderson
Sent: Tuesday, April 22, 2008 10:43 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] easiest way to instantiate a class from xml
data

 

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- but if that's the
way to go, that will work too.

thanks,
d.

On Tue, Apr 22, 2008 at 1:31 PM, Alex Harui <[EMAIL PROTECTED]
 > wrote:

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 getDefinition() to get the class and make the new class,
then get the attributes() and assign them using [] syntax.

 



From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
On Behalf Of Derrick Anderson
Sent: Tuesday, April 22, 2008 9:33 AM
To: flexcoders@yahoogroups.com  
Subject: [flexcoders] easiest way to instantiate a class from xml data

 

say i have an xml node like



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 xml
data to instantiated classes, any ideas?

thanks,
d.

 

 



[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 it two times before the index changes.


--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> 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] Overriding the mouseClickHandler in DataGrid
> 
>  
> 
> 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 = mouseEventToItemRenderer(event);
> if(r)
> {
> super.mouseClickHandler(event);
> }
> else
> {
> clearSelected(true);
> dispatchEvent(new ListEvent(ListEvent.CHANGE));
> event.stopImmediatePropagation();
> }
> }
> }
>




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 
Smith
Sent: Tuesday, April 01, 2008 2:01 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] ResourceBundle

One way to add ResourceBundles at runtime is to compile them into one or more 
resource modules and load those modules with ResourceManager's 
loadResourceModule() method.
 
Another way is to create new ResourceBundles with the 'new' operator, populate 
their 'content' property with key/value pairs that come from anywhere (for 
example, from a downloaded XML file), and install those ResourceBundles into 
the ResourceManager with its addResourceBundle() method.
 
Gordon Smith
Adobe Flex SDK Team
 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ali 
Anil SINACI
Sent: Monday, March 31, 2008 11:26 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ResourceBundle
 
Hello All,

I am going through the internet but i cannot get an answer to my 
question. I want to add a ResourceBundle at run-time.
That is, I will get the name of the bundle from somewhere and I will 
load it. Is there any way to do it?

Thanks in advance,

ANIL
 


[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.  
> 
> The message producer is a custom Java bootstrapper and adapter that
> configures the messaging destination endpoints upon server startup.  
> 
> The destination runtime config java bootstrap method for our
> "fleet_demo" destination looks like this:
> 
> public void initializeDestinations()
> { 
>   String destinationId = "fleet_demo";
>   String serviceId = "message-service";
>   MessageBroker broker = MessageBroker.getMessageBroker(null);
>   MessageService service = (MessageService)
> broker.getService(serviceId);
>   MessageDestination destination = (MessageDestination)
> service.createDestination(destinationId);
>   
>   destination.addChannel("my-streaming-amf"); 
> destination.addChannel("my-polling-amf");
>   
>   ServerSettings serverSettings = new ServerSettings();
>   serverSettings.setMaxCacheSize(1000);
>   serverSettings.setMessageTTL(0);
>   serverSettings.setDurable(false);
>   
>   destination.setServerSettings(serverSettings);
> 
>   if (service.isStarted())
>   {
>   //initialize and run the destination
>   destination.start();
>   }
> }
> 
> 
> The bootstrapper also spawns a separate thread that continuously
> receives location data from our server and packages it into an
> AsyncMessage and routes it to the appropriate destination using a
> method similar to this:
> 
> private void sendMessage(latitudeFromServer:double,
> longitudeFromServer:double)
> {
>   MessageBroker msgBroker = MessageBroker.getMessageBroker(null);
>   String clientID = UUIDUtils.createUUID(false);
>   AsyncMessage msg = new AsyncMessage();
> 
>   msg.setDestination("fleet_demo");
>   msg.setHeader("latitude", latitudeFromServer);
>   msg.setHeader("longitude", longitudeFromServer);
>  
>   msg.setClientId(clientID);
>   msg.setMessageId(UUIDUtils.createUUID(false));
>   msg.setTimestamp(System.currentTimeMillis());
>   msgBroker.routeMessageToService(msg, null);
> }
> 
> 
> Now I start up the server and the bootstrapper initializes the
> "fleet_demo" endpoint and the sendMessage thread routes location data
> perfectly to my flex client(averaging about 500-1600 messages per
> hour)  It works!  This keeps up for about 5-6 days.  After that I stop
> receiving any messages when I should be.  Its as though the
> MessageBrokerServlet just goes silent.  The only way to fix this is to
> restart jboss and when I try to shutdown the server I get this NPE
> message from the MessageBrokerServlet:
> 
> 11:22:36,295 INFO [Server] Runtime shutdown hook called, forceHalt: true
> 11:22:36,295 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
> 11:22:36,296 INFO [TomcatDeployer] undeploy, ctxPath=/jmx-console,
> warUrl=.../deploy/jmx-console.war/
> 11:22:36,330 INFO [TomcatDeployer] undeploy, ctxPath=/enterprise,
> warUrl=.../deploy/enterprise.war/
> 11:22:36,331 INFO [StandardWrapper] Waiting for 5 instance(s) to be
> deallocated
> 11:22:37,350 INFO [StandardWrapper] Waiting for 5 instance(s) to be
> deallocated
> 11:22:38,373 INFO [StandardWrapper] Waiting for 3 instance(s) to be
> deallocated
> 11:22:38,512 ERROR [[MessageBrokerServlet]] Servlet.service() for
> servlet MessageBrokerServlet threw exception
> java.lang.NullPointerException
> at
>
flex.messaging.endpoints.BaseStreamingHTTPEndpoint.handleFlexClientStreamingOpenRequest(BaseStreamingHTTPEndpoint.java:959)
> at
>
flex.messaging.endpoints.BaseStreamingHTTPEndpoint.serviceStreamingRequest(BaseStreamingHTTPEndpoint.java:1131)
> at
>
flex.messaging.endpoints.BaseStreamingHTTPEndpoint.service(BaseStreamingHTTPEndpoint.java:468)
> at
>
flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java:377)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
>
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
> at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
> at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
> at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
> at
>
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAsso

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 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- but if that's the way to go,
> that will work too.
>
> thanks,
> d.
>
>
> On Tue, Apr 22, 2008 at 1:31 PM, Alex Harui <[EMAIL PROTECTED]> wrote:
>
> >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 getDefinition() to get the class and make the new class, then
> > get the attributes() and assign them using [] syntax.
> >
> >
> >  --
> >
> > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> > Behalf Of *Derrick Anderson
> > *Sent:* Tuesday, April 22, 2008 9:33 AM
> > *To:* flexcoders@yahoogroups.com
> > *Subject:* [flexcoders] easiest way to instantiate a class from xml data
> >
> >
> >
> > say i have an xml node like
> >
> > 
> >
> > 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 xml
> > data to instantiated classes, any ideas?
> >
> > thanks,
> > d.
> >
> >  
> >
>
>


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 that MOUSE_MOVE fires in a
manner that the sprite does not smoothly follow the cursor, for example.
However, switching to ENTER_FRAME to manage the x and y position, the
movement is perfect and fluid. So this is not a issue about frame rate.
I know about startDrag() and stopDrag() to manage dragging a sprite ... that
is not what I am trying to do here. My latest need was to build a selection
marquee so I need to manage the position of other sprites based on the one
being dragged.

So what is clobbering the MOUSE_MOVE event?

- Randy

On Tue, Apr 22, 2008 at 10:05 AM, Luciano Manerich Junior <
[EMAIL PROTECTED]> wrote:

>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:* flexcoders@yahoogroups.com
> *Assunto:* [flexcoders] Event.MOUSE_MOVE poor performer
>
>  Why is Event.MOUSE_MOVE such a poor performer when trying to get a sprite
> follow the mouse?
>
>  
>


[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 ).rawChildren.getChildAt( 0 );
mouseCatcher.visible = false;   
}

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> 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 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 mouseCatcher created by the 
SystemManager 
> but I can't figure out what to do with that information.
> 
> This must be easier and I must just be overthinking it. Has anyone 
> run into this problem and what did you do?
>




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

2008-04-22 Thread Jason B
Thanks Tracy 

do you mean like this?




--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> "Component" creates its own scope.  Use "outerDocument" to reference the
> parent scope.
> 
>  
> 
> Tracy
> 
>  
> 



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 me fix that statement: would not be able to use any 
functions of JQuery **in Internet Explorer** (go figure). We saw 
something similar with a legacy SWFObject call interfering with us using 
Ext on the same page. This took a little time to discover, and even 
longer to figure out, but basically SWFObject breaks the DOM in IE. We 
found that this wasn't an issue when we used the js that Flash bundles 
in when you compile your Flash movie, so we wrote a wrapper and started 
using that instead. It's worked flawlessly ever since.

Steve "Cutter" Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_
http://blog.cutterscrossing.com



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] Overriding the mouseClickHandler in DataGrid

 

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 = mouseEventToItemRenderer(event);
if(r)
{
super.mouseClickHandler(event);
}
else
{
clearSelected(true);
dispatchEvent(new ListEvent(ListEvent.CHANGE));
event.stopImmediatePropagation();
}
}
}



 



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 accomplish conditional compilation in Flex 2.0? I
know I can do this in Flex 3.0 using -define command line switch or
 tag in the config file. However, I did not find anything
similar for Flex 2.0. Can anyone help?

 



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, 2008 7:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Inline Tree's node name editing creates visible
empty nodes in a Tree when "labelFunction" property is set

 

Hi Flexcoders,

Steps to reproduce:

1. Compile this file


http://www.adobe.com/2006/mxml
 "
applicationComplete="onCreationComplete()">








2. Expand any tree node

3. Click on tree node name and enter a new name. Hit Enter key to save
changes

Actual Results:
---
1. Empty tree nodes are added to the tree

Expected Results:
---
2. New tree node name entered is displayed in a tree

What do I do wrong?

ps
I had filled a bug at Adobe JIRA bug-database:
https://bugs.adobe.com/jira/browse/SDK-15339,
 
so far no response there.
-- 
--
Med venlig hilsen / Best regards
Andriy Panas
[EMAIL PROTECTED]  

 



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 measure for debugging purposes and a worthwhile pattern to use
in other scenarios.  If you're comfortable with the debugger, debug
through the makeRowsAndColumns and see what the renderer is reporting.
You've been one this list long enough that you are no longer a "newbie"
and should be learning these debugging techniques.

 

My last point about recycling was important.  Because there is
recycling, it is possible that the repeater is regenerating its children
more than once, which might somehow be related to this problem, and is
likely to cause performance issues for you later.  Avoiding the use of
repeater would probably be a good thing.  Is the number of children the
repeater generates the same for every row?  Does it only vary by a few?
If so, it might be worth skipping repeater and simply declaring the max
set of children and hiding a few.

 

I can tell from your tone that you've run out of patience, and I wish I
had the quick answer for you, but I don't because use of repeaters in a
renderer isn't that common.  I will continue to try to help if you
remain patient with me.

 

-Alex

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Amy
Sent: Tuesday, April 22, 2008 7:52 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Tiny components when using callLater()

 

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 measure() directly can confuse things as the measurement may
> depend on proper validation of the children. validateClient is
> recommended, but it is being called for you.

Do you have any examples that show the proper way to do this? I've 
looked at the help till my eyes are crossing, and I am just stabbing 
around in the dark trying to figure this out.

> I would override measure() so you can see what numbers it is 
reporting
> and decide whether that is right nor not. If not, then see if the
> repeater is causing a second pass. If it is reporting the right 
number,
> then updateDisplayLIst should be called later with the right number.

I know _you_ would override measure :-), but my feeling is that if 
the code you guys wrote isn't working, what hope does a newbie like 
me have of doing something that works better? Besides, it does seem 
to be working just fine, but the measurements aren't getting 
passed "up the chain" to the containing HorizontalList, and I have no 
idea how to convince that component to "see" that its children are 
larger than it has allowed room for and expand to allow them to be 
seen.

> Also keep in mind that renderers are recycled so the renderer that
> generates some number of children for the first row can end up 
rendering
> some other row later.

The first step is to get everything visible. Then I'll worry about 
what happens when new items are added to the collection (which is the 
only reason the items that are being rendered would change).

Thanks;

Amy

 



[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



[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 ); // 
center is the vertex of an angle
graphics.beginBitmapFill(this.bitmapData, matrix);
graphics.endFill();
}

// use bright colors for debugging.
private function generateBitmapData():void
{
this._textField.text = this.angle + "º";
this._textField.textColor = 0xFF;
this._textField.background = true;
this._textField.backgroundColor = 0xFF;
_bitmapData = new BitmapData(this._textField.textWidth, 
this._textField.textHeight, false, 0x00FF00);
_bitmapData.draw(this._textField);
}
private function get bitmapData():BitmapData
{
if (_bitmapData == null)
this.generateBitmapData();
return _bitmapData;
}

Note that the "real" renderShape() also draws a pie wedge to the canvas - and 
the wedge is visible. As an aside, though, 
I am also having trouble with drawing the pie wedge - the wedge works fine, but 
if I try to draw just the arc of the 
wedge, then I find that the arc deforms into a closed shape: the two end points 
are connected by a line. If I omit 
beginFill() and endFill() calls, relying only on lineStyle(), then connecting 
line goes away, but I start seeing strange flood 
fills. Reading about Graphics, I see that endFill() plays a role in getting 
draw commands pushed onto draw stack. I also 
see that the fill specified by beginFill() et al. persists until another 
beginFill() call. Is there some mantra for turning off 
fill?

Thanks!
-Eric

--- In flexcoders@yahoogroups.com, "Doug McCune" <[EMAIL PROTECTED]> wrote:
>
> You can draw a TextField to a BitmapData object (using the draw() method)
> and then use graphics.beginBitmapFill and pass in that BitmapData (make sure
> to specify the right matrix for where to start the fill). But no, as far as
> I know there is not way to do it directly, I often use BitmapData as an
> intermediary to do stuff like that.
> 
> Doug
> 
> On Fri, Apr 11, 2008 at 3:50 PM, Eric Cooper <[EMAIL PROTECTED]> wrote:
> 
> >   Is there any way to write/draw text directly to a Graphics object? For
> > that matter is there
> > anyway to draw text (single line of static text) into a Canvas? I suspect
> > that the answer is "no",
> > having searched and searched... but maybe there's some obscure utility
> > class that I've
> > overlooked.
> > Thanks in advance.
> > -Eric
> >
> >  
> >
>





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 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 Flexbuilder. Given that I won't be checking in the
>  > bin folder, and can also turn off the "copy non-embedded resources"
>  > option, is there any reason not to put html-template under version
>  > control?
>
>  Yes, there is a reason. When you export a release build from FB, it will
> copy the .svn folder from html-template to bin-release. This causes SVN to
>  think that the contents of release-bin are in the html-template folder.
>
>  I cloned an existing bug that claimed to have fixed this, at
> https://bugs.adobe.com/jira/browse/FB-12383 , but neither it nor the
> original bug seem
>  to be getting any developer attention.
>
>  Jeff
>
>  


[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
}
In order to let processSomething access anything from the process 
that creates Timer in a first place I have to create a bunch or 
vars. "visible" in processSomething function. While technically it 
should work but still I would prefer dealing with properties and 
parameters and not with vars. I was thinking to add some props. to 
Timer and doing event.target.newPropName to acceess them.


--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> 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 object at run time
> 
>  
> 
> 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 time
> 
>  
> 
> Can a property be added to a Flex object (Timer) at the run time?
> 
> Thanks
>




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- but if that's the way to go,
that will work too.

thanks,
d.

On Tue, Apr 22, 2008 at 1:31 PM, Alex Harui <[EMAIL PROTECTED]> wrote:

>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 getDefinition() to get the class and make the new class, then
> get the attributes() and assign them using [] syntax.
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Derrick Anderson
> *Sent:* Tuesday, April 22, 2008 9:33 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] easiest way to instantiate a class from xml data
>
>
>
> say i have an xml node like
>
> 
>
> 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 xml data
> to instantiated classes, any ideas?
>
> thanks,
> d.
>
>  
>


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 other develops to have the FlashVars available
> when running within Flexbuilder. Given that I won't be checking in the
> bin folder, and can also turn off the "copy non-embedded resources"
> option, is there any reason not to put html-template under version
> control?

Yes, there is a reason.  When you export a release build from FB, it will copy 
the .svn folder from html-template to bin-release.  This causes SVN to 
think that the contents of release-bin are in the html-template folder.  

I cloned an existing bug that claimed to have fixed this, at 
https://bugs.adobe.com/jira/browse/FB-12383 , but neither it nor the original 
bug seem 
to be getting any developer attention.

Jeff



[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
component.styleChanged('icon') that seems to help a little...when I
move my mouse over the link the icon will change to the correct one.
I'm still missing a step I think. What else do I need to do in order
to get it to completely redraw the LinkButton to display the new icon?

Is there some way I can replicate the mouseover validation that occurs
(since there is obviously something in there that's doing what I need)?



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] horizontal tree control

 

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  

 

 



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 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 mouseCatcher created by the SystemManager 
but I can't figure out what to do with that information.

This must be easier and I must just be overthinking it. Has anyone 
run into this problem and what did you do?

 



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 getDefinition() to get the class and make the new class,
then get the attributes() and assign them using [] syntax.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Derrick Anderson
Sent: Tuesday, April 22, 2008 9:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] easiest way to instantiate a class from xml data

 

say i have an xml node like



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 xml
data to instantiated classes, any ideas?

thanks,
d.

 



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 object at run time

 

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 time

 

Can a property be added to a Flex object (Timer) at the run time?

Thanks

 



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 polite about warning before
overwriting.

On Tue, Apr 22, 2008 at 9:59 AM, Blake Barrett <[EMAIL PROTECTED]> wrote:

>
> 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 [mailto:[EMAIL PROTECTED] On
> Behalf Of Tracy Spratt
> Sent: Tuesday, April 22, 2008 10:05 AM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] html-template under source control
>
>
>
>
>
>
>
>
> 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
> Behalf Of Richard Rodseth
> Sent: Tuesday, April 22, 2008 11:39 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] html-template under source control
>
>
>
>
>
>
>
>
> 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 Flexbuilder. Given that I won't be checking in the
> bin folder, and can also turn off the "copy non-embedded resources"
> option, is there any reason not to put html-template under version
> control?
>
> Thanks.
>
>
>
>  


[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  tag up like this:

http://www.adobe.com/2006/mxml";
layout="absolute"
xmlns:m="views.*">

//place this where you want your map.mxml to be //


and there you go,  You can set the properties width, height, x=, y= etc.

Hope this helps,

Bobby



--- In flexcoders@yahoogroups.com, Gustavo Duenas <[EMAIL PROTECTED]> wrote:
>
> 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 Apr 22, 2008, at 1:02 PM, Tracy Spratt wrote:
> 
> >
> > 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 newbie question
> >
> >
> >
> > 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.
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > 
> 
> 
> 
> Gustavo A. Duenas
> Creative Director
> LEFT AND RIGHT SOLUTIONS
> 904.  265 0330 - 904. 386 7958
> www.leftandrightsolutions.com
> Jacksonville - Florida
>




[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 :



 
 
 
 
 
 
 
 



Here is the seudo-code i have started with:



  // jewelry vbox

 

 

  //handbags vbox

 
 

 

 

//the cart vbox

 


 
 
 
 

In the above handbags vbox I am wanting to starting the products at
currentIndex='3'
in other words, I am trying to populate the vboxs with there respective
category. products but can't get passed the indexing.  Currently I get
all of the products in both vboxes.  I only want the first 3 in the
first vbox then the 3rd-10th in the second etc.

Is there an easy way to do this or will I have to go another route?

Thanks so much,

Bobby



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 could also look at using something like FlowBox from the FlexLib project
and add support for maximizing a single child to that.

On Tue, Apr 22, 2008 at 11:36 AM, Richard Rodseth <[EMAIL PROTECTED]>
wrote:

>   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 maximize of one child (but no
> minimize/close/cascade), but I'm not sure I have the time to tackle
> that project.
>
> Alternatively, is there a good way to defer the re-tile until the
> resize is complete?
>
> Thanks.
>
> 
> http://www.adobe.com/2006/mxml";
> xmlns:flexmdi="flexlib.mdi.containers.*"
> layout="vertical" creationComplete="init()"
> horizontalScrollPolicy="off" verticalScrollPolicy="off">
>
> 
> 
> 
>
>  horizontalScrollPolicy="off" verticalScrollPolicy="off">
> 
> 
> 
> 
> 
> 
>
> 
>  
>


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 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
> Para: flexcoders@yahoogroups.com
> Assunto: [flexcoders] Restricting mouseX, mouseY while dragging?
> 
> 
> 
> 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?
>




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 Apr 22, 2008, at 1:02 PM, Tracy Spratt wrote:
> 
>>
>> 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 newbie question
>>
>>  
>>
>> 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.
>>
>>
>>  
>>
>>  
>>
>>
>>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Gustavo A. Duenas
> Creative Director
> LEFT AND RIGHT SOLUTIONS
> 904.  265 0330 - 904. 386 7958
> www.leftandrightsolutions.com
> Jacksonville - Florida
> 
> 
> 
> 


  1   2   >