RE: [flexcoders] TileList performance

2010-02-10 Thread Philip Smith

Thanks. We realized we were using massive images (and resizing), performance 
has increased substantially with the correct image size.

To: flexcoders@yahoogroups.com
From: aha...@adobe.com
Date: Wed, 10 Feb 2010 14:50:25 -0800
Subject: Re: [flexcoders] TileList performance


















 



  



  
  
  

Use the performance profiler to see where things are taking too much time.  
Make sure your images are tuned to their display size and embed them if you 
know what they are going to be.





On 2/10/10 11:31 AM, "method_air"  wrote:




 

 

 

   



Are there any TileList optimization tips? Performance seems slow and choppy 
even with a small number of images and a fast machine. 



I would like to utilize this component but the client is currently dissatisfied 
with it's performance. 



Do better performing solutions exist (that also utilize the Flex Framework?



Thank you,



Philip



 

   







-- 

Alex Harui

Flex SDK Team

Adobe System, Inc.

http://blogs.adobe.com/aharui









 









  
_
We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now
http://clk.atdmt.com/UKM/go/195013117/direct/01/

RE: [flexcoders] TileList performance

2010-02-11 Thread Philip Smith

Thanks. Where can I download SuperImage?

To: flexcoders@yahoogroups.com
From: aha...@adobe.com
Date: Wed, 10 Feb 2010 17:10:41 -0800
Subject: Re: [flexcoders] TileList performance


















 



  



  
  
  


Also, if you are scrolling, images will get reloaded and a caching image 
component like SuperImage can help smooth things out.





On 2/10/10 4:03 PM, "Philip Smith"  wrote:




 

 

 

   



Thanks. We realized we were using massive images (and resizing), performance 
has increased substantially with the correct image size.



To: flexcoders@yahoogroups.com

From: aha...@adobe.com

Date: Wed, 10 Feb 2010 14:50:25 -0800

Subject: Re: [flexcoders] TileList performance



 

 

 

   Use the performance profiler to see where things are taking too much time.  
Make sure your images are tuned to their display size and embed them if you 
know what they are going to be.





On 2/10/10 11:31 AM, "method_air" http://hotmail.com> > 
wrote:





 

 

 

   



Are there any TileList optimization tips? Performance seems slow and choppy 
even with a small number of images and a fast machine. 



I would like to utilize this component but the client is currently dissatisfied 
with it's performance. 



Do better performing solutions exist (that also utilize the Flex Framework?



Thank you,



Philip



 

   







-- 

Alex Harui

Flex SDK Team

Adobe System, Inc.

http://blogs.adobe.com/aharui









 









  
_
Do you have a story that started on Hotmail? Tell us now
http://clk.atdmt.com/UKM/go/195013117/direct/01/

RE: [flexcoders] TileList performance

2010-02-11 Thread Philip Smith

Found the link. Thank you.

To: flexcoders@yahoogroups.com
From: loudj...@hotmail.com
Date: Thu, 11 Feb 2010 19:11:37 +
Subject: RE: [flexcoders] TileList performance


















 



  



  
  
  


Thanks. Where can I download SuperImage?


To: flexcoders@yahoogroups.com
From: aha...@adobe.com
Date: Wed, 10 Feb 2010 17:10:41 -0800
Subject: Re: [flexcoders] TileList performance


















 



  



  
  
  


Also, if you are scrolling, images will get reloaded and a caching image 
component like SuperImage can help smooth things out.





On 2/10/10 4:03 PM, "Philip Smith"  wrote:




 

 

 

   



Thanks. We realized we were using massive images (and resizing), performance 
has increased substantially with the correct image size.



To: flexcoders@yahoogroups.com

From: aha...@adobe.com

Date: Wed, 10 Feb 2010 14:50:25 -0800

Subject: Re: [flexcoders] TileList performance



 

 

 

   Use the performance profiler to see where things are taking too much time.  
Make sure your images are tuned to their display size and embed them if you 
know what they are going to be.





On 2/10/10 11:31 AM, "method_air" http://hotmail.com> > 
wrote:





 

 

 

   



Are there any TileList optimization tips? Performance seems slow and choppy 
even with a small number of images and a fast machine. 



I would like to utilize this component but the client is currently dissatisfied 
with it's performance. 



Do better performing solutions exist (that also utilize the Flex Framework?



Thank you,



Philip



 

   







-- 

Alex Harui

Flex SDK Team

Adobe System, Inc.

http://blogs.adobe.com/aharui









 









  
Do you want a Hotmail account? Sign-up now - Free




 









  
_
Got a cool Hotmail story? Tell us now
http://clk.atdmt.com/UKM/go/195013117/direct/01/

RE: [flexcoders] Disappearing item renderer

2010-04-09 Thread Philip Smith

I tried that, the problem is still occurring. Any other possible solutions?

Thanks.

To: flexcoders@yahoogroups.com
From: aha...@adobe.com
Date: Thu, 8 Apr 2010 22:00:12 -0700
Subject: Re: [flexcoders] Disappearing item renderer


















 



  



  
  
  

Set a minWidth/height on the renderer.





On 4/8/10 6:27 PM, "method_air"  wrote:




 

 

 

   



Image component items in a HorizontalList, with the 'source' set to a Bitmap 
are disappearing when scrolled (appears to be related to item renderer 
recycling). This doesn't occur when the Image source is set to a string...



Is there a workaround to stop this from occurring?



Thanks,



Philip



 

   







-- 

Alex Harui

Flex SDK Team

Adobe System, Inc.

http://blogs.adobe.com/aharui









 









  
_
http://clk.atdmt.com/UKM/go/19780/direct/01/
Do you have a story that started on Hotmail? Tell us now

RE: [flexcoders] Disappearing item renderer

2010-04-09 Thread Philip Smith

Thanks. With that addition, and a couple tweaks to re-register data binding 
(with bindSetter), the item renderers are not disappearing (or duplicating), 
for the moment.

To: flexcoders@yahoogroups.com
From: aha...@adobe.com
Date: Fri, 9 Apr 2010 14:41:39 -0700
Subject: Re: [flexcoders] Disappearing item renderer


















 



  



  
  
  


Sorry, I just read this more carefully and saw that you are using Bitmap.  The 
problem is that a renderer on the free list owns the bitmap.  One possible 
solution is to make clones of the Bitmap.





On 4/9/10 8:45 AM, "Philip Smith"  wrote:




 

 

 

   



I tried that, the problem is still occurring. Any other possible solutions?



Thanks.



To: flexcoders@yahoogroups.com

From: aha...@adobe.com

Date: Thu, 8 Apr 2010 22:00:12 -0700

Subject: Re: [flexcoders] Disappearing item renderer



 

 

 

   Set a minWidth/height on the renderer.





On 4/8/10 6:27 PM, "method_air" http://hotmail.com> > 
wrote:





 

 

 

   



Image component items in a HorizontalList, with the 'source' set to a Bitmap 
are disappearing when scrolled (appears to be related to item renderer 
recycling). This doesn't occur when the Image source is set to a string...



Is there a workaround to stop this from occurring?



Thanks,



Philip



 

   







-- 

Alex Harui

Flex SDK Team

Adobe System, Inc.

http://blogs.adobe.com/aharui









 









  
_
Got a cool Hotmail story? Tell us now
http://clk.atdmt.com/UKM/go/195013117/direct/01/

RE: [flexcoders] Upload subfolder images component

2010-05-27 Thread Philip Smith

This is currently for a flex browser app, but may also be implemented in an air 
app.
 


To: flexcoders@yahoogroups.com
From: happy...@gmail.com
Date: Thu, 27 May 2010 12:39:21 -0700
Subject: Re: [flexcoders] Upload subfolder images component

  



Are you talking about an AIR app, or a browser app? In AIR this should be 
possible, but I don't think there is a component for it. In a browser app I 
don't think this is possible due to security restrictions.


On Thu, May 27, 2010 at 10:09 AM, method_air  wrote:

Lets say you have a root folder, with 20 subfolders (ie created by a camera), 
each containing images. Click 'Upload' on the root directory and all the 
subimages are uploaded.

Is there a (Flex) component that will do this?

Thanks,

Philip





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








  
_
http://clk.atdmt.com/UKM/go/19780/direct/01/
We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now

RE: [flexcoders] Form not responding to 'enter keyDown' event

2010-06-01 Thread Philip Smith

I found the answer in 'setFocus()'. 
 


To: flexcoders@yahoogroups.com
From: loudj...@hotmail.com
Date: Tue, 1 Jun 2010 23:20:47 +
Subject: [flexcoders] Form not responding to 'enter keyDown' event

  



I have a delete confirmation Form object, with a 'keyDown' listener that is not 
responding when the enter key is pressed. The code works in isolation, but not 
as part of a larger, complex project.

Any ideas/tips how I can enable this functionality?

Thanks,

Philip


http://ns.adobe.com/mxml/2009"; 
xmlns:s="library://ns.adobe.com/flex/spark" 
xmlns:mx="library://ns.adobe.com/flex/mx" >





















  
_
http://clk.atdmt.com/UKM/go/19780/direct/01/
We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now

RE: [flexcoders] Image component not resizing correctly

2010-09-02 Thread Philip Smith

That worked. Thank you so much.

To: flexcoders@yahoogroups.com
From: hayke...@gmail.com
Date: Thu, 2 Sep 2010 09:05:03 +0100
Subject: Re: [flexcoders] Image component not resizing correctly


















 



  



  
  
  
You have to set 'maintainAspectRatio' to false if you want the content to fill 
the image.

Le 2010 9 2 01:56, "method_air"  a écrit :
> Currently experiencing an Image component resizing issue:
> 

> An Image component (inside an ItemRenderer/Spark List, with a fixed 
> width/height of '100') resizes incorrectly when it's source changes. 
> 
> The Image components source is initially set to an embedded placeholder 
> graphic (while the new source loads), and the Image width/height is correct.

> 
> However when the new source loads, the Image component does not resize to the 
> Image width/height set dimensions, and the background of the item renderer is 
> visible.
> 
> Any ideas how to fix this?

> 
> Thanks,
> 
> Philip
> 
> 
> 






 









  

RE: [flexcoders] Drop Target indicator visibility issue

2010-09-03 Thread Philip Smith

Still experiencing the drop indicator visibility issue.

This method handles the 'dragOver event (and is executing):

private function onDragOver(de:DragEvent):void
  {
de.preventDefault();

var owner:List = this.owner as List;

var dropLocal:DropLocation = 
owner.layout.calculateDropLocation(de);
trace (dropLocal);

owner.layout.showDropIndicator(dropLocal);
}

However, the drop indicator is not visible. I set a breakpoint in the code 
above and it appears the width of the drop indicator is 0...

Any ideas how to get this working?

Thanks.


To: flexcoders@yahoogroups.com
From: loudj...@hotmail.com
Date: Thu, 2 Sep 2010 19:15:04 +
Subject: [flexcoders] Drop Target indicator visibility issue


















 



  



  
  
  Currently experiencing a 'drop target indicator visibility' issue...



The drop target indicator is not visible when dragging an ItemRenderer in a 
Spark List with the following implementation: ( note the 'dragOver handler' 
(with 'layout.showDropIndicator' behavior) is in the 'onDragOver' method below):















GroupItemRenderer (referenced in the list above):















Any ideas on how to get this working? 



Thanks,



Philip







 









  

RE: [flexcoders] Inject dependency into Flex application preloader

2011-08-09 Thread Philip Smith

> You can inject certain kinds of dependencies as long as they don’t drag in 
> UIComponent.

Can you provide an example of this, Alex?

To: flexcoders@yahoogroups.com
From: aha...@adobe.com
Date: Mon, 8 Aug 2011 22:13:34 -0700
Subject: Re: [flexcoders] Inject dependency into Flex application preloader


















 



  



  
  
  

You can inject certain kinds of dependencies as long as they don’t drag in 
UIComponent.





On 8/8/11 4:29 PM, "method_air"  wrote:



 

 

 

   



Is it possible?



http://ns.adobe.com/mxml/2009";

   xmlns:s="library://ns.adobe.com/flex/spark"

   xmlns:mx="library://ns.adobe.com/flex/mx"

   preloader="com.storefront.editorhost.app.ProgressPreloader"

   >



Cheers,



Philip



 

   







-- 

Alex Harui

Flex SDK Team

Adobe System, Inc.

http://blogs.adobe.com/aharui








 









  

RE: [flexcoders] Inject dependency into Flex application preloader

2011-08-09 Thread Philip Smith

We'd like to inject some values into the application preloader instance:



Is it possible to do something like this hypothetical example: 

(application.preloader as CustomPreloader).preloaderModel = new 
PreloaderModel();

Or pass in properties, similar to how it's done with item renderers and 
'ClassFactory' properties?



To: flexcoders@yahoogroups.com
From: aha...@adobe.com
Date: Tue, 9 Aug 2011 10:05:04 -0700
Subject: Re: [flexcoders] Inject dependency into Flex application preloader


















 



  



  
  
  

Public class MyDownloadProgressBar extends SparkDownloadProgressBar

{

private var injectedClass:MyInjectClass;

}





On 8/9/11 9:35 AM, "Philip Smith"  wrote:



 

 

 

   



> You can inject certain kinds of dependencies as long as they don’t drag in 
> UIComponent.



Can you provide an example of this, Alex?



To: flexcoders@yahoogroups.com

From: aha...@adobe.com

Date: Mon, 8 Aug 2011 22:13:34 -0700

Subject: Re: [flexcoders] Inject dependency into Flex application preloader



 

 

 

   You can inject certain kinds of dependencies as long as they don’t drag in 
UIComponent.





On 8/8/11 4:29 PM, "method_air" http://loudj...@hotmail.com> > wrote:





 

 

 

   



Is it possible?



http://ns.adobe.com/mxml/2009";

   xmlns:s="library://ns.adobe.com/flex/spark"

   xmlns:mx="library://ns.adobe.com/flex/mx"

   preloader="com.storefront.editorhost.app.ProgressPreloader"

   >



Cheers,



Philip



 

   







-- 

Alex Harui

Flex SDK Team

Adobe System, Inc.

http://blogs.adobe.com/aharui








 









  

RE: [flexcoders] Inject dependency into Flex application preloader

2011-08-09 Thread Philip Smith

But in essence, going back to your example, there is no capacity to inject 
'MyInjectClass' with a public setter?

Public class MyDownloadProgressBar extends SparkDownloadProgressBar

{

private var _injectedClass:MyInjectClass;
private var _preloaderModel:PreloaderModel;

   public function set injectedClass(value:MyInjectClass):void
   {
 this._injectedClass = value;
   }

   public function set preloaderModel(value:PreloaderModel):void
  {
  this._preloaderModel = value;
  }

}

Ideally we would like to have a generic custom preloader component with an MVC 
structure that uses dependency injection.

To: flexcoders@yahoogroups.com
From: aha...@adobe.com
Date: Tue, 9 Aug 2011 10:39:41 -0700
Subject: Re: [flexcoders] Inject dependency into Flex application preloader


















 



  



  
  
  

The preloader is instantiated long before the application.  The app’s preloader 
property isn’t used at runtime, the compiler generates special code for it.



A preloader can certainly examine its environment and do different things.  
There are a few custom preloaders on my blogs.





On 8/9/11 10:21 AM, "Philip Smith"  wrote:



 

 

 

   



We'd like to inject some values into the application preloader instance:







Is it possible to do something like this hypothetical example: 



(application.preloader as CustomPreloader).preloaderModel = new 
PreloaderModel();



Or pass in properties, similar to how it's done with item renderers and 
'ClassFactory' properties?







To: flexcoders@yahoogroups.com

From: aha...@adobe.com

Date: Tue, 9 Aug 2011 10:05:04 -0700

Subject: Re: [flexcoders] Inject dependency into Flex application preloader



 

 

 

   Public class MyDownloadProgressBar extends SparkDownloadProgressBar

{

private var injectedClass:MyInjectClass;

}





On 8/9/11 9:35 AM, "Philip Smith" http://loudj...@hotmail.com> > wrote:





 

 

 

   



> You can inject certain kinds of dependencies as long as they don’t drag in 
> UIComponent.



Can you provide an example of this, Alex?



To: flexcoders@yahoogroups.com <http://flexcoders@yahoogroups.com> 

From: aha...@adobe.com <http://aha...@adobe.com> 

Date: Mon, 8 Aug 2011 22:13:34 -0700

Subject: Re: [flexcoders] Inject dependency into Flex application preloader



 

 

 

   You can inject certain kinds of dependencies as long as they don’t drag in 
UIComponent.





On 8/8/11 4:29 PM, "method_air" http://loudj...@hotmail.com>  <http://loudj...@hotmail.com 
<http://hotmail.com> > > wrote:





 

 

 

   



Is it possible?



http://ns.adobe.com/mxml/2009";

   xmlns:s="library://ns.adobe.com/flex/spark"

   xmlns:mx="library://ns.adobe.com/flex/mx"

   preloader="com.storefront.editorhost.app.ProgressPreloader"

   >



Cheers,



Philip



 

   







-- 

Alex Harui

Flex SDK Team

Adobe System, Inc.

http://blogs.adobe.com/aharui








 









  

RE: [flexcoders] Inject dependency into Flex application preloader

2011-08-09 Thread Philip Smith

A preloader that could be dropped into multiple projects and configured using 
dependency injection would be a useful feature imo, one that wasn't necessarily 
dependent on a full blown MVC framework.

To: flexcoders@yahoogroups.com
From: aha...@adobe.com
Date: Tue, 9 Aug 2011 11:11:12 -0700
Subject: Re: [flexcoders] Inject dependency into Flex application preloader


















 



  



  
  
  

You can write your code like that, but what code would set those values?  None 
of the MVC frameworks I know of are running when the preloader is running.  
That’s the point of the preloader.  It is framework independent and very 
lightweight so you can view something while the rest of the frameworks get 
downloaded and initialized.



There are two phases to the preloader: download and initialize.  You could 
probably set something in the initializing phase if you really want to.





On 8/9/11 11:00 AM, "Philip Smith"  wrote:



 

 

 

   



But in essence, going back to your example, there is no capacity to inject 
'MyInjectClass' with a public setter?



Public class MyDownloadProgressBar extends SparkDownloadProgressBar

{

private var _injectedClass:MyInjectClass;

private var _preloaderModel:PreloaderModel;



   public function set injectedClass(value:MyInjectClass):void

   {

 this._injectedClass = value;

   }



   public function set preloaderModel(value:PreloaderModel):void

  {

  this._preloaderModel = value;

  }

}



Ideally we would like to have a generic custom preloader component with an MVC 
structure that uses dependency injection.



To: flexcoders@yahoogroups.com

From: aha...@adobe.com

Date: Tue, 9 Aug 2011 10:39:41 -0700

Subject: Re: [flexcoders] Inject dependency into Flex application preloader



 

 

 

   The preloader is instantiated long before the application.  The app’s 
preloader property isn’t used at runtime, the compiler generates special code 
for it.



A preloader can certainly examine its environment and do different things.  
There are a few custom preloaders on my blogs.





On 8/9/11 10:21 AM, "Philip Smith" http://loudj...@hotmail.com> > wrote:





 

 

 

   



We'd like to inject some values into the application preloader instance:







Is it possible to do something like this hypothetical example: 



(application.preloader as CustomPreloader).preloaderModel = new 
PreloaderModel();



Or pass in properties, similar to how it's done with item renderers and 
'ClassFactory' properties?







To: flexcoders@yahoogroups.com <http://flexcoders@yahoogroups.com> 

From: aha...@adobe.com <http://aha...@adobe.com> 

Date: Tue, 9 Aug 2011 10:05:04 -0700

Subject: Re: [flexcoders] Inject dependency into Flex application preloader



 

 

 

   Public class MyDownloadProgressBar extends SparkDownloadProgressBar

{

private var injectedClass:MyInjectClass;

}





On 8/9/11 9:35 AM, "Philip Smith" http://loudj...@hotmail.com>  <http://loudj...@hotmail.com 
<http://hotmail.com> > > wrote:





 

 

 

   



> You can inject certain kinds of dependencies as long as they don’t drag in 
> UIComponent.



Can you provide an example of this, Alex?



To: flexcoders@yahoogroups.com <http://flexcoders@yahoogroups.com>  
<http://flexcoders@yahoogroups.com <http://yahoogroups.com> > 

From: aha...@adobe.com <http://aha...@adobe.com>  <http://aha...@adobe.com 
<http://adobe.com> > 

Date: Mon, 8 Aug 2011 22:13:34 -0700

Subject: Re: [flexcoders] Inject dependency into Flex application preloader



 

 

 

   You can inject certain kinds of dependencies as long as they don’t drag in 
UIComponent.





On 8/8/11 4:29 PM, "method_air" http://loudj...@hotmail.com>  <http://loudj...@hotmail.com 
<http://hotmail.com> >  <http://loudj...@hotmail.com <http://hotmail.com>  
<http://hotmail.com> > > wrote:





 

 

 

   



Is it possible?



http://ns.adobe.com/mxml/2009";

   xmlns:s="library://ns.adobe.com/flex/spark"

   xmlns:mx="library://ns.adobe.com/flex/mx"

   preloader="com.storefront.editorhost.app.ProgressPreloader"

   >



Cheers,



Philip



 

   







-- 

Alex Harui

Flex SDK Team

Adobe System, Inc.

http://blogs.adobe.com/aharui








 









  

RE: [flexcoders] BitmapData Argument: Error #1063: Arg count mismatch on object util.copy

2011-08-18 Thread Philip Smith

How would I go about implementing that? eg:

public class PageVO implements IExternalizable
{
public function get bitmapData():BitmapData
{
return _bitmapData;
}

public function set bitmapData(value:BitmapData):void
{
_bitmapData = value;
}

public function writeExternal(output:IDataOutput):void
{
   
}

public function readExternal(input:IDataInput):void
{
}
}

To: flexcoders@yahoogroups.com
From: aha...@adobe.com
Date: Thu, 18 Aug 2011 13:46:59 -0700
Subject: Re: [flexcoders] BitmapData Argument: Error #1063: Arg count mismatch 
on object util.copy


















 



  



  
  
  

You can implement IExternalizable on the object that references the bitmapdata





On 8/18/11 11:57 AM, "method_air"  wrote:



 

 

 

   



I'm creating a deep copy of an object which has a BitmapData property using 
ObjectUtil.copy and 'registerClassAlias', eg:



registerClassAlias("flash.display.BitmapData", BitmapData);



...but I'm getting the error: ArgumentError: Error #1063: Argument count 
mismatch on flash.display::BitmapData(). Expected 2, got 0



Is there a workaround?



Thanks,



Philip



 

   







-- 

Alex Harui

Flex SDK Team

Adobe System, Inc.

http://blogs.adobe.com/aharui








 









  

RE: [flexcoders] 3D Tree and flex 4.5

2011-09-23 Thread Philip Smith

And is there a way to workaround this error?

To: flexcoders@yahoogroups.com
From: loudj...@hotmail.com
Date: Fri, 23 Sep 2011 18:41:18 +
Subject: [flexcoders] 3D Tree and flex 4.5


















 



  



  
  
  I'm getting this error when I click on an item from the 3D found at



http://activeden.net/item/3d-tree-20/full_screen_preview/15727



ArgumentError: Error #2109: Frame label Open not found in scene Open.

at flash.display::MovieClip/gotoAndStop()

at com.zerofractal::tree3D/openFolder()

at com.zerofractal::tree3D/onItemPress()

at flash.events::EventDispatcher/dispatchEventFunction()

at flash.events::EventDispatcher/dispatchEvent()

at 
org.papervision3d.core.utils::InteractiveSceneManager/dispatchObjectEvent()

at 
org.papervision3d.core.utils::InteractiveSceneManager/handleMousePress()

at flash.events::EventDispatcher/dispatchEventFunction()

at flash.events::EventDispatcher/dispatchEvent()

at 
mx.managers::SystemManager/mouseEventHandler()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\SystemManager.as:2924]



This error didn't occur when using Flex 3. Are there known issues 'argument 
error 2109' and flex 4.5?



Thanks,



Philip






 









  

RE: [flexcoders] Hiding Flex tree XML CDATA

2011-09-28 Thread Philip Smith

I think I found the answer to this...override DefaultDataDescriptor isBranch.

To: flexcoders@yahoogroups.com
From: loudj...@hotmail.com
Date: Wed, 28 Sep 2011 22:34:57 +
Subject: [flexcoders] Hiding Flex tree XML CDATA


















 



  



  
  
  Is there a way to prevent CDATA from being displayed in a flex tree, so 
the 'team' node is represented as a leaf node and not a folder with a data 
structure like:





 

 



Thanks,



Philip








 









  

[flexcoders] broadway danny rose

2011-10-17 Thread Philip Smith

funny movie apparantly
  

RE: [flexcoders] broadway danny rose

2011-10-17 Thread Philip Smith

oops, sorry incorrect recipient.

To: flexcoders@yahoogroups.com
From: loudj...@hotmail.com
Date: Tue, 18 Oct 2011 05:58:58 +
Subject: [flexcoders] broadway danny rose


















 



  



  
  
  


funny movie apparantly
  



 









  

RE: [flexcoders] Flash Builder not tracing, breakpoint functionality lost, no compiler errors

2011-10-19 Thread Philip Smith

>>There is some setting that gets overridden, you need to 
Google for it though I forgot since it happen. I found the answer on a 
blog. Once you find it is pretty easy to fix.
>>Only
 time I have had something similar happen is when the Flash Player 
Debugger was either uninstalled or replaced by enterprise software with 
the regular Flash player.  Have you verified the Flash Player Debugger 
version is installed?  I don’t know if that’s the issue, but something 
to check. 

Flash player debug was installed.

We figured out what the issue was...the .swf compiled into the Web root and 
Output folder was not being referenced; the html template php file was 
referencing a different version of the app, in a different file location. When 
run/debug was executed, the .swf would stop at breakpoints, which made it extra 
confusing, although as stated, trace statements were not appearing, and 
breakpoint 'step over/step into' functionality wasn't working consistently. 
Once we cleared the cache, we discovered the problem.

Cheers,

Philip

To: flexcoders@yahoogroups.com
From: the_bran...@yahoo.com
Date: Wed, 19 Oct 2011 10:55:02 -0700
Subject: Re: [flexcoders] Flash Builder not tracing, breakpoint functionality 
lost, no compiler errors


















 



  



  
  
  There is some setting that gets overridden, you need to Google for it 
though I forgot since it happen. I found the answer on a blog. Once you find it 
is pretty easy to fix.
Sorry for not being more precise, i just forgot to bookmark the link.
C

From: method_air 
To: flexcoders@yahoogroups.com
Sent: Wednesday, October 19, 2011 6:58 PM
Subject: [flexcoders] Flash Builder not tracing, breakpoint functionality lost, 
no compiler errors

















 




  
  
  We have a Flashbuilder 4.5 project with a number of library projects.



This project has suddenly stopped showing trace statements, breakpoint 
functionality such as 'step into' is lost, and it is not building the workspace 
in an expected manner (ie the compiler is not showing errors in the 'Problems' 
tab).



This is 15+ team member project, and we have not run into this problem in two 
years of developing it.



Has anyone else encountered this issue, and we would appreciate ideas on how to 
fix it asap.



Thanks,



Philip






 














 









  

RE: [flexcoders] Error comparing bitmapData

2011-11-02 Thread Philip Smith

So apparently this error is as a result of comparing bitmap from images of 
different sizes.

To: flexcoders@yahoogroups.com
From: loudj...@hotmail.com
Date: Tue, 1 Nov 2011 22:54:27 +
Subject: [flexcoders] Error comparing bitmapData


















 



  



  
  
  I'm getting this error when comparing (what appears to be) two valid 
BitmapData objects, any ideas why?



Type Coercion failed: cannot convert -3 to flash.display.BitmapData.



code:



var diff:BitmapData =

BitmapData(this._editorBitmapData.compare(this._iceBitmapData));





Cheers,



Philip






 









  

RE: [flexcoders] ModuleLoader.child is null

2011-11-03 Thread Philip Smith

Can Flex modules be loaded into objects other than Application, eg sub view 
classes?

To: flexcoders@yahoogroups.com
From: loudj...@hotmail.com
Date: Thu, 3 Nov 2011 17:08:09 +
Subject: [flexcoders] ModuleLoader.child is null


















 



  



  
  
  Can anyone explain why ModuleLoader.child is null in the module event 
'ready' event listener:



this._moduleLoader = new ModuleLoader();

this._moduleLoader.url = "ImageComparisonModule.swf"; // 


this._moduleLoader.addEventListener(ModuleEvent.READY, onReady);



private function onReady(e:ModuleEvent):void

{

 var test:ITest ITest(this._moduleLoader.child); // null

}



Module code:





http://ns.adobe.com/mxml/2009"; 

  xmlns:s="library://ns.adobe.com/flex/spark" 

  xmlns:mx="library://ns.adobe.com/flex/mx" 

 implements="com.storefront.interfaces.controller.ITest"

  >















Cheers,



Philip






 









  

RE: [flexcoders] Re: ModuleLoader.child is null

2011-11-03 Thread Philip Smith

>> Perhaps you're getting an error on load; probably due to the path.  Try 
>> adding an event listener for ModuleEvent.ERROR.

The ModuleEvent.READY listener is executing, the path is correct. 

>> var test:ITest ITest(this._moduleLoader.child);

This was a typo. this._moduleLoader.child is still null here though. I get the 
same problem using mx and spark ModuleLoader. So unless someone can spot the 
problem, I'm going to use SWFLoader...

To: flexcoders@yahoogroups.com
From: timh...@aol.com
Date: Thu, 3 Nov 2011 18:35:10 +
Subject: [flexcoders] Re: ModuleLoader.child is null


















 



  



  
  
  Perhaps you're getting an error on load; probably due to the path.  Try 
adding an event listener for ModuleEvent.ERROR.



Also, this line is missing an equal sign:



var test:ITest ITest(this._moduleLoader.child);



Should be:



var test:ITest = ITest(this._moduleLoader.child);



-TH



--- In flexcoders@yahoogroups.com, "method_air"  wrote:

>

> Can anyone explain why ModuleLoader.child is null in the module event 'ready' 
> event listener:

> 

> this._moduleLoader = new ModuleLoader();

> this._moduleLoader.url = "ImageComparisonModule.swf"; // 

>   
> this._moduleLoader.addEventListener(ModuleEvent.READY, onReady);

> 

> private function onReady(e:ModuleEvent):void

> {

>  var test:ITest ITest(this._moduleLoader.child); // null  

> }

> 

> Module code:

> 

> 

> http://ns.adobe.com/mxml/2009"; 

> xmlns:s="library://ns.adobe.com/flex/spark" 

> xmlns:mx="library://ns.adobe.com/flex/mx" 

>implements="com.storefront.interfaces.controller.ITest"

> >

>   

>   

>   

>   

>   

> 

> 

> Cheers,

> 

> Philip

>






 









  

RE: [flexcoders] Re: ModuleLoader.child is null

2011-11-03 Thread Philip Smith

The module loads fine in a simple testbed, but in this particular larger 
application context, fails (and it's time consuming/costly debugging, when by 
all extents and purposes, it should work). In the end, I can achieve a similar 
result with SWFLoader, and cast the result as an interface type...

To: flexcoders@yahoogroups.com
From: loudj...@hotmail.com
Date: Thu, 3 Nov 2011 19:36:57 +
Subject: RE: [flexcoders] Re: ModuleLoader.child is null


















 



  



  
  
  


>> Perhaps you're getting an error on load; probably due to the path.  Try 
>> adding an event listener for ModuleEvent.ERROR.

The ModuleEvent.READY listener is executing, the path is correct. 

>> var test:ITest ITest(this._moduleLoader.child);

This was a typo. this._moduleLoader.child is still null here though. I get the 
same problem using mx and spark ModuleLoader. So unless someone can spot the 
problem, I'm going to use SWFLoader...

To: flexcoders@yahoogroups.com
From: timh...@aol.com
Date: Thu, 3 Nov 2011 18:35:10 +
Subject: [flexcoders] Re: ModuleLoader.child is null


















 



  



  
  
  Perhaps you're getting an error on load; probably due to the path.  Try 
adding an event listener for ModuleEvent.ERROR.



Also, this line is missing an equal sign:



var test:ITest ITest(this._moduleLoader.child);



Should be:



var test:ITest = ITest(this._moduleLoader.child);



-TH



--- In flexcoders@yahoogroups.com, "method_air"  wrote:

>

> Can anyone explain why ModuleLoader.child is null in the module event 'ready' 
> event listener:

> 

> this._moduleLoader = new ModuleLoader();

> this._moduleLoader.url = "ImageComparisonModule.swf"; // 

>   
> this._moduleLoader.addEventListener(ModuleEvent.READY, onReady);

> 

> private function onReady(e:ModuleEvent):void

> {

>  var test:ITest ITest(this._moduleLoader.child); // null  

> }

> 

> Module code:

> 

> 

> http://ns.adobe.com/mxml/2009"; 

> xmlns:s="library://ns.adobe.com/flex/spark" 

> xmlns:mx="library://ns.adobe.com/flex/mx" 

>implements="com.storefront.interfaces.controller.ITest"

> >

>   

>   

>   

>   

>   

> 

> 

> Cheers,

> 

> Philip

>







 









  



 









  

RE: [flexcoders] Re: ModuleLoader.child is null

2011-11-04 Thread Philip Smith

  >>> var test:ITest ITest(this._moduleLoader.child); // null   


The module implements ITest. Regardless, before the module is cast to an 
interface, this._moduleLoader.child is null. I read on another thread that the 
module 'ready' event may be dispatched before it's ready...


To: flexcoders@yahoogroups.com
From: valdhorli...@embarqmail.com
Date: Fri, 4 Nov 2011 16:10:22 +
Subject: [flexcoders] Re: ModuleLoader.child is null


















 



  



  
  
  In your module code I don't see where it implements 
com.storefront.interfaces.controller.ITest. If there is no implementation of 
the interface, the child will be null.



--- In flexcoders@yahoogroups.com, "method_air"  wrote:

>

> Can anyone explain why ModuleLoader.child is null in the module event 'ready' 
> event listener:

> 

> this._moduleLoader = new ModuleLoader();

> this._moduleLoader.url = "ImageComparisonModule.swf"; // 

>   
> this._moduleLoader.addEventListener(ModuleEvent.READY, onReady);

> 

> private function onReady(e:ModuleEvent):void

> {

>  var test:ITest ITest(this._moduleLoader.child); // null  

> }

> 

> Module code:

> 

> 

> http://ns.adobe.com/mxml/2009"; 

> xmlns:s="library://ns.adobe.com/flex/spark" 

> xmlns:mx="library://ns.adobe.com/flex/mx" 

>implements="com.storefront.interfaces.controller.ITest"

> >

>   

>   

>   

>   

>   

> 

> 

> Cheers,

> 

> Philip

>






 









  

RE: [flexcoders] Draggable Spark Panel with scrollable text area?

2011-11-07 Thread Philip Smith

http://code.google.com/p/force-explorer/source/browse/trunk/Flex/Explorer/src/components/DraggablePanel.as?r=8

To: flexcoders@yahoogroups.com
From: loudj...@hotmail.com
Date: Mon, 7 Nov 2011 22:14:15 +
Subject: [flexcoders] Draggable Spark Panel with scrollable text area?


















 



  



  
  
  How can I make this panel draggable, yet still maintain TextArea 
scrollability?











protected function mouseDownHandler(event:MouseEvent):void

{

(event.currentTarget as 
UIComponent).startDrag();

}



protected function mouseUpHandler(event:MouseEvent):void

{

(event.currentTarget as UIComponent).stopDrag();

}



Cheers,



Philip






 









  

RE: [flexcoders] ArgumentError: Error #2004: One of the parameters is invalid@Graphics/drawRect

2011-12-06 Thread Philip Smith

>> it depends on your code. 

The error is happening in the Spark code...

To: flexcoders@yahoogroups.com
From: csom...@gmail.com
Date: Tue, 6 Dec 2011 09:24:20 +0100
Subject: Re: [flexcoders] ArgumentError: Error #2004: One of the parameters is 
invalid@Graphics/drawRect


















 



  



  
  
  it depends on your code. 
error finding method: comment half of the block. If its still the same error, 
the mistake will be in the other half. if it stopped the error, the error is in 
the commented half. repeat for the half with the error. repeat until you found 
the problem..

the error is because: if you draw something, change a label, etc.. so anything 
with a visual change, it won't change immediately, but every 1/24 second (by 
default) there is a timer event in Flex to apply that changes. So this error 
comes when the program refreshes its view. (you know because of the last row of 
the error:  
at flash.utils::Timer/tick(), and goes to flex sdk, not your code..) you get 
very similar error, when you want to addChild() to an Element for example..
hope I helped.. 

On Tue, Dec 6, 2011 at 2:24 AM, method_air  wrote:
















 



  



  
  
  This error started appearing, (the stack trace only has information 
relating to flex sdk classes), anyone know how to fix it:



ArgumentError: Error #2004: One of the parameters is invalid.

at flash.display::Graphics/drawRect()

at 
spark.primitives::Rect/draw()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\primitives\Rect.as:463]

