Re: [flexcoders] Font types getting Over written

2009-06-01 Thread sony antony
Can you suggest a way to get over this caching issue?
I think inth eentire project I face this issue, tried something but not working 
that well.
:((
Thanks,
Sony

--- On Mon, 1/6/09, Guy Morton  wrote:

From: Guy Morton 
Subject: Re: [flexcoders] Font types getting Over written
To: flexcoders@yahoogroups.com
Date: Monday, 1 June, 2009, 3:25 AM











 











  
  That sounds like a caching issue to me. Things don't generally fail 
"sometimes".
On 01/06/2009, at 3:14 AM, sony antony wrote:
   Hi there..   I had a problem with font types in ma 
application   I am using both "Plain" and "Caps" types of the same font.   
Formerly only the "Plain" was there. Now when I used "Caps" along with.    At 
times it's working fine, but, sometimes  when I clean the project, all the 
"Plain" types of the same font family is getting converted to "Caps" type of 
the same font family.   and I tried removing the font embedding from the 
stylesheet which was common to the project, and embedded the font in the 
separate pages where, I needed the particular fonts. again it is working fine 
at sometimes only.    Please do help me to sort out this...   :) Sony.        
Explore and discover exciting holidays and getaways with Yahoo! India 
Travel  Click here!
 

 

  




 
















  Explore and discover exciting holidays and getaways with Yahoo! India 
Travel http://in.travel.yahoo.com/

Re: [flexcoders] Font types getting Over written

2009-06-01 Thread sony antony
Can you suggest a way to get over this caching issue?
I think inth eentire project I face this issue, tried something but not working 
that well.
:((
Thanks,
Sony

--- On Mon, 1/6/09, Guy Morton  wrote:

From: Guy Morton 
Subject: Re: [flexcoders] Font types getting Over written
To: flexcoders@yahoogroups.com
Date: Monday, 1 June, 2009, 3:25 AM











 











  
  That sounds like a caching issue to me. Things don't generally fail 
"sometimes".
On 01/06/2009, at 3:14 AM, sony antony wrote:
   Hi there..   I had a problem with font types in ma 
application   I am using both "Plain" and "Caps" types of the same font.   
Formerly only the "Plain" was there. Now when I used "Caps" along with.    At 
times it's working fine, but, sometimes  when I clean the project, all the 
"Plain" types of the same font family is getting converted to "Caps" type of 
the same font family.   and I tried removing the font embedding from the 
stylesheet which was common to the project, and embedded the font in the 
separate pages where, I needed the particular fonts. again it is working fine 
at sometimes only.    Please do help me to sort out this...   :) Sony.        
Explore and discover exciting holidays and getaways with Yahoo! India 
Travel  Click here!
 

 

  




 
















  Explore your hobbies and interests. Go to 
http://in.promos.yahoo.com/groups/

[flexcoders] SuperTab Navigator Help

2009-06-01 Thread ajayashish

I am using supertab Navigator in one of the application i am designing. The
idea is that... 

the user is asked for his education information in one tab.. which is
must... if he has more information then he can click on the button and one
more tab is added in the navigation. At present the button is placed at the
bottom of the window. I want to give it a look like the IE7. Where the add
button is placed next to the tabs. 

Can anyone help. 

Just to clear i am a UI designer and am not into a lot of coding. But yes i
do understand it a bit as much is needed in the designing part. 

Please help and give me some examples if you have... 
-- 
View this message in context: 
http://www.nabble.com/SuperTab-Navigator-Help-tp23812236p23812236.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: HTTPService HTTPChannel 2032 Channel.Ping.Failed trying to do asimple form post

2009-06-01 Thread valdhor
I tried your code and, after some changes, got an "HTTP request error".

Firstly, change your params variable type from Array to Object. This will allow 
you POST parameters to be sent.

Secondly, I would highly recommend obtaining a copy of Charles 
(http://www.charlesproxy.com). Using Charles I found the error from the server 
is "The requested method POST is not allowed for the URL 
/postgradmed/testlogin.html.". This is fairly obvious as it is just an HTML 
page and does not understand the POST. Changing the URL to 
"http://www.postgradmed.com/index.php?page=login"; gives a security error which 
is, again, not surprising as the crossdomain.xml file only allows access from 
"www.translunardesigns.com".


HTH



Steve


--- In flexcoders@yahoogroups.com, "ciminop"  wrote:
>
> 
> Here's the link to my app, you can use view source to see what I'm doing. The 
> left hand fields allow you to configure the entry fields so you can change 
> the URL and point to a form with different input ids.
>   http://www.translunardesigns.com/postgradmed/PostGradMed.html
> 
> I obviously can't give out the id/password, but if you enter anything you 
> should see the page source appear in the output window. The URL is in the app 
> and configurable if you want to try pointing it elsewhere.
> 
> Here's the cross domain file for the site I'm trying to hit:
>   http://www.postgradmed.com/crossdomain.xml
> 
> I also tried pointing this to my yahoo login screen, and i know Yahoo has a 
> domain file that allows any domain. Still getting the same error.
> 
> --- In flexcoders@yahoogroups.com, Peter Farland  wrote:
> >
> > If you've setup a crossdomain.xml file correctly then there's no need to 
> > set useProxy="true" for your scenario (you could just leave it as the 
> > default, which is false).
> > 
> > The HTTPService url property does not appear to be marked with [Bindable] 
> > metadata. You can programmatically change its in ActionScript:
> > 
> > connectPG.url = urlInput.text;
> > 
> > 
> > Note: The 'proxy' in useProxy refers to a BlazeDS ProxyService - if you 
> > were to use BlazeDS then you'd either need to setup your own ChannelSet 
> > programmatically and assign it to your HTTPService instance, or point the 
> > compiler to the BlazeDS web application's /WEB-INF/flex/services-config.xml 
> > file using the -services option.
> > 
> > 
> > -Original Message-
> > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> > Behalf Of ciminop
> > Sent: Thursday, May 28, 2009 10:14 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] HTTPService HTTPChannel 2032 Channel.Ping.Failed 
> > trying to do asimple form post
> > 
> > I must be missing something since I'm trying to do something fairly basic. 
> > It really can't be this difficult, can it? I'm trying to use the 
> > HTTPService to post to a form. No web services. And I even put a 
> > crossdomain.xml policy file on the server for good measure.
> > 
> > First I got the dreaded 2032 Stream error, and after some digging saw that 
> > the FaultEvent was complaining that no channels were set. So I added a 
> > ChannelSet, now I'm getting a ping failure?
> > 
> > Here is a sample of my service:
> > 
> >  >   result="resulthandler(event)" fault="fault_handler(event)"
> >   resultFormat="text" showBusyCursor="true"
> >   url="urlInput.text"
> >   useProxy="true" method="POST">
> > 
> >   
> > 
> >   
> > {urlInput.text}
> >   
> > 
> >   
> > 
> > 
> >   {userName.text}
> >   {userPW.text}
> > 
> > 
> > 
> > And when I call the send() method, the fault_handler() reports :
> > 
> > [FaultEvent fault=[RPC Fault faultString="Send failed" 
> > faultCode="Client.Error.MessageSend" faultDetail="Channel.Ping.Failed error 
> >  url: 'http://www.<>.com/beta/db_access.html''"] 
> > messageId="5BF9E4BD-0CED-145E-B224-8A20D0E36345" type="fault" bubbles=false 
> > cancelable=true eventPhase=2]
> > Channel.Ping.Failed error  url: 
> > 'http://www.<>.com/beta/db_access.html''
> > 
> > 
> > 
> > 
> > 
> > --
> > 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.comYahoo! Groups Links
> >
>




Re: [flexcoders] Different Alert Screen

2009-06-01 Thread Tom Chiverton
On Saturday 30 May 2009, ajayashish wrote:
> Can i have 3 types of customised skin for these 3 alerts. Like a Red for
> Error, green for Confirmation and Yellow for Information. I can use icons
> but i need complete different skin for them.

You should be able to design each as 3 separate MXML files, and then use 
PopUpManager to show the correct one.

-- 
Helping to centrally market eigth-generation high-yield 24/7 information as 
part of the IT team of the year, '09 and '08

Tom Chiverton
Developer
Tel: +44 0161 618 5032
Fax: +44 0161 618 5099 
tom.chiver...@halliwells.com
3 Hardman Square, Manchester, M3 3EB
www.Halliwells.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of 
members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners. We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged. If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents. If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.Halliwells.com.
 

[flexcoders] May I install Flex 3 builder and new Flash builder in same computer

2009-06-01 Thread markflex2007
New Flash Builder just come out.May I install it with Flex Builder 3?

Thanks

Mark



Re: [flexcoders] May I install Flex 3 builder and new Flash builder in same computer

2009-06-01 Thread Sam Lai
"You can install a separate copy of Flash Builder 4 standalone and it
will remain separate from any Flex Builder 2 or 3 installations. Also,
workspaces created in Flex Builder 2 or Flex Builder 3 are not
supported by Flash Builder 4. Lastly, Flash Builder 4 can import
existing Flex Builder projects, but a project that has its settings
modified by Flash Builder 4 will no longer open in Flex Builder 3 or
Flex Builder 2."

It is still a beta btw.

2009/6/1 markflex2007 :
> New Flash Builder just come out.May I install it with Flex Builder 3?
>
> Thanks
>
> Mark
>
>
>
> 
>
> --
> 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.comYahoo! Groups Links
>
>
>
>


[flexcoders] Custom Actionscript component data-binding question

2009-06-01 Thread Keith Hughitt
Hi all,

I have been working on my first custom ActionScript component and have
been trouble getting the data-binding setup properly.

I am trying to making a "FilterManager" component which will enable to
the user to filter based on one or multiple columns in a DataGrid. In
order to do this though I need to be able to bind a DataGrid to the
component. I have not been able to figure out how to do this though, and
was hoping someone might be able to help shed some light.

Here is the code for the component, and the MXML used to instantiate the
component:



/***\

  * Filter Manager
 
\
**/
package custom {

 import mx.containers.Form;
 import mx.containers.FormItem;
 import mx.controls.Alert;
 import mx.controls.DataGrid;
 import mx.utils.ObjectUtil;
 import flash.events.Event;



/***\

 * Class definition for a class to manage the various search filters

\
***/
 public class FilterManager extends Form {

 [Bindable]
 public var datagrid:DataGrid;

 private var _test:String;

 private var filterSettings:Array;


/***
 * FilterManager (Constructor)
 *
 * Creates an instance of the filter manager class

***/
 public function FilterManager():void {
 super();
 this.initFilters();
 }

 [Bindable]
 public function set test(value:String):void
 {
 _test = value;
 }

 public function get test():String
 {
 return _test;
 }


/***
 * initFilters
 *
 * Builds an array to manage the different filters that may be
set

***/
 private function initFilters():void {
 this.filterSettings = new Array();

 for each (var col:* in this.datagrid.columns) {
 var d:Object = new Object();

 if (col['dataField'] != null) {
 d.field   = col['dataField'];
 d.enabled = false;
 d.filter  = null;
 this.filterSettings.push(d);
 }
 }
 }


/***
 * component overrides

***/
 override protected function createChildren():void {
 super.createChildren();
 for each (var item:Object in this.filterSettings) {
 var f:FormItem = new FormItem();
 f.label = item.field;
 addChild(f);
 }
 Alert.show("createChilden()");
 }

 override protected function commitProperties():void {
 super.commitProperties();
 }

 override protected function measure():void {
 super.measure();
 }

 override protected function
updateDisplayList(unscaledWidth:Number,

unscaledHeight:Number):void {
 super.updateDisplayList(unscaledWidth,unscaledHeight);
 }

 }
}
I've tried passing in data both via public variables (the "datagrid"
field), and using the preferred accessor & mutator route ("test"), but
have not had any luck with either.

Can anyone please tell me what the proper way to bind a DataGrid in the
application to the custom component so that I can reference it in the
initFilters function?

Any help would be greatly appreciated.

Thanks!
Keith



[flexcoders] Re: Different Alert Screen

2009-06-01 Thread valdhor
Check out an example of Styling the alert box at 
http://blog.flexexamples.com/2007/08/11/styling-the-flex-alert-control/



--- In flexcoders@yahoogroups.com, "ajayashish"  wrote:
>
> I am working on an application design where there are 3 types of alert used. 
> Conformation, information, Error... 
> 
> Can i have 3 types of customised skin for these 3 alerts. Like a Red for 
> Error, green for Confirmation and Yellow for Information. I can use icons but 
> i need complete different skin for them.
>




[flexcoders] Extending ColumnSeries to modify column label...

2009-06-01 Thread whiskerstasters
Hi everyone, I have a columnChart, 
I created a Class that extends ColumnSeries.

I'm trying to display the labels inside my column and forced them to always be 
rotated vertically.
If the column wouldn't be tall enough to display the entire label, the label 
would then move outside...

How would I go about this?

Thanks everyone for your help.



[flexcoders] LCDS, Hibernate and offline synchronisation in Air

2009-06-01 Thread Zdenek Mikan
I am trying to make the database application in Air, which should work 
also offline. But I have a problem with associations.

I have two databases: Partner and Contact. In Contact there is a 
ManyToOne association to Partner, based on the join table:

@ManyToOne(targetEntity=Partner.class, cascade={CascadeType.ALL})
@JoinTable(name="partner_contact",
joincolum...@joincolumn(name="fk_contact", 
referencedColumnName="contact_id"),
inversejoincolum...@joincolumn(name="fk_partner", 
referencedColumnName="partner_id"))
private Partner partner;

The problem is that when I create a new partner offline, then add a new 
contact referencing this new partner, everything is OK when I am 
offline, but after getting online and commiting offline changes, the new 
partner is created two times.

Does anybody know the fix for this?

Thanks in advance

Zdenek M





[flexcoders] Datagrid intialization problem?

2009-06-01 Thread vikrant choudhary
Hi, I want to intialize the datagrid  but looks like i am missing something. 
Could you please help me on this?

http://www.adobe.com/2006/mxml"; 
xmlns:ext="com.autolab.view.extenders.panel.*" 
xmlns:util="com.autolab.controller.util.*"   
creationComplete="UserHttp.send();"  >                   
        
    
 
 
   
 
             
  
 
   
                                        
                                 
                                                                      
                                      
               


   
    
  

 
      
         


Thanks,
Vikrant



  Own a website.Get an unlimited package.Pay next to nothing.*Go to 
http://in.business.yahoo.com/

[flexcoders] Best way to programatically add / remove custom components?

2009-06-01 Thread th1138x
I created a custom component that has a combo box and 2 text fields and a 
custom date selector. 

I need to programatically add additional instances of the above component to my 
application. 
I also need to know how many where added.

Then I need to construct an array from the values in each instance.

The array could consist of the original instance values and any number of the 
added instances (20 or less).

If possible could a instance and its values be removed?

Any help sending me on the right path would be great!



RE: [flexcoders] SuperTab Navigator Help

2009-06-01 Thread Jake Churchill
You'll probably have to override the createChildren method and place it
where it needs to go.

 

Jake Churchill
CF Webtools
11204 Davenport, Ste. 100
Omaha, NE  68154
  http://www.cfwebtools.com
402-408-3733 x103

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of ajayashish
Sent: Monday, June 01, 2009 5:15 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] SuperTab Navigator Help

 







I am using supertab Navigator in one of the application i am designing. The
idea is that... 

the user is asked for his education information in one tab.. which is
must... if he has more information then he can click on the button and one
more tab is added in the navigation. At present the button is placed at the
bottom of the window. I want to give it a look like the IE7. Where the add
button is placed next to the tabs. 

Can anyone help. 

Just to clear i am a UI designer and am not into a lot of coding. But yes i
do understand it a bit as much is needed in the designing part. 

Please help and give me some examples if you have... 
-- 
View this message in context:
http://www.nabble.com/SuperTab-Navigator-Help-tp23812236p23812236.html
Sent from the FlexCoders mailing list archive at Nabble.com.



No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.339 / Virus Database: 270.12.48/2148 - Release Date: 06/01/09
06:09:00



[flexcoders] Flex 4/Catalyst Now Available for Download on Adobe labs?

2009-06-01 Thread Brad Bueche
Am I the only one seeing this?  I expected to see a flurry of posts on
this.  Anyway,  wait a few minutes so I can get my stuff downloaded first!
:)

