RE: [flexcoders] Re: using "as" breaks data binding?

2009-05-12 Thread Alex Harui
I was able to repro in 4.0 beta builds.  It looks like the parser simply can't 
handle the "as" syntax.  That means that it the binding may not respond to 
changes to some kinds of changes because it isn't watching the right events.  
It might work for these purposes as in a renderer the entire data object 
changes, but if you found a way to just modify the one property it probably 
won't pick that up.

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of valdhor
Sent: Tuesday, May 12, 2009 1:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: using "as" breaks data binding?





I think I may have an answer. I broke down the code into its constituent pieces 
and I now have a theory.

My theory:
When you use (data as TestObject).b, you are actually trying to bind to the 
data property of the item renderer. As this is not a bindable property, you get 
the error. When you use the cast: TestObject(data).a, you are now binding to 
TestObject which does have bindable properties.

Have a look at the following code...

TestObject.as
package
{
  public class TestObject
  {
[Bindable] public var item1:uint = 2;
[Bindable] public var item2:uint = 3;
[Bindable] public var item3:uint = 1;
  }
}

HBoxItemRenderer.as

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

&! nbsp;   
   ! 




DataBindingTest.mxml

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

  
  
  



If anyone thinks my theory is incorrect, please chime in.


HTH



Steve


--- In flexcoders@yahoogroups.com, Pan Troglodytes  wrote:
>
> Well, I entered the two related issues as:
>
> https://bugs.adobe.com/jira/browse/SDK-21100
> https://bugs.adobe.com/jira/browse/SDK-21101
>
> Maybe someone at Adobe can manage to reproduce them. I'm not really sure
> how much harm is being done, since the code appears to work right in the
> end. But someone weird and unexpected seems to be going on under the hood.
>
>
> On Tue, May 12, 2009 at 2:39 PM, Pan Troglodytes chimpathe...@...wrote:
>
>! ; > Thanks for giving me some confirmation. Now if we coul! d just f igure 
>out
> > what Alex/Adobe need to do to replicate our tests.
> >
> > The reason it doesn't give a warning on "y" is due to what I referenced
> > (perhaps unclearly) above. Notice in the warning it tells you it can't bind
> > to that value on the *itemRenderer *(GenericTest_inlineComponent1 in my
> > test), not on the *TestObject* instance. The itemRenderer has an x and y
> > object, so that's why it doesn't complain. It doesn't make any sense that
> > it should be looking at binding to the itemRenderer instead of the
> > TestObject instance, though.
> >
> >
> > On Tue, May 12, 2009 at 12:24 PM, valdhor valdhorli...@...wrote:
> >
> >>
> >>
> >> Jason
> >>
> >> As a sanity check I tried it and I get the exact same error. I am using
> >> Flex SDK 3.3.0 and Flash Player WIN 9,! 0,159,0 Debug.
> >>
> >> Strangely enough, changing b to y fixes it and the error goes away. Other
> >> variable identifiers I have tried (Very small sample) gives the error as
> >> well.
> >>
> >> It's got me beat.
> >>
> >> Why would the posted code give an error at all?
> >>
> >> Why would y work and everything else not?
> >>
> >>
> >> --- In flexcoders@yahoogroups.com , Pan
> >> Troglodytes chimpathetic@ wrote:
> >> >
> >> > I wonder if I wasn't clear enough on this - these are run-time warnings
> >> that
> >> > output to the console. You don't get those?
> >> >
> >> >
> >> > On Mon, May 11, 2009 at 5:27 PM, Alex Harui aharui@ wrote:
> >> >
&! gt; >> > >
> >> > >
> >! > > ; > I didn't get any warnings like you did so I couldn't investigate
> >> further.
> >> > >
> >> > >
> >> > >
> >> > > Alex Harui
> >> > >
> >> > > Flex SDK Developer
> >> > >
> >> > > Adobe Systems Inc. 
> >> > >
> >> > > Blog: http://blogs.adobe.com/aharui
> >> > >
> >> > >
> >> > >
> >> > > *From:* flexcoders@yahoogroups.com 
> >> > > [mailto:
> >> flexcoders@yahoogroups.com ] *On
> >> > > Behalf Of *Pan Troglodytes
> >> > > *Sent:* Saturday, May 09, 2009 10:38 PM
> >> > > *To:* flexcoders@yahoogroups.com 
> >> > > *Subject:* Re: [flexcoders] using "as" breaks data binding?
> >> > >
> >> > >
> >> > >
> >> > >
> >> > >
> >> > >
> >> > > 3.3.0. I also get it with 4.0.0.6137. Just downloaded and got it in
> >> > > 6772, too. I'm using player version 10,0,12,36. Do you need to know
> >> > > anything about my Flex Builder version? Let me know anything else I
> >> can
> >> > > provide.
> >> > >
> >> > > When you say you don't get it with the soon-to-be 3.4, what exactly do
> >> you
> >> > > mean? You just don't get the run-time warning? Did you track down why
> >> it
> >> > > would be okay with "x" and see if that's still doing whatever weird
> ! >> thing it
> >> > > is in 3.4?
>! ; >&g t; > >
> >> > > On Sat, May 9, 2009 at 4:11 PM, Alex Harui aharui@ wrote:
> >> > >

[flexcoders] AIR 1.5 + Flash player 10

2009-05-12 Thread Pravin Uttarwar


Hi,

I am using air 1.5 , in which I am using Adobe's Dynamic Streaming class for 
dynamically switching the videos from FMS according to users bandwidth.
This works fine in Flex project with Flash Player 10,
but when same thing I used in Air Application, It gives me
Reference Error for class NetStreamPlayOptions at run time but not at compile 
time.

I dont know why Air behaving like this.Is anything I am missing or anybody 
tried DynamicStream class in air?

Regards,
Pravin





[flexcoders] UIComponent doesnt catch TOOLTIP event

2009-05-12 Thread yossi.baram
Hi,
My Tree Table renderer extends UIComponent.
I cannot catch the Tooltip event by using
component.addEventListener(ToolTipEvent.TOOL_TIP_CREATE,tooltipDetailCreate);

why?

this is part of the data my renderer override:
(myComponent is a class that extends UIComponent)
public function set data(value:Object):void
{

if(value != null)
{
_data = value; 
this.removeAllChildren();   
 invalidateProperties();
 dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE));   ...
...

myComponent.addEventListener(ToolTipEvent.TOOL_TIP_CREATE,tooltipDetailCreate); 

var innerCellDisplay:DisplayObject = myComponent as DisplayObject;
this.addChild(innerCellDisplay);

}
}

// create the tooltip
private function tooltipDetailCreate(event:ToolTipEvent):void { 
  var tt:PanelToolTip  = new PanelToolTip();
  var innerImage:Object = event.currentTarget;
  var myString:String = "";
 myString = myString + "width:"  + "\n";   
 myString = myString + "width:"  + "\n";
 tt.width  = 190; 
 tt.height = 100;
 tt.bodyText = myString;
tt.titleText = "Title - " ; 
event.toolTip = tt; 
}   

Please advise

Jo




[flexcoders] Do we get any notification when user dissconnects from LCDS

2009-05-12 Thread Dharmendra Chauhan
Hi, 
   I have to release resources when user get disconnected from LCDS.
What I need to implement in java to listen it ?

User may disconnect due to network failure ,when he closes the flex Window etc..


Thanks,
Dharmendra
 



[flexcoders] Re: loading status for DataGrid

2009-05-12 Thread Dharmendra Chauhan
Thanks for the reply,
I really cant turn on pagiing because it makes sorting slow by at least 5 
times.Once I did it but had to revert.

I have to think other way to get rid of this issue.
DataService should dispatch some event which tells the status of data loading.




--- In flexcoders@yahoogroups.com, Jeffrey Vroom  wrote:
>
> You can turn on paging, then listen for the "result" events on the
> DataService.  They'll be dispatched once for each page result.
> Jeff
> 
> On Tue, May 12, 2009 at 12:15 PM, Dharmendra Chauhan  > wrote:
> 
> >
> >
> > Hi All,
> > I have flex DataGrid which asynchronously receive data throw LCDS deployed
> > on Jboss.Initially It loads around 2k to 3k rows
> > I need to show loading status which would just keep showing Data Loading
> > until data load is complete.
> >
> > DataService class does not have any event which would serve this purpose
> >
> > Does anybody have any idea on it ?
> >
> >  
> >
>




[flexcoders] Re: Buggy HorizontalList

2009-05-12 Thread Amy
--- In flexcoders@yahoogroups.com, "nathanpdaniel"  wrote:
>
> I'm using the HorizontalList (HList) component and I've run into an issue 
> where when data is updated dynamically some items are not rendered.
> I load data via an XML file which sets up in my app several XMLListCollection 
> variables.  Users can select different menu options to determine which 
> collection is used as the dataProvider for the HList.  These collections 
> range in length from 3 - 50 items.  My HList only displays 5 at any given 
> time (with a horizontal scroll bar).  
> What will happen occassionally is when I go from a short list (3 items) to a 
> larger list, items will not render.  
> The new item at position HList.dataProvider[old list length - 1] (zero based 
> index) will be missing.  Not as though I have invalid data so it renders 
> wrong but, as though the data is not there at all.  It puts spacing in there 
> to account for it but, it's the equivalent of setting an object's visible 
> property to false but includeInLayout to true.  The other 4 in the first 5 
> will render properly.  I scroll the list to show more, HList.dataProvider[old 
> list length + 1] and HList.dataProvider[old list length + 2] will not render. 
>  As I scroll away from the beginning of the list more and more of the 5 items 
> to display won't render until it throws an error from all 5 not rendering.  
> However, if I go from a short list, of say 3 items, to a list of 4 items, 
> then a list of 5 items, the probably is avoided across all collections.  It 
> will occur if I go from a list of length < 5 directly to a list of lenght > 
> 5.  Also of note, if the list length < 10, I can avoid throwing errors, 
> however, if it gets beyond that, it starts throwing them.
> I am setting a filter on the HList.dataProvider saying if (of all products) 
> the product matches one of the two that need to be ignored, filter them from 
> the list.  So irregardless of which collection is the dataProvider, if 
> product A or product B is in this list, filter it out.  I am also using an 
> itemRenderer (a custom component to display an image).
> Anyone have any ideas, it's been driving me nuts for a while now.  Sometimes 
> it doesn't even happen at all and I've yet to be able to consistantly 
> reproduce it with anything.  I'm sort of at a loss for what to do since, I 
> don't really know what's causing the issue... ??

It sounds like you have the old "trying to set properties in creationcomplete" 
issue.  Check out Q2 here 
http://www.magnoliamultimedia.com/flex_examples/Amys_Flex_FAQ.pdf
to see if that is it.

HTH;

Amy




[flexcoders] HTTPService not behaving properly?

2009-05-12 Thread laurence5905
I don't get it.  I've got an ArrayCollection being populated by an HTTPService 
call, and it only works like half the time.

If I add a couple of break points to the program, and Debug it, then it works 
100% of the time -- it's acting like there's just not enough time to load the 
thing into memory sometimes.  I also get a 100% success rate if I set the 
ArrayCollection to be the data source for a List Control (like a DataGrid or 
something).  But I don't want to do that -- I want this thing to be loaded in 
memory without me having to set it as a data source for something else.

So is there a way to force my program to stop and wait for this thing to load?

(Sorry if this winds up being a double-post.  I sent it 15 minutes ago and it 
still hasn't appeared on the list, so I'm sending it again.)
--
Laurence MacNeill
Mableton, Georgia, USA




[flexcoders] HTTPService not behaving properly?

2009-05-12 Thread Laurence MacNeill
I don't get it.  I've got an ArrayCollection being populated by an 
HTTPService call, and it only works like half the time.

If I add a couple of break points to the program, and Debug it, then 
it works 100% of the time -- it's acting like there's just not enough 
time to load the thing into memory sometimes.  I also get a 100% 
success rate if I set the ArrayCollection to be the data source for a 
List Control (like a DataGrid or something).  But I don't want to do 
that -- I want this thing to be loaded in memory without me having to 
set it as a data source for something else.

So is there a way to force my program to stop and wait for this thing to load?

Laurence MacNeill
Mableton, Georgia, USA



[flexcoders] Compile css to swf for runtime css

2009-05-12 Thread sinacapho
Hi,

I have try the runtime css for my project, I have set the Main source path 
in the Flex Builder as 'flex\src' and the Output folder as 'WebContent'. The 
css file is under the flex\src\css\test.css. When i click the compile CSS to 
SWF.Actually the css folder have already create in the WebContent. But there is 
a error show that 
'A file found in a source-path must have the same package structure 'css' , as 
the definition's package , '' '. 

 But when i try to move the css file one more layer up flex\src\test.css , 
it is ok and a test.swf is created in the WebContent. 
Would someone tell me why this happen?


  thx
