[flexcoders] Flex4 for building Flex3 projects?

2009-10-10 Thread reflexactions
I know Flex4 is still very much a beta product at this stage and that usually 
means not stable, not working, not suitable for production  etc. etc.

But I wondered about how stable it is in building Flex SDK3 projects, I mean 
compiling to say Flex SDK3.2.

To be honest I can't see that we will move to Flex4 SDK any time soon, even 
after it is released, but the IDE has some 'basics' that are very attractive 
like conditional breakpoints etc and these are unrelated to the SDK/Framework 
level so I could imagine they could be fairly stable already and these sort of 
things won't afffect the stability of the actual compiled application anyway 
which is really the only thing that matters.

Anyone have some knowledge to share on this?

...and can't resist a moan about 'FlashBuilder', ugghh, I am NOT a flash 
developer, never have been and never will be, never even used the designer mode 
in FB :)



Re: [flexcoders] Re: ColumnChart & LineSeries Bug?

2009-10-10 Thread Angelo Anolin
Hi Eddie,

Thanks for the pointers.  Care to show some sample code on how I may be able to 
achieve extending the ColumnChart.as?  I am quite new with Flex and would 
appreciate a lot if you could provide me some further directions to achieve 
this.

Thanks a lot.

Rgds,

Angelo





From: EddieBerman 
To: flexcoders@yahoogroups.com
Sent: Sunday, 11 October, 2009 2:19:38
Subject: [flexcoders] Re: ColumnChart & LineSeries Bug?

  
It's a flex bug. It fails in applySeriesSet( ) in ColumnChart. as. The case 
statement for "stacked" and "100%" assumes that the series is a column series 
and chokes on the line:

seriesSet[i] .offset = 0;

as there's no offset for lines series. You can get past this problem by 
extending ColumnChart. as and overriding this function, filtering for line 
series.

-Eddie B.

--- In flexcod...@yahoogro ups.com, Angelo Anolin  wrote:
>
> Hi FlexCoders,
> 
> I wonder if any of you came up with this bug in ColumnChart. 
> 
> In my ColumnChart, I have the following MXML:
> 
>  id="stackType" selectedItem= "clustered" />
> 
>  dataProvider= "{SMITH}" height="100% " width="100%" >
> 
> 
> 
> 
> 
> 
> 
>  displayName= "SMITH">
>  
> 
>  displayName= "RWC" >
> 
> 
>  displayName= "MTC" >
> 
> 
> 
> 
> 
> 
> 
> and in my script, I have the following declaration:
> 
> [Bindable]
> public var SMITH:Array = [
> {qtr:"Jan", close:1, target:0.9, ytdTRCF:0.00, lti:0, mtc:0, 
> rwc:0},
> {qtr:"Feb", close:1, target:0.9, ytdTRCF:0.44, lti:1, mtc:0, 
> rwc:1},
> {qtr:"Mar", close:1, target:0.9, ytdTRCF:0.42, lti:1, mtc:0, 
> rwc:0},
> {qtr:"Apr", close:1, target:0.9, ytdTRCF:0.40, lti:1, mtc:0, 
> rwc:0},
> {qtr:"May", close:1, target:0.9, ytdTRCF:0.40, lti:0, mtc:1, 
> rwc:0},
> {qtr:"Jun", close:1, target:0.9, ytdTRCF:0.38, lti:0, mtc:1, 
> rwc:0},
> {qtr:"Jul", close:1, target:0.9, ytdTRCF:0.32, lti:0, mtc:0, 
> rwc:0},
> {qtr:"Aug", close:1, target:0.9, ytdTRCF:0.32, lti:0, mtc:1, 
> rwc:0},
> {qtr:"Sep", close:1, target:0.9, ytdTRCF:0.32, lti:0, mtc:2, 
> rwc:0},
> {qtr:"Oct", close:1, target:0.9, ytdTRCF:0.00, lti:0, mtc:0, 
> rwc:0},
> {qtr:"Nov", close:1, target:0.9, ytdTRCF:0.00, lti:0, mtc:0, 
> rwc:0},
> {qtr:"Dec", close:1, target:0.9, ytdTRCF:0.00, lti:0, mtc:0, 
> rwc:0}
> ];
> 
> As you may notice, I have commented out the LineSeries tags for the column 
> chart component.  Doing this, my column chart renders properly (i.e., 
> selecting the type from the combobox displays the selected column chart type 
> properly).
> 
> But when I uncomment out the Line Series, what happens is that the chart will 
> render fine when the type is "clustered" but when I select, say the "stacked" 
> or "100%" type, my whole application does not respond and the chart is not 
> displayed properly.  Selecting back the working type (i.e. clustered) still 
> does not do anything.
> 
> Is this a bug in Adobe Flex Column Chart?
> 
> Appreciate your inputs. Thanks.
> 
> Regards,
> 
> Angelo
>


   


  