It must be real because I'm downloading!

brad


RE: [flexcoders] Flex 4/Catalyst Now Available for Download on Adobe labs?

2009-06-01 Thread Gregor Kiddie
Yeah, it's been up since this morning, check the Adobe blogs... they've
all posted.

 

For some reason, Flexcoders is always quiet on these things *shrug*

 

I've been playing with Catalyst all day... s Don't tell the boss
;)

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Brad Bueche
Sent: 01 June 2009 16:01
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 4/Catalyst Now Available for Download on
Adobe labs?

 






Am I the only one seeing this?  I expected to see a flurry of posts on
this.  Anyway,  wait a few minutes so I can get my stuff downloaded
first! :)

It must be real because I'm downloading!

brad





Re: [flexcoders] Flex 4/Catalyst Now Available for Download on Adobe labs?

2009-06-01 Thread Nate Beck
http://blog.natebeck.net/2009/05/the-flash-builder-4-and-flash-catalyst-betas-are-out/
http://blog.digitalbackcountry.com/2009/05/flash-builder-and-flash-catalyst-betas-now-available/
http://www.webkitchen.be/2009/05/31/get-your-flash-catalyst-flash-builder-beta-now/
http://butterfliesandbugs.wordpress.com/2009/06/01/flex-4-public-beta-released-its-alive/
http://www.coldfusionjedi.com/index.cfm/2009/6/1/Flash-Builder-4-and-Flash-Catalyst-hit-Labs

Just to name a few ;)



On Mon, Jun 1, 2009 at 8:01 AM, Brad Bueche  wrote:

>
>
> Am I the only one seeing this?  I expected to see a flurry of posts on
> this.  Anyway,  wait a few minutes so I can get my stuff downloaded first!
> :)
>
> It must be real because I'm downloading!
>
> brad
>  
>



-- 

Cheers,
Nate

http://blog.natebeck.net


[flexcoders] Re: FileReference RemoteObject

2009-06-01 Thread valdhor
Do you want to upload the file or send the files data using RemoteObject?

For the former, have a look at 
http://livedocs.adobe.com/flex/3/html/help.html?content=17_Networking_and_communications_9.html

For the latter, you could grab the files data, base64 encode it and send it as 
part of the RemoteObject. You would need to base64 decode it at the reomote end 
and save the file data.



--- In flexcoders@yahoogroups.com, "[p e r c e p t i c o n]"  
wrote:
>
> Hi Flexy People.
> I'm trying to send the file name and filedata to a service using
> RemoteObject...can anyone tell me how to access the files data to pass to my
> service...
> 
> thanks
> 
> percy
>




Re: [flexcoders] Flex 4/Catalyst Now Available for Download on Adobe labs?

2009-06-01 Thread Tom Chiverton
On Monday 01 Jun 2009, Brad Bueche wrote:
> Am I the only one seeing this?  I expected to see a flurry of posts on
> this.  

I rather like people restraining themselves. If all you can 
post/tweet/blog/email is 'OMG it's on labs, go get it' just don't bother - 
someone else has already done it :-)

-- 
Helping to revolutionarily streamline third-generation frictionless total 
virtual services as part of the IT team of the year, '09 and '08

Tom Chiverton
Developer
Tel: +44 0161 618 5032
Fax: +44 0161 618 5099 
tom.chiver...@halliwells.com
3 Hardman Square, Manchester, M3 3EB
www.Halliwells.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of 
members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners. We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged. If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents. If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.Halliwells.com.
 

Re: [flexcoders] Flex 4/Catalyst Now Available for Download on Adobe labs?

2009-06-01 Thread Brad Bueche
LOL!

I feel like the character Jeff Goldblum played in the Big Chill when he and
Glenn Close came down stairs after everybody else had eaten breakfast and
gone out for the day and he said "Are we the first ones up?"

brad

On Mon, Jun 1, 2009 at 11:11 AM, Nate Beck  wrote:

>
>
>
> http://blog.natebeck.net/2009/05/the-flash-builder-4-and-flash-catalyst-betas-are-out/
>
> http://blog.digitalbackcountry.com/2009/05/flash-builder-and-flash-catalyst-betas-now-available/
>
> http://www.webkitchen.be/2009/05/31/get-your-flash-catalyst-flash-builder-beta-now/
>
> http://butterfliesandbugs.wordpress.com/2009/06/01/flex-4-public-beta-released-its-alive/
>
> http://www.coldfusionjedi.com/index.cfm/2009/6/1/Flash-Builder-4-and-Flash-Catalyst-hit-Labs
>
> Just to name a few ;)
>
>
>
> On Mon, Jun 1, 2009 at 8:01 AM, Brad Bueche  wrote:
>
>>
>>
>> Am I the only one seeing this?  I expected to see a flurry of posts on
>> this.  Anyway,  wait a few minutes so I can get my stuff downloaded first!
>> :)
>>
>> It must be real because I'm downloading!
>>
>> brad
>>
>
>
>
> --
>
> Cheers,
> Nate
> 
> http://blog.natebeck.net
>
>
>  
>


Re: [flexcoders] Datagrid intialization problem?

2009-06-01 Thread Tom Chiverton
On Monday 01 Jun 2009, vikrant choudhary wrote:
> Hi, I want to intialize the datagrid  but looks like i am missing
> something. 

Really, why ? Do you get an error or something ?
The code you gave could have a number of problems, do you have a simple 
example that show the 'initialisation' problem and nothing else ?

-- 
Helping to interactively build synergies as part of the IT team of the 
year, '09 and '08

Tom Chiverton
Developer
Tel: +44 0161 618 5032
Fax: +44 0161 618 5099 
tom.chiver...@halliwells.com
3 Hardman Square, Manchester, M3 3EB
www.Halliwells.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of 
members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners. We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged. If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents. If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.Halliwells.com.
 

[flexcoders] Re: Best way to programatically add / remove custom components?

2009-06-01 Thread valdhor
To create multiple instances...

var myComponentInstance1:MyComponent = new MyComponent();
var myComponentInstance2:MyComponent = new MyComponent();

To add these to an array...

var myComponentsArray:Array = new Array();
myComponentsArray.push(myComponentInstance1);
myComponentsArray.push(myComponentInstance2);

To track the number of instances, add a static variable to your class and 
update it every time an instance is created. Look up static members of a class 
in the AS3 reference.


HTH



Steve


--- In flexcoders@yahoogroups.com, "th1138x"  wrote:
>
> I created a custom component that has a combo box and 2 text fields and a 
> custom date selector. 
> 
> I need to programatically add additional instances of the above component to 
> my application. 
> I also need to know how many where added.
> 
> Then I need to construct an array from the values in each instance.
> 
> The array could consist of the original instance values and any number of the 
> added instances (20 or less).
> 
> If possible could a instance and its values be removed?
> 
> Any help sending me on the right path would be great!
>




[flexcoders] Re: Custom Actionscript component data-binding question

2009-06-01 Thread valdhor
Why are you trying to bind a datagrid? That is a display object.

A far better way is to pass in the arraycollection the datagrid is based on. 
Then just create the datagrid in your custom component.


--- In flexcoders@yahoogroups.com, "Keith Hughitt"  wrote:
>
> Hi all,
> 
> I have been working on my first custom ActionScript component and have
> been trouble getting the data-binding setup properly.
> 
> I am trying to making a "FilterManager" component which will enable to
> the user to filter based on one or multiple columns in a DataGrid. In
> order to do this though I need to be able to bind a DataGrid to the
> component. I have not been able to figure out how to do this though, and
> was hoping someone might be able to help shed some light.
> 
> Here is the code for the component, and the MXML used to instantiate the
> component:
> 
>  test="Test String" width="100%" height="100%"/>
> 
> /***\
> 
>   * Filter Manager
>  
> \
> **/
> package custom {
> 
>  import mx.containers.Form;
>  import mx.containers.FormItem;
>  import mx.controls.Alert;
>  import mx.controls.DataGrid;
>  import mx.utils.ObjectUtil;
>  import flash.events.Event;
> 
> 
> 
> /***\
> 
>  * Class definition for a class to manage the various search filters
> 
> \
> ***/
>  public class FilterManager extends Form {
> 
>  [Bindable]
>  public var datagrid:DataGrid;
> 
>  private var _test:String;
> 
>  private var filterSettings:Array;
> 
> 
> /***
>  * FilterManager (Constructor)
>  *
>  * Creates an instance of the filter manager class
> 
> ***/
>  public function FilterManager():void {
>  super();
>  this.initFilters();
>  }
> 
>  [Bindable]
>  public function set test(value:String):void
>  {
>  _test = value;
>  }
> 
>  public function get test():String
>  {
>  return _test;
>  }
> 
> 
> /***
>  * initFilters
>  *
>  * Builds an array to manage the different filters that may be
> set
> 
> ***/
>  private function initFilters():void {
>  this.filterSettings = new Array();
> 
>  for each (var col:* in this.datagrid.columns) {
>  var d:Object = new Object();
> 
>  if (col['dataField'] != null) {
>  d.field   = col['dataField'];
>  d.enabled = false;
>  d.filter  = null;
>  this.filterSettings.push(d);
>  }
>  }
>  }
> 
> 
> /***
>  * component overrides
> 
> ***/
>  override protected function createChildren():void {
>  super.createChildren();
>  for each (var item:Object in this.filterSettings) {
>  var f:FormItem = new FormItem();
>  f.label = item.field;
>  addChild(f);
>  }
>  Alert.show("createChilden()");
>  }
> 
>  override protected function commitProperties():void {
>  super.commitProperties();
>  }
> 
>  override protected function measure():void {
>  super.measure();
>  }
> 
>  override protected function
> updateDisplayList(unscaledWidth:Number,
> 
> unscaledHeight:Number):void {
>  super.updateDisplayList(unscaledWidth,unscaledHeight);
>  }
> 
>  }
> }
> I've tried passing in data both via public variables (the "datagrid"
> field), and using the preferred accessor & mutator route ("test"), but
> have not had any luck with either.
> 
> Can anyone please tell me what the proper way to bind a DataGrid in the
> application to the custom component so that I can reference it in the
> initFilters function?
> 
> Any help would be greatly appreciated.
> 
> Thanks!
> Keith
>




