RE: [flexcoders] DataGridColumn backgroundColor bug?

2009-05-19 Thread Alex Harui
Search the bug base.  I think there's already an bug on that

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 Ben Reynolds
Sent: Tuesday, May 19, 2009 9:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataGridColumn backgroundColor bug?





Hi guys,

  This seems like an awfully simple thing for nobody to have picked up before, 
so hopefully someone can point me in the right direction as to what I'm doing 
wrong. I have gone way heaps hardcore and simplified the issue to the following 
using SDK3.2:







With either showHeaders="false" or headerHeight="0" the code is generating the 
following error found in DataGrid's drawColumnBackground function:

TypeError: Error #1010: A term is undefined and has no properties.
at 
mx.controls::DataGrid/drawColumnBackground()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:3012]
at 
mx.controls::DataGrid/drawLinesAndColumnGraphics()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:3311]
at 
mx.controls::DataGrid/drawLinesAndColumnBackgrounds()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:3207]
at 
mx.controls::DataGrid/updateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\DataGrid.as:1506]
at 
mx.controls.listClasses::ListBase/validateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as:3280]
at 
mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\3.2.0\framewor! 
ks\projects\framework\src\mx\managers\Layo! utManage r.as:622]
at 
mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:677]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at 
mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8628]
at 
mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8568]

Line 3012 is:

var xx:Number = columnHeader.rendererArray[columnIndex].x

There appears to be no rendererArray. Can someone shed some light on this? Is 
it something fixed in 3.3 (which is something I'm unable to test at this ! 
point)?

MrB



[flexcoders] Gradient Color in Bar Chart

2009-05-19 Thread ak
Hi,


How can i fill the gradient color in the bar chart using the css.

aK


  Share files, take polls, and make new friends - all under one roof. Go to 
http://in.promos.yahoo.com/groups/

Re: [flexcoders] New Flex 3 Component/Application Lifecycle White-paper

2009-05-19 Thread Josh McDonald
Will check it out, cheers.

-Josh

2009/5/20 jamesdevelopmentarc 

>
>
> Hi All,
> We just published a 36 page in-depth analysis of the Flex 3 Lifecycle for
> both component and application development. We discuss in detail how and
> what code is executed in the Flex SDK and how you can use this to create
> better and more performant applications in Flex and AIR.
>
> Download the free PDF here:
> http://www.developmentarc.com/site/articles/
>
>  
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


Re: [flexcoders] Re: BlazeDS RemoteObject Performance

2009-05-19 Thread Josh McDonald
You should be able to exhaust your tomcat thread pool using BlazeDS,
something else is going wrong.

-Josh

2009/5/20 Aldo Bucchi 

>
>
> foobone9,
>
> Are you saying that this is a known built-in limitation of BlazeDS?
>
> Thanks,
> A
>
>
> On Tue, May 19, 2009 at 6:58 PM, foobone9 
> >
> wrote:
> >
> >
> > I think you need to invest in Live Cycle Data Servies.
> >
> > --- In flexcoders@yahoogroups.com , Aldo
> Bucchi  wrote:
> >>
> >> ( I copy this email from an internal communication I received )
> >>
> >> 
> >>
> >> Hello,
> >>
> >> I've found a serious performance problem on an application written on
> >> Flex/AIR and using BlazeDS v3.0.0.544. By looking at the logs I can
> >> see that the server side method (invoked via RemoteObject on the
> >> client side) never executes in more than two threads at the same time.
> >> What I mean is that if I fire 5 simultaneous requests to the method
> >> using RemoteObject from the flex side, and log when the method is
> >> executed and when it returns, I get something like this:
> >>
> >> 12:00:00 Method Executed
> >> 12:00:00 Method Executed
> >> 12:00:01 Method Exiting
> >> 12:00:01 Method Executed
> >> 12:00:04 Method Exiting
> >> 12:00:04 Method Executed
> >> 12:00:10 Method Exiting
> >> 12:00:10 Method Executed
> >> 12:00:11 Method Exiting
> >> 12:00:13 Method Exiting
> >>
> >> While on the client side I see that all the 5 invocations were fired
> >> at 12:00:00.
> >>
> >> As you can see, the method tend to take a while to run. But the big
> >> problem is that the log suggest that some queuing is happening on the
> >> server side, allowing only a maximum of two threads to run in parallel
> >> at any given time.
> >>
> >> I thought it could be a problem with the thread pool of the servlet
> >> container, but my Tomcat has the following configuration:
> >>
> >>  >> maxThreads="150" minSpareThreads="4"/>
> >>
> >> So I guessed that the limit could be imposed by BlazeDS itself. But
> >> haven't found anything on the documentation. Of course, I could be
> >> wrong and the problem may be something else.
> >>
> >> Any ideas?
> >>
> >> Thanks,
> >> Leo
> >>
> >> 
> >>
> >> Note: The Remote Object destination has "application" scope, which
> >> means that there is only one instance of the Java object per
> >> application.
> >>
> >> Regards,
> >> A
> >>
> >> --
> >> Aldo Bucchi
> >> U N I V R Z
> >> Office: +56 2 795 4532
> >> Mobile:+56 9 7623 8653
> >> skype:aldo.bucchi
> >> http://www.univrz.com/
> >> http://aldobucchi.com/
> >>
> >> PRIVILEGED AND CONFIDENTIAL INFORMATION
> >> This message is only for the use of the individual or entity to which it
> >> is
> >> addressed and may contain information that is privileged and
> confidential.
> >> If
> >> you are not the intended recipient, please do not distribute or copy
> this
> >> communication, by e-mail or otherwise. Instead, please notify us
> >> immediately by
> >> return e-mail.
> >> INFORMACIÓN PRIVILEGIADA Y CONFIDENCIAL
> >> Este mensaje está destinado sólo a la persona u organización al cual
> está
> >> dirigido y podría contener información privilegiada y confidencial. Si
> >> usted no
> >> es el destinatario, por favor no distribuya ni copie esta comunicación,
> >> por
> >> email o por otra vía. Por el contrario, por favor notifíquenos
> >> inmediatamente
> >> vía e-mail.
> >>
> >
> >
>
> --
> Aldo Bucchi
> U N I V R Z
> Office: +56 2 795 4532
> Mobile:+56 9 7623 8653
> skype:aldo.bucchi
> http://www.univrz.com/
> http://aldobucchi.com/
>
> PRIVILEGED AND CONFIDENTIAL INFORMATION
> This message is only for the use of the individual or entity to which it is
> addressed and may contain information that is privileged and confidential.
> If
> you are not the intended recipient, please do not distribute or copy this
> communication, by e-mail or otherwise. Instead, please notify us
> immediately by
> return e-mail.
> INFORMACIÓN PRIVILEGIADA Y CONFIDENCIAL
> Este mensaje está destinado sólo a la persona u organización al cual está
> dirigido y podría contener información privilegiada y confidencial. Si
> usted no
> es el destinatario, por favor no distribuya ni copie esta comunicación, por
> email o por otra vía. Por el contrario, por favor notifíquenos
> inmediatamente
> vía e-mail.
>  
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

Josh 'G-Funk' McDonald
  -  j...@joshmcdonald.info
  -  http://twitter.com/sophistifunk
  -  http://flex.joshmcdonald.info/


[flexcoders] DataGridColumn backgroundColor bug?

2009-05-19 Thread Ben Reynolds
Hi guys,

   This seems like an awfully simple thing for nobody to have picked up
before, so hopefully someone can point me in the right direction as to
what I'm doing wrong. I have gone way heaps hardcore and simplified the
issue to the following using SDK3.2:


 
 
 


With either showHeaders="false" or headerHeight="0" the code is
generating the following error found in DataGrid's drawColumnBackground
function:

TypeError: Error #1010: A term is undefined and has no properties.
 at
mx.controls::DataGrid/drawColumnBackground()[C:\autobuild\3.2.0\framewor\
ks\projects\framework\src\mx\controls\DataGrid.as:3012]
 at
mx.controls::DataGrid/drawLinesAndColumnGraphics()[C:\autobuild\3.2.0\fr\
ameworks\projects\framework\src\mx\controls\DataGrid.as:3311]
 at
mx.controls::DataGrid/drawLinesAndColumnBackgrounds()[C:\autobuild\3.2.0\
\frameworks\projects\framework\src\mx\controls\DataGrid.as:3207]
 at
mx.controls::DataGrid/updateDisplayList()[C:\autobuild\3.2.0\frameworks\\
projects\framework\src\mx\controls\DataGrid.as:1506]
 at
mx.controls.listClasses::ListBase/validateDisplayList()[C:\autobuild\3.2\
.0\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as\
:3280]
 at
mx.managers::LayoutManager/validateDisplayList()[C:\autobuild\3.2.0\fram\
eworks\projects\framework\src\mx\managers\LayoutManager.as:622]
 at
mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\fr\
ameworks\projects\framework\src\mx\managers\LayoutManager.as:677]
 at Function/http://adobe.com/AS3/2006/builtin::apply()
 at
mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\framework\
s\projects\framework\src\mx\core\UIComponent.as:8628]
 at
mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\
\projects\framework\src\mx\core\UIComponent.as:8568]

Line 3012 is:

var xx:Number = columnHeader.rendererArray[columnIndex].x

There appears to be no rendererArray. Can someone shed some light on
this? Is it something fixed in 3.3 (which is something I'm unable to
test at this point)?

MrB



[flexcoders] Re: Transition only works once

2009-05-19 Thread jimmy5804
Tim, thanks a lot for making the effort to help.

Got partial success. Using heightX properties, I was able to get the forward 
transition to work, but  I wasn't able to get the reverse transition (not shown 
in code below) to work using heightX props, putting it in a sequence w/ 
add/remove child, manually setting values, or anything else I tried.

So it expands nice and slow, then snaps shut on close. Any other ideas? If I 
have time, I may try doing w/ effects at the AS level to see if I can get a 
better handle on it.

--- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
>
> Try resetting the dimensions of bottomBox back to 0 when you change to the 
> base state; or use widthFrom/widthTo, heightFrom/heightTo on the resize tag.
> 
> -TH
> 
> --- In flexcoders@yahoogroups.com, "jimmy5804"  wrote:
> >
> > I don't use transitions often, so I may be missing something. The 
> > transition works fine the first time, but the resize is applied 
> > instantaneously afterwards.
> > 
> > This is part of a VBox-based MXML component.
> > 
> > Transition is very simple:
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > The state to which it is applied adds an HBox with several buttons to the 
> > the parent VBox.
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Have I done anything particularly dumb here? If not, where should I look to 
> > start debugging?
> > 
> > TIA,
> >
>




Re: [flexcoders] getting currency symbol to display when loading locale from resource module

2009-05-19 Thread Paul Hastings
flexcoder2008 wrote:
> # locale/en_GB/FormattingValues.properties THEMECOLOR=0xFF 
> DATE_FORMAT=DD/MM/YY TIME_FORMAT=L:NN A CURRENCY_PRECISION=0 
> CURRENCY_SYMBOL=� THOUSANDS_SEPARATOR=, DECIMAL_SEPARATOR=.
> 
> As you can see, I have the pound symbol for the CURRENCY_SYMBOL.  I typed
> this with ALT-156

no i can't see, its garbaged. is that properties file utf-8 encoded? and in 
unicode the codepoint for the pound sign is 163 (0x00A3).

> When I load this resource module and try to display currency values that have
> been formatted with the british locale, the pound symbol will not display.
> Instead I get a square box symbol.  It's like the Flash player doesn't

a box means the whatever can't render that symbol using the given font (except 
in buzzword which wandered off the reservation all by it's lonesome). either a 
minor encoding issue or wrong font. a major encoding issue results in questions 
marks being displayed.



RE: [flexcoders] Confused about modules using embedded fonts Flex 3.3

2009-05-19 Thread Alex Harui
You're gonna have to debug through the part of UITextField that  checks with 
the EmbeddedFontRegistry.  You should see it find the font in the main app in 
your test app.  What does it do for the actual app?

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 Greg Hess
Sent: Tuesday, May 19, 2009 11:17 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Confused about modules using embedded fonts Flex 3.3





Hi Alex,

Well, continued to add complexity in my test case to mock what our
real application does when loading modules however, still no problem
loading fonts and no need to set the Module.moduleFactory to the
SystemManager of the main application.

But can still confirm, without doing so on our application modules no
text will display...

I am stumped. In debugging the test case I can confirm that my
module.moduleFactory does not reference the main applications
SystemManager. I am concerned that my modules are not being
initialized properly and that I could have additional (much harder to
fix issues in the future). I don't mind fixing fonts by assigning the
module.moduleFactory to the applications SystemManager but only if it
is safe.

If you have any ideas as to how I could identify why my modules are
not initialized properly to use the embedded fonts it would be greatly
appreciated.