capho



Re: [flexcoders] FlowBox Nesting

2009-05-12 Thread Doug McCune
FlowBox has a pretty serious bug having to do with how it does its height
calculation. This bug has been logged and has remained unresolved for far
too long (I say this as the main flexlib maintainer, it's basically my
laziness that has kept this from being fixed). That said, there's a second
container in FlexLib that also accomplishes the same goal, it's called
FlowContainer. It was origianlly written as part of the docking toolbar
component. It more or less does the exact same thing, but doesn't have the
problem with the height calculation.

So I'd advise trying to use FlowContainer instead of FlowBox, I bet it will
solve your problem.

Doug

On Tue, May 12, 2009 at 5:56 PM, Mike Oliver  wrote:

>
>
>
> Yes its the flow box see attached.
>
> http://www.nabble.com/file/p23513630/ToolbarDemo.swf ToolbarDemo.swf
>
> It looks like the flow box calculates its height based on all components
> wrapping.
>
> Ollie
>
>
> Tracy Spratt-2 wrote:
> >
> > Is it the FlowBox that is causing the problem? What happens if you
> > replace
> > it with an HBox? Do you still get that space? Can you put a border or
> > background on the FlowBox to see if it is causing the layout issue?
> >
> >
> >
> > Something is confusing the layout. The space between items in a VBox
> > should
> > be only the verticalGap.
> >
> >
> >
> > Tracy Spratt,
> >
> > Lariat Services, development services available
> >
> > _
> >
> > From: flexcoders@yahoogroups.com  [mailto:
> flexcoders@yahoogroups.com ] On
> > Behalf Of Mike Oliver
> > Sent: Tuesday, May 12, 2009 8:13 PM
> > To: flexcoders@yahoogroups.com 
> > Subject: RE: [flexcoders] FlowBox Nesting
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > I said that I tried a VBox and that did NOT give me what I want,
> >
> > Here is the mxml
> >
> > 
> >
> >  > paddingRight="10" paddingTop="10" left="10">
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > and I attached the swf and here is a screen shot.
> >
> > http://www.nabble.  >
> > com/file/p23513102/ToolbarDemo.swf ToolbarDemo.swf
> >
> > Now note that the space between the flowbox and the grid is what I want
> to
> > eliminate.
> >
> > http://www.nabble.
> > <
> http://www.nabble.com/file/p23513102/ScreenHunter_28%2BMay.%2B12%2B17.09.jp
> > g> com/file/p23513102/ScreenHunter_28%2BMay.%2B12%2B17.09.jpg
> >
> > Tracy Spratt-2 wrote:
> >>
> >> Plain old VBox will do this for you. Set the lower grid height to 100%
> >> and
> >> it should resize dynamically to fit (If the VBox has a fixed height) If
> >> the
> >> VBox height is not set then its container will show scrollbars
> >>
> >>
> >>
> >> Tracy Spratt,
> >>
> >> Lariat Services, development services available
> >>
> >> _
> >>
> >> From: flexcod...@yahoogro 
> >> 
> ups.com
> > [mailto:flexcod...@yahoogro 
> > 
> ups.com]
> > On
> >> Behalf Of Mike Oliver
> >> Sent: Tuesday, May 12, 2009 12:55 PM
> >> To: flexcod...@yahoogro 
> >> 
> ups.com
>
> >> Subject: [flexcoders] FlowBox Nesting
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> I am trying to create a screen with a grid and a toolbar on top of it.
> >>
> >> The problem is that the toolbar can have more user selectable controls
> in
> >> it
> >> than will fit on small screens.
> >>
> >> So I wanted to use the FlowBox and that works great but only if I allow
> >> for
> >> the space between the Flowbox and the grid control under it.
> >>
> >> I wanted the grid control to float under the toolbar and if the toolbar
> /
> >> flowbox gets reduced in width to wrap a control down into a second row
> >> the
> >> grid would slide down to accommodate.
> >>
> >> So I thought a flowbox with a flowbox and the grid control in it but the
> >> nested flowbox and grid won't fill the parent flow box with width="100%"
>
> >>
> >> I have tried TileList and VBox and have yet to find the combination that
> >> will allow the grid to float under the FlowBox.
> >> --
> >> View this message in context: http://www.nabble.
> >>  > 
> > com/FlowBox-Nesting-tp23506408p23506408.html>
> >> com/FlowBox-Nesting-tp23506408p23506408.html
> >> Sent from the FlexCoders mailing list archive at Nabble.com.
> >>
> >>
> >>
> >>
> >>
> >
> > --
> > View this message in context: http://www.nabble.
> > 
> > com/FlowBox-Nesting-tp23506408p23513102.html
> > Sent from the FlexCoders mailing list archive at Nabble.com.
> >
> >
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/FlowBox-Nesting-tp23506408p23513630.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>
>  
>


[flexcoders] LCDS Push API Problem

2009-05-12 Thread foobone9
I have a custom assembler, that uses the interface approach, which returns an 
object with a XML property.

When I open two clients and edit one through LCDS the other updates as 
expected. I then have server code which updates the same XML property and calls 
the newer DataServiceTransaction refreshFill("...", null, propertySpecifier) 
and again both clients update to the new XML property value.

However, if I restart both clients and first update via the push API the 
clients DO NOT receive the changed XML property value. If I next update from a 
client, both change and from here on out they will respond to the server 
property change pushes.

It appears to me that something is being registered when an object is updated 
via the assembler that allows it to respond to future server API property 
pushes. I need the push API to work even when no client updates occur.

I should note that when using the push API I am only calling refreshFill with a 
propertySpecifier and am never calling updateItem. I'm doing this because the 
XML value is actually a compound property and changes depending on a given fill 
parameter (it happens to be a date window which I cannot predict from the other 
server code where the push occurs).

Anyone have any thoughts?



RE: [flexcoders] 2 Questions abot TextField in ActionScript

2009-05-12 Thread Gordon Smith
1. Yes. By default, flash.display.TextField does not have an opaque background; 
to get one, you have to set its background:Boolean property, and then you can 
set backgroundColor:uint to determine what color the background is.

2. Can you be more specific? What Halo component are you talking about? Label? 
Text? TextInput? TextArea?

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of ACasualObserver
Sent: Tuesday, May 12, 2009 12:53 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] 2 Questions abot TextField in ActionScript





1- Is it possible to create a translucent TextField (or whatever class that can 
be added to a DisplayObjectContainer to display) ? How?

2- The same question about a text with halo?

Thanks



RE: [flexcoders] FlowBox Nesting

2009-05-12 Thread Mike Oliver

Yes its the flow box see attached.

http://www.nabble.com/file/p23513630/ToolbarDemo.swf ToolbarDemo.swf 

It looks like the flow box calculates its height based on all components
wrapping.

Ollie


Tracy Spratt-2 wrote:
> 
> Is it the FlowBox that is causing the problem?  What happens if you
> replace
> it with an HBox?  Do you still get that space?  Can you put a border or
> background on the FlowBox to see if it is causing the layout issue?
> 
>  
> 
> Something is confusing the layout.  The space between items in a VBox
> should
> be only the verticalGap.
> 
>  
> 
> Tracy Spratt,
> 
> Lariat Services, development services available
> 
>   _  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of Mike Oliver
> Sent: Tuesday, May 12, 2009 8:13 PM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] FlowBox Nesting
> 
>  
> 
> 
> 
> 
> 
> 
> 
> I said that I tried a VBox and that did NOT give me what I want, 
> 
> Here is the mxml 
> 
> 
> 
>  paddingRight="10" paddingTop="10" left="10">
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> and I attached the swf and here is a screen shot.
> 
> http://www.nabble. 
> com/file/p23513102/ToolbarDemo.swf ToolbarDemo.swf 
> 
> Now note that the space between the flowbox and the grid is what I want to
> eliminate.
> 
> http://www.nabble.
>  g> com/file/p23513102/ScreenHunter_28%2BMay.%2B12%2B17.09.jpg 
> 
> Tracy Spratt-2 wrote:
>> 
>> Plain old VBox will do this for you. Set the lower grid height to 100%
>> and
>> it should resize dynamically to fit (If the VBox has a fixed height) If
>> the
>> VBox height is not set then its container will show scrollbars
>> 
>> 
>> 
>> Tracy Spratt,
>> 
>> Lariat Services, development services available
>> 
>> _ 
>> 
>> From: flexcod...@yahoogro  ups.com
> [mailto:flexcod...@yahoogro  ups.com]
> On
>> Behalf Of Mike Oliver
>> Sent: Tuesday, May 12, 2009 12:55 PM
>> To: flexcod...@yahoogro  ups.com
>> Subject: [flexcoders] FlowBox Nesting
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> I am trying to create a screen with a grid and a toolbar on top of it.
>> 
>> The problem is that the toolbar can have more user selectable controls in
>> it
>> than will fit on small screens.
>> 
>> So I wanted to use the FlowBox and that works great but only if I allow
>> for
>> the space between the Flowbox and the grid control under it.
>> 
>> I wanted the grid control to float under the toolbar and if the toolbar /
>> flowbox gets reduced in width to wrap a control down into a second row
>> the
>> grid would slide down to accommodate.
>> 
>> So I thought a flowbox with a flowbox and the grid control in it but the
>> nested flowbox and grid won't fill the parent flow box with width="100%" 
>> 
>> I have tried TileList and VBox and have yet to find the combination that
>> will allow the grid to float under the FlowBox.
>> -- 
>> View this message in context: http://www.nabble.
>>  
> com/FlowBox-Nesting-tp23506408p23506408.html>
>> com/FlowBox-Nesting-tp23506408p23506408.html
>> Sent from the FlexCoders mailing list archive at Nabble.com.
>> 
>> 
>> 
>> 
>> 
> 
> -- 
> View this message in context: http://www.nabble.
> 
> com/FlowBox-Nesting-tp23506408p23513102.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
> 
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/FlowBox-Nesting-tp23506408p23513630.html
Sent from the FlexCoders mailing list archive at Nabble.com.



RE: [flexcoders] FlowBox Nesting

2009-05-12 Thread Tracy Spratt
Is it the FlowBox that is causing the problem?  What happens if you replace
it with an HBox?  Do you still get that space?  Can you put a border or
background on the FlowBox to see if it is causing the layout issue?

 

Something is confusing the layout.  The space between items in a VBox should
be only the verticalGap.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Mike Oliver
Sent: Tuesday, May 12, 2009 8:13 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] FlowBox Nesting

 







I said that I tried a VBox and that did NOT give me what I want, 

Here is the mxml 




















and I attached the swf and here is a screen shot.

http://www.nabble. 
com/file/p23513102/ToolbarDemo.swf ToolbarDemo.swf 

Now note that the space between the flowbox and the grid is what I want to
eliminate.

http://www.nabble.
 com/file/p23513102/ScreenHunter_28%2BMay.%2B12%2B17.09.jpg 

Tracy Spratt-2 wrote:
> 
> Plain old VBox will do this for you. Set the lower grid height to 100%
> and
> it should resize dynamically to fit (If the VBox has a fixed height) If
> the
> VBox height is not set then its container will show scrollbars
> 
> 
> 
> Tracy Spratt,
> 
> Lariat Services, development services available
> 
> _ 
> 
> From: flexcod...@yahoogro  ups.com
[mailto:flexcod...@yahoogro  ups.com]
On
> Behalf Of Mike Oliver
> Sent: Tuesday, May 12, 2009 12:55 PM
> To: flexcod...@yahoogro  ups.com
> Subject: [flexcoders] FlowBox Nesting
> 
> 
> 
> 
> 
> 
> 
> 
> 
> I am trying to create a screen with a grid and a toolbar on top of it.
> 
> The problem is that the toolbar can have more user selectable controls in
> it
> than will fit on small screens.
> 
> So I wanted to use the FlowBox and that works great but only if I allow
> for
> the space between the Flowbox and the grid control under it.
> 
> I wanted the grid control to float under the toolbar and if the toolbar /
> flowbox gets reduced in width to wrap a control down into a second row the
> grid would slide down to accommodate.
> 
> So I thought a flowbox with a flowbox and the grid control in it but the
> nested flowbox and grid won't fill the parent flow box with width="100%" 
> 
> I have tried TileList and VBox and have yet to find the combination that
> will allow the grid to float under the FlowBox.
> -- 
> View this message in context: http://www.nabble.
> 
com/FlowBox-Nesting-tp23506408p23506408.html>
> com/FlowBox-Nesting-tp23506408p23506408.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
> 
> 
> 
> 
> 

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

com/FlowBox-Nesting-tp23506408p23513102.html
Sent from the FlexCoders mailing list archive at Nabble.com.





RE: [flexcoders] ColdFusion typed object problem - but not the usual issues

2009-05-12 Thread Peter Farland
You don't have two types mapped to the same alias by any chance do you?