Re: [flexcoders] SuperTab Navigator Help

2009-06-01 Thread ajayashish

Thanks buddy but it didnt help ... as i said i am not that much into
programming... can some one send me some example which will help me in this



ajayashish wrote:
> 
> I am using supertab Navigator in one of the application i am designing.
> The idea is that... 
> 
> the user is asked for his education information in one tab.. which is
> must... if he has more information then he can click on the button and one
> more tab is added in the navigation. At present the button is placed at
> the bottom of the window. I want to give it a look like the IE7. Where the
> add button is placed next to the tabs. 
> 
> Can anyone help. 
> 
> Just to clear i am a UI designer and am not into a lot of coding. But yes
> i do understand it a bit as much is needed in the designing part. 
> 
> Please help and give me some examples if you have... 
> 

-- 
View this message in context: 
http://www.nabble.com/SuperTab-Navigator-Help-tp23812236p23817254.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Flex 4/Catalyst Now Available for Download on Adobe labs? [1 Attachment]

2009-06-01 Thread Vivian Richard
  If any one out there is "smart" like me then you can even
  get a DVD which looks like this YAA BABY!
  :-))








On Mon, Jun 1, 2009 at 10:22 AM, Brad Bueche  wrote:
>
>
> LOL!
>
> I feel like the character Jeff Goldblum played in the Big Chill when he and
> Glenn Close came down stairs after everybody else had eaten breakfast and
> gone out for the day and he said "Are we the first ones up?"
>
> brad
>
> On Mon, Jun 1, 2009 at 11:11 AM, Nate Beck  wrote:
>>
>>
>>
>> http://blog.natebeck.net/2009/05/the-flash-builder-4-and-flash-catalyst-betas-are-out/
>>
>>
>> http://blog.digitalbackcountry.com/2009/05/flash-builder-and-flash-catalyst-betas-now-available/
>>
>> http://www.webkitchen.be/2009/05/31/get-your-flash-catalyst-flash-builder-beta-now/
>>
>> http://butterfliesandbugs.wordpress.com/2009/06/01/flex-4-public-beta-released-its-alive/
>>
>> http://www.coldfusionjedi.com/index.cfm/2009/6/1/Flash-Builder-4-and-Flash-Catalyst-hit-Labs
>>
>> Just to name a few ;)
>>
>>
>> On Mon, Jun 1, 2009 at 8:01 AM, Brad Bueche  wrote:
>>>
>>>
>>> Am I the only one seeing this?  I expected to see a flurry of posts on
>>> this.  Anyway,  wait a few minutes so I can get my stuff downloaded first!
>>> :)
>>>
>>> It must be real because I'm downloading!
>>>
>>> brad
>>
>>
>>
>> --
>>
>> Cheers,
>> Nate
>> 
>> http://blog.natebeck.net
>>
>>
>
> 


Re: [flexcoders] Datagrid intialization problem?

2009-06-01 Thread vikrant choudhary
Please find something i was trying to do into simple format. 
I have a file Test TestDatagrid.mxml as:
http://www.adobe.com/2006/mxml"     layout="absolute"      
viewSourceURL="srcview/index.html">                          
                            
              
          
      
                // working fine.. able to see the 
correct value of test  
Another file is calling the function test something like:
http://www.adobe.com/2006/mxml"; layout="absolute" xmlns:local="*">

  // 
This is returning null. How can i make this one to take the correct value   
 

Thanks,Vikrant


--- On Mon, 1/6/09, Tom Chiverton  wrote:

From: Tom Chiverton 
Subject: Re: [flexcoders] Datagrid intialization problem?
To: flexcoders@yahoogroups.com
Date: Monday, 1 June, 2009, 8:46 PM











 











  
  




On Monday 01 Jun 2009, vikrant choudhary wrote:

> Hi, I want to intialize the datagrid  but looks like i am missing

> something. 



Really, why ? Do you get an error or something ?

The code you gave could have a number of problems, do you have a simple 

example that show the 'initialisation' problem and nothing else ?



-- 

Helping to interactively build synergies as part of the IT team of the 

year, '09 and '08







  

 

 
 
  
 
  
   
   
Tom Chiverton
  

  
Developer
  

  
Tel: +44 0161 618 5032
  

Fax: +44 0161 618 5099  
  

  
Tom.Chiverton@ halliwells. com
  
 
  
  3 Hardman Square, Manchester, M3 3EB

  
  www.Halliwells. com

  





 
 
  
   
 
  
   * * * * 

  

  This email is sent for and on behalf of Halliwells LLP.

  

  Halliwells LLP is a limited liability partnership registered in England 
and Wales under registered number OC307980 whose registered office address is 
at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners. We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

  

  CONFIDENTIALITY

  

  This email is intended only for the use of the addressee named above and 
may be confidential or legally privileged. If you are not the addressee you 
must not read it and must not use any information contained in nor copy it nor 
inform any person other than Halliwells LLP or the addressee of its existence 
or contents. If you have received this email in error please delete it and 
notify Halliwells LLP IT Department on 0870 365 2500.

  

  For more information about Halliwells LLP visit www.Halliwells. com.

   
  
   
 







 

  




 
















  Own a website.Get an unlimited package.Pay next to nothing.*Go to 
http://in.business.yahoo.com/

RE: [flexcoders] How to make FTE text selectable and editable?

2009-06-01 Thread Alex Harui
I think you'll have to use TLF or write your own.  The whole point of FTE is to 
put text on the screen without each text instance needing to carry the 
capabilities of selection and interaction.

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 Manish Jethani
Sent: Sunday, May 31, 2009 5:18 PM
To: Flexcoders
Subject: [flexcoders] How to make FTE text selectable and editable?





I have this program (Flash Player 10):

