[flexcoders] How to embed the font with unicode range with different language

2009-10-09 Thread cap
Hi,

  I would like to use the embed font for the only Numberic and English 
letter but use the default for different country language (eg. Chinese). I 
found that i cannot do that in the following code. Can some expert give me 
advice on it?
thx

capho

?xml version=1.0?
!-- fonts/EmbeddedFontCharacterRange.mxml --
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  mx:Style
 @font-face {
src:url(test.ttf);
fontFamily: myFontFamily;

unicodeRange:
   U+0041-U+005A, /* Upper-Case [A..Z] */
   U+0061-U+007A, /* Lower-Case a-z */
   U+0030-U+0039, /* Numbers [0..9] */
   U+002E-U+002E; /* Period [.] */

 }


  /mx:Style

  mx:Panel title=Embedded Font Character Range
mx:TextArea width=400 height=150 text=abcdTest#28204;#35430; 
fontFamily=myFontFamily/
  /mx:Panel
/mx:Application




[flexcoders] itemRollOut on AdvancedDataGrid?

2009-10-09 Thread MicC
No tooltips on the ADG, just handlers for itemRollOver and itemRollOut. ADG is 
set to selectionMode=singleCell. Never getting an itemRollOut event as far as 
I can tell. I was reading about some problems with this, but was not aware that 
the ADG itemRollOut event just plain did not fire. Is this correct? TIA,

Mic.



[flexcoders] Re: Tree component

2009-10-09 Thread Mihai C

I tried this, but i cant expand and collapse nodes. There are no possibility to 
do this. I have extended Box and implements IDropInListItemRenderer.
I tried also to extend TreeItemRenderer and add some child on set data 
depending the depth of the node, but no child appear, only folder icon and 
label.
I want to say that dataProvider for the Tree is an array of objects, objects 
that have a property children array of other objects.

Mihai

--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 It would probably be easier to have a single renderer that can display 
 differently.  If it implements IDropInListItemRenderer you can access 
 listData.depth to know the depth of the node.
 
 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of Mihai C
 Sent: Thursday, October 08, 2009 8:08 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Tree component
 
 
 
 Hi!
 
 Is there a way to create different ItemRenderers for each level from a Tree?
 
 Mihai





[flexcoders] Situations when Keyboard events are not detected

2009-10-09 Thread mole5000.geo
I have a Flex 3 app where I have added a keyboard listener to the stage using 
capture (this was done in a component defined in a swc library) with the intent 
of getting all keyboard events that happen in the application.  However, under 
certain circumstances (specifically when i click on a custom chart component), 
the event listeners will no longer fire until I click on other components _or_ 
I press the tab key.

I have tried setting the event listeners with a high priority number as well 
but they still don't fire.

What kind of things could be causing this behaviour?

--
Alistair Hutton



[flexcoders] dynamic class | add property runtime

2009-10-09 Thread ilikeflex
Hi

If i have any public dynamic class then i can add any property at run time. 

Correct me if i am not correct??

But if i do the same for the RemoteObject. It does not give me error at compile 
time but it gives me error at runtime.

My understanding is that i should be able to add the property at run time since 
it is dynamic.

Thanks
ilikeflex









[flexcoders] Re: Trees are killing me

2009-10-09 Thread timgerr
OK, I am now hanging my hat in hand.  I need help with a method to get the 
object of the folder that I am over, I have no idea how to do this.  PLEASE 
HELP!

Thanks, maybe I can get my dignity back.

timgerr

--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 You should be getting DRAG_OVER events.  The dragSource contains the object 
 being dragged.  You can use mouseEventToItemRenderer to get the renderer you 
 are currently over.
 
 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of timgerr
 Sent: Tuesday, October 06, 2009 8:54 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Trees are killing me
 
 
 
 Thanks for the response, I have a question for ya. I am dragging with in a 
 tree, how can I get the object that I am dragging and when I drag over 
 something how can I get that object. I am using an arraycollection.
 
 Thanks again for the help.
 timgerr
 
 --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex 
 Harui aharui@ wrote:
 
  I see. You don't want to allow dropping at the top-level.
 
  I think you can get the DRAG_OVER event, look at where the mouse is, and 
  call event.preventDefault()
 
  Alex Harui
  Flex SDK Developer
  Adobe Systems Inc.http://www.adobe.com/
  Blog: http://blogs.adobe.com/aharui
 
  From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
  [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
  Behalf Of timgerr
  Sent: Monday, October 05, 2009 2:18 PM
  To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] Re: Trees are killing me
 
 
 
  I am creating an app that folders are groups and leafs are users. I want 
  users in groups (folders) only.
 
  Tim
 
  --- In 
  flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com,
   Alex Harui aharui@ wrote:
  
   You have folders mixed with non-folders and you only want to allow 
   dropping on the folder rows? Why not allow dropping on the leaf rows?
  
   Alex Harui
   Flex SDK Developer
   Adobe Systems Inc.http://www.adobe.com/
   Blog: http://blogs.adobe.com/aharui
  
   From: 
   flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com

   [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com]
On Behalf Of timgerr
   Sent: Monday, October 05, 2009 10:28 AM
   To: 
   flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com
   Subject: [flexcoders] Trees are killing me
  
  
  
   Hello all,
   I was wondering if someone could help me. I have a tree with 3 folders, 
   how can I make sure nodes get dropped into the folders?
  
   Thank for the look,
   timgerr
  
 





[flexcoders] TileList and CustomItemRenderer: How to dynamically change styles

2009-10-09 Thread anuppc

Hi,
I'm new to flex, would need some help from the experts.

I have a TileList in my application.. Here is the snippet:


var favList:TileList = new TileList();
favList.columnCount = 2;
favList.dataProvider = favArr;
favList.itemRenderer = createItemRenderer();
favList.percentHeight = 100;
favList.percentWidth = 100;
favList.dropEnabled = true;
favList.dragEnabled = true;
favList.dragMoveEnabled = true;

The ItemRenderer tied to the TileList  is :

mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; width=100%
height=100% borderStyle=solid borderThickness=0  cornerRadius=5
mx:Style

.filled
{
border-style: solid;
border-thickness: 0;
border-skin: ClassReference(border.SimpleGradientBorder);
fill-colors: #F0F0F0, #C9C9C9;
corner-radius: 10;
drop-shadow-enabled: true;
}

/mx:Style
mx:Script
![CDATA[
public function changeStyleWest(col1:String, col2:String):void
{
box.setStyle(fillColors, [col1, col2]);
}
]]
/mx:Script
mx:HBox  id=box styleName=filled horizontalAlign=center
verticalAlign=middle width=100% height=100%   borderColor=#B7BABC
borderStyle=solid borderThickness=0  cornerRadius=5
themeColor=#009DFF 
   mx:VBox horizontalAlign=center verticalAlign=middle
borderStyle=solid borderThickness=0  cornerRadius=5
mx:Image id=image  width=100 height=100
source=assets/{data.Image}   visible=true/

mx:Label text={data.Name}  width=100 textAlign=center 
visible=true /
   /mx:VBox

/mx:HBox

/mx:VBox

Now what i want to achieve is else where in the application there are couple
of buttons and on clicking these buttons i want to change the fill-colors or
style of each Tile based on some Data attributes.

Many Thanks
-- 
View this message in context: 
http://www.nabble.com/TileList-and-CustomItemRenderer%3A-How-to-dynamically-change-styles-tp25822015p25822015.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] How to create a zoom UI object?

2009-10-09 Thread Nick Middleweek
Hi,

I'm hoping to create a little zoom UI object - like the one you find at the
bottom-right of IE.

I'm guessing I could use a ComboxBox? But I can't figure out how to drop an
icon on it...

Or is there a better way of doing this? Perhaps a button that when clicked
just shows a popup?


I think I need a few pointers so any guidance would be great... :)


Thanks,
Nick


[flexcoders] Re: Still struggling with creation complete

2009-10-09 Thread dfalling
Thanks for the response.

I actually used to use that exact technique to handle the sliding.  The only 
problem with that way is that since you're listening for the change, the new 
tab will appear briefly before the animation.  It will slide in properly, but 
that flicker irritated me.  If there's a good way to fix that problem, then I 
could abandon my attempts at overriding selected index.

I am eventually calling super.selectedIndex, it's just not until the entire 
transition has completed.