RE: [flexcoders] FlowBox Nesting

2009-05-12 Thread Mike Oliver

I said that I tried a VBox and that did NOT give me what I want, 

Here is the mxml 




















and I attached the swf and here is a screen shot.

http://www.nabble.com/file/p23513102/ToolbarDemo.swf ToolbarDemo.swf 

Now note that the space between the flowbox and the grid is what I want to
eliminate.

http://www.nabble.com/file/p23513102/ScreenHunter_28%2BMay.%2B12%2B17.09.jpg 



Tracy Spratt-2 wrote:
> 
> Plain old VBox will do this for you.  Set the lower grid height to 100%
> and
> it should resize dynamically to fit (If the VBox has a fixed height)  If
> the
> VBox height is not set then its container will show scrollbars
> 
>  
> 
> Tracy Spratt,
> 
> Lariat Services, development services available
> 
>   _  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of Mike Oliver
> Sent: Tuesday, May 12, 2009 12:55 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] FlowBox Nesting
> 
>  
> 
> 
> 
> 
> 
> 
> 
> I am trying to create a screen with a grid and a toolbar on top of it.
> 
> The problem is that the toolbar can have more user selectable controls in
> it
> than will fit on small screens.
> 
> So I wanted to use the FlowBox and that works great but only if I allow
> for
> the space between the Flowbox and the grid control under it.
> 
> I wanted the grid control to float under the toolbar and if the toolbar /
> flowbox gets reduced in width to wrap a control down into a second row the
> grid would slide down to accommodate.
> 
> So I thought a flowbox with a flowbox and the grid control in it but the
> nested flowbox and grid won't fill the parent flow box with width="100%" 
> 
> I have tried TileList and VBox and have yet to find the combination that
> will allow the grid to float under the FlowBox.
> -- 
> View this message in context: http://www.nabble.
> 
> com/FlowBox-Nesting-tp23506408p23506408.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
> 
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/FlowBox-Nesting-tp23506408p23513102.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] ColdFusion typed object problem - but not the usual issues

2009-05-12 Thread Tom McNeer
Believe me, I wouldn't be asking about this if I hadn't spent a
day-and-a-half fighting it, googling, fighting it, googling ...

>From ColdFusion, I am sending a number of objects as typed structs, which
are properly translated into their equivalent VOs on the Flex side.

But I have one that simply won't translate. (Well, worse yet, it
*did*translate - once - and then when I added one more attribute to
each side, it
broke again. But removing the attribute didn't fix it.)

I think I'm aware of most of the pitfalls that stop the translation --
because I've fallen into them.

I've made sure that the properties on both sides are exactly the same. I've
checked all the case sensitivity. I've made sure that the Remote Alias in
the VO is correct, and matches the ["__type__"] in the incoming struct. I've
made sure that an instance of the VO actually exists on the Flex side, so
it's compiled in.

I'm not sure what's left. The actual object I'm trying to translate has
child objects as well as simple properties, and those composed objects are
translated correctly into their VO types. But the main object won't
translate. Or, as I say, it did once, then stopped. (I know, I know.) What I
see in the debugger is an ObjectProxy, with all its properties (including
some correctly translated objects), but with another Object inside, which
has the same properties.

What I see in Charles seems exactly right: the object is identified
according to the ["__type__"] attribute, with all the correct properties --
including the composed objects. But no luck.

To test, I boiled down both the incoming object and the VO to the point
where they had a single property.

But no translation.

So at it's simplest: from ColdFusion I send:






... and in Flex I have:

package model
{
[RemoteClass(alias="my.cfc.type")]
[Bindable]
public class MyVO {
  public var myID:Number = 0;

  public function MyVO(){
  }

}

Has anyone run into a problem like this? Or at least, has any one seen
translation problems caused by any issues other than the common ones I
listed above?

Or should I just shoot myself?


-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


[flexcoders] Flex Java-based compiler - and dynamic flex SDK??

2009-05-12 Thread Mehdi
You guys,

I have been playing w/ the flex java based compiler API( 
http://blogs.adobe.com/flexdoc/2008/01/compiler_api.html), and I am using it to 
build couple of swc. No problem there.
In order for this api to work, you need:
- flex-compiler-oem.jar (needed for compilation)
- All the rest of the jars from the FLEX SDK  (for the runtime execution as 
this is where the compiler and other needed classes/libraries are)

What I would like to do is to point to a flex SDK at run time and not have it 
'statically' imported.
I tried couple of things, among others using my own classloader, w/o much 
success and already too many hacks in the way. (had to locally copy 
winFonts.ser, then I had to remove my CustomReport, CustomLogger class as you 
everything has to be loaded dynamically or else you will end up with 2 
classloaders.)

I don't understand why Adobe did not do it such as this is possible out of the 
box.

Anyone tried this before?
Cheers.



RE: [flexcoders] Buggy HorizontalList

2009-05-12 Thread Tracy Spratt
Are you using a custom ItemRenderer?

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of nathanpdaniel
Sent: Tuesday, May 12, 2009 1:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Buggy HorizontalList

 






I'm using the HorizontalList (HList) component and I've run into an issue
where when data is updated dynamically some items are not rendered.
I load data via an XML file which sets up in my app several
XMLListCollection variables. Users can select different menu options to
determine which collection is used as the dataProvider for the HList. These
collections range in length from 3 - 50 items. My HList only displays 5 at
any given time (with a horizontal scroll bar). 
What will happen occassionally is when I go from a short list (3 items) to a
larger list, items will not render. 
The new item at position HList.dataProvider[old list length - 1] (zero based
index) will be missing. Not as though I have invalid data so it renders
wrong but, as though the data is not there at all. It puts spacing in there
to account for it but, it's the equivalent of setting an object's visible
property to false but includeInLayout to true. The other 4 in the first 5
will render properly. I scroll the list to show more, HList.dataProvider[old
list length + 1] and HList.dataProvider[old list length + 2] will not
render. As I scroll away from the beginning of the list more and more of the
5 items to display won't render until it throws an error from all 5 not
rendering. However, if I go from a short list, of say 3 items, to a list of
4 items, then a list of 5 items, the probably is avoided across all
collections. It will occur if I go from a list of length < 5 directly to a
list of lenght > 5. Also of note, if the list length < 10, I can avoid
throwing errors, however, if it gets beyond that, it starts throwing them.
I am setting a filter on the HList.dataProvider saying if (of all products)
the product matches one of the two that need to be ignored, filter them from
the list. So irregardless of which collection is the dataProvider, if
product A or product B is in this list, filter it out. I am also using an
itemRenderer (a custom component to display an image).
Anyone have any ideas, it's been driving me nuts for a while now. Sometimes
it doesn't even happen at all and I've yet to be able to consistantly
reproduce it with anything. I'm sort of at a loss for what to do since, I
don't really know what's causing the issue... ??





RE: [flexcoders] FlowBox Nesting

2009-05-12 Thread Tracy Spratt
Plain old VBox will do this for you.  Set the lower grid height to 100% and
it should resize dynamically to fit (If the VBox has a fixed height)  If the
VBox height is not set then its container will show scrollbars

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Mike Oliver
Sent: Tuesday, May 12, 2009 12:55 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] FlowBox Nesting

 







I am trying to create a screen with a grid and a toolbar on top of it.

The problem is that the toolbar can have more user selectable controls in it
than will fit on small screens.

So I wanted to use the FlowBox and that works great but only if I allow for
the space between the Flowbox and the grid control under it.

I wanted the grid control to float under the toolbar and if the toolbar /
flowbox gets reduced in width to wrap a control down into a second row the
grid would slide down to accommodate.

So I thought a flowbox with a flowbox and the grid control in it but the
nested flowbox and grid won't fill the parent flow box with width="100%" 

I have tried TileList and VBox and have yet to find the combination that
will allow the grid to float under the FlowBox.
-- 
View this message in context: http://www.nabble.

com/FlowBox-Nesting-tp23506408p23506408.html
Sent from the FlexCoders mailing list archive at Nabble.com.





RE: [flexcoders] removing some labels on chart axis

2009-05-12 Thread Tracy Spratt
labelFunction() ?

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of thomas parquier
Sent: Tuesday, May 12, 2009 11:55 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] removing some labels on chart axis

 






Hi,

How to prevent selectively some labels from rendering ?

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





RE: [flexcoders] Getting an error when using a tree as a component

2009-05-12 Thread Tracy Spratt
We are going to need to see a bit of code, particularly the line that raises
the exception.  Go on and post the entire stack trace, some folks here can
make use of it.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of timgerr
Sent: Tuesday, May 12, 2009 11:50 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Getting an error when using a tree as a component

 






Hello all, 
I was wondering if this error makes sense? I have this tree that I made into
a component. When I run the script, I see the tree but when I try and click
on one of the folders I get this error "The supplied DisplayObject must be a
child of the caller." Anyone know what this means

Thanks,
timgerr





[flexcoders] Adobe Air HTTPServices problem

2009-05-12 Thread djhatrick
I have an air application that polls the server, I've been developing it for a 
for a couple months.  All of a sudden, now this may have been the result of a 
server change, but now I get a 2032 Error.  Which seems odd, it just broke.  
The api still works...

Has anyone known any issues where service calls just break with HTTPService in 
air?   Could this be an error somewhere else in my app?  I've set up wireshark, 
and it's as if nothing is even leaving the server, it just sits there.

Any suggestions?  How does the service class work? My app can't find home.  But 
I have use some socket connection tests and they work.

Thanks,
Patrick



Re: [flexcoders] Re: Examples of side TabNavigator?

2009-05-12 Thread grimmwerks
WOW - thanks - much prettier than the one I'd found from Tink.


On May 12, 2009, at 3:17 PM, nathanpdaniel wrote:

> Like this? http://merhl.com/?p=172
>
> --- In flexcoders@yahoogroups.com, grimmwerks  wrote:
>>
>> Hey - has anyone any links / info on possibly making a side Tab
>> Navigator?   How best to override the createChildren?
>>
>> Danke
>>
>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo 
> ! Groups Links
>
>
>



[flexcoders] Re: using "as" breaks data binding?

2009-05-12 Thread valdhor
I think I may have an answer. I broke down the code into its constituent
pieces and I now have a theory.

My theory:
When you use (data as TestObject).b, you are actually trying to bind to
the data property of the item renderer. As this is not a bindable
property, you get the error. When you use the cast: TestObject(data).a,
you are now binding to TestObject which does have bindable properties.

Have a look at the following code...

TestObject.as
package
{
   public class TestObject
   {
 [Bindable] public var item1:uint = 2;
 [Bindable] public var item2:uint = 3;
 [Bindable] public var item3:uint = 1;
   }
}

HBoxItemRenderer.as

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


DataBindingTest.mxml

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



If anyone thinks my theory is incorrect, please chime in.


HTH



Steve


