Re: [flexcoders] Centering a Scaled Image ( Bug ? )

2009-11-30 Thread ganaraj p r
Thank you :)

that helped a great deal.

On Tue, Dec 1, 2009 at 12:30 PM, Chris  wrote:

>
>
> Well that is one day to do it, but this should work better:
>
>
> 
> http://www.adobe.com/2006/mxml";
> layout="absolute">
>  source="@Embed(source='images.jpg')"
> scaleContent="true" width="100%" height="100%" horizontalAlign="middle"
> verticalAlign="middle" />
> 
>
> So the issue with the code is more an understanding of scaling:
>
>
> My expectation from this code is that the image should fit the screen,
>> maintain the aspect ratio of the image and finally be both centered
>> horizontally and vertically!
>>
>
> Techinically the Image above 'fits' the screen, that is its width and
> height is set to 100% of the application. Since it fills the application
> completely, setting verticalCenter and horizontalCenter have no effect. You
> would have to set a width and height of the Image's *content* to center, not
> the image itself. An important but subtle distinction. The Image control
> contains an image, but will have empty space inside it also if
> maintainAspectRatio is true. The alignment of the contents within the Image
> is controlled by the horizontalAlign and verticalAlign styles.
>
> Peace
> C
>
>
>
> On Mon, Nov 30, 2009 at 10:03 PM, ganaraj p r  wrote:
>
>>
>>
>> Hi,
>>
>> Thanks. Yes. But that is a workaround right?
>>
>> I wanted to know if this was a bug with flex! Or if there was an mxml way
>> of doing it.
>>
>>
>> On Mon, Nov 30, 2009 at 5:42 PM, Manoj Kumar wrote:
>>
>>>
>>>
>>> try this mt-
>>>
>>> private function onAppComplete():void
>>> {
>>> stage.addEventListener(Event.RESIZE,onResize);
>>> _spr.x = (stage.stageWidth - _spr.width)/2;
>>> _spr.y = (stage.stageHeight - _spr.height)/2;
>>> _ui.width = stage.stageWidth;
>>> _ui.height = stage.stageHeight;
>>> }
>>> private function onResize(evt:Event):void
>>> {
>>> _spr.x = (stage.stageWidth - _spr.width)/2;
>>> _spr.y = (stage.stageHeight - _spr.height)/2;
>>> _ui.width = stage.stageWidth;
>>> _ui.height = stage.stageHeight;
>>> }
>>>
>>>
>>>
>>> --- On *Mon, 11/30/09, ganaraj p r * wrote:
>>>
>>>
>>> From: ganaraj p r 
>>> Subject: [flexcoders] Centering a Scaled Image ( Bug ? ) [1 Attachment]
>>> To: flex_in...@googlegroups.com, flexcoders@yahoogroups.com
>>> Date: Monday, November 30, 2009, 4:08 PM
>>>
>>>
>>>
>>>
>>> I was wondering if this was a bug with flex or if I was doing something
>>> totally wrong.
>>>
>>> The amount of code in this is extremely low, so , I was guessing that
>>> there was nothing wrong from my part.
>>>
>>> 
>>> http://www.adobe. com/2006/ 
>>> mxml"
>>> layout="absolute">
>>>  >> horizontalCenter="0" verticalCenter="0"
>>>  source="@Embed(source='images.jpg')"
>>> scaleContent="true" width="100%" height="100%"/>
>>> 
>>>
>>>
>>> This is all the code there is in this application ( I am attaching the
>>> app, for your reference ) .
>>> My expectation from this code is that the image should fit the screen,
>>> maintain the aspect ratio of the image and finally be both centered
>>> horizontally and vertically!
>>>
>>>
>>> Can someone help me out in this ?
>>>
>>> --
>>> Regards,
>>> Ganaraj P R
>>>
>>>
>>>
>>
>>
>> --
>> Regards,
>> Ganaraj P R
>>
>
>  
>



-- 
Regards,
Ganaraj P R


Re: [flexcoders] Centering a Scaled Image ( Bug ? )

2009-11-30 Thread Chris
Well that is one day to do it, but this should work better:


http://www.adobe.com/2006/mxml"; layout="absolute">



So the issue with the code is more an understanding of scaling:

My expectation from this code is that the image should fit the screen,
> maintain the aspect ratio of the image and finally be both centered
> horizontally and vertically!
>

Techinically the Image above 'fits' the screen, that is its width and height
is set to 100% of the application. Since it fills the application
completely, setting verticalCenter and horizontalCenter have no effect. You
would have to set a width and height of the Image's *content* to center, not
the image itself. An important but subtle distinction. The Image control
contains an image, but will have empty space inside it also if
maintainAspectRatio is true. The alignment of the contents within the Image
is controlled by the horizontalAlign and verticalAlign styles.

Peace
C


On Mon, Nov 30, 2009 at 10:03 PM, ganaraj p r  wrote:

>
>
> Hi,
>
> Thanks. Yes. But that is a workaround right?
>
> I wanted to know if this was a bug with flex! Or if there was an mxml way
> of doing it.
>
>
> On Mon, Nov 30, 2009 at 5:42 PM, Manoj Kumar wrote:
>
>>
>>
>> try this mt-
>>
>> private function onAppComplete():void
>> {
>> stage.addEventListener(Event.RESIZE,onResize);
>> _spr.x = (stage.stageWidth - _spr.width)/2;
>> _spr.y = (stage.stageHeight - _spr.height)/2;
>> _ui.width = stage.stageWidth;
>> _ui.height = stage.stageHeight;
>> }
>> private function onResize(evt:Event):void
>> {
>> _spr.x = (stage.stageWidth - _spr.width)/2;
>> _spr.y = (stage.stageHeight - _spr.height)/2;
>> _ui.width = stage.stageWidth;
>> _ui.height = stage.stageHeight;
>> }
>>
>>
>>
>> --- On *Mon, 11/30/09, ganaraj p r * wrote:
>>
>>
>> From: ganaraj p r 
>> Subject: [flexcoders] Centering a Scaled Image ( Bug ? ) [1 Attachment]
>> To: flex_in...@googlegroups.com, flexcoders@yahoogroups.com
>> Date: Monday, November 30, 2009, 4:08 PM
>>
>>
>>
>>
>> I was wondering if this was a bug with flex or if I was doing something
>> totally wrong.
>>
>> The amount of code in this is extremely low, so , I was guessing that
>> there was nothing wrong from my part.
>>
>> 
>> http://www.adobe. com/2006/ 
>> mxml"
>> layout="absolute">
>>  > horizontalCenter="0" verticalCenter="0"
>>  source="@Embed(source='images.jpg')"
>> scaleContent="true" width="100%" height="100%"/>
>> 
>>
>>
>> This is all the code there is in this application ( I am attaching the
>> app, for your reference ) .
>> My expectation from this code is that the image should fit the screen,
>> maintain the aspect ratio of the image and finally be both centered
>> horizontally and vertically!
>>
>>
>> Can someone help me out in this ?
>>
>> --
>> Regards,
>> Ganaraj P R
>>
>>
>>
>
>
> --
> Regards,
> Ganaraj P R
>  
>