at 
spark.primitives.supportClasses::StrokedElement/updateDisplayList()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\primitives\supportClasses\StrokedElement.as:143]

at 
spark.primitives.supportClasses::GraphicElement/http://www.adobe.com/2006/flex/mx/internal::doUpdateDisplayList()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\primitives\supportClasses\GraphicElement.as:3958]


at 
spark.primitives.supportClasses::GraphicElement/validateDisplayList()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\primitives\supportClasses\GraphicElement.as:3942]

at 
spark.components::Group/validateDisplayList()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\Group.as:1087]

at 
mx.managers::LayoutManager/validateDisplayList()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:736]

at 
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:819]

at 
mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180]

at flash.utils::Timer/_timerDispatch()

at flash.utils::Timer/tick()






 









  











 









  

RE: [flexcoders] ArgumentError: Error #2004: One of the parameters is invalid@Graphics/drawRect

2011-12-06 Thread Philip Smith

Ok thanks, that helps. I will look into it.

To: flexcoders@yahoogroups.com
From: aha...@adobe.com
Date: Tue, 6 Dec 2011 11:21:55 -0800
Subject: Re: [flexcoders] ArgumentError: Error #2004: One of the parameters is 
invalid@Graphics/drawRect


















 



  



  
  
  

This error occurs when a components gets drawn at a really small size and its 
constraints compute out to be invalid.  For example, if you have:







Once the component containing this rect is only 3 pixels wide, the width will 
be computed as –1 since the left side will be at 2 and right side at 1 and 
(right – left) = -1.



We don’t check for these conditions for performance reasons, and try to get the 
minWidths to defend against it.



In the debugger, you should be able to double-click on the draw() in the stack 
trace then examine properties to determine which rect it is.





On 12/6/11 9:36 AM, "Csomák Gábor"  wrote:



 

 

 

   



yes, but you trigger it, because the drawing and other visual functions are not 
called instantly, but on every timer tick, and the timer's speed is 24 
ticks/sec by default. so at every tick spark askes every component if the 
visuals have changed, and if so, calls the redraw, and thats where it goes back 
to your code.. 



On Tue, Dec 6, 2011 at 6:30 PM, Philip Smith  wrote:

  

 

 

   



>> it depends on your code. 



The error is happening in the Spark code...



To: flexcoders@yahoogroups.com

From: csom...@gmail.com

Date: Tue, 6 Dec 2011 09:24:20 +0100

Subject: Re: [flexcoders] ArgumentError: Error #2004: One of the parameters is 
invalid@Graphics/drawRect





  

 

 

   

it depends on your code. 

error finding method: comment half of the block. If its still the same error, 
the mistake will be in the other half. if it stopped the error, the error is in 
the commented half. repeat for the half with the error. repeat until you found 
the problem..