var elementFormat:ElementFormat = new ElementFormat();
elementFormat.fontSize = 48;
var textElement:TextElement = new TextElement("Hello,
world", elementFormat)
var textBlock:TextBlock = new TextBlock(textElement);
var textLine:TextLine = textBlock.createTextLine();
textLine.y = textLine.ascent;
addChild(textLine);

How do I make the text selectable and editable?

(Note: I'm not using the Text Layout Framework.)

Manish



[flexcoders] Re: May I install Flex 3 builder and new Flash builder in same computer

2009-06-01 Thread markgoldin_2000
Do we provide an existing license for beta installation?

--- In flexcoders@yahoogroups.com, Sam Lai  wrote:
>
> "You can install a separate copy of Flash Builder 4 standalone and it
> will remain separate from any Flex Builder 2 or 3 installations. Also,
> workspaces created in Flex Builder 2 or Flex Builder 3 are not
> supported by Flash Builder 4. Lastly, Flash Builder 4 can import
> existing Flex Builder projects, but a project that has its settings
> modified by Flash Builder 4 will no longer open in Flex Builder 3 or
> Flex Builder 2."
> 
> It is still a beta btw.
> 
> 2009/6/1 markflex2007 :
> > New Flash Builder just come out.May I install it with Flex Builder 3?
> >
> > Thanks
> >
> > Mark
> >
> >
> >
> > 
> >
> > --
> > 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.comYahoo! Groups Links
> >
> >
> >
> >
>




Re: [flexcoders] Re: May I install Flex 3 builder and new Flash builder in same computer

2009-06-01 Thread Nate Beck
When I asked about the license... I was told...
It's a 30 day trial currently, we'll shortly be putting out how to use your
fb3 license to get an extended beta license.



On Mon, Jun 1, 2009 at 11:00 AM, markgoldin_2000
wrote:

>
>
> Do we provide an existing license for beta installation?
>
>
> --- In flexcoders@yahoogroups.com , Sam Lai
>  wrote:
> >
> > "You can install a separate copy of Flash Builder 4 standalone and it
> > will remain separate from any Flex Builder 2 or 3 installations. Also,
> > workspaces created in Flex Builder 2 or Flex Builder 3 are not
> > supported by Flash Builder 4. Lastly, Flash Builder 4 can import
> > existing Flex Builder projects, but a project that has its settings
> > modified by Flash Builder 4 will no longer open in Flex Builder 3 or
> > Flex Builder 2."
> >
> > It is still a beta btw.
> >
> > 2009/6/1 markflex2007 :
> > > New Flash Builder just come out.May I install it with Flex Builder 3?
> > >
> > > Thanks
> > >
> > > Mark
> > >
> > >
> > >
> > > 
> > >
> > > --
> > > 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.comYahoo! Groups
> Links
> > >
> > >
> > >
> > >
> >
>
>  
>



-- 

Cheers,
Nate

http://blog.natebeck.net


[flexcoders] Re: May I install Flex 3 builder and new Flash builder in same computer

2009-06-01 Thread markgoldin_2000
When I try to debug/run a project from new Builder it complains about FP 
version. I dont want to go thru its installation. What should I do?

--- In flexcoders@yahoogroups.com, Sam Lai  wrote:
>
> "You can install a separate copy of Flash Builder 4 standalone and it
> will remain separate from any Flex Builder 2 or 3 installations. Also,
> workspaces created in Flex Builder 2 or Flex Builder 3 are not
> supported by Flash Builder 4. Lastly, Flash Builder 4 can import
> existing Flex Builder projects, but a project that has its settings
> modified by Flash Builder 4 will no longer open in Flex Builder 3 or
> Flex Builder 2."
> 
> It is still a beta btw.
> 
> 2009/6/1 markflex2007 :
> > New Flash Builder just come out.May I install it with Flex Builder 3?
> >
> > Thanks
> >
> > Mark
> >
> >
> >
> > 
> >
> > --
> > 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.comYahoo! Groups Links
> >
> >
> >
> >
>




RE: [flexcoders] Flex 2 Loader in Flex 3

2009-06-01 Thread Alex Harui
I don't think that is Flex 2 code, it might be based on a beta or other 
pre-release of Flex 2.

You should update the namespace, use SWFLoader instead of Loader, replace 
"Void" with "void", and replace this.content with Object(this.content).  That 
should get rid of most of the errors.

The code to call ToolTIpManager doesn't look right.  There is no such API.  You 
might have to use ToolTipManager.createToolTip(...) and import 
mx.managers.ToolTipManager at the top of the script block.

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 ajayashish
Sent: Sunday, May 31, 2009 11:49 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex 2 Loader in Flex 3





I have tried that... but after that it gives a lot more compilation errors...
if possible can u try the mxmls i have attached..

Alex Harui wrote:
>
> It is possible we eliminated the flash.display components from the mx:
> namespace in Flex3. Maybe you should just use SWFLoader there instead.
>
> 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 ajayashish
> Sent: Saturday, May 30, 2009 9:45 PM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Flex 2 Loader in Flex 3
>
>
>
>
>
> It says it cannot find the component LOADER... it works in Flex 2
> though...
>
> if u see the attachment i send then u will understand it better...
>
> Alex Harui wrote:
>>
>> You're not telling us what errors you are getting.
>>
>> 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 ajayashish
>> Sent: Saturday, May 30, 2009 1:43 PM
>> To: 
>> flexcoders@yahoogroups.com
>> Subject: RE: [flexcoders] Flex 2 Loader in Flex 3
>>
>>
>>
>>
>>
>> see the attachment... 2 mxmls are there... one uses the loader component
>> to
>> load the swf... i cannot get this working in flex3.
>>
>> Alex Harui wrote:
>>>
>>> You can't load a Flex2 SWF into a Flex3 app.
>>>
>>> Other than that, Loader and SWFLoader did not change that much so they
>>> should still load SWFs of the correct version. What kinds of errors do
>>> you get?
>>>
>>> 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 ajayashish
>>> Sent: Friday, May 29, 2009 9:44 PM
>>> To:
>>> flexcoders@yahoogroups.com
>>> Subject: [flexcoders] Flex 2 Loader in Flex 3
>>>
>>>
>>>
>>>
>>>
>>> I am working on a project whcih is done in flex 2. It uses a component
>>> called
>>> Loader which takes a SWF as a source file.
>>>
>>> I need this done in flex3 now. but there loader in flex3 is not similar
>>> to
>>> what it was in flex2 and the swfloader in flex3 is also not functioning
>>> properly with that. please suggest me
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Flex-2-Loader-in-Flex-3-tp23766591p23766591.html
>>> Sent from the FlexCoders mailing list archive at Nabble.com.
>>>
>>>
>>>
>> http://www.nabble.com/file/p23797186/maps.zip maps.zip
>> --
>> View this message in context:
>> http://www.nabble.com/Flex-2-Loader-in-Flex-3-tp23766591p23797186.html
>> Sent from the FlexCoders mailing list archive at Nabble.com.
>>
>>
>>
>
> --
> View this message in context:
> http://www.nabble.com/Flex-2-Loader-in-Flex-3-tp23766591p23799749.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>
>
>

--
View this message in context: 
http://www.nabble.com/Flex-2-Loader-in-Flex-3-tp23766591p23810635.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] childrenField in AdvancedDataGrid

2009-06-01 Thread Mark
Hi my XML has been set up pretty basic but it does have a few levels.  This is 
shortend, but it basically looks like this:







































Is there a way to get the advancedDataGrid to display the competencies as well 
as the deliverables in a tree structure?  The childrenField only accpets one.  
How can this be done?  Or do I need to rename some of my XML nodes?

Thank,
Mark



[flexcoders] Binding question

2009-06-01 Thread steve horvath
I am trying to bind the checkbox selected property as written below.
The value of selected should be triggered whenever currentPresentation
changes or whenever albumIncluded(data) returns a different value.  The
checkbox is in a List itemRenderer component.

ItemRenderer







The albumIncluded function is in a class called Media and is coded as
follows:

Media class (the class is marked [Bindable])
-
private var _includedAlbums:ArrayCollection /* of Albums */ =new
ArrayCollection();

public function includeAlbum(album:Album):void {
_includedAlbums.addItem(album);
if (!currentAlbum)
currentAlbum = album;
dispatchEvent(new Event("albumToggledEvent"));
}

[Bindable(event="albumToggledEvent")]
public function albumIncluded(album:Album):Boolean {
return _includedAlbums.getItemIndex(album) >= 0;
}

Apparently the albumIncluded function doesn't fire when includeAlbum()
function is called.

So I put a read-only property called includedAlbums in Media which is
supposed to be triggered when _includedAlbums changes.

Media class (class is Bindable)

private var _includedAlbums:ArrayCollection /* of Albums */ =new
ArrayCollection();

public function includeAlbum(album:Album):void {
_includedAlbums.addItem(album);
if (!currentAlbum)
currentAlbum = album;
dispatchEvent(new Event("albumToggledEvent"));
}

[Bindable(event="albumToggledEvent")]
public function albumIncluded(album:Album):Boolean {
return _includedAlbums.getItemIndex(album) >= 0;
}

[Bindable(event="none")] // handles runtime binding warnings
public function get includedAlbums():ArrayCollection /* of Albums */ {
return _includedAlbums;
}

And added a helper function to the ItemRenderer component, with the idea
that if either currentPresentation or includedAlbums changed it would
fire the helper function which would return the correct value for the
checkbox selected property.

ItemRenderer
---







But it looks like the includedAlbums property is never firing an event.
How do I get my checkbox selected to set to the right value?

(Note: I also tried setting the bindable event tag to
event="albumToggledEvent" for the includedAlbums getter property, and it
still didn't work.)

ascii



RE: [flexcoders] How to make FTE text selectable and editable?

2009-06-01 Thread Gordon Smith
That's correct. FTE simply creates TextLines that display text and contain 
information about glyph bounds, etc. All selection and editing must be handled 
in ActionScript. Use have to use TLF or a TLF-based component, unless you want 
to roll your own text editor.

- Gordon

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Monday, June 01, 2009 10:55 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How to make FTE text selectable and editable?




I think you'll have to use TLF or write your own.  The whole point of FTE is to 
put text on the screen without each text instance needing to carry the 
capabilities of selection and interaction.

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 Manish Jethani
Sent: Sunday, May 31, 2009 5:18 PM
To: Flexcoders
Subject: [flexcoders] How to make FTE text selectable and editable?






I have this program (Flash Player 10):

var elementFormat:ElementFormat = new ElementFormat();
elementFormat.fontSize = 48;
var textElement:TextElement = new TextElement("Hello,
world", elementFormat)
var textBlock:TextBlock = new TextBlock(textElement);
var textLine:TextLine = textBlock.createTextLine();
textLine.y = textLine.ascent;
addChild(textLine);

How do I make the text selectable and editable?

(Note: I'm not using the Text Layout Framework.)

Manish



[flexcoders] AIR & Computer Locking

2009-06-01 Thread Jake Churchill
Anyone know how to recognize if a computer is locked or not (Windows XP) in
AIR? 

 

 I have an app that runs on the taskbar by the time.  It periodically
displays notifications which are placed at the bottom right of the screen.
I get that position using Screen.mainScreen.visibleBounds.  This works just
fine when the computer is unlocked.  However, when the computer is locked,
the visibleBounds does not recognize the existence of the taskbar, so when I
unlock the computer, half the notification is below the task bar.  

 

I can think of a couple ways around this problem, I just wanted to know if
there was an easy way to find out if the computer is currently locked or
not.

 

Jake Churchill
CF Webtools
11204 Davenport, Ste. 100
Omaha, NE  68154
  http://www.cfwebtools.com
402-408-3733 x103



Re: [flexcoders] list itemrenderer

2009-06-01 Thread thomas parquier
Yves, sorry for slow reply...
I've written a custom itemrenderer for a list component, but the proxy
instance (when dnd'ed) has to look different from the instance of
itemrenderer which is actually dnd'ed.
The proxy uses same class and receives same data object as item in list...
so is there a possibility to set a property only for the proxy instance, or
get a property to distinguish proxy from an instance actually in the list ?

thomas
---
http://www.web-attitude.fr/
msn : thomas.parqu...@web-attitude.fr
softphone : sip:webattit...@ekiga.net 
téléphone portable : +33601 822 056


2009/5/25 Yves Riel 

>
>
>  You'll have to be a little bit more specific. What are you trying to
> achieve? You can listen to any drag event in any controls and do custom
> actions.
>
>  --
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *thomas parquier
> *Sent:* Sunday, May 24, 2009 4:57 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] list itemrenderer
>
>  Hi,
>
> Is there a possibility to do some code differently in a drag proxy instance
> of itemRenderer ?
>
> thomas
> ---
> http://www.web-attitude.fr/
> msn : thomas.parqu...@web-attitude.fr
> softphone : sip:webattit...@ekiga.net 
> téléphone portable : +33601 822 056
>  
>


Re: [flexcoders] Re: FileReference RemoteObject

2009-06-01 Thread [p e r c e p t i c o n]
I would like to upload it but I don't see a way to do it using RemoteObject so 
I thought I'd ask if the data was exposed anywhere in the filerefernce object
[-percy-]

-Original Message-
From: "valdhor" 

Date: Mon, 01 Jun 2009 15:17:34 
To: 
Subject: [flexcoders] Re: FileReference RemoteObject


Do you want to upload the file or send the files data using RemoteObject?

For the former, have a look at 
http://livedocs.adobe.com/flex/3/html/help.html?content=17_Networking_and_communications_9.html

For the latter, you could grab the files data, base64 encode it and send it as 
part of the RemoteObject. You would need to base64 decode it at the reomote end 
and save the file data.



--- In flexcoders@yahoogroups.com, "[p e r c e p t i c o n]"  
wrote:
>
> Hi Flexy People.
> I'm trying to send the file name and filedata to a service using
> RemoteObject...can anyone tell me how to access the files data to pass to my
> service...
> 
> thanks
> 
> percy
>





[flexcoders] OLAPDatagrd vs. AdvancedDatagrid - Drilling down

2009-06-01 Thread victordaicich
Hello! I'm currently developing a OLAP application (connecting to MS Analysis 
Services but that's not important) , and what we needed is the grid to behave 
like the usual pivot component.

The OLAPGrid retrieves the data correctly but it's flat. I mean, all data is 
rendered . If you have 3 dimmensions and 1 measure, it renders all 3 
dimmensions opened. 
The idea, in terms of performance and visual, the first should have an expand , 
and then load on demand the rest.

So basically that's what I did, I choose AdvancedDatagrid and start working 
with customitemrenderers, and callbacks loading on demand the information from 
the Cube. The grid renders the first dimmension and when the users expands 
(using the itemopen event)  it calls a webservice to retrieve the drill down 
and so on.

Is anyone working on anything similar to this? Any thoughts to share?

Thanks!
Victor



Re: [flexcoders] AIR & Computer Locking

2009-06-01 Thread Rick Winscot
What are your Œcouple ways around this problem.¹ Are you thinking of using
system idle? 

Is there a direct (easy) way to do this? None that I know of... typically
these kinds of operations require a system call which would be OS specific
and wouldn¹t be available to AIR without significant effort.

Is there any reason you can¹t capture that point when the application starts
and then re-use it for subsequent notifications?

Cheers,

Rick Winscot



On 6/1/09 3:37 PM, "Jake Churchill"  wrote:

>  
>   
> 
>   
> 
> Anyone know how to recognize if a computer is locked or not (Windows XP) in
> AIR? 
>  
>  I have an app that runs on the taskbar by the time. It periodically displays
> notifications which are placed at the bottom right of the screen.  I get that
> position using Screen.mainScreen.visibleBounds.  This works just fine when the
> computer is unlocked.  However, when the computer is locked, the visibleBounds
> does not recognize the existence of the taskbar, so when I unlock the
> computer, half the notification is below the task bar.
>  
> I can think of a couple ways around this problem, I just wanted to know if
> there was an easy way to find out if the computer is currently locked or not.
>  
> Jake Churchill
> CF Webtools
> 11204 Davenport, Ste. 100
> Omaha, NE  68154
> http://www.cfwebtools.com 
> 402-408-3733 x103
>   
> 
> 
>> 



Re: [flexcoders] AIR & Computer Locking

2009-06-01 Thread Charles Parcell
This was going to be my suggestion too.

Charles P.


On Mon, Jun 1, 2009 at 4:01 PM, Rick Winscot  wrote:

>
> Is there any reason you can’t capture that point when the application
> starts and then re-use it for subsequent notifications?
>


RE: [flexcoders] AIR & Computer Locking

2009-06-01 Thread Jake Churchill
That's how I'm going to work around it.  I just thought it'd be cool if
there was a way to natively grab certain system info (outside of the network
stuff)

 

Jake Churchill
CF Webtools
11204 Davenport, Ste. 100
Omaha, NE  68154
  http://www.cfwebtools.com
402-408-3733 x103

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Rick Winscot
Sent: Monday, June 01, 2009 3:02 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] AIR & Computer Locking

 






What are your 'couple ways around this problem.' Are you thinking of using
system idle? 

Is there a direct (easy) way to do this? None that I know of... typically
these kinds of operations require a system call which would be OS specific
and wouldn't be available to AIR without significant effort. 

Is there any reason you can't capture that point when the application starts
and then re-use it for subsequent notifications?

Cheers,

Rick Winscot



On 6/1/09 3:37 PM, "Jake Churchill"  wrote:


  

  

Anyone know how to recognize if a computer is locked or not (Windows XP) in
AIR? 
 
 I have an app that runs on the taskbar by the time. It periodically
displays notifications which are placed at the bottom right of the screen.
I get that position using Screen.mainScreen.visibleBounds.  This works just
fine when the computer is unlocked.  However, when the computer is locked,
the visibleBounds does not recognize the existence of the taskbar, so when I
unlock the computer, half the notification is below the task bar.  
 
I can think of a couple ways around this problem, I just wanted to know if
there was an easy way to find out if the computer is currently locked or
not.
 
Jake Churchill
CF Webtools
11204 Davenport, Ste. 100
Omaha, NE  68154
http://www.cfwebtools.com  
402-408-3733 x103
 






No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.339 / Virus Database: 270.12.48/2148 - Release Date: 06/01/09
06:09:00



[flexcoders] How does one implement IBitmapDrawable

2009-06-01 Thread Stephen More
Given this code:

var bitmapData:BitmapData;
bitmapData.draw( IBitmapDrawable( target ) );


What method(s) does target need to implement so that bitmapData will
have valid data in it ?
Can anyone provide an example ?


-Thanks


Re: [flexcoders] Font types getting Over written

2009-06-01 Thread Guy Morton
Clear your browser's cache? Check whether you are accessing your app  
via a web proxy cache, and disable it if possible?


On 01/06/2009, at 5:06 PM, sony antony wrote:




Can you suggest a way to get over this caching issue?

I think inth eentire project I face this issue, tried something but  
not working that well.


:((

Thanks,

Sony


--- On Mon, 1/6/09, Guy Morton  wrote:

From: Guy Morton 
Subject: Re: [flexcoders] Font types getting Over written
To: flexcoders@yahoogroups.com
Date: Monday, 1 June, 2009, 3:25 AM

That sounds like a caching issue to me. Things don't generally fail  
"sometimes".



On 01/06/2009, at 3:14 AM, sony antony wrote:


Hi there..

I had a problem with font types in ma application

I am using both "Plain" and "Caps" types of the same font.

Formerly only the "Plain" was there. Now when I used "Caps" along  
with.


At times it's working fine, but, sometimes  when I clean the  
project, all the "Plain" types of the same font family is getting  
converted to "Caps" type of the same font family.


and I tried removing the font embedding from the stylesheet which  
was common to the project, and embedded the font in the separate  
pages where, I needed the particular fonts. again it is working  
fine at sometimes only.


Please do help me to sort out this...

:)
Sony.





Explore and discover exciting holidays and getaways with Yahoo!  
India Travel  Click here!





Explore and discover exciting holidays and getaways with Yahoo!  
India Travel Click here!







[flexcoders] Problem reading XML returned from Webservice

2009-06-01 Thread Claudio M. E. Bastos Iorio
Hi, hope you guys can help me.

I'm using Flex 3.3 + .NET Web Services.

I get an XML like this one from my web service (simplified):


  

  1
  Some Name here
  Some description here

  


It's supposed that something like this should trace the "Name" value, right?:

//code in result function for webservice component
var lastXML:XML = XML(event.result)
trace("Name in XML: " + lastXML..Fund[0].Name); //gives me an Error: A term is 
undefined and has no properties.

But, if I manually add the XML in the code, and removes the whole xmlns schema 
my code works... What am I doing wrong here?

TIA

_
Claudio M. E. Bastos Iorio
http://www.blumersolutions.com




[flexcoders] when text is too big you get .....

2009-06-01 Thread luvfotography
I've seen this in some places when the test doesn't fit into the box, or label 
you get the '' and the text is truncated.
Is this a feature that you can turn on or off?
and what components offer this feature?
thanks




RE: [flexcoders] when text is too big you get .....

2009-06-01 Thread Wildbore, Brendon
This is a feature you can turn on or off.
With the label component you use the following setting : truncateToFit="false"
I'm not sure what other components have this setting.


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of luvfotography
Sent: Tuesday, 2 June 2009 9:40 a.m.
To: flexcoders@yahoogroups.com
Subject: [flexcoders] when text is too big you get .





I've seen this in some places when the test doesn't fit into the box, or label 
you get the '' and the text is truncated.
Is this a feature that you can turn on or off?
and what components offer this feature?
thanks



[flexcoders] Is this list declining?

2009-06-01 Thread luvfotography
Is this list declining?  According to the number of posts, May stats were the 
lowest since Jan 2006.  It's been slowly declining since March 2008.  Is this 
because of better resources available?  All the bugs are fixed?  All of us now 
write better code?
What's your opinion?
Message history is shown: http://tech.groups.yahoo.com/group/flexcoders/
thanks,
steve





RE: [flexcoders] Is this list declining?

2009-06-01 Thread Tim Rowe
Hm, I notice a steady decline since I joined.  Coincidence? :)

But no, think quality not quantity.

--Tim


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of luvfotography
Sent: Tuesday, 2 June 2009 7:48 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Is this list declining?




Is this list declining? According to the number of posts, May stats were the 
lowest since Jan 2006. It's been slowly declining since March 2008. Is this 
because of better resources available? All the bugs are fixed? All of us now 
write better code?
What's your opinion?
Message history is shown: http://tech.groups.yahoo.com/group/flexcoders/
thanks,
steve





Re: [flexcoders] Is this list declining?

2009-06-01 Thread Alan Rother
Mailing lists and users groups tend to explode when a product is new and
start to wane off when it becomes mature. There are many reasons why, but
yes leading that is there are more / better resources to get answers. I like
to think it's partly because the [product has gotten better as well...

My user group has been around for 10 years now and there is a lot of
apathy amongst even the most doe hard members. They all show up when a new
version gets released.

I think we can expect the traffic on the list to pick back up after Gumbo
gets released.


=]

-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org


Re: [flexcoders] How does one implement IBitmapDrawable

2009-06-01 Thread Rick Winscot

IBitmapDrawable is implementd by flash.display.DisplayObject... of which
Flex mx.core.UIComponet extends. So... If you want to create something that
you can groggle BitmapData with ­ that¹s a pretty good place to start.

http://livedocs.adobe.com/flex/3/langref/mx/core/UIComponent.html

Cheers,

Rick Winscot


On 6/1/09 4:39 PM, "Stephen More"  wrote:

>  
>   
> 
>   
> 
> Given this code:
> 
> var bitmapData:BitmapData;
> bitmapData.draw( IBitmapDrawable( target ) );
> 
> What method(s) does target need to implement so that bitmapData will
> have valid data in it ?
> Can anyone provide an example ?
> 
> -Thanks
>   
> 
> 
>> 



Re: [flexcoders] HTML Formatting lost in TextArea

2009-06-01 Thread Dave Glasser
I'm encountering a strange problem which I can't reliably replicate. I have a 
TextArea. During its lifetime, I set the htmlText property one time with a 
string of HTML that includes an IMG tag. The text property never gets set.



Sometimes, when the TextArea is first displayed, I'll see that all of its HTML 
is formatted properly for a few seconds, with various fonts, font styles, 
sizes, colors, etc., and then suddenly it will re-render itself and all of the 
text will be in a single font, size, color and style. Things like paragraph 
breaks and bulleted lists are preserved, however.



The only styles that are getting set on this TextArea are paddingLeft and 
paddingRight. Although I have an embedded font in the application, it's not 
being set in any stylesheets, only through explicit setStyle calls, and only 
where text needs to be rotated. So I don't think that has anything to do with 
the issue.



I'm using Flex 3.1, whatever version that was current on 8/25/2008. As I 
mentioned, this can't be reliably replicated. Sometimes it works correctly when 
following the same path through the application, and sometimes it doesn't.



Does anyone have any ideas on what might be causing this? 




 

  


__._,_.
 
















Re: [flexcoders] How to make FTE text selectable and editable?

2009-06-01 Thread Manish Jethani
Thanks. I was wondering why the FTE components didn't have any option
for making the text selectable and editable, but now it makes sense.

I guess my issue with using TLF is that it adds min. 60-70K to my SWF
size. This is an ActionScript-only project with Flex 3.

I know TLF is part of Flex 4, so I get the benefit of framework
caching, but I just want to use TLF and not the rest of the Flex
framework. Is there an option to get a .swz for just TLF?

Manish

On Tue, Jun 2, 2009 at 12:51 AM, Gordon Smith  wrote:
>
>
> That's correct. FTE simply creates TextLines that display text and contain
> information about glyph bounds, etc. All selection and editing must be
> handled in ActionScript. Use have to use TLF or a TLF-based component,
> unless you want to roll your own text editor.
>
>
>
> - Gordon
>
>
>
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of Alex Harui
> Sent: Monday, June 01, 2009 10:55 AM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] How to make FTE text selectable and editable?
>
>
>
>
> I think you’ll have to use TLF or write your own.  The whole point of FTE is
> to put text on the screen without each text instance needing to carry the
> capabilities of selection and interaction.
>
>
>
> 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 Manish Jethani
> Sent: Sunday, May 31, 2009 5:18 PM
> To: Flexcoders
> Subject: [flexcoders] How to make FTE text selectable and editable?
>
>
>
>
>
> I have this program (Flash Player 10):
>
> var elementFormat:ElementFormat = new ElementFormat();
> elementFormat.fontSize = 48;
> var textElement:TextElement = new TextElement("Hello,
> world", elementFormat)
> var textBlock:TextBlock = new TextBlock(textElement);
> var textLine:TextLine = textBlock.createTextLine();
> textLine.y = textLine.ascent;
> addChild(textLine);
>
> How do I make the text selectable and editable?
>
> (Note: I'm not using the Text Layout Framework.)
>
> Manish
>
> 




--
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.comYahoo! 
Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:flexcoders-dig...@yahoogroups.com 
mailto:flexcoders-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
flexcoders-unsubscr...@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



[flexcoders] Resource bundles and static vars

2009-06-01 Thread Tim Rowe
I'm trying to resolve an issue whereby we have a heap of structures defined in 
static arrays, and one of the params is a string of text.  Ideally this string 
would come from a resource bundle to allow localization on the string.

The problem is that though I've tried a variety of methods, I cannot get any 
resouce bundle values into this variable.

Effectively the code I have is
public static const foo = ResourceManager.getInstance().getString('myBundle', 
'myKey');
Although it's a little more glammed up than that (but I've tried it in this 
basic form). In the attempts I've gone as far as to even try having a utility 
class which calls out to a singleton, but even within that singleton when 
accessed via a static all values and ResourceBundles from ResourceManager come 
back as null values.

None of the other mxml elements seem to have issues reading the same resource 
bundle - when addressed via @Resource(bundle='foo', key='bar') and similar they 
all find the values in the .properties file just fine. Unfortunately the nature 
of these variables makes it highly preferable they're left as statics, though 
it is beginning to appear that might not be viable.

Would anyone have any suggestions on this?  It's not the first time I've had 
this problem, but last time we just gave up trying from memory.  Is it just a 
case that the ResourceBundles aren't loaded and accessable at the time statics 
are initialised, or is there something more simple (or perhaps more sinister?) 
going on?

Thanks,

Tim Rowe
Software Engineer
carsales.com Ltd

Level 1, 109 Burwood Road
Locked Bag 
Hawthorn VIC 3211

t: 03 9093 8600 (Reception)
t: 03 9093 8757 (Direct)
f: 03 9093 8697



Re: [flexcoders] Is this list declining?

2009-06-01 Thread Manish Jethani
Clearly the numbers are going down. This can't be good. We're entering
into a Flex recession.

I propose a stimulus plan. We need to boost the numbers by having a
long discussion about how the numbers are going down. This will make
Flex look good and ensure all our livelihoods (at the cost of employer
time -- but who cares!).

Manish

On Tue, Jun 2, 2009 at 3:17 AM, luvfotography
 wrote:
> Is this list declining?  According to the number of posts, May stats were the 
> lowest since Jan 2006.  It's been slowly declining since March 2008.  Is this 
> because of better resources available?  All the bugs are fixed?  All of us 
> now write better code?
> What's your opinion?
> Message history is shown: http://tech.groups.yahoo.com/group/flexcoders/
> thanks,
> steve
>
>
>
>
>
> 
>
> --
> 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.comYahoo! Groups Links
>
>
>
>


Re: [flexcoders] AIR & Computer Locking

2009-06-01 Thread Sam Lai
Should probably check to see if that point is still valid everytime
too, in case I'm on a dual monitor setup with the external monitor
being the primary one, then standby the machine, yank out the external
monitor then resume.

I wonder what you could do if I don't unlock my machine immediately
and a notification comes in. The previous saved point would be
invalid, but if you grab the point now, it wouldn't recognize the task
bar.

(never actually tested this, just thinking this through.)

On 6/2/09, Jake Churchill  wrote:
> That's how I'm going to work around it.  I just thought it'd be cool if
> there was a way to natively grab certain system info (outside of the network
> stuff)
>
>
>
> Jake Churchill
> CF Webtools
> 11204 Davenport, Ste. 100
> Omaha, NE  68154
>   http://www.cfwebtools.com
> 402-408-3733 x103
>
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of Rick Winscot
> Sent: Monday, June 01, 2009 3:02 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] AIR & Computer Locking
>
>
>
>
>
>
>
>
> What are your 'couple ways around this problem.' Are you thinking of using
> system idle?
>
> Is there a direct (easy) way to do this? None that I know of... typically
> these kinds of operations require a system call which would be OS specific
> and wouldn't be available to AIR without significant effort.
>
> Is there any reason you can't capture that point when the application starts
> and then re-use it for subsequent notifications?
>
> Cheers,
>
> Rick Winscot
>
>
>
> On 6/1/09 3:37 PM, "Jake Churchill"  wrote:
>
>
>
>
>
>
> Anyone know how to recognize if a computer is locked or not (Windows XP) in
> AIR?
>
>  I have an app that runs on the taskbar by the time. It periodically
> displays notifications which are placed at the bottom right of the screen.
> I get that position using Screen.mainScreen.visibleBounds.  This works just
> fine when the computer is unlocked.  However, when the computer is locked,
> the visibleBounds does not recognize the existence of the taskbar, so when I
> unlock the computer, half the notification is below the task bar.
>
> I can think of a couple ways around this problem, I just wanted to know if
> there was an easy way to find out if the computer is currently locked or
> not.
>
> Jake Churchill
> CF Webtools
> 11204 Davenport, Ste. 100
> Omaha, NE  68154
> http://www.cfwebtools.com 
> 402-408-3733 x103
>
>
>
>
>
>
>
> No virus found in this incoming message.
> Checked by AVG - www.avg.com
> Version: 8.5.339 / Virus Database: 270.12.48/2148 - Release Date: 06/01/09
> 06:09:00
>
>

-- 
Sent from my mobile device


Re: [flexcoders] Resource bundles and static vars

2009-06-01 Thread Manish Jethani
Try putting a breakpoint in SystemManager's
installCompiledResourceBundles() function. That's where the resource
bundles are set up.

It's possible that your class is being loaded before the resource
bundles are set up, and that's why you're getting null.

Manish

On Tue, Jun 2, 2009 at 5:08 AM, Tim Rowe  wrote:
>
>
> I'm trying to resolve an issue whereby we have a heap of structures defined
> in static arrays, and one of the params is a string of text.  Ideally this
> string would come from a resource bundle to allow localization on the
> string.
>
> The problem is that though I've tried a variety of methods, I cannot get any
> resouce bundle values into this variable.
>
> Effectively the code I have is
> public static const foo =
> ResourceManager.getInstance().getString('myBundle', 'myKey');
> Although it's a little more glammed up than that (but I've tried it in this
> basic form). In the attempts I've gone as far as to even try having a
> utility class which calls out to a singleton, but even within that singleton
> when accessed via a static all values and ResourceBundles from
> ResourceManager come back as null values.
>
> None of the other mxml elements seem to have issues reading the same
> resource bundle - when addressed via @Resource(bundle='foo', key='bar') and
> similar they all find the values in the .properties file just fine.
> Unfortunately the nature of these variables makes it highly preferable
> they're left as statics, though it is beginning to appear that might not be
> viable.
>
> Would anyone have any suggestions on this?  It's not the first time I've had
> this problem, but last time we just gave up trying from memory.  Is it just
> a case that the ResourceBundles aren't loaded and accessable at the time
> statics are initialised, or is there something more simple (or perhaps more
> sinister?) going on?
>
> Thanks,
>
> Tim Rowe
> Software Engineer
> carsales.com Ltd
>
> Level 1, 109 Burwood Road
> Locked Bag 
> Hawthorn VIC 3211
>
> t: 03 9093 8600 (Reception)
> t: 03 9093 8757 (Direct)
> f: 03 9093 8697
>
>
> 


RE: [flexcoders] Is this list declining?

2009-06-01 Thread Gordon Smith
There is a lot of traffic (>100 posts/day) on the Flex forum at

http://forums.adobe.com/community/flex/flex_general_discussion

The Adobe forums now support email.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Manish Jethani
Sent: Monday, June 01, 2009 4:56 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Is this list declining?





Clearly the numbers are going down. This can't be good. We're entering
into a Flex recession.

I propose a stimulus plan. We need to boost the numbers by having a
long discussion about how the numbers are going down. This will make
Flex look good and ensure all our livelihoods (at the cost of employer
time -- but who cares!).

Manish

On Tue, Jun 2, 2009 at 3:17 AM, luvfotography
mailto:ygroups%40all-digital-links.com>> wrote:
> Is this list declining?  According to the number of posts, May stats were the 
> lowest since Jan 2006.  It's been slowly declining since March 2008.  Is this 
> because of better resources available?  All the bugs are fixed?  All of us 
> now write better code?
> What's your opinion?
> Message history is shown: http://tech.groups.yahoo.com/group/flexcoders/
> thanks,
> steve
>
>
>
>
>
> 
>
> --
> 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.comYahoo! Groups Links
>
>
>
>



RE: [flexcoders] How to make FTE text selectable and editable?

2009-06-01 Thread Gordon Smith
Yes, TLF is packaged separately in textLayout.swc and textLayout.swz. We'll be 
hosting this SWZ along with framework.swz, flex4.swz, etc.

Gordon Smith
Adobe Flex SDK Team


-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Manish Jethani
Sent: Monday, June 01, 2009 4:41 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How to make FTE text selectable and editable?

Thanks. I was wondering why the FTE components didn't have any option
for making the text selectable and editable, but now it makes sense.

I guess my issue with using TLF is that it adds min. 60-70K to my SWF
size. This is an ActionScript-only project with Flex 3.

I know TLF is part of Flex 4, so I get the benefit of framework
caching, but I just want to use TLF and not the rest of the Flex
framework. Is there an option to get a .swz for just TLF?

Manish

On Tue, Jun 2, 2009 at 12:51 AM, Gordon Smith  wrote:
>
>
> That's correct. FTE simply creates TextLines that display text and contain
> information about glyph bounds, etc. All selection and editing must be
> handled in ActionScript. Use have to use TLF or a TLF-based component,
> unless you want to roll your own text editor.
>
>
>
> - Gordon
>
>
>
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of Alex Harui
> Sent: Monday, June 01, 2009 10:55 AM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] How to make FTE text selectable and editable?
>
>
>
>
> I think you'll have to use TLF or write your own.  The whole point of FTE is
> to put text on the screen without each text instance needing to carry the
> capabilities of selection and interaction.
>
>
>
> 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 Manish Jethani
> Sent: Sunday, May 31, 2009 5:18 PM
> To: Flexcoders
> Subject: [flexcoders] How to make FTE text selectable and editable?
>
>
>
>
>
> I have this program (Flash Player 10):
>
> var elementFormat:ElementFormat = new ElementFormat();
> elementFormat.fontSize = 48;
> var textElement:TextElement = new TextElement("Hello,
> world", elementFormat)
> var textBlock:TextBlock = new TextBlock(textElement);
> var textLine:TextLine = textBlock.createTextLine();
> textLine.y = textLine.ascent;
> addChild(textLine);
>
> How do I make the text selectable and editable?
>
> (Note: I'm not using the Text Layout Framework.)
>
> Manish
>
> 




--
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.comYahoo! 
Groups Links





RE: [flexcoders] Resource bundles and static vars

2009-06-01 Thread Gordon Smith
Reources are not loaded into the ResourceManager early enough for use at static 
initialization time. If you want a resource-based public static foo, do 
something like

private static var _foo:String;

public static function get foo():String
{
if (_foo == null)
_foo =ResourceManager.getInstance().getString(...);

return _foo;
}

so that foo is initialized just-in-time from a resource on first access.

In general, it's dangerous to have the static initialization value of something 
in one class depend on anything in another class, because the order in which 
classes get initialized is hard to figure out and you might have 
circular-dependencies.

Just-in-time initialization is a good general solution to these problems, at 
the cost of a simple null check on each access.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Manish Jethani
Sent: Monday, June 01, 2009 5:18 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Resource bundles and static vars





Try putting a breakpoint in SystemManager's
installCompiledResourceBundles() function. That's where the resource
bundles are set up.

It's possible that your class is being loaded before the resource
bundles are set up, and that's why you're getting null.

Manish

On Tue, Jun 2, 2009 at 5:08 AM, Tim Rowe 
mailto:tim.rowe%40carsales.com.au>> wrote:
>
>
> I'm trying to resolve an issue whereby we have a heap of structures defined
> in static arrays, and one of the params is a string of text.  Ideally this
> string would come from a resource bundle to allow localization on the
> string.
>
> The problem is that though I've tried a variety of methods, I cannot get any
> resouce bundle values into this variable.
>
> Effectively the code I have is
> public static const foo =
> ResourceManager.getInstance().getString('myBundle', 'myKey');
> Although it's a little more glammed up than that (but I've tried it in this
> basic form). In the attempts I've gone as far as to even try having a
> utility class which calls out to a singleton, but even within that singleton
> when accessed via a static all values and ResourceBundles from
> ResourceManager come back as null values.
>
> None of the other mxml elements seem to have issues reading the same
> resource bundle - when addressed via @Resource(bundle='foo', key='bar') and
> similar they all find the values in the .properties file just fine.
> Unfortunately the nature of these variables makes it highly preferable
> they're left as statics, though it is beginning to appear that might not be
> viable.
>
> Would anyone have any suggestions on this?  It's not the first time I've had
> this problem, but last time we just gave up trying from memory.  Is it just
> a case that the ResourceBundles aren't loaded and accessable at the time
> statics are initialised, or is there something more simple (or perhaps more
> sinister?) going on?
>
> Thanks,
>
> Tim Rowe
> Software Engineer
> carsales.com Ltd
>
> Level 1, 109 Burwood Road
> Locked Bag 
> Hawthorn VIC 3211
>
> t: 03 9093 8600 (Reception)
> t: 03 9093 8757 (Direct)
> f: 03 9093 8697
>
>
>



[flexcoders] Re: Is this list declining?

2009-06-01 Thread Teoti Graphix, LLC
*   Is this list declining?

 

 

I think Adobe swallowed some user in their new forums. I have noticed
traffic over there.

 

Plus as with mature software, there are hundreds of places to get lost with
Flex information now. Not to mention all the projects going on.

 

Mike



RE: [flexcoders] Resource bundles and static vars

2009-06-01 Thread Tim Rowe
That's exactly along the line I was looking at the problem being, though could 
only cofirm this through observed behavior rather than any actual underlying 
evidence.  In the mantime I've been looking at the problem and I've managed to 
switch the culprits to member variables (they had quite a few references to 
them from other classes as statics).

The idea you've mentioned of using the accessor is one I hadn't considered - 
quite a neat trick for getting around this.  I certainly agree on trying to 
avoid the use as you said - unfortunately I can control neither code that was 
written before I started working on this project nor all design decisions, 
regardless of how much I might object :)