Re: [flexcoders] Top 10 things new Flex developers should know

2009-11-30 Thread Shabir Gilkar
Hi Michael,

i want to post the link of your blog in my own blog i.e
shabirgilkar.wordpress.com till now i have posted there articles about Islam
only becoz i am Muslim. Now by the grace of Allah i am also learning Flash
and Flex and i find your article very interesting. so i am asking for
permissions to post the article there.

On Mon, Nov 30, 2009 at 12:33 AM, Michael  wrote:

>
>
> I hope this article on my blog is useful for those who are newcomers to
> Flex.
>
> http://digitaldumptruck.jotabout.com/?p=39
>
> Michael Portuesi
>
>  
>



-- 
With Regards

Shabir Ahmad Gilkar

Srinagar Kashmir J&K

Voice: +91 9419942501
email: shabirgil...@gmail.com
Skype: shabirgilkar


Re: [flexcoders] Centering a Scaled Image ( Bug ? )

2009-11-30 Thread ganaraj p r
Hi,

Thanks. Yes. But that is a workaround right?

I wanted to know if this was a bug with flex! Or if there was an mxml way of
doing it.

On Mon, Nov 30, 2009 at 5:42 PM, Manoj Kumar wrote:

>
>
> try this mt-
>
> private function onAppComplete():void
> {
> stage.addEventListener(Event.RESIZE,onResize);
> _spr.x = (stage.stageWidth - _spr.width)/2;
> _spr.y = (stage.stageHeight - _spr.height)/2;
> _ui.width = stage.stageWidth;
> _ui.height = stage.stageHeight;
> }
> private function onResize(evt:Event):void
> {
> _spr.x = (stage.stageWidth - _spr.width)/2;
> _spr.y = (stage.stageHeight - _spr.height)/2;
> _ui.width = stage.stageWidth;
> _ui.height = stage.stageHeight;
> }
>
>
>
> --- On *Mon, 11/30/09, ganaraj p r * wrote:
>
>
> From: ganaraj p r 
> Subject: [flexcoders] Centering a Scaled Image ( Bug ? ) [1 Attachment]
> To: flex_in...@googlegroups.com, flexcoders@yahoogroups.com
> Date: Monday, November 30, 2009, 4:08 PM
>
>
>
>
> I was wondering if this was a bug with flex or if I was doing something
> totally wrong.
>
> The amount of code in this is extremely low, so , I was guessing that there
> was nothing wrong from my part.
>
> 
> http://www.adobe. com/2006/ 
> mxml"
> layout="absolute">
>   horizontalCenter="0" verticalCenter="0"
>  source="@Embed(source='images.jpg')"
> scaleContent="true" width="100%" height="100%"/>
> 
>
>
> This is all the code there is in this application ( I am attaching the app,
> for your reference ) .
> My expectation from this code is that the image should fit the screen,
> maintain the aspect ratio of the image and finally be both centered
> horizontally and vertically!
>
>
> Can someone help me out in this ?
>
> --
> Regards,
> Ganaraj P R
>
>
>  
>



-- 
Regards,
Ganaraj P R


RE: [flexcoders] calling removeListener on a popup

2009-11-30 Thread Alex Harui
The listener won't cause a memory leak.  The window now has a reference to the 
handler function not the other way around.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of steveb805
Sent: Monday, November 30, 2009 2:50 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] calling removeListener on a popup



I have a mxml component based on TitleWindow that's used for a Popup. Nothing 
new there - big yawn goin your way.

I also have an addEventListener called on the object (so I can dispatch a 
custom event):

---

win = EditTaskBox(PopUpManager.createPopUp(this, EditTaskBox, true));
win.taskText.setFocus();
.
.
win.addEventListener("taskInputText", newTaskDialogBoxHandler);
--

So obviously, you want to call removeListener when you're done with the dialog, 
so I call removeEventListener in newTaskDialogBoxHandler(), in main.mxml, after 
I use the information from the custom event.

win.removeEventListener("taskInputText", newTaskDialogBoxHandler);

However, in the case of *cancelling* the dialog box, do I need to dispatch an 
event in this case as well, from within the component.?

In my customer TitleWindow component, called EditTaskBox.mxml, for the 
closeButton handler, I call PopUpManager.removePopUp(this);

It's not like you can do: "removeEventListener(..) here, since you're in a 
static component,right?

Looks like I need to just create a meta declaration for a custom event, but 
obviously don't need a custom Event class or anything.

Just verifying this.
Thanks
Steve



RE: [flexcoders] Re: RTE - DataGridHeader/mouseOutHandler

2009-11-30 Thread Alex Harui
Probably some timing bug.  Maybe use callLater to delay the changing of the 
data or send a fake mouseOut event.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of bhaq1972
Sent: Monday, November 30, 2009 2:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: RTE - DataGridHeader/mouseOutHandler



Yes. The initial dataProvider was showing all orders from the ORDER table (eg 
select * from ORDERS).

When a user clicks the column header I want to only show orders a specific type 
of order (eg select * from ORDERS where OrderType = 'short')

btw the column has an Image itemRenderer eg