the error is because: if you draw something, change a label, etc.. so anything 
with a visual change, it won't change immediately, but every 1/24 second (by 
default) there is a timer event in Flex to apply that changes. So this error 
comes when the program refreshes its view. (you know because of the last row of 
the error:   at flash.utils::Timer/tick(), and goes to flex sdk, not your 
code..) you get very similar error, when you want to addChild() to an Element 
for example..



hope I helped.. 



On Tue, Dec 6, 2011 at 2:24 AM, method_air  wrote:

  

 

 

   This error started appearing, (the stack trace only has information relating 
to flex sdk classes), anyone know how to fix it:



ArgumentError: Error #2004: One of the parameters is invalid.

at flash.display::Graphics/drawRect()

at 
spark.primitives::Rect/draw()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\primitives\Rect.as:463]

at 
spark.primitives.supportClasses::StrokedElement/updateDisplayList()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\primitives\supportClasses\StrokedElement.as:143]

at 
spark.primitives.supportClasses::GraphicElement/http://www.adobe.com/2006/flex/mx/internal::doUpdateDisplayList
 <http://www.adobe.com/2006/flex/mx/internal%3a%3adoUpdateDisplayList> 
()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\primitives\supportClasses\GraphicElement.as:3958]

at 
spark.primitives.supportClasses::GraphicElement/validateDisplayList()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\primitives\supportClasses\GraphicElement.as:3942]

