[flexcoders] SwfObject and 3.41 compiler - why not?

2009-11-04 Thread djhatrick
I've been using the swfobject compiler for a while now and, it's ease of use 
and simple api is great.  I know on Flashbuilder 4 projects that use the new 
compiler and actionscript project, the swfOBject template is used

Question:  How come after the cross-scripting vulnerability in the AC_OETags.js 
file wasn't the swfObject template replaced?  Just curious


Here's a good template to use the browserHistoryManager with SWFAddress, 
another great tool.

http://olegflex.blogspot.com/2008/06/swfobject-2-flex-template.html

Thanks,
Patrick



[flexcoders] Re: Fonts re-vanishing in module - Solved finally

2009-11-04 Thread djhatrick
I didn't trace I used the debugger but it doesn't seem to be a problem now.

Wow how dumb of me, i had the style sheet embedded to the module and didn't 
even notice, probably because it was the first one  I created.

This is fixed and I am doing things properly, this is great read for anybody 
who is diving into the fantastic land of modules and how style work with them:

http://livedocs.adobe.com/flex/3/html/help.html?content=styles_10.html



--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> How did you prove it is null?  IIRC, it doesn't always trace() very well.
> 
> From: flexcoders@yahoogroups.com [flexcod...@yahoogroups.com] On Behalf Of 
> djhatrick [djhatr...@...]
> Sent: Tuesday, November 03, 2009 2:19 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Fonts re-vanishing in module
> 
> 
> 
> var myLoaderContext:LoaderContext = new LoaderContext();
> myLoaderContext.applicationDomain = ApplicationDomain.currentDomain;
> 
> why would applicationDomain be null after setting it in a creationComplete?
> 
> --- In flexcoders@yahoogroups.com, 
> "djhatrick"  wrote:
> >
> > Only one module gives me this problem, but it went away for an hour and is 
> > back.
> >
> > I'm :(
> >
> > Thanks,
> > Patrick
> >
>




RE: [flexcoders] Re: real time messanging... REFdn2025035484

2009-11-04 Thread dennis
thanx

 

dennis

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

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Mete Atamel
Sent: Tuesday, November 03, 2009 6:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: real time messanging... REFdn2025035484

 

  

You can use messaging service in BlazeDS:

http://opensource.adobe.com/wiki/display/blazeds/BlazeDS/

-Mete

--- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> ,
"dennis"  wrote:
>
> Suppose a flex. like a chat application, where the messages from other
> clients it is required to be transferred immediately.
> 
> 
> 
> The solution is to develop a server side app where will be the hub and the
> message handler of client's messages. The communication will be based on
tcp
> ip sockets.
> 
> 
> 
> This server side application, in which development environment will be
> developed? JPEE? Please give some guidelines to search and read
> respectively.
> 
> 
> 
> Best regards
> 
> dennis
>





__ NOD32 4571 (20091104) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com



Re: [flexcoders] Tab control of repeater items

2009-11-04 Thread Dave Cates
Hey Alex,

Thanks for your reply.

How would an MXML custom component implement IFocusManagerComponent ?

I also thought the focusEnabled=true and tabEnabled=true were the default
settings? I have hardcoded them too but no luck hence thinking the
implementation of IFocusManagerComponent might be the key.

Thanks.

From: Alex Harui 
Reply-To: 
Date: Tue, 3 Nov 2009 22:33:34 -0800
To: "flexcoders@yahoogroups.com" 
Subject: RE: [flexcoders] Tab control of repeater items

 
 
 

All parents need tabChildren=true, the thing that gets focus must implement
IFocusManagerComponent and have focusEnabled=true and tabEnabled=true

From: flexcoders@yahoogroups.com [flexcod...@yahoogroups.com] On Behalf Of
Dave Cates [d...@redemptionmedia.co.uk]
Sent: Tuesday, November 03, 2009 5:27 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Tab control of repeater items

 
Any one got any ideas?!

From: Dave Cates  >
Reply-To:  >
Date: Mon, 02 Nov 2009 23:00:03 +
To: "flexcoders@yahoogroups.com  "
 >
Subject: [flexcoders] Tab control of repeater items

 
 
 

Hi all,

I¹m creating an app that needs to make use of the tab control to cycle
through the visible controls.

Buttons, checkboxes etc are working great but I can¹t seem to be able to tab
to the elements within my repeaters.

Within the repeaters are custom components made up of things like
textfields. I need each of the repeater¹s items to be tab enabled.

I¹ve set them to tabEnabled, and set the repeater to have tabChildren
enabled too.

Any ideas?!

Thanks! 
  




  


>> 



Re: [flexcoders] Tab control of repeater items

2009-11-04 Thread Dave Cates
Hey Alex,

Thanks for your reply.

How would an MXML custom component implement IFocusManagerComponent ?

I also thought the focusEnabled=true and tabEnabled=true were the default
settings? I have hardcoded them too but no luck hence thinking the
implementation of IFocusManagerComponent might be the key.

Thanks.

From: Alex Harui 
Reply-To: 
Date: Tue, 3 Nov 2009 22:33:34 -0800
To: "flexcoders@yahoogroups.com" 
Subject: RE: [flexcoders] Tab control of repeater items

 
 
 

All parents need tabChildren=true, the thing that gets focus must implement
IFocusManagerComponent and have focusEnabled=true and tabEnabled=true

From: flexcoders@yahoogroups.com [flexcod...@yahoogroups.com] On Behalf Of
Dave Cates [d...@redemptionmedia.co.uk]
Sent: Tuesday, November 03, 2009 5:27 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Tab control of repeater items

 
Any one got any ideas?!

From: Dave Cates  >
Reply-To:  >
Date: Mon, 02 Nov 2009 23:00:03 +
To: "flexcoders@yahoogroups.com  "
 >
Subject: [flexcoders] Tab control of repeater items

 
 
 

Hi all,

I¹m creating an app that needs to make use of the tab control to cycle
through the visible controls.

Buttons, checkboxes etc are working great but I can¹t seem to be able to tab
to the elements within my repeaters.

Within the repeaters are custom components made up of things like
textfields. I need each of the repeater¹s items to be tab enabled.

I¹ve set them to tabEnabled, and set the repeater to have tabChildren
enabled too.

Any ideas?!

Thanks! 
  




  