Thanks for the confirmation,

--Tim


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Gordon Smith
Sent: Tuesday, 2 June 2009 10:26 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Resource bundles and static vars



Reources are not loaded into the ResourceManager early enough for use at static 
initialization time. If you want a resource-based public static foo, do 
something like
private static var _foo:String;
public static function get foo():String
{
if (_foo == null)
_foo =ResourceManager.getInstance().getString(...);
return _foo;
}
so that foo is initialized just-in-time from a resource on first access.
In general, it's dangerous to have the static initialization value of something 
in one class depend on anything in another class, because the order in which 
classes get initialized is hard to figure out and you might have 
circular-dependencies.
Just-in-time initialization is a good general solution to these problems, at 
the cost of a simple null check on each access.
Gordon Smith
Adobe Flex SDK Team
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Manish Jethani
Sent: Monday, June 01, 2009 5:18 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Resource bundles and static vars




Try putting a breakpoint in SystemManager's
installCompiledResourceBundles() function. That's where the resource
bundles are set up.

It's possible that your class is being loaded before the resource
bundles are set up, and that's why you're getting null.

Manish

On Tue, Jun 2, 2009 at 5:08 AM, Tim Rowe 
mailto:tim.rowe%40carsales.com.au>> wrote:
>
>
> I'm trying to resolve an issue whereby we have a heap of structures defined
> in static arrays, and one of the params is a string of text.  Ideally this
> string would come from a resource bundle to allow localization on the
> string.
>
> The problem is that though I've tried a variety of methods, I cannot get any
> resouce bundle values into this variable.
>
> Effectively the code I have is
> public static const foo =
> ResourceManager.getInstance().getString('myBundle', 'myKey');
> Although it's a little more glammed up than that (but I've tried it in this
> basic form). In the attempts I've gone as far as to even try having a
> utility class which calls out to a singleton, but even within that singleton
> when accessed via a static all values and ResourceBundles from
> ResourceManager come back as null values.
>
> None of the other mxml elements seem to have issues reading the same
> resource bundle - when addressed via @Resource(bundle='foo', key='bar') and
> similar they all find the values in the .properties file just fine.
> Unfortunately the nature of these variables makes it highly preferable
> they're left as statics, though it is beginning to appear that might not be
> viable.
>
> Would anyone have any suggestions on this?  It's not the first time I've had
> this problem, but last time we just gave up trying from memory.  Is it just
> a case that the ResourceBundles aren't loaded and accessable at the time
> statics are initialised, or is there something more simple (or perhaps more
> sinister?) going on?
>
> Thanks,
>
> Tim Rowe
> Software Engineer
> carsales.com Ltd
>
> Level 1, 109 Burwood Road
> Locked Bag 
> Hawthorn VIC 3211
>
> t: 03 9093 8600 (Reception)
> t: 03 9093 8757 (Direct)
> f: 03 9093 8697
>
>
>