--- In flexcoders@yahoogroups.com, Pan Troglodytes 
wrote:
>
> Well, I entered the two related issues as:
>
> https://bugs.adobe.com/jira/browse/SDK-21100
> https://bugs.adobe.com/jira/browse/SDK-21101
>
> Maybe someone at Adobe can manage to reproduce them.  I'm not really
sure
> how much harm is being done, since the code appears to work right in
the
> end.  But someone weird and unexpected seems to be going on under the
hood.
>
>
> On Tue, May 12, 2009 at 2:39 PM, Pan Troglodytes
chimpathe...@...wrote:
>
> > Thanks for giving me some confirmation.  Now if we could just figure
out
> > what Alex/Adobe need to do to replicate our tests.
> >
> > The reason it doesn't give a warning on "y" is due to what I
referenced
> > (perhaps unclearly) above.  Notice in the warning it tells you it
can't bind
> > to that value on the *itemRenderer *(GenericTest_inlineComponent1 in
my
> > test), not on the *TestObject* instance.  The itemRenderer has an x
and y
> > object, so that's why it doesn't complain.  It doesn't make any
sense that
> > it should be looking at binding to the itemRenderer instead of the
> > TestObject instance, though.
> >
> >
> > On Tue, May 12, 2009 at 12:24 PM, valdhor valdhorli...@...wrote:
> >
> >>
> >>
> >> Jason
> >>
> >> As a sanity check I tried it and I get the exact same error. I am
using
> >> Flex SDK 3.3.0 and Flash Player WIN 9,0,159,0 Debug.
> >>
> >> Strangely enough, changing b to y fixes it and the error goes away.
Other
> >> variable identifiers I have tried (Very small sample) gives the
error as
> >> well.
> >>
> >> It's got me beat.
> >>
> >> Why would the posted code give an error at all?
> >>
> >> Why would y work and everything else not?
> >>
> >>
> >> --- In flexcoders@yahoogroups.com ,
Pan
> >> Troglodytes chimpathetic@ wrote:
> >> >
> >> > I wonder if I wasn't clear enough on this - these are run-time
warnings
> >> that
> >> > output to the console. You don't get those?
> >> >
> >> >
> >> > On Mon, May 11, 2009 at 5:27 PM, Alex Harui aharui@ wrote:
> >> >
> >> > >
> >> > >
> >> > > I didn't get any warnings like you did so I couldn't
investigate
> >> further.
> >> > >
> >> > >
> >> > >
> >> > > Alex Harui
> >> > >
> >> > > Flex SDK Developer
> >> > >
> >> > > Adobe Systems Inc. 
> >> > >
> >> > > Blog: http://blogs.adobe.com/aharui
> >> > >
> >> > >
> >> > >
> >> > > *From:* flexcoders@yahoogroups.com
[mailto:
> >> flexcoders@yahoogroups.com ] *On
> >> > > Behalf Of *Pan Troglodytes
> >> > > *Sent:* Saturday, May 09, 2009 10:38 PM
> >> > > *To:* flexcoders@yahoogroups.com 
> >> > > *Subject:* Re: [flexcoders] using "as" breaks data binding?
> >> > >
> >> > >
> >> > >
> >> > >
> >> > >
> >> > >
> >> > > 3.3.0. I also get it with 4.0.0.6137. Just downloaded and got
it in
> >> > > 6772, too. I'm using player version 10,0,12,36. Do you need to
know
> >> > > anything about my Flex Builder version? Let me know anything
else I
> >> can
> >> > > provide.
> >> > >
> >> > > When you say you don't get it with the soon-to-be 3.4, what
exactly do
> >> you
> >> > > mean? You just don't get the run-time warning? Did you track
down why
> >> it
> >> > > would be okay with "x" and see if that's still doing whatever
weird
> >> thing it
> >> > > is in 3.4?
> >> > >
> >> > > On Sat, May 9, 2009 at 4:11 PM, Alex Harui aharui@ wrote:
> >> > >
> >> > >
> >> > >
> >> > > Which version of Flex? I don't get it on the latest builds that
will
> >> ship
> >> > > as 3.4
> >> > >
> >> > >
> >> > >
> >> > > Alex Harui
> >> > >
> >> > > Flex SDK Developer
> >> > >
> >> > > Adobe Systems Inc. 
> >>
> >> > >
> >> > > Blog: http://blogs.adobe.com/aharui
> >> > >
> >> > >
> >> > >
> >> > > *From:* flexcoders@yahoogroups.com
[mailto:
> >> flexcoders@yahoogroups.com ] *On
> >> > > Behalf Of *Pan Troglodytes
> >> > > *Sent:* Friday, May 08, 2009 11:06 PM
> >> > > *To:* flexcoders
> >> > > *Subject:* [flexcoders] using "as" breaks data binding?
> >> > >
> >> > >
> >> > >
> >> > >
> >> > >
> >> > > I've run across some peculiar behavior and I am trying to
figure out
> >> if I
> >> > > sh

Re: [flexcoders] Re: using "as" breaks data binding?

2009-05-12 Thread Pan Troglodytes
Well, I entered the two related issues as:

https://bugs.adobe.com/jira/browse/SDK-21100
https://bugs.adobe.com/jira/browse/SDK-21101

Maybe someone at Adobe can manage to reproduce them.  I'm not really sure
how much harm is being done, since the code appears to work right in the
end.  But someone weird and unexpected seems to be going on under the hood.


On Tue, May 12, 2009 at 2:39 PM, Pan Troglodytes wrote:

> Thanks for giving me some confirmation.  Now if we could just figure out
> what Alex/Adobe need to do to replicate our tests.
>
> The reason it doesn't give a warning on "y" is due to what I referenced
> (perhaps unclearly) above.  Notice in the warning it tells you it can't bind
> to that value on the *itemRenderer *(GenericTest_inlineComponent1 in my
> test), not on the *TestObject* instance.  The itemRenderer has an x and y
> object, so that's why it doesn't complain.  It doesn't make any sense that
> it should be looking at binding to the itemRenderer instead of the
> TestObject instance, though.
>
>
> On Tue, May 12, 2009 at 12:24 PM, valdhor wrote:
>
>>
>>
>> Jason
>>
>> As a sanity check I tried it and I get the exact same error. I am using
>> Flex SDK 3.3.0 and Flash Player WIN 9,0,159,0 Debug.
>>
>> Strangely enough, changing b to y fixes it and the error goes away. Other
>> variable identifiers I have tried (Very small sample) gives the error as
>> well.
>>
>> It's got me beat.
>>
>> Why would the posted code give an error at all?
>>
>> Why would y work and everything else not?
>>
>>
>> --- In flexcoders@yahoogroups.com , Pan
>> Troglodytes  wrote:
>> >
>> > I wonder if I wasn't clear enough on this - these are run-time warnings
>> that
>> > output to the console. You don't get those?
>> >
>> >
>> > On Mon, May 11, 2009 at 5:27 PM, Alex Harui  wrote:
>> >
>> > >
>> > >
>> > > I didn't get any warnings like you did so I couldn't investigate
>> further.
>> > >
>> > >
>> > >
>> > > Alex Harui
>> > >
>> > > Flex SDK Developer
>> > >
>> > > Adobe Systems Inc. 
>> > >
>> > > Blog: http://blogs.adobe.com/aharui
>> > >
>> > >
>> > >
>> > > *From:* flexcoders@yahoogroups.com [mailto:
>> flexcoders@yahoogroups.com ] *On
>> > > Behalf Of *Pan Troglodytes
>> > > *Sent:* Saturday, May 09, 2009 10:38 PM
>> > > *To:* flexcoders@yahoogroups.com 
>> > > *Subject:* Re: [flexcoders] using "as" breaks data binding?
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > > 3.3.0. I also get it with 4.0.0.6137. Just downloaded and got it in
>> > > 6772, too. I'm using player version 10,0,12,36. Do you need to know
>> > > anything about my Flex Builder version? Let me know anything else I
>> can
>> > > provide.
>> > >
>> > > When you say you don't get it with the soon-to-be 3.4, what exactly do
>> you
>> > > mean? You just don't get the run-time warning? Did you track down why
>> it
>> > > would be okay with "x" and see if that's still doing whatever weird
>> thing it
>> > > is in 3.4?
>> > >
>> > > On Sat, May 9, 2009 at 4:11 PM, Alex Harui  wrote:
>> > >
>> > >
>> > >
>> > > Which version of Flex? I don't get it on the latest builds that will
>> ship
>> > > as 3.4
>> > >
>> > >
>> > >
>> > > Alex Harui
>> > >
>> > > Flex SDK Developer
>> > >
>> > > Adobe Systems Inc. 
>>
>> > >
>> > > Blog: http://blogs.adobe.com/aharui
>> > >
>> > >
>> > >
>> > > *From:* flexcoders@yahoogroups.com [mailto:
>> flexcoders@yahoogroups.com ] *On
>> > > Behalf Of *Pan Troglodytes
>> > > *Sent:* Friday, May 08, 2009 11:06 PM
>> > > *To:* flexcoders
>> > > *Subject:* [flexcoders] using "as" breaks data binding?
>> > >
>> > >
>> > >
>> > >
>> > >
>> > > I've run across some peculiar behavior and I am trying to figure out
>> if I
>> > > should report it and if so, how exactly to explain it. Given these two
>> bits
>> > > of code:
>> > >
>> > > *TestObject.as:*
>> > > package
>> > > {
>> > > public class TestObject
>> > > {
>> > > [Bindable] public var a:uint = 2;
>> > > [Bindable] public var b:uint = 3;
>> > > [Bindable] public var x:uint = 1;
>> > > }
>> > > }
>> > >
>> > > *Main Application:*
>> > > 
>> > > > > > xmlns="http://www.adobe.com/2006/mxml";
>> > > >
>> > > 
>> > > > > > import mx.collections.ArrayCollection;
>> > > [Bindable] public var d:ArrayCollection = new ArrayCollection([
>> > > new TestObject,
>> > > new TestObject,
>> > > new TestObject
>> > > ]);
>> > > ]]>
>> > > 
>> > > 
>> > > 
>> > > 
>> > > 
>> > > 
>> > > 
>> > > 
>> > > 
>> > > 
>> > > 
>> > > 
>> > > 
>> > > 
>> > >
>> > > If you run this application, you get the following warnings:
>> > > warning: unable to bind to property 'b' on class
>> > > 'GenericTest_inlineComponent1'
>> > > warning: unable to bind to property 'b' on class
>> > > 'GenericTest_inlineComponent1'
>> > > warning: unable to bind to property 'b' on class
>> > > 'GenericTest_inlineComponent1'
>> > > warning: unable to bind to property 'b' on class
>> > > 'GenericTest_inlineComponent1'
>> > > warning: unable to bind to property 'b' on cl

[flexcoders] Flex Framework Cache Statistics

2009-05-12 Thread Nayan Savla
Hi All,

I am just wondering if there is some data on the percentage of Flash
players which would already have a the flex framework cache. Our
application without the cache is 456Kb and when i use framework
caching its 256Kb and the swz file is around 500kb.

In this scenario if the user doesn't already have the framework
cached, it won't make any sense to use framework caching. We don't
have a high percentage of returning users yet.

So if there is any data which gives an idea about the percentage of
Flash players out there with the Flex framework cache, it will be
really helpful.

Thank you
Nayan


Re: [flexcoders] loading status for DataGrid

2009-05-12 Thread Jeffrey Vroom
You can turn on paging, then listen for the "result" events on the
DataService.  They'll be dispatched once for each page result.
Jeff

On Tue, May 12, 2009 at 12:15 PM, Dharmendra Chauhan  wrote:

>
>
> Hi All,
> I have flex DataGrid which asynchronously receive data throw LCDS deployed
> on Jboss.Initially It loads around 2k to 3k rows
> I need to show loading status which would just keep showing Data Loading
> until data load is complete.
>
> DataService class does not have any event which would serve this purpose
>
> Does anybody have any idea on it ?
>
>  
>


[flexcoders] Re: AIR app crashes and burns on Mac

2009-05-12 Thread jason_williams_mm
Can you please log a bug with your test case attached at:

http://www.adobe.com/go/wish

Thanks,
jw


--- In flexcoders@yahoogroups.com, "jer_ela"  wrote:
>
> adl, the development runtime for AIR is crashing on me.  This seems to be 
> related to using SQL lite.  It had been crashing at one place in the code 
> intemittently, then was stable for a while.  Now it is crashing consistantly 
> at another place in the code.  Changing the sdk from 3.2 to 3.3 didn;t have 
> any effect.
> 
> Has anyone else had this problem and know of a cure? This has me dead in the 
> water.
> 
> Here is the top part of the dump info
> 
> Process: adl [211]
> Path:/Applications/Adobe Flex Builder 3 Plug-in/sdks/3.3/bin/adl
> Identifier:  adl
> Version: ??? (???)
> Code Type:   X86 (Native)
> Parent Process:  eclipse [189]
> 
> Date/Time:   2009-05-12 14:52:20.669 -0400
> OS Version:  Mac OS X 10.5.6 (9G55)
> Report Version:  6
> 
> Exception Type:  EXC_BAD_ACCESS (SIGBUS)
> Exception Codes: KERN_PROTECTION_FAILURE at 0x000c
> Crashed Thread:  0
>




[flexcoders] 2 Questions abot TextField in ActionScript

2009-05-12 Thread ACasualObserver
1- Is it possible to create a translucent TextField (or whatever class that can 
be added to a DisplayObjectContainer to display) ? How?

2- The same question about a text with halo?

Thanks



Re: [flexcoders] Re: using "as" breaks data binding?

2009-05-12 Thread Pan Troglodytes
Thanks for giving me some confirmation.  Now if we could just figure out
what Alex/Adobe need to do to replicate our tests.

The reason it doesn't give a warning on "y" is due to what I referenced
(perhaps unclearly) above.  Notice in the warning it tells you it can't bind
to that value on the *itemRenderer *(GenericTest_inlineComponent1 in my
test), not on the *TestObject* instance.  The itemRenderer has an x and y
object, so that's why it doesn't complain.  It doesn't make any sense that
it should be looking at binding to the itemRenderer instead of the
TestObject instance, though.

On Tue, May 12, 2009 at 12:24 PM, valdhor wrote:

>
>
> Jason
>
> As a sanity check I tried it and I get the exact same error. I am using
> Flex SDK 3.3.0 and Flash Player WIN 9,0,159,0 Debug.
>
> Strangely enough, changing b to y fixes it and the error goes away. Other
> variable identifiers I have tried (Very small sample) gives the error as
> well.
>
> It's got me beat.
>
> Why would the posted code give an error at all?
>
> Why would y work and everything else not?
>
>
> --- In flexcoders@yahoogroups.com , Pan
> Troglodytes  wrote:
> >
> > I wonder if I wasn't clear enough on this - these are run-time warnings
> that
> > output to the console. You don't get those?
> >
> >
> > On Mon, May 11, 2009 at 5:27 PM, Alex Harui  wrote:
> >
> > >
> > >
> > > I didn't get any warnings like you did so I couldn't investigate
> further.
> > >
> > >
> > >
> > > Alex Harui
> > >
> > > Flex SDK Developer
> > >
> > > Adobe Systems Inc. 
> > >
> > > Blog: http://blogs.adobe.com/aharui
> > >
> > >
> > >
> > > *From:* flexcoders@yahoogroups.com [mailto:
> flexcoders@yahoogroups.com ] *On
> > > Behalf Of *Pan Troglodytes
> > > *Sent:* Saturday, May 09, 2009 10:38 PM
> > > *To:* flexcoders@yahoogroups.com 
> > > *Subject:* Re: [flexcoders] using "as" breaks data binding?
> > >
> > >
> > >
> > >
> > >
> > >
> > > 3.3.0. I also get it with 4.0.0.6137. Just downloaded and got it in
> > > 6772, too. I'm using player version 10,0,12,36. Do you need to know
> > > anything about my Flex Builder version? Let me know anything else I can
> > > provide.
> > >
> > > When you say you don't get it with the soon-to-be 3.4, what exactly do
> you
> > > mean? You just don't get the run-time warning? Did you track down why
> it
> > > would be okay with "x" and see if that's still doing whatever weird
> thing it
> > > is in 3.4?
> > >
> > > On Sat, May 9, 2009 at 4:11 PM, Alex Harui  wrote:
> > >
> > >
> > >
> > > Which version of Flex? I don't get it on the latest builds that will
> ship
> > > as 3.4
> > >
> > >
> > >
> > > Alex Harui
> > >
> > > Flex SDK Developer
> > >
> > > Adobe Systems Inc. 
>
> > >
> > > Blog: http://blogs.adobe.com/aharui
> > >
> > >
> > >
> > > *From:* flexcoders@yahoogroups.com [mailto:
> flexcoders@yahoogroups.com ] *On
> > > Behalf Of *Pan Troglodytes
> > > *Sent:* Friday, May 08, 2009 11:06 PM
> > > *To:* flexcoders
> > > *Subject:* [flexcoders] using "as" breaks data binding?
> > >
> > >
> > >
> > >
> > >
> > > I've run across some peculiar behavior and I am trying to figure out if
> I
> > > should report it and if so, how exactly to explain it. Given these two
> bits
> > > of code:
> > >
> > > *TestObject.as:*
> > > package
> > > {
> > > public class TestObject
> > > {
> > > [Bindable] public var a:uint = 2;
> > > [Bindable] public var b:uint = 3;
> > > [Bindable] public var x:uint = 1;
> > > }
> > > }
> > >
> > > *Main Application:*
> > > 
> > >  > > xmlns="http://www.adobe.com/2006/mxml";
> > > >
> > > 
> > >  > > import mx.collections.ArrayCollection;
> > > [Bindable] public var d:ArrayCollection = new ArrayCollection([
> > > new TestObject,
> > > new TestObject,
> > > new TestObject
> > > ]);
> > > ]]>
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > >
> > > If you run this application, you get the following warnings:
> > > warning: unable to bind to property 'b' on class
> > > 'GenericTest_inlineComponent1'
> > > warning: unable to bind to property 'b' on class
> > > 'GenericTest_inlineComponent1'
> > > warning: unable to bind to property 'b' on class
> > > 'GenericTest_inlineComponent1'
> > > warning: unable to bind to property 'b' on class
> > > 'GenericTest_inlineComponent1'
> > > warning: unable to bind to property 'b' on class
> > > 'GenericTest_inlineComponent1'
> > > warning: unable to bind to property 'b' on class
> > > 'GenericTest_inlineComponent1'
> > >
> > > There's a couple of things that stand out here. First, it doesn't
> complain
> > > about properties "x" or "a". The reason it doesn't complain about
> property
> > > "a" is that I used "TestObject(data).a" instead of "(data as
> > > TestObject).a". If you change it to the other way around, you will get
> a
> > > warning on "a" as well. I find this rather bizarre, as I thought there
> was
> > > no functional difference to the two, other than "as" returnin

Re: [flexcoders] loading status for DataGrid

2009-05-12 Thread Adrian Williams

Hi,

   We just have a simple "Loading Data" clip the we setup in a 
swfLoader and we toggle the visibility on when we make our web service 
call to get our data, then after it's been returned, we toggle the 
visibility off.


-adrian

Dharmendra Chauhan wrote:



Hi All,
I have flex DataGrid which asynchronously receive data throw LCDS 
deployed on Jboss.Initially It loads around 2k to 3k rows
I need to show loading status which would just keep showing Data 
Loading until data load is complete.


DataService class does not have any event which would serve this purpose

Does anybody have any idea on it ?




[flexcoders] Re: Examples of side TabNavigator?

2009-05-12 Thread nathanpdaniel
Like this? http://merhl.com/?p=172

--- In flexcoders@yahoogroups.com, grimmwerks  wrote:
>
> Hey - has anyone any links / info on possibly making a side Tab  
> Navigator?   How best to override the createChildren?
> 
> Danke
>




[flexcoders] loading status for DataGrid

2009-05-12 Thread Dharmendra Chauhan
Hi All,
 I have flex DataGrid which asynchronously receive data throw LCDS deployed 
on Jboss.Initially It loads around 2k to 3k rows
I need to show loading status which would just keep showing Data Loading until 
data load is complete.

DataService class does not have any event which would serve this purpose 

Does anybody have any idea on it ?



 



[flexcoders] AIR app crashes and burns on Mac

2009-05-12 Thread jer_ela
adl, the development runtime for AIR is crashing on me.  This seems to be 
related to using SQL lite.  It had been crashing at one place in the code 
intemittently, then was stable for a while.  Now it is crashing consistantly at 
another place in the code.  Changing the sdk from 3.2 to 3.3 didn;t have any 
effect.

Has anyone else had this problem and know of a cure? This has me dead in the 
water.

Here is the top part of the dump info

Process: adl [211]
Path:/Applications/Adobe Flex Builder 3 Plug-in/sdks/3.3/bin/adl
Identifier:  adl
Version: ??? (???)
Code Type:   X86 (Native)
Parent Process:  eclipse [189]

Date/Time:   2009-05-12 14:52:20.669 -0400
OS Version:  Mac OS X 10.5.6 (9G55)
Report Version:  6

Exception Type:  EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x000c
Crashed Thread:  0




[flexcoders] Examples of side TabNavigator?

2009-05-12 Thread grimmwerks
Hey - has anyone any links / info on possibly making a side Tab  
Navigator?   How best to override the createChildren?

Danke


[flexcoders] Skin TextInput password character

2009-05-12 Thread JérémyR

Hi,

Is there any way to skin TextInput default character "*"?
Typically I want to replace it by bullets / icons /...
Or any third part component that handles it?

Thanks.
-- 
View this message in context: 
http://www.nabble.com/Skin-TextInput-password-character-tp23508043p23508043.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Debugging in Flex Builder crashes IE, Firefox, Safari...

2009-05-12 Thread Dave Kong
Hi,

Just about 2 weeks ago, I suddenly started getting a lot of crashes when trying 
to debug our app under Flex Builder (standalone). The crashes happen as soon as 
our app is loaded and it crashes IE7, FF3, Safari w/o any prior warning or 
exception.  The crash is only happens when I try to run debug, never release. 
But about 1 in 3 debug sessions succeed without crash (with no code change in 
between whatsoever)...

Thought it was caused by Flash 10 debug player, but installing v9 debug player 
didn't help.

Googling reveals that OutofMem crashes Flash 10 player w/o warning, but this 
doesn't seem to be a Mem issue for me.

Is anyone else experiencing this?

-dave



RE: [flexcoders] Re: using "as" breaks data binding?

2009-05-12 Thread Alex Harui
Yeah, I didn't get any console output

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

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of valdhor
Sent: Tuesday, May 12, 2009 10:24 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: using "as" breaks data binding?





Jason

As a sanity check I tried it and I get the exact same error. I am using Flex 
SDK 3.3.0 and Flash Player WIN 9,0,159,0 Debug.

Strangely enough, changing b to y fixes it and the error goes away. Other 
variable identifiers I have tried (Very small sample) gives the error as well.

It's got me beat.

Why would the posted code give an error at all?

Why would y work and everything else not?

--- In flexcoders@yahoogroups.com, Pan 
Troglodytes  wrote:
>
> I wonder if I wasn't clear enough on this - these are run-time warnings that
> output to the console. You don't get those?
>
>
> On Mon, May 11, 2009 at 5:27 PM, Alex Harui  wrote:
>
> >
> >
> > I didn't get any warnings like you did so I couldn't investigate further.
> >
> >
> >
> > Alex Harui
> >
> > Flex SDK Developer
> >
> > Adobe Systems Inc. 
> >
> > Blog: http://blogs.adobe.com/aharui
> >
> >
> >
> > *From:* flexcoders@yahoogroups.com 
> > [mailto:flexcoders@yahoogroups.com] *On
> > Behalf Of *Pan Troglodytes
> > *Sent:* Saturday, May 09, 2009 10:38 PM
> > *To:* flexcoders@yahoogroups.com
> > *Subject:* Re: [flexcoders] using "as" breaks data binding?
> >
> >
> >
> >
> >
> >
> > 3.3.0. I also get it with 4.0.0.6137. Just downloaded and got it in
> > 6772, too. I'm using player version 10,0,12,36. Do you need to know
> > anything about my Flex Builder version? Let me know anything else I can
> > provide.
> >
> > When you say you don't get it with the soon-to-be 3.4, what exactly do you
> > mean? You just don't get the run-time warning? Did you track down why it
> > would be okay with "x" and see if that's still doing whatever weird thing it
> > is in 3.4?
> >
> > On Sat, May 9, 2009 at 4:11 PM, Alex Harui  wrote:
> >
> >
> >
> > Which version of Flex? I don't get it on the latest builds that will ship
> > as 3.4
> >
> >
> >
> > Alex Harui
> >
> > Flex SDK Developer
> >
> > Adobe Systems Inc. 
> >
> > Blog: http://blogs.adobe.com/aharui
> >
> >
> >
> > *From:* flexcoders@yahoogroups.com 
> > [mailto:flexcoders@yahoogroups.com] *On
> > Behalf Of *Pan Troglodytes
> > *Sent:* Friday, May 08, 2009 11:06 PM
> > *To:* flexcoders
> > *Subject:* [flexcoders] using "as" breaks data binding?
> >
> >
> >
> >
> >
> > I've run across some peculiar behavior and I am trying to figure out if I
> > should report it and if so, how exactly to explain it. Given these two bits
> > of code:
> >
> > *TestObject.as:*
> > package
> > {
> > public class TestObject
> > {
> > [Bindable] public var a:uint = 2;
> > [Bindable] public var b:uint = 3;
> > [Bindable] public var x:uint = 1;
> > }
> > }
> >
> > *Main Application:*
> > 
> >  > xmlns="http://www.adobe.com/2006/mxml";
> > >
> > 
> >  > import mx.collections.ArrayCollection;
> > [Bindable] public var d:ArrayCollection = new ArrayCollection([
> > new TestObject,
> > new TestObject,
> > new TestObject
> > ]);
> > ]]>
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > If you run this application, you get the following warnings:
> > warning: unable to bind to property 'b' on class
> > 'GenericTest_inlineComponent1'
> > warning: unable to bind to property 'b' on class
> > 'GenericTest_inlineComponent1'
> > warning: unable to bind to property 'b' on class
> > 'GenericTest_inlineComponent1'
> > warning: unable to bind to property 'b' on class
> > 'GenericTest_inlineComponent1'
> > warning: unable to bind to property 'b' on class
> > 'GenericTest_inlineComponent1'
> > warning: unable to bind to property 'b' on class
> > 'GenericTest_inlineComponent1'
> >
> > There's a couple of things that stand out here. First, it doesn't complain
> > about properties "x" or "a". The reason it doesn't complain about property
> > "a" is that I used "TestObject(data).a" instead of "(data as
> > TestObject).a". If you change it to the other way around, you will get a
> > warning on "a" as well. I find this rather bizarre, as I thought there was
> > no functional difference to the two, other than "as" returning null if the
> > object wasn't of the appropriate type rather than just erroring out like
> > straight type coercion does. But type coercion/as are very (ahem) "lightly"
> > documented so I admit I don't know a lot. But I don't think it's because of
> > the null problem, since you can replace it with "TestObject(null).b" and it
> > stops giving the warning.
> >
> > The second w

[flexcoders] mx:image bottom="0" problems with vertical bar

2009-05-12 Thread fotis.chatzinikos
Hello all,

I am trying to align an image at the bottom of the screen.