> 



Re: [flexcoders] Building components at runtime

2009-11-04 Thread Fotis Chatzinikos
That is probably a bit over the top :-)

Check your data. If they are similar in structure and do not change (the
structure of the data, not the data) you can probably use a couple or
repeaters, lists, and so on...

On Wed, Nov 4, 2009 at 9:10 PM, Deepa Subramaniam wrote:

>
>
> This is definitely possible, and is essentially what Flash Builder's Design
> View does (FB's Design View is just a large Flex application) under the
> hood.
>
> You will want to parse your XML and build up Flex objects at runtime (using
> the new operator), set properties on the objects based on the attribute
> values in the XML data (by setting properties directly, using setStyle() to
> set style attributes, etc) and add the newly created objects to the display
> list while mimicking the correct containment hierarchy.
>
> I'll leave it up to knowledgeable folks on this list to point you to
> community/blogosphere resources.
>
> deepa
> Flex SDK Team
>
> -Original Message-
> From: flexcoders@yahoogroups.com  [mailto:
> flexcoders@yahoogroups.com ] On Behalf Of
> prodanzr
> Sent: Wednesday, November 04, 2009 8:25 AM
> To: flexcoders@yahoogroups.com 
> Subject: [flexcoders] Building components at runtime
>
> Hi all
>
> Thanks to the success of my first Flex application I've been asked to write
> a new one that is required to build the user interface from XML data it
> receives from a server. So the app sends a request to an HTTP Server and
> gets XML back that signifies such things as "username, string, maxlength=40;
> startdate, date and so on" from which the app would build a component and
> display it, capture values and send them back to the server.
>
> So far all my (limited) Flex work has been MXML-specified user interfaces
> so I'd like to ask if people think this idea is hard to implement in
> ActionScript (I assume it's doable) and if there are any examples anywhere I
> could look at?
>
> Thanks
>
> Paul
>
> 
>
>
> --
> 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
>
>  
>



-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com,


RE: [flexcoders] Building components at runtime

2009-11-04 Thread Deepa Subramaniam
This is definitely possible, and is essentially what Flash Builder's Design 
View does (FB's Design View is just a large Flex application) under the hood. 

You will want to parse your XML and build up Flex objects at runtime (using the 
new operator), set properties on the objects based on the attribute values in 
the XML data (by setting properties directly, using setStyle() to set style 
attributes, etc) and add the newly created objects to the display list while 
mimicking the correct containment hierarchy. 

I'll leave it up to knowledgeable folks on this list to point you to 
community/blogosphere resources.

deepa
Flex SDK Team 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of prodanzr
Sent: Wednesday, November 04, 2009 8:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Building components at runtime

Hi all

Thanks to the success of my first Flex application I've been asked to write a 
new one that is required to build the user interface from XML data it receives 
from a server. So the app sends a request to an HTTP Server and gets XML back 
that signifies such things as "username, string, maxlength=40; startdate, date 
and so on" from which the app would build a component and display it, capture 
values and send them back to the server.

So far all my (limited) Flex work has been MXML-specified user interfaces so 
I'd like to ask if people think this idea is hard to implement in ActionScript 
(I assume it's doable) and if there are any examples anywhere I could look at?

Thanks

Paul






--
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] When the creationComplete event is fired on a TitleWindow

2009-11-04 Thread powers

I have a title window that I'm creating and passing data to.  I want to
create children of the title window based on this data and I don't want to
show the title window until the children have been created and added to the
title window.  

titleWindow = new SomeComponent();
titleWindow.data = someData
titleWindow.createSubChildren();

PopUpManager.addPopUp(titleWindow, this);
titleWindow.center();

When I call the createSubChildren method, I get errors because it doesn't
seem that any of the titleWindow's sub containers have been created. I
thought using the new operator to create the component would create all of
the children but it doesn't seem to happen until it is actually added using
the PopupManager.  Any ideas?
-- 
View this message in context: 
http://old.nabble.com/When-the-creationComplete-event-is-fired-on-a-TitleWindow-tp26202032p26202032.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Asynchronous calls in custom validator's doValidation method

2009-11-04 Thread pmstp
Hi all,

I'm trying to call an asynchronous WebService in a custom validator's 
doValidation (which is a synchronous method).
I'm using a while loop around a boolean variable as a poor man's spinlock but 
that causes the CPU usage to dramatically increase leading to the browser 
asking users if they want to keep the script executing or stop it (after 15 
seconds).
Also the WebService handlers take a long time (> 1 minute) to finally set the 
spinlock.  
But without the spin lock the doValidation exists immediately.  Is there a way 
to pause/sleep the current function (thread?) until the 
WebService callback runs?


TIA,
Pedro Proenca


PS: Here's how my code looks like:

package validators {
    import mx.validators.*;
    import mx.rpc.events.*;
    import mx.rpc.soap.*;
    import mx.utils.StringUtil;
    import mx.controls.Alert;                

    
    
    public class SharePointURLValidator extends Validator
    {
        protected const BASE_URL:String = "http://sharepoint/";; 


        protected var results:Array;
        protected var validSite:Boolean = false;
        protected var SOAPCallbackDone:Boolean = false;
        protected var sharePointSvc:WebService;

        
        public function SharePointURLValidator():void
        {
            super();
            sharePointSvc = new WebService();                
        }
        

        override protected function doValidation(value:Object):Array
        {
            results = [];
            
            results = super.doValidation(value);
            if (results.length > 0)
                return results;
            
            if (!(value is String)) {
                results.push(new ValidationResult(true, null, "Type Error", 
"String required"));
                return results;
            }

            if (!isValidSharePointURL(value as String))
                results.push(new ValidationResult(true, null, "Bad URL", "Not a 
valid SharePoint site. Make sure it starts with http://sharepoint/";));

                return results;
        }


        protected function isValidSharePointURL(url:String):Boolean
        {            
            trace(getTime() + " isValidSharePointURL called");
            
            if (url == null || StringUtil.trim(url).length == 0)
                    return false;
                    
            if ((url.length < BASE_URL.length) || (url.substr(0, 
BASE_URL.length).toLocaleLowerCase() != BASE_URL))
                url = BASE_URL + url;

            sharePointSvc.wsdl = url + "/_vti_bin/webs.asmx?WSDL";
            sharePointSvc.loadWSDL();
            sharePointSvc.GetWebCollection.addEventListener(ResultEvent.RESULT, 
resultHandler);
            sharePointSvc.GetWebCollection.addEventListener(FaultEvent.FAULT, 
faultHandler);
            Alert.show(getTime() + " Calling SharePoint");        
            sharePointSvc.GetWebCollection();
                    
            while(!SOAPCallbackDone);
            
            return validSite;
        }
            
            

            private function resultHandler(event:ResultEvent):void
            {
                
sharePointSvc.GetWebCollection.removeEventListener(ResultEvent.RESULT, 
resultHandler);
                
sharePointSvc.GetWebCollection.removeEventListener(FaultEvent.FAULT, 
faultHandler);

                Alert.show(getTime() + " SOAP call succeeded");
                validSite = true;
                SOAPCallbackDone = true;
            }


            private function faultHandler(event:FaultEvent):void
            {
                
sharePointSvc.GetWebCollection.removeEventListener(ResultEvent.RESULT, 
resultHandler);
                
sharePointSvc.GetWebCollection.removeEventListener(FaultEvent.FAULT, 
faultHandler);

                Alert.show(getTime() + " SOAP called failed");
                validSite = false;
                SOAPCallbackDone = true;
            }
        
        
          private function getTime():String
  {
                var currentTime:Date = new Date();
                return currentTime.toString();
            }
    }

}





  

Re: [flexcoders] Re: Firebug tool

2009-11-04 Thread kanu kukreja
i tried with demonster debugger and reflexutil3 and i found them good.

On Wed, Nov 4, 2009 at 11:16 PM, gers32  wrote:

>
>
> I open Firebug whenever I type the Konami Code, so it's never really
> officially there, but can be helpful sometimes in production...
>
>  
>


[flexcoders] Re: Firebug tool

2009-11-04 Thread gers32
I open Firebug whenever I type the Konami Code, so it's never really officially 
there, but can be helpful sometimes in production...



[flexcoders] Re: Building components at runtime

2009-11-04 Thread droponrcll


--- In flexcoders@yahoogroups.com, "prodanzr"  wrote:
>
> Hi all
> 
> Thanks to the success of my first Flex application I've been asked to write a 
> new one that is required to build the user interface from XML data it 
> receives from a server. So the app sends a request to an HTTP Server and gets 
> XML back that signifies such things as "username, string, maxlength=40; 
> startdate, date and so on" from which the app would build a component and 
> display it, capture values and send them back to the server.
> 
> So far all my (limited) Flex work has been MXML-specified user interfaces so 
> I'd like to ask if people think this idea is hard to implement in 
> ActionScript (I assume it's doable) and if there are any examples anywhere I 
> could look at?

Check out
http://www.insideria.com/2009/10/dynamically-creating-classes-f.html
http://www.insideria.com/2009/10/interfaces-and-dynamic-class-i.html



[flexcoders] Building components at runtime

2009-11-04 Thread prodanzr
Hi all

Thanks to the success of my first Flex application I've been asked to write a 
new one that is required to build the user interface from XML data it receives 
from a server. So the app sends a request to an HTTP Server and gets XML back 
that signifies such things as "username, string, maxlength=40; startdate, date 
and so on" from which the app would build a component and display it, capture 
values and send them back to the server.

So far all my (limited) Flex work has been MXML-specified user interfaces so 
I'd like to ask if people think this idea is hard to implement in ActionScript 
(I assume it's doable) and if there are any examples anywhere I could look at?

Thanks

Paul




[flexcoders] Re: How can I put a PopUPMenuButton in an AdvancedDatagridColumn?

2009-11-04 Thread valdhor
If you could post some working sample code (With sample data - not with a 
server call), I could take a look.

--- In flexcoders@yahoogroups.com, "thomas_13s"  wrote:
>
> Hi,
> Thanks a lot.please let me know looking the code i have included how can I 
> show PopUpMenuButton on the Drill-Down column and populate the PUButton with 
> the dObj.label and dObj.url which i ahve added to ddArr now.
> thanks in advance,
> Tom.
> 
> 
> --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
> >
> > This quick and dirty example (Based on the Adobe Documentation) should
> > get you well on your way:
> > 
> > 
> > http://www.adobe.com/2006/mxml";>
> >  
> >  
> >  
> >  
> >  
> >  
> >  
> >  
> >  
> >   > headerText="Territory Rep"/>
> >  
> >  
> >   > headerText="Action"/>
> >  
> >  
> >   >  depth="3" renderer="PopUpMenuButtonRenderer"/>
> >  
> >  
> > 
> > 
> > PopUpMenuButtonRenderer.as:
> > package
> > {
> >  import mx.controls.*;
> >  import mx.events.MenuEvent;
> >  import flash.net.URLRequest;
> >  import flash.net.navigateToURL;
> > 
> >  public class PopUpMenuButtonRenderer extends PopUpMenuButton
> >  {
> >  private var _URL:String;
> >  private static const menuItems:Array = ["Go to Web Site", "Do
> > Something Else"];
> > 
> >  public function PopUpMenuButtonRenderer()
> >  {
> >  super();
> >  }
> > 
> >  override public function set data(value:Object):void
> >  {
> >  if(value != null)
> >  {
> >  super.data = value;
> >  _URL = value["URL"];
> >  addEventListener(MenuEvent.ITEM_CLICK, onMenuClick)
> >  label = "Action";
> >  dataProvider = menuItems;
> >  }
> >  }
> > 
> >  private function onMenuClick(event:MenuEvent):void
> >  {
> >  switch(event.label)
> >  {
> >  case "Go to Web Site":
> >  navigateToURL(new URLRequest("http://"; +
> > _URL),"_top");
> >  break;
> >  }
> >  }
> >  }
> > }
> > 
> > 
> > HTH
> > 
> > 
> > 
> > 
> > 
> > Steve
> > 
> > --- In flexcoders@yahoogroups.com, "thomas_13s"  wrote:
> > >
> > > Hi,
> > > I have an advanced data grid , with 8 columns one of the columns i
> > want the 8 th column as a POPUPMenu Button,  and when I click on the
> > menu item it should navigate to a url value which is in the Array dArr.
> > Array dArr has 2 values ,how can i do this I have tried many things.
> > >  Array dArr has the values [dd.label,dd.url] and some valuses in the
> > array has more than one occurence, I mean
> > [dd.label1,dd.url1],[dd.label2,dd.url2].
> > > The values to be populated in the POPUPMenuButton , i have in an array
> > dArr.
> > > please help me out.
> > > 
> > > 
> > > http://www.adobe.com/2006/mxml"; width="100%"
> > height="100%" backgroundColor="#FF"
> > > initialize="initApp();"
> > creationComplete="onCreationComplete();">
> > >   
> > > .hStyle { fontWeight:bold; fontFamily:Verdana; fontSize:12;
> > align:center; }
> > >   
> > >   
> > > 
> > >
> > >  
> > >
> > >  > result="onJSONLoad(event)" url="{sURL}" fault="onFaultLoad(event)"/>
> > >> titleStyleName="hStyle" headerColors="[0xC5DFF9,0xEFF6FF]" >
> > >
> > >  > color="0x323232" dragEnabled="true" dropEnabled="true"
> > >  enabled="true" showHeaders="true"
> > > displayItemsExpanded="true" variableRowHeight="true" wordWrap="false"
> > initialize="gc.refresh();"  >
> > > 
> > >   
> > > 
> > > 
> > >   
> > > 
> > > 
> > > 
> > > 
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > >
> > >  
> > >
> > >
> > >
> > >
> > >   > depth="1" column="{ddcol}"  columnIndex="8"
> > >  renderer="mx.controls.PopUpMenuButton" />
> > >   
> > >  
> > >  
> > > 
> > >
> > > thanks in advance,
> > > Tom.
> > >
> >
>




RE: [flexcoders] JPG Encoding Speed Issue

2009-11-04 Thread Gregor Kiddie
Take a look at he following article, it lays some of the options out.
They are all fairly good options.

http://blog.everythingflex.com/2009/01/19/green-threading-psuedo-threads
-or-air-as-a-server/

To answer your second question, where ever you and your users are
comfortable with the resizing happening. If your users are happy with a
bit of a delay, do it on the client (especially if you want to show them
the results and ask if they are happy with it). If they are happier with
a fire-and-forget scenario, offload it onto your server.

As with everything, what meets the user's needs is the best way to do
it!

 

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 gimlilongbow
Sent: 03 November 2009 16:17
To: flexcoders@yahoogroups.com
Subject: [flexcoders] JPG Encoding Speed Issue

 

  

Greetings, all,
 I'm working on a Flex project in the AIR platform which I want to
generate several different file sizes of JPGs that I've brought into the
program. The program locks up when generating the new JPGs, though, and
I understand that has to do with the single-thread model in Flash. I've
run across asynchronous encoders like the alchemy encoder
   and the
switchonthecode async encoder
 . Any suggestions on this? 

Also, I'll be uploading these different sized JPGs to a server. I guess
a more basic question would be if the server (a typical LAMP setup) or
the client (built in Flex+Air) is the better place to do this resizing? 

Thanks for your time!

~Gimli





[flexcoders] Re: What's up with Flashbuilder beta2 and the export release build

2009-11-04 Thread djhatrick
Right.  Tanks for remindin me.

--- In flexcoders@yahoogroups.com, Nick Collins  wrote:
>
> Um.. that's why it's Beta.
> 
> On Tue, Nov 3, 2009 at 6:41 PM, djhatrick  wrote:
> 
> >
> >
> > Takes a half hour, then says my project has errors and can't do it -- the
> > compiler can't find em i guess -- what a suck-a-thon!
> >
> >  
> >
>




Re: [flexcoders] Re: FB3 Debug: Launch Failed: Invalid argument

2009-11-04 Thread Stephen Downs
Wow total voodoo: the error just disappeared after I quit Flex Builder  
and launched yet again (I forgot to mention I tried doing this several  
times as well). The only thing different I can think of is that Safari  
launched first in this debug session.

I will try Firefox if this rears it's head again.

Error Log view was no help. It did not include any of these errors.

Thanks for the help. Problem mysteriously solved for now.


On 2009-11-04, at 12:48 AM, primo411 wrote:

> In Eclipse, try to open the 'Error log' view, and you will get more  
> precise informations about the errors you encounter.
>
>
> 2009/11/4 polestar11 
>
> Have you tried debugging your app with FireFox?
> I'm also on a mac but have never tried debugging using Safari
>
> Cheers
> Tracy
>
>
>
> --- In flexcoders@yahoogroups.com, Stephen Downs  wrote:
> >
> > I've having an extremely agonizing time dealing with mysterious  
> alert
> > messages when trying to debug my Flex Builder 3 project. Debugging
> > begins, the status bar reads "Launching project: (91%)", the
> > application loads in the browser and displays, but back in Flex it
> > hangs with an error message:
> >
> >
> > Launch Failed
> >
> > Invalid argument
> >
> >
> > This error message could be more informative. As is, no details, no
> > line number given.
> >
> > Fixes I've tried, in combination and alone, to no avail:
> > ) Clean Project.
> > ) Strip mxml down to single bare Application tag.
> > ) Delete build folder.
> >
> >
> > Install details:
> > Mac OS X 10.6.1
> > Safari 4.0.3 (6531.9)
> > Flex Builder 3.0.2
> > Flash Player 10.0.32.18 content debugger
> >
> > Any insight would be terrific.
> >
> > 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

<*> 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] Re: how may I store values to function's arguments? REFdn7045338143

2009-11-04 Thread dennis
Thanks Amy. it works!!!

 

dennis

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

 


Try:

private function getXY(x:int, y:int):Object {
return {x:10, y:20);
}

private function test():void {
var obj:Object = getXY(0, 0);
trace('x: ' + obj.x + ' y: ' + obj.y);
]

HTH;

Amy





__ NOD32 4563 (20091101) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com



[flexcoders] JPG Encoding Speed Issue

2009-11-04 Thread gimlilongbow
Greetings, all,
  I'm working on a Flex project in the AIR platform which I want to
generate several different file sizes of JPGs that I've brought into the
program. The program locks up when generating the new JPGs, though, and
I understand that has to do with the single-thread model in Flash. I've
run across asynchronous encoders like the alchemy encoder
   and the
switchonthecode async encoder
 . Any suggestions on this?

Also, I'll be uploading these different sized JPGs to a server. I guess
a more basic question would be if the server (a typical LAMP setup) or
the client (built in Flex+Air) is the better place to do this resizing?

Thanks for your time!

~Gimli



[flexcoders] Re: How can I put a PopUPMenuButton in an AdvancedDatagridColumn?

2009-11-04 Thread thomas_13s
Hi,
Thanks a lot.please let me know looking the code i have included how can I show 
PopUpMenuButton on the Drill-Down column and populate the PUButton with the 
dObj.label and dObj.url which i ahve added to ddArr now.
thanks in advance,
Tom.


--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> This quick and dirty example (Based on the Adobe Documentation) should
> get you well on your way:
> 
> 
> http://www.adobe.com/2006/mxml";>
>  
>  
>  
>  
>  
>  
>  
>  
>  
>   headerText="Territory Rep"/>
>  
>  
>   headerText="Action"/>
>  
>  
>depth="3" renderer="PopUpMenuButtonRenderer"/>
>  
>  
> 
> 
> PopUpMenuButtonRenderer.as:
> package
> {
>  import mx.controls.*;
>  import mx.events.MenuEvent;
>  import flash.net.URLRequest;
>  import flash.net.navigateToURL;
> 
>  public class PopUpMenuButtonRenderer extends PopUpMenuButton
>  {
>  private var _URL:String;
>  private static const menuItems:Array = ["Go to Web Site", "Do
> Something Else"];
> 
>  public function PopUpMenuButtonRenderer()
>  {
>  super();
>  }
> 
>  override public function set data(value:Object):void
>  {
>  if(value != null)
>  {
>  super.data = value;
>  _URL = value["URL"];
>  addEventListener(MenuEvent.ITEM_CLICK, onMenuClick)
>  label = "Action";
>  dataProvider = menuItems;
>  }
>  }
> 
>  private function onMenuClick(event:MenuEvent):void
>  {
>  switch(event.label)
>  {
>  case "Go to Web Site":
>  navigateToURL(new URLRequest("http://"; +
> _URL),"_top");
>  break;
>  }
>  }
>  }
> }
> 
> 
> HTH
> 
> 
> 
> 
> 
> Steve
> 
> --- In flexcoders@yahoogroups.com, "thomas_13s"  wrote:
> >
> > Hi,
> > I have an advanced data grid , with 8 columns one of the columns i
> want the 8 th column as a POPUPMenu Button,  and when I click on the
> menu item it should navigate to a url value which is in the Array dArr.
> Array dArr has 2 values ,how can i do this I have tried many things.
> >  Array dArr has the values [dd.label,dd.url] and some valuses in the
> array has more than one occurence, I mean
> [dd.label1,dd.url1],[dd.label2,dd.url2].
> > The values to be populated in the POPUPMenuButton , i have in an array
> dArr.
> > please help me out.
> > 
> > 
> > http://www.adobe.com/2006/mxml"; width="100%"
> height="100%" backgroundColor="#FF"
> > initialize="initApp();"
> creationComplete="onCreationComplete();">
> >   
> > .hStyle { fontWeight:bold; fontFamily:Verdana; fontSize:12;
> align:center; }
> >   
> >   
> > 
> >
> >  
> >
> >  result="onJSONLoad(event)" url="{sURL}" fault="onFaultLoad(event)"/>
> >titleStyleName="hStyle" headerColors="[0xC5DFF9,0xEFF6FF]" >
> >
> >  color="0x323232" dragEnabled="true" dropEnabled="true"
> >  enabled="true" showHeaders="true"
> > displayItemsExpanded="true" variableRowHeight="true" wordWrap="false"
> initialize="gc.refresh();"  >
> > 
> >   
> > 
> > 
> >   
> > 
> > 
> > 
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> >  
> >
> >
> >
> >
> >   depth="1" column="{ddcol}"  columnIndex="8"
> >  renderer="mx.controls.PopUpMenuButton" />
> >   
> >  
> >  
> > 
> >
> > thanks in advance,
> > Tom.
> >
>




[flexcoders] Adobe AIR Application margin/padding

2009-11-04 Thread swd120x

I've been working on an air application that will lauch swf based
presentations to Full Screen mode.

Is there a way to eliminate the margin/padding around the edges of the
AIR application?  I've never had this issue with a general FLEX app. 
Padding, Margin and Border are all set to 0px in the style sheet, which
didnt affect the spacing at all.  What attributes can I change to fix
this?  When I blow up the presentations to full screen the gap shows
there as well.









[flexcoders] urgent help

2009-11-04 Thread kaustubh_chaubal
In my application, I m able to tab through the buttons,textboxes, drop down and 
the AdvancedDataGrid on the page. But I m unable to tab through the buttons and 
checkboxes inside the AdvancedDataGrid, which are rendered through 
itemRenderer. Please let me know whether is it possible or not.
If yes,please provide me with a solution.




[flexcoders] // advanceddatagridcolumn header renderer query //

2009-11-04 Thread arindam dhar
Hi,

I have a header renderer class(CompaniesHeaderRenderer) which extends 
mx.controls.advancedDataGridClasses.AdvancedDataGridHeaderRenderer, and use it 
the following way,



I have declared a var inside CompaniesHeaderRenderer, which essentially should 
get value from outside. How  do I populate this var from outside? Any quick 
help is much appreciated..

regards,

Arindam



  

[flexcoders] Urgent help for table

2009-11-04 Thread kaustubh_chaubal
In my application, I m able to tab through the buttons,textboxes, drop down and 
the AdvancedDataGrid on the page. But I m unable to tab through the buttons and 
checkboxes inside the AdvancedDataGrid, which are rendered through 
itemRenderer. Please let me know whether is it possible or not.
If yes,please provide me with a solution.




RE: [flexcoders] Re: multiple filter function of combobox and two checkboxes

2009-11-04 Thread Gregor Kiddie
Ah ok... I've got you. How about trying this for the filter function?

 

private function myFilterFunction(item:Object): Boolean
{
return(item.price >= sliderFromValue && item.price <= sliderToValue)&& 
(item.city == selectedCity || selectedCity == "All") && 
(item.location == selectedLocation || selectedLocation == "All") && 
(item.category == category.selectedValue)&&
(!poolSelected || item.pool); 
}



The (!poolSelected || item.pool) will equate to true when the checkbox
isn't selected (!poolSelected ) or when the item has a pool when the
checkbox is selected (item.pool).

 

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 stinasius
Sent: 04 November 2009 13:31
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: multiple filter function of combobox and two
checkboxes

 

  

well, am trying to integrate some checkbox filter into a multiple filter
function and its giving me hell. basically am trying to filter an
arraycollection based on multiple criteria using different components
like slider, combo box, radio buttons and check boxes. while i have the
rest of the component filters working, i cant figure out a way to
include the checkbox filter into the filter function. here is my code so
far.

filters/
/

private var sliderFromValue : Number = 0;
private var sliderToValue : Number = 300;
private var selectedCity : String = "All";
private var selectedLocation : String = "All";
private var selectedValue: Boolean;
private var poolSelected: Boolean = false;

private function onSliderChange(event:SliderEvent):void
{
var slider:Slider = Slider(event.currentTarget) ;
sliderFromValue = priceSlider.values[0];
sliderToValue = priceSlider.values[1]; 
filterGrid() ;
currentState = '';
}
private function cityChangeHandler(event:Event):void
{
if( city_cb.selectedItem != null )
selectedCity = city_cb.selectedLabel;
filterGrid();
currentState = '';
}

private function locationChangeHandler(event:Event):void
{
if( lct_cb.selectedItem != null )
selectedLocation = lct_cb.selectedLabel;
filterGrid();
currentState = '';
}

private function categoryChangeHandler(event:Event):void
{
if(category.selectedValue != null)
selectedValue = category.selectedValue;
filterGrid();
currentState = '';
}

private function poolFilter():void
{ 
poolSelected = pool_ckb.selected;

filterGrid();
currentState = '';
}

private function filterGrid() :void
{
dataAr.filterFunction=myFilterFunction;
dataAr.refresh();
}

private function myFilterFunction(item:Object): Boolean
{
return(item.price >= sliderFromValue && item.price <= sliderToValue)&& 
(item.city == selectedCity || selectedCity == "All") && 
(item.location == selectedLocation || selectedLocation == "All") && 
(item.category == category.selectedValue)&&
(item.pool == poolSelected); 
}

there is something wrong with the poolfilter function which affects the
general filter function. i would like that if someone clicked the pool
checkbox, only property with pools show and if they uncheck it, then all
property shows up.





[flexcoders] Re: multiple filter function of combobox and two checkboxes

2009-11-04 Thread stinasius
well, am trying to integrate some checkbox filter into a multiple filter 
function and its giving me hell. basically am trying to filter an 
arraycollection based on multiple criteria using different components like 
slider, combo box, radio buttons and check boxes. while i have the rest of the 
component filters working, i cant figure out a way to include the checkbox 
filter into the filter function. here is my code so far.

filters//

private var sliderFromValue : Number = 0;
private var sliderToValue : Number = 300;
private var selectedCity : String = "All";
private var selectedLocation : String = "All";
private var selectedValue: Boolean;
private var poolSelected: Boolean = false;

private function onSliderChange(event:SliderEvent):void
{
var slider:Slider = Slider(event.currentTarget) ;
sliderFromValue = priceSlider.values[0];
sliderToValue = priceSlider.values[1];  

filterGrid() ;
currentState = '';
}
private function cityChangeHandler(event:Event):void
{
if( city_cb.selectedItem != null )
selectedCity = city_cb.selectedLabel;
filterGrid();
currentState = '';
}

private function locationChangeHandler(event:Event):void
{
if( lct_cb.selectedItem != null )
selectedLocation = lct_cb.selectedLabel;
filterGrid();
currentState = '';
}

private function categoryChangeHandler(event:Event):void
{
if(category.selectedValue != null)
selectedValue = category.selectedValue;
filterGrid();
currentState = '';
}

private function poolFilter():void
{   
poolSelected = pool_ckb.selected;

filterGrid();
currentState = '';
}

private function filterGrid() :void
{
dataAr.filterFunction=myFilterFunction;
dataAr.refresh();
}

private function myFilterFunction(item:Object): Boolean
{
return(item.price >= sliderFromValue && item.price <= 
sliderToValue)&& 
(item.city == selectedCity || selectedCity == "All") && 
(item.location == selectedLocation || selectedLocation 
== "All") && 
(item.category == category.selectedValue)&&
(item.pool == poolSelected);
 
}

there is something wrong with the poolfilter function which affects the general 
filter function. i would like that if someone clicked the pool checkbox, only 
property with pools show and if they uncheck it, then all property shows up.



RE: [flexcoders] Re: multiple filter function of combobox and two checkboxes

2009-11-04 Thread Gregor Kiddie
Jumping into this thread late, what didn't work with the code you posted
on Tuesday?

 

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

 



[flexcoders] Re: multiple filter function of combobox and two checkboxes

2009-11-04 Thread stinasius
ok... i have officially failed to get this working so here is my proposal, i 
will pay to get this done for me. anyone out there willing to write the whole 
multifilter function from the ground up please let me know so we can negotiate 
the price. you can get to me on my email address "stinas...@yahoo.com"



[flexcoders] Sandbox violation on second socket send

2009-11-04 Thread Simon
Hi,  

I have a Flex client using a Flash binary (TCP) socket for communication with a 
Java server.  I have a localhost (Apache) server providing a crossdomain.xml 
file which is wide open just while I am testing.

My code successfully loads the policy file on startup.

I then connect the socket to the server without any difficulty and send a 
message and get a response.  All good so far.  

However, when I send a second message through the same socket I get a pause of 
about 12 seconds then a sandbox violation error:

Security Error: Error #2048: Security sandbox violation: 
file:///C:/apache_root/ttt1/ttt1.swf cannot load data from localhost:45455.

This is the same port and socket through which the first message succeeded. 

I tried re-loading the policy file before every send, but I get the same 
result.  

Any idea why this might be happening?  I clearly have an open socket at one 
point.  I am flushing the socket after each send and I tried doing that after 
each read as well, but the same result.

Thanks in advance



Re: [flexcoders] What's up with Flashbuilder beta2 and the export release build

2009-11-04 Thread Nick Collins
Um.. that's why it's Beta.

On Tue, Nov 3, 2009 at 6:41 PM, djhatrick  wrote:

>
>
> Takes a half hour, then says my project has errors and can't do it -- the
> compiler can't find em i guess -- what a suck-a-thon!
>
>  
>


[flexcoders] More weird&interesting&specific performance issue for RegExp!

2009-11-04 Thread ha a
hi guys,

*Questions*:
1: Why so great difference between same specific RegExp and line?
and why only in the second run, we have performance issue?
I can see the only difference is the two RegExp are different instances.

2: Any clue or hint to fix this issue?


*Backgrounds*:
The air program goes through big text files by multiple RegExps.
a)The biggest text files is about 137K lines,
b)In some long line(about 50 lines), there are about 1727 ascii chars, and even 
one line is about 8534 ascii chars.
and air program has about 40 RegExps.
c)Matching line with RegExp by
"var mateched:Boolean = (regExps[index] as RegExp).test(line);"
d)the specific RegExp is "(ERROR|FATAL|!ERROR_PRINTER_SETUP|!CA_ERRORCOUNT)".
e)Windows Vista, Flex builder3, flex sdk3.2, actionscript3
f)Any other information need?
You may refer to my previous topic: 
"A weird performance issue" and "A weird performance issue about regExp!"