at 
spark.components::Group/validateDisplayList()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\Group.as:1087]

at 
mx.managers::LayoutManager/validateDisplayList()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:736]

at 
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:819]

at 
mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\4.5.1\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1180]

at flash.utils::Timer/_timerDispatch()

at flash.utils::Timer/tick()





 

   

 





 



   

 

   

 



 

   







-- 

Alex Harui

Flex SDK Team

Adobe System, Inc.

http://blogs.adobe.com/aharui








 









  

RE: [flexcoders] Flex Tree selectedItem is null issue

2011-12-30 Thread Philip Smith

Setting the 'selectedItem' twice works around this flex tree bug.

To: flexcoders@yahoogroups.com
From: loudj...@hotmail.com
Date: Fri, 30 Dec 2011 19:14:19 +
Subject: [flexcoders] Flex Tree selectedItem is null issue


















 



  



  
  
  This works, and tree.selectedItem is not null after assignment:



var nodeToSelect:XML = this.tree.dataProvider.getItemAt(0) as XML;



this.tree.expandItem(nodeToSelect, true);

this.tree.selectedItem = nodeToSelect; // NOT NULL



But this doesn't, when the tree 'selectedItem' is set to an xml sub node: 



var node:XML = this.tree.dataProvider.getItemAt(0) as XML;