My structure is the following:


   
   
   ...
   


When the the hbox is less than the screen hight (ie no scrollbars)
the image is correctly alligned at the bottom of the screen/application.

The problem appears when the hbox height becomes bigger than the screen and a 
vertical bar appears. When i scroll down the image stays where it was.

Is there a way to make the image bottom always 'touch' the bottom of the flex 
application?

TIA,
Fotis



[flexcoders] How do I set a focus property on a TextInput that is built using AddChild?

2009-05-12 Thread huu...@ymail.com
Does anyone have an idea how to resolve this issue that I posted on
StackOverflow?

http://stackoverflow.com/questions/853835/how-do-i-set-a-focus-property-\
on-a-textinput-that-is-built-using-addchild




[flexcoders] Re: using "as" breaks data binding?

2009-05-12 Thread valdhor
Jason

As a sanity check I tried it and I get the exact same error. I am using Flex 
SDK 3.3.0 and Flash Player WIN 9,0,159,0 Debug.

Strangely enough, changing b to y fixes it and the error goes away. Other 
variable identifiers I have tried (Very small sample) gives the error as well.

It's got me beat.

Why would the posted code give an error at all?

Why would y work and everything else not?


--- In flexcoders@yahoogroups.com, Pan Troglodytes  wrote:
>
> I wonder if I wasn't clear enough on this - these are run-time warnings that
> output to the console.  You don't get those?
> 
> 
> On Mon, May 11, 2009 at 5:27 PM, Alex Harui  wrote:
> 
> >
> >
> >  I didn't get any warnings like you did so I couldn't investigate further.
> >
> >
> >
> > Alex Harui
> >
> > Flex SDK Developer
> >
> > Adobe Systems Inc. 
> >
> > Blog: http://blogs.adobe.com/aharui
> >
> >
> >
> > *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> > Behalf Of *Pan Troglodytes
> > *Sent:* Saturday, May 09, 2009 10:38 PM
> > *To:* flexcoders@yahoogroups.com
> > *Subject:* Re: [flexcoders] using "as" breaks data binding?
> >
> >
> >
> >
> >
> >
> >  3.3.0.  I also get it with 4.0.0.6137.  Just downloaded and got it in
> > 6772, too.  I'm using player version 10,0,12,36.  Do you need to know
> > anything about my Flex Builder version?  Let me know anything else I can
> > provide.
> >
> > When you say you don't get it with the soon-to-be 3.4, what exactly do you
> > mean?  You just don't get the run-time warning?  Did you track down why it
> > would be okay with "x" and see if that's still doing whatever weird thing it
> > is in 3.4?
> >
> >  On Sat, May 9, 2009 at 4:11 PM, Alex Harui  wrote:
> >
> >
> >
> > Which version of Flex?  I don't get it on the latest builds that will ship
> > as 3.4
> >
> >
> >
> > Alex Harui
> >
> > Flex SDK Developer
> >
> > Adobe Systems Inc. 
> >
> > Blog: http://blogs.adobe.com/aharui
> >
> >
> >
> > *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> > Behalf Of *Pan Troglodytes
> > *Sent:* Friday, May 08, 2009 11:06 PM
> > *To:* flexcoders
> > *Subject:* [flexcoders] using "as" breaks data binding?
> >
> >
> >
> >
> >
> >  I've run across some peculiar behavior and I am trying to figure out if I
> > should report it and if so, how exactly to explain it.  Given these two bits
> > of code:
> >
> > *TestObject.as:*
> > package
> > {
> >   public class TestObject
> >   {
> > [Bindable] public var a:uint = 2;
> > [Bindable] public var b:uint = 3;
> > [Bindable] public var x:uint = 1;
> >   }
> > }
> >
> > *Main Application:*
> > 
> >  >   xmlns="http://www.adobe.com/2006/mxml";
> >   >
> >   
> >  >   import mx.collections.ArrayCollection;
> >   [Bindable] public var d:ArrayCollection = new ArrayCollection([
> > new TestObject,
> > new TestObject,
> > new TestObject
> >   ]);
> > ]]>
> >   
> >   
> > 
> >   
> > 
> >   
> >   
> >   
> > 
> >   
> > 
> >   
> >   
> > 
> >
> > If you run this application, you get the following warnings:
> > warning: unable to bind to property 'b' on class
> > 'GenericTest_inlineComponent1'
> > warning: unable to bind to property 'b' on class
> > 'GenericTest_inlineComponent1'
> > warning: unable to bind to property 'b' on class
> > 'GenericTest_inlineComponent1'
> > warning: unable to bind to property 'b' on class
> > 'GenericTest_inlineComponent1'
> > warning: unable to bind to property 'b' on class
> > 'GenericTest_inlineComponent1'
> > warning: unable to bind to property 'b' on class
> > 'GenericTest_inlineComponent1'
> >
> > There's a couple of things that stand out here.  First, it doesn't complain
> > about properties "x" or "a".  The reason it doesn't complain about property
> > "a" is that I used "TestObject(data).a" instead of "(data as
> > TestObject).a".  If you change it to the other way around, you will get a
> > warning on "a" as well.  I find this rather bizarre, as I thought there was
> > no functional difference to the two, other than "as" returning null if the
> > object wasn't of the appropriate type rather than just erroring out like
> > straight type coercion does.  But type coercion/as are very (ahem) "lightly"
> > documented so I admit I don't know a lot.  But I don't think it's because of
> > the null problem, since you can replace it with "TestObject(null).b" and it
> > stops giving the warning.
> >
> > The second weird thing is that it doesn't complain about "x" when using
> > "(data as TestObject).x" like it does with a.  As you can see, it's claiming
> > this error is on GenericTest_inlineComponent1.  This is significant
> > because it appears that it's instead doing some binding to the "x" property
> > on the item renderer, which is *very* odd.  You can try this yourself by
> > changing "x" to other strings.  Ones where there is a pro

[flexcoders] Buggy HorizontalList

2009-05-12 Thread nathanpdaniel
I'm using the HorizontalList (HList) component and I've run into an issue where 
when data is updated dynamically some items are not rendered.
I load data via an XML file which sets up in my app several XMLListCollection 
variables.  Users can select different menu options to determine which 
collection is used as the dataProvider for the HList.  These collections range 
in length from 3 - 50 items.  My HList only displays 5 at any given time (with 
a horizontal scroll bar).  
What will happen occassionally is when I go from a short list (3 items) to a 
larger list, items will not render.  
The new item at position HList.dataProvider[old list length - 1] (zero based 
index) will be missing.  Not as though I have invalid data so it renders wrong 
but, as though the data is not there at all.  It puts spacing in there to 
account for it but, it's the equivalent of setting an object's visible property 
to false but includeInLayout to true.  The other 4 in the first 5 will render 
properly.  I scroll the list to show more, HList.dataProvider[old list length + 
1] and HList.dataProvider[old list length + 2] will not render.  As I scroll 
away from the beginning of the list more and more of the 5 items to display 
won't render until it throws an error from all 5 not rendering.  However, if I 
go from a short list, of say 3 items, to a list of 4 items, then a list of 5 
items, the probably is avoided across all collections.  It will occur if I go 
from a list of length < 5 directly to a list of lenght > 5.  Also of note, if 
the list length < 10, I can avoid throwing errors, however, if it gets beyond 
that, it starts throwing them.
I am setting a filter on the HList.dataProvider saying if (of all products) the 
product matches one of the two that need to be ignored, filter them from the 
list.  So irregardless of which collection is the dataProvider, if product A or 
product B is in this list, filter it out.  I am also using an itemRenderer (a 
custom component to display an image).
Anyone have any ideas, it's been driving me nuts for a while now.  Sometimes it 
doesn't even happen at all and I've yet to be able to consistantly reproduce it 
with anything.  I'm sort of at a loss for what to do since, I don't really know 
what's causing the issue... ??



[flexcoders] FlowBox Nesting

2009-05-12 Thread Mike Oliver

I am trying to create a screen with a grid and a toolbar on top of it.

The problem is that the toolbar can have more user selectable controls in it
than will fit on small screens.

So I wanted to use the FlowBox and that works great but only if I allow for
the space between the Flowbox and the grid control under it.

I wanted the grid control to float under the toolbar and if the toolbar /
flowbox gets reduced in width to wrap a control down into a second row the
grid would slide down to accommodate.

So I thought a flowbox with a flowbox and the grid control in it but the
nested flowbox and grid won't fill the parent flow box with width="100%" 

I have tried TileList and VBox and have yet to find the combination that
will allow the grid to float under the FlowBox.
-- 
View this message in context: 
http://www.nabble.com/FlowBox-Nesting-tp23506408p23506408.html
Sent from the FlexCoders mailing list archive at Nabble.com.



flexcoders@yahoogroups.com

2009-05-12 Thread civilu007
Hello,

I'm trying to test a Flex application with Selenium using the set-up
described at
http://blackpepper.co.uk/black-pepper-blog/Flex-acceptance-testing-and-c\
ontinuous-integration.html . For those not inclined to read through that
post, I'm using flash-selenium and Selenium Flex API to enable the
automated testing of the Flex application with JUnit.

The problem I'm facing is dragging and dropping an element of a list to
another component in the application. I do that with doFlexDragTo, which
seems to be the correct way to do it, but I cannot get Selenium to
recognize the element of the list I want to drag.

My list has a custom item renderer, which is nothing more than the
classic Box holding an Image and a Label. What I do to make the element
recognizable is to set a property of the renderer (let's say name or
automationName) to the text of the label and then, in the JUnit test,
use name= as the identifier for my object. So, the call in
JUnit would be something along the lines of

flashApp.call("doFlexDragTo", "name=", );

And nothing. Calling  getFlexVisible for the same identifier returns
false, which seems to say that the id is correct, but the object is
somehow hidden.

So, does anyone have any pointers on how can "drag that element of the
list and drop it on this component over here" can be expressed?
Specifically the "drag that element of the list" part.

Any idea is much appreciated.

Thank you!



[flexcoders] Re: Debugger Issues

2009-05-12 Thread valdhor
First off, check that you have the debug version. Try...

http://kb2.adobe.com/cps/155/tn_15507.html

or

http://playerversion.com/

Let us know what it says.


--- In flexcoders@yahoogroups.com, "knottbrian"  wrote:
>
> I guys I'm new to Flex and getting my feet wet.  The issue I have at 
> the moment is that the debugger does not work.  I have installed the 
> debug versiojn of the flash player (10,0,22,87) but it will not 
> connect to Flex builder (3.0.2.214193).  Flex Builder returns a 
> message saying you need to complie your application with debuggin on 
> or you are not running the debug version of Flash player. 
> 
> As far as I know debugging is on.  Where doI start to findthis issue. 
> 
> 
> Brian Knott
>




Re: [flexcoders] combobox data provider update on remote object call

2009-05-12 Thread nitinvk04

hi Jeffry

I moved my javascript invoking code
to the event handler - and voila! That
worked like magic. It worked for all the 
tests I did. 

Thanks a million for your idea.
I was frustrated with this problem to
my wit's end. 
Hopefully it should keep working forever and
not sometimes.

Nitin



Jeffry Houser wrote:
> 
> 
>  I can't say for certain, but it sounds to me like, sometimes, your 
> creationComplete handler is firing before the RemoteObject returns data, 
> thus firing the result handler.  Unless you have control over the 
> Internet, I don't think there is any way to guarantee that your 
> asynchronous code (AKA The result handler) will be finished before your 
> synchronous code (creationCompete) is executed.
> 
>  You should handle your JavaScript stuff int he result handler of your 
> RemoteObject, not in creationComplete.
> 
> Nitin Kanaskar wrote:
>> hi All
>>
>> I am working on combo box data provider
>> getting updated after call to a remote object which
>> returns an array.  I am trying to update the data provider
>> in a event handler for remote object. The problem is it sometimes gets
>> updated and sometimes not - I read that remote object events
>> are asynchronously handled. I am not exactly clear how -
>> if at all - it affects my scenario.
>>
>> Here is my application init tag -
>> http://www.adobe.com/2006/mxml";
>> layout="absolute" preinitialize="getCPData()" height="90%" width="70%"
>> backgroundColor="#FF" creationComplete="initApp();">
>>
>> My combo box is defined like -
>>
>> > labelField="name" change="onCpChange()" prompt="--Select--"/>
>>
>> In getCPData() method during app preinitialization, I am creating
>> remote object to
>> get data from server side java component. For this remote object,
>> an event handler - cpEventHandler - is invoked.
>> cpEventHandler is updating data provider of the combo box -
>>
>> cpCollection = event.result as ArrayCollection;
>>
>> There are 2 scenarios - 1.in one, i dont need
>> to select any option in the combo box, so prompt="--Select--"
>> gives me 'Select' value default. 2. in 2nd, i need to set combo box
>> to some selected index.
>>
>> In initApp method, which is called on app creationComplete, I am invoking
>> a javascript component which passes few parameters back to a flex method,
>> which tries to access data provider of the combo box. I suppose the combo
>> box data provider should have been set by the time initApp is called as
>> it is
>> done in getCPData which is called on app preinitialize. But it happens
>> sometimes,
>> sometimes not which is frustrating.
>>
>> Can somebody throw light on this.
>>
>> Regards,
>> Nitin
>>
>>
>> 
>>
>> --
>> Flexcoders Mailing List
>> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>> Alternative FAQ location:
>> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
>> Search Archives:
>> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
>> Links
>>
>>
>>
>>
>>   
> 
> -- 
> Jeffry Houser, Technical Entrepreneur
> Adobe Community Expert: http://tinyurl.com/684b5h
> http://www.twitter.com/reboog711  | Phone: 203-379-0773
> --
> Easy to use Interface Components for Flex Developers
> http://www.flextras.com?c=104
> --
> http://www.theflexshow.com
> http://www.jeffryhouser.com
> --
> Part of the DotComIt Brain Trust
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/combobox-data-provider-update-on-remote-object-call-tp23500126p23505709.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Text Layout Framework with Flex 3.3 and Embeded Fonts