*Step&Results*:
First, new about 40 RegExp in air program, and processing each line of each 
text files.
Result is: 
for these 1727 char line, each line cost about 2 milli second for the specific 
RegExp.
for 8534 char line, the line costs about 26 milli second for the specific 
RegExp.

Then, re-new the same 40 Regexp in air program, and processing each line of 
each text files.
But result is: 
for these 1727 char line, each line cost about 9-10 milli second for the 
specific RegExp.
for 8534 char line, the line costs about 250 milli second for the specific 
RegExp.

Then, do the same step again and again,
but the result is like first result above, not like the second result any more.

Thanks



--- 09年11月3日,周二, ha a  写道:

发件人: ha a 
主题: Weird performance issue
收件人: flexcoders@yahoogroups.com
日期: 2009年11月3日,周二,下午1:35

An air program will process many log files,
click run button to inspect these log files one by one.

*Problems*:
Click run button, then the air program's performance is OK.
Click run button again, then the air program's performance maybe OK or may not 
OK.(about 60-70% is NOT OK)
Click run button again, then the air program's performance is OK.
 ...

Then, seems only the second run may have the performance issue.
So weird?
In fact, each run should do the same thing.
BTW, the busy cursor is a clock, when running slow, the clock cursor also run 
slowly.

*About profiler*:
And I also use Flex builder profiler to analyse.
For example, 
for OK run,
elapse time: 2min
the biggest cumulative time: 1min