--- In flexcoders@yahoogroups.com, Alex 
Harui  wrote:
>
> Is the column set changing based on the new data?
>
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
>
> From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com] On 
> Behalf Of bhaq1972
> Sent: Monday, November 30, 2009 8:26 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] RTE - DataGridHeader/mouseOutHandler
>
>
>
> I'm getting this runtime error which I hope someone can help me with.
>
> Basically, I added a headerRelease event to my DataGrid. The plan is...when a 
> user clicks a dg column header  rather than sorting the rows, i plan to 
> re-populate the datagrid with rows from a different sql database call.
>
> eg
>  ..
> public function headerClicked(e:DataGridEvent):void
> {
> var col:myDGColumn = this.columns[e.columnIndex];
>
> if(col.filter)
> {
> // make a different database call to populate dg dataprovider
> }
> }
>
> Now this seems to be working except sometimes (quite often actually) I get 
> the following runtime error.
>
> TypeError: Error #1010: A term is undefined and has no properties.
> at 
> mx.controls.dataGridClasses::DataGridHeader/mouseOutHandler()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\dataGridClasses\DataGridHeader.as:1078]
>
> Using the debugger, the code is dying on the following if statement (of 
> mouseOutHandler())
>
> if (visibleColumns[i].sortable)
> {
> ...
> in my case visibleColumns.length = 10 and i=10 .hence the RTE.
>
> Can some one suggest a workaround please
>
> regards
> bod
>



Re: [flexcoders] Re: Is 3.5 nightly SDK more stable than 3.4.1?

2009-11-30 Thread Jamie S
I too will be looking forward to 3.5. I ran into so many issues with 3.4
that I finally just had to downgrade.

Jamie

On Mon, Nov 30, 2009 at 3:52 PM, tntomek  wrote:

>
>
> Awesome Matt, always excited when more stuff is fixed.
>
>
> --- In flexcoders@yahoogroups.com , Matt
> Chotin  wrote:
> >
> > milestone is coming pretty soon (a week or two).
> >
> > On Nov 29, 2009, at 1:35 PM, tntomek wrote:
> >
> > > I had an issue after upgrading to 3.4/3.4.1 where my datagrid would
> throw a selectedItem not in list exception (forgot exact details).
> > >
> > > This seems to have been fixed in 3.5 as it no longer happens. Is there
> even a rough guess when 3.5 nightly might be promoted to stable or even
> milestone build?
> > >
> > >
> >
>
>  
>


[flexcoders] Re: Simple Layout Question

2009-11-30 Thread jamesfin
Here's a version that uses the constraintColumn...



http://www.adobe.com/2006/mxml";>



























 

   





--- In flexcoders@yahoogroups.com, "jamesfin"  wrote:
>
> 
> 
> Copy / paste this and it will help you along...
> 
> 
> 
> 
> http://www.adobe.com/2006/mxml";>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>   
>   
>   
> 
> 
> 
> 
>   
>   
>   
>   
> 
> 
> 
>   minimum="0"
> maximum="{testCanvas.width - button2.width}"
> value="200"
> liveDragging="true"
> snapInterval="1"
> tickInterval="20"
> dataTipPrecision="0" />
> 
>
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, Rich Christiansen  wrote:
> >
> > Hey all,
> > 
> > I just recently started working with Flex (3), and I've got a simple 
> > layout question.
> > 
> > I've got a bunch of components inside of a vbox, and I've noticed that 
> > the vbox positions them so they are all at the same x coordinate.  How 
> > can I change the x-position (e.g. the indentation) of the components?
> > 
> > Here's some test code I've been fiddling with:
> > 
> > 
> > http://www.adobe.com/2006/mxml";>
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > 
> > 
> > How can I make it so that the blue and red buttons are indented, say, 50 
> > pixels?  I've already tried fiddling with the 'left' and 'paddingLeft' 
> > attributes with little success... :/
> > 
> > Any thoughts?  This has got to be possible with VBox, but I can't seem 
> > to figure it out...
> > 
> > Thanks,
> > -Rich
> >
>




[flexcoders] Re: Is 3.5 nightly SDK more stable than 3.4.1?

2009-11-30 Thread tntomek
Awesome Matt, always excited when more stuff is fixed.


--- In flexcoders@yahoogroups.com, Matt Chotin  wrote:
>
> milestone is coming pretty soon (a week or two).
> 
> On Nov 29, 2009, at 1:35 PM, tntomek wrote:
> 
> > I had an issue after upgrading to 3.4/3.4.1 where my datagrid would throw a 
> > selectedItem not in list exception (forgot exact details).
> > 
> > This seems to have been fixed in 3.5 as it no longer happens. Is there even 
> > a rough guess when 3.5 nightly might be promoted to stable or even 
> > milestone build?
> > 
> >
>




[flexcoders] Re: Simple Layout Question

2009-11-30 Thread jamesfin


Copy / paste this and it will help you along...




http://www.adobe.com/2006/mxml";>


























 

   




--- In flexcoders@yahoogroups.com, Rich Christiansen  wrote:
>
> Hey all,
> 
> I just recently started working with Flex (3), and I've got a simple 
> layout question.
> 
> I've got a bunch of components inside of a vbox, and I've noticed that 
> the vbox positions them so they are all at the same x coordinate.  How 
> can I change the x-position (e.g. the indentation) of the components?
> 
> Here's some test code I've been fiddling with:
> 
> 
> http://www.adobe.com/2006/mxml";>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
> 
> How can I make it so that the blue and red buttons are indented, say, 50 
> pixels?  I've already tried fiddling with the 'left' and 'paddingLeft' 
> attributes with little success... :/
> 
> Any thoughts?  This has got to be possible with VBox, but I can't seem 
> to figure it out...
> 
> Thanks,
> -Rich
>




RE: [flexcoders] Re: Is there any way to update Resource bundle dynamically?

2009-11-30 Thread Gordon Smith
The resources in a ResourceBundle CAN be modified at runtime. A 
ResourceBundle's 'content' property is just an Object where you can store 
name/value pairs for resources such as

myBundle.content["foo"] = "bar";

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of tungchau81
Sent: Monday, November 30, 2009 2:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Is there any way to update Resource bundle 
dynamically?



About my question#2, since ResourceManger API does not provide a way to update 
resource bundle, is there anyway I can modify .properties files on the fly and 
then recompile the Resource Module .swf for the log-in user after he/she 
modifies the UI configuration?

Any advice is appreciated,
Tung Chau

--- In flexcoders@yahoogroups.com, 
"tungchau81"  wrote:
>
> Hi,
> In a new project, I am required to create customizable UI using Flex. The 
> application should allow each log-in user or customer to configure their own 
> labels, messages and icons. I have two questions:
>
> 1) I plan to load different ResourceModule for each log-in user. For example, 
> user1 will have user1Resource.swf loaded everytime he logs in into the 
> applicatio. user2 will have user2Resource.swf. Is this a good approach? Is 
> there any better way?
>
> 2) At run time, when a login user configures (through a UI) his/her own label 
> for a FormItem and hits save, I need to update the UI immediately with the 
> new label he/she entered. What would be a good solution for this? I looked at 
> ResourceManger API, but could not find any way to update Resource bundle 
> dynamically. Is there any way to update Resource bundle dynamically or is 
> there a different way to do the task?
>
> Thanks in advance,
> Tung Chau
>