Are there any implications to setting the modules.moduleFactory to
reference the main applications SystemManager?

Thanks,

Greg

On Fri, May 15, 2009 at 4:37 PM, Greg Hess 
mailto:flexeffect%40gmail.com>> wrote:
> Hi Alex,
>
> Well, got my scaled down test case, but it is working fine as you
> said. I don't need to anything special to have my modules inherit the
> embedded fonts in Label's LinkButtons ect...
>
> I must be doing something funny and I will continue and try and find
> where...and hope to post back next week with my findings.
>
> Thanks, have a great weekend!
>
> Greg
>
> On Fri, May 15, 2009 at 1:14 PM, Alex Harui 
> mailto:aharui%40adobe.com>> wrote:
>>
>>
>> Well, glad that worked, but it shouldn't be necessary for LinkButton. If you
>> can post a test case in two 20-line mxml files I'll try to take a look.
>>
>> Alex Harui
>> Flex SDK Developer
>> Adobe Systems Inc.
>> Blog: http://blogs.adobe.com/aharui
>>
>> -Original Message-
>> From: flexcoders@yahoogroups.com 
>> [mailto:flexcoders@yahoogroups.com] On
>> Behalf Of Greg Hess
>> Sent: Friday, May 15, 2009 8:46 AM
>> To: flexcoders@yahoogroups.com
>> Subject: Re: [flexcoders] Confused about modules using embedded fonts Flex
>> 3.3
>>
>> Thanks Alex!
>>
>> Not exactly sure why I don't get ANY "automatic" behavior even with
>> base Flex controls(LinkButton ect..) but by assigning the main
>> applications SystemManager(IFlexModuleFactory) that has the registered
>> fonts to the loaded modules moduleFactory it is working like a charm.
>>
>> Wow, one line of code fixed it.
>>
>> Once my module is loaded I set the modules moduleFactory property like this:
>>
>> private function onModuleLoaded( event:ModuleEvent ):void
>> {
>> ...
>> module.moduleFactory = Application.appliation.systemManager;
>>
>> }
>>
>> Is this what you meant and is this the right approach?
>>
>> Cheers,
>>
>> Greg
>>
>> On Thu, May 14, 2009 at 7:29 PM, Alex Harui 
>> mailto:aharui%40adobe.com>> wrote:
>>>
>>>
>>> The key is that there must be code in the same SWF as the font that
>>> generates the class that will display the text (which might be from the
>>> module).  This should be automatic for any Flex control, but if you're
>>> using
>>> itemrenderers and/or classFactories you'll probably need to use
>>> ContextualClassFactory instead.
>>>
>>>
>>>
>>> Alex Harui
>>>
>>> Flex SDK Developer
>>>
>>> Adobe Systems Inc.
>>>
>>> Blog: http://blogs.adobe.com/aharui
>>>
>>>
>>>
>>> From: flexcoders@yahoogroups.com 
>>> [mailto:flexcoders@yahoogroups.com] On
>>> Behalf Of Greg Hess
>>> Sent: Thursday, May 14, 2009 11:02 AM
>>> To: flexcoders@yahoogroups.com
>>> Subject: [flexcoders] Confused about modules using embedded fonts Flex 3.3
>>>
>>>
>>>
>>>
>>> Hi Folks,
>>>
>>> I have a modular application built on Flex 3.3 SDK and have just
>>> introduced some embedded fonts and unfortunately all text is blank in
>>> the modules that attempt to use the embedded font. Popup windows
>>> displayed from my module shell(main application) work fine. Searching
>>> the archive and web I have found much discussion in relation to
>>> ActionScript 2 but not much regarding Flex 3 other than this adobe
>>> bug(3.2 sdk) http://bugs.adobe.com/jira/browse/SDK-18254 that has the
>>> same result (blank text), but in my testing my modules

RE: [flexcoders] ListEventReason.CANCELLED problem

2009-05-19 Thread Alex Harui
Cancelled is only for hitting ESC.  Every other kind of activity commits the 
data in the editor.

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 Blue
Sent: Tuesday, May 19, 2009 11:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ListEventReason.CANCELLED problem





Hello All,

I'm having a problem getting the ListEventReason.CANCELLED to fire.  I was 
under the assumption that the ListEventReason.CANCELLED fires when you click 
outside of the List area but every time I click outside of the list area the 
only thing that fires is the ListEventReason.OTHER.  How can I get the 
ListEventReason.CANCELLED to work? Here is a code snippet of what I have:



  &nb! sp; 

   !
&nbs p;   

...

   




Any help on understanding this is greatly appreicated.

Thank you

Blue



[flexcoders] Re: Call a Flex Function by Name

2009-05-19 Thread edlueze
I've got this working. It's not as universal a solution as it could have been 
if I'd adopted all of Jake's blogs, but it satisfies the current need.

In case anybody else is interested, these were the key elements:

The XML Menu data provider (you can see I added the "callbackclass" to the 
 as Jake suggested, but I didn't figure out how to avoid using the 
full class path):


  


  


The Menu control event handler (I stuck with callLater as it seemed to work 
fine - I didn't check to see if I could pass an array of arguments to a 
Function variable):

private function formMenuButton_click(event:MenuEvent):void {
  var callback:String = event.it...@callback;
  var className:String = event.it...@callbackclass;
  var classDefinition:Class = className ? getDefinitionByName( className ) as 
Class : undefined;
  var arguments:String = event.it...@arguments;
  var arrayArguments:Array = UtilityFunctions.ToArgumentArray(arguments, this);

  if( callback ) {
if( className ) {
  if( arguments ) {
callLater(classDefinition[callback], arrayArguments);
  } else {
callLater(classDefinition[callback]);
  }
} else {
  if( arguments ) {
callLater(this[callback], arrayArguments);
  } else {
callLater(this[callback]);
  }
}
  }
}

The ToArgumentArray scrubbing function:

public static function ToArgumentArray(arguments:String, 
container:Object):Array {
  var arrayArguments:Array = arguments.split(",");
  
  //Replace argument strings with object references when the strings represent 
real objects within this component
  var i:int = 0; //Argument offset counter
  for each( var arg:String in arrayArguments ) {
//Replace all of the leading spaces in the arguments
while( arg.search(" ") == 0 ) {
  var replacePattern:RegExp = /\s/; //Replace the space character (note 
that the global flag is not set)
  arg = arg.replace(replacePattern, ""); //Replace the first space with a 
blank character
}
arrayArguments[i] = arg;

//Replace all of the lagging spaces in the arguments
while( arg.charAt(arg.length - 1) == " " ) {
  arg = arg.substr(0, length - 2); //Replace the last space with a blank 
character
}
arrayArguments[i] = arg;

//Replace any objects in this with the object reference
if( container.hasOwnProperty(arg) )
  arrayArguments[i] = container[arg]; //Replace the argument string with a 
reference to the object

//Replace the "null" string with null
if( arg == "null" )
  arrayArguments[i] = null; //Replace the argument string the null operator
i++;
  }
  
  return arrayArguments;
}


--- In flexcoders@yahoogroups.com, "edlueze"  wrote:
>
> Ah - yes - this looks pretty cool! I'll start digging into it immediately. 
> Thanks for the reference!!
> 
> --- In flexcoders@yahoogroups.com, "Jake Churchill"  wrote:
> >
> > I would separate the classname out into another argument in your XML, so in
> > your example that's not working, you'd have:
> > 
> >  
> > 
> >  > callbackClass="ProjectProperties" callback="setValue"
> > arguments="ShowAlertsWindow, true" />
> > 
> >  
> > 
> > Then you'd have to dynamically instantiate that class and call the assigned
> > method.  I have a couple tutorials on my blog about doing this:
> > 
> >  
> > 
> > http://jake.cfwebtools.com/2009/04/08/dynamically-instantiate-a-class/ 
> > 
> > http://jake.cfwebtools.com/2009/05/15/flex-dynamic-casting-of-data/ 
> > 
> >  
> > 
> > The 2nd one deals with data casting which might not be as relevant but I
> > still do the class stuff dynamically.  Here's an example of what this might
> > look like for you:
> > 
> >  
> > 
> > var className:Class = Class( getDefinitionByName( getQualifiedClassName(
> > "ProjectProperties" ) ) );
> > 
> > var function:Function = className["setValue"];
> > 
> > function.call(className[or null], parmaters.);
> > 
> >  
> > 
> > FYI, this code is completely untested, just trying to give you an idea.
> > 
> >  
> > 
> > Jake Churchill
> > 
> > CF Webtools
> > 
> > 11204 Davenport, Ste. 100
> > 
> > Omaha, NE  68154
> > 
> > http://www.cfwebtools.com
> > 
> > 402-408-3733 x103
> > 
> >  
> > 
> > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> > Behalf Of edlueze
> > Sent: Tuesday, May 19, 2009 6:00 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Call a Flex Function by Name
> > 
> >  
> > 
> > 
> > 
> > 
> > 
> > 
> > I'm using a Menu control. Normally I'd catch the Menu's control event and
> > then act on whatever selection the user made with something like a switch
> > block.
> > 
> > But I wanted to see if I could be more clever and embed the function name
> > and parameters in the XML Menu data provider itself, like this:
> > 
> > 
> > 
> >  > callback="AddNewChartButton_click" arguments="" />
> >  > callback="PopUpTextBox" arguments="RenameChart, RenameChartButtonTextBox,
> > {nameChartSelected}" enabled="{selectedChartingPanelTabl

[flexcoders] Re: Form validation before submitting...

2009-05-19 Thread Tim Hoff
Just one technique: using AS, throw the validators into an ArrayCollection on 
creationComplete.  Before you submit, loop through the validators and execute 
the validate() function on each.  If one fails, bail out.  The docs can show 
you how to work with ValidationResultEvent.  Also remember that all validators 
can be cast as Validator; regardles of the subclass.

-TH

--- In flexcoders@yahoogroups.com, Laurence MacNeill  wrote:
>
> At 08:13 PM 5/18/2009, you wrote:
> 
> 
> 
> >Almost seems like you'd want to loop through the validators instead,
> >huh?
> >
> >-TH
> 
> Didn't know I could do that...  How would I go about doing that?
> 
> Thanks,
> 
> Laurence MacNeill
> Mableton, Georgia, USA
>




[flexcoders] Re: Looking for ability to know which item I selected when using Lists

2009-05-19 Thread Tim Hoff

Hi Anthony,

Use the itemClick event on the List tag.

-TH

--- In flexcoders@yahoogroups.com, "a.scavarelli" 
wrote:
>
> Hey there,
>
> I am trying to figure out how to get the data (some text) from a list
I have set to editable. It is binded to an array of Strings but I can't
figure out how to determine which string I have selected to edit. This
so that I can compare it to other strings using editEnd and editBegin
ListEvents. Any ideas?
>
> I know when I add a MouseEvent.Click event listener to the "list" it
the target returned is the text UIcomponent; but this does not work
consistently. I am thinking there is an easier way I am missing ... :)
>
> Thanks.
> Anthony
>





[flexcoders] Re: Transition only works once

2009-05-19 Thread Tim Hoff
Try resetting the dimensions of bottomBox back to 0 when you change to the base 
state; or use widthFrom/widthTo, heightFrom/heightTo on the resize tag.

-TH

--- In flexcoders@yahoogroups.com, "jimmy5804"  wrote:
>
> I don't use transitions often, so I may be missing something. The transition 
> works fine the first time, but the resize is applied instantaneously 
> afterwards.
> 
> This is part of a VBox-based MXML component.
> 
> Transition is very simple:
> 
> 
>   
>   
>   
> 
> 
> The state to which it is applied adds an HBox with several buttons to the the 
> parent VBox.
> 
> 
> 
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
> 
> 
> 
> Have I done anything particularly dumb here? If not, where should I look to 
> start debugging?
> 
> TIA,
>




RE: [flexcoders] Re: Query String Parameters in Flex Builder

2009-05-19 Thread Tracy Spratt
Yeah, this used to work for me but it seems to have broken at some point,
not sure when.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of creativepragmatic
Sent: Tuesday, May 19, 2009 5:38 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Query String Parameters in Flex Builder

 






Thank you Jonathon. When I tried this, I got a File not found error.

> Open up your project properties, and go to the "Run/Debug Settings" menu.
Select your driver application, and click the edit button. Uncheck the "Use
defaults" under "URL or path to launch, and set it to whatever you want it
to be.
> 
> Jonathon





Re: [flexcoders] Adobe Flash Help Urgent

2009-05-19 Thread Sam Lai
Instead of stabbing in the dark, try installing Fiddler on the Windows
client machine. It shows you all the calls any browser makes, the HTTP
headers and responses, everything basically.

Then compare the results before and after changing the web server
configuration. If it is anything like what Guy suggested above, you
should be able to see what's causing it. Then you have to work out how
to fix it :)