[flexcoders] Re: ADOBE AIR: Is it possible to move some files to appStorage during installati

2009-10-10 Thread handitan
Ugh, I just tried moving file programmatically from app to appStorage. It gave 
me security error.

Please enlighten me.

--- In flexcoders@yahoogroups.com, "handitan"  wrote:
>
> Hi all,
> 
> To my knowledge, it's not possible unless it's being done through 
> programmatically.
> 
> I have some sqlite DBs as part of my AIR package. I would like to have those 
> DBs completely moved to the application storage when the package is installed 
> on my client computer.
> 
> Any ideas?
> 
> Thx!
>




Re: [flexcoders] what is wrong with this code?

2009-10-10 Thread Sam Lai
2009/10/10 funandlearning3 :
> public var str:String = "Area = ";
> public var area:Number = Math.PI * Math.pow(3, 2);
>
> str = str + area;
>
> I am getting an error that str and area variable do not exist...

Is the last line located elsewhere in your code? Does the code appear
exactly as you have written it in this email? Because if so, it should
work fine at first glances.


[flexcoders] ADOBE AIR: Is it possible to move some files to appStorage during installation?

2009-10-10 Thread handitan
Hi all,

To my knowledge, it's not possible unless it's being done through 
programmatically.

I have some sqlite DBs as part of my AIR package. I would like to have those 
DBs completely moved to the application storage when the package is installed 
on my client computer.

Any ideas?

Thx!



[flexcoders] Re: SQLite:Simultaneous multiple-insert in async mode with a single DB connectio

2009-10-10 Thread handitan
Ugh, I forgot that I wrote this thread.

Amy, thx for the reply.
Sorry, I have been busy with other projects. I really appreciate your reply.

>From what I remember, this is having to do with different tables.
If you do insertion to table A, B, C, etc simultaneously, your app will hung-up.

I made a queue system to handle multiple insertion op. It works great!


--- In flexcoders@yahoogroups.com, "Amy"  wrote:
>
> --- In flexcoders@yahoogroups.com, "handitan"  wrote:
> >
> > Alright fellas,
> > 
> > Spill out the secret.
> > When I do the multiple-insertion simultaneously, those operations just 
> > stopped and any new transaction-transaction op request is ignored.
> > 
> > My idea so far is to put any new transaction-request in a queue if a 
> > transaction is currently in the process, and then after that transaction is 
> > finished then do the next transaction-request from the queue.
> 
> Doesn't SQLLite have any syntax like
> 
> INSERT INTO MyTable (Field1, Field2)
> VALUES (Obj1Field1, Obj1Field2),
> (Obj2Field1, Obj2Field2),
> (Obj3Field1, Obj3Field2)
> 
> ?
> 
> This would actually make the multiple inserts simultaneously, rather than 
> trying to multiple sql statements all intependently trying to be simultaneous.
> 
> -Amy
>




[flexcoders] Re: Flex 4 - data push

2009-10-10 Thread fgnowfg
Can I just turn on polling somehow? Would that do it?