[flexcoders] Simple Layout Question

2009-11-30 Thread Rich Christiansen

Hey all,

I just recently started working with Flex (3), and I've got a simple 
layout question.


I've got a bunch of components inside of a vbox, and I've noticed that 
the vbox positions them so they are all at the same x coordinate.  How 
can I change the x-position (e.g. the indentation) of the components?


Here's some test code I've been fiddling with:


http://www.adobe.com/2006/mxml";>

   
   
   
   
   
   
   

   
   
   

   
   
  



How can I make it so that the blue and red buttons are indented, say, 50 
pixels?  I've already tried fiddling with the 'left' and 'paddingLeft' 
attributes with little success... :/


Any thoughts?  This has got to be possible with VBox, but I can't seem 
to figure it out...


Thanks,
-Rich



RE: [flexcoders] Special characters (eg. Cyrillic) & TextArea

2009-11-30 Thread Gordon Smith
BTW, are you are talking about the old MX TextArea or the or new Spark TextArea?

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Andriy Panas
Sent: Monday, November 30, 2009 10:49 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Special characters (eg. Cyrillic) & TextArea



Hi polestar11,

Simple code sample will definitely help to understand your issue.

--
Best regards,
Andriy Panas


2009/11/30 polestar11 mailto:polesta...@yahoo.com>>


Hi there

I have a problem where I am not able to paste special characters (eg. cyrillic 
& arabic) into a flex TextArea component. This occasionally happens in a debug 
version of my app and always happens in a release build.

I created a test application in the same project to try isolate the issue. I 
intermittently am not able to paste special characters into a textarea. I also 
created a different project entirely and never experience the issue.

My guess is that the compiler is misbehaving & getting stuck.

Any help MUCH appreciated

Cheers
Tracy




RE: [flexcoders] Re: When does 0.2 and 0.1 not equal 0.3?

2009-11-30 Thread Gordon Smith
Unfortuantely, floating-point arithmetic in most CPUs and computer languages 
today is based on binary fractions (1/2, 1/4, 1/8, 1/16, ...) not decimal 
fractions (1/10, 1/100, 1/1000, 1/1000,...). There is no ActionScript Number 
(or C++ double) that is EXACTLY equal to 0.1, 0.2, or 0.3 because doing so 
would require an infinite number of binary fractional bits. (Some fractions 
such as 0.5 can be exactly represented because they only need a few binary 
fractional bits.) So you're pretty much always dealing with floating-point 
approximations to the real numbers that you think you're manipulating.

- Gordon

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Chris
Sent: Wednesday, November 25, 2009 5:17 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: When does 0.2 and 0.1 not equal 0.3?



This is a pretty well known limitation of floating point numbers.

A workaround:
http://joshblog.net/2007/01/30/flash-floating-point-number-errors/


Another option around this is to use the toPrecision() function of Number/Int 
to convert a number to a String and then compare the Strings.

var num1:Number = 0.1;
var num2:Number = 0.2;
var num3:Number = num1 + num2;
trace("num3:"+num3);
trace("is 0.3?"+(num3 == 0.3));
trace("num3.toPrecision()"+num3.toPrecision(3));
trace("is precise 0.3?"+(num3.toPrecision(3) == (0.3).toPrecision(3)));


More info:

http://www.google.com/search?q=floating+point+math+errors
On Wed, Nov 25, 2009 at 5:11 PM, tntomek 
mailto:tnto...@yahoo.com>> wrote:


So to reliably add 0.1 and 0.2 I need to convert them to ints? This must be a 
joke, its not adding anything complicated.

So is there a Flex wrapper for this? math.add(0.1, 0.2) ?

How can we be sure that 2 numbers we just added equal the true sum?


--- In flexcoders@yahoogroups.com, 
"kidl33t"  wrote:
>
> I have encountered an odd bug. In the process of creating a little numeric 
> stepper component (a text box with an up/down stepper beside it) I have found 
> an odd rounding error. Starting from 0.0 and adding 0.1 increments, I get the 
> follow console output.
>
> currentNumber: 0 increment: 0.1
> result: 0.1
>
> currentNumber: 0.1 increment: 0.1
> result: 0.2
>
> currentNumber: 0.2 increment: 0.1
> result: 0.30004
>
> As you can see, .2 + .1 is yielding 0.30004. This behaviour 
> happens at at many numbers actually.
>
> You can verify this yourself by simply doing a: trace( (0.1 + 0.2) );
>
> The other flex developer at our company can also see this error, so I don't 
> think it's isolated to my box or particular build. Does anyone know anything 
> about this?
>




[flexcoders] calling removeListener on a popup

2009-11-30 Thread steveb805
I have a mxml component based on TitleWindow that's used for a Popup. Nothing 
new there - big yawn goin your way.

I also have an addEventListener called on the object (so I can dispatch a 
custom event):

---

win = EditTaskBox(PopUpManager.createPopUp(this, EditTaskBox, true));
win.taskText.setFocus();
.
.
win.addEventListener("taskInputText", newTaskDialogBoxHandler);
--

So obviously, you want to call removeListener when you're done with the dialog, 
so I call removeEventListener in newTaskDialogBoxHandler(), in main.mxml, after 
I use the information from the custom event.

win.removeEventListener("taskInputText", newTaskDialogBoxHandler);


However, in the case of *cancelling* the dialog box, do I need to dispatch an 
event in this case as well, from within the component.?  

In my customer TitleWindow component, called EditTaskBox.mxml, for the 
closeButton handler, I call PopUpManager.removePopUp(this);

It's not like you can do: "removeEventListener(..) here, since you're in a 
static component,right?  

Looks like I need to just create a meta declaration for a custom event, but 
obviously don't need a custom Event class or anything.

Just verifying this.
Thanks
Steve





RE: [flexcoders] Re: Change the caret in TextArea

2009-11-30 Thread Gordon Smith
If you are talking about the old MX TextInput and TextArea, they are based on 
the TextField class in the Flash Player. It is blinking the insertion point and 
you can't change what it looks like.