--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 Try the following.  It doesn't use creationComplete, but I might be missing 
 something.  One key change is that your selectedIndex override never called 
 super.selectedIndex so the viewstack didn't really know what was going on.  
 This version reacts to the change event instead.
 
 package
 {
 import flash.display.DisplayObject;
 import flash.events.Event;
 import flash.events.TimerEvent;
 import flash.utils.Timer;
 
 import mx.containers.ViewStack;
 import mx.core.Container;
 import mx.core.mx_internal;
 import mx.effects.Move;
 import mx.events.EffectEvent;
 import mx.events.IndexChangedEvent;
 use namespace mx_internal;
 
 
 public class SlidingViewStack extends ViewStack
 {
 public static const LEFT_RIGHT:String = 
 leftRight;
 public static const TOP_BOTTOM:String = 
 topBottom;
 
 private var _direction:String = LEFT_RIGHT;
 private var _lastIndex:int = -1;
 private var _newIndex:int;
 
 public function SlidingViewStack()
 {
 addListeners();
 }
 
 public function set 
 direction(direction:String):void
 {
 _direction = direction;
 }
 
 public function get direction():String
 {
 return _direction;
 }
 
 private function addListeners():void
 {
 addEventListener(change, 
 selectedIndexChanged);
 }
 
 private function 
 selectedIndexChanged(event:IndexChangedEvent):void
 {
 _newIndex = event.newIndex;
 _lastIndex = event.oldIndex;
 if(event.newIndex != 
 event.oldIndex  event.newIndex = 0  event.oldIndex = 0)
 {
 
 slideTabs(event.oldIndex, event.newIndex);
 }
 }
 
 private function 
 slideTabs(oldIndex:int,newIndex:int):void
 {
 var oldChild:DisplayObject = 
 getChildAt(oldIndex);
 var newChild:DisplayObject = 
 getChildAt(newIndex);
 
 var oldMove:Move = new 
 Move(oldChild);
 var newMove:Move = new 
 Move(newChild);
 
 if(oldIndex  newIndex)
 {
 //Moving old 
 Tab in the direction specified : down through bottom or out through right
 if(_direction 
 == TOP_BOTTOM)
 {
   
   oldMove.yTo = oldChild.height + 100;
   
   newChild.y = -oldChild.height;
   
   newMove.yTo = 0;
 }
 else 
 if(_direction == LEFT_RIGHT)
 {
   
   oldMove.xTo = oldChild.width + 100;
 

[flexcoders] Re: How to work with flex and a c# backend

2009-10-09 Thread tntomek
Flex works like a peach with any backend, we successfully use it with 
C#/ASP,NET. There is another post about this recently, have a look there. 
Deserializers will correctly convert your NaN to C# 0 and are fully built to do 
even the most complex object correctly. And if you can you remoting not web 
services. 

--- In flexcoders@yahoogroups.com, Jorge Silva josi...@... wrote:

 Hi everybody!
 I have a question about how to work with flex and c#.
 Here is the situation:
 We are developing an app with a Flex frontend and a C# backend, connected
 through web services.
 We are using the FLex Builder 3's Import Web Service tool to autogenerate
 the webservice classes from the wsdl generated by c#.
 But the problem arise when Flex serialize our objects. For example,
 when we have a Number property with no value, this is serialized as NaN, and
 our backend doesn't know about NaN. Another example, and this is our biggest
 problem, is when we serialize a cyclic reference, we get a stack over flow
 exception.
 I know in java, for example, you can configure the way xstream work with
 cyclic reference and all that stuff...
 So, the question is, can we change the way Flex serialize the objects so C#
 can work with this frontend? Does anybody work with this architecture
 successfully? Is there any issue we should be aware about how flex serialize
 objects or how flex interacts with c#?
 Any clue/tip/advice would be very appreciated.
 Thanks in advance!
 Jorge





[flexcoders] Re: Key Return for button

2009-10-09 Thread seanmcmonahan

If you are using Form defautButton is the easiest way to go.

Otherwise listening for the key down or key up events is what you want to do.
--- In flexcoders@yahoogroups.com, Christophe christophe_jacque...@... 
wrote:

 Hello,
 
 I have a button on a page of a flex application. 
 
 I want that a press on the key Return has the same effect as a click on the 
 button. How to do that ?
 
 Thank you,
 Christophe,





RE: [flexcoders] ADOBE AIR Qs: How do you load modules from app-storage domain?

2009-10-09 Thread Battershall, Jeff
There is a way to do this and I've seen write ups on it.  Search around and 
you'll find it.  It would be nice if AIR supported this out of the box but 
there are security concerns when apps are being updated without involving 
someone who has admin rights to the machine.

Jeff


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Alex Harui
Sent: Friday, October 09, 2009 1:13 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] ADOBE AIR Qs: How do you load modules from 
app-storage domain?




I'm not sure what moduleLoader is.  You should be using IModuleInfo.load().

Then, a UIComponent makes a poor container.  It doesn't know how to measure or 
layout the child so the child might have 0 size.

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of handitan
Sent: Thursday, October 08, 2009 8:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ADOBE AIR Qs: How do you load modules from app-storage 
domain?



Hi all,

I am using AIR 1.5 SDK.
I am trying to find a way to build patching mechanism for my AIR app, which 
consists modules, sqlite DBs, and other files, by updating ONLY files that need 
to be updated.

I know that this is not possible using AIR Update Framework because the way I 
understand it works is that any update that you have both minor and major, you 
will have to reinstall everything. This is a pain if you have a huge size AIR 
app.

I have sort of an idea to build my own update mechanism but in order for this 
to work, I will need to be able to do update operation on my AIR app files.

Since app domain doesn't allow us to do that, I have to find a place where 
updates can take place and my app could still work. I read that app-storage 
allows you to do all of that.

Okay... so I build a really simple AIR app that the sole purpose is to load swf 
module from app-storage to prove my theory.

So here's my AIR app code the short version:

mx:WindowedApplication
mx:Script
private function loadSwf():void
{
var dir:File = File.applicationStorageDirectory
dir = dir.resolvePath(SimpleSwf.swf);//SimpleSwf is the module

var myURLRequest:URLRequest = new URLRequest(dir.url);
var myURLLoader:URLLoader = new URLLoader();
myURLLoader.dataFormat = URLLoaderDataFormat.BINARY;
myURLLoader.load(myURLRequest);
myURLLoader.addEventListener(Event.COMPLETE,loadModuleCompleteHandler);
}

private function loadModuleCompleteHandler(pEvent:Event):void
{
var context:LoaderContext = new LoaderContext();
context.allowLoadBytesCodeExecution = true;
context.applicationDomain = ApplicationDomain.currentDomain;

var moduleLoader:Loader = new Loader();
var loader:URLLoader = URLLoader(pEvent.target);
moduleLoader.loadBytes(loader.data,context);

container.addChild(moduleLoader);
}
/mx:Script

mx:VBox width=100% height=100%
mx:Button label=Load SWF click=loadSwf()/
mx:UIComponent id=container/
/mx:VBox
/mx:WindowedApplication

The result is:
When I click the button Load SWF, I could see that the loader loads the SWF 
correctly (it got the right size, etc) but I didn't see the module shows up on 
the screen at all.
I didn't know what I do wrong.

Please enlighten me.







RE: [flexcoders] Re: Still struggling with creation complete

2009-10-09 Thread Alex Harui
Set alpha=0?

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of dfalling
Sent: Friday, October 09, 2009 7:38 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Still struggling with creation complete



Thanks for the response.

I actually used to use that exact technique to handle the sliding. The only 
problem with that way is that since you're listening for the change, the new 
tab will appear briefly before the animation. It will slide in properly, but 
that flicker irritated me. If there's a good way to fix that problem, then I 
could abandon my attempts at overriding selected index.

I am eventually calling super.selectedIndex, it's just not until the entire 
transition has completed.

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex 
Harui aha...@... wrote:

 Try the following. It doesn't use creationComplete, but I might be missing 
 something. One key change is that your selectedIndex override never called 
 super.selectedIndex so the viewstack didn't really know what was going on. 
 This version reacts to the change event instead.

 package
 {
 import flash.display.DisplayObject;
 import flash.events.Event;
 import flash.events.TimerEvent;
 import flash.utils.Timer;

 import mx.containers.ViewStack;
 import mx.core.Container;
 import mx.core.mx_internal;
 import mx.effects.Move;
 import mx.events.EffectEvent;
 import mx.events.IndexChangedEvent;
 use namespace mx_internal;


 public class SlidingViewStack extends ViewStack
 {
 public static const LEFT_RIGHT:String = leftRight;
 public static const TOP_BOTTOM:String = topBottom;

 private var _direction:String = LEFT_RIGHT;
 private var _lastIndex:int = -1;
 private var _newIndex:int;

 public function SlidingViewStack()
 {
 addListeners();
 }

 public function set direction(direction:String):void
 {
 _direction = direction;
 }

 public function get direction():String
 {
 return _direction;
 }

 private function addListeners():void
 {
 addEventListener(change, selectedIndexChanged);
 }

 private function selectedIndexChanged(event:IndexChangedEvent):void
 {
 _newIndex = event.newIndex;
 _lastIndex = event.oldIndex;
 if(event.newIndex != event.oldIndex  event.newIndex = 0  event.oldIndex 
 = 0)
 {
 slideTabs(event.oldIndex, event.newIndex);
 }
 }

 private function slideTabs(oldIndex:int,newIndex:int):void
 {
 var oldChild:DisplayObject = getChildAt(oldIndex);
 var newChild:DisplayObject = getChildAt(newIndex);

 var oldMove:Move = new Move(oldChild);
 var newMove:Move = new Move(newChild);

 if(oldIndex  newIndex)
 {
 //Moving old Tab in the direction specified : down through bottom or out 
 through right
 if(_direction == TOP_BOTTOM)
 {
 oldMove.yTo = oldChild.height + 100;
 newChild.y = -oldChild.height;
 newMove.yTo = 0;
 }
 else if(_direction == LEFT_RIGHT)
 {
 oldMove.xTo = oldChild.width + 100;
 newChild.x = -oldChild.width;
 newMove.xTo = 0;
 }
 }
 else
 {
 //Moving old Tab in the direction specified : out through top or out through 
 left
 if(_direction == TOP_BOTTOM)
 {
 oldMove.yTo = -oldChild.height;
 newChild.y = oldChild.height + 100;
 newMove.yTo = 0;
 }
 else if(_direction == LEFT_RIGHT)
 {
 oldMove.xTo = -oldChild.width;
 newChild.x = oldChild.width + 100;
 newMove.xTo = 0;
 }
 }
 oldChild.visible = true;
 newChild.visible = true;
 newMove.play();
 oldMove.addEventListener(EffectEvent.EFFECT_END,childOffScreen);
 oldMove.play();
 }

 private function childOffScreen(event:EffectEvent):void
 {
 event.target.removeEventListener(EffectEvent.EFFECT_END,childOffScreen);
 event.target.target.visible = false;
 super.selectedIndex = _newIndex;
 }

 }
 }

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

 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
 Behalf Of dfalling
 Sent: Thursday, October 08, 2009 2:47 PM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] Re: Still struggling with creation complete



 I've figured out that if I tell the targetChild to invalidate its size, 
 properties, or display list, then the creationComplete event will be 
 dispatched for it. However, the view still slides in unrendererd, and only 
 after sliding all the way in does it render itself. Is there another step I'm 
 missing to make this item render itself while offscreen, so that when it 
 comes onscreen it's complete?

 if (targetChild.mx_internal::numChildrenCreated  0)
 {
 targetChild.addEventListener(FlexEvent.CREATION_COMPLETE,child_creation,false,0,true);
 targetChild.createComponentsFromDescriptors(true);
 targetChild.validateNow();
 validateNow();
 mx.core.IInvalidating(targetChild).invalidateSize();
 }

 --- In 
 

RE: [flexcoders] Re: Trees are killing me

2009-10-09 Thread Alex Harui
Should be mouseEventToItemRenderer(dragEvent).data

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of timgerr
Sent: Friday, October 09, 2009 7:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Trees are killing me



OK, I am now hanging my hat in hand. I need help with a method to get the 
object of the folder that I am over, I have no idea how to do this. PLEASE 
HELP!

Thanks, maybe I can get my dignity back.

timgerr

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex 
Harui aha...@... wrote:

 You should be getting DRAG_OVER events. The dragSource contains the object 
 being dragged. You can use mouseEventToItemRenderer to get the renderer you 
 are currently over.

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

 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
 Behalf Of timgerr
 Sent: Tuesday, October 06, 2009 8:54 PM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] Re: Trees are killing me



 Thanks for the response, I have a question for ya. I am dragging with in a 
 tree, how can I get the object that I am dragging and when I drag over 
 something how can I get that object. I am using an arraycollection.

 Thanks again for the help.
 timgerr

 --- In 
 flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com,
  Alex Harui aharui@ wrote:
 
  I see. You don't want to allow dropping at the top-level.
 
  I think you can get the DRAG_OVER event, look at where the mouse is, and 
  call event.preventDefault()
 
  Alex Harui
  Flex SDK Developer
  Adobe Systems Inc.http://www.adobe.com/
  Blog: http://blogs.adobe.com/aharui
 
  From: 
  flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com
   
  [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com]
   On Behalf Of timgerr
  Sent: Monday, October 05, 2009 2:18 PM
  To: 
  flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] Re: Trees are killing me
 
 
 
  I am creating an app that folders are groups and leafs are users. I want 
  users in groups (folders) only.
 
  Tim
 
  --- In 
  flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com,
   Alex Harui aharui@ wrote:
  
   You have folders mixed with non-folders and you only want to allow 
   dropping on the folder rows? Why not allow dropping on the leaf rows?
  
   Alex Harui
   Flex SDK Developer
   Adobe Systems Inc.http://www.adobe.com/
   Blog: http://blogs.adobe.com/aharui
  
   From: 
   flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com

   [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com]
On Behalf Of timgerr
   Sent: Monday, October 05, 2009 10:28 AM
   To: 
   flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com
   Subject: [flexcoders] Trees are killing me
  
  
  
   Hello all,
   I was wondering if someone could help me. I have a tree with 3 folders, 
   how can I make sure nodes get dropped into the folders?
  
   Thank for the look,
   timgerr
  
 




[flexcoders] Re: ADOBE AIR Qs: How do you load modules from app-storage domain?

2009-10-09 Thread handitan
Hi Alex!

Good to hear from you.
And yes, you're right! I got it to work but there's so much code involved just 
to get this module loaded.
Gosh...I wonder if I am in the right direction or not...

This code is basically based on Hai Nguyen example from eSoftHead with little 
modification (Thx Hai!).
Here's the code if anyone is interested:
mx:WindowedApplication
mx:Script
private function loadSwf():void
{
var dir:File = File.applicationStorageDirectory
dir = dir.resolvePath(SimpleSwf.swf);//SimpleSwf is the
module

var myURLRequest:URLRequest = new URLRequest(dir.url);
var myURLLoader:URLLoader = new URLLoader();
myURLLoader.dataFormat = URLLoaderDataFormat.BINARY;
myURLLoader.load(myURLRequest);

myURLLoader.addEventListener(Event.COMPLETE,loadModuleCompleteHandler);
}

private function loadModuleCompleteHandler(pEvent:Event):void
{
var context:LoaderContext = new LoaderContext();
context.allowLoadBytesCodeExecution = true;
context.applicationDomain = ApplicationDomain.currentDomain;

var moduleLoader:Loader = new Loader();
var loader:URLLoader = URLLoader(pEvent.target);
moduleLoader.loadBytes(loader.data,context);
moduleLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeLoader);
}

private function completeLoader(e:Event): void {
var moduleLoader:LoaderInfo = LoaderInfo(e.target);
moduleLoader.content.addEventListener(ready, readyHandler);
}



private function readyHandler(e:Event): void {
var factory:IFlexModuleFactory = IFlexModuleFactory(e.target);
var module:Module = factory.create() as Module;
container.addChild(module);

}
/mx:Script