var nodeToSelect:XML = node.children()[0]; // valid value



this.tree.expandItem(n2, true);

this.tree.selectedItem = nodeToSelect; // NULL



How can I fix this?



Cheers.






 









  

RE: [flexcoders] Displaying spark scrollbars for mx components wrapped in a scroller

2012-02-09 Thread Philip Smith




Thanks Haykel, I was able to get the spark scrollbars to display based on your 
example. But the width and height of the container component () needs to percentage 
based in my real world application, so it looks like I'm going to have to skin 
the mx scroll bars separately for now.

To: flexcoders@yahoogroups.com
From: hayke...@gmail.com
Date: Thu, 9 Feb 2012 08:19:38 +0100
Subject: Re: [flexcoders] Displaying spark scrollbars for mx components wrapped 
in a scroller


















 



  



  
  
  
The child of the Scroller (called viewport) must resize freely for scrolling to 
work. If you set its size to '100%' then it will always have the size of the 
scroller and scrolling will never be required. Try this (not tested):



  


  

Haykel Ben Jemia

Allmas
Web & Mobile Development
http://www.allmas-tn.com






On 9 February 2012 02:15, method_air  wrote:
















 



  



  
  
  Is it possible to hide the mx scrollbars for an mx component, and show 
the spark scrollbars of the spark 'scroller' component wrapping it instead? How 
can I get this example to work:





   



   