2009-05-12 Thread Daniel Freiman
Apparently you can compile DefineFont4 font in Flex 4 and then import that
swf into Flex 3.2+.

But thanks for passing on the question.

- Daniel Freiman

On Tue, May 12, 2009 at 2:22 AM, Gordon Smith  wrote:

>
>
>  Pete, has the 3.x compiler been revved, or will it be, to support
> embedding fonts as DefineFont4 tags for use with FTE and TLF? Or is this
> something only Flex 4 will support?
>
>
>
> - Gordon
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Daniel Freiman
> *Sent:* Thursday, May 07, 2009 9:04 AM
> *To:* flexcoders
> *Subject:* [flexcoders] Text Layout Framework with Flex 3.3 and Embeded
> Fonts
>
>
>
>
>
>
>  From what I read, you can use the Text Layout Framework with Flex 3.3.
> The Text Layout Framework also supports embeded fonts.
>
> But I can't figure out if/how it can use embeded fonts with the Text Layout
> Framework within Flex 3.3.  Anyone know if this is possible?
>
> - Daniel Freiman
>
>   
>


[flexcoders] removing some labels on chart axis

2009-05-12 Thread thomas parquier
Hi,

How to prevent selectively some labels from rendering ?

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


[flexcoders] Getting an error when using a tree as a component

2009-05-12 Thread timgerr
Hello all, 
I was wondering if this error makes sense?  I have this tree that I made into a 
component.  When I run the script, I see the tree but when I try and click on 
one of the folders I get this error "The supplied DisplayObject must be a child 
of the caller."  Anyone know what this means


Thanks,
timgerr



Re: [flexcoders] using "as" breaks data binding?

2009-05-12 Thread Pan Troglodytes
I wonder if I wasn't clear enough on this - these are run-time warnings that
output to the console.  You don't get those?


On Mon, May 11, 2009 at 5:27 PM, Alex Harui  wrote:

>
>
>  I didn’t get any warnings like you did so I couldn’t investigate further.
>
>
>
> Alex Harui
>
> Flex SDK Developer
>
> Adobe Systems Inc. 
>
> Blog: http://blogs.adobe.com/aharui
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Pan Troglodytes
> *Sent:* Saturday, May 09, 2009 10:38 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] using "as" breaks data binding?
>
>
>
>
>
>
>  3.3.0.  I also get it with 4.0.0.6137.  Just downloaded and got it in
> 6772, too.  I'm using player version 10,0,12,36.  Do you need to know
> anything about my Flex Builder version?  Let me know anything else I can
> provide.
>
> When you say you don't get it with the soon-to-be 3.4, what exactly do you
> mean?  You just don't get the run-time warning?  Did you track down why it
> would be okay with "x" and see if that's still doing whatever weird thing it
> is in 3.4?
>
>  On Sat, May 9, 2009 at 4:11 PM, Alex Harui  wrote:
>
>
>
> Which version of Flex?  I don’t get it on the latest builds that will ship
> as 3.4
>
>
>
> Alex Harui
>
> Flex SDK Developer
>
> Adobe Systems Inc. 
>
> Blog: http://blogs.adobe.com/aharui
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Pan Troglodytes
> *Sent:* Friday, May 08, 2009 11:06 PM
> *To:* flexcoders
> *Subject:* [flexcoders] using "as" breaks data binding?
>
>
>
>
>
>  I've run across some peculiar behavior and I am trying to figure out if I
> should report it and if so, how exactly to explain it.  Given these two bits
> of code:
>
> *TestObject.as:*
> package
> {
>   public class TestObject
>   {
> [Bindable] public var a:uint = 2;
> [Bindable] public var b:uint = 3;
> [Bindable] public var x:uint = 1;
>   }
> }
>
> *Main Application:*
> 
>xmlns="http://www.adobe.com/2006/mxml";
>   >
>   
>    import mx.collections.ArrayCollection;
>   [Bindable] public var d:ArrayCollection = new ArrayCollection([
> new TestObject,
> new TestObject,
> new TestObject
>   ]);
> ]]>
>   
>   
> 
>   
> 
>   
>   
>   
> 
>   
> 
>   
>   
> 
>
> If you run this application, you get the following warnings:
> warning: unable to bind to property 'b' on class
> 'GenericTest_inlineComponent1'
> warning: unable to bind to property 'b' on class
> 'GenericTest_inlineComponent1'
> warning: unable to bind to property 'b' on class
> 'GenericTest_inlineComponent1'
> warning: unable to bind to property 'b' on class
> 'GenericTest_inlineComponent1'
> warning: unable to bind to property 'b' on class
> 'GenericTest_inlineComponent1'
> warning: unable to bind to property 'b' on class
> 'GenericTest_inlineComponent1'
>
> There's a couple of things that stand out here.  First, it doesn't complain
> about properties "x" or "a".  The reason it doesn't complain about property
> "a" is that I used "TestObject(data).a" instead of "(data as
> TestObject).a".  If you change it to the other way around, you will get a
> warning on "a" as well.  I find this rather bizarre, as I thought there was
> no functional difference to the two, other than "as" returning null if the
> object wasn't of the appropriate type rather than just erroring out like
> straight type coercion does.  But type coercion/as are very (ahem) "lightly"
> documented so I admit I don't know a lot.  But I don't think it's because of
> the null problem, since you can replace it with "TestObject(null).b" and it
> stops giving the warning.
>
> The second weird thing is that it doesn't complain about "x" when using
> "(data as TestObject).x" like it does with a.  As you can see, it's claiming
> this error is on GenericTest_inlineComponent1.  This is significant
> because it appears that it's instead doing some binding to the "x" property
> on the item renderer, which is *very* odd.  You can try this yourself by
> changing "x" to other strings.  Ones where there is a property of HBox named
> the same thing won't give you a warning.  Others will.
>
> Yet for all this griping, it seems the data binding IS working.  If you
> click on the button, you'll see all the labels in the list change as the
> data is being changed.
>
> So, anyone want to shed some light on these two behaviors?
>
> --
> Jason
>
>
>
>
> --
> Jason
>
>   
>



-- 
Jason


RE: [flexcoders] Tracy's search tree solution question ...

2009-05-12 Thread Tracy Spratt
Perhaps you should set the selectedItems array instead.

treeSlsHrchy.selectedItems.push( xmllistDescendants[i]);

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Mic
Sent: Monday, May 11, 2009 10:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Tracy's search tree solution question ...

 






http://www.cflex. 
net/showFileDetails.cfm?ObjectID=554

I got the example to work perfectly, but in my code where the xml is more
complex, it only selects/highlights the last match. allowMultipleSelection =
"true" but when I step through I can see that the array tree.selectedItems
only holds the last

treeSlsHrchy.selectedItem = xmllistDescendants[i];

which overwrites the previous entry i.e. the array is always a single row.
In the example debug I can see the selectedItem array build up line by line
as the loop loops. So I went back to the example and altered the xml from




to




and the example now only highlights/selects the last match i.e. the
selectedItems array refuses to hold more than a single row. Why does the
extra xml do this? Inquiring minds etc :-) TIA,

Mic.





[flexcoders] Re: Custom component itemRenderer

2009-05-12 Thread Tim Hoff

Yes, you can definetely set properties on an itemRenderer if it is
created using ClassFactory.  Perhaps a little better than binding the
itemRenderer to a model, but it would certainly be debated.

-TH

--- In flexcoders@yahoogroups.com, Jeffry Houser  wrote:
>
>
> I didn't know that, definitely gonna have to check that out.
>
> Tracy Spratt wrote:
> >
> > Ah, from one of alex's posts: "If you look at ClassFactory, it has a
> > properties map that will copy any properties in the map to each
> > instance. "
> --
> Jeffry Houser, Technical Entrepreneur
> Adobe Community Expert: http://tinyurl.com/684b5h
> http://www.twitter.com/reboog711 | Phone: 203-379-0773
> --
> Easy to use Interface Components for Flex Developers
> http://www.flextras.com?c=104
> --
> http://www.theflexshow.com
> http://www.jeffryhouser.com
> --
> Part of the DotComIt Brain Trust
>





Re: [flexcoders] passing data to itemrenderer children

2009-05-12 Thread Jeffry Houser

 Because the data didn't change? 

sinstone_flickr wrote:
> hey guys and gals,
>
> i'm using a list with an itemRenderer to show a list of activities in our 
> LMS. the list has its dataProvider set to use XML retrieved from the backend:
>
>  dataProvider="{this.learningDesignXML.Activity}" />
>
> inside the declaration of the ActivityListItemRenderer, there is this:
>
> http://www.adobe.com/2006/mxml";
>   width="100%" height="100%" paddingBottom="0" paddingTop="0" 
> paddingLeft="0" paddingRight="0"
>   itemRenderer="{new ArgumentsToRendererFactory({}, 
> ActivityItemRenderer)}"
>   variableRowHeight="true" useRollOver="false"  horizontalCenter="0" 
> verticalAlign="middle" selectable="false">
>
> now... you can see that the itemRenderer is specified here. this itemRenderer 
> has three important children who have the data passed to them through 
> binding. looks like this:
>
> 
>data="{data} "/>
>data="{data}" />
>id="branchingActivityState" data="{data}" />
>   
>
> for some reason, when data changes in the list, the dataChange event is 
> caught in the itemRenderer itself. however, its children who have this same 
> data bound to them, don't catch the dataChange event when it is changed.
>
> why? any ideas?
>
> thanks!
>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
>
>   

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




Re: [flexcoders] combobox data provider update on remote object call

2009-05-12 Thread Jeffry Houser

 I can't say for certain, but it sounds to me like, sometimes, your 
creationComplete handler is firing before the RemoteObject returns data, 
thus firing the result handler.  Unless you have control over the 
Internet, I don't think there is any way to guarantee that your 
asynchronous code (AKA The result handler) will be finished before your 
synchronous code (creationCompete) is executed.

 You should handle your JavaScript stuff int he result handler of your 
RemoteObject, not in creationComplete.

Nitin Kanaskar wrote:
> hi All
>
> I am working on combo box data provider
> getting updated after call to a remote object which
> returns an array.  I am trying to update the data provider
> in a event handler for remote object. The problem is it sometimes gets
> updated and sometimes not - I read that remote object events
> are asynchronously handled. I am not exactly clear how -
> if at all - it affects my scenario.
>
> Here is my application init tag -
> http://www.adobe.com/2006/mxml";
> layout="absolute" preinitialize="getCPData()" height="90%" width="70%"
> backgroundColor="#FF" creationComplete="initApp();">
>
> My combo box is defined like -
>
>  labelField="name" change="onCpChange()" prompt="--Select--"/>
>
> In getCPData() method during app preinitialization, I am creating
> remote object to
> get data from server side java component. For this remote object,
> an event handler - cpEventHandler - is invoked.
> cpEventHandler is updating data provider of the combo box -
>
> cpCollection = event.result as ArrayCollection;
>
> There are 2 scenarios - 1.in one, i dont need
> to select any option in the combo box, so prompt="--Select--"
> gives me 'Select' value default. 2. in 2nd, i need to set combo box
> to some selected index.
>
> In initApp method, which is called on app creationComplete, I am invoking
> a javascript component which passes few parameters back to a flex method,
> which tries to access data provider of the combo box. I suppose the combo
> box data provider should have been set by the time initApp is called as it is
> done in getCPData which is called on app preinitialize. But it happens
> sometimes,
> sometimes not which is frustrating.
>
> Can somebody throw light on this.
>
> Regards,
> Nitin
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
>
>   

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




[flexcoders] combobox data provider update on remote object call

2009-05-12 Thread nitink_77