mx:VBox width=100% height=100%
mx:Button label=Load SWF click=loadSwf()/
mx:VBox id=container/
/mx:VBox
/mx:WindowedApplication


--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 I'm not sure what moduleLoader is.  You should be using IModuleInfo.load().
 
 Then, a UIComponent makes a poor container.  It doesn't know how to measure 
 or layout the child so the child might have 0 size.
 
 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of handitan
 Sent: Thursday, October 08, 2009 8:03 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] ADOBE AIR Qs: How do you load modules from 
 app-storage domain?
 
 
 
 Hi all,
 
 I am using AIR 1.5 SDK.
 I am trying to find a way to build patching mechanism for my AIR app, which 
 consists modules, sqlite DBs, and other files, by updating ONLY files that 
 need to be updated.
 
 I know that this is not possible using AIR Update Framework because the way I 
 understand it works is that any update that you have both minor and major, 
 you will have to reinstall everything. This is a pain if you have a huge size 
 AIR app.
 
 I have sort of an idea to build my own update mechanism but in order for this 
 to work, I will need to be able to do update operation on my AIR app files.
 
 Since app domain doesn't allow us to do that, I have to find a place where 
 updates can take place and my app could still work. I read that app-storage 
 allows you to do all of that.
 
 Okay... so I build a really simple AIR app that the sole purpose is to load 
 swf module from app-storage to prove my theory.
 
 So here's my AIR app code the short version:
 
 mx:WindowedApplication
 mx:Script
 private function loadSwf():void
 {
 var dir:File = File.applicationStorageDirectory
 dir = dir.resolvePath(SimpleSwf.swf);//SimpleSwf is the module
 
 var myURLRequest:URLRequest = new URLRequest(dir.url);
 var myURLLoader:URLLoader = new URLLoader();
 myURLLoader.dataFormat = URLLoaderDataFormat.BINARY;
 myURLLoader.load(myURLRequest);
 myURLLoader.addEventListener(Event.COMPLETE,loadModuleCompleteHandler);
 }
 
 private function loadModuleCompleteHandler(pEvent:Event):void
 {
 var context:LoaderContext = new LoaderContext();
 context.allowLoadBytesCodeExecution = true;
 context.applicationDomain = ApplicationDomain.currentDomain;
 
 var moduleLoader:Loader = new Loader();
 var loader:URLLoader = URLLoader(pEvent.target);
 moduleLoader.loadBytes(loader.data,context);
 
 container.addChild(moduleLoader);
 }
 /mx:Script
 
 mx:VBox width=100% height=100%
 mx:Button label=Load SWF click=loadSwf()/
 mx:UIComponent id=container/
 /mx:VBox
 /mx:WindowedApplication
 
 The result is:
 When I click the button Load SWF, I could see that the loader loads the SWF 
 correctly (it got the right size, etc) but I didn't see the module shows up 
 on the screen at all.
 I didn't know what I do wrong.
 
 Please enlighten me.





Re: [flexcoders] callLater in a non UI actionscript component (pseudo-threading)

2009-10-09 Thread Baz
Alex thanks for the tip. I saw your post about pseudo-threading:
http://blogs.adobe.com/aharui/2008/01/threads_in_actionscript_3.html

Then I found this project doing it:
http://code.google.com/p/async-threading/downloads/list

Do you know that project? Should I use that?

Thanks so much!

Baz



On Wed, Oct 7, 2009 at 9:35 PM, Alex Harui aha...@adobe.com wrote:



  Calllater is just using enterFrame and render events.  If you have any
 Flex code in the app, you can use Application.application.callLater



 Alex Harui

 Flex SDK Developer

 Adobe Systems Inc. http://www.adobe.com/

 Blog: http://blogs.adobe.com/aharui



 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Baz
 *Sent:* Wednesday, October 07, 2009 2:32 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] callLater in a non UI actionscript component
 (pseudo-threading)





 I currently have an expensive process that I am pseudo-threading by
 processing part of it, then using callLater to process the rest. This lets
 me update the view after each batch is processed, giving the user feedback
 during the process. Also, it gives the user a window to 'interrupt' the
 process and change some parameters so that it continues processing the rest
 of the data with those new paramaters.

 I would like to move this batch pseudo-threading functionality to my
 service layer (an AS component) but callLater is a UIComponent function. Is
 there a way to get similar functionality in a NON-UIComponent component? Is
 there a better way of going about this?

 Thank you!

   



[flexcoders] Re: Custom PopUp not resizing.

2009-10-09 Thread flexaustin
So I swapped out Box with s:Panel as the base of my custom component. If I 
don't set set height or width in my component then Flash freezes and says the 
script is running longer than 15 seconds. Also this same thing happened when I 
was using mx:Box as the base of my component.  This is happening without me 
overriding any of the measure, commitProperties, etc... functoins. Any 
suggestions?

Jason



--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 Popups are a special case.  Panel/TitleWindow know when they've been popped 
 up and resize themselves.  You'll have to teach your Box to do the same.
 
 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of flexaustin
 Sent: Thursday, October 08, 2009 2:07 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Custom PopUp not resizing.
 
 
 
 I have a custom popup based on mx:Box. In it I have a dropdown. In this list 
 dropdown you can select multiple items that once items are selected they stay 
 in the dropdowns selected box (think multiselect combobo box). My custom pop 
 has a width and height set to 300 by 300;
 
 Anyway, when I select several items the pop (not the dropdownlist) starts 
 adding scrollbars when there are to many. If I set the horizontalscrollpolicy 
 and verticallscrollpolicy to off then the pop start moving out of what looks 
 like the popups viewablearea/scrollRect?
 So as the selecteditems in my dropdown gets longer the top of the popup start 
 disappearing?
 
 Does the popupmanager need to know to increase its viewable area for the 
 popup? Or is it possible to have a popup increase in size?





RE: [flexcoders] dynamic class | add property runtime

2009-10-09 Thread Alex Harui
Yeah, that should work.  What error do you get?  How did you define the class?

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of ilikeflex
Sent: Friday, October 09, 2009 7:02 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] dynamic class | add property runtime



Hi

If i have any public dynamic class then i can add any property at run time.

Correct me if i am not correct??

But if i do the same for the RemoteObject. It does not give me error at compile 
time but it gives me error at runtime.

My understanding is that i should be able to add the property at run time since 
it is dynamic.

Thanks
ilikeflex



RE: [flexcoders] Situations when Keyboard events are not detected

2009-10-09 Thread Alex Harui
There is no capture phase at the target so if no component has focus, the stage 
dispatches the event and a capture phase listener will not see it.  There are 
places in the framework where we listen to stage in both target phase and 
capture phase in order to get everything

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of mole5000.geo
Sent: Friday, October 09, 2009 1:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Situations when Keyboard events are not detected



I have a Flex 3 app where I have added a keyboard listener to the stage using 
capture (this was done in a component defined in a swc library) with the intent 
of getting all keyboard events that happen in the application. However, under 
certain circumstances (specifically when i click on a custom chart component), 
the event listeners will no longer fire until I click on other components _or_ 
I press the tab key.

I have tried setting the event listeners with a high priority number as well 
but they still don't fire.

What kind of things could be causing this behaviour?

--
Alistair Hutton



RE: [flexcoders] How to embed the font with unicode range with different language

2009-10-09 Thread Alex Harui
If you specify an embedded font, there is no fallback if the characters are not 
in the font.

There is some fallback capability in TLF so try using Flex 4 beta2 components

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of cap
Sent: Friday, October 09, 2009 12:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to embed the font with unicode range with different 
language



Hi,

I would like to use the embed font for the only Numberic and English letter but 
use the default for different country language (eg. Chinese). I found that i 
cannot do that in the following code. Can some expert give me advice on it?
thx

capho

?xml version=1.0?
!-- fonts/EmbeddedFontCharacterRange.mxml --
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
mx:Style
@font-face {
src:url(test.ttf);
fontFamily: myFontFamily;

unicodeRange:
U+0041-U+005A, /* Upper-Case [A..Z] */
U+0061-U+007A, /* Lower-Case a-z */
U+0030-U+0039, /* Numbers [0..9] */
U+002E-U+002E; /* Period [.] */

}

/mx:Style

mx:Panel title=Embedded Font Character Range
mx:TextArea width=400 height=150 text=abcdTest#28204;#35430; 
fontFamily=myFontFamily/
/mx:Panel
/mx:Application



RE: [flexcoders] TileList and CustomItemRenderer: How to dynamically change styles

2009-10-09 Thread Alex Harui
There are some itemrenderer examples on my blog you might be able to use for 
inspiration.

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of anuppc
Sent: Friday, October 09, 2009 7:22 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] TileList and CustomItemRenderer: How to dynamically 
change styles



Hi,
I'm new to flex, would need some help from the experts.

I have a TileList in my application.. Here is the snippet:


var favList:TileList = new TileList();
favList.columnCount = 2;
favList.dataProvider = favArr;
favList.itemRenderer = createItemRenderer();
favList.percentHeight = 100;
favList.percentWidth = 100;
favList.dropEnabled = true;
favList.dragEnabled = true;
favList.dragMoveEnabled = true;

The ItemRenderer tied to the TileList is :

mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; width=100%
height=100% borderStyle=solid borderThickness=0 cornerRadius=5
mx:Style

.filled
{
border-style: solid;
border-thickness: 0;
border-skin: ClassReference(border.SimpleGradientBorder);
fill-colors: #F0F0F0, #C9C9C9;
corner-radius: 10;
drop-shadow-enabled: true;
}

/mx:Style
mx:Script
![CDATA[
public function changeStyleWest(col1:String, col2:String):void
{
box.setStyle(fillColors, [col1, col2]);
}
]]
/mx:Script
mx:HBox id=box styleName=filled horizontalAlign=center
verticalAlign=middle width=100% height=100% borderColor=#B7BABC
borderStyle=solid borderThickness=0 cornerRadius=5
themeColor=#009DFF 
mx:VBox horizontalAlign=center verticalAlign=middle
borderStyle=solid borderThickness=0 cornerRadius=5
mx:Image id=image width=100 height=100
source=assets/{data.Image} visible=true/

mx:Label text={data.Name} width=100 textAlign=center
visible=true /
/mx:VBox

/mx:HBox

/mx:VBox

Now what i want to achieve is else where in the application there are couple
of buttons and on clicking these buttons i want to change the fill-colors or
style of each Tile based on some Data attributes.

Many Thanks
--
View this message in context: 
http://www.nabble.com/TileList-and-CustomItemRenderer%3A-How-to-dynamically-change-styles-tp25822015p25822015.html
Sent from the FlexCoders mailing list archive at Nabble.com.



RE: [flexcoders] How to create a zoom UI object?

2009-10-09 Thread Alex Harui
There are iconcombobox examples out there. I have one on my blog

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Nick Middleweek
Sent: Friday, October 09, 2009 7:39 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to create a zoom UI object?



Hi,

I'm hoping to create a little zoom UI object - like the one you find at the 
bottom-right of IE.

I'm guessing I could use a ComboxBox? But I can't figure out how to drop an 
icon on it...

Or is there a better way of doing this? Perhaps a button that when clicked just 
shows a popup?


I think I need a few pointers so any guidance would be great... :)


Thanks,
Nick



Re: [Spam] RE: [flexcoders] How to create a zoom UI object?

2009-10-09 Thread Nick Middleweek
Thanks Alex, I'll take a look on your blog...



2009/10/9 Alex Harui aha...@adobe.com



  There are iconcombobox examples out there. I have one on my blog



 Alex Harui

 Flex SDK Developer

 Adobe Systems Inc. http://www.adobe.com/

 Blog: http://blogs.adobe.com/aharui



 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Nick Middleweek
 *Sent:* Friday, October 09, 2009 7:39 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] How to create a zoom UI object?





 Hi,

 I'm hoping to create a little zoom UI object - like the one you find at the
 bottom-right of IE.

 I'm guessing I could use a ComboxBox? But I can't figure out how to drop an
 icon on it...

 Or is there a better way of doing this? Perhaps a button that when clicked
 just shows a popup?


 I think I need a few pointers so any guidance would be great... :)


 Thanks,
 Nick

   