Cheers,



Philip







 









  












 









  
  

RE: [flexcoders] Flex Menu.hide listener...which component was clicked to close menu?

2012-03-07 Thread Philip Smith

I figured this one out...added a stage mouse down listener, and found the value 
in MouseEvent target.

To: flexcoders@yahoogroups.com
From: loudj...@hotmail.com
Date: Thu, 8 Mar 2012 00:20:21 +
Subject: [flexcoders] Flex Menu.hide listener...which component was clicked to 
close menu?


















 



  



  
  
  Is there a way to determine which component was clicked to trigger 
MenuEvent.MENU_HIDE?



Thanks,



Philip






 









  

RE: [flexcoders] Flex Menu.createMenu on mouseDown issue

2012-03-08 Thread Philip Smith

The menu doesn't open. And 'mouseDown' is required in the context of the app. 
Any ideas, Alex?

Here's the test code:


http://ns.adobe.com/mxml/2009"; 
   xmlns:s="library://ns.adobe.com/flex/spark" 
   xmlns:mx="library://ns.adobe.com/flex/mx" width="400" 
height="300">










 


















To: flexcoders@yahoogroups.com
From: aha...@adobe.com
Date: Wed, 7 Mar 2012 22:55:23 -0800
Subject: Re: [flexcoders] Flex Menu.createMenu on mouseDown issue


















 



  



  
  
  