--- In flexcoders@yahoogroups.com, "fgnowfg"  wrote:
>
> Are there any tutorials on the methods you suggest? I can't find any good 
> explanations on how to implement it w/ mysql
> 
> --- In flexcoders@yahoogroups.com, Jeffrey Vroom  wrote:
> >
> > LCDS won't automatically pick up changes from the database unfortunately.
> >  There is an api you can use if you control the code making the changes -
> > see flex.data.DataServiceTransaction.  You also could do some kind of
> > polling on the server using the DataServiceTransaction.refreshFill method...
> > it would look for changes and when it finds them it would push them out to
> > the client.
> > Jeff
> > 
> > On Sat, Oct 10, 2009 at 10:00 AM, fgnowfg  wrote:
> > 
> > >
> > >
> > > I guess it doesn't exist, then. Here's an example of the real-time feature
> > > I am seeking: I created the app and am connected w/ my mysql database. I
> > > open two browsers and changes made in browser 1 appear in browser 2. So 
> > > far,
> > > so good. However, if I bypass the flex app completely and make a change on
> > > the database or add a new record it won't show up until I refresh the flex
> > > app, which is not acceptable for any production environment. I have to 
> > > hand
> > > it to the adobe evangelists for being able to point out the good features 
> > > of
> > > flex & lcds and completely ignore reality as many databases don't get
> > > populated via the front-end UI. I guess I'll have to wait until flex 5 and
> > > lcds 4 for this feature to be implemented. For now, it seems we wasted
> > > development time and $ on LCDS & flex.
> > >
> > > --- In flexcoders@yahoogroups.com ,
> > > "fgnowfg"  wrote:
> > > >
> > > > Does anyone know of a tutorial for data push in flex 4? All I can find 
> > > > is
> > > people blogging about it but no one has a complete tutorial. I can do
> > > non-real time data w/ tomcat server and only need tutorial on data push.
> > > thx!
> > > >
> > >
> > >  
> > >
> >
>




Re: [flexcoders] Re: Flex 4 - data push

2009-10-10 Thread Jeffrey Vroom
There is this blog post which has the basic code you'd need:
http://viconflex.blogspot.com/2007/12/dataservicetransaction-lcds.html

If you are using the new LCDS that comes with Flex 4,  there should be an
option in the api which lets you both send calls to the DB and send them to
clients (which helps with the problem that the author had problems with)

Jeff

On Sat, Oct 10, 2009 at 11:06 AM, fgnowfg  wrote:

>
>
> Are there any tutorials on the methods you suggest? I can't find any good
> explanations on how to implement it w/ mysql
>
>
> --- In flexcoders@yahoogroups.com , Jeffrey
> Vroom  wrote:
> >
> > LCDS won't automatically pick up changes from the database unfortunately.
> > There is an api you can use if you control the code making the changes -
> > see flex.data.DataServiceTransaction. You also could do some kind of
> > polling on the server using the DataServiceTransaction.refreshFill
> method...
> > it would look for changes and when it finds them it would push them out
> to
> > the client.
> > Jeff
> >
> > On Sat, Oct 10, 2009 at 10:00 AM, fgnowfg  wrote:
> >
> > >
> > >
> > > I guess it doesn't exist, then. Here's an example of the real-time
> feature
> > > I am seeking: I created the app and am connected w/ my mysql database.
> I
> > > open two browsers and changes made in browser 1 appear in browser 2. So
> far,
> > > so good. However, if I bypass the flex app completely and make a change
> on
> > > the database or add a new record it won't show up until I refresh the
> flex
> > > app, which is not acceptable for any production environment. I have to
> hand
> > > it to the adobe evangelists for being able to point out the good
> features of
> > > flex & lcds and completely ignore reality as many databases don't get
> > > populated via the front-end UI. I guess I'll have to wait until flex 5
> and
> > > lcds 4 for this feature to be implemented. For now, it seems we wasted
> > > development time and $ on LCDS & flex.
> > >
> > > --- In flexcoders@yahoogroups.com 
> > >  40yahoogroups.com>,
> > > "fgnowfg"  wrote:
> > > >
> > > > Does anyone know of a tutorial for data push in flex 4? All I can
> find is
> > > people blogging about it but no one has a complete tutorial. I can do
> > > non-real time data w/ tomcat server and only need tutorial on data
> push.
> > > thx!
> > > >
> > >
> > >
> > >
> >
>
>  
>


[flexcoders] Re: Trees are killing me

2009-10-10 Thread max.nachlinger





Here's a bit of code that might help.

Silly test app: -


http://www.adobe.com/2006/mxml"; layout="absolute" 
creationComplete="_onLoad()" xmlns:local="*">






Silly test tree: -


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





Hope that helps a bit.

--Max



[flexcoders] Re: ColumnChart & LineSeries Bug?

2009-10-10 Thread EddieBerman
It's a flex bug. It fails in applySeriesSet() in ColumnChart.as. The case 
statement for "stacked" and "100%" assumes that the series is a column series 
and chokes on the line:

seriesSet[i].offset = 0;

as there's no offset for lines series. You can get past this problem by 
extending ColumnChart.as and overriding this function, filtering for line 
series.

-Eddie B.


--- In flexcoders@yahoogroups.com, Angelo Anolin  wrote:
>
> Hi FlexCoders,
> 
> I wonder if any of you came up with this bug in ColumnChart.  
> 
> In my ColumnChart, I have the following MXML:
> 
>  id="stackType" selectedItem="clustered" />
> 
>  dataProvider="{SMITH}" height="100%" width="100%" >
> 
> 
> 
> 
> 
> 
> 
>  displayName="SMITH">
> 
> 
>  displayName="RWC" >
> 
> 
>  displayName="MTC" >
> 
> 
> 
> 
> 
> 
> 
> and in my script, I have the following declaration:
> 
> [Bindable]
> public var SMITH:Array = [
> {qtr:"Jan", close:1, target:0.9, ytdTRCF:0.00, lti:0, mtc:0, 
> rwc:0},
> {qtr:"Feb", close:1, target:0.9, ytdTRCF:0.44, lti:1, mtc:0, 
> rwc:1},
> {qtr:"Mar", close:1, target:0.9, ytdTRCF:0.42, lti:1, mtc:0, 
> rwc:0},
> {qtr:"Apr", close:1, target:0.9, ytdTRCF:0.40, lti:1, mtc:0, 
> rwc:0},
> {qtr:"May", close:1, target:0.9, ytdTRCF:0.40, lti:0, mtc:1, 
> rwc:0},
> {qtr:"Jun", close:1, target:0.9, ytdTRCF:0.38, lti:0, mtc:1, 
> rwc:0},
> {qtr:"Jul", close:1, target:0.9, ytdTRCF:0.32, lti:0, mtc:0, 
> rwc:0},
> {qtr:"Aug", close:1, target:0.9, ytdTRCF:0.32, lti:0, mtc:1, 
> rwc:0},
> {qtr:"Sep", close:1, target:0.9, ytdTRCF:0.32, lti:0, mtc:2, 
> rwc:0},
> {qtr:"Oct", close:1, target:0.9, ytdTRCF:0.00, lti:0, mtc:0, 
> rwc:0},
> {qtr:"Nov", close:1, target:0.9, ytdTRCF:0.00, lti:0, mtc:0, 
> rwc:0},
> {qtr:"Dec", close:1, target:0.9, ytdTRCF:0.00, lti:0, mtc:0, 
> rwc:0}
> ];
> 
> As you may notice, I have commented out the LineSeries tags for the column 
> chart component.  Doing this, my column chart renders properly (i.e., 
> selecting the type from the combobox displays the selected column chart type 
> properly).
> 
> But when I uncomment out the Line Series, what happens is that the chart will 
> render fine when the type is "clustered" but when I select, say the "stacked" 
> or "100%" type, my whole application does not respond and the chart is not 
> displayed properly.  Selecting back the working type (i.e. clustered) still 
> does not do anything.
> 
> Is this a bug in Adobe Flex Column Chart?
> 
> Appreciate your inputs. Thanks.
> 
> Regards,
> 
> Angelo
>




[flexcoders] Re: Flex 4 - data push

2009-10-10 Thread fgnowfg
Are there any tutorials on the methods you suggest? I can't find any good 
explanations on how to implement it w/ mysql

--- In flexcoders@yahoogroups.com, Jeffrey Vroom  wrote:
>
> LCDS won't automatically pick up changes from the database unfortunately.
>  There is an api you can use if you control the code making the changes -
> see flex.data.DataServiceTransaction.  You also could do some kind of
> polling on the server using the DataServiceTransaction.refreshFill method...
> it would look for changes and when it finds them it would push them out to
> the client.
> Jeff
> 
> On Sat, Oct 10, 2009 at 10:00 AM, fgnowfg  wrote:
> 
> >
> >
> > I guess it doesn't exist, then. Here's an example of the real-time feature
> > I am seeking: I created the app and am connected w/ my mysql database. I
> > open two browsers and changes made in browser 1 appear in browser 2. So far,
> > so good. However, if I bypass the flex app completely and make a change on
> > the database or add a new record it won't show up until I refresh the flex
> > app, which is not acceptable for any production environment. I have to hand
> > it to the adobe evangelists for being able to point out the good features of
> > flex & lcds and completely ignore reality as many databases don't get
> > populated via the front-end UI. I guess I'll have to wait until flex 5 and
> > lcds 4 for this feature to be implemented. For now, it seems we wasted
> > development time and $ on LCDS & flex.
> >
> > --- In flexcoders@yahoogroups.com ,
> > "fgnowfg"  wrote:
> > >
> > > Does anyone know of a tutorial for data push in flex 4? All I can find is
> > people blogging about it but no one has a complete tutorial. I can do
> > non-real time data w/ tomcat server and only need tutorial on data push.
> > thx!
> > >
> >
> >  
> >
>