On 5/19/09, Ron Wagner  wrote:
>
> On May 19, 2009, at 3:49 AM, saritha wrote:
>
>>
>>
>> I have a web page with external swf file(.swf)in it.
>> The external swf file loads images dynamically.
>> The files are put up in web server.
>> If the web server is not clustered (say it runs in single instance
>> mode) the external swf loads properly in Internet Explorer
>> 6.0,Internet Explorer 7.0 , Firefox 3.0 and Safari 3.0.
>> If the web server is clustered(say it runs with mulitple instances)
>> the external swf does not load in Internet Explorer 6.0 and Internet
>> Explorer 7.0.But it still loads properly in firefox and safari.
>>
>> Its has become a show stopper issue.
>> Any Help on this would be appreciated.
>>
>> Thanks
>>
>
> I've had to add a http://www.full/path/to/
> html_document.html"> to get everything to load on Windows. Have you
> checked the webserver error logs to see where it wants to grab the
> missing items from?
>
> Ron
>
>
>
> 
>
> --
> 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
>
>
>
>

-- 
Sent from my mobile device


[flexcoders] Re: Call a Flex Function by Name

2009-05-19 Thread edlueze
Ah - yes - this looks pretty cool! I'll start digging into it immediately. 
Thanks for the reference!!

--- In flexcoders@yahoogroups.com, "Jake Churchill"  wrote:
>
> I would separate the classname out into another argument in your XML, so in
> your example that's not working, you'd have:
> 
>  
> 
>  callbackClass="ProjectProperties" callback="setValue"
> arguments="ShowAlertsWindow, true" />
> 
>  
> 
> Then you'd have to dynamically instantiate that class and call the assigned
> method.  I have a couple tutorials on my blog about doing this:
> 
>  
> 
> http://jake.cfwebtools.com/2009/04/08/dynamically-instantiate-a-class/ 
> 
> http://jake.cfwebtools.com/2009/05/15/flex-dynamic-casting-of-data/ 
> 
>  
> 
> The 2nd one deals with data casting which might not be as relevant but I
> still do the class stuff dynamically.  Here's an example of what this might
> look like for you:
> 
>  
> 
> var className:Class = Class( getDefinitionByName( getQualifiedClassName(
> "ProjectProperties" ) ) );
> 
> var function:Function = className["setValue"];
> 
> function.call(className[or null], parmaters.);
> 
>  
> 
> FYI, this code is completely untested, just trying to give you an idea.
> 
>  
> 
> Jake Churchill
> 
> CF Webtools
> 
> 11204 Davenport, Ste. 100
> 
> Omaha, NE  68154
> 
> http://www.cfwebtools.com
> 
> 402-408-3733 x103
> 
>  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of edlueze
> Sent: Tuesday, May 19, 2009 6:00 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Call a Flex Function by Name
> 
>  
> 
> 
> 
> 
> 
> 
> I'm using a Menu control. Normally I'd catch the Menu's control event and
> then act on whatever selection the user made with something like a switch
> block.
> 
> But I wanted to see if I could be more clever and embed the function name
> and parameters in the XML Menu data provider itself, like this:
> 
> 
> 
>  callback="AddNewChartButton_click" arguments="" />
>  callback="PopUpTextBox" arguments="RenameChart, RenameChartButtonTextBox,
> {nameChartSelected}" enabled="{selectedChartingPanelTableCell}" />
>  callback="PopUpCheckBox" arguments="DeleteChart, DeleteChartButtonCheckBox"
> enabled="{selectedChartingPanelTableCell}" />
>  callback="RaiseChartOrderButton_click" arguments=""
> enabled="{RaiseChartOrderButton.enabled}" />
>  callback="LowerChartOrderButton_click" arguments=""
> enabled="{LowerChartOrderButton.enabled}" />
>  callback="ProjectProperties.setValue" arguments="ShowAlertsWindow, true" />
>  callback="PopUpMessage" arguments="ChartingPanelWhatAmIMenuOption, null " />
> 
> 
> 
> 
> If you look at each  you'll see a 'callback' attribute and an
> 'arguments' attribute. The arguments are comma-delineated that I need to
> parse into an Array and scrub: for example, by converting string references
> into real ones like this:
> 
> if( this.hasOwnProperty(arg) )
> arrayArguments[i] = this[arg];
> 
> I then have been successful in using the callLater function like this:
> 
> callLater(this[callback], arrayArguments);
> 
> So far so good - it works great!
> 
> But I've hit a tiny snag. If the function is in a foreign class then
> everything falls apart. For example, this won't work:
> 
> callback = "ProjectProperties.setValue"
> arguments = "ShowAlertsWindow, true"
> 
> Because there is no such thing as this[ProjectProperties.setValue] the
> callLater function can't handle it. I can easily build a little stub but I'm
> hoping to keep things clean and elegant.
> 
> I've been searching for a way to call-by-name in Flex but haven't found one
> (except for callLater). Is there a way I can do this?
>




RE: [flexcoders] DataGrid highlight issues

2009-05-19 Thread Alex Harui
Try setting selectedIndex=-1 before you reset it to the correct values.  Maybe 
it thinks certain rows already are drawn?  You can set a breakpoint in 
drawSelectionIndicator to see if it is trying to draw

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 Jake Churchill
Sent: Tuesday, May 19, 2009 1:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] DataGrid highlight issues




I have a simple datagrid with double clicking enabled.  Double clicking runs a 
long process of getting a bunch of data.  The datagrid itself is not affected 
by any of the data changes.  After the process is done, it is impossible to 
select an item in the datagrid.  The selectedIndex and selectedItem both get 
set, just the highlight is missing so the user doesn't know that the row they 
clicked is selected.

I tried creating a custom datagrid class extending datagrid and trapping Item 
Click events and manually calling updateDisplaylist() but that did not help.

If I click and use a modifier key (SHIFT or CTRL) the highlight works.

Does anyone have any ideas of how to fix this?

Thanks in advance.

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



Re: [flexcoders] Re: BlazeDS RemoteObject Performance

2009-05-19 Thread Aldo Bucchi
foobone9,

Are you saying that this is a known built-in limitation of BlazeDS?

Thanks,
A

On Tue, May 19, 2009 at 6:58 PM, foobone9  wrote:
>
>
> I think you need to invest in Live Cycle Data Servies.
>
> --- In flexcoders@yahoogroups.com, Aldo Bucchi  wrote:
>>
>> ( I copy this email from an internal communication I received )
>>
>> 
>>
>> Hello,
>>
>> I've found a serious performance problem on an application written on
>> Flex/AIR and using BlazeDS v3.0.0.544. By looking at the logs I can
>> see that the server side method (invoked via RemoteObject on the
>> client side) never executes in more than two threads at the same time.
>> What I mean is that if I fire 5 simultaneous requests to the method
>> using RemoteObject from the flex side, and log when the method is
>> executed and when it returns, I get something like this:
>>
>> 12:00:00 Method Executed
>> 12:00:00 Method Executed
>> 12:00:01 Method Exiting
>> 12:00:01 Method Executed
>> 12:00:04 Method Exiting
>> 12:00:04 Method Executed
>> 12:00:10 Method Exiting
>> 12:00:10 Method Executed
>> 12:00:11 Method Exiting
>> 12:00:13 Method Exiting
>>
>> While on the client side I see that all the 5 invocations were fired
>> at 12:00:00.
>>
>> As you can see, the method tend to take a while to run. But the big
>> problem is that the log suggest that some queuing is happening on the
>> server side, allowing only a maximum of two threads to run in parallel
>> at any given time.
>>
>> I thought it could be a problem with the thread pool of the servlet
>> container, but my Tomcat has the following configuration:
>>
>> > maxThreads="150" minSpareThreads="4"/>
>>
>> So I guessed that the limit could be imposed by BlazeDS itself. But
>> haven't found anything on the documentation. Of course, I could be
>> wrong and the problem may be something else.
>>
>> Any ideas?
>>
>> Thanks,
>> Leo
>>
>> 
>>
>> Note: The Remote Object destination has "application" scope, which
>> means that there is only one instance of the Java object per
>> application.
>>
>> Regards,
>> A
>>
>> --
>> Aldo Bucchi
>> U N I V R Z
>> Office: +56 2 795 4532
>> Mobile:+56 9 7623 8653
>> skype:aldo.bucchi
>> http://www.univrz.com/
>> http://aldobucchi.com/
>>
>> PRIVILEGED AND CONFIDENTIAL INFORMATION
>> This message is only for the use of the individual or entity to which it
>> is
>> addressed and may contain information that is privileged and confidential.
>> If
>> you are not the intended recipient, please do not distribute or copy this
>> communication, by e-mail or otherwise. Instead, please notify us
>> immediately by
>> return e-mail.
>> INFORMACIÓN PRIVILEGIADA Y CONFIDENCIAL
>> Este mensaje está destinado sólo a la persona u organización al cual está
>> dirigido y podría contener información privilegiada y confidencial. Si
>> usted no
>> es el destinatario, por favor no distribuya ni copie esta comunicación,
>> por
>> email o por otra vía. Por el contrario, por favor notifíquenos
>> inmediatamente
>> vía e-mail.
>>
>
> 



-- 
Aldo Bucchi
U N I V R Z
Office: +56 2 795 4532
Mobile:+56 9 7623 8653
skype:aldo.bucchi
http://www.univrz.com/
http://aldobucchi.com/

PRIVILEGED AND CONFIDENTIAL INFORMATION
This message is only for the use of the individual or entity to which it is
addressed and may contain information that is privileged and confidential. If
you are not the intended recipient, please do not distribute or copy this
communication, by e-mail or otherwise. Instead, please notify us immediately by
return e-mail.
INFORMACIÓN PRIVILEGIADA Y CONFIDENCIAL
Este mensaje está destinado sólo a la persona u organización al cual está
dirigido y podría contener información privilegiada y confidencial. Si usted no
es el destinatario, por favor no distribuya ni copie esta comunicación, por
email o por otra vía. Por el contrario, por favor notifíquenos inmediatamente
vía e-mail.


Re: [flexcoders] Pure MVC vs Cairgorm

2009-05-19 Thread Paul Andrews
- Original Message - 
From: "Laurence MacNeill" 
To: 
Sent: Wednesday, May 20, 2009 12:28 AM
Subject: Re: [flexcoders] Pure MVC vs Cairgorm


> At 06:55 PM 5/19/2009, you wrote:
>
>
>>Depends on your requirements. Personally between those two, I lean
>>more toward PureMVC, although the ideal would be to simply roll your
>>own "framework" based on only the design patterns you need.
>
> So what are these "frameworks" you speak of, anyway?  I keep seeing
> references to Cairgorm and others, but I have no idea what they'd be
> used for...  Or how...  Is it like an add-on to Flex Builder, or 
> something?

No, they are ways for building software that follow the MVC software 
pattern.

Give google a spin.

> Laurence MacNeill
> Mableton, Georgia, USA



Re: [flexcoders] Pure MVC vs Cairgorm

2009-05-19 Thread Paul Andrews
- Original Message - 
From: "mhbmarcos" 
To: 
Sent: Tuesday, May 19, 2009 6:44 PM
Subject: [flexcoders] Pure MVC vs Cairgorm


> Hi!!!, which is the best option?

Would you say a Ferrari is best or a Mini?

If you want to impress expensive women, then the Ferrari would do well, but 
if you want to go shopping and be able to negotiate narrow uneven streets, 
I'd go for the Mini.

As it is with cars, the same follows for software.

Some people like PureMVC, some people go with the Adobe-approved Cairngorm.

Look them both up on google and check them out. 



Re: [flexcoders] Pure MVC vs Cairgorm

2009-05-19 Thread Laurence MacNeill
At 06:55 PM 5/19/2009, you wrote:


>Depends on your requirements. Personally between those two, I lean 
>more toward PureMVC, although the ideal would be to simply roll your 
>own "framework" based on only the design patterns you need.

So what are these "frameworks" you speak of, anyway?  I keep seeing 
references to Cairgorm and others, but I have no idea what they'd be 
used for...  Or how...  Is it like an add-on to Flex Builder, or something?


Laurence MacNeill
Mableton, Georgia, USA



Re: [flexcoders] MVC view and model communication

2009-05-19 Thread Steve Horvath
Thanks!  At least the first one looks like it should work for me.  For the
second one, I'm a little confused.  Do those properties go into the model?
How does the view watch for them and respond?

ascii

On Tue, May 19, 2009 at 8:10 AM, Richard Rodseth  wrote:

>
>
> A couple of techniques to be aware of:
>
> 1) Binding functions
>
> currentState="{computeState(model.username)}"
>
> (computeState is in the Script block of your MXML and will fire when any of
> the argument expressions change)
>
> 2) Computed properties with custom getters/setters:
>
> [Bindable(event="userStateChanged")]
> public function get userState():String {
>// return something based on user name
> }
>
> [Bindable(event="userNameChanged")]
> public function get userName():String {
>return _userName;
> }
> public function set userName(value:String):void {
>_userName = value; // Should really check that it's different
>dispatchEvent(new Event("userNameChanged"));
>dispatchEvent(new Event("userStateChanged"));
>
> }
>
>
> On Tue, May 19, 2009 at 12:10 AM, steve horvath <
> flexcod...@stevehorvath.com> wrote:
>
>>
>>
>> I have a view that I would like to change state when a field in my model
>> changes values. Up until now I've been using data binding to link my view
>> and model. It seems like my current situation I will have to dispatch an
>> event from the model and have the view watch it.
>>
>> In the model:
>> A username string that changes occasionally and is sometimes null.
>>
>> In the view:
>> A List - should become unselected if the username becomes null.
>> A State - should change when the username changes values.
>>
>> Do I need to register an event handler in my view? Can I do this somehow
>> through data binding? Or is there another way?
>>
>> ascii
>>
>>
>  
>


[flexcoders] Re: BlazeDS RemoteObject Performance

2009-05-19 Thread foobone9
I think you need to invest in Live Cycle Data Servies.

--- In flexcoders@yahoogroups.com, Aldo Bucchi  wrote:
>
> ( I copy this email from an internal communication I received )
> 
> 
> 
> Hello,
> 
> I've found a serious performance problem on an application written on
> Flex/AIR and using BlazeDS v3.0.0.544. By looking at the logs I can
> see that the server side method (invoked via RemoteObject on the
> client side) never executes in more than two threads at the same time.
> What I mean is that if I fire 5 simultaneous requests to the method
> using RemoteObject from the flex side, and log when the method is
> executed and when it returns, I get something like this:
> 
> 12:00:00 Method Executed
> 12:00:00 Method Executed
> 12:00:01 Method Exiting
> 12:00:01 Method Executed
> 12:00:04 Method Exiting
> 12:00:04 Method Executed
> 12:00:10 Method Exiting
> 12:00:10 Method Executed
> 12:00:11 Method Exiting
> 12:00:13 Method Exiting
> 
> While on the client side I see that all the 5 invocations were fired
> at 12:00:00.
> 
> As you can see, the method tend to take a while to run. But the big
> problem is that the log suggest that some queuing is happening on the
> server side, allowing only a maximum of two threads to run in parallel
> at any given time.
> 
> I thought it could be a problem with the thread pool of the servlet
> container, but my Tomcat has the following configuration:
> 
>   maxThreads="150" minSpareThreads="4"/>
> 
> So I guessed that the limit could be imposed by BlazeDS itself. But
> haven't found anything on the documentation. Of course, I could be
> wrong and the problem may be something else.
> 
> Any ideas?
> 
> Thanks,
> Leo
> 
> 
> 
> Note: The Remote Object destination has "application" scope, which
> means that there is only one instance of the Java object per
> application.
> 
> Regards,
> A
> 
> -- 
> Aldo Bucchi
> U N I V R Z
> Office: +56 2 795 4532
> Mobile:+56 9 7623 8653
> skype:aldo.bucchi
> http://www.univrz.com/
> http://aldobucchi.com/
> 
> PRIVILEGED AND CONFIDENTIAL INFORMATION
> This message is only for the use of the individual or entity to which it is
> addressed and may contain information that is privileged and confidential. If
> you are not the intended recipient, please do not distribute or copy this
> communication, by e-mail or otherwise. Instead, please notify us immediately 
> by
> return e-mail.
> INFORMACIÓN PRIVILEGIADA Y CONFIDENCIAL
> Este mensaje está destinado sólo a la persona u organización al cual está
> dirigido y podría contener información privilegiada y confidencial. Si usted 
> no
> es el destinatario, por favor no distribuya ni copie esta comunicación, por
> email o por otra vía. Por el contrario, por favor notifíquenos inmediatamente
> vía e-mail.
>




Re: [flexcoders] Foaming at the mouth for Flex4... or Flashbuilder4

2009-05-19 Thread Nick Collins
Hey if you're using the Flex SDK, you still ARE a Flex developer.

On Tue, May 19, 2009 at 10:21 AM, djhatrick  wrote:

>
>
> BTW, I am going to keep calling myself a flex developer (pays better)...
>
> When's the beta coming out? June when?
>
> thanks,
> Patrick
>
>  
>


Re: [flexcoders] Pure MVC vs Cairgorm

2009-05-19 Thread Nick Collins
Depends on your requirements. Personally between those two, I lean more
toward PureMVC, although the ideal would be to simply roll your own
"framework" based on only the design patterns you need.

On Tue, May 19, 2009 at 12:44 PM, mhbmarcos  wrote:

>
>
> Hi!!!, which is the best option?
>
>  
>


[flexcoders] BlazeDS RemoteObject Performance

2009-05-19 Thread Aldo Bucchi
( I copy this email from an internal communication I received )



Hello,

I've found a serious performance problem on an application written on
Flex/AIR and using BlazeDS v3.0.0.544. By looking at the logs I can
see that the server side method (invoked via RemoteObject on the
client side) never executes in more than two threads at the same time.
What I mean is that if I fire 5 simultaneous requests to the method
using RemoteObject from the flex side, and log when the method is
executed and when it returns, I get something like this:

12:00:00 Method Executed
12:00:00 Method Executed
12:00:01 Method Exiting
12:00:01 Method Executed
12:00:04 Method Exiting
12:00:04 Method Executed
12:00:10 Method Exiting
12:00:10 Method Executed
12:00:11 Method Exiting
12:00:13 Method Exiting

While on the client side I see that all the 5 invocations were fired
at 12:00:00.

As you can see, the method tend to take a while to run. But the big
problem is that the log suggest that some queuing is happening on the
server side, allowing only a maximum of two threads to run in parallel
at any given time.

I thought it could be a problem with the thread pool of the servlet
container, but my Tomcat has the following configuration:



So I guessed that the limit could be imposed by BlazeDS itself. But
haven't found anything on the documentation. Of course, I could be
wrong and the problem may be something else.

Any ideas?

Thanks,
Leo



Note: The Remote Object destination has "application" scope, which
means that there is only one instance of the Java object per
application.

Regards,
A

-- 
Aldo Bucchi
U N I V R Z
Office: +56 2 795 4532
Mobile:+56 9 7623 8653
skype:aldo.bucchi
http://www.univrz.com/
http://aldobucchi.com/

PRIVILEGED AND CONFIDENTIAL INFORMATION
This message is only for the use of the individual or entity to which it is
addressed and may contain information that is privileged and confidential. If
you are not the intended recipient, please do not distribute or copy this
communication, by e-mail or otherwise. Instead, please notify us immediately by
return e-mail.
INFORMACIÓN PRIVILEGIADA Y CONFIDENCIAL
Este mensaje está destinado sólo a la persona u organización al cual está
dirigido y podría contener información privilegiada y confidencial. Si usted no
es el destinatario, por favor no distribuya ni copie esta comunicación, por
email o por otra vía. Por el contrario, por favor notifíquenos inmediatamente
vía e-mail.


[flexcoders] Pure MVC vs Cairgorm

2009-05-19 Thread mhbmarcos
Hi!!!, which is the best option?



[flexcoders] Looking for ability to know which item I selected when using Lists

2009-05-19 Thread a.scavarelli
Hey there,

I am trying to figure out how to get the data (some text) from a list I have 
set to editable. It is binded to an array of Strings but I can't figure out how 
to determine which string I have selected to edit. This so that I can compare 
it to other strings using editEnd and editBegin ListEvents. Any ideas?

I know when I add a MouseEvent.Click event listener to the "list" it the target 
returned is the text UIcomponent; but this does not work consistently. I am 
thinking there is an easier way I am missing ... :)

Thanks.
Anthony



[flexcoders] Dynamic Pod created in a Dashboard

2009-05-19 Thread tdjoiner42
Has anyone had the need to create a dynamic panel/container/pod in a dashboard 
layout?

We have a dashboard where we can minimize/maximize our panels but now we are 
giving the user the ability to click on something that will then create a new 
panel that will show up in our dashboard.

Has anyone had to do this before? Can they share their examples possibly?  We 
also need to delete the panels and haven't figured this out either.

Thank you,
TJ



[flexcoders] How to optimise SWC to its minimal size?

2009-05-19 Thread lytvynyuk
I've created SWC consisting from a single class but class contains a bunch of 
methods and when I built  SWc i found that it is 87Kb. In same time report.xml 
stated that my class is only 3kb, everything else is garbage consisting from 
many Flex frameworks classes used directly or indirectly in my main class.

So question how to build my own SWC without all redundant classes?

What is the reason  to keep all that? As I understand when my SWC will be 
linked in flex Application Flex builder will add only required classes to the 
result SWF ?



[flexcoders] Transition only works once

2009-05-19 Thread jimmy5804
I don't use transitions often, so I may be missing something. The transition 
works fine the first time, but the resize is applied instantaneously afterwards.

This is part of a VBox-based MXML component.

Transition is very simple:







The state to which it is applied adds an HBox with several buttons to the the 
parent VBox.


















Have I done anything particularly dumb here? If not, where should I look to 
start debugging?

TIA,




[flexcoders] Re: Query String Parameters in Flex Builder

2009-05-19 Thread creativepragmatic
Thank you Jonathon.  When I tried this, I got a File not found error.


> Open up your project properties, and go to the "Run/Debug Settings" menu.  
> Select your driver application, and click the edit button.  Uncheck the "Use 
> defaults" under "URL or path to launch, and set it to whatever you want it to 
> be.
> 
> Jonathon



[flexcoders] New Flex 3 Component/Application Lifecycle White-paper

2009-05-19 Thread jamesdevelopmentarc
Hi All, 
We just published a 36 page in-depth analysis of the Flex 3 Lifecycle for both 
component and application development.  We discuss in detail how and what code 
is executed in the Flex SDK and how you can use this to create better and more 
performant applications in Flex and AIR.

Download the free PDF here:
http://www.developmentarc.com/site/articles/



[flexcoders] Refreshing issues in Gumbo: Is that the bug or am i doing something wrong?

2009-05-19 Thread anuj181
Hi Guys 
I am trying to make a simple app in Gumbo(flex 4) but it does not seem to be 
working, I am just trying to change the color of the a simple rectangle (which 
is in the form of the path data for the SVG image), I am not sure whats going 
on here but it does not seem to be working. Am I doing something wrong or is 
this the bug in the adobe Flex 4?
Please let me know if you have any idea,
Thanks a lot for your help



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














[HostComponent("spark.components.Button")]






















RE: [flexcoders] Query String Parameters in Flex Builder

2009-05-19 Thread Jonathon Stierman
There sure is.

Open up your project properties, and go to the "Run/Debug Settings" menu.  
Select your driver application, and click the edit button.  Uncheck the "Use 
defaults" under "URL or path to launch, and set it to whatever you want it to 
be.

Jonathon

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of creativepragmatic
Sent: Tuesday, May 19, 2009 3:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Query String Parameters in Flex Builder





Is there any way to get Flex Builder to add query string parameters in debug 
mode? For example, F:\MyProject\bin-debug\myproject.html#param=1.

Orville

<><>

[flexcoders] getting currency symbol to display when loading locale from resource module

2009-05-19 Thread flexcoder2008
For my application, I load a specific locale resource module based on the 
logged in user's locale.  I am trying to configure the en_GB (British) and 
fr_CA (French Canadian) locales.

In order to build my resource module from the command line, I need a properties 
file.

The content of my properties file for the British locale looks like this:

# locale/en_GB/FormattingValues.properties
THEMECOLOR=0xFF
DATE_FORMAT=DD/MM/YY
TIME_FORMAT=L:NN A
CURRENCY_PRECISION=0
CURRENCY_SYMBOL=£
THOUSANDS_SEPARATOR=,
DECIMAL_SEPARATOR=.

As you can see, I have the pound symbol for the CURRENCY_SYMBOL.  I typed this 
with ALT-156


When I load this resource module and try to display currency values that have 
been formatted with the british locale, the pound symbol will not display.  
Instead I get a square box symbol.  It's like the Flash player doesn't 
recognize the pound symbol.

Also, I have a Canadian French locale - I wish to display a blank space as the 
thousands seperator.  So for my fr_CA locale .properties file I have this:

# locale/fr_CA/FormattingValues.properties
THEMECOLOR=0xFF
DATE_FORMAT=DD/MM/YY
TIME_FORMAT=L:NN A
CURRENCY_PRECISION=0
CURRENCY_SYMBOL=$
THOUSANDS_SEPARATOR= 
DECIMAL_SEPARATOR=,

There is an actual blank space after the '=' sign.

When I select the french locale, no space displays.  