for issue run:
elapse time: 7min
the biggest cumulative time: 3.5min


*Questions*:
1.
 Do you have any general clue or hint on this issue?
2. About profiler, for example, the elapse time is 7min, but cumulative time is 
3.5min, where is another 3.5min? 
seems some functions were not be counted by profiler?
how can I know what costs the another 3.5 min?


*Backgrounds*:
1. Windows Vista, Flex builder3, flex sdk3.2, actionscript3
2. when processing log, read file, check each line for finding the keyword.
3. one virtual thread(by timer) is for one log file processing.
4: any other information need?

Thanks





好玩贺卡等你发,邮箱贺卡全新上线!


  ___ 
  好玩贺卡等你发,邮箱贺卡全新上线! 
http://card.mail.cn.yahoo.com/

RE: [flexcoders] flexcoders stats and charts (and full data download)

2009-11-04 Thread Gregor Kiddie
9th in 2009? I didn't think I'd posted that much! (Number 2 in the Brit
list though, I demand a deathmatch with Tom!)

I wonder how many of those posts were getting into arguments with Alex
and Matt? Too many I guess.

Still, lists like this always bring out the competitive in me. I wonder,
do "+1" posts count? Time to piggy back all of Alex's with "I approve
this answer" posts, or to auto generate an answer to any new thread
containing the words "module", "garbage", or "renderer" with the reply
"check Alex's blog".