[flexcoders] Mx:Http Service Refresh Issue

2009-06-01 Thread guess what

I am running into a stupid  Problem .

I have a Flex Data grid Constructed from mx:HttpService 

mx:HTTpService url="somethin.do" 

The result is an xml file . I am calling the HttpService on the mxmls 
creationComplete .
the First time I call the html file [ the actual flex html ] it works fine . 
The next time I call it actually does not hit my Controller method. It just 
populates the data grid from the cache or  shows the same Data .

if I close the browser and open again it works fine .

Can anyone let me know the solution for this .


Thanks 



  


Re: [flexcoders] Mx:Http Service Refresh Issue

2009-06-01 Thread Manish Jethani
On Tue, Jun 2, 2009 at 6:12 AM, guess what  wrote:

> I have a Flex Data grid Constructed from mx:HttpService
>
> mx:HTTpService url="somethin.do"
>
> The result is an xml file . I am calling the HttpService on the mxmls 
> creationComplete .
> the First time I call the html file [ the actual flex html ] it works fine . 
> The next time I call it actually does not hit my Controller method. It just 
> populates the data grid from the cache or  shows the same Data .
>
> if I close the browser and open again it works fine .

You're hitting the browser cache.

How about this:

  mx:HTTpService url="somethin.do?"

Manish