Re: [flexcoders] Re: Flex 4 - data push

2009-10-10 Thread Jeffrey Vroom
LCDS won't automatically pick up changes from the database unfortunately.
 There is an api you can use if you control the code making the changes -
see flex.data.DataServiceTransaction.  You also could do some kind of
polling on the server using the DataServiceTransaction.refreshFill method...
it would look for changes and when it finds them it would push them out to
the client.
Jeff

On Sat, Oct 10, 2009 at 10:00 AM, fgnowfg  wrote:

>
>
> I guess it doesn't exist, then. Here's an example of the real-time feature
> I am seeking: I created the app and am connected w/ my mysql database. I
> open two browsers and changes made in browser 1 appear in browser 2. So far,
> so good. However, if I bypass the flex app completely and make a change on
> the database or add a new record it won't show up until I refresh the flex
> app, which is not acceptable for any production environment. I have to hand
> it to the adobe evangelists for being able to point out the good features of
> flex & lcds and completely ignore reality as many databases don't get
> populated via the front-end UI. I guess I'll have to wait until flex 5 and
> lcds 4 for this feature to be implemented. For now, it seems we wasted
> development time and $ on LCDS & flex.
>
> --- In flexcoders@yahoogroups.com ,
> "fgnowfg"  wrote:
> >
> > Does anyone know of a tutorial for data push in flex 4? All I can find is
> people blogging about it but no one has a complete tutorial. I can do
> non-real time data w/ tomcat server and only need tutorial on data push.
> thx!
> >
>
>  
>


[flexcoders] ColumnChart & LineSeries Bug?

2009-10-10 Thread Angelo Anolin
Hi FlexCoders,

I wonder if any of you came up with this bug in ColumnChart.  

In my ColumnChart, I have the following MXML:

























and in my script, I have the following declaration:

[Bindable]
public var SMITH:Array = [
{qtr:"Jan", close:1, target:0.9, ytdTRCF:0.00, lti:0, mtc:0, 
rwc:0},
{qtr:"Feb", close:1, target:0.9, ytdTRCF:0.44, lti:1, mtc:0, 
rwc:1},
{qtr:"Mar", close:1, target:0.9, ytdTRCF:0.42, lti:1, mtc:0, 
rwc:0},
{qtr:"Apr", close:1, target:0.9, ytdTRCF:0.40, lti:1, mtc:0, 
rwc:0},
{qtr:"May", close:1, target:0.9, ytdTRCF:0.40, lti:0, mtc:1, 
rwc:0},
{qtr:"Jun", close:1, target:0.9, ytdTRCF:0.38, lti:0, mtc:1, 
rwc:0},
{qtr:"Jul", close:1, target:0.9, ytdTRCF:0.32, lti:0, mtc:0, 
rwc:0},
{qtr:"Aug", close:1, target:0.9, ytdTRCF:0.32, lti:0, mtc:1, 
rwc:0},
{qtr:"Sep", close:1, target:0.9, ytdTRCF:0.32, lti:0, mtc:2, 
rwc:0},
{qtr:"Oct", close:1, target:0.9, ytdTRCF:0.00, lti:0, mtc:0, 
rwc:0},
{qtr:"Nov", close:1, target:0.9, ytdTRCF:0.00, lti:0, mtc:0, 
rwc:0},
{qtr:"Dec", close:1, target:0.9, ytdTRCF:0.00, lti:0, mtc:0, 
rwc:0}
];

As you may notice, I have commented out the LineSeries tags for the column 
chart component.  Doing this, my column chart renders properly (i.e., selecting 
the type from the combobox displays the selected column chart type properly).