How do I specify these characters in my .properties file?  I have tried using 
HTML entities but every character then displays when my text input or datagrid 
column is formatted.



[flexcoders] DataGrid highlight issues

2009-05-19 Thread Jake Churchill
I have a simple datagrid with double clicking enabled.  Double clicking runs
a long process of getting a bunch of data.  The datagrid itself is not
affected by any of the data changes.  After the process is done, it is
impossible to select an item in the datagrid.  The selectedIndex and
selectedItem both get set, just the highlight is missing so the user doesn't
know that the row they clicked is selected.

 

I tried creating a custom datagrid class extending datagrid and trapping
Item Click events and manually calling updateDisplaylist() but that did not
help.

 

If I click and use a modifier key (SHIFT or CTRL) the highlight works.  

 

Does anyone have any ideas of how to fix this?

 

Thanks in advance.

 

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



[flexcoders]

2009-05-19 Thread Jake Churchill
I have a simple datagrid with double clicking enabled.  Double clicking runs
a long process of getting a bunch of data.  The datagrid itself is not
affected by any of the data changes.  After the process is done, it is
impossible to select an item in the datagrid.  The selectedIndex and
selectedItem both get set, just the highlight is missing so the user doesn't
know that the row they clicked is selected.

 

I tried creating a custom datagrid class extending datagrid and trapping
Item Click events and manually calling updateDisplaylist() but that did not
help.

 

If I click and use a modifier key (SHIFT or CTRL) the highlight works.  

 

Does anyone have any ideas of how to fix this?

 

Thanks in advance.

 

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



[flexcoders] Query String Parameters in Flex Builder

2009-05-19 Thread creativepragmatic
Is there any way to get Flex Builder to add query string parameters in debug 
mode? For example, F:\MyProject\bin-debug\myproject.html#param=1.

Orville



[flexcoders] Re: How do I do a sort on IHierarchicalCollectionView

2009-05-19 Thread foobone9
I don't think that it is different. IHierarchicalCollectionView extends 
ICollectionView which is where the sort is defined.

--- In flexcoders@yahoogroups.com, "djhatrick"  wrote:
>
> By the way, why is the sort different from ICollectionView?  This makes this 
> confusing because all my items duplicate... etc.
> 
> 
> 
> private function sortDataField(value:String):void
>   {
>   
>   //var hd:IHierarchicalCollectionView  = 
> IHierarchicalCollectionView(adg.dataProvider);
>   
>   
> 
>   var hd:IHierarchicalCollectionView  
> =adg.dataProvider as IHierarchicalCollectionView;
>   var sort:Sort   =   
> new Sort();
>   sort.fields 
> =   [new SortField("id")];
>   hd.sort 
> =   sort;
>   gc.refresh();
>   }
>   
> 
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "foobone9"  wrote:
> >
> > Just sort the collection that the grid is bound to.
> > 
> > --- In flexcoders@yahoogroups.com, "djhatrick"  wrote:
> > >
> > > How do i duplicate the functionality of of sorting an advancedDatagrid 
> > > without a header release event.  
> > > 
> > > I'd like to sort my IHierarchicalCollectionView recursively.
> > > 
> > > Thanks,
> > > Patrick
> > >
> >
>




[flexcoders] htmlLoader - saving document HTML - using HTML.htmlText

2009-05-19 Thread arieljake
Hi all,

I recently tried to save the html of a webpage I downloaded with my HTMLLoader.

When I tried to set the htmlText of an HTML control, the page was not rendered 
correctly.

I presume this is because the links to stylesheets and images and such don't 
resolve.

ColdFusion addresses this with an option in their http tag that will resolve 
all relative links to absolute ones.

Does anyone else think this is the culprit? If so, how to solve?



[flexcoders] How do I do a sort on IHierarchicalCollectionView

2009-05-19 Thread djhatrick
By the way, why is the sort different from ICollectionView?  This makes this 
confusing because all my items duplicate... etc.



private function sortDataField(value:String):void
{

//var hd:IHierarchicalCollectionView  = 
IHierarchicalCollectionView(adg.dataProvider);



var hd:IHierarchicalCollectionView  
=adg.dataProvider as IHierarchicalCollectionView;
var sort:Sort   =   
new Sort();
sort.fields 
=   [new SortField("id")];
hd.sort 
=   sort;
gc.refresh();
}






--- In flexcoders@yahoogroups.com, "foobone9"  wrote:
>
> Just sort the collection that the grid is bound to.
> 
> --- In flexcoders@yahoogroups.com, "djhatrick"  wrote:
> >
> > How do i duplicate the functionality of of sorting an advancedDatagrid 
> > without a header release event.  
> > 
> > I'd like to sort my IHierarchicalCollectionView recursively.
> > 
> > Thanks,
> > Patrick
> >
>




Re: [flexcoders] Printing PDF417 barcodes in Flex...

2009-05-19 Thread Howard Fore
Not off the top of my head. I'm certain that Google could help you though:

http://www.google.com/search?q=flex+httpservice

I believe there's even a link there to developer docs at Adobe with examples
on how to load external data via httpService calls. All sorts of useful
information on that site!

--
Howard Fore, howard.f...@hofo.com
"The universe tends toward maximum irony. Don't push it." - Jeff Atwood


On Tue, May 19, 2009 at 3:28 PM, Laurence MacNeill wrote:

> Can you give me an example of how that would work?  I have no clue
> how to do such a thing.
>


Re: [flexcoders] Printing PDF417 barcodes in Flex...

2009-05-19 Thread Laurence MacNeill
At 03:17 PM 5/19/2009, you wrote:


>Why couldn't you just call the servlet from mx:httpService? What's 
>the output from the servlet? If it's a bitmap graphic file (jpeg, 
>gif, png) you won't need a font.

I didn't know if/how it was possible to call a Java Servlet from a 
Flex App.  Figured it probably was, but that's why I asked this question.

Can you give me an example of how that would work?  I have no clue 
how to do such a thing.

Thanks,
Laurence MacNeill
Mableton, Georgia, USA



>--
>Howard Fore, howard.f...@hofo.com
>"The universe tends toward maximum irony. Don't push it." - Jeff Atwood
>
>
>On Tue, May 19, 2009 at 2:59 PM, Laurence MacNeill 
><lmacne...@comcast.net> wrote:
>Has anybody here ever tried to print PDF417 barcodes in Flex?  It's
>far more than a simple embed-the-font kind of thing, as you need a
>proper encoder to encode the data before printing it in the PDF417 font.
>
>I can buy the font, no problem.  But the encoder is what's getting me
>-- closest encoder I can buy is a Java Servlet, and I have no idea
>if/how that can be integrated into a Flex app.  Does anyone know if
>that's possible?
>
>Of course, the best solution would be the source code for a proper
>encoder in ActionScript, I suppose.  Does anyone have that?  Or know
>where I can get it?
>
>Thanks,
>
>Laurence MacNeill
>Mableton, Georgia, USA
>
>
>
>
>
>--
>Flexcoders Mailing List
>FAQ: 
>http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>Alternative FAQ location: 
>https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
>Search Archives: 
>http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo!
> 
>Groups Links
>
>http://groups.yahoo.com/group/flexcoders/
>
>http://groups.yahoo.com/group/flexcoders/join
>(Yahoo! ID required)
>
>
>flexcoders-unsubscr...@yahoogroups.com
>
>
>
>
>No virus found in this incoming message.
>Checked by AVG - www.avg.com
>Version: 8.5.339 / Virus Database: 270.12.34/2122 - Release Date: 
>05/19/09 06:21:00



Re: [flexcoders] Printing PDF417 barcodes in Flex...

2009-05-19 Thread Howard Fore
Why couldn't you just call the servlet from mx:httpService? What's the
output from the servlet? If it's a bitmap graphic file (jpeg, gif, png) you
won't need a font.

--
Howard Fore, howard.f...@hofo.com
"The universe tends toward maximum irony. Don't push it." - Jeff Atwood


On Tue, May 19, 2009 at 2:59 PM, Laurence MacNeill wrote:

> Has anybody here ever tried to print PDF417 barcodes in Flex?  It's
> far more than a simple embed-the-font kind of thing, as you need a
> proper encoder to encode the data before printing it in the PDF417 font.
>
> I can buy the font, no problem.  But the encoder is what's getting me
> -- closest encoder I can buy is a Java Servlet, and I have no idea
> if/how that can be integrated into a Flex app.  Does anyone know if
> that's possible?
>
> Of course, the best solution would be the source code for a proper
> encoder in ActionScript, I suppose.  Does anyone have that?  Or know
> where I can get it?
>
> Thanks,
>
> Laurence MacNeill
> Mableton, Georgia, USA
>
>
>
> 
>
> --
> 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] Printing PDF417 barcodes in Flex...

2009-05-19 Thread Laurence MacNeill
Has anybody here ever tried to print PDF417 barcodes in Flex?  It's 
far more than a simple embed-the-font kind of thing, as you need a 
proper encoder to encode the data before printing it in the PDF417 font.

I can buy the font, no problem.  But the encoder is what's getting me 
-- closest encoder I can buy is a Java Servlet, and I have no idea 
if/how that can be integrated into a Flex app.  Does anyone know if 
that's possible?

Of course, the best solution would be the source code for a proper 
encoder in ActionScript, I suppose.  Does anyone have that?  Or know 
where I can get it?

Thanks,

Laurence MacNeill
Mableton, Georgia, USA



[flexcoders] Re: AdvancedDataGrid, calling a sort on a column without a hidden header.

2009-05-19 Thread foobone9
Just sort the collection that the grid is bound to.

--- In flexcoders@yahoogroups.com, "djhatrick"  wrote:
>
> How do i duplicate the functionality of of sorting an advancedDatagrid 
> without a header release event.  
> 
> I'd like to sort my IHierarchicalCollectionView recursively.
> 
> Thanks,
> Patrick
>




[flexcoders] Re: filter complex arrayCollection

2009-05-19 Thread jones_a_h

So you have an ArrayCollection of XML objects that you want to filter on?

In the filterFunction just case your array item to XML and use E4X to find the 
node / attribute that you want to filter on and build it in your filter logic, 
i.e. logical that determines the true/false return value.

Thats why the filterFunction takes an arbitrary object - the array item - 
because it doesn't know what the object is OR how you want to filter it...you 
have to supply this logic.

You may want to consider the performance of this approach as the number of 
items in the ArrayCollection grows.

Huw

--- In flexcoders@yahoogroups.com, "Mark"  wrote:
>
> Thanks, but I'm looking to filter within children, so I need to dig down 
> deeper then the "root" level.  My understaning is the filterFunction will 
> only filter on the top most level.
> 
> -M
> 
> --- In flexcoders@yahoogroups.com, "valdhor"  wrote:
> >
> > Mark
> > 
> > Check into the filterFunction property of the ArrayCollection class.
> > 
> > This is how I use it in one section of my code...
> > 
> > filterText = "text I want to filter on";
> > detailsArrColl.filterFunction = processFilter;
> > 
> > public function processFilter(item:Object):Boolean
> > {
> >  if (item.name.toUpperCase().indexOf(filterText.toUpperCase()) >= 0)
> >   {
> >   return true;
> >   }
> >  return false;
> > }
> > 
> > 
> > HTH
> > 
> > 
> > 
> > Steve
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "Mark"  wrote:
> > >
> > > Thanks for the link Ivan...
> > >
> > > Although that's very cool stuff I don't believe that's what I'm
> > looking for in this case.  I'm really just looking to filter an
> > ArrayCollection that goes beyond one level.  I'm having a hard time with
> > this so I'm even wondering if I can do it with an ArrayCollection or if
> > I need to use something like XMLListCollection.
> > >
> > > Mark
> > >
> > >
> > >
> > > --- In flexcoders@yahoogroups.com, Ivan Perez manoperez@ wrote:
> > > >
> > > > have you ever seen OLAP Cube for flex 3?
> > > >
> > http://livedocs.adobe.com/flex/3/html/help.html?content=olapdatagrid_6.h\
> > tml
> > > >
> > > > Maybe it works.
> > > >
> > > >
> > > > On Mon, May 18, 2009 at 12:02 PM, Mark mark.pusateri@ wrote:
> > > >
> > > > >
> > > > >
> > > > > Is there a way to filter an ArrayCollection of hierarchical data? 
> > So if I
> > > > > have a structure as I layed out below where I have a number of
> > projects in
> > > > > my ArrayCollection, how can I filter on delCreationDate within
> > > > > deliverables/deliverable (there could be multiple deliverables)? 
> > I've
> > > > > looked around and can't find much on this.  If I can't filter an
> > > > > ArrayCollection in this way, is there another collection I can use
> > that will
> > > > > allow me to do this?   Thanks
> > > > >
> > > > > 
> > > > > 
> > > > > 120
> > > > > Deployment/pilot
> > > > > 07/01/2008
> > > > > 
> > > > > 
> > > > > 1
> > > > > 3/31/2009
> > > > > contactEmail>
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > False
> > > > > 14129911
> > > > > ICL Comms Internal Comms
> > > > > 
> > > > > 1
> > > > > 
> > > > > Open
> > > > > Active
> > > > > Jay Lindell
> > > > > Jay Lindell
> > > > > 
> > > > >
> > > > >   AITIC: Communication
> > > > >   1
> > > > >   1.5
> > > > >   03/30/2009
> > > > >   04/02/2009
> > > > >   04/02/2009
> > > > >   4/3/2009
> > > > >   Complete
> > > > >   
> > > > >   
> > > > >   144
> > > > >   03/30/2009
> > > > >   04/02/2009
> > > > >  
> > 04/02/2009
> > > > >   1
> > > > >   1.5
> > > > >   4/3/2009
> > > > >   Mark Pusateri
> > > > >   Writer
> > > > >   Complete
> > > > >  
> > > > >   
> > > > >   
> > > > > 
> > > > > 
> > > > > 
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Ivan Perez - Desenvolvimento Tecnológico
> > > > TecSinapse - www.tecsinapse.com.br
> > > > 11 9324-0097  /  19 8812-0809
> > > >
> > >
> >
>