Actually that's not a bad idea...

 

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

 



Re: [flexcoders] Re: FB3 Debug: Launch Failed: Invalid argument

2009-11-04 Thread primo411
In Eclipse, try to open the 'Error log' view, and you will get more precise
informations about the errors you encounter.

2009/11/4 polestar11 

>
>
> Have you tried debugging your app with FireFox?
> I'm also on a mac but have never tried debugging using Safari
>
> Cheers
> Tracy
>
>
> --- In flexcoders@yahoogroups.com , Stephen
> Downs  wrote:
> >
> > I've having an extremely agonizing time dealing with mysterious alert
> > messages when trying to debug my Flex Builder 3 project. Debugging
> > begins, the status bar reads "Launching project: (91%)", the
> > application loads in the browser and displays, but back in Flex it
> > hangs with an error message:
> >
> >
> > Launch Failed
> >
> > Invalid argument
> >
> >
> > This error message could be more informative. As is, no details, no
> > line number given.
> >
> > Fixes I've tried, in combination and alone, to no avail:
> > ) Clean Project.
> > ) Strip mxml down to single bare Application tag.
> > ) Delete build folder.
> >
> >
> > Install details:
> > Mac OS X 10.6.1
> > Safari 4.0.3 (6531.9)
> > Flex Builder 3.0.2
> > Flash Player 10.0.32.18 content debugger
> >
> > Any insight would be terrific.
> >
> > Thanks,
> > Steve
> >
>
>  
>