What happens?





On 3/7/12 6:06 PM, "method_air"  wrote:



 

 

 

   



Attempting to create a flex Menu on 'mouseDown' is failing (but works using the 
'click' event):



private function createAndShow():void 

{

var myMenu:Menu = Menu.createMenu(null, myMenuData, false);

myMenu.show(10, 10);

}

]]>















Is there a workaround?



Thanks,



Philip



 

   







-- 

Alex Harui

Flex SDK Team

Adobe Systems, Inc.

http://blogs.adobe.com/aharui








 









  

RE: [flexcoders] Flex Menu.createMenu on mouseDown issue

2012-03-08 Thread Philip Smith

Substitute this button code to see the menu create fail:




To: flexcoders@yahoogroups.com
From: loudj...@hotmail.com
Date: Thu, 8 Mar 2012 17:27:45 +
Subject: RE: [flexcoders] Flex Menu.createMenu on mouseDown issue


















 



  



  
  
  


The menu doesn't open. And 'mouseDown' is required in the context of the app. 
Any ideas, Alex?

Here's the test code:


http://ns.adobe.com/mxml/2009"; 
   xmlns:s="library://ns.adobe.com/flex/spark" 
   xmlns:mx="library://ns.adobe.com/flex/mx" width="400" 
height="300">










 


















To: flexcoders@yahoogroups.com
From: aha...@adobe.com
Date: Wed, 7 Mar 2012 22:55:23 -0800
Subject: Re: [flexcoders] Flex Menu.createMenu on mouseDown issue


















 



  



  
  
  

What happens?





On 3/7/12 6:06 PM, "method_air"  wrote:




 

 

 

   



Attempting to create a flex Menu on 'mouseDown' is failing (but works using the 
'click' event):



private function createAndShow():void 

{

var myMenu:Menu = Menu.createMenu(null, myMenuData, false);

myMenu.show(10, 10);

}

]]>















Is there a workaround?



Thanks,



Philip



 

   







-- 

Alex Harui

Flex SDK Team

Adobe Systems, Inc.

http://blogs.adobe.com/aharui









 









  



 









  

RE: [flexcoders] Flex Menu.createMenu on mouseDown issue

2012-03-08 Thread Philip Smith

That works. Thanks.

To: flexcoders@yahoogroups.com
From: aha...@adobe.com
Date: Thu, 8 Mar 2012 14:38:38 -0800
Subject: Re: [flexcoders] Flex Menu.createMenu on mouseDown issue


















 



  



  
  
  


Did you try callLater on createAndhow?





On 3/8/12 9:30 AM, "Philip Smith"  wrote:



 

 

 

   



Substitute this button code to see the menu create fail:









To: flexcoders@yahoogroups.com

From: loudj...@hotmail.com

Date: Thu, 8 Mar 2012 17:27:45 +

Subject: RE: [flexcoders] Flex Menu.createMenu on mouseDown issue



 

 

 

   

The menu doesn't open. And 'mouseDown' is required in the context of the app. 
Any ideas, Alex?



Here's the test code:





http://ns.adobe.com/mxml/2009"; 

   xmlns:s="library://ns.adobe.com/flex/spark" 

   xmlns:mx="library://ns.adobe.com/flex/mx" width="400" 
height="300">











  ! ;  









 















  &nb! sp; 





















To: flexcoders@yahoogroups.com

From: aha...@adobe.com

Date: Wed, 7 Mar 2012 22:55:23 -0800

Subject: Re: [flexcoders] Flex Menu.createMenu on mouseDown issue



 

 

 

   What happens?





On 3/7/12 6:06 PM, "method_air"  wrote:





 

 

 

   



Attempting to create a flex Menu on 'mouseDown' is failing (but works using the 
'click' event):



private function createAndShow():void 

{

var myMenu:Menu = Menu.createMenu(null, myMenuData, false);

myMenu.show(10, 10);

}

]]>















Is there a workaround?



Thanks,



Philip



 

   







-- 

Alex Harui

Flex SDK Team

Adobe Systems, Inc.

http://blogs.adobe.com/aharui