[flexcoders] Prevent Tooltip From Scrolling

2009-05-19 Thread creativepragmatic
I am using a Tooltip to display the number of Inbox messages.  I do this by 
setting the errorString property of a component and then dispatching a 
mouseOver event on the component to get the number of messages to show for 60 
seconds.  The problem I have is how to get the Tooltip to stay next to the 
component rather than moving when the user scrolls.

Thank you in advance for any help,

Orville



[flexcoders] AdvancedDataGrid, calling a sort on a column without a hidden header.

2009-05-19 Thread djhatrick
How do i duplicate the functionality of of sorting an advancedDatagrid without 
a header release event.  

I'd like to sort my IHierarchicalCollectionView recursively.

Thanks,
Patrick



[flexcoders] Re: filter complex arrayCollection

2009-05-19 Thread Mark
Thanks, but I'm looking to filter within children, so I need to dig down deeper 
then the "root" level.  My understaning is the filterFunction will only filter 
on the top most level.

-M

--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> Mark
> 
> Check into the filterFunction property of the ArrayCollection class.
> 
> This is how I use it in one section of my code...
> 
> filterText = "text I want to filter on";
> detailsArrColl.filterFunction = processFilter;
> 
> public function processFilter(item:Object):Boolean
> {
>  if (item.name.toUpperCase().indexOf(filterText.toUpperCase()) >= 0)
>   {
>   return true;
>   }
>  return false;
> }
> 
> 
> HTH
> 
> 
> 
> Steve
> 
> 
> --- In flexcoders@yahoogroups.com, "Mark"  wrote:
> >
> > Thanks for the link Ivan...
> >
> > Although that's very cool stuff I don't believe that's what I'm
> looking for in this case.  I'm really just looking to filter an
> ArrayCollection that goes beyond one level.  I'm having a hard time with
> this so I'm even wondering if I can do it with an ArrayCollection or if
> I need to use something like XMLListCollection.
> >
> > Mark
> >
> >
> >
> > --- In flexcoders@yahoogroups.com, Ivan Perez manoperez@ wrote:
> > >
> > > have you ever seen OLAP Cube for flex 3?
> > >
> http://livedocs.adobe.com/flex/3/html/help.html?content=olapdatagrid_6.h\
> tml
> > >
> > > Maybe it works.
> > >
> > >
> > > On Mon, May 18, 2009 at 12:02 PM, Mark mark.pusateri@ wrote:
> > >
> > > >
> > > >
> > > > Is there a way to filter an ArrayCollection of hierarchical data? 
> So if I
> > > > have a structure as I layed out below where I have a number of
> projects in
> > > > my ArrayCollection, how can I filter on delCreationDate within
> > > > deliverables/deliverable (there could be multiple deliverables)? 
> I've
> > > > looked around and can't find much on this.  If I can't filter an
> > > > ArrayCollection in this way, is there another collection I can use
> that will
> > > > allow me to do this?   Thanks
> > > >
> > > > 
> > > > 
> > > > 120
> > > > Deployment/pilot
> > > > 07/01/2008
> > > > 
> > > > 
> > > > 1
> > > > 3/31/2009
> > > > contactEmail>
> > > > 
> > > > 
> > > > 
> > > > 
> > > > False
> > > > 14129911
> > > > ICL Comms Internal Comms
> > > > 
> > > > 1
> > > > 
> > > > Open
> > > > Active
> > > > Jay Lindell
> > > > Jay Lindell
> > > > 
> > > >
> > > >   AITIC: Communication
> > > >   1
> > > >   1.5
> > > >   03/30/2009
> > > >   04/02/2009
> > > >   04/02/2009
> > > >   4/3/2009
> > > >   Complete
> > > >   
> > > >   
> > > >   144
> > > >   03/30/2009
> > > >   04/02/2009
> > > >  
> 04/02/2009
> > > >   1
> > > >   1.5
> > > >   4/3/2009
> > > >   Mark Pusateri
> > > >   Writer
> > > >   Complete
> > > >  
> > > >   
> > > >   
> > > > 
> > > > 
> > > > 
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Ivan Perez - Desenvolvimento Tecnológico
> > > TecSinapse - www.tecsinapse.com.br
> > > 11 9324-0097  /  19 8812-0809
> > >
> >
>




Re: [flexcoders] Confused about modules using embedded fonts Flex 3.3

2009-05-19 Thread Greg Hess
Hi Alex,

Well, continued to add complexity in my test case to mock what our
real application does when loading modules however, still no problem
loading fonts and no need to set the Module.moduleFactory to the
SystemManager of the main application.

But can still confirm, without doing so on our application modules no
text will display...

I am stumped. In debugging the test case I can confirm that my
module.moduleFactory does not reference the main applications
SystemManager. I am concerned that my modules are not being
initialized properly and that I could have additional (much harder to
fix issues in the future). I don't mind fixing fonts by assigning the
module.moduleFactory to the applications SystemManager but only if it
is safe.

If you have any ideas as to how I could identify why my modules are
not initialized properly to use the embedded fonts it would be greatly
appreciated.

Are there any implications to setting the modules.moduleFactory to
reference the main applications SystemManager?

Thanks,

Greg



On Fri, May 15, 2009 at 4:37 PM, Greg Hess  wrote:
> Hi Alex,
>
> Well, got my scaled down test case, but it is working fine as you
> said. I don't need to anything special to have my modules inherit the
> embedded fonts in Label's LinkButtons ect...
>
> I must be doing something funny and I will continue and try and find
> where...and hope to post back next week with my findings.
>
> Thanks, have a great weekend!
>
> Greg
>
> On Fri, May 15, 2009 at 1:14 PM, Alex Harui  wrote:
>>
>>
>> Well, glad that worked, but it shouldn't be necessary for LinkButton. If you
>> can post a test case in two 20-line mxml files I'll try to take a look.
>>
>> Alex Harui
>> Flex SDK Developer
>> Adobe Systems Inc.
>> Blog: http://blogs.adobe.com/aharui
>>
>> -Original Message-
>> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
>> Behalf Of Greg Hess
>> Sent: Friday, May 15, 2009 8:46 AM
>> To: flexcoders@yahoogroups.com
>> Subject: Re: [flexcoders] Confused about modules using embedded fonts Flex
>> 3.3
>>
>> Thanks Alex!
>>
>> Not exactly sure why I don't get ANY "automatic" behavior even with
>> base Flex controls(LinkButton ect..) but by assigning the main
>> applications SystemManager(IFlexModuleFactory) that has the registered
>> fonts to the loaded modules moduleFactory it is working like a charm.
>>
>> Wow, one line of code fixed it.
>>
>> Once my module is loaded I set the modules moduleFactory property like this:
>>
>> private function onModuleLoaded( event:ModuleEvent ):void
>> {
>> ...
>> module.moduleFactory = Application.appliation.systemManager;
>>
>> }
>>
>> Is this what you meant and is this the right approach?
>>
>> Cheers,
>>
>> Greg
>>
>> On Thu, May 14, 2009 at 7:29 PM, Alex Harui  wrote:
>>>
>>>
>>> The key is that there must be code in the same SWF as the font that
>>> generates the class that will display the text (which might be from the
>>> module).  This should be automatic for any Flex control, but if you're
>>> using
>>> itemrenderers and/or classFactories you'll probably need to use
>>> ContextualClassFactory instead.
>>>
>>>
>>>
>>> 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 Greg Hess
>>> Sent: Thursday, May 14, 2009 11:02 AM
>>> To: flexcoders@yahoogroups.com
>>> Subject: [flexcoders] Confused about modules using embedded fonts Flex 3.3
>>>
>>>
>>>
>>>
>>> Hi Folks,
>>>
>>> I have a modular application built on Flex 3.3 SDK and have just
>>> introduced some embedded fonts and unfortunately all text is blank in
>>> the modules that attempt to use the embedded font. Popup windows
>>> displayed from my module shell(main application) work fine. Searching
>>> the archive and web I have found much discussion in relation to
>>> ActionScript 2 but not much regarding Flex 3 other than this adobe
>>> bug(3.2 sdk) http://bugs.adobe.com/jira/browse/SDK-18254 that has the
>>> same result (blank text), but in my testing my modules call to
>>> Font.enumerateFonts(false); does return my list of embedded fonts so I
>>> don't think the work around to register the fonts will help.
>>>
>>> Does anyone know how to allow a module to use fonts embedded in the
>>> main application in Flex 3.3?
>>>
>>> Do I have to register the embedded font when initializing each module?
>>>
>>> If my fonts are listed in Font.enumerateFonts(false) does that mean
>>> registration is already complete?
>>>
>>> Any help is much appreciated!
>>>
>>> Greg
>>>
>>>
>>
>> 
>>
>> --
>> 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] ListEventReason.CANCELLED problem

2009-05-19 Thread Blue
Hello All,

I'm having a problem getting the ListEventReason.CANCELLED to fire.  I
was under the assumption that the ListEventReason.CANCELLED fires when
you click outside of the List area but every time I click outside of the
list area the only thing that fires is the ListEventReason.OTHER.  How
can I get the ListEventReason.CANCELLED to work? Here is a code snippet
of what I have:

 
 
 


 

 ...




 

Any help on understanding this is greatly appreicated.

Thank you

Blue



RE: [flexcoders] LangRef == FAIL

2009-05-19 Thread Kenneth Sutherland
Use this URL to download the zip file 

http://livedocs.adobe.com/flex/3/flex3_documentation.zip

 

This still works.

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of djhatrick
Sent: 19 May 2009 16:36
To: flexcoders@yahoogroups.com
Subject: [flexcoders] LangRef == FAIL

 






http://livedocs.adobe.com/flex/3/langref/



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

RE: [flexcoders] LangRef == FAIL

2009-05-19 Thread Jonathon Stierman
This is why you download it and view locally. ;)

Saves everyone bandwidth too.

Jonathon

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of djhatrick
Sent: Tuesday, May 19, 2009 10:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] LangRef == FAIL





http://livedocs.adobe.com/flex/3/langref/

<><>

[flexcoders] LangRef == FAIL

2009-05-19 Thread djhatrick
http://livedocs.adobe.com/flex/3/langref/



[flexcoders] Re: Flex - Create Application From Database

2009-05-19 Thread valdhor
The problem is that there does not seem to be a free tutorial out there (That I 
could find). At least with the paid for course you get all the rest as well as 
what you need. It depends on how much your time is worth. I found the video 
tutorials worth it to me. YMMV.