hi All

I am working on combo box data provider
getting updated after call to a remote object which
returns an array.  I am trying to update the data provider
in a event handler for remote object. The problem is it sometimes gets
updated and sometimes not - I read that remote object events
are asynchronously handled. I am not exactly clear how -
if at all - it affects my scenario.

Here is my application init tag -
http://www.adobe.com/2006/mxml"; layout="absolute" 
preinitialize="getCPData()" height="90%" width="70%" backgroundColor="#FF" 
creationComplete="initApp();">

My combo box is defined like -



In getCPData() method during app preinitialization, I am creating remote object 
to
get data from server side java component. For this remote object,
an event handler - cpEventHandler - is invoked.
cpEventHandler is updating data provider of the combo box -

cpCollection = event.result as ArrayCollection;

There are 2 scenarios - 1.in one, i dont need
to select any option in the combo box, so prompt="--Select--"
gives me 'Select' value default. 2. in 2nd, i need to set combo box
to some selected index.

In initApp method, which is called on app creationComplete, I am invoking
a javascript component which passes few parameters back to a flex method,
which tries to access data provider of the combo box. I suppose the combo
box data provider should have been set by the time initApp is called as it is
done in getCPData which is called on app preinitialize. But it happens 
sometimes,
sometimes not which is frustrating.

Can somebody throw light on this.

Regards,
Nitin









[flexcoders] passing data to itemrenderer children

2009-05-12 Thread sinstone_flickr
hey guys and gals,

i'm using a list with an itemRenderer to show a list of activities in our LMS. 
the list has its dataProvider set to use XML retrieved from the backend:



inside the declaration of the ActivityListItemRenderer, there is this:

http://www.adobe.com/2006/mxml";
width="100%" height="100%" paddingBottom="0" paddingTop="0" 
paddingLeft="0" paddingRight="0"
itemRenderer="{new ArgumentsToRendererFactory({}, 
ActivityItemRenderer)}"
variableRowHeight="true" useRollOver="false"  horizontalCenter="0" 
verticalAlign="middle" selectable="false">

now... you can see that the itemRenderer is specified here. this itemRenderer 
has three important children who have the data passed to them through binding. 
looks like this:







for some reason, when data changes in the list, the dataChange event is caught 
in the itemRenderer itself. however, its children who have this same data bound 
to them, don't catch the dataChange event when it is changed.

why? any ideas?

thanks!




[flexcoders] combobox data provider update on remote object call

2009-05-12 Thread Nitin Kanaskar
hi All

I am working on combo box data provider
getting updated after call to a remote object which
returns an array.  I am trying to update the data provider
in a event handler for remote object. The problem is it sometimes gets
updated and sometimes not - I read that remote object events
are asynchronously handled. I am not exactly clear how -
if at all - it affects my scenario.

Here is my application init tag -
http://www.adobe.com/2006/mxml";
layout="absolute" preinitialize="getCPData()" height="90%" width="70%"
backgroundColor="#FF" creationComplete="initApp();">

My combo box is defined like -



In getCPData() method during app preinitialization, I am creating
remote object to
get data from server side java component. For this remote object,
an event handler - cpEventHandler - is invoked.
cpEventHandler is updating data provider of the combo box -

cpCollection = event.result as ArrayCollection;

There are 2 scenarios - 1.in one, i dont need
to select any option in the combo box, so prompt="--Select--"
gives me 'Select' value default. 2. in 2nd, i need to set combo box
to some selected index.

In initApp method, which is called on app creationComplete, I am invoking
a javascript component which passes few parameters back to a flex method,
which tries to access data provider of the combo box. I suppose the combo
box data provider should have been set by the time initApp is called as it is
done in getCPData which is called on app preinitialize. But it happens
sometimes,
sometimes not which is frustrating.

Can somebody throw light on this.

Regards,
Nitin


[flexcoders] Debugger Issues

2009-05-12 Thread knottbrian
I guys I'm new to Flex and getting my feet wet.  The issue I have at 
the moment is that the debugger does not work.  I have installed the 
debug versiojn of the flash player (10,0,22,87) but it will not 
connect to Flex builder (3.0.2.214193).  Flex Builder returns a 
message saying you need to complie your application with debuggin on 
or you are not running the debug version of Flash player. 

As far as I know debugging is on.  Where doI start to findthis issue. 


Brian Knott 





[flexcoders] Re: Dynamicaly shrink & expand flex application

2009-05-12 Thread yossi.baram
I think the problem is that the AdvancedDataGrid set its columns width to 100px 
by default.
I add my columns dynamically using AdvancedDataGridColumn,
Can I sett some columns to be percentage width and some not?

Thanks 

--- In flexcoders@yahoogroups.com, "yossi.baram"  wrote:
>
> Thanks for the reply man,
> I'm missing something here,
> I created my Tree as a tag:
> 
> <%@ tag import="com.mercury.topaz.webinfra.WebInfraApplicationFactory" %>
> <%@ tag import="com.mercury.topaz.webinfra.WebInfraApplication" %>
> <%@ tag description="Display Flex Treetable" pageEncoding="UTF-8" %>
> <%@ taglib prefix="c" uri="/tags/jstl-core" %>
> <%@ taglib prefix="fn" uri="/functions/jstl" %>
> <%@ taglib prefix="utils" tagdir="/WEB-INF/tags/act/utils" %>
> <%@ taglib prefix="actfn" uri="/functions/act" %>
> <%@ attribute name="treeTableId" type="java.lang.String" required="true" 
> description="The id of the Treetable." %>
> <%@ attribute name="width" type="java.lang.Integer" required="true" 
> description="The TreeTable width." %>
> <%@ attribute name="height" type="java.lang.Integer" required="true" 
> description="The TreeTable height." %>
> <%@ attribute name="treeTableServiceId" type="java.lang.String" 
> required="true" description="The service function name." %>
> 
>   
> 
> 
>   
> 
> 
> 
>   
> 
> <%
> WebInfraApplication webConf = WebInfraApplicationFactory.getInstance();
> %>
> 
> baseUrl =  "<%=webConf.getBase(request)%>";
> AC_FL_RunContent(
> "src", baseUrl + "/Charts/TreeTableRenderer",
> "flashVars", 
> "treeTableServiceId=${treeTableServiceId}&reportStateId=${rfw_state_id}&presentationModelName=${renderRequest.presentationModel.name}&userUniqueKey=${userUniqueKey}&baseURL="
>  + baseUrl,
> "width", "${width}",
> "height", "${height}",
> "align", "middle",
> "id", "${treeTableId}",
> "quality", "high",
> "name", "Flex TreeTable",
> "allowScriptAccess","sameDomain"
> );
> 
> 
> 
> The jsp that wrapps it:
> 
> <%@ taglib prefix="flex" tagdir="/WEB-INF/tags/act/flex" %>
> <%@ taglib prefix="c" uri="/tags/jstl-core" %>
> 
> 
> <%@ page import="com.mercury.topaz.webinfra.WebInfraApplicationFactory" %>
> <%@ page import="com.mercury.topaz.webinfra.WebInfraApplication" %>
> <%
> WebInfraApplication webConf = 
> WebInfraApplicationFactory.getInstance();
> String baseURL = webConf.getBase(request);
> %>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>treeTableId = "${treeTableId}"
>   width = "${treeTableWidth}"
>   height = "${treeTableHeight}"
>   treeTableServiceId = "${treeTableServiceId}"
> />
> 
> 
> 
> 
> 
> 
> As you can see the width & height is sent to the flex engin as attributs in 
> pixels :((
> 
> If I drop the width & height, the swf doesnt generated.
> 
> In my flex AdvancedDataGrid i set the width & height to 100%
> 
> Where should I set the percentage???
> 
> Thanks man
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
> >
> > Yes, you can set the height and width to percentages and the DataGrid will
> > expand and shrink with its container.
> > 
> >  
> > 
> > Changing  the swf size in the html wrapper will take some javascript.
> > 
> >  
> > 
> > Tracy Spratt,
> > 
> > Lariat Services, development services available
> > 
> >   _  
> > 
> > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> > Behalf Of yossi.baram
> > Sent: Monday, May 11, 2009 4:19 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Dynamicaly shrink & expand flex application
> > 
> >  
> > 
> > 
> > 
> > 
> > 
> > 
> > Hi helper,
> > 
> > Can I set my DataGrid to dynamicaly shrink & expand as the browser changes
> > its width?
> > The flex engine expect width & height in pixels when building the swf and
> > not in %,
> > thats what makes the swf static size,
> > Can I make the swf to be of percentage size in the page?
> > 
> > Thanks
> > 
> > Jo
> >
>




RE: [flexcoders] Dictionary class?

2009-05-12 Thread Kenneth Sutherland
I've used it in the past to get all the unique values from an array or
array collection. See
http://kennethsutherland.com/2009/04/02/find-all-unique-values-from-arra
y-or-collection/

 

Kenneth.

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of luvfotography
Sent: 11 May 2009 17:11
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dictionary class?

 






What are some good uses for the dictionary class?

I haven't used it yet, but I'm sure if I knew more, I might. . . .



Disclaimer 
---
This electronic message contains information which may be privileged and 
confidential. The information is intended to be for the use of the 
individual(s) or entity named above. If you are not the intended recipient, be 
aware that any disclosure, copying, distribution or use of the contents of this 
information is prohibited. If you have received this electronic message in 
error, please notify us by telephone on 0131 476 6000 and delete the material 
from your computer. 
Registered in Scotland number: SC 172507. 
Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. 

This email message has been scanned for viruses by Mimecast.
---

[flexcoders] Re: Dynamicaly shrink & expand flex application

2009-05-12 Thread yossi.baram
Thanks for the reply man,
I'm missing something here,
I created my Tree as a tag:

<%@ tag import="com.mercury.topaz.webinfra.WebInfraApplicationFactory" %>
<%@ tag import="com.mercury.topaz.webinfra.WebInfraApplication" %>
<%@ tag description="Display Flex Treetable" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="/tags/jstl-core" %>
<%@ taglib prefix="fn" uri="/functions/jstl" %>
<%@ taglib prefix="utils" tagdir="/WEB-INF/tags/act/utils" %>
<%@ taglib prefix="actfn" uri="/functions/act" %>
<%@ attribute name="treeTableId" type="java.lang.String" required="true" 
description="The id of the Treetable." %>
<%@ attribute name="width" type="java.lang.Integer" required="true" 
description="The TreeTable width." %>
<%@ attribute name="height" type="java.lang.Integer" required="true" 
description="The TreeTable height." %>
<%@ attribute name="treeTableServiceId" type="java.lang.String" required="true" 
description="The service function name." %>

  


  



  

<%
WebInfraApplication webConf = WebInfraApplicationFactory.getInstance();
%>

baseUrl =  "<%=webConf.getBase(request)%>";
AC_FL_RunContent(
"src", baseUrl + "/Charts/TreeTableRenderer",
"flashVars", 
"treeTableServiceId=${treeTableServiceId}&reportStateId=${rfw_state_id}&presentationModelName=${renderRequest.presentationModel.name}&userUniqueKey=${userUniqueKey}&baseURL="
 + baseUrl,
"width", "${width}",
"height", "${height}",
"align", "middle",
"id", "${treeTableId}",
"quality", "high",
"name", "Flex TreeTable",
"allowScriptAccess","sameDomain"
);



The jsp that wrapps it:

<%@ taglib prefix="flex" tagdir="/WEB-INF/tags/act/flex" %>
<%@ taglib prefix="c" uri="/tags/jstl-core" %>


<%@ page import="com.mercury.topaz.webinfra.WebInfraApplicationFactory" %>
<%@ page import="com.mercury.topaz.webinfra.WebInfraApplication" %>
<%
WebInfraApplication webConf = WebInfraApplicationFactory.getInstance();
String baseURL = webConf.getBase(request);
%>

















As you can see the width & height is sent to the flex engin as attributs in 
pixels :((

If I drop the width & height, the swf doesnt generated.

In my flex AdvancedDataGrid i set the width & height to 100%

Where should I set the percentage???

Thanks man



--- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
>
> Yes, you can set the height and width to percentages and the DataGrid will
> expand and shrink with its container.
> 
>  
> 
> Changing  the swf size in the html wrapper will take some javascript.
> 
>  
> 
> Tracy Spratt,
> 
> Lariat Services, development services available
> 
>   _  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of yossi.baram
> Sent: Monday, May 11, 2009 4:19 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Dynamicaly shrink & expand flex application
> 
>  
> 
> 
> 
> 
> 
> 
> Hi helper,
> 
> Can I set my DataGrid to dynamicaly shrink & expand as the browser changes
> its width?
> The flex engine expect width & height in pixels when building the swf and
> not in %,
> thats what makes the swf static size,
> Can I make the swf to be of percentage size in the page?
> 
> Thanks
> 
> Jo
>