If you are talking about the new Spark TextInput and TextArea in Flex 4, they 
are based on the Text Layout Framework, which is an ActionScript library 
providing high-level services like layout and editing on top of the Flash Text 
Engine in Player 10. The code for TLF is opensource. You could figure out where 
it draws the caret and change that code. If you're lucky, it will be something 
you can override. If you're unlikely, you might need to monkey-patch TLF.

- Gordon

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of valdhor
Sent: Tuesday, November 24, 2009 5:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Change the caret in TextArea



I do not believe you can inside Flex. If someone else knows differently, please 
chime in.

You should be able to create a custom component with a timer and keyboard event 
listeners to simulate what you want.

This blog post might be a good starting point:

http://joshblog.net/2008/01/17/source-code-for-custom-textfields-with-cool-effects/

--- In flexcoders@yahoogroups.com, 
rituraj_tiwari  wrote:
>
>
> Valdhor,
> Thanks for taking the time to respond.
>
> I am not looking to change the mouse pointer cursor. I need to change the
> blinking caret that appears in text input and text area when they are
> editable.
>
> -Raj
>
>
> valdhor-3 wrote:
> >
> > These links should help...
> >
> > http://www.switchonthecode.com/tutorials/flex-custom-cursor-tutorial
> > http://blog.flexexamples.com/2007/09/10/changing-the-cursor-in-a-flex-application-using-the-cursormanager-class/
> > http://www.adobe.com/livedocs/flex/3/langref/mx/managers/CursorManager.html#setCursor%28%29
> >
> > --- In flexcoders@yahoogroups.com, 
> > Shabir Gilkar  wrote:
> >>
> >> Nice question friend, even i do wanna to know the answer
> >>
> >> On 11/23/09, rituraj_tiwari  wrote:
> >> >
> >> > Folks,
> >> > I need to implement and editable text area where the cursor (caret) is
> >> > different from the default vertical flashing caret. Is the caret a
> >> > "skinnable" property of TextArea?
> >> >
> >> > In case the flashing vertical line is deeply entrenched, I would like
> >> to be
> >> > able to overlay my own floating caret on top of it to obscure it. Is
> >> there
> >> > an easy way to get the X-Y coordinates of the caret so that I can
> >> move() my
> >> > custom cursor graphic to that location?
> >> >
> >> > Thanks for your help.
> >> > -Raj
> >> > --
> >> > View this message in context:
> >> >
> >> http://old.nabble.com/Change-the-caret-in-TextArea-tp26474743p26474743.html
> >> > Sent from the FlexCoders mailing list archive at Nabble.com.
> >> >
> >> >
> >>
> >>
> >> --
> >> With Regards
> >>
> >> Shabir Ahmad Gilkar
> >>
> >> Srinagar Kashmir J&K
> >>
> >> Voice: +91 9419942501
> >> email: shabirgilkar@
> >> Skype: shabirgilkar
> >>
> >
> >
> >
> >
>
> --
> View this message in context: 
> http://old.nabble.com/Change-the-caret-in-TextArea-tp26474743p26484608.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>



[flexcoders] Re: Is there any way to update Resource bundle dynamically?

2009-11-30 Thread tungchau81

About my question#2, since ResourceManger API does not provide a way to update 
resource bundle, is there anyway I can modify .properties files on the fly and 
then recompile the Resource Module .swf for the log-in user after he/she 
modifies the UI configuration?

Any advice is appreciated,
Tung Chau

--- In flexcoders@yahoogroups.com, "tungchau81"  wrote:
>
> Hi,
> In a new project, I am required to create customizable UI using Flex. The 
> application should allow each log-in user or customer to configure their own 
> labels, messages and icons. I have two questions:
> 
> 1) I plan to load different ResourceModule for each log-in user. For example, 
> user1 will have user1Resource.swf loaded everytime he logs in into the 
> applicatio. user2 will have user2Resource.swf. Is this a good approach? Is 
> there any better way?
> 
> 2) At run time, when a login user configures (through a UI) his/her own label 
> for a FormItem and hits save, I need to update the UI immediately with the 
> new label he/she entered. What would be a good solution for this? I looked at 
> ResourceManger API, but could not find any way to update Resource bundle 
> dynamically. Is there any way to update Resource bundle dynamically or is 
> there a different way to do the task?
> 
> Thanks in advance,
> Tung Chau
>




[flexcoders] Re: RTE - DataGridHeader/mouseOutHandler

2009-11-30 Thread bhaq1972
Yes. The initial dataProvider was showing all orders from the ORDER table (eg 
select * from ORDERS).

When a user clicks the column header I want to only show orders a specific type 
of order (eg select * from ORDERS where OrderType = 'short')

btw the column has an Image itemRenderer eg

 

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> Is the column set changing based on the new data?
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of bhaq1972
> Sent: Monday, November 30, 2009 8:26 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] RTE - DataGridHeader/mouseOutHandler
> 
> 
> 
> I'm getting this runtime error which I hope someone can help me with.
> 
> Basically, I added a headerRelease event to my DataGrid. The plan is...when a 
> user clicks a dg column header  rather than sorting the rows, i plan to 
> re-populate the datagrid with rows from a different sql database call.
> 
> eg
>  ..
> public function headerClicked(e:DataGridEvent):void
> {
> var col:myDGColumn = this.columns[e.columnIndex];
> 
> if(col.filter)
> {
> // make a different database call to populate dg dataprovider
> }
> }
> 
> Now this seems to be working except sometimes (quite often actually) I get 
> the following runtime error.
> 
> TypeError: Error #1010: A term is undefined and has no properties.
> at 
> mx.controls.dataGridClasses::DataGridHeader/mouseOutHandler()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\controls\dataGridClasses\DataGridHeader.as:1078]
> 
> Using the debugger, the code is dying on the following if statement (of 
> mouseOutHandler())
> 
> if (visibleColumns[i].sortable)
> {
> ...
> in my case visibleColumns.length = 10 and i=10 .hence the RTE.
> 
> Can some one suggest a workaround please
> 
> regards
> bod
>




RE: [flexcoders] Re: the most popular way to be connected with sql server REFdn0085136210

2009-11-30 Thread dennis
Guys have a look at the AWS. the Amazon Web Services where they look just
great. at least from introduction pages.

They serve their extreme servers and their capabilities, not for free, but
for few money.

Read this. http://aws.amazon.com/what-is-aws/ and specially this.
http://aws.amazon.com/rds/ 

 

Share your thoughts. It is the begging of the cloud computing.

Does anybody has experience on AWS?

 

dennis

...we are what we are doing...  P Think! before you print. 

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of valdhor
Sent: Wednesday, November 25, 2009 3:18 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: the most popular way to be connected with sql
server REFdn0085136210

 

  

There is a community edition of WebORB for PHP that is free. Also, Adobe has
ties with Zend and you can use Zend_AMF (Part of the Zend Framework) for
free.

I think free is cheap enough for everyone ;-}