RE: [flexcoders] Re: ADOBE AIR Qs: How do you load modules from app-storage domain?

2009-10-09 Thread Alex Harui
That looks about the right amount of code to me.  Someday, I expect AIR to make 
this easier, but I wouldn't hold my breath waiting.

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of handitan
Sent: Friday, October 09, 2009 8:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: ADOBE AIR Qs: How do you load modules from 
app-storage domain?



Hi Alex!

Good to hear from you.
And yes, you're right! I got it to work but there's so much code involved just 
to get this module loaded.
Gosh...I wonder if I am in the right direction or not...

This code is basically based on Hai Nguyen example from eSoftHead with little 
modification (Thx Hai!).
Here's the code if anyone is interested:
mx:WindowedApplication
mx:Script
private function loadSwf():void
{
var dir:File = File.applicationStorageDirectory
dir = dir.resolvePath(SimpleSwf.swf);//SimpleSwf is the
module

var myURLRequest:URLRequest = new URLRequest(dir.url);
var myURLLoader:URLLoader = new URLLoader();
myURLLoader.dataFormat = URLLoaderDataFormat.BINARY;
myURLLoader.load(myURLRequest);

myURLLoader.addEventListener(Event.COMPLETE,loadModuleCompleteHandler);
}

private function loadModuleCompleteHandler(pEvent:Event):void
{
var context:LoaderContext = new LoaderContext();
context.allowLoadBytesCodeExecution = true;
context.applicationDomain = ApplicationDomain.currentDomain;

var moduleLoader:Loader = new Loader();
var loader:URLLoader = URLLoader(pEvent.target);
moduleLoader.loadBytes(loader.data,context);
moduleLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeLoader);
}

private function completeLoader(e:Event): void {
var moduleLoader:LoaderInfo = LoaderInfo(e.target);
moduleLoader.content.addEventListener(ready, readyHandler);
}

private function readyHandler(e:Event): void {
var factory:IFlexModuleFactory = IFlexModuleFactory(e.target);
var module:Module = factory.create() as Module;
container.addChild(module);

}
/mx:Script

mx:VBox width=100% height=100%
mx:Button label=Load SWF click=loadSwf()/
mx:VBox id=container/
/mx:VBox
/mx:WindowedApplication

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex 
Harui aha...@... wrote:

 I'm not sure what moduleLoader is. You should be using IModuleInfo.load().

 Then, a UIComponent makes a poor container. It doesn't know how to measure or 
 layout the child so the child might have 0 size.

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

 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
 Behalf Of handitan
 Sent: Thursday, October 08, 2009 8:03 PM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] ADOBE AIR Qs: How do you load modules from 
 app-storage domain?



 Hi all,

 I am using AIR 1.5 SDK.
 I am trying to find a way to build patching mechanism for my AIR app, which 
 consists modules, sqlite DBs, and other files, by updating ONLY files that 
 need to be updated.

 I know that this is not possible using AIR Update Framework because the way I 
 understand it works is that any update that you have both minor and major, 
 you will have to reinstall everything. This is a pain if you have a huge size 
 AIR app.

 I have sort of an idea to build my own update mechanism but in order for this 
 to work, I will need to be able to do update operation on my AIR app files.

 Since app domain doesn't allow us to do that, I have to find a place where 
 updates can take place and my app could still work. I read that app-storage 
 allows you to do all of that.

 Okay... so I build a really simple AIR app that the sole purpose is to load 
 swf module from app-storage to prove my theory.

 So here's my AIR app code the short version:

 mx:WindowedApplication
 mx:Script
 private function loadSwf():void
 {
 var dir:File = File.applicationStorageDirectory
 dir = dir.resolvePath(SimpleSwf.swf);//SimpleSwf is the module

 var myURLRequest:URLRequest = new URLRequest(dir.url);
 var myURLLoader:URLLoader = new URLLoader();
 myURLLoader.dataFormat = URLLoaderDataFormat.BINARY;
 myURLLoader.load(myURLRequest);
 myURLLoader.addEventListener(Event.COMPLETE,loadModuleCompleteHandler);
 }

 private function loadModuleCompleteHandler(pEvent:Event):void
 {
 var context:LoaderContext = new LoaderContext();
 context.allowLoadBytesCodeExecution = true;
 context.applicationDomain = ApplicationDomain.currentDomain;

 var moduleLoader:Loader = new Loader();
 var loader:URLLoader = URLLoader(pEvent.target);
 moduleLoader.loadBytes(loader.data,context);

 container.addChild(moduleLoader);
 }
 /mx:Script

 mx:VBox width=100% height=100%
 mx:Button label=Load SWF click=loadSwf()/
 mx:UIComponent id=container/
 /mx:VBox
 /mx:WindowedApplication

 The result is:
 

RE: [flexcoders] callLater in a non UI actionscript component (pseudo-threading)

2009-10-09 Thread Alex Harui
Don't know anything about the google code.  Give it a try and see.

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Baz
Sent: Friday, October 09, 2009 8:56 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] callLater in a non UI actionscript component 
(pseudo-threading)



Alex thanks for the tip. I saw your post about pseudo-threading: 
http://blogs.adobe.com/aharui/2008/01/threads_in_actionscript_3.html

Then I found this project doing it: 
http://code.google.com/p/async-threading/downloads/list

Do you know that project? Should I use that?

Thanks so much!

Baz


On Wed, Oct 7, 2009 at 9:35 PM, Alex Harui 
aha...@adobe.commailto:aha...@adobe.com wrote:

Calllater is just using enterFrame and render events.  If you have any Flex 
code in the app, you can use Application.application.callLater

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

From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On 
Behalf Of Baz
Sent: Wednesday, October 07, 2009 2:32 PM
To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com
Subject: [flexcoders] callLater in a non UI actionscript component 
(pseudo-threading)



I currently have an expensive process that I am pseudo-threading by processing 
part of it, then using callLater to process the rest. This lets me update the 
view after each batch is processed, giving the user feedback during the 
process. Also, it gives the user a window to 'interrupt' the process and change 
some parameters so that it continues processing the rest of the data with those 
new paramaters.

I would like to move this batch pseudo-threading functionality to my service 
layer (an AS component) but callLater is a UIComponent function. Is there a way 
to get similar functionality in a NON-UIComponent component? Is there a better 
way of going about this?

Thank you!




[flexcoders] Re: dynamic class | add property runtime

2009-10-09 Thread ilikeflex

Hi

var remoteOject:RemoteObject = new RemoteObject()
remoteOject.title = INCORRECT_STK_COMP;
remoteOject.getIncorrectStkCompIndexList.addEventListener(ResultEvent.RE\
SULT,openIncorrectParamsResult);
remoteOject.getIncorrectStkCompIndexList();

Compile time No Error

RunTime Error:

Error: Cannot assign operations into an RPC Service (title)

at
mx.rpc::AbstractService/http://www.adobe.com/2006/actionscript/flash/pro\
xy::setProperty()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\\
AbstractService.as:282]

at
com.sandp.grip.view.app.screen.dashboardtab::IndexProfileBase/openIncorr\
ectTimings()[D:\eclipse\flexworkspace\grip-console\grip\src\com\sandp\gr\
ip\view\app\screen\dashboardtab\IndexProfileBase.as:143]

at
com.sandp.grip.view.app.screen.dashboardtab::IndexProfileHorizental/___I\
ndexProfileHorizental_Label24_click()[D:\eclipse\flexworkspace\grip-cons\
ole\grip\src\com\sandp\grip\view\app\screen\dashboardtab\IndexProfileHor\
izental.mxml:369]

thanks
ilikeflex

--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 Yeah, that should work. What error do you get? How did you define the
class?

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

 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
On Behalf Of ilikeflex
 Sent: Friday, October 09, 2009 7:02 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] dynamic class | add property runtime



 Hi

 If i have any public dynamic class then i can add any property at
run time.

 Correct me if i am not correct??

 But if i do the same for the RemoteObject. It does not give me error
at compile time but it gives me error at runtime.

 My understanding is that i should be able to add the property at run
time since it is dynamic.

 Thanks
 ilikeflex





RE: [flexcoders] Re: Custom PopUp not resizing.

2009-10-09 Thread Alex Harui
Maybe you're measured size doesn't match the size you're setting, or maybe the 
setting of the size causes something to be invalidated and go through the whole 
sizing pass again.  Setting breakpoints in LayoutManager can help you find the 
problem.

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of flexaustin
Sent: Friday, October 09, 2009 9:04 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Custom PopUp not resizing.



So I swapped out Box with s:Panel as the base of my custom component. If I 
don't set set height or width in my component then Flash freezes and says the 
script is running longer than 15 seconds. Also this same thing happened when I 
was using mx:Box as the base of my component. This is happening without me 
overriding any of the measure, commitProperties, etc... functoins. Any 
suggestions?

Jason

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex 
Harui aha...@... wrote:

 Popups are a special case. Panel/TitleWindow know when they've been popped up 
 and resize themselves. You'll have to teach your Box to do the same.

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

 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
 Behalf Of flexaustin
 Sent: Thursday, October 08, 2009 2:07 PM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] Custom PopUp not resizing.



 I have a custom popup based on mx:Box. In it I have a dropdown. In this list 
 dropdown you can select multiple items that once items are selected they stay 
 in the dropdowns selected box (think multiselect combobo box). My custom pop 
 has a width and height set to 300 by 300;

 Anyway, when I select several items the pop (not the dropdownlist) starts 
 adding scrollbars when there are to many. If I set the horizontalscrollpolicy 
 and verticallscrollpolicy to off then the pop start moving out of what looks 
 like the popups viewablearea/scrollRect?
 So as the selecteditems in my dropdown gets longer the top of the popup start 
 disappearing?

 Does the popupmanager need to know to increase its viewable area for the 
 popup? Or is it possible to have a popup increase in size?




RE: [flexcoders] Re: dynamic class | add property runtime

2009-10-09 Thread Alex Harui
I thought you were talking about a data object sent over RemoteObject

RemoteObject is dynamic, but is Proxy based so it has rules on what and how you 
can add things to it.

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of ilikeflex
Sent: Friday, October 09, 2009 9:42 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: dynamic class | add property runtime



Hi

var remoteOject:RemoteObject = new RemoteObject()
remoteOject.title = INCORRECT_STK_COMP;
remoteOject.getIncorrectStkCompIndexList.addEventListener(ResultEvent.RESULT,openIncorrectParamsResult);
remoteOject.getIncorrectStkCompIndexList();

Compile time No Error

RunTime Error:

Error: Cannot assign operations into an RPC Service (title)

at 
mx.rpc::AbstractService/http://www.adobe.com/2006/actionscript/flash/proxy::setProperty()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AbstractService.as:282]

at 
com.sandp.grip.view.app.screen.dashboardtab::IndexProfileBase/openIncorrectTimings()[D:\eclipse\flexworkspace\grip-console\grip\src\com\sandp\grip\view\app\screen\dashboardtab\IndexProfileBase.as:143]

at 
com.sandp.grip.view.app.screen.dashboardtab::IndexProfileHorizental/___IndexProfileHorizental_Label24_click()[D:\eclipse\flexworkspace\grip-console\grip\src\com\sandp\grip\view\app\screen\dashboardtab\IndexProfileHorizental.mxml:369]

thanks
ilikeflex

--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 Yeah, that should work. What error do you get? How did you define the class?

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

 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of ilikeflex
 Sent: Friday, October 09, 2009 7:02 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] dynamic class | add property runtime



 Hi

 If i have any public dynamic class then i can add any property at run time.

 Correct me if i am not correct??

 But if i do the same for the RemoteObject. It does not give me error at 
 compile time but it gives me error at runtime.

 My understanding is that i s! hould be able to add the property at run time 
 since it is dynamic.

 Thanks
 ilikeflex




Re: [flexcoders] TileList and CustomItemRenderer: How to dynamically change styles

2009-10-09 Thread anuppc

H. Alex i saw your examples ... most are based on DataGrid. I need an
example for a TileList.

The issue i have is from my external event handler code, how can i change
the style on the each item in the TileList.  I see that getting a handle to
the ItemRenderer is not recommended to change the style