--- In flexcoders@yahoogroups.com, Angelo Anolin  wrote:
>
> Hi,
> 
> Thanks for the link.  But I think the courses there requires that you need to 
> enroll and pay up for their courses.
> 
> I am still having trouble making this Create Application from Database thing 
> to work. Although I managed to get the web service running (for another 
> separate application).
> 
> I still got a lot more to learn and I am very thankful that this group exists.
> 
> Kind Regards,
> 
> Angelo
> 
> 
> 
> 
> 
> From: valdhor 
> To: flexcoders@yahoogroups.com
> Sent: Friday, 15 May, 2009 2:07:07
> Subject: [flexcoders] Re: Flex - Create Application From Database
> 
> 
> 
> 
> 
> If you still can't get it to work, you may like to look at http://www.lynda. 
> com/home/ DisplayCourse. aspx?lpk2= 437 . There is a course component labeled 
> "Using Flex Builder 3's ASP.NET Data Wizard".
> 
> --- In flexcod...@yahoogro ups.com, "valdhor"  wrote:
> >
> > I don't use .NET or NorthWind.
> > 
> > I would try http://localhost: 12345 or http://localhost: 12345/service. 
> > asmx as the server name.
> > 
> > Put the database name you want to use in the Database Name field and leave 
> > the other fields as is (Flex automatically populates the user name field 
> > with sa).
> > 
> > Then try clicking the "Test Connection" button. Flex will try to connect 
> > and give you some sort of error if it can't.
> > 
> > As I understand it, you should be able to connect to a NorthWind database.
> > 
> > 
> > HTH
> > 
> > 
> > 
> > Steve
> > 
> > 
> > 
> > --- In flexcod...@yahoogro ups.com, Angelo Anolin  wrote:
> > >
> > > Hi Steve,
> > > I am trying to connect to the NorthWind database which I placed in the 
> > > App_Data folder of my web service.
> > > When I run the webservice, it runs in the address:
> > > http://localhost: 12345/service. asmx
> > > 
> > > So would I be placing the localhost:12345 as my host url for the database?
> > > 
> > > How do I set the northwind (or any other SQL Server database to run in 
> > > the localhost for this matter?)
> > > 
> > > By default the username for the SQL Server Express database is sa and 
> > > password is left blank.
> > > 
> > > Thanks a lot.
> > > 
> > > Regards,
> > > 
> > > Angelo
> > > 
> > > 
> > > 
> > > 
> > > 
> > >  _ _ __
> > > From: valdhor 
> > > To: flexcod...@yahoogro ups.com
> > > Sent: Friday, 15 May, 2009 0:04:47
> > > Subject: [flexcoders] Re: Flex - Create Application From Database
> > > 
> > > 
> > > 
> > > 
> > > 
> > > So, when I do this the window says "Simple MySQL Connection-> Create a 
> > > connection to a MySQL Database". At this point you plug in details for 
> > > your database connection.. .
> > > 
> > > Host URL: The IP address or hostname of your MySQL Database (If it's on 
> > > your local machine use localhost or 127.0.0.1 or your local machines IP 
> > > address).
> > > 
> > > Database Name: The database you want to connect to (You will select a 
> > > table later).
> > > 
> > > User Name: The User Name you use to connect to the database above.
> > > 
> > > Password: The Password you use to connect to the database above.
> > > 
> > > You should then click the "Test Connection" button to see if Flex can 
> > > connect to the database with the parameters you have entered.
> > > 
> > > HTH
> > > 
> > > Steve
> > > 
> > > --- In flexcod...@yahoogro ups.com, Angelo Anolin  
> > > wrote:
> > > >
> > > > 
> > > > Hi All,
> > > > 
> > > > I have FB3 on my machine, coupled with VS 2008 Express. 
> > > > 
> > > > When I click on Data | Create Application From Database, I get the 
> > > > Popup WIndow - Create Application From Database.
> > > > 
> > > > I click on the New button beside the Connection and I am directed to 
> > > > the Create Connection Profile. I then enter the Name for the New 
> > > > Connection and click on Next button..
> > > > 
> > > > On the next screen, I have the following fields:
> > > > 
> > > > Server Name: localhost
> > > > Database Name
> > > > User Name
> > > > Password
> > > > 
> > > > I cannot figure out what values need to be entered into these fields. 
> > > > Kindly help me sort this out so that I could leverage the database app 
> > > > capability of Flex.
> > > > 
> > > > Thanks.
> > > > 
> > > > P.S. 
> > > > When I run my web service application, I am able to connect to it. 
> > > > Inside my web service, I have already defined the Northwind database in 
> > > > the App_Data folder.
> > > >
> > >
> >
>




[flexcoders] Re: filter complex arrayCollection

2009-05-19 Thread valdhor
Mark

Check into the filterFunction property of the ArrayCollection class.

This is how I use it in one section of my code...

filterText = "text I want to filter on";
detailsArrColl.filterFunction = processFilter;

public function processFilter(item:Object):Boolean
{
 if (item.name.toUpperCase().indexOf(filterText.toUpperCase()) >= 0)
  {
  return true;
  }
 return false;
}


HTH



Steve


--- In flexcoders@yahoogroups.com, "Mark"  wrote:
>
> Thanks for the link Ivan...
>
> Although that's very cool stuff I don't believe that's what I'm
looking for in this case.  I'm really just looking to filter an
ArrayCollection that goes beyond one level.  I'm having a hard time with
this so I'm even wondering if I can do it with an ArrayCollection or if
I need to use something like XMLListCollection.
>
> Mark
>
>
>
> --- In flexcoders@yahoogroups.com, Ivan Perez manoperez@ wrote:
> >
> > have you ever seen OLAP Cube for flex 3?
> >
http://livedocs.adobe.com/flex/3/html/help.html?content=olapdatagrid_6.h\
tml
> >
> > Maybe it works.
> >
> >
> > On Mon, May 18, 2009 at 12:02 PM, Mark mark.pusateri@ wrote:
> >
> > >
> > >
> > > Is there a way to filter an ArrayCollection of hierarchical data? 
So if I
> > > have a structure as I layed out below where I have a number of
projects in
> > > my ArrayCollection, how can I filter on delCreationDate within
> > > deliverables/deliverable (there could be multiple deliverables)? 
I've
> > > looked around and can't find much on this.  If I can't filter an
> > > ArrayCollection in this way, is there another collection I can use
that will
> > > allow me to do this?   Thanks
> > >
> > > 
> > > 
> > > 120
> > > Deployment/pilot
> > > 07/01/2008
> > > 
> > > 
> > > 1
> > > 3/31/2009
> > > contactEmail>
> > > 
> > > 
> > > 
> > > 
> > > False
> > > 14129911
> > > ICL Comms Internal Comms
> > > 
> > > 1
> > > 
> > > Open
> > > Active
> > > Jay Lindell
> > > Jay Lindell
> > > 
> > >
> > >   AITIC: Communication
> > >   1
> > >   1.5
> > >   03/30/2009
> > >   04/02/2009
> > >   04/02/2009
> > >   4/3/2009
> > >   Complete
> > >   
> > >   
> > >   144
> > >   03/30/2009
> > >   04/02/2009
> > >  
04/02/2009
> > >   1
> > >   1.5
> > >   4/3/2009
> > >   Mark Pusateri
> > >   Writer
> > >   Complete
> > >  
> > >   
> > >   
> > > 
> > > 
> > > 
> > >
> > >
> > >
> > >
> >
> >
> >
> > --
> > Ivan Perez - Desenvolvimento Tecnológico
> > TecSinapse - www.tecsinapse.com.br
> > 11 9324-0097  /  19 8812-0809
> >
>



[flexcoders] Foaming at the mouth for Flex4... or Flashbuilder4

2009-05-19 Thread djhatrick
BTW, I am going to keep calling myself a flex developer (pays better)... 

When's the beta coming out?  June when?

thanks,
Patrick



Re: [flexcoders] MVC view and model communication

2009-05-19 Thread Richard Rodseth
A couple of techniques to be aware of:

1) Binding functions

currentState="{computeState(model.username)}"

(computeState is in the Script block of your MXML and will fire when any of
the argument expressions change)

2) Computed properties with custom getters/setters:

[Bindable(event="userStateChanged")]
public function get userState():String {
   // return something based on user name
}

[Bindable(event="userNameChanged")]
public function get userName():String {
   return _userName;
}
public function set userName(value:String):void {
   _userName = value; // Should really check that it's different
   dispatchEvent(new Event("userNameChanged"));
   dispatchEvent(new Event("userStateChanged"));
}


On Tue, May 19, 2009 at 12:10 AM, steve horvath  wrote:

>
>
> I have a view that I would like to change state when a field in my model
> changes values. Up until now I've been using data binding to link my view
> and model. It seems like my current situation I will have to dispatch an
> event from the model and have the view watch it.
>
> In the model:
> A username string that changes occasionally and is sometimes null.
>
> In the view:
> A List - should become unselected if the username becomes null.
> A State - should change when the username changes values.
>
> Do I need to register an event handler in my view? Can I do this somehow
> through data binding? Or is there another way?
>
> ascii
>
>  
>


RE: [flexcoders] getting only last NumericStepper change event

2009-05-19 Thread Alex Harui
Often folks listen to focusOut so the person has to "leave" the control

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 ronwagner0001
Sent: Monday, May 18, 2009 10:51 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] getting only last NumericStepper change event





I am using a NumericStepper and am looking for a way to turn off sending of the 
change event while the mouse is down on the arrows. I only want the last event 
with the ending value. I thought there would be a property to control this 
since it seems like it would be a common thing to want to do but I can't find 
one. Am I overlooking something or any known best ways to do this?

THanks
Ron Wagner



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

2009-05-19 Thread valdhor
I did the same as you did and it works fine

main.mxml:

http://www.adobe.com/2006/mxml"; width="700"
height="250"
borderStyle="solid" creationComplete="CallMeNow()">
 
 
 


CallTree.mxml:

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




--- In flexcoders@yahoogroups.com, "timgerr"  wrote:
>
> OK, Here is what I did.  I wanted to know if there was a problem with
my code or was it the tree stuff.  I went to Adobe Live Docs to get a
tree example
(http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhe\
lp.htm?context=LiveDocs_Book_Parts&file=dragdrop_081_06.html).  I took
this code and created a Canvas Component from it.  I then created an app
and called the code from it.
>
> I then called the app and when I click on any of the items in the tree
I get this error:
> ArgumentError: Error #2025: The supplied DisplayObject must be a child
of the caller.
>  at flash.display::DisplayObjectContainer/getChildIndex()
>  at
mx.managers::SystemManager/getChildIndex()[C:\autobuild\3.2.0\frameworks\
\projects\framework\src\mx\managers\SystemManager.as:1652]
>  at
mx.managers::SystemManager/mouseDownHandler()[C:\autobuild\3.2.0\framewo\
rks\projects\framework\src\mx\managers\SystemManager.as:3439]
>
> Here is the code that I used for the component CallTree.mxml:
>
> [CODE]
> 
> 
> http://www.adobe.com/2006/mxml";
> width="700" height="250"
> borderStyle="solid">
>
> 
> 
> 
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
>  height="200" width="200"
> showRoot="false"
> labelField="@label"
> dragEnabled="true"
> dropEnabled="true"
> dragMoveEnabled="true"
> allowMultipleSelection="true"
> creationComplete="initApp();"/>
> 
> [/CODE]
>
> Here is the application that is calling CallTree.mxml
> [CODE]
> 
> http://www.adobe.com/2006/mxml";
> width="700" height="250"
> borderStyle="solid"
> creationComplete="CallMeNow()">
>  
>   
>  
> 
> [/CODE]
>
> I am not sure what to do here.
>
> Thanks for the read,
> timgerr
>



[flexcoders] Re: filter complex arrayCollection

2009-05-19 Thread Mark
Thanks for the link Ivan...

Although that's very cool stuff I don't believe that's what I'm looking for in 
this case.  I'm really just looking to filter an ArrayCollection that goes 
beyond one level.  I'm having a hard time with this so I'm even wondering if I 
can do it with an ArrayCollection or if I need to use something like 
XMLListCollection.

Mark



--- In flexcoders@yahoogroups.com, Ivan Perez  wrote:
>
> have you ever seen OLAP Cube for flex 3?
> http://livedocs.adobe.com/flex/3/html/help.html?content=olapdatagrid_6.html
> 
> Maybe it works.
> 
> 
> On Mon, May 18, 2009 at 12:02 PM, Mark  wrote:
> 
> >
> >
> > Is there a way to filter an ArrayCollection of hierarchical data?  So if I
> > have a structure as I layed out below where I have a number of projects in
> > my ArrayCollection, how can I filter on delCreationDate within
> > deliverables/deliverable (there could be multiple deliverables)?  I've
> > looked around and can't find much on this.  If I can't filter an
> > ArrayCollection in this way, is there another collection I can use that will
> > allow me to do this?   Thanks
> >
> > 
> > 
> > 120
> > Deployment/pilot
> > 07/01/2008
> > 
> > 
> > 1
> > 3/31/2009
> > contactEmail>
> > 
> > 
> > 
> > 
> > False
> > 14129911
> > ICL Comms Internal Comms
> > 
> > 1
> > 
> > Open
> > Active
> > Jay Lindell
> > Jay Lindell
> > 
> >
> >   AITIC: Communication
> >   1
> >   1.5
> >   03/30/2009
> >   04/02/2009
> >   04/02/2009
> >   4/3/2009
> >   Complete
> >   
> >   
> >   144
> >   03/30/2009
> >   04/02/2009
> >   04/02/2009
> >   1
> >   1.5
> >   4/3/2009
> >   Mark Pusateri
> >   Writer
> >   Complete
> >  
> >   
> >   
> > 
> > 
> > 
> >
> >
> >  
> >
> 
> 
> 
> -- 
> Ivan Perez - Desenvolvimento Tecnológico
> TecSinapse - www.tecsinapse.com.br
> 11 9324-0097  /  19 8812-0809
>