Re: [flexcoders] Problem reading XML returned from Webservice

2009-06-01 Thread Manish Jethani
On Tue, Jun 2, 2009 at 2:56 AM, Claudio M. E. Bastos Iorio
 wrote:

> I get an XML like this one from my web service (simplified):
>
>  xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/' 
> xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' 
> xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
>  
>    
>      1
>      Some Name here
>      Some description here
>    
>  
> 
>
> It's supposed that something like this should trace the "Name" value, right?:
>
> //code in result function for webservice component
> var lastXML:XML = XML(event.result)
> trace("Name in XML: " + lastXML..Fund[0].Name); //gives me an Error: A term 
> is undefined and has no properties.

You need to use a namespace.

  var ns:Namespace = new Namespace("http://mydomain.com/";);

  trace(lastXML.ns::ListFundsResult);

Or,

  default xml namespace = new Namespace("http://mydomain.com/";);

  trace(lastXML.ListFundsResult);

Manish


RE: [flexcoders] Resource bundles and static vars

2009-06-01 Thread Gordon Smith
> I can control neither code that was written before I started working on this 
> project nor all design decisions

But if you point out that one of the Flex SDK engineers said "don't do that", 
maybe they won't do it any more. :)

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Tim Rowe
Sent: Monday, June 01, 2009 5:34 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Resource bundles and static vars




That's exactly along the line I was looking at the problem being, though could 
only cofirm this through observed behavior rather than any actual underlying 
evidence.  In the mantime I've been looking at the problem and I've managed to 
switch the culprits to member variables (they had quite a few references to 
them from other classes as statics).

The idea you've mentioned of using the accessor is one I hadn't considered - 
quite a neat trick for getting around this.  I certainly agree on trying to 
avoid the use as you said - unfortunately I can control neither code that was 
written before I started working on this project nor all design decisions, 
regardless of how much I might object :)

Thanks for the confirmation,

--Tim


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Gordon Smith
Sent: Tuesday, 2 June 2009 10:26 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Resource bundles and static vars
Reources are not loaded into the ResourceManager early enough for use at static 
initialization time. If you want a resource-based public static foo, do 
something like
private static var _foo:String;
public static function get foo():String
{
if (_foo == null)
_foo =ResourceManager.getInstance().getString(...);
return _foo;
}
so that foo is initialized just-in-time from a resource on first access.
In general, it's dangerous to have the static initialization value of something 
in one class depend on anything in another class, because the order in which 
classes get initialized is hard to figure out and you might have 
circular-dependencies.
Just-in-time initialization is a good general solution to these problems, at 
the cost of a simple null check on each access.
Gordon Smith
Adobe Flex SDK Team
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Manish Jethani
Sent: Monday, June 01, 2009 5:18 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Resource bundles and static vars





Try putting a breakpoint in SystemManager's
installCompiledResourceBundles() function. That's where the resource
bundles are set up.

It's possible that your class is being loaded before the resource
bundles are set up, and that's why you're getting null.

Manish

On Tue, Jun 2, 2009 at 5:08 AM, Tim Rowe 
mailto:tim.rowe%40carsales.com.au>> wrote:
>
>
> I'm trying to resolve an issue whereby we have a heap of structures defined
> in static arrays, and one of the params is a string of text.  Ideally this
> string would come from a resource bundle to allow localization on the
> string.
>
> The problem is that though I've tried a variety of methods, I cannot get any
> resouce bundle values into this variable.
>
> Effectively the code I have is
> public static const foo =
> ResourceManager.getInstance().getString('myBundle', 'myKey');
> Although it's a little more glammed up than that (but I've tried it in this
> basic form). In the attempts I've gone as far as to even try having a
> utility class which calls out to a singleton, but even within that singleton
> when accessed via a static all values and ResourceBundles from
> ResourceManager come back as null values.
>
> None of the other mxml elements seem to have issues reading the same
> resource bundle - when addressed via @Resource(bundle='foo', key='bar') and
> similar they all find the values in the .properties file just fine.
> Unfortunately the nature of these variables makes it highly preferable
> they're left as statics, though it is beginning to appear that might not be
> viable.
>
> Would anyone have any suggestions on this?  It's not the first time I've had
> this problem, but last time we just gave up trying from memory.  Is it just
> a case that the ResourceBundles aren't loaded and accessable at the time
> statics are initialised, or is there something more simple (or perhaps more
> sinister?) going on?
>
> Thanks,
>
> Tim Rowe
> Software Engineer
> carsales.com Ltd
>
> Level 1, 109 Burwood Road
> Locked Bag 
> Hawthorn VIC 3211
>
> t: 03 9093 8600 (Reception)
> t: 03 9093 8757 (Direct)
> f: 03 9093 8697
>
>
>



[flexcoders] SWFLoader to load Flash Lite SWF in Flex

2009-06-01 Thread twcrone70
I am using the SWFLoader to load a swf built for Flash Lite's VM (version?) 
into a Flex window built to run in Flash 9+.  The SWFs seem to load but 
interacting with them is a little sketchy.  In an HTML wrapper they work fine.

How do I force the SWFs to be loaded in a different version Flash VM perhaps?

Thanks,

- Todd



[flexcoders] Re: Binding question

2009-06-01 Thread steve horvath
Weird, I had to use the event="albumToggledEvent" for the includedAlbums
getter property and do project->clean.

Spent a whole lot of time on this.  So I guess the lesson learned here
is when you think you've got your bindings set up correctly and they
still don't work, project->clean.

ascii


--- In flexcoders@yahoogroups.com, "steve horvath" 
wrote:
>
> I am trying to bind the checkbox selected property as written below.
> The value of selected should be triggered whenever currentPresentation
> changes or whenever albumIncluded(data) returns a different value. 
The
> checkbox is in a List itemRenderer component.
>
> ItemRenderer
> 
>  selected="{presentations.currentPresentation.albumIncluded(data as
> Album)}" />
>
> 
> 
> 
>
> The albumIncluded function is in a class called Media and is coded as
> follows:
>
> Media class (the class is marked [Bindable])
> -
> private var _includedAlbums:ArrayCollection /* of Albums */ =new
> ArrayCollection();
>
> public function includeAlbum(album:Album):void {
> _includedAlbums.addItem(album);
> if (!currentAlbum)
> currentAlbum = album;
> dispatchEvent(new Event("albumToggledEvent"));
> }
>
> [Bindable(event="albumToggledEvent")]
> public function albumIncluded(album:Album):Boolean {
> return _includedAlbums.getItemIndex(album) >= 0;
> }
>
> Apparently the albumIncluded function doesn't fire when includeAlbum()
> function is called.
>
> So I put a read-only property called includedAlbums in Media which is
> supposed to be triggered when _includedAlbums changes.
>
> Media class (class is Bindable)
> 
> private var _includedAlbums:ArrayCollection /* of Albums */ =new
> ArrayCollection();
>
> public function includeAlbum(album:Album):void {
> _includedAlbums.addItem(album);
> if (!currentAlbum)
> currentAlbum = album;
> dispatchEvent(new Event("albumToggledEvent"));
> }
>
> [Bindable(event="albumToggledEvent")]
> public function albumIncluded(album:Album):Boolean {
> return _includedAlbums.getItemIndex(album) >= 0;
> }
>
> [Bindable(event="none")] // handles runtime binding warnings
> public function get includedAlbums():ArrayCollection /* of Albums */ {
> return _includedAlbums;
> }
>
> And added a helper function to the ItemRenderer component, with the
idea
> that if either currentPresentation or includedAlbums changed it would
> fire the helper function which would return the correct value for the
> checkbox selected property.
>
> ItemRenderer
> ---
>
> 
selected="{albumToggleHelper(presentations.currentPresentation.includedA\
\
> lbums)}" />
>
> 
> 
> 
>
> But it looks like the includedAlbums property is never firing an
event.
> How do I get my checkbox selected to set to the right value?
>
> (Note: I also tried setting the bindable event tag to
> event="albumToggledEvent" for the includedAlbums getter property, and
it
> still didn't work.)
>
> ascii
>



Re: [flexcoders] Is this list declining?

2009-06-01 Thread Jeffry Houser


Although I don't have stats, it is my impression that the Adobe Flex 
Forums have seen a big rise in usage since the recent switch in forum 
software, perhaps some in favor of this list. 

I'd argue that the e-mail support of the new forums is not there yet, 
though. 

I've never had an e-mail response I sent show up on the correct thread; 
but they have shown up in misplaced threads on the dreamweaver and 
illustrator forums. 



Gordon Smith wrote:



There is a lot of traffic (>100 posts/day) on the Flex forum at

 


http://forums.adobe.com/community/flex/flex_general_discussion

 


The Adobe forums now support email.

 


Gordon Smith

Adobe Flex SDK Team

 

*From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] 
*On Behalf Of *Manish Jethani

*Sent:* Monday, June 01, 2009 4:56 PM
*To:* flexcoders@yahoogroups.com
*Subject:* Re: [flexcoders] Is this list declining?

 





Clearly the numbers are going down. This can't be good. We're entering
into a Flex recession.

I propose a stimulus plan. We need to boost the numbers by having a
long discussion about how the numbers are going down. This will make
Flex look good and ensure all our livelihoods (at the cost of employer
time -- but who cares!).

Manish

On Tue, Jun 2, 2009 at 3:17 AM, luvfotography
> wrote:
> Is this list declining?  According to the number of posts, May stats 
were the lowest since Jan 2006.  It's been slowly declining since 
March 2008.  Is this because of better resources available?  All the 
bugs are fixed?  All of us now write better code?

> What's your opinion?
> Message history is shown: http://tech.groups.yahoo.com/group/flexcoders/
> thanks,
> steve
>
>
>
>
>
> 
>
> --
> 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.comYahoo! Groups 
Links

>
>
>
>






--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust



Re: [flexcoders] How does one implement IBitmapDrawable

2009-06-01 Thread Stephen More
The docs do not say much about IBitmapDrawable:
http://livedocs.adobe.com/flex/3/langref/flash/display/IBitmapDrawable.html

In your example lets say I create:
MyUIComponet extends UIComponet

What method do I need to write in MyUIComponet such that I can respond
back with an embeded image instead of  the rendering of the children
of UIComponet when IBitmapDrawable is called ?




On Mon, Jun 1, 2009 at 6:08 PM, Rick Winscot  wrote:
> IBitmapDrawable is implementd by flash.display.DisplayObject... of which
> Flex mx.core.UIComponet extends. So... If you want to create something that
> you can groggle BitmapData with – that’s a pretty good place to start.
>
> http://livedocs.adobe.com/flex/3/langref/mx/core/UIComponent.html
>
> Cheers,
>
> Rick Winscot
>
>
> On 6/1/09 4:39 PM, "Stephen More"  wrote:
>
> Given this code:
>
> var bitmapData:BitmapData;
> bitmapData.draw( IBitmapDrawable( target ) );
>
> What method(s) does target need to implement so that bitmapData will
> have valid data in it ?
> Can anyone provide an example ?




--
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.comYahoo! 
Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:flexcoders-dig...@yahoogroups.com 
mailto:flexcoders-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
flexcoders-unsubscr...@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



Re: [flexcoders] Mx:Http Service Refresh Issue

2009-06-01 Thread guess what
No that does not work .

--- On Mon, 6/1/09, Manish Jethani  wrote:

From: Manish Jethani 
Subject: Re: [flexcoders] Mx:Http Service Refresh Issue
To: flexcoders@yahoogroups.com
Date: Monday, June 1, 2009, 8:01 PM











 











  
  On Tue, Jun 2, 2009 at 6:12 AM, guess what  
wrote:



> I have a Flex Data grid Constructed from mx:HttpService

>

> mx:HTTpService url="somethin. do"

>

> The result is an xml file . I am calling the HttpService on the mxmls 
> creationComplete .

> the First time I call the html file [ the actual flex html ] it works fine . 
> The next time I call it actually does not hit my Controller method. It just 
> populates the data grid from the cache or  shows the same Data .

>

> if I close the browser and open again it works fine .



You're hitting the browser cache.



How about this:



mx:HTTpService url="somethin. do?"



Manish


 

  




 






















  

[flexcoders] Vertical scroll bar not reseting

2009-06-01 Thread al-al :D
Hi!

I have an application with a ViewStack and binded LinkBar, which has 2 views, a 
DataGrid on the first, and the Form on the second. Clicking an item in the 
DataGrid transfers the user to the Form view. 