anuppc wrote:
 
 Hi,
 I'm new to flex, would need some help from the experts.
 
 I have a TileList in my application.. Here is the snippet:
 
   
   var favList:TileList = new TileList();
   favList.columnCount = 2;
   favList.dataProvider = favArr;
   favList.itemRenderer = createItemRenderer();
   favList.percentHeight = 100;
   favList.percentWidth = 100;
   favList.dropEnabled = true;
   favList.dragEnabled = true;
   favList.dragMoveEnabled = true;
 
 The ItemRenderer tied to the TileList  is :
 
 mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; width=100%
 height=100% borderStyle=solid borderThickness=0  cornerRadius=5
 mx:Style
 
 .filled
 {
 border-style: solid;
 border-thickness: 0;
 border-skin: ClassReference(border.SimpleGradientBorder);
 fill-colors: #F0F0F0, #C9C9C9;
 corner-radius: 10;
 drop-shadow-enabled: true;
 }
 
 /mx:Style
 mx:Script
 ![CDATA[
 public function changeStyleWest(col1:String, col2:String):void
 {
 box.setStyle(fillColors, [col1, col2]);
 }
 ]]
 /mx:Script
 mx:HBox  id=box styleName=filled horizontalAlign=center
 verticalAlign=middle width=100% height=100%   borderColor=#B7BABC
 borderStyle=solid borderThickness=0  cornerRadius=5
 themeColor=#009DFF 
mx:VBox horizontalAlign=center verticalAlign=middle
 borderStyle=solid borderThickness=0  cornerRadius=5
 mx:Image id=image  width=100 height=100
 source=assets/{data.Image}   visible=true/
 
 mx:Label text={data.Name}  width=100 textAlign=center 
 visible=true /
/mx:VBox
 
 /mx:HBox
 
 /mx:VBox
 
 Now what i want to achieve is else where in the application there are
 couple of buttons and on clicking these buttons i want to change the
 fill-colors or style of each Tile based on some Data attributes.
 
 Many Thanks
 

-- 
View this message in context: 
http://www.nabble.com/TileList-and-CustomItemRenderer%3A-How-to-dynamically-change-styles-tp25822015p25824523.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Training Courses

2009-10-09 Thread Wesley Acheson
Hi,

My boss was wondering if there are any recommended training courses for
flex. We are based in Gibraltar but I don't think traveling is an issue.

Personally I'd like to see some kind of certification out of it.  Any
recommended courses?

I know its vague because I haven't specified a level however the flex
abilities of my department are very mixed.

Regards,

Wes


[flexcoders] Differences between flex modules and flex components

2009-10-09 Thread funandlearning3
Hi All,

I was reading about flex modules and was trying to understand what is the 
difference between a flex module and flex component when they both server the 
same purpose of maintaining separate code for different components...

Is there a code example to show the difference between the two?

Thanks.



RE: [flexcoders] Flash OCX Error

2009-10-09 Thread Brandon Krakowsky
Thanks Alex.  That's all pretty helpful.

Brandon

--- On Fri, 10/9/09, Alex Harui aha...@adobe.com wrote:

From: Alex Harui aha...@adobe.com
Subject: RE: [flexcoders] Flash OCX Error
To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com
Date: Friday, October 9, 2009, 5:07 AM






 





  







Less is more.  The fewer HBox and Canvas tags and more
UIComponent tags will take up less memory and run faster. 

   

Occasionally there can be a Flash Player bug that will cause it
to crash, but the two leading causes are running out of memory, and stack
overflows.  Checking the process memory can eliminate or rule-in the
first.  If your browser is using up more than 500Mb of memory, you could
be running out of memory.  The way I diagnose these problems is to start
commenting out parts of the app to see if there is some portion of the app that
makes a difference. 

   

You may see extra instances of an class if that class generates
supporting objects within the player.  The profiler only knows what is on
top of the actionscript callstack and can’t see what is on the player’s
internal callstack. 

   



Alex Harui 

Flex SDK Developer 

Adobe
Systems Inc. 

Blog: http://blogs. adobe.com/ aharui 



   





From:
flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf Of 
medconference

Sent: Thursday, October 08, 2009 11:35 AM

To: flexcod...@yahoogro ups.com

Subject: [flexcoders] Flash OCX Error 





   

   







Hello, this is my first post!



I have a large Flex app I'm trying to profile and make more efficient. I have
some basic questions about profiling in general and application development as
it relates to efficiency and performance.



I have a few different item renderers which are based on HBox, have several
embedded images and adds and removes these images from the HBox based on the
data values. Occasionally, when a user interacts with a List or Drop-Down (one
using a custom renderer), they get a Flash Ocx error. This is impossible to
debug as there is no further info. The browser is then forced to crash.



Is this most likely a memory or CPU issue?



Most of my custom components are based on a Canvas stored in a .mxml file. When
resizing my app I see CPU spike. Would basing my components on a UIComponent
help this?



In terms of profiling, I can see my app has 5 cumulative instances but 1
current instance. Why would there be 5 cumulative instances of the main
application class? How is that even possible?



Thanks!

Brandon 





 









 

  




 

















  

Re: [flexcoders] Flex with .Net

2009-10-09 Thread sachindev tripathi
You have to use .net webservices as backend and in front end Flex will be used.


--- On Mon, 5/10/09, Ramkumar nrk...@gmail.com wrote:

From: Ramkumar nrk...@gmail.com
Subject: [flexcoders] Flex with .Net
To: nrk...@gmail.com
Date: Monday, 5 October, 2009, 9:34 PM






 





  Hi All,
We have the application on .Net and we have to replace the asp pages with flex 
UI.
I am little bit exposure only to flex(I am java developer) and dont have 
knowledge on .Net.
Please provide me sample codes(like the data passing from UI to db) and 
materials for doing the application.
from there i will try to manage my self.
 
Thanks and Regards,
N.Ramkumar

 

  




 

















  Yahoo! India has a new look. Take a sneak peek http://in.yahoo.com/trynew

Re: [flexcoders] Re: Adobe Flex Dashboard

2009-10-09 Thread Angelo Anolin
Hi Valdhor,

Thanks for the input. I was really struggling particularly on this area since 
the SharedObject declaration seems to only map to the folder inside the SWF 
project, which literally does not contain any file(s) which is being modified 
during runtime.

Kind regards,

Angelo





From: valdhor valdhorli...@embarqmail.com
To: flexcoders@yahoogroups.com
Sent: Friday, 9 October, 2009 1:46:47
Subject: [flexcoders] Re: Adobe Flex Dashboard

  
Angelo

Shared objects are stored locally on the computer running the SWF. They can be 
thought of as Flash cookies.

For more details on where they are stored, see http://livedocs. adobe.com/ 
flex/3/html/ help.html? content=lsos_ 2.html

A useful utility for viewing shared objects can be downloaded at http://blog. 
coursevector. com/minerva

--- In flexcod...@yahoogro ups.com, Vivian Richard kanps...@.. . wrote:

Angelo - comment out the definition and wherever you see the bug,
that means it is used in those files. Personally speaking I never did
use it before so will not be able to explain you how it is used.
 
Regards..
 
 
 
 
 
 On Wed, Oct 7, 2009 at 1:16 AM, Paul Andrews p...@... wrote:
 
 
 
  Angelo Anolin wrote:
  
  
   Hi Paul,
  
   I looked at the StateManager. as file and in the line which Vivian
   pointed out, this is it:
  
   private static var sharedObject: SharedObject =
   SharedObject. getLocal( com.esria. sample.dashboard );
  
   So, how do I know which file is the line above pointing to?
  The real question is - why should you care where the file is saved? It
  makes no difference to the application. You should never need to mess
  with the actual file, just interact with the shared object. Google
  flash shared objects.
 
  Paul
  
   Pardon my lack of understanding but this is the first time I
   encountered/ delving into the SharedObject thing.
  
   Thanks.
  
   Regards,
  
   Angelo
  
    - - - - - -
   *From:* Paul Andrews p...@... paul%40ipauland. com
   *To:* flexcod...@yahoogro ups.com flexcoders% 40yahoogroups. com
   *Sent:* Wednesday, 7 October, 2009 7:08:05
   *Subject:* Re: [flexcoders] Adobe Flex Dashboard
  
  
  
   Angelo Anolin wrote:
   
   
Thanks a lot for pointing this one out Vivian.
   
Although I still cannot fathom how the SharedObject is retained even
after the application (SWF) is recompiled. I even did a restart of
the machine and the settings are still there. Isn't it being retained
in some sort of file or something?
   SharedObject is a file on the computer and retains it's content after
   the application is shut down, or recompiled, or the computer turned off!
  
   Look in StateManager. as - the shared object is there..
  
   Paul
  
   
Regards,
   
Angelo
   
 - - - - - -
*From:* Vivian Richard kanps...@gmail. com
   mailto:kanpsack% 40gmail.com kanpsack%2540gmail .com
*To:* flexcod...@yahoogro ups.com mailto:flexcoders% 40yahoogroups. 
comflexcoders% 2540yahoogroups. com
  
*Sent:* Wednesday, 7 October, 2009 0:50:37
*Subject:* Re: [flexcoders] Adobe Flex Dashboard
   
   
   
   
   
in the file StateManager. as line 17
private static var sharedObject: SharedObject = SharedObject.
getLocal(com. esria.sample. dashboard);
 - - - - -
- - - - - - -
- - - -
   
   
On Tue, Oct 6, 2009 at 9:23 AM, Angelo Anolin angelo_anolin@
yahoo.com mailto:angelo_ anolin@ yahoo.com
   mailto:angelo_ anolin%40yahoo. com angelo_anolin% 2540yahoo. com
  wrote:
   
   
I tried to locate if SharedObject was used in the application but
I am unable to find one.
   
I know it is being set somewhere but I just can't pinpoint it at
this stage.
   
Would still appreciate your inputs. In the meantime, let me dig
through this haystack for the needle.
   
THanks,
   
Angelo
   
 - - - - - -
*From:* Vivian Richard kanps...@gmail. com
mailto:kanpsack@ gmail. com mailto:kanpsack% 40gmail.com kanpsack% 
2540gmail. com
  
*To:* flexcod...@yahoogro ups.com mailto:flexcoders@ yahoogro
   ups.com mailto:flexcoders% 40yahoogroups. comflexcoders% 
   2540yahoogroups. com
  
*Sent:* Wednesday, 7 October, 2009 0:02:22
*Subject:* Re: [flexcoders] Adobe Flex Dashboard
   
   
   
   
You can do this using SharedObject - I guess they are also
using SharedObject somewhere. Please see this example
here:
   
http://livedocs. http://livedocs. / adobe.com/ flex/3/html/
  help.html?
content=lsos_ 5.html
http://livedocs. adobe.com/ flex/3/html/ help.html? content=lsos_
   5.html
   http://livedocs. adobe.com/ flex/3/html/ help.html? content=lsos_ 
   

[flexcoders] Flex 3 4 Compatibility

2009-10-09 Thread Angelo Anolin
Hi Flexcoders,

I have somewhat a non-technical question and these question is actually raised 
on those who have a lot of experience in development with Flex.

I have been dabbling a lot with Flex 3.4 (using Command Line Compiler and 
FlexBuilder) and there is one project which I am currently working on.

My problem pertains to whether to use the 3.4 SDK or the (unreleased?) 4.0 SDK? 
 I already feel quite comfortable using the 3.4 SDK and has been able to 
develop some small apps which are rich in functionality, reliable and downright 
easy to code and understand.  

I like to explore the SDK 4 but I feel that it might be another learning curve 
for me, especially knowing some additional controls have been added which Adobe 
(and other flex blogs and sites) have been using already.

Will the current codes which I develop in Flex 3.4 be compilable using the SDK 
4? Which problem(s) if any should I be aware while I hold moving from 3.4 to 
4.0?

Thanks a lot for the advice.

Regards,

Angelo



  

[flexcoders] When does myArrayCollection.setItemAt() get invoked in the component lifecycle?