[flexcoders] FormItem with Datagrid extra white space

2009-05-19 Thread markgoldin_2000
 










I want to make my DG shorter than a default. It gets shorter but next FormItem 
under will be shown as I would not make DG shorter, another words there is a 
large vertical white gap between FormItems.

How can I get rid this vertical gap?

Thanks



[flexcoders] DataGrid drag and drop

2009-05-19 Thread markgoldin_2000
If I have a source DG with dragMoveEnabled="true" should d&d remove dragged 
item from the source dataProvider as well or I have to do it manually?

Thanks



Re: [flexcoders] Adobe Flash Help Urgent

2009-05-19 Thread Guy Morton
Look at your web server compression settings. SSL. caching. All are  
things IE screws up on a regular basis.


Tell your users to download a browser that works. :-)

On 19/05/2009, at 5:49 PM, saritha wrote:




I have a web page with external swf file(.swf)in it.
The external swf file loads images dynamically.
The files are put up in web server.
If the web server is not clustered (say it runs in single instance  
mode) the external swf loads properly in Internet Explorer  
6.0,Internet Explorer 7.0 , Firefox 3.0 and Safari 3.0.

If the web server is clustered(say it runs with mulitple instances)
the external swf does not load in Internet Explorer 6.0 and Internet  
Explorer 7.0.But it still loads properly in firefox and safari.


Its has become a show stopper issue.
Any Help on this would be appreciated.

Thanks






RE: [flexcoders] Call a Flex Function by Name

2009-05-19 Thread Jake Churchill
I would separate the classname out into another argument in your XML, so in
your example that's not working, you'd have:

 



 

Then you'd have to dynamically instantiate that class and call the assigned
method.  I have a couple tutorials on my blog about doing this:

 

http://jake.cfwebtools.com/2009/04/08/dynamically-instantiate-a-class/ 

http://jake.cfwebtools.com/2009/05/15/flex-dynamic-casting-of-data/ 

 

The 2nd one deals with data casting which might not be as relevant but I
still do the class stuff dynamically.  Here's an example of what this might
look like for you:

 

var className:Class = Class( getDefinitionByName( getQualifiedClassName(
"ProjectProperties" ) ) );

var function:Function = className["setValue"];

function.call(className[or null], parmaters.);

 

FYI, this code is completely untested, just trying to give you an idea.

 

Jake Churchill

CF Webtools

11204 Davenport, Ste. 100

Omaha, NE  68154

http://www.cfwebtools.com

402-408-3733 x103

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of edlueze
Sent: Tuesday, May 19, 2009 6:00 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Call a Flex Function by Name

 






I'm using a Menu control. Normally I'd catch the Menu's control event and
then act on whatever selection the user made with something like a switch
block.

But I wanted to see if I could be more clever and embed the function name
and parameters in the XML Menu data provider itself, like this:














If you look at each  you'll see a 'callback' attribute and an
'arguments' attribute. The arguments are comma-delineated that I need to
parse into an Array and scrub: for example, by converting string references
into real ones like this:

if( this.hasOwnProperty(arg) )
arrayArguments[i] = this[arg];

I then have been successful in using the callLater function like this:

callLater(this[callback], arrayArguments);

So far so good - it works great!

But I've hit a tiny snag. If the function is in a foreign class then
everything falls apart. For example, this won't work:

callback = "ProjectProperties.setValue"
arguments = "ShowAlertsWindow, true"

Because there is no such thing as this[ProjectProperties.setValue] the
callLater function can't handle it. I can easily build a little stub but I'm
hoping to keep things clean and elegant.

I've been searching for a way to call-by-name in Flex but haven't found one
(except for callLater). Is there a way I can do this?





[flexcoders] MVC view and model communication

2009-05-19 Thread steve horvath
I have a view that I would like to change state when a field in my model 
changes values.  Up until now I've been using data binding to link my view and 
model.  It seems like my current situation I will have to dispatch an event 
from the model and have the view watch it.

In the model:
A username string that changes occasionally and is sometimes null.

In the view:
A List - should become unselected if the username becomes null.
A State - should change when the username changes values.

Do I need to register an event handler in my view?  Can I do this somehow 
through data binding?  Or is there another way?

ascii



Re: [flexcoders] Adobe Flash Help Urgent

2009-05-19 Thread Ron Wagner

On May 19, 2009, at 3:49 AM, saritha wrote:

>
>
> I have a web page with external swf file(.swf)in it.
> The external swf file loads images dynamically.
> The files are put up in web server.
> If the web server is not clustered (say it runs in single instance  
> mode) the external swf loads properly in Internet Explorer  
> 6.0,Internet Explorer 7.0 , Firefox 3.0 and Safari 3.0.
> If the web server is clustered(say it runs with mulitple instances)
> the external swf does not load in Internet Explorer 6.0 and Internet  
> Explorer 7.0.But it still loads properly in firefox and safari.
>
> Its has become a show stopper issue.
> Any Help on this would be appreciated.
>
> Thanks
>

I've had to add a http://www.full/path/to/ 
html_document.html"> to get everything to load on Windows. Have you  
checked the webserver error logs to see where it wants to grab the  
missing items from?

Ron



[flexcoders] getting only last NumericStepper change event

2009-05-19 Thread ronwagner0001
I am using a NumericStepper and am looking for a way to turn off sending of the 
change event while the mouse is down on the arrows. I only want the last event 
with the ending value. I thought there would be a property to control this 
since it seems like it would be a common thing to want to do but I can't find 
one. Am I overlooking something or any known best ways to do this?

THanks
Ron Wagner



[flexcoders] Line of error in file

2009-05-19 Thread mordsm
Hi all

I am getting I got 1086 : expecting semicolon before target  but it doesn't 
refer to any line or file
even when I click it

how can I know to which component / mxml it belongs and on which line

moshe



[flexcoders] Re: Doing "math" with Date()

2009-05-19 Thread Amy
--- In flexcoders@yahoogroups.com, Laurence MacNeill  wrote:
>
> At 10:10 PM 5/18/2009, you wrote:
> 
> 
> >I have a list of events in a table, and I need to check and see if
> >someone has selected two events that time-conflict with one
> >another. How do I do "math" with the Date() function in Flex to see
> >if two events occur at the same time or not? Are there other
> >date-and-time functions in Flex?
> 
> Never mind -- I finally found it in LiveDocs.  Man, I wish that was 
> easier to find stuff in.

Are you using Builder?  If so, try something like:
http://flexdiary.blogspot.com/2008/07/getting-help-in-flex-builder.html

HTH;

Amy



Re: [flexcoders] HTML Formatting lost in TextArea

2009-05-19 Thread Dave Glasser

**bump**

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

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

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

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

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



Re: [flexcoders] Adobe Flash Help Urgent

2009-05-19 Thread Tom Chiverton
P.S. It's urgent to you, not to anyone else. If it's really urgent and 
important, get a support contract.

-- 
Helping to collaboratively establish back-end customized dynamic 24/7 
customers as part of the IT team of the year, '09 and '08

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



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

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

CONFIDENTIALITY

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

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

Re: [flexcoders] Re: modify item before binding to datagrid

2009-05-19 Thread Angelo Anolin
My apologies but I forgot to mention that I am getting the data from a .NET web 
service which is a dataset and then returned via string (XML) using the .NET 
function 

String strConn = 
ConfigurationManager.ConnectionStrings["conString"].ConnectionString;
SqlConnection dbConnection = new SqlConnection(strConn);
String strCommand = "SELECT SupplierID, CompanyName, ContactName, 
ContactTitle, Address FROM Suppliers ";
SqlDataAdapter objCommand = new SqlDataAdapter(strCommand, 
dbConnection);
DataSet DS = new DataSet();
objCommand.Fill(DS);
dbConnection.Close();
dbConnection = null;
DataTable DT = DS.Tables[0];

return DS.GetXml();


So, basically, I think the SupplierID which is numeric originally becomes a 
string. How can I then prior to binding the same to the datagrid control, 
convert its data type back to numeric so that when I perform a sort, it would 
sort the supplierID interpreting it as a numeric value?

Thanks.



From: markgoldin_2000 
To: flexcoders@yahoogroups.com
Sent: Monday, 18 May, 2009 23:44:33
Subject: [flexcoders] Re: modify item before binding to datagrid





Here is what I am doing.
column definition:

and:
private function sortNumericColumnTr ackTotal( itemA:Object, itemB:Object) :int
{
return ObjectUtil.numericC ompare(itemA[ TrackTotal. col], itemB[TrackTotal. 
col]);
} 

where TrackTotal is a DG's id.

HTH

--- In flexcod...@yahoogro ups.com, Angelo Anolin  wrote:
>
> 
> Hi.
> 
> I am quite new in Flex and would like to ask a simple question.
> 
> I am retrieving datasets from a .NET webservice and binding the same to a 
> datagrid.  The datagrid comes with a feature that when you click on any of 
> the headers, the column is sorted ASC or DESC.
> 
> Now, one column which I am binding to is originally a numeric column.  But 
> when it binds to the datagrid, it's data type becomes string.  Is it possible 
> that prior to binding the said column to the datagrid, I would be able to 
> convert it back to its numeric data taype?  Since sorting the column in a 
> string format would give a different result as compared to sorting the same 
> column in a numeric format.
> 
> Thanks.
> 
> Regards.
>


   


  

[flexcoders] Call a Flex Function by Name

2009-05-19 Thread edlueze
I'm using a Menu control. Normally I'd catch the Menu's control event and then 
act on whatever selection the user made with something like a switch block.

But I wanted to see if I could be more clever and embed the function name and 
parameters in the XML Menu data provider itself, like this:


  








  


If you look at each  you'll see a 'callback' attribute and an 
'arguments' attribute. The arguments are comma-delineated that I need to parse 
into an Array and scrub: for example, by converting string references into real 
ones like this:

if( this.hasOwnProperty(arg) )
arrayArguments[i] = this[arg];

I then have been successful in using the callLater function like this:

callLater(this[callback], arrayArguments);

So far so good - it works great!

But I've hit a tiny snag. If the function is in a foreign class then everything 
falls apart. For example, this won't work:

callback = "ProjectProperties.setValue"
arguments = "ShowAlertsWindow, true"

Because there is no such thing as this[ProjectProperties.setValue] the 
callLater function can't handle it. I can easily build a little stub but I'm 
hoping to keep things clean and elegant.

I've been searching for a way to call-by-name in Flex but haven't found one 
(except for callLater). Is there a way I can do this?




Re: [flexcoders] Adobe Flash Help Urgent

2009-05-19 Thread David Kramer
 crossdomain file? just off the cuff.

  - Original Message -
  From: saritha
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Adobe Flash Help Urgent
  Date: Tue, 19 May 2009 07:49:27 -



  I have a web page with external swf file(.swf)in it.
  The external swf file loads images dynamically.
  The files are put up in web server.
  If the web server is not clustered (say it runs in single instance
  mode) the external swf loads properly in Internet Explorer
  6.0,Internet Explorer 7.0 , Firefox 3.0 and Safari 3.0.
  If the web server is clustered(say it runs with mulitple instances)
  the external swf does not load in Internet Explorer 6.0 and Internet
  Explorer 7.0.But it still loads properly in firefox and safari.

  Its has become a show stopper issue.
  Any Help on this would be appreciated.

  Thanks

  



David Kramer CISSP
Secure Patterns
917.652.0632
www.securepatterns.com


[flexcoders] Adobe Flash Help Urgent

2009-05-19 Thread saritha
I have a web page with external swf file(.swf)in it.
The external swf file loads images dynamically.
The files are put up in web server.
If the web server is not clustered (say it runs in single instance mode) the 
external swf loads properly in Internet Explorer 6.0,Internet Explorer 7.0 , 
Firefox 3.0 and Safari 3.0.
If the web server is clustered(say it runs with mulitple instances)
 the external swf does not load  in Internet Explorer 6.0 and Internet Explorer 
7.0.But it still loads properly in firefox and safari.

Its has become a show stopper issue.
Any Help on this would be appreciated.

Thanks 




[flexcoders] Adobe Flash Help Urgent

2009-05-19 Thread saritha
I have a web page with external swf file(.swf)in it.
The external swf file loads images dynamically.
The files are put up in web server.
If the web server is not clustered (say it runs in single instance mode) the 
external swf loads properly in Internet Explorer 6.0,Internet Explorer 7.0 , 
Firefox 3.0 and Safari 3.0.
If the web server is clustered(say it runs with mulitple instances)
 the external swf does not load  in Internet Explorer 6.0 and Internet Explorer 
7.0.But it still loads properly in firefox and safari.

Its has become a show stopper issue.
Any Help on this would be appreciated.

Thanks