But when I uncomment out the Line Series, what happens is that the chart will 
render fine when the type is "clustered" but when I select, say the "stacked" 
or "100%" type, my whole application does not respond and the chart is not 
displayed properly.  Selecting back the working type (i.e. clustered) still 
does not do anything.

Is this a bug in Adobe Flex Column Chart?

Appreciate your inputs. Thanks.

Regards,

Angelo


  

[flexcoders] Re: Flex 4 - data push

2009-10-10 Thread fgnowfg
I guess it doesn't exist, then. Here's an example of the real-time feature I am 
seeking: I created the app and am connected w/ my mysql database. I open two 
browsers and changes made in browser 1 appear in browser 2. So far, so good. 
However, if I bypass the flex app completely and make a change on the database 
or add a new record it won't show up until I refresh the flex app, which is not 
acceptable for any production environment. I have to hand it to the adobe 
evangelists for being able to point out the good features of flex & lcds and 
completely ignore reality as many databases don't get populated via the 
front-end UI. I guess I'll have to wait until flex 5 and lcds 4 for this 
feature to be implemented. For now, it seems we wasted development time and $ 
on LCDS & flex. 

--- In flexcoders@yahoogroups.com, "fgnowfg"  wrote:
>
> Does anyone know of a tutorial for data push in flex 4? All I can find is 
> people blogging about it but no one has a complete tutorial. I can do 
> non-real time data w/ tomcat server and only need tutorial on data push. thx!
>




[flexcoders] Re: Space in TextInput

2009-10-10 Thread Flex Boy
It works, definitely a better way to do it:)

--- In flexcoders@yahoogroups.com, Roman Protsiuk  wrote:
>
> Hi,
> 
> Take a look at the docs:
> http://livedocs.adobe.com/flex/3/langref/mx/controls/TextInput.html#restrict
> For your case the solution might look like:
> 
> 
> Roman Protsiuk
> Software Engineer/Engineering Team Lead
> 
> http://under.in.ua
> 
> Kyiv, Ukraine (GMT+2)
> mobile: +38 097 321 56 54 email:
> roman.prots...@...<%3C/span%3eroman.prots...@...>
>  skype: roman.protsiuk
> linkedin: http://www.linkedin.com/in/romanpv blogspot:
> http://roma-ch.blogspot.com
> 
> 
> On Sat, Oct 10, 2009 at 2:13 PM, Flex Boy  wrote:
> 
> >
> >
> >
> >
> > Hi mister..
> >
> > put all the characters taht are allowed in the restrict parameter
> >
> > if you use it as in Flex Doc. The following code allows the user to enter
> > only uppercase letters (and not numbers or special characters) in the text
> > field:
> > A-Z , so if you are only restriting the Space you have to put in the whole
> > alfabet and the numbers and special characters
> >
> > 
> >
> >
> > --- In flexcoders@yahoogroups.com , yogesh
> > patel  wrote:
> > >
> > > Hi,
> > > I have textInput ,i do not want to allow space in this textinput-
> > i dont want space,how to do this?
> > >
> > >
> > >
> > > Thanks & Regards,
> > > Yogesh Patel
> > >
> > >
> > >
> > > Connect more, do more and share more with Yahoo! India Mail. Learn more.
> > http://in.overview.mail.yahoo.com/
> > >
> >
> >  
> >
>




Re: [flexcoders] Re: Space in TextInput

2009-10-10 Thread Roman Protsiuk
Hi,

Take a look at the docs:
http://livedocs.adobe.com/flex/3/langref/mx/controls/TextInput.html#restrict
For your case the solution might look like:


Roman Protsiuk
Software Engineer/Engineering Team Lead

http://under.in.ua

Kyiv, Ukraine (GMT+2)
mobile: +38 097 321 56 54 email:
roman.prots...@gmail.com<%3C/span%3eroman.prots...@gmail.com>
 skype: roman.protsiuk
linkedin: http://www.linkedin.com/in/romanpv blogspot:
http://roma-ch.blogspot.com


On Sat, Oct 10, 2009 at 2:13 PM, Flex Boy  wrote:

>
>
>
>
> Hi mister..
>
> put all the characters taht are allowed in the restrict parameter
>
> if you use it as in Flex Doc. The following code allows the user to enter
> only uppercase letters (and not numbers or special characters) in the text
> field:
> A-Z , so if you are only restriting the Space you have to put in the whole
> alfabet and the numbers and special characters
>
> 
>
>
> --- In flexcoders@yahoogroups.com , yogesh
> patel  wrote:
> >
> > Hi,
> > I have textInput ,i do not want to allow space in this textinput-
> i dont want space,how to do this?
> >
> >
> >
> > Thanks & Regards,
> > Yogesh Patel
> >
> >
> >
> > Connect more, do more and share more with Yahoo! India Mail. Learn more.
> http://in.overview.mail.yahoo.com/
> >
>
>  
>


[flexcoders] Prevent de-selecting item in Combobox with control-mouse click

2009-10-10 Thread ropoboy
Hi,

I was surprised to learn that the selected item in a combobox can be 
de-selected using ctrl-mouse. I think there should be an attribute to turn this 
behaviour off, but I could not find it. Where is it?

Thanks,
Roland



[flexcoders] 2 strange issues for begginer in action script ref

2009-10-10 Thread dennis
Hello. I am new to action script and I am (pretty) confused. so any help is
valuable!!!

 

--- issue 1

-

I have the follow code. and I get blank page. nothing is appeared on the
stage at all!!! For god's sake, what is wrong?

 

package

{

  import flash.display.Sprite;

  import mx.core.ButtonAsset;

  public class ASProject2 extends Sprite

  {

public function ASProject2()

{

  var mb: ButtonAsset = new ButtonAsset();

mb.x=100; mb.y=100; mb.width=200;

addChild(mb);

}

  }

}

 

--- issue 2

-

Which button is the more simple button to use?

I found the spark components button is the component that Flash Builder uses
if you write in mxml language. So I add the folder to my project's libraries
paths, in precise I added as SWC folder the follow folder:

c:\Program Files\Adobe\Flash Builder
Beta\sdks\4.0.0\frameworks\projects\flex4\src\spark\components\

 

Here is the (very simple) code (with compiler's errors):

 

package

{

  import flash.display.Sprite;

  import spark.components.Button;  // <- compile time error: 1172:
Definition spark.components:Button could not be found.

  public class ASProjectInFB4 extends Sprite

  {

public function ASProjectInFB4()

{

  var ab : Button = new Button();  // <- compile time error: 1046: Type
was not found or was not a compile-time constant: Button.

ab.x=10;

ab.y=10;

ab.width=200;

ab.height=100;

ab.enabled=true;

  addChild(ab);

}

  }

}

 

The problem (as you see) are the two compiler errors. Now. if get the cursor
on "Button" text in my code and I press the F3 the Flash Builder transfers
me to the declaration of Button class in the proper Button.as file! So I
suppose that my definition in my preceding code is correct. If I remove the
the SWC folder from the libraries of my project, the F3 buttons doesn't
transfer me anywhere, so the SWC folder definition is working too.

 

What is wrong?

 

Best regards

Dennis

 



[flexcoders] what is wrong with this code?

2009-10-10 Thread funandlearning3
public var str:String = "Area = "; 
public var area:Number = Math.PI * Math.pow(3, 2); 

str = str + area;

I am getting an error that str and area variable do not exist...



[flexcoders] Re: Space in TextInput

2009-10-10 Thread Flex Boy


Hi mister..

put all the characters taht are allowed in the restrict parameter

if you use it as in Flex Doc. The following code allows the user to enter only 
uppercase letters (and not numbers or special characters) in the text field:
 A-Z , so if you are only restriting the Space you have to put in the whole 
alfabet and the numbers and special characters


  

--- In flexcoders@yahoogroups.com, yogesh patel  wrote:
>
> Hi,
>     I have textInput ,i do not want to allow space in this textinput- i 
> dont want space,how to do this?
> 
> 
> 
> Thanks & Regards,
> Yogesh Patel
> 
> 
> 
>   Connect more, do more and share more with Yahoo! India Mail. Learn 
> more. http://in.overview.mail.yahoo.com/
>




[flexcoders] Space in TextInput

2009-10-10 Thread yogesh patel
Hi,
    I have textInput ,i do not want to allow space in this textinput- i 
dont want space,how to do this?



Thanks & Regards,
Yogesh Patel



  Connect more, do more and share more with Yahoo! India Mail. Learn more. 
http://in.overview.mail.yahoo.com/