2009-10-09 Thread Baz
If I had a ui component and on init() I did
myArrayCollection.setItemAt(value, position) - when would the visual
component bound to the arraycollection get updated? Is it immedietly when
the function is called, or is it automatically deferred to
updateDisplayList()?

Basically, should I implement the invalidateProperties() / commitProprties()
strategy when using setItemAt() on an Arraycollection or is this
automatically handled?

Cheers,
Baz


Re: [flexcoders] Training Courses

2009-10-09 Thread Dan Pride
The Lynda.com courses are basic but quite good.
There is also a wealth of free video training on adobe such as
http://www.adobe.com/devnet/flex/videotraining/
If your department needs some on line help getting started there are a number 
of people up here who would be interested (including me :))
Dan Pride
http://www.danielpride.com


--- On Fri, 10/9/09, Wesley Acheson wesley.ache...@gmail.com wrote:

From: Wesley Acheson wesley.ache...@gmail.com
Subject: [flexcoders] Training Courses
To: flexcoders flexcoders@yahoogroups.com
Date: Friday, October 9, 2009, 1:43 PM






 





  Hi,

My boss was wondering if there are any recommended training courses for flex. 
We are based in Gibraltar but I don't think traveling is an issue.

Personally I'd like to see some kind of certification out of it.  Any 
recommended courses?


I know its vague because I haven't specified a level however the flex abilities 
of my department are very mixed.

Regards,

Wes


 

  




 

















  

[flexcoders] Weird DataGrid custom item renderer behavior

2009-10-09 Thread pmstp
Hi all,

A while ago I wrote (in ActionScript 3) a custom item renderer for a DataGrid 
very similar  to the mxml version below.  
It basically has a HBox with a icon and a label to its left on the first 
column, and I wanted to wrapped the text around as users resize the column.  I 
was/am using variable row 
height so the row height could change when the label text wraps.

It almost worked, just like the example below.  Try resizing the column just a 
few pixels, or just scroll up and down and you'll see that sometimes the text 
gets truncated and sometimes it wraps nicely.  

I was never able to find the source of the problem and fix the bug 
(I'm still new to custom item renderers so I probably missed something).  
Or is this a bug?  I'm using Flex 3 (3.0.0.477)


Thanks in advance,
Pedro Proenca


?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
    layout=absolute width=800 height=600 
    

    mx:Script
        ![CDATA[
            import mx.controls.Alert;            
        ]]
    /mx:Script
    
    
        mx:Array id=dg_data
    mx:Object name=Baltimore Orioles abbr=BAL number=1 /
    mx:Object name=Boston Red Sox abbr=BOS number=2 /
    mx:Object name=Chicago White Sox abbr=CWS number=3 /
    mx:Object name=Cleveland Indians abbr=CLE number=4 /
    mx:Object name=Detroit Tigers abbr=DET number=5 /
    mx:Object name=Kansas City Royals abbr=KC number=6 /
    mx:Object name=Los Angeles Angels of Anaheim abbr=LAA number=7 /
    mx:Object name=Minnesota Twins abbr=MIN number=8 /
    mx:Object name=New York Yankees abbr=NYY number=9 /
    mx:Object name=Oakland Athletics abbr=OAK number=10 /
    mx:Object name=Seattle Mariners abbr=SEA number=11 /
    mx:Object name=Tampa Bay Devil Rays abbr=TB number=12 /
    mx:Object name=Texas Rangers abbr=TEX number=13 /
    mx:Object name=Toronto Blue Jays abbr=TOR number=14 /
    /mx:Array


        mx:DataGrid id=dg dataProvider={dg_data} width=80% height=50% 
variableRowHeight=true
            mx:columns
                mx:DataGridColumn headerText=Name dataField=name 
width=100
                    mx:itemRenderer
                        mx:Component
                            mx:HBox horizontalScrollPolicy=off
                                mx:Image width=20% source=starIcon.png /
                                mx:Text width=80% selectable=false 
text={data.name} ({data.abbr}) /
                            /mx:HBox
    /mx:Component
                    /mx:itemRenderer
                /mx:DataGridColumn
                mx:DataGridColumn dataField=abbr /
                mx:DataGridColumn headerText=Order dataField=number /
            /mx:columns
        /mx:DataGrid

/mx:Application
    




  

[flexcoders] Re: Training Courses

2009-10-09 Thread valdhor
Just as an aside, I don't think much of the Adobe Certified Training companies. 
Our company purchased training for ten people here and I sat in on it (I had 
about six months of self taught Flex at the time). Basically the course 
consisted of running through the Flex 3 Training from the Source book. You 
could have gotten just as much at a lot less cost by reading that book. As far 
as the trainer; I knew way more than he did.

The online video's and reference are a much better learning material than any 
other I have seen.

--- In flexcoders@yahoogroups.com, Dan Pride danielpr...@... wrote:

 The Lynda.com courses are basic but quite good.
 There is also a wealth of free video training on adobe such as
 http://www.adobe.com/devnet/flex/videotraining/
 If your department needs some on line help getting started there are a number 
 of people up here who would be interested (including me :))
 Dan Pride
 http://www.danielpride.com
 
 
 --- On Fri, 10/9/09, Wesley Acheson wesley.ache...@... wrote:
 
 From: Wesley Acheson wesley.ache...@...
 Subject: [flexcoders] Training Courses
 To: flexcoders flexcoders@yahoogroups.com
 Date: Friday, October 9, 2009, 1:43 PM
 
 
 
 
 
 
  
 
 
 
 
 
   Hi,
 
 My boss was wondering if there are any recommended training courses for flex. 
 We are based in Gibraltar but I don't think traveling is an issue.
 
 Personally I'd like to see some kind of certification out of it.  Any 
 recommended courses?
 
 
 I know its vague because I haven't specified a level however the flex 
 abilities of my department are very mixed.
 
 Regards,
 
 Wes





[flexcoders] Re: TileList and CustomItemRenderer: How to dynamically change styles

2009-10-09 Thread valdhor
TileList and DataGrid are both extended from ListBase so an itemrenderer for 
one should work the same as for the other. If not, only slight changes would 
need to be made.



--- In flexcoders@yahoogroups.com, anuppc anu...@... wrote:

 
 H. Alex i saw your examples ... most are based on DataGrid. I need an
 example for a TileList.
 
 The issue i have is from my external event handler code, how can i change
 the style on the each item in the TileList.  I see that getting a handle to
 the ItemRenderer is not recommended to change the style
 
 
 
 
 
 
 anuppc wrote:
  
  Hi,
  I'm new to flex, would need some help from the experts.
  
  I have a TileList in my application.. Here is the snippet:
  
  
  var favList:TileList = new TileList();
  favList.columnCount = 2;
  favList.dataProvider = favArr;
  favList.itemRenderer = createItemRenderer();
  favList.percentHeight = 100;
  favList.percentWidth = 100;
  favList.dropEnabled = true;
  favList.dragEnabled = true;
  favList.dragMoveEnabled = true;
  
  The ItemRenderer tied to the TileList  is :
  
  mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; width=100%
  height=100% borderStyle=solid borderThickness=0  cornerRadius=5
  mx:Style
  
  .filled
  {
  border-style: solid;
  border-thickness: 0;
  border-skin: ClassReference(border.SimpleGradientBorder);
  fill-colors: #F0F0F0, #C9C9C9;
  corner-radius: 10;
  drop-shadow-enabled: true;
  }
  
  /mx:Style
  mx:Script
  ![CDATA[
  public function changeStyleWest(col1:String, col2:String):void
  {
  box.setStyle(fillColors, [col1, col2]);
  }
  ]]
  /mx:Script
  mx:HBox  id=box styleName=filled horizontalAlign=center
  verticalAlign=middle width=100% height=100%   borderColor=#B7BABC
  borderStyle=solid borderThickness=0  cornerRadius=5
  themeColor=#009DFF 
 mx:VBox horizontalAlign=center verticalAlign=middle
  borderStyle=solid borderThickness=0  cornerRadius=5
  mx:Image id=image  width=100 height=100
  source=assets/{data.Image}   visible=true/
  
  mx:Label text={data.Name}  width=100 textAlign=center 
  visible=true /
 /mx:VBox
  
  /mx:HBox
  
  /mx:VBox
  
  Now what i want to achieve is else where in the application there are
  couple of buttons and on clicking these buttons i want to change the
  fill-colors or style of each Tile based on some Data attributes.
  
  Many Thanks
  
 
 -- 
 View this message in context: 
 http://www.nabble.com/TileList-and-CustomItemRenderer%3A-How-to-dynamically-change-styles-tp25822015p25824523.html
 Sent from the FlexCoders mailing list archive at Nabble.com.





Re: [flexcoders] Re: Training Courses

2009-10-09 Thread Jason Michael Perry
I'm an Adobe Certified Instructor and I can tell you that the  
instructor makes all of the difference.


I'm not sure where you took your class but my former employer Fig Leaf  
Software is one of the best providers of onsite and hands-on training.


I think self paced training is good, but it lacks the interaction with  
an instructor.  If you can afford training I suggest something like lynda.com 
 to augment the class.  You should read and watch videos so you can  
challenge your instructor...


Just my two cents.
-Jason

On Oct 9, 2009, at 1:31 PM, valdhor wrote:

Just as an aside, I don't think much of the Adobe Certified Training  
companies. Our company purchased training for ten people here and I  
sat in on it (I had about six months of self taught Flex at the  
time). Basically the course consisted of running through the Flex 3  
Training from the Source book. You could have gotten just as much  
at a lot less cost by reading that book. As far as the trainer; I  
knew way more than he did.


The online video's and reference are a much better learning material  
than any other I have seen.


--- In flexcoders@yahoogroups.com, Dan Pride danielpr...@... wrote:

 The Lynda.com courses are basic but quite good.
 There is also a wealth of free video training on adobe such as
 http://www.adobe.com/devnet/flex/videotraining/
 If your department needs some on line help getting started there  
are a number of people up here who would be interested (including  
me :))

 Dan Pride
 http://www.danielpride.com


 --- On Fri, 10/9/09, Wesley Acheson wesley.ache...@... wrote:

 From: Wesley Acheson wesley.ache...@...
 Subject: [flexcoders] Training Courses
 To: flexcoders flexcoders@yahoogroups.com
 Date: Friday, October 9, 2009, 1:43 PM












 Hi,

 My boss was wondering if there are any recommended training  
courses for flex. We are based in Gibraltar but I don't think  
traveling is an issue.


 Personally I'd like to see some kind of certification out of it.   
Any recommended courses?



 I know its vague because I haven't specified a level however the  
flex abilities of my department are very mixed.


 Regards,

 Wes





__
Jason Michael Perry
ja...@jasonmperry.com
www.jasonmperry.com
tel: 504-383-FLEX





[flexcoders] Zoom effect [1 Attachment]

2009-10-09 Thread kanu kukreja
How to give the attached picasa type of zoom effect in Flex.Want to zoom-in
the selected image and edit it and show the rest in background with a
transparent layer over them.How can i do that?


[flexcoders] Re: TileList and CustomItemRenderer: How to dynamically change styles

2009-10-09 Thread droponrcll


--- In flexcoders@yahoogroups.com, anuppc anu...@... wrote:

 
 Hi,
 I'm new to flex, would need some help from the experts.
 
 I have a TileList in my application.. Here is the snippet:
 
   
   var favList:TileList = new TileList();
   favList.columnCount = 2;
   favList.dataProvider = favArr;
   favList.itemRenderer = createItemRenderer();
   favList.percentHeight = 100;
   favList.percentWidth = 100;
   favList.dropEnabled = true;
   favList.dragEnabled = true;
   favList.dragMoveEnabled = true;
 
 The ItemRenderer tied to the TileList  is :
 
 mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; width=100%
 height=100% borderStyle=solid borderThickness=0  cornerRadius=5
 mx:Style
 
 .filled
 {
 border-style: solid;
 border-thickness: 0;
 border-skin: ClassReference(border.SimpleGradientBorder);
 fill-colors: #F0F0F0, #C9C9C9;
 corner-radius: 10;
 drop-shadow-enabled: true;
 }
 
 /mx:Style
 mx:Script
 ![CDATA[
 public function changeStyleWest(col1:String, col2:String):void
 {
 box.setStyle(fillColors, [col1, col2]);
 }
 ]]
 /mx:Script
 mx:HBox  id=box styleName=filled horizontalAlign=center
 verticalAlign=middle width=100% height=100%   borderColor=#B7BABC
 borderStyle=solid borderThickness=0  cornerRadius=5
 themeColor=#009DFF 