I have a problem regarding the scroll bar not reseting to its original 
position, which is at the top most. The Form on the second view is too long for 
the Canvas it sits on, so naturally it has a scroll bar. So when I click a 
record from the DataGrid for the first time, the Form view appears just fine, 
with the scroll bar on top. When I scroll down, navigate to the first view via 
the LinkBar, and select another record, the Form view appears with the scroll 
position right where I left it. How do I do this? I have tried using 
scrollPosition set to 0 but to no effect. 

Thanks in advance! :)





[flexcoders] Re: FilterFunction creating duplicate items in the list

2009-06-01 Thread Tim Hoff

> I update the corresponding item in the dataprovider using setItemAt.
(I
> typecast dataprovider as Arraycollection).
> Recently I added some filters to the room list using
> filterfunction. As soon as I start applying filters, I see few items
getting
> duplicated in the list. Some items exist with old values as well as
new
> values.

Ok, so your indexes are not synchronized; returned data is getting set
on the wrong items.  How are you determining the correct index when
using setItemAt()?  If you're storing the position index when the
ArrayCollection is un-filtered, and then filtering, the old index may
not be the same as the new index in the filtered ArrayCollection.  You
can loop through the ArrayCollection and check the item's id field
against the updated return item:

public function getRoomResult( newRoomVO : RoomVO ) : void
{
  for each ( var oldRoomVO : RoomVO in rooms )
  {
   if ( newRoomVO.id == oldRoomVO.id )
   {
rooms.setItemAt( newRoomVO, getItemIndex( oldRoomVO ) );
return;
   }
  }
}

However, this wouldn't update any items that were not included in the
ArrayCollection, because of a filter.  Updating the source Array itself
would also do the trick.  But, you would have to re-cast the
ArrayCollection after an update.

Just a few thoughts,
-TH

--- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
>
>
> Sounds like your itemRenderer might not be clearing out old data
> correctly. Check out Question 2 in Amy's FAQ:
>
> http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf
> 
>
> -TH
>
> --- In flexcoders@yahoogroups.com, Rohit Sharma rohit.sharma1982@
> wrote:
> >
> > Hi All,
> >
> > I am stuck up with this problem. Please provide some insight into
> > it.
> >
> > " I have a list component which shows all the game rooms currently
> existing.
> > As soon as some property of the room changes,
> > I update the corresponding item in the dataprovider using setItemAt.
> (I
> > typecast dataprovider as Arraycollection).
> > Recently I added some filters to the room list using
> > filterfunction. As soon as I start applying filters, I see few items
> getting
> > duplicated in the list. Some items exist with old values as well as
> new
> > values.
> > I also tried making the filtering and updating actions mutually
> > exclusive using flags hoping that two different actions taking
> > place on the same data might cause duplication of items. But the
> duplication
> > is still taking place.
> > In fact I tried using itemUpdate() also in place of setItemAt but
the
> > problem still persists.
> > I have also tried modifying only the source array during updates
> because the
> > filtering takes place only on the ArrayCollection and
> > not on the source array but this also failed."
> >
> > Any inputs will be appreciated.
> >
> > Thanks,
> > Rohit
> >
>




RE: [flexcoders] Mx:Http Service Refresh Issue

2009-06-01 Thread Tracy Spratt
The "somethin. do" has to be unique each time. Some people use
Date.getTime().  You can also try using POST instead of GET.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of guess what
Sent: Monday, June 01, 2009 10:39 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Mx:Http Service Refresh Issue

 







No that does not work .

--- On Mon, 6/1/09, Manish Jethani  wrote:


From: Manish Jethani 
Subject: Re: [flexcoders] Mx:Http Service Refresh Issue
To: flexcoders@yahoogroups.com
Date: Monday, June 1, 2009, 8:01 PM

On Tue, Jun 2, 2009 at 6:12 AM, guess what  wrote:

> I have a Flex Data grid Constructed from mx:HttpService
>
> mx:HTTpService url="somethin. do"
>
> The result is an xml file . I am calling the HttpService on the mxmls
creationComplete .
> the First time I call the html file [ the actual flex html ] it works fine
. The next time I call it actually does not hit my Controller method. It
just populates the data grid from the cache or  shows the same Data .
>
> if I close the browser and open again it works fine .

You're hitting the browser cache.

How about this:

mx:HTTpService url="somethin. do?"

Manish

 





[flexcoders] Referencing Hiddenfield in html page

2009-06-01 Thread Angelo Anolin
Hi FlexCoders,

As I am trying to build a simple little application, I want to know how flex 
can access a hiddenfield value in an html (or aspx) page?

In one of the old aspx application we have, we are using the 
HttpContext.Current.Request.ServerVariables to get the logged in User Name.

Since I am hosting the compiled SWF file in an aspx/html page, I need to be 
able to pass the logged user details which I store in a hiddenfield in my aspx 
page to Flex.  Any advice/suggestions?

Thanks.


  

RE: [flexcoders] extract data from advancedDataGrid. Please help.

2009-06-01 Thread Tracy Spratt
selectedItem is a reference to the  node that was clicked.  No
need to use the index:

var xmlLocation= XML(agd.selectedItem);

var sRegion:String = xmllocati...@region;

var sTitle:String = xmlLocation.details[0].21_title;

trace(xmlLocation.toXMLString())

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of scorptique
Sent: Saturday, May 30, 2009 8:15 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] extract data from advancedDataGrid. Please help.

 







I know http://forums. 
adobe.com/thread/131416 has the answer inside but i dont
understand what it means (hierarchy and cursor thingies) and how to use it.
I dont know where to go after "var itemFromCursor:Object = cursor.current;".

Only manage to understand until the getting selected index, and I got it.
But I dont know how to use it to extract the data from that row and trace it
out. please help me add on to my doubleClickHandler function. These are my
codes.

my xml file.














-- 

my actionscript code in the main mxml file

private function doubleClickHandler():void
{ 
var item:Object = agd.selectedItem;
var index:int = agd.selectedIndex;

if (!item || index == -1)
return ;
Alert.show("Double Clicked item index:" + index); 
}

-- 








-- 
View this message in context: http://www.nabble.

com/extract-data-from-advancedDataGrid.-Please-help.-tp23798641p23798641.htm
l
Sent from the FlexCoders mailing list archive at Nabble.com.





Re: [flexcoders] Re: May I install Flex 3 builder and new Flash builder in same computer

2009-06-01 Thread Nate Beck
Which version of the Flex SDK are you compiling against?  If it's the Flex 4
SDK, you MUST compile and run against Flash Player 10.
What do you mean you don't want to go thru its installation?

On Mon, Jun 1, 2009 at 11:20 AM, markgoldin_2000
wrote:

>
>
> When I try to debug/run a project from new Builder it complains about FP
> version. I dont want to go thru its installation. What should I do?
>
>
> --- In flexcoders@yahoogroups.com , Sam Lai
>  wrote:
> >
> > "You can install a separate copy of Flash Builder 4 standalone and it
> > will remain separate from any Flex Builder 2 or 3 installations. Also,
> > workspaces created in Flex Builder 2 or Flex Builder 3 are not
> > supported by Flash Builder 4. Lastly, Flash Builder 4 can import
> > existing Flex Builder projects, but a project that has its settings
> > modified by Flash Builder 4 will no longer open in Flex Builder 3 or
> > Flex Builder 2."
> >
> > It is still a beta btw.
> >
> > 2009/6/1 markflex2007 :
> > > New Flash Builder just come out.May I install it with Flex Builder 3?
> > >
> > > Thanks
> > >
> > > Mark
> > >
> > >
> > >
> > > 
> > >
> > > --
> > > 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.comYahoo! Groups
> Links
> > >
> > >
> > >
> > >
> >
>
>  
>



-- 

Cheers,
Nate

http://blog.natebeck.net


RE: [flexcoders] Referencing Hiddenfield in html page

2009-06-01 Thread Tracy Spratt
You can use ExternalInterface to call javascript to get it into Flex or you
can pass the data into the Flex app via flashvars when you start the app.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Angelo Anolin
Sent: Monday, June 01, 2009 11:47 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Referencing Hiddenfield in html page

 






Hi FlexCoders,

 

As I am trying to build a simple little application, I want to know how flex
can access a hiddenfield value in an html (or aspx) page?

 

In one of the old aspx application we have, we are using the
HttpContext.Current.Request.ServerVariables to get the logged in User Name.

 

Since I am hosting the compiled SWF file in an aspx/html page, I need to be
able to pass the logged user details which I store in a hiddenfield in my
aspx page to Flex.  Any advice/suggestions?

 

Thanks.

 





[flexcoders] Re: Sorting in AdvancedDataGrid happens only once, please help

2009-06-01 Thread yossi.baram
Did any one came across this scenario? :(
--- In flexcoders@yahoogroups.com, "yossi.baram"  wrote:
>
> Hi guys,
> My AdvancedDataGrid shows a tree, 
> I set sortableColumns="true" sortExpertMode="true",
> But when I click on one of the columns, they are sorted in descending way, 
> when I click again  - Nothing happens,
> Why
> Why doesnt the default sorting work in my AdvancedDataGrid?
> Do I need a custom sorter? and if so, what functions should I override?
> 
> Thanks for the help
> Jo
>




RE: [flexcoders] SWFLoader to load Flash Lite SWF in Flex

2009-06-01 Thread Alex Harui
Are you sure the target player for Flash Lite is FP9?  You can try loading it 
from a different domain to try to sandbox it, but if the target player is <= 8 
then it is already in its own VM (VM1/AS1or2 vs VM2/AS3).

Interaction problems could stem from incompatibilities with the Flex 
FocusManager, or assumptions about the Stage or root and input events in the 
Flash LIte SWF.

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 twcrone70
Sent: Monday, June 01, 2009 6:33 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] SWFLoader to load Flash Lite SWF in Flex





I am using the SWFLoader to load a swf built for Flash Lite's VM (version?) 
into a Flex window built to run in Flash 9+. The SWFs seem to load but 
interacting with them is a little sketchy. In an HTML wrapper they work fine.

How do I force the SWFs to be loaded in a different version Flash VM perhaps?

Thanks,

- Todd



Re: [flexcoders] Vertical scroll bar not reseting

2009-06-01 Thread Manish Jethani
On Tue, Jun 2, 2009 at 8:39 AM, al-al :D  wrote:

> I have an application with a ViewStack and binded LinkBar, which has 2 views, 
> a DataGrid on the first, and the Form on the second. Clicking an item in the 
> DataGrid transfers the user to the Form view.
>
> I have a problem regarding the scroll bar not reseting to its original 
> position, which is at the top most. The Form on the second view is too long 
> for the Canvas it sits on, so naturally it has a scroll bar. So when I click 
> a record from the DataGrid for the first time, the Form view appears just 
> fine, with the scroll bar on top. When I scroll down, navigate to the first 
> view via the LinkBar, and select another record, the Form view appears with 
> the scroll position right where I left it. How do I do this? I have tried 
> using scrollPosition set to 0 but to no effect.

You have to set the second container's verticalScrollPosition to 0 in
the change event of the ViewStack object.

Example:


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

  


  

  


Manish


Re: [flexcoders] How does one implement IBitmapDrawable

2009-06-01 Thread Manish Jethani
On Tue, Jun 2, 2009 at 7:52 AM, Stephen More  wrote:
> The docs do not say much about IBitmapDrawable:
> http://livedocs.adobe.com/flex/3/langref/flash/display/IBitmapDrawable.html
>
> In your example lets say I create:
>    MyUIComponet extends UIComponet
>
> What method do I need to write in MyUIComponet such that I can respond
> back with an embeded image instead of  the rendering of the children
> of UIComponet when IBitmapDrawable is called ?

IBitmapDrawable is a "marker" interface. It doesn't actually have any
methods that you can implement.

Basically BitmapData.draw() will just capture the object as it would
appear on the screen. I don't believe that the IBitmapDrawable object
gets any sort of notification when it is being drawn. You can of
course notify it yourself so it can redraw itself a different way
before calling BitmapData.draw().

Manish


[flexcoders] Re: Problem reading XML returned from Webservice

2009-06-01 Thread Claudio M. E. Bastos Iorio
Thanks for your response.
It seems like my problem is that my xml code is using the 
xmlns='http://mydomainname.com/' every time and this is included in the xml 
definition.

I tried:
var ns:Namespace = new Namespace("bs");
myXML.setNamespace(ns);
trace("myXML.namespace()); //returns bs, ok. But:
//I receive an error on:
trace("Name:  " + myXML..Fund[0].Name); //A term is undefined and has no 
properties

Also tried,
default xml namespace = new Namespace("http://anotherdomain.com/";);
//and also tried default xml namespace = new Namespace("somethingelsehere");
trace("myXML.namespace()); //always return http://mydomain.com/, why?
//I also receive an error on:
trace("Name:  " + myXML..Fund[0].Name); //A term is undefined and has no 
properties

Is there any way to copy to other xml/lose the namespace that is giving me 
problems?? How?

Thanks.

_
Claudio M. E. Bastos Iorio
http://www.blumersolutions.com