Re: [flexcoders] Re: Firebug tool

2009-11-04 Thread primo411
You can remove the button and setup a keyboard shortcut.
You can use conditionnal compilation too, it would be cleaner:
http://livedocs.adobe.com/flex/3/html/help.html?content=compilers_21.html

For a project of mine, I wrote a logger that sends the messages to Firebug
too (LGPL license):
http://fisheye.ow2.org/browse/~raw,r=5490/JASMINe/kerneos/trunk/modules/libs/common/client/src/main/flex/org/ow2/jasmine/kerneos/common/util/KerneosLogger.asand
http://fisheye.ow2.org/browse/~raw,r=5490/JASMINe/kerneos/trunk/modules/libs/common/client/src/main/flex/org/ow2/jasmine/kerneos/common/util/MultiOutputTarget.as
But this way, you can only view the log in Firebug, all other Firebug
functionnalities are not active.

2009/11/4 kanu kukreja 

>
>
> its a good tool but i don't know the way to prevent the button it adds for
> compiling into the swf when exporting a production release?
>
> On Tue, Nov 3, 2009 at 12:38 PM, gers32  wrote:
>
>>
>>
>> I use FlexSpy (http://code.google.com/p/fxspy/), but I know there are
>> others.
>>
>> Chris.
>>
>>
>  
>


[flexcoders] Re: How can I populate the data in PopUpMenuButton?

2009-11-04 Thread polestar11
I have never worked with an AdvancedDataGrid, but for a regular DataGrid I 
would do the following:
- create a new component that will be the item-renderer (possibly extend 
DataGridItemRenderer)
- this new component would contain a popup-menu component
- at this component level you have access to the 'data' property of that item, 
which would hold any information, such as urls / links

At this point I'm not clear with what u are trying to do, but you have various 
events / options open to you. Such as ListEvent, where you can set up a 
listener on your DataGrid. For example, itemClick:

myDataGrid.addEventListener(ListEvent.ITEM_CLICK, onDataGridItemClick);

private function onDataGridItemClick(e:ListEvent):void {
trace(e.itemRenderer.data); // here you have a handle to either the component 
itself (e.itemRenderer), or the actual data
}

Cheers
Tracy

--- In flexcoders@yahoogroups.com, "thomas_13s"  wrote:
>
> Hi ,
> I have an advanced data grid , with 8 columns one of the columns i want the 8 
> th column as a POPUPMenu Button,  and when I click on the menu item it should 
> navigate to a url value which is in the Array dArr. Array ddArr has 2 values 
> ,how can i do this I have tried many things.
>  Array ddArr has the values [dd.label,dd.url] and some valuses in the array 
> has more than one occurence, I mean [dd.label1,dd.url1],[dd.label2,dd.url2]. 
> The values to be populated in the POPUPMenuButton , i have in an array 
> dArr.After doing this I see only the popupButton but no data from ddArr .
> please help me out.
> 
>  
> http://www.adobe.com/2006/mxml"; width="100%" 
> height="100%" backgroundColor="#FF" 
> initialize="initApp();" 
> creationComplete="onCreationComplete();">
>   
> .hStyle { fontWeight:bold; fontFamily:Verdana; fontSize:12; align:center; 
> }
>   
>   
> 
> 
>  
> 
>  url="{sURL}" fault="onFaultLoad(event)"/> 
>titleStyleName="hStyle" headerColors="[0xC5DFF9,0xEFF6FF]" >
> 
>  color="0x323232" dragEnabled="true" dropEnabled="true"
>  enabled="true" showHeaders="true"
> displayItemsExpanded="true" variableRowHeight="true" wordWrap="false" 
> initialize="gc.refresh();"  >
> 
>   
> 
> 
>
>  
> 
> 
>   
>
>  
> 
> 
> 
> 
> 
>  
>  
>
>
> 
>   column="{ddcol}"  columnIndex="8"
>  renderer="mx.controls.PopUpMenuButton" /> 
> 
>  
>  
> 
> 
> thanks in advance, 
> Tom.
>




[flexcoders] Re: Wondering about buttons..

2009-11-04 Thread polestar11
I would do the same, where these public properties update the style information 
of the button (icon & labelPlacement) 

I would also probably do this as an mxml component (with the code inside a 
 tag)

--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> If I were going to do this, I would create a new class that extended button 
> with a couple of public properties - one to set the icon side and one to set 
> the icon type.
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "tchredeemed"  wrote:
> >
> > I have always wondered what the best way to do this was:
> > 
> > I need to create a reusable button, but this button will sometimes have an 
> > arrow on the right side, an 'x' on the right side, or nothing on the right 
> > side. There might be the possibility to have these on the left side too.
> > 
> > I have attempted this before, but I have never really come up with an 
> > elegant solution. Just wondering what the best/cleanest way to do this 
> > would be?
> > 
> > Thanks!
> >
>




Re: [flexcoders] Re: Firebug tool

2009-11-04 Thread kanu kukreja
its a good tool but i don't know the way to prevent the button it adds for
compiling into the swf when exporting a production release?

On Tue, Nov 3, 2009 at 12:38 PM, gers32  wrote:

>
>
> I use FlexSpy (http://code.google.com/p/fxspy/), but I know there are
> others.
>
> Chris.
>
>  
>


[flexcoders] Re: FB3 Debug: Launch Failed: Invalid argument

2009-11-04 Thread polestar11
Have you tried debugging your app with FireFox?
I'm also on a mac but have never tried debugging using Safari

Cheers
Tracy

--- In flexcoders@yahoogroups.com, Stephen Downs  wrote:
>
> I've having an extremely agonizing time dealing with mysterious alert  
> messages when trying to debug my Flex Builder 3 project. Debugging  
> begins, the status bar reads "Launching project: (91%)", the  
> application loads in the browser and displays, but back in Flex it  
> hangs with an error message:
> 
> 
> Launch Failed
> 
> Invalid argument
> 
> 
> This error message could be more informative. As is, no details, no  
> line number given.
> 
> Fixes I've tried, in combination and alone, to no avail:
>   ) Clean Project.
>   ) Strip mxml down to single bare Application tag.
>   ) Delete build folder.
> 
> 
> Install details:
> Mac OS X 10.6.1
> Safari 4.0.3 (6531.9)
> Flex Builder 3.0.2
> Flash Player 10.0.32.18 content debugger
> 
> Any insight would be terrific.
> 
> Thanks,
> Steve
>




[flexcoders] Re: Flex Debug Problem

2009-11-04 Thread polestar11
Hi there

I managed to find a solution to the problem. It has to do with outdated app xml 
config files (which I think don't get committed into source control)

So after importing my project from source control, I create a new application 
(eg. Test) and run / debug it, which works fine.

Compare the 2 app xml config files. In the new file at the top you will see a 
line:
http://ns.adobe.com/air/application/1.5";>
In the old file I had:
http://ns.adobe.com/air/application/1";>

I actually copied all the data over from my original app to the test app, but 
if you replace just that line of xml, the original project should run fine.

Cheers
Tracy