mx:VBox horizontalAlign=center verticalAlign=middle
 borderStyle=solid borderThickness=0  cornerRadius=5
 mx:Image id=image  width=100 height=100
 source=assets/{data.Image}   visible=true/
 
 mx:Label text={data.Name}  width=100 textAlign=center 
 visible=true /
/mx:VBox
 
 /mx:HBox
 
 /mx:VBox
 
 Now what i want to achieve is else where in the application there are couple
 of buttons and on clicking these buttons i want to change the fill-colors or
 style of each Tile based on some Data attributes.

http://flexdiary.blogspot.com/2008/08/tilelist-with-stylefunction.html

There's a more complete example of how to use it in the Grouping Function 
example.

HTH;

Amy



[flexcoders] Security question

2009-10-09 Thread Christophe
Hello, 

What is the protection against the use of my swf application on another website 
by a hacker with a copy of the swf file ? 

Thank you,
Christophe, 




Re: [flexcoders] Security question

2009-10-09 Thread Jake Churchill
crossdomain.xml policy files

On Fri, Oct 9, 2009 at 2:07 PM, Christophe christophe_jacque...@yahoo.frwrote:



 Hello,

 What is the protection against the use of my swf application on another
 website by a hacker with a copy of the swf file ?

 Thank you,
 Christophe,

  



[flexcoders] employee directory

2009-10-09 Thread James Dean
hi guys

can anyone tell me how they created the animation boxes in the adobe employee 
directory?
http://www.adobe.com/devnet/air/flex/samples.html

it starts with a small box and then expands bigger.  its almost like the 
searchcoders dashboard

im trying to create an air app with flash builder 4


  

RE: [flexcoders] Weird DataGrid custom item renderer behavior

2009-10-09 Thread Alex Harui
Text can be any size so you have to lock the width to the HBox's explicitWIdth.

Try:

mx:HBox horizontalScrollPolicy=off 
mx:Image width={explicitWidth * .2}  
source=starIcon.png /
mx:Text width={explicitWidth * .8} 
selectable=false text={data.name} ({data.abbr}) /
/mx:HBox

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of pmstp
Sent: Friday, October 09, 2009 11:21 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Weird DataGrid custom item renderer behavior


Hi all,

A while ago I wrote (in ActionScript 3) a custom item renderer for a DataGrid 
very similar  to the mxml version below.
It basically has a HBox with a icon and a label to its left on the first 
column, and I wanted to wrapped the text around as users resize the column.  I 
was/am using variable row
height so the row height could change when the label text wraps.

It almost worked, just like the example below.  Try resizing the column just a 
few pixels, or just scroll up and down and you'll see that sometimes the text 
gets truncated and sometimes it wraps nicely.

I was never able to find the source of the problem and fix the bug
(I'm still new to custom item renderers so I probably missed something).
Or is this a bug?  I'm using Flex 3 (3.0.0.477)


Thanks in advance,
Pedro Proenca


?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute width=800 height=600 


mx:Script
![CDATA[
import mx.controls.Alert;
]]
/mx:Script


mx:Array id=dg_data
mx:Object name=Baltimore Orioles abbr=BAL number=1 /
mx:Object name=Boston Red Sox abbr=BOS number=2 /
mx:Object name=Chicago White Sox abbr=CWS number=3 /
mx:Object name=Cleveland Indians abbr=CLE number=4 /
mx:Object name=Detroit Tigers abbr=DET number=5 /
mx:Object name=Kansas City Royals abbr=KC number=6 /
mx:Object name=Los Angeles Angels of Anaheim abbr=LAA number=7 /
mx:Object name=Minnesota Twins abbr=MIN number=8 /
mx:Object name=New York Yankees abbr=NYY number=9 /
mx:Object name=Oakland Athletics abbr=OAK number=10 /
mx:Object name=Seattle Mariners abbr=SEA number=11 /
mx:Object name=Tampa Bay Devil Rays abbr=TB number=12 /
mx:Object name=Texas Rangers abbr=TEX number=13 /
mx:Object name=Toronto Blue Jays abbr=TOR number=14 /
/mx:Array


mx:DataGrid id=dg dataProvider={dg_data} width=80% height=50% 
variableRowHeight=true
mx:columns
mx:DataGridColumn headerText=Name dataField=name 
width=100
mx:itemRenderer
mx:Component
mx:HBox horizontalScrollPolicy=off
mx:Image width=20% source=starIcon.png /
mx:Text width=80% selectable=false 
text={data.name} ({data.abbr}) /
/mx:HBox
/mx:Component
/mx:itemRenderer
/mx:DataGridColumn
mx:DataGridColumn dataField=abbr /
mx:DataGridColumn headerText=Order dataField=number /
/mx:columns
/mx:DataGrid

/mx:Application







RE: [flexcoders] Differences between flex modules and flex components

2009-10-09 Thread Alex Harui
A module can be loaded later to save on initial SWF size and startup time.

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of funandlearning3
Sent: Friday, October 09, 2009 9:09 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Differences between flex modules and flex components



Hi All,

I was reading about flex modules and was trying to understand what is the 
difference between a flex module and flex component when they both server the 
same purpose of maintaining separate code for different components...

Is there a code example to show the difference between the two?

Thanks.



RE: [flexcoders] When does myArrayCollection.setItemAt() get invoked in the component lifecycle?

2009-10-09 Thread Alex Harui
It is deferred to updateDisplayList

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Baz
Sent: Friday, October 09, 2009 11:09 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] When does myArrayCollection.setItemAt() get invoked in 
the component lifecycle?



If I had a ui component and on init() I did myArrayCollection.setItemAt(value, 
position) - when would the visual component bound to the arraycollection get 
updated? Is it immedietly when the function is called, or is it automatically 
deferred to updateDisplayList()?

Basically, should I implement the invalidateProperties() / commitProprties() 
strategy when using setItemAt() on an Arraycollection or is this automatically 
handled?

Cheers,
Baz



Re: [flexcoders] Re: Training Courses

2009-10-09 Thread Wesley Acheson
Okay some good advise here.  Speaking about my own level rather then the
others I think I'm pretty competitent, although its hard to be objective
about oneself. I've created a few item renderers. I'm pretty happy diving
into the framework to try to find more information.  Sure I'm not graphic
designer but then again thats not my job.

So I guess thats an intermediate level?  My worry about going somewhere for
training is that I wouldn't learn enough to be worth the cost.

Regards,

Wes



On Fri, Oct 9, 2009 at 8:39 PM, Jason Michael Perry
ja...@jasonmperry.comwrote:



 I'm an Adobe Certified Instructor and I can tell you that the instructor
 makes all of the difference.
 I'm not sure where you took your class but my former employer Fig Leaf
 Software is one of the best providers of onsite and hands-on training.

 I think self paced training is good, but it lacks the interaction with an
 instructor.  If you can afford training I suggest something like lynda.comto 
 augment the class.  You should read and watch videos so you can challenge
 your instructor...

 Just my two cents.
 -Jason

 On Oct 9, 2009, at 1:31 PM, valdhor wrote:



 Just as an aside, I don't think much of the Adobe Certified Training
 companies. Our company purchased training for ten people here and I sat in
 on it (I had about six months of self taught Flex at the time). Basically
 the course consisted of running through the Flex 3 Training from the
 Source book. You could have gotten just as much at a lot less cost by
 reading that book. As far as the trainer; I knew way more than he did.

 The online video's and reference are a much better learning material than
 any other I have seen.

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Dan
 Pride danielpr...@... wrote:
 
  The Lynda.com courses are basic but quite good.
  There is also a wealth of free video training on adobe such as
  http://www.adobe.com/devnet/flex/videotraining/
  If your department needs some on line help getting started there are a
 number of people up here who would be interested (including me :))
  Dan Pride
  http://www.danielpride.com
 
 
  --- On Fri, 10/9/09, Wesley Acheson wesley.ache...@... wrote:
 
  From: Wesley Acheson wesley.ache...@...
  Subject: [flexcoders] Training Courses
  To: flexcoders flexcoders@yahoogroups.comflexcoders%40yahoogroups.com
 
  Date: Friday, October 9, 2009, 1:43 PM
 
 
 
 
 
 
 
 
 
 
 
 
  Hi,
 
  My boss was wondering if there are any recommended training courses for
 flex. We are based in Gibraltar but I don't think traveling is an issue.
 
  Personally I'd like to see some kind of certification out of it.  Any
 recommended courses?
 
 
  I know its vague because I haven't specified a level however the flex
 abilities of my department are very mixed.
 
  Regards,
 
  Wes
 


 __
 Jason Michael Perry
 ja...@jasonmperry.com
 www.jasonmperry.com
 tel: 504-383-FLEX





 


RE: [flexcoders] Resources for compiling with asc.jar

2009-10-09 Thread Gordon Smith
I don't really know much about using asc directly... I've never had any reason 
to use it. Regardless of whether I'm compiling MXML or AS, I use mxmlc. I 
suppose asc might be faster for special uses, but it is less flexible; it 
doesn't understand MXML, and I'm pretty sure that it requires all of your AS to 
be in a single file, not multiple files that import each other.

So my question is, why is your project using asc?

- Gordon

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of dorkie dork from dorktown
Sent: Thursday, October 08, 2009 9:36 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Resources for compiling with asc.jar



Oh. Why would someone use it instead of mxmlc? Can I use mxmlc in it's place? 
One more question, is there any advantage to using mxmlc over asc? Thanks
On Thu, Oct 8, 2009 at 4:18 PM, Gordon Smith 
gosm...@adobe.commailto:gosm...@adobe.com wrote:

asc.jar doesn't just decompile ActionScript... it also compiles it. But one 
normally uses mxmlc to compile ActionScript or MXML. I'm not sure whether we 
even document how to use asc.jar by itself.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On 
Behalf Of dorkie dork from dorktown
Sent: Thursday, October 08, 2009 11:12 AM
To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Resources for compiling with asc.jar



Thanks
On Thu, Oct 8, 2009 at 8:27 AM, primo411 
primo...@gmail.commailto:primo...@gmail.com wrote:


Looks like this asc.jar is an ActionScript decompiler:
http://www.5etdemi.com/blog/archives/2007/01/as3-decompiler/

To learn how to compile/run, you should read tutorials for Java beginners.
2009/10/8 dorkie dork from dorktown 
dorkiedorkfromdorkt...@gmail.commailto:dorkiedorkfromdorkt...@gmail.com



I'm working on a project that is compiled using asc.jar. I know zero
about asc.jar. I don't even know how to compile / setup or run
asc.jar. I'm a Flex developer. Can someone send me links to resources
or advice on where to go to learn more? Thanks,

DDFD






[flexcoders] Re: Custom PopUp not resizing.

2009-10-09 Thread flexaustin
Thanks, Alex.  The issue was setting width and height so my override measure 
was never getting called.  And I had a couple of component referencing/bound 
{this.width} and {this.height} caused some kind of infinite loop or something?

Set all to minWidth and minHeight all works now.

Jason