Also, if you want to connect directly to a MySQL database you can look into
a component like ASSQL (http://code.google.com/p/assql/)



 



RE: [flexcoders] Next version of Flex

2009-11-30 Thread Peter DeHaan
http://opensource.adobe.com/wiki/display/flexsdk/Gumbo

According to the official wiki page, "early 2010".

Peter


Re: [flexcoders] where to get "official" answer to question about AIR's SQLite implementation and LoadableExtensions mechanism support?

2009-11-30 Thread Jochem van Dieten
On Wed, Nov 25, 2009 at 6:25 PM, Tim Romano wrote:
> A simple function I need does not exist in the SQLite engine core but the 
> SQLite gurus are telling me to write my own function in C and load it at 
> runtime as a "loadable extension".

> Where would one get an official answer to the LoadableExtension 
> supported/not-supported question?

The simplest way to get an answer is to go to bugs.adobe.com and file
a bug that loadable extensions don't work.

Jochem


--
Jochem van Dieten
http://jochem.vandieten.net/


Re: [flexcoders] Special characters (eg. Cyrillic) & TextArea

2009-11-30 Thread Andriy Panas
Hi polestar11,

Simple code sample will definitely help to understand your issue.

--
Best regards,
Andriy Panas



2009/11/30 polestar11 

>
>
> Hi there
>
> I have a problem where I am not able to paste special characters (eg.
> cyrillic & arabic) into a flex TextArea component. This occasionally happens
> in a debug version of my app and always happens in a release build.
>
> I created a test application in the same project to try isolate the issue.
> I intermittently am not able to paste special characters into a textarea. I
> also created a different project entirely and never experience the issue.
>
> My guess is that the compiler is misbehaving & getting stuck.
>
> Any help MUCH appreciated
>
> Cheers
> Tracy
>
>  
>


RE: [flexcoders] RTE - DataGridHeader/mouseOutHandler

2009-11-30 Thread Alex Harui
Is the column set changing based on the new data?

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of bhaq1972
Sent: Monday, November 30, 2009 8:26 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RTE - DataGridHeader/mouseOutHandler



I'm getting this runtime error which I hope someone can help me with.

Basically, I added a headerRelease event to my DataGrid. The plan is...when a 
user clicks a dg column header  rather than sorting the rows, i plan to 
re-populate the datagrid with rows from a different sql database call.

eg


Re: [flexcoders] Re: How to know when a popup component is visible?

2009-11-30 Thread Richard Rodseth
Yes, I have tried using callLater(). I was hoping there was an event I could
tap into that got dispatched once the window is visible.

On Mon, Nov 30, 2009 at 9:21 AM, Chris  wrote:

>
>
> Everything is Flash is mostly single-threaded. You'll need to wait until
> after the window is visible to display start the encoding. Have you
> attempted using callLater() to start the encoding of the png a frame after
> the event is dispatched?
>
>
> On Mon, Nov 30, 2009 at 9:47 AM, Richard Rodseth wrote:
>
>>
>>
>> This message hasn't showed up yet. Awaiting moderation? Any ideas?
>>
>>
>> On Wed, Nov 25, 2009 at 10:40 AM, Richard Rodseth wrote:
>>
>>> I had a thread going here about how to show progress before a potentially
>>> long-running but synchronous operation (in my case encoding a DisplayObject
>>> as  a PNG or JPEG to add to an AlivePDF PDF.
>>>
>>> Since I can't seem to force a busy cursor (ironic), one of the
>>> suggestions was to pop up a window before starting the encoding. But I've
>>> tried listening to creationComplete, render, show, addedToStage etc. etc.,
>>> and in all cases the popup doesn't appear until the encoding is complete.
>>>
>>> I was unable to find any event dispatched by the PopupManager either.
>>>
>>> Help!
>>>
>>>
>>>
>>>
>>
>  
>


Re: [flexcoders] Re: How to know when a popup component is visible?

2009-11-30 Thread Chris
Everything is Flash is mostly single-threaded. You'll need to wait until
after the window is visible to display start the encoding. Have you
attempted using callLater() to start the encoding of the png a frame after
the event is dispatched?

On Mon, Nov 30, 2009 at 9:47 AM, Richard Rodseth  wrote:

>
>
> This message hasn't showed up yet. Awaiting moderation? Any ideas?
>
>
> On Wed, Nov 25, 2009 at 10:40 AM, Richard Rodseth wrote:
>
>> I had a thread going here about how to show progress before a potentially
>> long-running but synchronous operation (in my case encoding a DisplayObject
>> as  a PNG or JPEG to add to an AlivePDF PDF.
>>
>> Since I can't seem to force a busy cursor (ironic), one of the suggestions
>> was to pop up a window before starting the encoding. But I've tried
>> listening to creationComplete, render, show, addedToStage etc. etc., and in
>> all cases the popup doesn't appear until the encoding is complete.
>>
>> I was unable to find any event dispatched by the PopupManager either.
>>
>> Help!
>>
>>
>>
>>
>  
>


Re: [SPAM] Re: [SPAM] Re: [SPAM] Re: [SPAM] Re: [flexcoders] XML e4x error

2009-11-30 Thread Daniel Freiman
Ok.  To recap, I have a constructor that contains the line:

data.path[...@d[0];

Sometimes it works, sometimes it doesn't.  This happens predictably, but I
can't figure out what the difference between the cases are.  I tried the XML
below (which both look the same to me except for the "id" attribute.  The
first one works, the second one errors.  The only difference I can think of
is that the first is created using remote object serialization, while the
second one is currently hard coded in an actionscript class (for debug
purposes).  Maybe the namespace isn't being correctly set in the internals
of the xml.

Now that this has been narrowed down, has anyone seen this bug before?



http://www.w3.org/2000/svg"; xmlns:pdf="
http://ns.adobe.com/pdf/2006"; xmlns:xlink="http://www.w3.org/1999/xlink";
xmlns:improv="http://ns.colorquick.com/improv/mars";>
  
  


http://www.w3.org/2000/svg"; xmlns:pdf="
http://ns.adobe.com/pdf/2006"; xmlns:xlink="http://www.w3.org/1999/xlink";
xmlns:improv="http://ns.colorquick.com/improv/mars";>
  
  


On Fri, Nov 20, 2009 at 12:31 AM, Tracy Spratt  wrote:

>
>
>  If you have a case that works and one that doesn’t, start changing the
> one that works into the one that does not, one piece at a time, until it
> breaks.
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>   --
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Daniel Freiman
> *Sent:* Thursday, November 19, 2009 10:57 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [SPAM] Re: [SPAM] Re: [SPAM] Re: [SPAM] Re: [flexcoders] XML
> e4x error
>
>
>
>
>
> Ok, that fixes the problem, but it doesn't explain why the problem was
> happening in the first place.  Or it doesn't explain why the first three
> examples ever worked.  Nowhere in my application did I ever define a default
> namespace.  In all 4 cases when I trace "data.namespace().uri" I get "
> http://www.w3.org/2000/svg"; regardless of whether I do the trace before or
> after setting the default namespace.
>
> Is this a bug?  I'm running the exact same line of code each time.  The
> only thing I can think of is that the source of the XML is different.  The
> first 3 are created through deserialization from the server.  The 4th is
> just the normal XML constructor. I do see why this would matter.
>
> - Daniel Freiman
>
> On Thu, Nov 19, 2009 at 12:55 AM, Tracy Spratt  wrote:
>
>
>
> This declaration, “xmlns="http://www.w3.org/2000/svg"” sets the default
> namespace that is appended to every node name that is not qualified by some
> other namespace.  Unless you declare it in AS, you will not be able to
> access nodes like “data”.
>
>
>
> Try this declaration, at instance (global) level scope:
>
> default xml namespace = "http://www.w3.org/2000/svg";;
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>   --
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Daniel Freiman
> *Sent:* Thursday, November 19, 2009 12:42 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [SPAM] Re: [SPAM] Re: [SPAM] Re: [flexcoders] XML e4x error
>
>
>
>
>
> I think I tried that already but I'll double check in the morning.
>
> Based on the XML and the code, isn't the default namespace already defined
> and shouldn't e4x be already using it?
>
> - Daniel Freiman
>
> On Wed, Nov 18, 2009 at 11:46 PM, Tracy Spratt  wrote:
>
>
>
> What happens if you declare the default namespace, then do:
>
>
>
> data.pa...@d
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>   --
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Daniel Freiman
> *Sent:* Wednesday, November 18, 2009 8:37 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [SPAM] Re: [SPAM] Re: [flexcoders] XML e4x error
>
>
>
>
>
> I've stated the symptom.  As you can see in the given XML, there is a child
> named path. So I should be getting value for that code instead of a null
> error.  I don't know why it's not picking it up.  My best guess is that it
> is because of namespaces, but I can't see a differences between the XML
> objects that this code works for, and the one it doesn't work for.  The
> "[0]" should be optional (at least relative to getting a null value or
> not).  I'm not sure how else to state my goal other than how the expression
> is already written.  I want the "d" attribute of the "path" child and I want
> it to work for all of the cases I've supplied or find the reason why it's
> not working so I can fix the last case.  Right now it is only working for 3
> out of 4.
>
> - Daniel Freiman
>
> On Wed, Nov 18, 2009 at 4:09 PM, Tracy Spratt  wrote:
>
>
>
> Didn’t you state the problem yourself?  With an expression:
>
> data.path[...@d[0]
>
> If there is no path[0], then you would expect the error.
>
>
>
> Why are you using the [0] syntax?  Is it be

[flexcoders] Special characters (eg. Cyrillic) & TextArea

2009-11-30 Thread polestar11
Hi there

I have a problem where I am not able to paste special characters (eg. cyrillic 
& arabic) into a flex TextArea component. This occasionally happens in a debug 
version of my app and always happens in a release build. 

I created a test application in the same project to try isolate the issue. I 
intermittently am not able to paste special characters into a textarea. I also 
created a different project entirely and never experience the issue.

My guess is that the compiler is misbehaving & getting stuck. 

Any help MUCH appreciated

Cheers
Tracy





[flexcoders] Re: How to know when a popup component is visible?

2009-11-30 Thread Richard Rodseth
This message hasn't showed up yet. Awaiting moderation? Any ideas?

On Wed, Nov 25, 2009 at 10:40 AM, Richard Rodseth wrote:

> I had a thread going here about how to show progress before a potentially
> long-running but synchronous operation (in my case encoding a DisplayObject
> as  a PNG or JPEG to add to an AlivePDF PDF.
>
> Since I can't seem to force a busy cursor (ironic), one of the suggestions
> was to pop up a window before starting the encoding. But I've tried
> listening to creationComplete, render, show, addedToStage etc. etc., and in
> all cases the popup doesn't appear until the encoding is complete.
>
> I was unable to find any event dispatched by the PopupManager either.
>
> Help!
>
>
>
>


[flexcoders] RTE - DataGridHeader/mouseOutHandler

2009-11-30 Thread bhaq1972
I'm getting this runtime error which I hope someone can help me with.

Basically, I added a headerRelease event to my DataGrid. The plan is...when a 
user clicks a dg column header  rather than sorting the rows, i plan to 
re-populate the datagrid with rows from a different sql database call.

eg


[flexcoders] Configuring a service for HTTPS access

2009-11-30 Thread Craig
Hi everyone,

I'm hoping someone can shed some light on a problem I'm having trying to get a 
simple webservice working over HTTPS.

The basic scenario is thus; I have a couple of web service components running 
on an IIS box which has been secured so that HTTPS access is required to get at 
the service components. My Flex app that uses the services uses HTTPService to 
access them. The website on which the services reside has HTTP and HTTPS 
channels open to the services and has a wide open crossdomain.xml file at its 
root:


http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd";>

  
  
  


Now, when I hit the services via HTTP, all is well. When I try and hit them via 
HTTPS though, I get a fault event every time I try and access a service. 
Specifically, I get the fault string, 'Security error accessing url'. I've put 
a little test app together too that runs locally and simply tries to access one 
of the services. This throws the same error but gives me a little more in the 
console window, 

Error: Request for resource at https://myserver.co.uk/myservice.ashx by 
requestor from http://localhost/dev/HttpsTest-debug/HttpsTest.swf is denied due 
to lack of policy file permissions.

*** Security Sandbox Violation ***
Connection to https://myserver.co.uk/myservice.ashx halted - not permitted from 
http://localhost/dev/HttpsTest-debug/HttpsTest.swf

I'm not sure where to go from here, as the policy file is permitting access 
isn't it? I've done a lot of looking around and have found a few suggestions 
that browser and header issues might be the cause but I don't think its down to 
that ... I've tried the big 3 browsers and behaviour is the same on them all.

I'm running out of ideas now, and would like to ask if anyone knows where I 
might be going wrong here? Any help would be very much appreciated.

Regards,
Craig



[flexcoders] Flex builder intellisense not picking up the class/interface

2009-11-30 Thread sehrawat_raj
Hello All,

I added a library to my flex application using the following setting in config 
file (that was included using -load-config option).


../bin/MyPvtLibrary.swc


Using this setting my code compiles but the intellisense does not work for 
interfaces/classes defined in MyPvtLibrary.swc.

If I use MyPvtLibrary in .actionScriptProperties as the following then 
intellisense works.



Flex builder version is 3.0.2.214193.


I don't want to make MyPvtLibrary as rsl.
Also, I need to include all definitions of MyPvtLibrary, irrespective of the 
used/unused classes.

Thanks,
Rajkumar



Re: [flexcoders] Centering a Scaled Image ( Bug ? )

2009-11-30 Thread Manoj Kumar
try this mt-

private function onAppComplete():void
{
stage.addEventListener(Event.RESIZE,onResize);
_spr.x = (stage.stageWidth - _spr.width)/2;
_spr.y = (stage.stageHeight - _spr.height)/2;
_ui.width = stage.stageWidth;
_ui.height = stage.stageHeight;
}
private function onResize(evt:Event):void
{
_spr.x = (stage.stageWidth - _spr.width)/2;
_spr.y = (stage.stageHeight - _spr.height)/2;
_ui.width = stage.stageWidth;
_ui.height = stage.stageHeight;
}



--- On Mon, 11/30/09, ganaraj p r  wrote:

From: ganaraj p r 
Subject: [flexcoders] Centering a Scaled Image ( Bug ? ) [1 Attachment]
To: flex_in...@googlegroups.com, flexcoders@yahoogroups.com
Date: Monday, November 30, 2009, 4:08 PM







 



  



  
  
[Attachment(s) from ganaraj p r included below]

  
  I was wondering if this was a bug with flex or if I was doing something 
totally wrong. 
The amount of code in this is extremely low, so , I was guessing that there was 
nothing wrong from my part.


http://www.adobe. com/2006/ mxml" layout="absolute">

 



This is all the code there is in this application ( I am attaching the app, for 
your reference ) .My expectation from this code is that the image should fit 
the screen, maintain the aspect ratio of the image and finally be both centered 
horizontally and vertically!



Can someone help me out in this ?
-- 
Regards,
Ganaraj P R





 




  Attachment(s) from ganaraj p r

  
 1 of 1 File(s) 
  


  sampletest.zip
  
  
   

  

  Reply to sender
  | 
Reply to group
  

Messages in this topic
  (1)
   






  Recent Activity:



  New Members
  25

  

  
Visit Your Group
Start a New Topic
  



  


  --

Flexcoders Mailing List

FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com  




  MARKETPLACE
  
  
Going Green: Your Yahoo! Groups resource for green living  
  
  
Mom Power: Discover the community of moms doing more 
for their families, for the world and for each other  
  

  

  
  Switch to: Text-Only, Daily Digest • Unsubscribe • Terms of Use




   

  
  
  



 




 

  .


   


__,_._,try this-___


 



  






  

[flexcoders] Custom focus skin

2009-11-30 Thread suman gayakwad
Hi,
 How to write focus Skin for Tree Component? Any pointers ?

Thanks,
Suman


[flexcoders] Article: Rapid Server Side Development for Flex RIA using SpringFuse and BlazeDS

2009-11-30 Thread pierre.a...@ymail.com
Hi,

i've written an article that I think may be useful to people dealing with 
server side coding with a flex app: I've used successfully a code generator 
named SpringFuse to create my spring based server, I fight a little bit to 
integrate with Spring-BlazeDS but once it was done, it was really cool to have 
this nice server running (without not being a a Spring/Hibernate/Maven expert 
which are the technologies SpringFuse leverages to generate the project)

In the article, I present how to add Spring-BlazeDs support the generated 
project and provide a complete running project to download (spring server side 
and flex client). Note that the project may also be used as example as itself 
since the code generated by SpringFuse is very readable and commented (and the 
example uses a database based spring security which is a good example as 
itself) 

if you want to know more, check the article at http://contextuel.net/archives/12

Pierre




Re: [flexcoders] Next version of Flex

2009-11-30 Thread Darrin Kay
I have heard it is due out some time 1qtr of 2010

On Mon, Nov 30, 2009 at 12:35 PM, Christophe
wrote:

>
>
> Hello,
>
> When will be available the next version of flex : flash builder ?
>
> Thank you,
> Christophe,
>
>  
>


Re: [flexcoders] Next version of Flex

2009-11-30 Thread Gautam P
have a feeling that it would be out in jan 2011, though their sales team
will be pushing for dec 2009 release...

On Mon, Nov 30, 2009 at 6:05 PM, Christophe
wrote:

>
>
> Hello,
>
> When will be available the next version of flex : flash builder ?
>
> Thank you,
> Christophe,
>
>  
>


[flexcoders] Next version of Flex

2009-11-30 Thread Christophe
Hello,

When will be available the next version of flex : flash builder ?

Thank you,
Christophe, 



[flexcoders] Quadrant

2009-11-30 Thread kanu kukreja
Hi,
I need a help from you all.

I have 5 canvases all are of different dimension.

If i add an image in one canvas, proportionally i want to show that in
another banners.
How i can achieve that?

Thanks


[flexcoders] Centering a Scaled Image ( Bug ? ) [1 Attachment]

2009-11-30 Thread ganaraj p r
I was wondering if this was a bug with flex or if I was doing something
totally wrong.

The amount of code in this is extremely low, so , I was guessing that there
was nothing wrong from my part.


http://www.adobe.com/2006/mxml"; layout="absolute">
 



This is all the code there is in this application ( I am attaching the app,
for your reference ) .
My expectation from this code is that the image should fit the screen,
maintain the aspect ratio of the image and finally be both centered
horizontally and vertically!


Can someone help me out in this ?

-- 
Regards,
Ganaraj P R