--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 Maybe you're measured size doesn't match the size you're setting, or maybe 
 the setting of the size causes something to be invalidated and go through the 
 whole sizing pass again.  Setting breakpoints in LayoutManager can help you 
 find the problem.
 
 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of flexaustin
 Sent: Friday, October 09, 2009 9:04 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Custom PopUp not resizing.
 
 
 
 So I swapped out Box with s:Panel as the base of my custom component. If I 
 don't set set height or width in my component then Flash freezes and says the 
 script is running longer than 15 seconds. Also this same thing happened when 
 I was using mx:Box as the base of my component. This is happening without me 
 overriding any of the measure, commitProperties, etc... functoins. Any 
 suggestions?
 
 Jason
 
 --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex 
 Harui aharui@ wrote:
 
  Popups are a special case. Panel/TitleWindow know when they've been popped 
  up and resize themselves. You'll have to teach your Box to do the same.
 
  Alex Harui
  Flex SDK Developer
  Adobe Systems Inc.http://www.adobe.com/
  Blog: http://blogs.adobe.com/aharui
 
  From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
  [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
  Behalf Of flexaustin
  Sent: Thursday, October 08, 2009 2:07 PM
  To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] Custom PopUp not resizing.
 
 
 
  I have a custom popup based on mx:Box. In it I have a dropdown. In this 
  list dropdown you can select multiple items that once items are selected 
  they stay in the dropdowns selected box (think multiselect combobo box). My 
  custom pop has a width and height set to 300 by 300;
 
  Anyway, when I select several items the pop (not the dropdownlist) starts 
  adding scrollbars when there are to many. If I set the 
  horizontalscrollpolicy and verticallscrollpolicy to off then the pop start 
  moving out of what looks like the popups viewablearea/scrollRect?
  So as the selecteditems in my dropdown gets longer the top of the popup 
  start disappearing?
 
  Does the popupmanager need to know to increase its viewable area for the 
  popup? Or is it possible to have a popup increase in size?
 





Re: [flexcoders] Re: Training Courses

2009-10-09 Thread Jason Perry
Well training and books are meant for beginners and intermediate users.  As
you get more advanced its harder to taylor training classes and books to the
specific needs of advanced developers.

Someone who is a beginner or intermediate typically wants to learn on a very
broad topic.  Advanced and upper intermediate folks have very very specific
things they want to learn (i.e. Programatic Skins)...

That said the Certified Adobe classes are very good.  The two main classes
are great for newbie to intermediate.  The styling class is one of my
favorite to teach and delves into more complex topics for advanced and
intermediate users.

All that said if you look through the outlines and you know everything in
the material you probably won't get a ton from hands-on training unless you
have a great instructor who knows his stuff

Hope this helps...

On Fri, Oct 9, 2009 at 3:39 PM, Wesley Acheson wesley.ache...@gmail.comwrote:



 Okay some good advise here.  Speaking about my own level rather then the
 others I think I'm pretty competitent, although its hard to be objective
 about oneself. I've created a few item renderers. I'm pretty happy diving
 into the framework to try to find more information.  Sure I'm not graphic
 designer but then again thats not my job.

 So I guess thats an intermediate level?  My worry about going somewhere for
 training is that I wouldn't learn enough to be worth the cost.

 Regards,

 Wes



 On Fri, Oct 9, 2009 at 8:39 PM, Jason Michael Perry ja...@jasonmperry.com
  wrote:



 I'm an Adobe Certified Instructor and I can tell you that the instructor
 makes all of the difference.
 I'm not sure where you took your class but my former employer Fig Leaf
 Software is one of the best providers of onsite and hands-on training.

 I think self paced training is good, but it lacks the interaction with an
 instructor.  If you can afford training I suggest something like
 lynda.com to augment the class.  You should read and watch videos so you
 can challenge your instructor...

 Just my two cents.
 -Jason

 On Oct 9, 2009, at 1:31 PM, valdhor wrote:



 Just as an aside, I don't think much of the Adobe Certified Training
 companies. Our company purchased training for ten people here and I sat in
 on it (I had about six months of self taught Flex at the time). Basically
 the course consisted of running through the Flex 3 Training from the
 Source book. You could have gotten just as much at a lot less cost by
 reading that book. As far as the trainer; I knew way more than he did.

 The online video's and reference are a much better learning material than
 any other I have seen.

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Dan
 Pride danielpr...@... wrote:
 
  The Lynda.com courses are basic but quite good.
  There is also a wealth of free video training on adobe such as
  http://www.adobe.com/devnet/flex/videotraining/
  If your department needs some on line help getting started there are a
 number of people up here who would be interested (including me :))
  Dan Pride
  http://www.danielpride.com
 
 
  --- On Fri, 10/9/09, Wesley Acheson wesley.ache...@... wrote:
 
  From: Wesley Acheson wesley.ache...@...
  Subject: [flexcoders] Training Courses
  To: flexcoders flexcoders@yahoogroups.comflexcoders%40yahoogroups.com
 
  Date: Friday, October 9, 2009, 1:43 PM
 
 
 
 
 
 
 
 
 
 
 
 
  Hi,
 
  My boss was wondering if there are any recommended training courses for
 flex. We are based in Gibraltar but I don't think traveling is an issue.
 
  Personally I'd like to see some kind of certification out of it.  Any
 recommended courses?
 
 
  I know its vague because I haven't specified a level however the flex
 abilities of my department are very mixed.
 
  Regards,
 
  Wes
 


  __
 Jason Michael Perry
 ja...@jasonmperry.com
 www.jasonmperry.com
 tel: 504-383-FLEX






  



Re: [flexcoders] When does myArrayCollection.setItemAt() get invoked in the component lifecycle?

2009-10-09 Thread Baz
Alex you're the best thank you for all the help! So to follow, a strategy of
deferring the setItemAt() call to commitProperties() has no value in this
case?



On Fri, Oct 9, 2009 at 1:29 PM, Alex Harui aha...@adobe.com wrote:



  It is deferred to updateDisplayList



 Alex Harui

 Flex SDK Developer

 Adobe Systems Inc. http://www.adobe.com/

 Blog: http://blogs.adobe.com/aharui



 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Baz
 *Sent:* Friday, October 09, 2009 11:09 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] When does myArrayCollection.setItemAt() get
 invoked in the component lifecycle?





 If I had a ui component and on init() I did
 myArrayCollection.setItemAt(value, position) - when would the visual
 component bound to the arraycollection get updated? Is it immedietly when
 the function is called, or is it automatically deferred to
 updateDisplayList()?

 Basically, should I implement the invalidateProperties() /
 commitProprties() strategy when using setItemAt() on an Arraycollection or
 is this automatically handled?

 Cheers,
 Baz

   



RE: [flexcoders] When does myArrayCollection.setItemAt() get invoked in the component lifecycle?

2009-10-09 Thread Alex Harui
Probably not.

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Baz
Sent: Friday, October 09, 2009 2:12 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] When does myArrayCollection.setItemAt() get invoked 
in the component lifecycle?



Alex you're the best thank you for all the help! So to follow, a strategy of 
deferring the setItemAt() call to commitProperties() has no value in this case?


On Fri, Oct 9, 2009 at 1:29 PM, Alex Harui 
aha...@adobe.commailto:aha...@adobe.com wrote:

It is deferred to updateDisplayList

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

From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On 
Behalf Of Baz
Sent: Friday, October 09, 2009 11:09 AM
To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com
Subject: [flexcoders] When does myArrayCollection.setItemAt() get invoked in 
the component lifecycle?



If I had a ui component and on init() I did myArrayCollection.setItemAt(value, 
position) - when would the visual component bound to the arraycollection get 
updated? Is it immedietly when the function is called, or is it automatically 
deferred to updateDisplayList()?

Basically, should I implement the invalidateProperties() / commitProprties() 
strategy when using setItemAt() on an Arraycollection or is this automatically 
handled?

Cheers,
Baz




RE: [flexcoders] Re: Custom PopUp not resizing.

2009-10-09 Thread Alex Harui
Yeah, if you don't get that right then the parent gets width=200 so the child 
gets width=200 then the parent measures at 202 because of a border or something 
so it gets width at 202 so the child gets width=202 and the parent now measures 
at 204...

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of flexaustin
Sent: Friday, October 09, 2009 2:10 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Custom PopUp not resizing.



Thanks, Alex. The issue was setting width and height so my override measure was 
never getting called. And I had a couple of component referencing/bound 
{this.width} and {this.height} caused some kind of infinite loop or something?

Set all to minWidth and minHeight all works now.

Jason

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex 
Harui aha...@... wrote:

 Maybe you're measured size doesn't match the size you're setting, or maybe 
 the setting of the size causes something to be invalidated and go through the 
 whole sizing pass again. Setting breakpoints in LayoutManager can help you 
 find the problem.

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

 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
 Behalf Of flexaustin
 Sent: Friday, October 09, 2009 9:04 AM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] Re: Custom PopUp not resizing.



 So I swapped out Box with s:Panel as the base of my custom component. If I 
 don't set set height or width in my component then Flash freezes and says the 
 script is running longer than 15 seconds. Also this same thing happened when 
 I was using mx:Box as the base of my component. This is happening without me 
 overriding any of the measure, commitProperties, etc... functoins. Any 
 suggestions?

 Jason

 --- In 
 flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com,
  Alex Harui aharui@ wrote:
 
  Popups are a special case. Panel/TitleWindow know when they've been popped 
  up and resize themselves. You'll have to teach your Box to do the same.
 
  Alex Harui
  Flex SDK Developer
  Adobe Systems Inc.http://www.adobe.com/
  Blog: http://blogs.adobe.com/aharui
 
  From: 
  flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com
   
  [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com]
   On Behalf Of flexaustin
  Sent: Thursday, October 08, 2009 2:07 PM
  To: 
  flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] Custom PopUp not resizing.
 
 
 
  I have a custom popup based on mx:Box. In it I have a dropdown. In this 
  list dropdown you can select multiple items that once items are selected 
  they stay in the dropdowns selected box (think multiselect combobo box). My 
  custom pop has a width and height set to 300 by 300;
 
  Anyway, when I select several items the pop (not the dropdownlist) starts 
  adding scrollbars when there are to many. If I set the 
  horizontalscrollpolicy and verticallscrollpolicy to off then the pop start 
  moving out of what looks like the popups viewablearea/scrollRect?
  So as the selecteditems in my dropdown gets longer the top of the popup 
  start disappearing?
 
  Does the popupmanager need to know to increase its viewable area for the 
  popup? Or is it possible to have a popup increase in size?
 




[flexcoders] Re: Trees are killing me

2009-10-09 Thread timgerr
I have no idea how to use this, I have been googleing it but can only find 
references when people extend classes.  Anyone know how to use 
mouseEventToItemRenderer???

Really thanks for the help, this problem has been a thorn in my side for a long 
time.

timgerr

--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 Should be mouseEventToItemRenderer(dragEvent).data
 
 Alex Harui
 Flex SDK Developer
 Adobe Systems Inc.http://www.adobe.com/
 Blog: http://blogs.adobe.com/aharui
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of timgerr
 Sent: Friday, October 09, 2009 7:03 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Trees are killing me
 
 
 
 OK, I am now hanging my hat in hand. I need help with a method to get the 
 object of the folder that I am over, I have no idea how to do this. PLEASE 
 HELP!
 
 Thanks, maybe I can get my dignity back.
 
 timgerr




RE: [flexcoders] Re: Trees are killing me

2009-10-09 Thread Alex Harui
Yes.  You have to extend Tree.

There is an undocumented, mx_internal version called 
mouseEventToItemRendererOrEditor.  You can call that without extending Tree, 
but that API can go away in a future release without warning.

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of timgerr
Sent: Friday, October 09, 2009 2:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Trees are killing me



I have no idea how to use this, I have been googleing it but can only find 
references when people extend classes. Anyone know how to use 
mouseEventToItemRenderer???

Really thanks for the help, this problem has been a thorn in my side for a long 
time.

timgerr

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex 
Harui aha...@... wrote:

 Should be mouseEventToItemRenderer(dragEvent).data

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

 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On 
 Behalf Of timgerr
 Sent: Friday, October 09, 2009 7:03 AM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] Re: Trees are killing me



 OK, I am now hanging my hat in hand. I need help with a method to get the 
 object of the folder that I am over, I have no idea how to do this. PLEASE 
 HELP!

 Thanks, maybe I can get my dignity back.

 timgerr



[flexcoders] Flex 4 - data push

2009-10-09 Thread fgnowfg
Does anyone know of a tutorial for data push in flex 4? All I can find is 
people blogging about it but no one has a complete tutorial. I can do non-real 
time data w/ tomcat server and only need tutorial on data push. thx!



[flexcoders] Re: Flex 4 - data push

2009-10-09 Thread fgnowfg
I should point out I am using lcds and flex 4. I've seen a couple examples of 
doing this in flex 3 but something I read said flex 4's data push is diff. than 
flex 3's, hence my question. thx