[flexcoders] Re:Do I *REALLY* need Flex Data Services for WebServices?

2007-03-30 Thread iilsley

Is there a workaround  using  Flex-WS with a  PHP-Soap  server ?

I don't have the budget for FDS  - even the free one  [:)]





[flexcoders] Toggling Menu Item?

2007-03-30 Thread Sascha
Hi list,

 

Since I cannot find any information about this anywhere else .

 

How do you toggle a (flex 2 ) check/radio menu item from ActionScript? Say I
use an XML object to populate my MenuBar with .

 

private var _menuXML:XMLList =

<>







;

 

var _menubar:MenuBar = new MenuBar();

_menubar.dataProvider = _menuXML;

 

 

. how are you able to toggle the check item on/off with ActionScript? I
don't see any way to reach the specific item via MenuBar properties.

 

Thanks in advance for any tips!

Sascha

 

 



[flexcoders] CheckBox Validator

2007-03-30 Thread ajudah987
Hi,

I have a checkbox i need to force people to tick before accessing the 
next step in the checkout process. I was looking at using a validator 
to do this but i can't get this to work. Is this possible?

Cheers,

AJ



[flexcoders] ArrayCollection to xml file function

2007-03-30 Thread Impudent1
I am trying to get some things working with my app and apollo preview.

I can get it to save a file locally when it goes offline fine. But I would like 
to start extending it so that I can give it an arrayCollection(s) and it will 
write out an xml structured file.

This is what I am using to save a basic string.


 private function saveFile():void{
 var file:File = 
File.appStorageDirectory.resolve("Files/userinfo.txt");
 var stream:FileStream = new FileStream()
 stream.open(file, FileMode.WRITE);
 var str:String = loggedinuser.toString() + "\r " + "other data";
 str = str.replace(/\r/g, File.lineEnding);
 stream.writeUTFBytes(str);
 stream.close();
 str = "";
 }


any snippets or links to show me how to export arrays/arrayCollections would be 
appreciated :)

Impudent1
LeapFrog Productions


[flexcoders] Re: Again.

2007-03-30 Thread Tim Hoff
Let's try this without the typo's.

Cool, I knew that you would get it. :) For something like this, you 
can also bypass the change event (if you just need a value) by 
binding directly:



or, whatever field you want.

Cheers,
-TH


--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> Cool, I knew that you would get.  For aomething like this, you can 
> also bypass the change event (if you just need a value) by binding 
> directly:
> 
>  width="150" 
> height="100%"
> text="{ ProcessorName.selectedItem.ProcessorID }/>
> 
> or, whatever field you want.
> 
> Cheers,
> -TH
> 
> --- In flexcoders@yahoogroups.com, Jeremy Watson  
> wrote:
> >
> > Hey Tim,
> > 
> > Thanks for that. I tried id then realised that it wouldn't work 
> because I needed to have the id name out of the database i.e. 
> ProcessorID. Then it worked. Thanks again!
> > 
> > Jeremy
> > 
> > - Original Message 
> > From: Tim Hoff 
> > To: flexcoders@yahoogroups.com
> > Sent: Saturday, 31 March, 2007 11:00:03 AM
> > Subject: [flexcoders] Re:  Again.
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >   
> > 
> > 
> > 
> > Alert.show(Processo rName.selectedIt em.lastResult) 
> > 
> > 
> > 
> > to
> > 
> > 
> > 
> > Alert.show(Processo rName.selectedIt em.id) 
> > 
> > 
> > 
> > -TH
> > 
> > 
> > 
> > --- In [EMAIL PROTECTED] ups.com, Jeremy Watson 
>  
> > 
> > wrote:
> > 
> > >
> > 
> > > Hey Guys,
> > 
> > > 
> > 
> > > Man this combo thing is pissin me off! Let me ask this simple 
> > 
> > question first.
> > 
> > > 
> > 
> > > Is this the correct way of getting data out of the database 
and 
> > 
> > into the combobox?  What I'm trying to do is just get the ID out 
> of 
> > 
> > the combobox and alert it. ONCE i get that far I would like to 
> call 
> > 
> > another function  (yet to be created) which will do a remote 
call 
> > 
> > and bring in values to bind to a text box based on what was 
> selected 
> > 
> > from the combo box (can this even be done?). Does that make 
sense? 
> I 
> > 
> > would've had this done in about 10 mins in CF and HTMLgod do 
I 
> > 
> > miss it. 
> > 
> > > 
> > 
> > > My Example code is below. Any help would be grateful. 
> > 
> > > 
> > 
> > > Jeremy.
> > 
> > > 
> > 
> > > 
> > 
> > >
> > 
> > >   
> > 
> > >
> > 
> > >  > 
> > source="Cows3. cows" showBusyCursor= "true"/>
> > 
> > > 
> > 
> > > > 
> > open="dropEvt( event)" close="dropEvt( event)" 
> > 
> > dataProvider= "{remoteService. getProcessors. lastResult} " 
> > 
> > labelField=" ProcessorName" x="403" y="97">
> > 
> > >
> > 
> > > 
> > 
> > > > 
> > change="changeEvt( event)" > 
> > 
> > >   
> > 
> > >  
> > 
> > >  
> > 
> > >  
> > 
> > >   
> > 
> > >
> > 
> > >
> > 
> > > 
> > 
> > > 
> > 
> > > 
> > 
> > > 
> > 
> > > 
> > 
> > > Send instant messages to your online friends 
> > 
> > http://au.messenger .yahoo.com
> > 
> > >
> > 
> > 
> > 
> > 
> > 
> > 
> >   
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Send instant messages to your online friends 
> http://au.messenger.yahoo.com
> >
>




[flexcoders] RegExp Help

2007-03-30 Thread jmfillman
I'm using the following pattern to analyze simple text: /\b\w+/gi

This seems to work well, except for hyphenated words, like "pre-
school", and contractions, like "isn't".

Please help!!



[flexcoders] Re: Again.

2007-03-30 Thread Tim Hoff
Cool, I knew that you would get.  For aomething like this, you can 
also bypass the change event (if you just need a value) by binding 
directly:

 
> >  }
> 
> > 
> 
> >  // Display a selected item's label field and index for 
> 
> change events.
> 
> >  private function changeEvt(event: Event):void {
> 
> >   Alert.show
> 
> (ProcessorName. selectedItem. lastResult) 
> 
> > forChange.text+ =event.currentTa rget.selectedIte 
m.label 
> 
> + " " + 
> 
> >event.currentTarget .selectedIndex + "\n";
> 
> >  }
> 
> >   ]]>
> 
> >
> 
> >  
> source="Cows3. cows" showBusyCursor= "true"/>
> 
> > 
> 
> > 
> open="dropEvt( event)" close="dropEvt( event)" 
> 
> dataProvider= "{remoteService. getProcessors. lastResult} " 
> 
> labelField=" ProcessorName" x="403" y="97">
> 
> >
> 
> > 
> 
> > 
> change="changeEvt( event)" > 
> 
> >   
> 
> >  
> 
> >  
> 
> >  
> 
> >   
> 
> >
> 
> >
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > Send instant messages to your online friends 
> 
> http://au.messenger .yahoo.com
> 
> >
> 
> 
> 
> 
> 
> 
>   
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Send instant messages to your online friends 
http://au.messenger.yahoo.com
>




Re: [flexcoders] Re: Again.

2007-03-30 Thread Jeremy Watson
Hey Tim,

Thanks for that. I tried id then realised that it wouldn't work because I 
needed to have the id name out of the database i.e. ProcessorID. Then it 
worked. Thanks again!

Jeremy

- Original Message 
From: Tim Hoff <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Saturday, 31 March, 2007 11:00:03 AM
Subject: [flexcoders] Re:  Again.









  



Alert.show(Processo rName.selectedIt em.lastResult) 



to



Alert.show(Processo rName.selectedIt em.id) 



-TH



--- In [EMAIL PROTECTED] ups.com, Jeremy Watson  

wrote:

>

> Hey Guys,

> 

> Man this combo thing is pissin me off! Let me ask this simple 

question first.

> 

> Is this the correct way of getting data out of the database and 

into the combobox?  What I'm trying to do is just get the ID out of 

the combobox and alert it. ONCE i get that far I would like to call 

another function  (yet to be created) which will do a remote call 

and bring in values to bind to a text box based on what was selected 

from the combo box (can this even be done?). Does that make sense? I 

would've had this done in about 10 mins in CF and HTMLgod do I 

miss it. 

> 

> My Example code is below. Any help would be grateful. 

> 

> Jeremy.

> 

> 

>

>   

>

> 

> 

>

>

> 

> 

>   

>  

>  

>  

>   

>

>

> 

> 

> 

> 

> 

> Send instant messages to your online friends 

http://au.messenger .yahoo.com

>






  















Send instant messages to your online friends http://au.messenger.yahoo.com 

Re: [flexcoders] re naming flex builder

2007-03-30 Thread John Barrett
Yeah, I thought that it was cool, but now with flex builder, it is so easy to 
compile I don't need it anymore. before I was using an ANT build to compile, 
and if I made a simple change at times I did want to re compile the app. I know 
lazy, and so when this came out, I thought cool! I am going t spend the time 
and learn flex builder, I am loving it`-`

John
 

  
 


- Original Message 
From: Tom Chiverton <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Friday, March 30, 2007 4:42:42 AM
Subject: Re: [flexcoders] re naming flex builder

On Friday 30 Mar 2007, John Barrett wrote:
> will just leave it be. Now that I have flex builder I don't really need
> that flex module for apache, but i do like it`-`

Yeah, I've always seen the web-tier compiler as a hang over from the Flex 1 
days - handy if you are getting started, but it's not rated for production 
use in Flex 2 so why bother ?

-- 
Tom Chiverton
Helping to ambassadorially develop end-to-end IPOs
on: http://thefalken.livejournal.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 St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

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

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links










 

We won't tell. Get more on shows you hate to love 
(and love to hate): Yahoo! TV's Guilty Pleasures list.
http://tv.yahoo.com/collections/265 

[flexcoders] Re: Again.

2007-03-30 Thread Tim Hoff
Alert.show(ProcessorName.selectedItem.lastResult) 

to

Alert.show(ProcessorName.selectedItem.id) 

-TH

--- In flexcoders@yahoogroups.com, Jeremy Watson <[EMAIL PROTECTED]> 
wrote:
>
> Hey Guys,
> 
> Man this combo thing is pissin me off! Let me ask this simple 
question first.
> 
> Is this the correct way of getting data out of the database and 
into the combobox?  What I'm trying to do is just get the ID out of 
the combobox and alert it. ONCE i get that far I would like to call 
another function  (yet to be created) which will do a remote call 
and bring in values to bind to a text box based on what was selected 
from the combo box (can this even be done?). Does that make sense? I 
would've had this done in about 10 mins in CF and HTMLgod do I 
miss it. 
> 
> My Example code is below. Any help would be grateful. 
> 
> Jeremy.
> 
> 
>
>   
>
> 
> 
>
>
> 
> 
>   
>  
>  
>  
>   
>
>
> 
> 
> 
> 
> 
> Send instant messages to your online friends 
http://au.messenger.yahoo.com
>




[flexcoders] Again.

2007-03-30 Thread Jeremy Watson
Hey Guys,

Man this combo thing is pissin me off! Let me ask this simple question first.

Is this the correct way of getting data out of the database and into the 
combobox?  What I'm trying to do is just get the ID out of the combobox and 
alert it. ONCE i get that far I would like to call another function  (yet to be 
created) which will do a remote call and bring in values to bind to a text box 
based on what was selected from the combo box (can this even be done?). Does 
that make sense? I would've had this done in about 10 mins in CF and 
HTMLgod do I miss it. 

My Example code is below. Any help would be grateful. 

Jeremy.


   
  
   


   
   


  
 
 
 
  
   
   





Send instant messages to your online friends http://au.messenger.yahoo.com 

RE: [flexcoders] Is there a Synchronized ArrayCollection ?

2007-03-30 Thread Alex Harui
Actionscript is not multi-threaded.  While the consumer code is
executing and reading from the collection, there is no way it can be
changed by the producer, and vice versa.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of kumaran_sb
Sent: Friday, March 30, 2007 8:24 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Is there a Synchronized ArrayCollection ?



Hello flexcoders

I've an ActionScript ArrayCollection which is shared between a 
Consumer(which wakes up on a flash.Utils.TimerEvent and reads the 
collection) and a Producer(which writes to the same collection, based 
on a user interaction event). What would be the best way to 
synchronize access to this collection in Actionscript ?

Thanks
Kumaran



 


[flexcoders] How to disable the default drop shadow for a chartseries?

2007-03-30 Thread anewgene
Hi, group,
 In some cases(e.g., to display a lot of small data points), I 
want to disable the drop shadow for the better appearance. However, 
in 
the following test code, there is no effect at all even I set all 
filters to empty arrays.

 Can anybody explain why? Thanks in advance.

lei

//sample code-

http://www.adobe.com/2006/mxml"; 
layout="absolute" applicationComplete="init()">










   


   
   









[flexcoders] Is there a Synchronized ArrayCollection ?

2007-03-30 Thread kumaran_sb
Hello flexcoders

  I've an ActionScript ArrayCollection which is shared between a 
Consumer(which wakes up on a flash.Utils.TimerEvent and reads the 
collection) and a Producer(which writes to the same collection, based 
on a user interaction event). What would be the best way to 
synchronize access to this collection in Actionscript ?
 
Thanks
Kumaran



Re: [flexcoders] enhancement for AS4

2007-03-30 Thread Jim Cheng
One Person wrote:
> I would like to make a request for an upgrade to AS4 and I'm not sure 
> where to send it. So here it is. If there is a better place, please 
> let me know.

The absolute best public place to submit/discuss proposed syntax changes 
and additions to the forthcoming ES4 specification is the Mozilla ES4 
discuss mailing list.  Many of the ES4 working group members, including 
Brendan Eich (Mozilla) and Jeff Dyer (Adobe), are highly active on that 
list.

It's probably your best shot at your idea being heard and debated by the 
decision-makers for the ES4 specification short of your company joining 
ECMA and the ES4 task group.

Join the mailing list here:

   https://mail.mozilla.org/listinfo/es4-discuss

Jim Cheng
effectiveUI


RE: [flexcoders] remoteObject and my If statement

2007-03-30 Thread Chad Gray
Ah ha... that is what you use the event attribute for on remoteObject.  I have 
seen it used in lots of example code but I tend to learn the hard way.  :)

Thanks Peter!


> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Peter Farland
> Sent: Friday, March 30, 2007 5:01 PM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] remoteObject and my If statement
> 
> You must wait until you get back the ResultEvent before accessing
> lastResult from the RemoteObject operation.
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
> 
> 
> 




[flexcoders] assets in FB

2007-03-30 Thread Douglas Knudsen

Curious, how do you all store your assets in a mixed FB project?  things
like images.  I have a Java/Flex project for example and have trouble with
embedded assets versus run time assets used y Flex and JSP pages.  How are
you all storing these?

Do you store Flex based assets embedded in a swf inside flx-src directories
in assets folder and store assets used by JSP pages in a assets folder off
of webcontent folder?

--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


[flexcoders] Drag/Drop on PlotChart

2007-03-30 Thread carl_steinhilber
I'm revisiting this PlotChart project after a brief hiatus. Thanks to
Igor's comments and his pointers to Ely's examples, I was able to get
the chartitem selection working.

Now I have a seemingly larger task and I'm not sure where to start.

To recap, I have a PlotChart and a datagrid both bound to the same
datarenderer. Updating the data in the datagrid cells adjusts the
locations of the chartitems on the PlotChart. Selecting a row in the
datagrid highlights the row and selects the corresponding chartitem,
and clicking on a chartitem highlights the chartitem and selects the
corresponding row in the datagrid.

But now I'd like to be able to drag the chartitems directly, and have
any changes in location update the value(s) in the datagrid.
The things that are tripping me up are:

1) I've done some drag/drop functionality in other Flex apps before,
but always from one container to another. This is pretty much just
dragging within the same container (the chart). So I'm not even sure
if it requires the DragManager or not. Maybe it's just using a
MouseMove event to update the location??

2) It's a rather course chart... the y-axis, for example, is just 0 to
10 with pretty wide increments. I'd like to snap the dragging object
to the grid, but there doesn't appear to be any way to determine
what/where the grid is as a property of the chart. Is there a way?

3) And on DragComplete (if it does, indeed, utilize the DragManager),
I need to be able to determine the new coordinates to be able to
update the datagrid. Obviously if I can get #2 solved, seems like this
should fall into place since I'll know the chartitem position already.

Anybody have any comments and/or pointers on any of this? I Googled
all morning and I'm not finding much.

Thanks in advance!
-Carl



[flexcoders] Re: TextArea htmltext parsing

2007-03-30 Thread jmfillman
Scott, 

I'm sending the word Array to PHP for checking. PHP will check each 
word until it finds an incorrect word, then it will send the wrong word 
back, along with 10 suggestions. I'm not that good at PHP, so I hired 
someone to do this for me. We've worked out a fairly comprehensive 
logorithm that I'm quite pleased with the suggested words it returns.

I'm still working on the Flex part, but how I envision this is that 
Flex gets the wrong word back, searches for it and 
highlights/underlines it. The user is presented with a list of words 
they can replace it with, or they can type in a new word (there are 
some good examples of similar stuff in the Flex Builder Help/Flex 2 
Developer's Guide: "Selecting and modifying text" and "Programming 
RichTextEditor Subcontrols"). "Programming RichTextEditor Subcontrols" 
has a section near the end that has a find/replace Application that 
uses a RichTextEditor with a TitleWindow popup.

Anyway, after correcting or adding the "wrong" word, I re-send the word 
Array to PHP for checking. Since I'll allow them to modify the text 
during the spell checking process, I resend the whole array until there 
are no incorrect words.

Still thinking about how to give them the option to ignore words, 
without adding to their custom dictionary, so the spell check doesn't 
get caught in a loop of returning a word that the user says is correct, 
but they don't want to add.



[flexcoders] Re: need a little help with itemRenderer

2007-03-30 Thread Tim Hoff

Hi Mark,

Try something like this:  (make sure that your itemRenderer is a
container that supports the backgroundColor style property.  You can
change the text color this way as well, using "color".

override public function set data(value:Object):void
{
 super.data = value;

 if( value != null )
 {
 if ( value.myProperty == "myCondition" )
 {
 this.setStyle("backgroundColor","red");
 }
 else
 {
  this.setStyle("backgroundColor","#FF");
 }

 super.invalidateDisplayList();
 }
}

-TH
__

Tim Hoff
Cynergy Systems, Inc.
http://www.cynergysystems.com
Office  : 866-CYNERGY

--- In flexcoders@yahoogroups.com, "Mark" <[EMAIL PROTECTED]> wrote:
>
> I need to change the background color of some items in the
> HorizontalList. I thought the easiest way would be to create an
> itemRenderer such as below. But I can't change the color this way.
> Does anyone know what the problem is here? The setColor function
> will have much more to it once I get the setStyle to work.
>
> Thanks
>
> ## In the Application##
>  dataProvider="{hListArray}" columnWidth="125" showScrollTips="true"
> scrollTipFunction="myScrollFunction" selectable="false"
> itemRenderer="com.radar.HListRenderer" />
>
> ## ItemRenderer ##
> 
> http://www.adobe.com/2006/mxml";
> creationComplete="setColor()">
> 
> 
> 
> 
>




Re: [flexcoders] Re: Make a component 'modal'

2007-03-30 Thread John Mark Hawley
Hmm...maybe when you reparent, you can replace the vacated space in your layout 
with a Canvas of the correct size, as a placeholder?

> 
> From: "Shaun" <[EMAIL PROTECTED]>
> Date: 2007/03/30 Fri AM 11:47:53 CST
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Make a component 'modal'
> 
> Hey guys, thanks for the additional suggestions.  
> 
> I'm thinking reparenting might involve working through some layout 
> issues, but would probably work.
> 
> Alex, I assume you mean I should use popupmanager to popup a new 
> instance of the component and set its location to be on top of first 
> instance?  What if I want to set focus to an arbitrary box that 
> contains several components - i.e. something arbitrary that I can't 
> create a new instance of?
> 
> Is there some way to make a popup display an existing displayobject 
> that I'm not aware of?
> 
> Thanks again!
> Shaun
> 
> --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
> >
> > You could popup a copy of the component over the component in 
> question. 
> > 
> > -Original Message-
> > From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On
> > Behalf Of John Mark Hawley
> > Sent: Friday, March 30, 2007 10:22 AM
> > To: flexcoders@yahoogroups.com
> > Subject: Re: [flexcoders] Re: Make a component 'modal'
> > 
> > You could try temporarily reparenting the "strong focused" 
> component so
> > it was over everything else in the displayList,  then drop a big
> > translucent grey box behind it, set to intercept mouse clicks. That
> > sounds like it should work, eh?
> > 
> > -Mark Hawley
> > 
> > > 
> > > From: "Shaun" <[EMAIL PROTECTED]>
> > > Date: 2007/03/30 Fri AM 09:08:29 CST
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] Re: Make a component 'modal'
> > > 
> > > That would work, but it would only disable controls, not give the 
> > > greyed out look to the rest of the screen, like the popups do.  I 
> > > suppose I could do like you say, but instead have the style 
> changed 
> > > for the other components...
> > > 
> > > but I'm really hoping there's some way to create a magic function
> > > like:
> > > 
> > > public static function strongFocus(control:DisplayObject):void
> > > {
> > >...
> > > }
> > > 
> > > that I can call from anywhere and it will grey out and disable 
> mouse 
> > > interaction with everything on the stage but the control passed 
> in.
> > > 
> > > Am I hoping for too much?
> > > 
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com, "Clint Tredway" 
> > > wrote:
> > > >
> > > > without seeing how you setup your code, here is my suggestion.
> > > > 
> > > > Set the parent containers of the other 'components' enabled
> > > attribute to a
> > > > bindable var or even a state, and then when that specific 
> button is
> > > clicked,
> > > > set the var to false or in the case of using states, just change
> > > the state.
> > > > Either way, that should accomplish what you are describing.
> > > > 
> > > > HTH,
> > > > Clint
> > > > 
> > > > On 30 Mar 2007 07:36:17 -0700, Shaun  wrote:
> > > > >
> > > > >   Is there any way to make a component modal/hilight it? I 
> would
> > > like to
> > > > > be able to gray out (like when a popup is shown) everything 
> on the
> > 
> > > > > screen but a certain component when the user click on a 
> specific
> > > button.
> > > > >
> > > > > Basically I want a popup that's not a popup, but rather sets 
> the
> > > focus
> > > > > on a particular component that is already in the displaylist.
> > > > >
> > > > > Thoughts on the best way to acheive this?
> > > > >
> > > > > Thanks,
> > > > > Shaun
> > > > >
> > > > >  
> > > > >
> > > > 
> > > > 
> > > > 
> > > > --
> > > > I am not a diabetic, I have diabetes my blog - 
> > > > http://grumpee.instantspot.com/blog
> > > >
> > > 
> > > 
> > > 
> > > 
> > 
> > --
> > John Mark Hawley
> > The Nilbog Group
> > 773.968.4980 (cell)
> > 
> > 
> > 
> > --
> > Flexcoders Mailing List
> > FAQ: 
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> >
> 
> 
> 
> 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


[flexcoders] Re: Make a component 'modal'

2007-03-30 Thread Shaun
I'll do the same if (err.. I mean when) I figure it out.

Shaun


--- In flexcoders@yahoogroups.com, "Sean" <[EMAIL PROTECTED]> wrote:
>
> Shaun,
> 
> I'm working on this problem as well for an application that I'm 
developing. I'll be sure to 
> post here if I come up with something ... but there seems to be no 
elegant solution.
> 
> I'm likely to go the route of using PopUpManager to overlay a copy 
of my component in 
> the correct spot. Seems kludgey though ...
> 
> - Sean
> 
> --- In flexcoders@yahoogroups.com, "Shaun"  wrote:
> >
> > Hey guys, thanks for the additional suggestions.  
> > 
> > I'm thinking reparenting might involve working through some 
layout 
> > issues, but would probably work.
> > 
> > Alex, I assume you mean I should use popupmanager to popup a new 
> > instance of the component and set its location to be on top of 
first 
> > instance?  What if I want to set focus to an arbitrary box that 
> > contains several components - i.e. something arbitrary that I 
can't 
> > create a new instance of?
> > 
> > Is there some way to make a popup display an existing 
displayobject 
> > that I'm not aware of?
> > 
> > Thanks again!
> > Shaun
> > 
> > --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> > >
> > > You could popup a copy of the component over the component in 
> > question. 
> > > 
> > > -Original Message-
> > > From: flexcoders@yahoogroups.com 
> > [mailto:[EMAIL PROTECTED] On
> > > Behalf Of John Mark Hawley
> > > Sent: Friday, March 30, 2007 10:22 AM
> > > To: flexcoders@yahoogroups.com
> > > Subject: Re: [flexcoders] Re: Make a component 'modal'
> > > 
> > > You could try temporarily reparenting the "strong focused" 
> > component so
> > > it was over everything else in the displayList,  then drop a big
> > > translucent grey box behind it, set to intercept mouse clicks. 
That
> > > sounds like it should work, eh?
> > > 
> > > -Mark Hawley
> > > 
> > > > 
> > > > From: "Shaun" 
> > > > Date: 2007/03/30 Fri AM 09:08:29 CST
> > > > To: flexcoders@yahoogroups.com
> > > > Subject: [flexcoders] Re: Make a component 'modal'
> > > > 
> > > > That would work, but it would only disable controls, not give 
the 
> > > > greyed out look to the rest of the screen, like the popups 
do.  I 
> > > > suppose I could do like you say, but instead have the style 
> > changed 
> > > > for the other components...
> > > > 
> > > > but I'm really hoping there's some way to create a magic 
function
> > > > like:
> > > > 
> > > > public static function strongFocus(control:DisplayObject):void
> > > > {
> > > >...
> > > > }
> > > > 
> > > > that I can call from anywhere and it will grey out and 
disable 
> > mouse 
> > > > interaction with everything on the stage but the control 
passed 
> > in.
> > > > 
> > > > Am I hoping for too much?
> > > > 
> > > > 
> > > > 
> > > > --- In flexcoders@yahoogroups.com, "Clint Tredway" 
> > > > wrote:
> > > > >
> > > > > without seeing how you setup your code, here is my 
suggestion.
> > > > > 
> > > > > Set the parent containers of the other 'components' enabled
> > > > attribute to a
> > > > > bindable var or even a state, and then when that specific 
> > button is
> > > > clicked,
> > > > > set the var to false or in the case of using states, just 
change
> > > > the state.
> > > > > Either way, that should accomplish what you are describing.
> > > > > 
> > > > > HTH,
> > > > > Clint
> > > > > 
> > > > > On 30 Mar 2007 07:36:17 -0700, Shaun  wrote:
> > > > > >
> > > > > >   Is there any way to make a component modal/hilight it? 
I 
> > would
> > > > like to
> > > > > > be able to gray out (like when a popup is shown) 
everything 
> > on the
> > > 
> > > > > > screen but a certain component when the user click on a 
> > specific
> > > > button.
> > > > > >
> > > > > > Basically I want a popup that's not a popup, but rather 
sets 
> > the
> > > > focus
> > > > > > on a particular component that is already in the 
displaylist.
> > > > > >
> > > > > > Thoughts on the best way to acheive this?
> > > > > >
> > > > > > Thanks,
> > > > > > Shaun
> > > > > >
> > > > > >  
> > > > > >
> > > > > 
> > > > > 
> > > > > 
> > > > > --
> > > > > I am not a diabetic, I have diabetes my blog - 
> > > > > http://grumpee.instantspot.com/blog
> > > > >
> > > > 
> > > > 
> > > > 
> > > > 
> > > 
> > > --
> > > John Mark Hawley
> > > The Nilbog Group
> > > 773.968.4980 (cell)
> > > 
> > > 
> > > 
> > > --
> > > Flexcoders Mailing List
> > > FAQ: 
> > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > > Search Archives:
> > > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > > Yahoo! Groups Links
> > >
> >
>




[flexcoders] Re: TextArea htmltext parsing

2007-03-30 Thread jmfillman
With some playing around, I think I'm headed in the right direction, 
thanks to some cumulative thoughts and ideas from previous posters!!

This is working quite well, so far:

var str:String = myRTA.text;
var pattern:RegExp = /\b\w+/gi;
var results:Array = str.match(pattern);
myDGrid.dataProvider = results;

I output this to a DataGrid to see what I'm getting. I'll have to do 
some additional playing, but I don't think that words like 
applcation will pose a problem. Even if I loose that bolding, 
I'm not concerned, since in my app, that would be an inadvertant 
mistake.



[flexcoders] Re: Make a component 'modal'

2007-03-30 Thread Sean
Shaun,

I'm working on this problem as well for an application that I'm developing. 
I'll be sure to 
post here if I come up with something ... but there seems to be no elegant 
solution.

I'm likely to go the route of using PopUpManager to overlay a copy of my 
component in 
the correct spot. Seems kludgey though ...

- Sean

--- In flexcoders@yahoogroups.com, "Shaun" <[EMAIL PROTECTED]> wrote:
>
> Hey guys, thanks for the additional suggestions.  
> 
> I'm thinking reparenting might involve working through some layout 
> issues, but would probably work.
> 
> Alex, I assume you mean I should use popupmanager to popup a new 
> instance of the component and set its location to be on top of first 
> instance?  What if I want to set focus to an arbitrary box that 
> contains several components - i.e. something arbitrary that I can't 
> create a new instance of?
> 
> Is there some way to make a popup display an existing displayobject 
> that I'm not aware of?
> 
> Thanks again!
> Shaun
> 
> --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> >
> > You could popup a copy of the component over the component in 
> question. 
> > 
> > -Original Message-
> > From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On
> > Behalf Of John Mark Hawley
> > Sent: Friday, March 30, 2007 10:22 AM
> > To: flexcoders@yahoogroups.com
> > Subject: Re: [flexcoders] Re: Make a component 'modal'
> > 
> > You could try temporarily reparenting the "strong focused" 
> component so
> > it was over everything else in the displayList,  then drop a big
> > translucent grey box behind it, set to intercept mouse clicks. That
> > sounds like it should work, eh?
> > 
> > -Mark Hawley
> > 
> > > 
> > > From: "Shaun" 
> > > Date: 2007/03/30 Fri AM 09:08:29 CST
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] Re: Make a component 'modal'
> > > 
> > > That would work, but it would only disable controls, not give the 
> > > greyed out look to the rest of the screen, like the popups do.  I 
> > > suppose I could do like you say, but instead have the style 
> changed 
> > > for the other components...
> > > 
> > > but I'm really hoping there's some way to create a magic function
> > > like:
> > > 
> > > public static function strongFocus(control:DisplayObject):void
> > > {
> > >...
> > > }
> > > 
> > > that I can call from anywhere and it will grey out and disable 
> mouse 
> > > interaction with everything on the stage but the control passed 
> in.
> > > 
> > > Am I hoping for too much?
> > > 
> > > 
> > > 
> > > --- In flexcoders@yahoogroups.com, "Clint Tredway" 
> > > wrote:
> > > >
> > > > without seeing how you setup your code, here is my suggestion.
> > > > 
> > > > Set the parent containers of the other 'components' enabled
> > > attribute to a
> > > > bindable var or even a state, and then when that specific 
> button is
> > > clicked,
> > > > set the var to false or in the case of using states, just change
> > > the state.
> > > > Either way, that should accomplish what you are describing.
> > > > 
> > > > HTH,
> > > > Clint
> > > > 
> > > > On 30 Mar 2007 07:36:17 -0700, Shaun  wrote:
> > > > >
> > > > >   Is there any way to make a component modal/hilight it? I 
> would
> > > like to
> > > > > be able to gray out (like when a popup is shown) everything 
> on the
> > 
> > > > > screen but a certain component when the user click on a 
> specific
> > > button.
> > > > >
> > > > > Basically I want a popup that's not a popup, but rather sets 
> the
> > > focus
> > > > > on a particular component that is already in the displaylist.
> > > > >
> > > > > Thoughts on the best way to acheive this?
> > > > >
> > > > > Thanks,
> > > > > Shaun
> > > > >
> > > > >  
> > > > >
> > > > 
> > > > 
> > > > 
> > > > --
> > > > I am not a diabetic, I have diabetes my blog - 
> > > > http://grumpee.instantspot.com/blog
> > > >
> > > 
> > > 
> > > 
> > > 
> > 
> > --
> > John Mark Hawley
> > The Nilbog Group
> > 773.968.4980 (cell)
> > 
> > 
> > 
> > --
> > Flexcoders Mailing List
> > FAQ: 
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > Yahoo! Groups Links
> >
>




RE: [flexcoders] HELP!!! Custom events in Flex bug?

2007-03-30 Thread Alex Harui
youdabug! :-)
 
Sorry, it's Friday...
 
You haven't defined the LOGIN constant in LoginEvent.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of parker77rocks
Sent: Friday, March 30, 2007 1:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] HELP!!! Custom events in Flex bug?



Ok this is weird. I create a custom flex component that has custom 
events. I initialize the component in actionscript (and throw it to 
good ol PopUp Manager for popup effect) and then try to use 
addEventListener to register the custom event as i would with any 
other flash/flex object created with actionscript. Problem is I keep 
getting this error - "1119: Access of possibly undefined property 
LOGIN through a reference with static type Class." Events are 
registered and work fine if i initialize the component with mxml but 
then i can't make it a popup (or maybe i can but it seems simpler in 
as). Is this a bug or am i the bug? 

// Creating a custom event in a flex component as such:


[Event(name="loginComplete", type="flash.events.Event")]


private componentFunction():void
{
var login:Login = new Login();
login.username = usernameInput.text;
login.password = passwordInput.text;
var event:LoginEvent = new LoginEvent("login", login);
dispatchEvent(event);
}

//Application function - onCreationComplete function...

private function onCreationComplete = function():void
{
loginWizard = new LoginWizard();
loginWizard.addEventListener(LoginEvent.LOGIN, doLogin);
}

//.. and event handler

private function doLogin(event:LoginEvent):void
{
trace(event.type);
}

// LoginEvent
package ts.events
{
import flash.events.Event;
import ts.dto.Login;

public class LoginEvent extends Event
{
public var data:Login;

public function LoginEvent(type:String, 
data:Login):void
{
super(type);
this.data = data
}

override public function clone():Event
{
return new LoginEvent(type, data);
}
}
}

// Login data transfer
package ts.dto
{

public class Login
{
public var username:String;
public var password:String;

public function Login()
{

}
}
}



 


[flexcoders] Re: HELP!!! Custom events in Flex bug?

2007-03-30 Thread Doug Lowder
Aren't you missing a definition for LoginEvent.LOGIN in your 
LoginEvent class?  Something like:

public static const LOGIN:String = "login";


--- In flexcoders@yahoogroups.com, "parker77rocks" <[EMAIL PROTECTED]> 
wrote:
>
> Ok this is weird. I create a custom flex component that has custom 
> events.  I initialize the component in actionscript (and throw it 
to 
> good ol PopUp Manager for popup effect) and then try to use 
> addEventListener to register the custom event as i would with any 
> other flash/flex object created with actionscript. Problem is I 
keep 
> getting this error - "1119: Access of possibly undefined property 
> LOGIN through a reference with static type Class." Events are 
> registered and work fine if i initialize the component with mxml 
but 
> then i can't make it a popup (or maybe i can but it seems simpler 
in 
> as). Is this a bug or am i the bug? 
> 
> 
> 
> // Creating a custom event in a flex component as such:
> 
> 
> [Event(name="loginComplete", type="flash.events.Event")]
> 
> 
> 
> private componentFunction():void
> {
>var login:Login = new Login();
>login.username = usernameInput.text;
>login.password = passwordInput.text;
>var event:LoginEvent = new LoginEvent("login", login);
>dispatchEvent(event);
> }
> 
> 
> //Application function - onCreationComplete function...
> 
> private function onCreationComplete = function():void
> {
>loginWizard = new LoginWizard();
>loginWizard.addEventListener(LoginEvent.LOGIN, doLogin);
> }
> 
> 
> //.. and event handler
> 
> private function doLogin(event:LoginEvent):void
> {
>   trace(event.type);
> }
> 
> 
> // LoginEvent
> package ts.events
> {
>   import flash.events.Event;
>   import ts.dto.Login;
>   
>   public class LoginEvent extends Event
>   {
>   public var data:Login;
>   
>   public function LoginEvent(type:String, 
> data:Login):void
>   {
>   super(type);
>   this.data = data
>   }
>   
>   override public function clone():Event
>   {
>   return new LoginEvent(type, data);
>   }
>   }
> }
> 
> // Login data transfer
> package ts.dto
> {
>   
>   public class Login
>   {
>   public var username:String;
>   public var password:String;
>   
>   public function Login()
>   {
>   
>   }
>   }
> }
>




RE: [flexcoders] remoteObject and my If statement

2007-03-30 Thread Peter Farland
You must wait until you get back the ResultEvent before accessing
lastResult from the RemoteObject operation. 



[flexcoders] remoteObject and my If statement

2007-03-30 Thread Chad Gray
I have a RemoteObject that is firing when a button is clicked.  I want the 
button that is clicked to disappear and another button to appear if the result 
coming back from the remoteObject is true.

What happens is I click the button with a correct login and password (that does 
return the reServalent.Authuser.lastResult as TRUE) and nothing changes.  I 
click the button again and then it works.  My auth button disappear and my 
clockinbutton appears.

Why do I need to press the button twice?  If the roServalent.authUser() is slow 
to retrieve results will the if/else function run without waiting for 
roServalent.authUser.lastResult to return a value?
 

private function authorizeUser():void{
roServalent.authUser()

if (roServalent.authUser.lastResult == true) {
authButton.visible = false;
clockInButton.visible = true;
}else{
authButton.visible = true;
clockInButton.visible = false;
}
}


http://demo.dev/flex2gateway/";> 



{login.text}
{pwd.text}














[flexcoders] HELP!!! Custom events in Flex bug?

2007-03-30 Thread parker77rocks
Ok this is weird. I create a custom flex component that has custom 
events.  I initialize the component in actionscript (and throw it to 
good ol PopUp Manager for popup effect) and then try to use 
addEventListener to register the custom event as i would with any 
other flash/flex object created with actionscript. Problem is I keep 
getting this error - "1119: Access of possibly undefined property 
LOGIN through a reference with static type Class." Events are 
registered and work fine if i initialize the component with mxml but 
then i can't make it a popup (or maybe i can but it seems simpler in 
as). Is this a bug or am i the bug? 



// Creating a custom event in a flex component as such:


[Event(name="loginComplete", type="flash.events.Event")]



private componentFunction():void
{
   var login:Login = new Login();
   login.username = usernameInput.text;
   login.password = passwordInput.text;
   var event:LoginEvent = new LoginEvent("login", login);
   dispatchEvent(event);
}


//Application function - onCreationComplete function...

private function onCreationComplete = function():void
{
   loginWizard = new LoginWizard();
   loginWizard.addEventListener(LoginEvent.LOGIN, doLogin);
}


//.. and event handler

private function doLogin(event:LoginEvent):void
{
trace(event.type);
}


// LoginEvent
package ts.events
{
import flash.events.Event;
import ts.dto.Login;

public class LoginEvent extends Event
{
public var data:Login;

public function LoginEvent(type:String, 
data:Login):void
{
super(type);
this.data = data
}

override public function clone():Event
{
return new LoginEvent(type, data);
}
}
}

// Login data transfer
package ts.dto
{

public class Login
{
public var username:String;
public var password:String;

public function Login()
{

}
}
}



[flexcoders] Re: Make a component 'modal'

2007-03-30 Thread Shaun
Tracy, I apparently didn't dig deep enough... I found the code that 
does it int the framework and am currently working my way through it.

Shaun



--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Maybe investigate how the popups create the blur efffect?
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Shaun
> Sent: Friday, March 30, 2007 10:58 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Make a component 'modal'
> 
>  
> 
> Hmm, now that's an idea... a little bit of a hack, but I'm ok with 
> simplicity over elegance to start with. I think I'll head down that 
> path unless someone throws out another (more) brilliant solution :)
> 
> Thanks for the help guys.
> 
> Shaun
> 
> --- In flexcoders@yahoogroups.com 
> , Tom Chiverton  
> wrote:
> >
> > On Friday 30 Mar 2007, Shaun wrote:
> > > The problem is that I don't want to pop up a new control or 
> create a
> > > custom control every time I want this effect. Instead, I want to
> > > apply an effect to an existing control (that could be any 
> control).
> > 
> > Hmm.
> > You could create partly opaque rectangles over the rest of the 
> screen, for 
> > instance ?
> > 
> > -- 
> > Tom Chiverton
> > Helping to synergistically revolutionize intuitive solutions
> > on: http://thefalken.livejournal.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 St James's Court Brown Street Manchester M2 
> 2JF. A list of members is available for inspection at the 
registered 
> office. Any reference to a partner in relation to Halliwells LLP 
> means a member of Halliwells LLP. Regulated by the Law Society.
> > 
> > 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 8008.
> > 
> > For more information about Halliwells LLP visit 
www.halliwells.com.
> >
>




[flexcoders] Re: need a little help with itemRenderer

2007-03-30 Thread Mark
sorry... I'm using "Color", it needs to be "color".




--- In flexcoders@yahoogroups.com, "Mark" <[EMAIL PROTECTED]> wrote:
>
> I need to change the background color of some items in the 
> HorizontalList.  I thought the easiest way would be to create an 
> itemRenderer such as below.  But I can't change the color this 
way.  
> Does anyone know what the problem is here?  The setColor function 
> will have much more to it once I get the setStyle to work.
> 
> Thanks
> 
> ## In the Application##
>  dataProvider="{hListArray}" columnWidth="125" 
showScrollTips="true" 
> scrollTipFunction="myScrollFunction" selectable="false" 
> itemRenderer="com.radar.HListRenderer" />
> 
> ## ItemRenderer ##
> 
> http://www.adobe.com/2006/mxml"; 
> creationComplete="setColor()">
>   
>   
>   
> 
>




[flexcoders] need a little help with itemRenderer

2007-03-30 Thread Mark
I need to change the background color of some items in the 
HorizontalList.  I thought the easiest way would be to create an 
itemRenderer such as below.  But I can't change the color this way.  
Does anyone know what the problem is here?  The setColor function 
will have much more to it once I get the setStyle to work.

Thanks

## In the Application##


## ItemRenderer ##

http://www.adobe.com/2006/mxml"; 
creationComplete="setColor()">







[flexcoders] Re: How do I read Response after FileReference uploads a file?

2007-03-30 Thread thegators_2002
Great!  Thanks for all the responses!  It works like a charm.  The
DataEvent object coming back has both a text and a data property that
hold the XML written by Response.Write in the .aspx page.  That's
perfect!  My user can upload an XML file from their local machine, it
goes to my web page and gets parsed, and then the XML is sent to my app.

As a side note, if you cannot find DataEvent.UPLOAD_COMPLETE_DATA,
upgrade to the 2.01 version of FlexBuilder.

Pete



--- In flexcoders@yahoogroups.com, "thegators_2002"
<[EMAIL PROTECTED]> wrote:
>
> I am trying to use FileReference to upload a file from the user side
> to a web page and read the response(xml) that the server returns.  I
> can't figure out how to get the response, however.  It doesn't seem to
> be included in the FileReference object.
> 
> Is there a way to read the response coming back after a file upload,
> or is this halted by design?
>




[flexcoders] charts - initializing the legend with array of legenditems

2007-03-30 Thread vijay95052
Hello,

I have a requirement to be able to put special images as legend item 
renderers.
I was able to achieve this with code like:


   
...

However, I need to be able to do this dynamically in actionscript using 
something similar to whats described in:

http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhel
p.htm?context=LiveDocs_Book_Parts&file=charts_intro_108_06.html

I am unable to figure out how I can assign an array of legendItem 
objects to the legend

The Legend doc says I can define an array of legenditems for the legend 

http://livedocs.adobe.com/flex/201/langref/mx/charts/Legend.html

but I am missing how?

I do not see any property or method to add legenditems to the legend, 
and if I try to assign the legend to an array of legenditem objects, it 
doesnt like it. I am probably missing something basic but unable to 
figure out - hence the post.

Also, while I am at this, whats the best way to replicate the @embed 
behavior in actionscript?

Thanks for help
Vijay




Re: [flexcoders] Suggestion .. WebOrbPHP Zend MySql + Flex 2

2007-03-30 Thread Ray Horn
I don't know about the Zend Platform but I do use WebOrb/PHP 1.3.2 with PHP 
5.2.0 without any issues with the latest Zend Optimizer, if this helps.

WebOrb/PHP does not provide any database connectivity, as such, in terms of 
helping you connect to any specific database.  I had no problems in diging up 
some generic PHP code I got from php.net online help to handle SQL Server 2005 
database connectivity and query processing tasks.  I have been able to clean 
that code up quite a bit.  

In terms of making WebOrb/PHP run queries against SQL Server 2005... I was able 
to plug-in my MSSQLDB class I pulled from php.net right into whichever Services 
I coded using WebOrb/PHP.  Since the Service is nothing more than a PHP Class 
one can interface any PHP Class to any other PHP Class using standard PHP 
coding techniques and so I was able to do this and it worked well for me.  As I 
am also new to PHP I assume I can do anything I can get the compiler to execute 
however stupid the actual coding technique might be is not my primary concern 
at this time.

I have spec'd out some improvements to WebOrb/PHP to bring it closer to the 
functionality of FDS, well sort of, I know FDS is just a better product to use 
but I have gotten into this PHP thing so I am seeing how far I can push the 
language before I switch back to Java and FDS.

* Shared Memory for WebOrb/PHP would be a good thing to allow SQL Result Sets 
to be cached or to facilitate inter-client messaging.
* Inter-client messaging for WebOrb/PHP would be another good thing however I 
would have to use a polling model until I can figure out if PHP can send RTMP 
messages proactively. PHP doesn't maintain any running code in RAM, as far as I 
know, which makes PHP a bit more problematic for handling messages that 
originate at the server more of a problem other than to do so whenever a client 
hits the WebOrb/PHP server at which time messages could be dispatched from the 
server to the client(s).
* Dynamic creation of Destination End-Points would also be nice but this could 
be done using an Abstract Destination that simply dispatches Service invocation 
as needed - this would also tend to break the End-Point/Service model but what 
the hey, whatever it takes to make my life easier is okay with me.  It's a pain 
to have to edit the End-Point config file anyway so I am all for architecting 
that need into the past.

I am not sure if any of this helps anyone - I simply enjoy tooling around with 
things to see what I can learn that may be useful later-on.


- Original Message 
From: Sajid Hussain <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Friday, March 30, 2007 12:37:50 AM
Subject: Re: [flexcoders] Suggestion .. WebOrbPHP Zend MySql + Flex 2

Hi , Ray 
Thanks for reply .. 
What about using zend platform with WebOrbPHP I am not that much good in php so 
very confused to start with this 
does webOrb will help me for data paging records and things ?

Ray Horn <[EMAIL PROTECTED] net> wrote:
I have been using Flex Builder 2.0.1 and WebOrb/PHP 1.3.2 with SQL Server 2005 
with very good results.  I have also spec'd out some improvements to WebOrb to 
make it more useful as well as more like FDS than WebOrb.


- Original Message 
From: Sajid Hussain 
To: [EMAIL PROTECTED] ups.com
Sent: Thursday, March 29, 2007 2:49:57 AM
Subject: [flexcoders] Suggestion .. WebOrbPHP Zend MySql + Flex 2


Hi .
 Could any one have work with weborbphp zend and flex 2 database integrated 
websites ??
or any idea how it will work good or give me alternative ? 



No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started. 






TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.


RE: [flexcoders] Issues with Datagrid non repeatinh HTTPService XML Result.

2007-03-30 Thread Tracy Spratt
Sample code using HTTPService, e4x, handler function to populate a list item

The DataGrid tag:



The HTTPService tag:
mailto:[EMAIL PROTECTED] On Behalf Of Tracy 
Spratt
Sent: Friday, March 30, 2007 1:35 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Issues with Datagrid non repeatinh HTTPService XML 
Result.

I think you will be happy with HTTPService.
 
Specify resultFormat="e4x" in the HTTPService tag, otherwise flex converts the 
xml into an nested mx:Object structure.  I find e4x XML much easier to work 
with.
 
Don't bind directly to lastResult. It is too hard to debug. Instead use a 
result handler, and set an instance variable value(XMLListCollection) to 
event.result.STAFFREC in that, and bind the DataGrid dp to the instance 
variable.  In the handler, you can trace the instance variable.toXMLString() to 
see exactly what yo have, and how to set the DataGridColumn dataField or 
labelFunction.
 
I've written sample code tor this so many times I don't want to do it again 
right now, but post if you need more detail.
 
Tracy 
 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Olonade 
Tolulope williams
Sent: Friday, March 30, 2007 6:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Issues with Datagrid non repeatinh HTTPService XML Result.
 
I have a flex DBGrid client that was supposed to consume a web 
service client. After much tweaking and coding. No success. I 
switched to HTTPService and this was returning xml results.
But when DBGrid accepts the results they are all listed ONLY in row 1 
of the DBGrid.
Below is the mxml application as well as the web service I 1st used 
and finally the httpservice routine done in C# 2.0
Any help will be appreciated.
Thanks.

http://www.adobe.com/2006/mxml"; 
layout="absolute">
http://localhost:53541/SDSearch.NET/Default.aspx"; 
showBusyCursor="true">

{NameBox.text}
{PhoneBox.text}















 



public class Employee
{
public string STAFFNAME;
public string Phone_Num;
}
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string byName, byPhoneNum;
string queryString, cnString;
OleDbDataAdapter adapter;
DataSet EmpData = new DataSet();
cnString = ConfigurationManager.AppSettings
["ConnStrDB"].ToString();

byName = Request.Params["byName"].ToString().Trim();
byPhoneNum = Request.Params["byPhoneNum"].ToString().Trim
();

if (byPhoneNum.Length == 11)
{
queryString = "SELECT * FROM Employees WHERE 
PHONE_NUMBER = '" + byPhoneNum + "'";
adapter = new OleDbDataAdapter(queryString, cnString);
adapter.Fill(EmpData, "Employees");

Response.Write("");
foreach (DataRow currrec in EmpData.Tables[0].Rows)
{
Response.Write("" + currrec
["STAFFNAME"].ToString() + "");
Response.Write("" + currrec
["PHONE_NUMBER"].ToString() + "");
}
Response.Write("");
//XmlDataDocument dataDoc = new XmlDataDocument
(EmpData);
//return dataDoc;
}
else 
{
queryString = "SELECT * FROM Employees WHERE 
STAFFNAME LIKE '%" + byName + "%'";
adapter = new OleDbDataAdapter(queryString, cnString);
adapter.Fill(EmpData, "Employees");

Response.Write("");
foreach (DataRow currrec in EmpData.Tables[0].Rows)
{
Response.Write("" + currrec
["STAFFNAME"].ToString() + "");
Response.Write("" + currrec
["PHONE_NUMBER"].ToString() + "");
}
Response.Write("");

//XmlDataDocument dataDoc = new XmlDataDocument
(EmpData);
//return dataDoc;
}
}
}

// the web service..
[WebService(Namespace = "http://tempuri.org/";)]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Employee
{
public string STAFFNAME;
public string Phone_Num;
}
public class SDSearch : System.Web.Services.WebService
{
public SDSearch () {

//Uncomment the following line if using designed components 
//InitializeComponent(); 
}

[WebMethod]
public XmlDataDocument getStaffMatch(string byName, string 
byPhoneNum)
{
string queryString,cnString;
OleDbDataAdapter adapter;
DataSet EmpData = new DataSet();
cnString = ConfigurationManager.AppSettings
["ConnStrDB"].ToString();

if (byPhoneNum.Length == 11)
{
queryString = "SELECT * FROM Employees WHERE PHONE_NUMBER 
= '" + byPhoneNum + "'";
adapter = new OleDbDataAdapter(queryString, cnString);
adapter.Fill(EmpData,"Employees");
XmlDataDocument dataDoc = new XmlDataDocument(EmpData);
return dataDoc;
}
else //if (byName.Length > 3)
{
queryString = "SELECT * FROM Employees WHERE STAFFNAME 
LIKE '%" + byName + "%'";
adapter = new OleDbDataAdapter(queryString, cnString);
adapter.Fill(EmpData, "Employees");
XmlDataDocument dataDoc = new XmlDataDocument(EmpData);
return dataDoc;
}

}

}
 



RE: [flexcoders] Re: Can I get the icon in cornflower blue?

2007-03-30 Thread Tracy Spratt
Not to mention being a cornerstone of the community.  Go, guys.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tim Hoff
Sent: Friday, March 30, 2007 1:42 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Can I get the icon in cornflower blue?

 

Hi all,

As an addendum to Carson's clever post, I'd like to encourage anyone on
this list, who is seeking a Flex position, to seriously consider Cynergy
Systems.  I started working at Cynergy almost 6 months ago.   In that
time, I've been involved with several huge projects for some very
notable corporations.  I don't make endorsements lightly, but this is
one time when I feel compelled.  Cynergy Systems offers a challenging
and very rewarding professional experience; working with some of the
most intelligent people that I've ever come in contact with.  In
addition, it's a great place to improve your Flex skills.  If this
sounds interesting to you, please feel free to contact us. 

-TH
__

Tim Hoff
Cynergy Systems, Inc.
http://www.cynergysystems.com
Office  : 866-CYNERGY 

--- In flexcoders@yahoogroups.com, "Carson Hager" <[EMAIL PROTECTED]>
wrote:
>
> Hey Hilary,
> 
> I definitely appreciate the compliments and I'm glad you liked the ad.
> Although we're not in your neck of the woods yet, I know it's on the
> radar. We know a number of people in Sydney and have already begun
talks
> with them. I'll be sure and let you know as it materializes.
> 
> 
> Carson
> 
> 
> 
> Carson Hager
> Cynergy Systems, Inc.
> http://www.cynergysystems.com  
> 
> Email: [EMAIL PROTECTED]
> Office: 866-CYNERGY
> Mobile: 1.703.489.6466
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of Hilary Bridel
> Sent: Monday, March 26, 2007 8:33 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Can I get the icon in cornflower blue?
> 
> 
> 
> Hey Carson,
> Clever ad !
> Shame I live in Sydney Australia. You guys do some awesome work!
> 
> Regards
> 
> Hilary
> 
> www.bridel.org
> 
> 
> 
> On 26 Mar 2007 09:57:13 -0700, Carson Hager
> [EMAIL PROTECTED]
>  wrote: 
> 
> 
> 
> Of course you can. 
> 
> If that got your attention because you love that scene as much
> as I do then chances are you'll probably want to keep reading.
> 
> You're curiosity is piqued. That's a good sign. 
> 
> So why an obscure Fight Club reference in the middle of a slew
> of boring job ads? Bluntly put...we're not boring and we're not
> interested in you if you're boring. If you love your cube and you live
> to fill out your TPS reports talking about prioritizing one action
item
> over another, you'd be miserable working with us...you likely assumed
> this was spam and deleted it anyway. Perfect. 
> 
> Let me get to the point because I know you're busy. You're a
> Flex developer otherwise you wouldn't be getting this. That means you
> likely already know about Cynergy...unless of course you live under a
> rock. When someone calls your work a "web site" you get irritated
> because web sites are for monkeys and you build applications. You're a
> developer and a damn good one. You're convinced you know the lines to
> Anchor Man better than anyone else and you're willing to prove it at
> any time. Most importantly, you want to build RIAs alongside the best
> people in the industry. 
> 
> Welcome to Cynergy. We're the undisputed heavy weight champion
> of RIA development and we're growing like crazy because the world has
> finally woken up and realized that traditional web applications are
> garbage and that RIAs are the future. Forward thinking companies and
> organizations are kicking our doors down daily asking us to build
their
> next great idea. That means we need to grow. That means we need you.
We
> realize you're probably happy where you are...hell you're building
Flex
> apps and life is good. We get that. But if you saw some of yourself in
> my description above, you're among friends and we truly believe life
can
> be even better than it is today. We want a shot to prove it to you. 
> 
> So how do you get in touch? Well if you like boring aliases you
> can drop us a line at [EMAIL PROTECTED]
>  [EMAIL PROTECTED]  . If you're really bold, pick up the phone and call my cell. You'll
> find the number below.
> 
> Boring details which you should know given the high demand for
> your skills but I'll include them anyway... 
> 
> We pay well. 
> We provide all of the benefits you're used to...health dental,
> 401k, blah, blah. 
> We're open to remote developers but would always prefer you were
> in one of our offices - preferably Washington, DC or San Diego, CA.
> 
> You already legally work in the US. 
> 
> 

[flexcoders] Re: Issues with Datagrid non repeatinh HTTPService XML Result.

2007-03-30 Thread Olonade Tolulope williams
Thanks for the hint tracy.

Will try the technique you just mentioned and get back to you soon.

If you can provide me link to the sample codes you mentioned will
greatly appreciate that as well.

Many Thanks.

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> I think you will be happy with HTTPService.
> 
>  
> 
> Specify resultFormat="e4x" in the HTTPService tag, otherwise flex
> converts the xml into an nested mx:Object structure.  I find e4x XML
> much easier to work with.
> 
>  
> 
> Don't bind directly to lastResult. It is too hard to debug. Instead use
> a result handler, and set an instance variable value(XMLListCollection)
> to event.result.STAFFREC in that, and bind the DataGrid dp to the
> instance variable.  In the handler, you can trace the instance
> variable.toXMLString() to see exactly what yo have, and how to set the
> DataGridColumn dataField or labelFunction.
> 
>  
> 
> I've written sample code tor this so many times I don't want to do it
> again right now, but post if you need more detail.
> 
>  
> 
> Tracy 
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Olonade Tolulope williams
> Sent: Friday, March 30, 2007 6:17 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Issues with Datagrid non repeatinh HTTPService XML
> Result.
> 
>  
> 
> I have a flex DBGrid client that was supposed to consume a web 
> service client. After much tweaking and coding. No success. I 
> switched to HTTPService and this was returning xml results.
> But when DBGrid accepts the results they are all listed ONLY in row 1 
> of the DBGrid.
> Below is the mxml application as well as the web service I 1st used 
> and finally the httpservice routine done in C# 2.0
> Any help will be appreciated.
> Thanks.
> 
> http://www.adobe.com/2006/mxml
>  " 
> layout="absolute">
>  url="http://localhost:53541/SDSearch.NET/Default.aspx
>  " 
> showBusyCursor="true">
> 
> {NameBox.text}
> {PhoneBox.text}
> 
> 
> 
>  x="130" y="179" width="411" height="273" 
> dataProvider="{SDSearch.lastResult.STAFFREC}" 
> alternatingItemColors="[#fcf7e4, #ff]">
> 
> 
>  dataField="STAFFNAME"/>
>  dataField="PHONE_NUMBER"/>
> 
> 
> 
> 
> 
> 
> 
>  click="SDSearch.send();"/> 
> 
> 
> 
> public class Employee
> {
> public string STAFFNAME;
> public string Phone_Num;
> }
> public partial class _Default : System.Web.UI.Page
> {
> protected void Page_Load(object sender, EventArgs e)
> {
> string byName, byPhoneNum;
> string queryString, cnString;
> OleDbDataAdapter adapter;
> DataSet EmpData = new DataSet();
> cnString = ConfigurationManager.AppSettings
> ["ConnStrDB"].ToString();
> 
> byName = Request.Params["byName"].ToString().Trim();
> byPhoneNum = Request.Params["byPhoneNum"].ToString().Trim
> ();
> 
> if (byPhoneNum.Length == 11)
> {
> queryString = "SELECT * FROM Employees WHERE 
> PHONE_NUMBER = '" + byPhoneNum + "'";
> adapter = new OleDbDataAdapter(queryString, cnString);
> adapter.Fill(EmpData, "Employees");
> 
> Response.Write("");
> foreach (DataRow currrec in EmpData.Tables[0].Rows)
> {
> Response.Write("" + currrec
> ["STAFFNAME"].ToString() + "");
> Response.Write("" + currrec
> ["PHONE_NUMBER"].ToString() + "");
> }
> Response.Write("");
> //XmlDataDocument dataDoc = new XmlDataDocument
> (EmpData);
> //return dataDoc;
> }
> else 
> {
> queryString = "SELECT * FROM Employees WHERE 
> STAFFNAME LIKE '%" + byName + "%'";
> adapter = new OleDbDataAdapter(queryString, cnString);
> adapter.Fill(EmpData, "Employees");
> 
> Response.Write("");
> foreach (DataRow currrec in EmpData.Tables[0].Rows)
> {
> Response.Write("" + currrec
> ["STAFFNAME"].ToString() + "");
> Response.Write("" + currrec
> ["PHONE_NUMBER"].ToString() + "");
> }
> Response.Write("");
> 
> //XmlDataDocument dataDoc = new XmlDataDocument
> (EmpData);
> //return dataDoc;
> }
> }
> }
> 
> // the web service..
> [WebService(Namespace = "http://tempuri.org/  ")]
> [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
> public class Employee
> {
> public string STAFFNAME;
> public string Phone_Num;
> }
> public class SDSearch : System.Web.Services.WebService
> {
> public SDSearch () {
> 
> //Uncomment the following line if using designed components 
> //InitializeComponent(); 
> }
> 
> [WebMethod]
> public XmlDataDocument getStaffMatch(string byName, string 
> byPhoneNum)
> {
> string queryString,cnString;
> OleDbDataAdapter adapter;
> DataSet EmpData = new DataSet();
> cnString = ConfigurationManager.AppSettings
> ["ConnStrDB"].ToString();
> 
> if (byPhoneNum.Length == 11)
> {
> queryString = "SELECT * FROM Employees WHERE PHONE_NUMBER 
> = '" + byPhoneNum + "'";
> adapter = new OleDbDataAdapter(queryString, cnString);
> adapter.Fill(EmpData,"Employees");
> XmlDataDocument dataDoc = new XmlDataDocument(EmpData);
> return dataDoc;
> }
> else //if (b

[flexcoders] Re: Synchronized access to ArrayCollection ?

2007-03-30 Thread Shaun
Someone can correct me if I'm wrong, but Flex/Flash is single-
threaded.  I don't believe you will have any problems with 
synchronization in your scenario.  Synchronization is only an issue on 
the backend server.

Shaun

--- In flexcoders@yahoogroups.com, "kumaran_sb" <[EMAIL PROTECTED]> wrote:
>
> Hello flexcoders
> 
>  I'm relatively new to flex and ActionScript. I need some help with 
> the following problem.
> 
>I've an ActionScript ArrayCollection which is shared between a 
> Consumer(which wakes up on a flash.Utils.TimerEvent and reads the 
> collection) and a Producer(which writes to the 
> same collection, based on a user interaction event). What would be 
the 
> easiest way to synchronize access to this collection in Actionscript ?
> 
> Thanks
> Kumaran
>




RE: [flexcoders] Crash VM -- tree with form

2007-03-30 Thread Tracy Spratt
When changing the id corrects a problem, suspect a collision with a
reserved word.  Such collisions often have drastic results like you see.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of animate123
Sent: Friday, March 30, 2007 1:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Crash VM -- tree with form

 

Odd problem. This crashes the VM. I have stripped this down as far as
I could and still don't see why. There are two files:


http://www.adobe.com/2006/mxml
 " 
xmlns="view.*"
>



And, in view/MyTree.xml:


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
















If I remove the tree or change the id="owner" to id="owner2" it
works fine. 

This is Windows with Flex 2.0.1 SDK.

Thanks.

 



Re: [flexcoders] Aligning LineCharts in a VBox

2007-03-30 Thread mr19

Figured it out myself (for once).  Once I set the gutterLeft & gutterRight
properties to the same value for each of the charts everything lined up
perfectly.


mr19 wrote:
> 
> I have two LineCharts in a VBox using the same data for the
> horizontalAxis.   I would like the horizontal axis ticks on the two charts
> to line up.  I have been unable to do this due to the vertical axis labels
> being of different length and the top chart using a secondVerticalAxis.
> 
> Any help would be greatly appreciated.  I've tried using the width
> attributes without any luck.
> 
> Marc
> 

-- 
View this message in context: 
http://www.nabble.com/Aligning-LineCharts-in-a-VBox-tf3493042.html#a9758827
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Crash VM -- tree with form

2007-03-30 Thread animate123
Odd problem. This crashes the VM. I have stripped this down as far as
I could and still don't see why. There are two files:


http://www.adobe.com/2006/mxml";
  xmlns="view.*"
>
  


And, in view/MyTree.xml:


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

  


  

  
  

  

  
 


If I remove the tree or change the id="owner" to id="owner2" it
works fine. 

This is Windows with Flex 2.0.1 SDK.

Thanks.



[flexcoders] Synchronized access to ArrayCollection ?

2007-03-30 Thread kumaran_sb
Hello flexcoders

 I'm relatively new to flex and ActionScript. I need some help with 
the following problem.

   I've an ActionScript ArrayCollection which is shared between a 
Consumer(which wakes up on a flash.Utils.TimerEvent and reads the 
collection) and a Producer(which writes to the 
same collection, based on a user interaction event). What would be the 
easiest way to synchronize access to this collection in Actionscript ?

Thanks
Kumaran




Re: [flexcoders] Finding the position of a given character inside a TextArea

2007-03-30 Thread Daniel Freiman

TextField has a function getCharBoundries() which returns the
location/width/height/etc of a single character within a textfield.  You can
gain access to the textField inside a TextArea by extending the TextArea (or
calling mx_internal::getTextField()).

- Dan Freiman

On 30 Mar 2007 11:07:32 -0700, Aldo Bucchi <[EMAIL PROTECTED]> wrote:


  Hi all,

Is there a way to determine the position ( coordinates ) of a given
character ( by index ) inside a textarea??

TextLineMetrics falls short...

thx ;)

--
: Aldo Bucchi :
mobile (56) 8 429 8300
 



[flexcoders] Re: Opening file after download

2007-03-30 Thread Doug Lowder
You may need to involve the server to accomplish this.  I typically 
get this behavior by streaming content through a server side page 
that sets the Content-Disposition header to "attachment; 
filename=someFile.txt".  That header is what lets the browser know it 
should display the [Save][Open] dialog.  Ont the Flex side, I just 
invoke the server-side page with navigateToURL().

HTH,
Doug

--- In flexcoders@yahoogroups.com, "Battershall, Jeff" 
<[EMAIL PROTECTED]> wrote:
>
> Hello,
> 
> I'm downloading a file using FileReference.download(), which 
prompts for
> a save location. What IE/FF provides is the ability to open after
> download, is there any way to replicate that behavior??? Many of my
> users would like to open immediately, not have to browse to the
> downloaded file location.
> 
> Jeff Battershall
> Application Architect
> Dow Jones Indexes
> [EMAIL PROTECTED]
> (609) 520-5637 (p)
> (484) 477-9900 (c)
>




[flexcoders] Finding the position of a given character inside a TextArea

2007-03-30 Thread Aldo Bucchi
Hi all,

Is there a way to determine the position ( coordinates ) of a given
character ( by index ) inside a textarea??

TextLineMetrics falls short...


thx ;)

-- 
: Aldo Bucchi :
mobile (56) 8 429 8300


RE: [flexcoders] Re: RTE when using itemRenderers in DataGrid.

2007-03-30 Thread Alex Harui
I don't have 2.0 around right now.  2.0.1 seems better.  I got a
different error in 2.0.1 and was able to workaround it by calling
dg.validateNow() before loadData()



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of tonmmp
Sent: Friday, March 30, 2007 6:25 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: RTE when using itemRenderers in DataGrid.



Greetings,

The error:

TypeError: Error #1010: A term is undefined and has no properties.
at
mx.controls::DataGrid/mx.controls:DataGrid::commitEditedItemPosition()[C
:\dev\GMC\sdk\frameworks\mx\controls\DataGrid.as:3249]
at
mx.controls::DataGrid/mx.controls:DataGrid::updateDisplayList()[C:\dev\G
MC\sdk\frameworks\mx\controls\DataGrid.as:1220]
at
mx.core::UIComponent/validateDisplayList()[C:\dev\GMC\sdk\frameworks\mx\
core\UIComponent.as:5672]
at
mx.managers::LayoutManager/mx.managers:LayoutManager::validateDisplayLis
t()[C:\dev\GMC\sdk\frameworks\mx\managers\LayoutManager.as:594]
at
mx.managers::LayoutManager/mx.managers:LayoutManager::doPhasedInstantiat
ion()[C:\dev\GMC\sdk\frameworks\mx\managers\LayoutManager.as:664]
at Function/http://adobe.com/AS3/2006/builtin::apply
 ()
at
mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher2()[C:\dev\
GMC\sdk\frameworks\mx\core\UIComponent.as:7789]
at
mx.core::UIComponent/mx.core:UIComponent::callLaterDispatcher()[C:\dev\G
MC\sdk\frameworks\mx\core\UIComponent.as:7732]

I really need some help on this one.
Thanks

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Please recompile with -verbose-stacktraces and post the contents of
the
> exception dialog.
> 
> 
> 
> invalidateList requests validateDisplayList call in the next frame
> update.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of tonmmp
> Sent: Thursday, March 22, 2007 12:04 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Re: RTE when using itemRenderers in DataGrid.
> 
> 
> 
> Greetings,
> 
> I'm having the same issue, but only when switching between other
> application, using Alt-Tab.
> I've tried the "mydatagrid.validateDisplayList();" but isn't that the
> same as doing "mydatagrid..invalidateList();" ?
> 
> I really need some help.
> Thanks 
> 
> --- In flexcoders@yahoogroups.com


> , "michael_ramirez44"
>  wrote:
> >
> > I have been struggling with this issue for about 2 weeks. I was able

> > to reproduce it in a small example. I add and remove an itemRenderer

> > to a datagrid column at run-time. This only won't cause the RTE but
I 
> > also set the datagrids dataProvider again which causes the error.
You 
> > will need the Flash Player Debug version to actually see the error. 
> > You can view the example application at 
> > http://develop.gurufaction.com/flexbug/App.swf
 
>  > . I have also include

> > the source with this post.
> > 
> > --- App.mxml ---
> > 
> > http://www.adobe.com/2006/mxml
 
>  > " 
> > creationComplete="initApp()">
> > 
> > 
> > 
> > 
> > 
> >  
> > 
> > 
> > 
> > 
> >  > headerText="Firstname" />
> >  > headerText="Lastname" />
> > 
> > 
> > 
> > 
> > 
> > --- LinkRenderer.mxml --
> > 
> > http://www.adobe.com/2006/mxml
 
>  > "
width="100%" 
> > height="100%" horizontalAlign="left">
> > 
> > 
> > 
> > 
> > 
> >
>



 


[flexcoders] Re: Make a component 'modal'

2007-03-30 Thread Shaun
I actually tried that one, but from what I can tell it's not in the 
opensource part of the framework.

Shaun

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Maybe investigate how the popups create the blur efffect?
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Shaun
> Sent: Friday, March 30, 2007 10:58 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Make a component 'modal'
> 
>  
> 
> Hmm, now that's an idea... a little bit of a hack, but I'm ok with 
> simplicity over elegance to start with. I think I'll head down that 
> path unless someone throws out another (more) brilliant solution :)
> 
> Thanks for the help guys.
> 
> Shaun
> 
> --- In flexcoders@yahoogroups.com 
> , Tom Chiverton  
> wrote:
> >
> > On Friday 30 Mar 2007, Shaun wrote:
> > > The problem is that I don't want to pop up a new control or 
> create a
> > > custom control every time I want this effect. Instead, I want to
> > > apply an effect to an existing control (that could be any 
> control).
> > 
> > Hmm.
> > You could create partly opaque rectangles over the rest of the 
> screen, for 
> > instance ?
> > 
> > -- 
> > Tom Chiverton
> > Helping to synergistically revolutionize intuitive solutions
> > on: http://thefalken.livejournal.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 St James's Court Brown Street Manchester M2 
> 2JF. A list of members is available for inspection at the 
registered 
> office. Any reference to a partner in relation to Halliwells LLP 
> means a member of Halliwells LLP. Regulated by the Law Society.
> > 
> > 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 8008.
> > 
> > For more information about Halliwells LLP visit 
www.halliwells.com.
> >
>




RE: [flexcoders] Re: Dispatching Event Question?

2007-03-30 Thread Tracy Spratt
Yes, people have created central event handlers that redispatch events.
I think Cairngorm does this.  Probably find examples in the archives or
google.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Friday, March 30, 2007 12:29 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Dispatching Event Question?

 

If you listen to systemManager for the event in capture phase you'll see
it.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of paulwelling
Sent: Friday, March 30, 2007 9:54 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Dispatching Event Question?

Hello Roman,

I am trying to avoid spec'ing who will do the dispatching and just
have my component listen for the event no matter who dispatches it.

Any ideas?

The A.addEventListener(..) seems to couple more than I want...

Thanks,
Paul

--- In flexcoders@yahoogroups.com 
, "Roman Protsiuk"
<[EMAIL PROTECTED]> wrote:
>
> When you are adding an event listener the only thing that tells who
is to
> dispatch the event is who's addEventListener() is called. I mean if
you are
> calling addEventListener(...) this means that you are listening to
'this'
> that will dispatch the event. If a.addEventListener(...) then 'a' will
> dispatch it.
> 
> What you need is smth like:
> instanceOfA.addEventListener("myEvent", myBListenerFunc);
> inside of the B instance.
> 
> R.
> 
> On 30 Mar 2007 08:25:28 -0700, paulwelling <[EMAIL PROTECTED]>
> wrote:
> >
> > Hello,
> >
> > Question on disipatching events that I hope someone can clear up...
> >
> > I have two custom components, A and B created at the Application
level.
> >
> > I want to send a custom event from A to B.
> >
> > Inside of B creationComplete, I have addEventListener("myEvent",
> > myBListenerFunc);
> >
> > Inside of A, on a button click, I dispatchEvent(new
Event("myEvent"))
> >
> > Obviously I would like the function on B, myBListenerFunc() to be
> > called, but is not.
> >
> > I'm sure I can do this without having to tell B that A is the
> > dispatcher (in B, A.addEventListner("myEvent",myBListnerFunc);)
> >
> > Thanks,
> > Paul
> >
> > 
> >
>

 



[flexcoders] Problems with tooltip position

2007-03-30 Thread Carlos Humberto
At first I apologize for my terrible English.
I have two TextInput and I want to show a tootip informing that the
"caps lock is on" at the both fields.
My problem is to position the tooltip because the way I was doing is
not the best one.
I used the global coordinates and for the first field works good, but
for the second not.

somebody could explain better how to use the global coordinates with
many fields, one below the other?

Thank you!

Carlos H.

My source code follows below:


http://www.adobe.com/2006/mxml";
creationComplete="Init()"
width="100%" height="100%">







  








[flexcoders] Re: Make a component 'modal'

2007-03-30 Thread Shaun
Hey guys, thanks for the additional suggestions.  

I'm thinking reparenting might involve working through some layout 
issues, but would probably work.

Alex, I assume you mean I should use popupmanager to popup a new 
instance of the component and set its location to be on top of first 
instance?  What if I want to set focus to an arbitrary box that 
contains several components - i.e. something arbitrary that I can't 
create a new instance of?

Is there some way to make a popup display an existing displayobject 
that I'm not aware of?

Thanks again!
Shaun

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> You could popup a copy of the component over the component in 
question. 
> 
> -Original Message-
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of John Mark Hawley
> Sent: Friday, March 30, 2007 10:22 AM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Re: Make a component 'modal'
> 
> You could try temporarily reparenting the "strong focused" 
component so
> it was over everything else in the displayList,  then drop a big
> translucent grey box behind it, set to intercept mouse clicks. That
> sounds like it should work, eh?
> 
> -Mark Hawley
> 
> > 
> > From: "Shaun" <[EMAIL PROTECTED]>
> > Date: 2007/03/30 Fri AM 09:08:29 CST
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Make a component 'modal'
> > 
> > That would work, but it would only disable controls, not give the 
> > greyed out look to the rest of the screen, like the popups do.  I 
> > suppose I could do like you say, but instead have the style 
changed 
> > for the other components...
> > 
> > but I'm really hoping there's some way to create a magic function
> > like:
> > 
> > public static function strongFocus(control:DisplayObject):void
> > {
> >...
> > }
> > 
> > that I can call from anywhere and it will grey out and disable 
mouse 
> > interaction with everything on the stage but the control passed 
in.
> > 
> > Am I hoping for too much?
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "Clint Tredway" 
> > wrote:
> > >
> > > without seeing how you setup your code, here is my suggestion.
> > > 
> > > Set the parent containers of the other 'components' enabled
> > attribute to a
> > > bindable var or even a state, and then when that specific 
button is
> > clicked,
> > > set the var to false or in the case of using states, just change
> > the state.
> > > Either way, that should accomplish what you are describing.
> > > 
> > > HTH,
> > > Clint
> > > 
> > > On 30 Mar 2007 07:36:17 -0700, Shaun  wrote:
> > > >
> > > >   Is there any way to make a component modal/hilight it? I 
would
> > like to
> > > > be able to gray out (like when a popup is shown) everything 
on the
> 
> > > > screen but a certain component when the user click on a 
specific
> > button.
> > > >
> > > > Basically I want a popup that's not a popup, but rather sets 
the
> > focus
> > > > on a particular component that is already in the displaylist.
> > > >
> > > > Thoughts on the best way to acheive this?
> > > >
> > > > Thanks,
> > > > Shaun
> > > >
> > > >  
> > > >
> > > 
> > > 
> > > 
> > > --
> > > I am not a diabetic, I have diabetes my blog - 
> > > http://grumpee.instantspot.com/blog
> > >
> > 
> > 
> > 
> > 
> 
> --
> John Mark Hawley
> The Nilbog Group
> 773.968.4980 (cell)
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>




RE: [flexcoders] Re: Make a component 'modal'

2007-03-30 Thread Tracy Spratt
Maybe investigate how the popups create the blur efffect?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Shaun
Sent: Friday, March 30, 2007 10:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Make a component 'modal'

 

Hmm, now that's an idea... a little bit of a hack, but I'm ok with 
simplicity over elegance to start with. I think I'll head down that 
path unless someone throws out another (more) brilliant solution :)

Thanks for the help guys.

Shaun

--- In flexcoders@yahoogroups.com 
, Tom Chiverton <[EMAIL PROTECTED]> 
wrote:
>
> On Friday 30 Mar 2007, Shaun wrote:
> > The problem is that I don't want to pop up a new control or 
create a
> > custom control every time I want this effect. Instead, I want to
> > apply an effect to an existing control (that could be any 
control).
> 
> Hmm.
> You could create partly opaque rectangles over the rest of the 
screen, for 
> instance ?
> 
> -- 
> Tom Chiverton
> Helping to synergistically revolutionize intuitive solutions
> on: http://thefalken.livejournal.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 St James's Court Brown Street Manchester M2 
2JF. A list of members is available for inspection at the registered 
office. Any reference to a partner in relation to Halliwells LLP 
means a member of Halliwells LLP. Regulated by the Law Society.
> 
> 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 8008.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
>

 



RE: [flexcoders] Re: Problem with flash.Utils.Timer

2007-03-30 Thread Tracy Spratt
I know that leaving that argument off completely results in a continuous
timer.  Try that.

 

Here is an example of a timer, perhaps you will see what is different
from your code.
http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectI
D=578

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of kumaran_sb
Sent: Friday, March 30, 2007 10:53 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Problem with flash.Utils.Timer

 

Hi the online documentation at Adobe has recommended setting the value
= 0 to make the loop run continuously.

Cheers
Kumaran
--- In flexcoders@yahoogroups.com 
, "Clint Tredway" <[EMAIL PROTECTED]> wrote:
>
> I think its not working right because you have set the continue
param to 0.
> What happens if you set this to some other value?
> 
> On 3/30/07, kumaran_sb <[EMAIL PROTECTED]> wrote:
> >
> > Hello flexcoders
> >
> > this is a related question to my previous one. I'm having trouble
> > with the flash.utils.Timer which Im using to perform a scheduled
> > event inside a Flex app. I want the timer to fire every 10 seconds,
> > continuously till the application is killed.
> >
> > Unfortunately, however I initialize it, the TimerEvent seems to
> > fire at every instant of time(i..e it does not seem to respect the
> > 10 second delay). Has anyone seen this issue before ?Here is my code
> > snippet..
> >
> > _pingTimer = new Timer(1,0);
> > _pingTimer.addEventListener(TimerEvent.TIMER,onTick);
> > _pingTimer.start();
> >
> > Any help would be much appreciated.
> >
> > Thanks
> > Kumaran
> >
> > 
> >
> 
> 
> 
> -- 
> I am not a diabetic, I have diabetes
> my blog - http://grumpee.instantspot.com/blog
 
>

 



[flexcoders] Re: Dispatching Event Question?

2007-03-30 Thread iilsley

Hi Paul ,

I'm not 100% sure about this but ..

How about ..

Application.application.addEventListener(..) ?

This should get caught if the Event bubbles ( bubbles = true )  .. If
not then you can
specify a specific listener and then re-dispatch the event with bubbles
= true ..

eg:

function  catchEvent(e:Event)
{
var myE:Event = new Event(e,true);
dispatch(myE);
}




--- In flexcoders@yahoogroups.com  ,
"paulwelling" <[EMAIL PROTECTED]> wrote:
>
> Hello Roman,
>
> I am trying to avoid spec'ing who will do the dispatching and just
> have my component listen for the event no matter who dispatches it.
>
> Any ideas?
>
> The A.addEventListener(..) seems to couple more than I want...
>
> Thanks,
> Paul
>
>
> --- In flexcoders@yahoogroups.com 
, "Roman Protsiuk"
> roman.protsiuk@ wrote:
> >
> > When you are adding an event listener the only thing that tells who
> is to
> > dispatch the event is who's addEventListener() is called. I mean if
> you are
> > calling addEventListener(...) this means that you are listening to
> 'this'
> > that will dispatch the event. If a.addEventListener(...) then 'a'
will
> > dispatch it.
> >
> > What you need is smth like:
> > instanceOfA.addEventListener("myEvent", myBListenerFunc);
> > inside of the B instance.
> >
> > R.
> >
> > On 30 Mar 2007 08:25:28 -0700, paulwelling pwelling@
> > wrote:
> > >
> > >   Hello,
> > >
> > > Question on disipatching events that I hope someone can clear
up...
> > >
> > > I have two custom components, A and B created at the Application
> level.
> > >
> > > I want to send a custom event from A to B.
> > >
> > > Inside of B creationComplete, I have addEventListener("myEvent",
> > > myBListenerFunc);
> > >
> > > Inside of A, on a button click, I dispatchEvent(new
Event("myEvent"))
> > >
> > > Obviously I would like the function on B, myBListenerFunc() to be
> > > called, but is not.
> > >
> > > I'm sure I can do this without having to tell B that A is the
> > > dispatcher (in B, A.addEventListner("myEvent",myBListnerFunc);)
> > >
> > > Thanks,
> > > Paul
> > >
> > >
> > >
> >
>



RE: [flexcoders] Warning/Error Hints

2007-03-30 Thread Tracy Spratt
I created a "status bar" for one app.
Tracy

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom 
Chiverton
Sent: Friday, March 30, 2007 10:08 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Warning/Error Hints

On Friday 30 Mar 2007, André Rodrigues Pena wrote:
> decreases the need of interaction and the use of the boring
> Alert.show() method.
> Thanks! :)

's what we did- started out using Alert's to display form errors, moved to 
Validators as we got the hang of it.

-- 
Tom Chiverton
Helping to interactively participate eye-catching relationships
on: http://thefalken.livejournal.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 St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

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

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links







RE: [flexcoders] Issues with Datagrid non repeatinh HTTPService XML Result.

2007-03-30 Thread Tracy Spratt
I think you will be happy with HTTPService.

 

Specify resultFormat="e4x" in the HTTPService tag, otherwise flex
converts the xml into an nested mx:Object structure.  I find e4x XML
much easier to work with.

 

Don't bind directly to lastResult. It is too hard to debug. Instead use
a result handler, and set an instance variable value(XMLListCollection)
to event.result.STAFFREC in that, and bind the DataGrid dp to the
instance variable.  In the handler, you can trace the instance
variable.toXMLString() to see exactly what yo have, and how to set the
DataGridColumn dataField or labelFunction.

 

I've written sample code tor this so many times I don't want to do it
again right now, but post if you need more detail.

 

Tracy 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Olonade Tolulope williams
Sent: Friday, March 30, 2007 6:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Issues with Datagrid non repeatinh HTTPService XML
Result.

 

I have a flex DBGrid client that was supposed to consume a web 
service client. After much tweaking and coding. No success. I 
switched to HTTPService and this was returning xml results.
But when DBGrid accepts the results they are all listed ONLY in row 1 
of the DBGrid.
Below is the mxml application as well as the web service I 1st used 
and finally the httpservice routine done in C# 2.0
Any help will be appreciated.
Thanks.

http://www.adobe.com/2006/mxml
 " 
layout="absolute">
http://localhost:53541/SDSearch.NET/Default.aspx
 " 
showBusyCursor="true">

{NameBox.text}
{PhoneBox.text}















 



public class Employee
{
public string STAFFNAME;
public string Phone_Num;
}
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string byName, byPhoneNum;
string queryString, cnString;
OleDbDataAdapter adapter;
DataSet EmpData = new DataSet();
cnString = ConfigurationManager.AppSettings
["ConnStrDB"].ToString();

byName = Request.Params["byName"].ToString().Trim();
byPhoneNum = Request.Params["byPhoneNum"].ToString().Trim
();

if (byPhoneNum.Length == 11)
{
queryString = "SELECT * FROM Employees WHERE 
PHONE_NUMBER = '" + byPhoneNum + "'";
adapter = new OleDbDataAdapter(queryString, cnString);
adapter.Fill(EmpData, "Employees");

Response.Write("");
foreach (DataRow currrec in EmpData.Tables[0].Rows)
{
Response.Write("" + currrec
["STAFFNAME"].ToString() + "");
Response.Write("" + currrec
["PHONE_NUMBER"].ToString() + "");
}
Response.Write("");
//XmlDataDocument dataDoc = new XmlDataDocument
(EmpData);
//return dataDoc;
}
else 
{
queryString = "SELECT * FROM Employees WHERE 
STAFFNAME LIKE '%" + byName + "%'";
adapter = new OleDbDataAdapter(queryString, cnString);
adapter.Fill(EmpData, "Employees");

Response.Write("");
foreach (DataRow currrec in EmpData.Tables[0].Rows)
{
Response.Write("" + currrec
["STAFFNAME"].ToString() + "");
Response.Write("" + currrec
["PHONE_NUMBER"].ToString() + "");
}
Response.Write("");

//XmlDataDocument dataDoc = new XmlDataDocument
(EmpData);
//return dataDoc;
}
}
}

// the web service..
[WebService(Namespace = "http://tempuri.org/  ")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Employee
{
public string STAFFNAME;
public string Phone_Num;
}
public class SDSearch : System.Web.Services.WebService
{
public SDSearch () {

//Uncomment the following line if using designed components 
//InitializeComponent(); 
}

[WebMethod]
public XmlDataDocument getStaffMatch(string byName, string 
byPhoneNum)
{
string queryString,cnString;
OleDbDataAdapter adapter;
DataSet EmpData = new DataSet();
cnString = ConfigurationManager.AppSettings
["ConnStrDB"].ToString();

if (byPhoneNum.Length == 11)
{
queryString = "SELECT * FROM Employees WHERE PHONE_NUMBER 
= '" + byPhoneNum + "'";
adapter = new OleDbDataAdapter(queryString, cnString);
adapter.Fill(EmpData,"Employees");
XmlDataDocument dataDoc = new XmlDataDocument(EmpData);
return dataDoc;
}
else //if (byName.Length > 3)
{
queryString = "SELECT * FROM Employees WHERE STAFFNAME 
LIKE '%" + byName + "%'";
adapter = new OleDbDataAdapter(queryString, cnString);
adapter.Fill(EmpData, "Employees");
XmlDataDocument dataDoc = new XmlDataDocument(EmpData);
return dataDoc;
}

}

}

 



RE: [flexcoders] Re: Dispatching Event Question?

2007-03-30 Thread Alex Harui
If you listen to systemManager for the event in capture phase you'll see
it.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of paulwelling
Sent: Friday, March 30, 2007 9:54 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Dispatching Event Question?



Hello Roman,

I am trying to avoid spec'ing who will do the dispatching and just
have my component listen for the event no matter who dispatches it.

Any ideas?

The A.addEventListener(..) seems to couple more than I want...

Thanks,
Paul

--- In flexcoders@yahoogroups.com 
, "Roman Protsiuk"
<[EMAIL PROTECTED]> wrote:
>
> When you are adding an event listener the only thing that tells who
is to
> dispatch the event is who's addEventListener() is called. I mean if
you are
> calling addEventListener(...) this means that you are listening to
'this'
> that will dispatch the event. If a.addEventListener(...) then 'a' will
> dispatch it.
> 
> What you need is smth like:
> instanceOfA.addEventListener("myEvent", myBListenerFunc);
> inside of the B instance.
> 
> R.
> 
> On 30 Mar 2007 08:25:28 -0700, paulwelling <[EMAIL PROTECTED]>
> wrote:
> >
> > Hello,
> >
> > Question on disipatching events that I hope someone can clear up...
> >
> > I have two custom components, A and B created at the Application
level.
> >
> > I want to send a custom event from A to B.
> >
> > Inside of B creationComplete, I have addEventListener("myEvent",
> > myBListenerFunc);
> >
> > Inside of A, on a button click, I dispatchEvent(new
Event("myEvent"))
> >
> > Obviously I would like the function on B, myBListenerFunc() to be
> > called, but is not.
> >
> > I'm sure I can do this without having to tell B that A is the
> > dispatcher (in B, A.addEventListner("myEvent",myBListnerFunc);)
> >
> > Thanks,
> > Paul
> >
> > 
> >
>



 


RE: [flexcoders] passing data to an EventListener

2007-03-30 Thread Tracy Spratt
Hey, that IS a clever idea, thanks!

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Muzak
Sent: Friday, March 30, 2007 5:53 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] passing data to an EventListener

 

You can use the data property, which is normally used in combination
with item renderers or item editors, but nothing says you can't 
use it for something else ;-)

import mx.controls.Button;

private function appInit():void {
var offset:Number = 0;
for (var i:Number=0; i<10; i++) {
var b:Button = new Button();
b.data = {btnIndex:i};
b.y = offset;
b.label = "click me";
b.toolTip = "button "+i;
b.addEventListener(MouseEvent.CLICK, buttonClickHandler);
addChild(b);
offset+=20;
}
}

private function buttonClickHandler(evt:Event):void {
trace("index: "+evt.currentTarget.data.btnIndex);
}

regards,
Muzak

- Original Message - 
From: "dougco2000" <[EMAIL PROTECTED]  >
To: mailto:flexcoders%40yahoogroups.com> >
Sent: Friday, March 30, 2007 8:43 AM
Subject: [flexcoders] passing data to an EventListener

I'm creating a number of buttons programmatically and I'd like to have
a unique value passed along to a function when each one is clicked.

So if I am doing something like:

for (i=0;i<10;i++) {
b = new Button();
b.y = offset;
b.label = "click me";
b.tooltip = "button "+i;
b.addEventListener(MouseEvent.CLICK, butSelect);
addChild(b);
offset+=20;
}

And I want to have, let's say, "i" passed along to the "butSelect"
function, how is that done? I humored myself and tried doing
butSelect(i) but of course the mouseEvent is passed and you're not
allowed to provide any parameters to the function.

Thanks!

 



RE: [flexcoders] Re: Make a component 'modal'

2007-03-30 Thread Alex Harui
You could popup a copy of the component over the component in question. 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of John Mark Hawley
Sent: Friday, March 30, 2007 10:22 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Make a component 'modal'

You could try temporarily reparenting the "strong focused" component so
it was over everything else in the displayList,  then drop a big
translucent grey box behind it, set to intercept mouse clicks. That
sounds like it should work, eh?

-Mark Hawley

> 
> From: "Shaun" <[EMAIL PROTECTED]>
> Date: 2007/03/30 Fri AM 09:08:29 CST
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Make a component 'modal'
> 
> That would work, but it would only disable controls, not give the 
> greyed out look to the rest of the screen, like the popups do.  I 
> suppose I could do like you say, but instead have the style changed 
> for the other components...
> 
> but I'm really hoping there's some way to create a magic function
> like:
> 
> public static function strongFocus(control:DisplayObject):void
> {
>...
> }
> 
> that I can call from anywhere and it will grey out and disable mouse 
> interaction with everything on the stage but the control passed in.
> 
> Am I hoping for too much?
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Clint Tredway" <[EMAIL PROTECTED]>
> wrote:
> >
> > without seeing how you setup your code, here is my suggestion.
> > 
> > Set the parent containers of the other 'components' enabled
> attribute to a
> > bindable var or even a state, and then when that specific button is
> clicked,
> > set the var to false or in the case of using states, just change
> the state.
> > Either way, that should accomplish what you are describing.
> > 
> > HTH,
> > Clint
> > 
> > On 30 Mar 2007 07:36:17 -0700, Shaun <[EMAIL PROTECTED]> wrote:
> > >
> > >   Is there any way to make a component modal/hilight it? I would
> like to
> > > be able to gray out (like when a popup is shown) everything on the

> > > screen but a certain component when the user click on a specific
> button.
> > >
> > > Basically I want a popup that's not a popup, but rather sets the
> focus
> > > on a particular component that is already in the displaylist.
> > >
> > > Thoughts on the best way to acheive this?
> > >
> > > Thanks,
> > > Shaun
> > >
> > >  
> > >
> > 
> > 
> > 
> > --
> > I am not a diabetic, I have diabetes my blog - 
> > http://grumpee.instantspot.com/blog
> >
> 
> 
> 
> 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links





RE: [flexcoders] Re: Programmatically create MovieClip frames?

2007-03-30 Thread Merrill, Jason
In the case where users would create their own animations on a web site,
injecting frames at runtime with content dynamically into a .swf would
not be the way to do it.  You would want to control the animation with
Actionscript.  Adding that ability to the player would add unecessary
overhead while not solving any real-world problem.  
 
Even on collaborative projects, where would the animation content live
that would be injected? On collaborative projects, each animator can
create their own .swfs and then a programmer loads them all in where
they like into a central .swf.
 
You had asked for someone to create a Flash 9 .swf for you with some
blank frames, but I don't see what that would solve since you would
still need to inject the content of the animation.  Sorry, still just
trying to understand why this would be useful...  I think this disussion
has been a good mental excercise at least.  :)
 

Jason Merrill 
Bank of America  
GT&O Learning & Leadership Development 
eTools & Multimedia Team 


 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of mtthwnthnyhys
Sent: Friday, March 30, 2007 5:15 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Programmatically create MovieClip
frames?



Thanks Jason, Troy, and Paul, for all your help/feedback.

Jason, I can't think of a use case for adding frames to a
MovieClip either. Unless of course, 
you wanted to have animations that you could control with AS3,
but didn't have access to 
the Flash CS3 preview. Though, now that I think about it, it
seems like there are some 
interesting possibilities for dynamically generated animations.

Imagine a 'community' site that invited users to create their
own animated avatars... or a 
video game in which the player designs his or her own
character... or collaborative 
animation project in which different artists are creating
different parts, maybe even 
individual frames of an animated sequence... or where a lead
animator is creating the key 
frames, and 'tweeners' are creating the in between frames... you
could even track and 
control this CVS-like, without having to pass around/merge FLAs.

Maybe these are pretty abstract, I know... I thought of them
just now.

The point is, I personally don't WANT to add frames to a
MovieClip. But I don't have access 
to the Flash CS3 preview, and so I was wondering if it was
possible to generate AS3/AVM2 
MovieClips, in some other way. MovieClip.appendFrame() seems
like it'd be easier than 
the method Troy describes of creating a custom AnimatedSprite
class, which will 
eventually have all or most of the methods of a MovieClip... at
least, the timeline control 
methods.

Basically, if I were having this problem 20 days from now... I
wouldn't be having this 
problem. You're right, I'd just make the MovieClips in Flash
CS3, export the library into a 
SWC, and use them from there in my Flex app as I wanted. That
would definately be the 
easiest way.

Luckily, I foresaw this problem pretty early on in the project,
so I have plenty of time to 
work on other things while I figure out the best way to handle
this... maybe the other 
things will even take me until the end of April and I won't have
this problem at all. In 
anycase, I appreciate all your help, and offers to help. If it
turns out that I need someone 
to make me a SWF with a few blank frames somewhere down the
line, I'll definately be 
hitting one of you guys up for that.

Other than that, I think we can call this discussion closed.
Unless someone has more 
information about it. Although, and maybe this is a seperate
post/question in itself, I 
thought I once heard about being able to control/communicate
with AVM1Movies once the 
new version of Flash came out... I guess that's not happening?

NO DYNAMICALLY ADDING FRAMES TO MOVIE CLIPS!! Got it.

Thanks all,
//Matt

--- In flexcoders@yahoogroups.com
 , "Troy Gilbert"
<[EMAIL PROTECTED]> wrote:
>
> Okay, how about the simple scenario where you want the
playback of a series
> of frames of animation... you know, exactly what a movie clip
does? I could
> definitely do this by creating a class that extends sprite and
in that class
> keeping an array of shapes (or sprites) and each ENTER_FRAME
event moving my
> virtual playhead forward to the next sprite, etc., etc...
> 
> And you know what I'd get? A MovieClip! Looks like Adobe
already wrote that
> one! ;-)
> 
> Seriously, though, the prob

[flexcoders] Re: List dragMoveEnabled problem?

2007-03-30 Thread jasondrubenstein
and, if I write code to convert the XML to an ArrayCollection, and
bind to the new ArrayCollections, everything works fine. 

So it seems the problem is when I'm binding to XMLListCollection. 
Binding to an ArrayCollection is behaving as expected. 

This is a workaround, but there shouldn't be a problem when using
XMLListCollections, I'm guessing?



--- code ---

http://www.adobe.com/2006/mxml";
layout="absolute" creationComplete="init()">














-- code--



Re: [flexcoders] Re: Make a component 'modal'

2007-03-30 Thread John Mark Hawley
You could try temporarily reparenting the "strong focused" component so it was 
over everything else in the displayList,  then drop a big translucent grey box 
behind it, set to intercept mouse clicks. That sounds like it should work, eh?

-Mark Hawley

> 
> From: "Shaun" <[EMAIL PROTECTED]>
> Date: 2007/03/30 Fri AM 09:08:29 CST
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Make a component 'modal'
> 
> That would work, but it would only disable controls, not give the 
> greyed out look to the rest of the screen, like the popups do.  I 
> suppose I could do like you say, but instead have the style changed 
> for the other components...  
> 
> but I'm really hoping there's some way to create a magic function 
> like:
> 
> public static function strongFocus(control:DisplayObject):void
> {
>...
> } 
> 
> that I can call from anywhere and it will grey out and disable mouse 
> interaction with everything on the stage but the control passed in.
> 
> Am I hoping for too much?
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Clint Tredway" <[EMAIL PROTECTED]> 
> wrote:
> >
> > without seeing how you setup your code, here is my suggestion.
> > 
> > Set the parent containers of the other 'components' enabled 
> attribute to a
> > bindable var or even a state, and then when that specific button is 
> clicked,
> > set the var to false or in the case of using states, just change 
> the state.
> > Either way, that should accomplish what you are describing.
> > 
> > HTH,
> > Clint
> > 
> > On 30 Mar 2007 07:36:17 -0700, Shaun <[EMAIL PROTECTED]> wrote:
> > >
> > >   Is there any way to make a component modal/hilight it? I would 
> like to
> > > be able to gray out (like when a popup is shown) everything on the
> > > screen but a certain component when the user click on a specific 
> button.
> > >
> > > Basically I want a popup that's not a popup, but rather sets the 
> focus
> > > on a particular component that is already in the displaylist.
> > >
> > > Thoughts on the best way to acheive this?
> > >
> > > Thanks,
> > > Shaun
> > >
> > >  
> > >
> > 
> > 
> > 
> > -- 
> > I am not a diabetic, I have diabetes
> > my blog - http://grumpee.instantspot.com/blog
> >
> 
> 
> 
> 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


RE: [flexcoders] Getting the RichTextEditor to do some dancing in a database...> to XML file

2007-03-30 Thread Tracy Spratt
Consider simply using escape() to encode the htmlText on the way into
the db and unescape() it before assigning it to the RTE.

 

I haven't thought this all the way throug, now.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of shawn.gibson
Sent: Thursday, March 29, 2007 9:53 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Getting the RichTextEditor to do some dancing in a
database...> to XML file

 

Hi Guys, I want to add a comments area to the gallery/blog I'm
building, and I'd like to be able to offer users an RTE interface,
with the resultant html text to be properly displayed when later
retrieved. This, in my case, will most likely be a 2-part affair. The
user will enter a comment into a text area as provided by the RTE, and
that data will be dumped into a sql/mysql db, and I will run a CF
script that passes me back (i.e., creates when invoked by the
administrator - me) an xml file that I can use HTTPService to load in
the data into a TextArea...I think...I'm still learning.

My core question today, if I'm even on the right track, is...how do I
populate the db, and get it back into the xml file, in the sense that
I think I'd need to wrap the users' input around CDATA areas within
the generated xml (that's my guess)?

In other words, how do I populate the database, not with "hi there,
nice pic", but instead with "hi there,nice pic!!!" and
pass THAT into the generated xml file, andback out to a TextArea
component?

I do have an XML generating file in CF that someone got me started on,
to read values in the db and pass me back a proper xml file (and it
works like a charm so far!), but it's pretty simple at this stage. I
can't even show it because my server is in for configuration with Win
Server2003SBS...and all my files are on it...

If my approach doesn't make sense, let me say, I'm doing most of the
db work as the owner (creating and updating galleries, images, photo
data etc.), and spitting out xml files for the client to upload, to
minimize actual client db access (and, I believe, reduce wear and tear
on my equipment, i.e., spitting out XML files seems less intensive on
my machine than having users constantly accessing the same
db...caching issues being a problem I'll deal with when I get to
them). But this is one of the cases where I DO seem to need to allow a
user access to the db itself - to enter a blog/comment.

Any guidance would be appreciated. I know part of the answer is:
you're doing it wrong, use a CRUD CFC and shove it somewhere offsite
so you can validate it yourself before allowing it onto the site, but
I haven't been able to figure those things out yet...and if anyone
would be willing to teach me that (Build a CRUD CFC and get it
working, all 4 operations, in Flex), just for demonstration purposes,
I'd be willing to pay for it, because I really need to learn this
stuff for my gallery (I'm a photographer/designer, not yet a developer).

Shawn

 



Re: [flexcoders] Warning/Error Hints

2007-03-30 Thread Clint Tredway

I am going to assume that you are talking about an input form(although you
may not be), you can use the built in validators to validate the form
elements as the user navigates the form.

On 30 Mar 2007 06:53:43 -0700, André Rodrigues Pena <[EMAIL PROTECTED]>
wrote:


  Hi all,
I'm developing an application for 1 month and already get bored with
the Alert.show() dialog box.
I don't think it's ideal to show error and warning messages to the
user when he/she is interacting with a form or a button (I think it's
interesting but not in these situations). I'd like to know if there's
something like a balloon to let the user know something in a more
slightly way.

Any help is appreciated

--
André Rodrigues Pena
 





--
I am not a diabetic, I have diabetes
my blog - http://grumpee.instantspot.com/blog


Re: [flexcoders] How do I read Response after FileReference uploads a file?

2007-03-30 Thread Paul J DeCoursey
I did something similar.  Before the upload I get a token, I pass that 
token on the querystring of the upload.  Once complete I use that token 
to get info about the upload.  I also use this token for authentication 
purposes.  We have had a lot of trouble with file uploads not sharing 
sessions with all of the other requests in the app.  Another advantage 
to the token is we have a queue of files that the user is uploading from 
in the app.  With the token we don't have to retrieve the response data 
right away, or it can be ignored altogether.  We also expire the tokens 
after a certain period of time because we do use them for auth as well.  
Anyway, it's probably overkill for your project, but I thought I'd share.

Paul


Grant Davies wrote:
> you can't... file reference does not return the response... (yes I know
> that's dumb, I thought the same thing)
>  
> What I had to do is write the response to the session, and after file
> reference returns success/fail I go back and request the session
> variable as an XML response...
>  
> Grant
>  
>  
> ...
>   
>> b l u e t u b e i n t e r a c t i v e
>> 
> .: The glue between creative and engineering
> .: grant davies
> .: 404.428.6839 (c)
> .: 708-983-1577 (F)
>   
>> [EMAIL PROTECTED]
>> http://www.bluetube.com/bti  
>> 
>
>  
>
>  
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of thegators_2002
> Sent: Friday, March 30, 2007 11:36 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] How do I read Response after FileReference uploads
> a file?
>
>
>
> I am trying to use FileReference to upload a file from the user side
> to a web page and read the response(xml) that the server returns. I
> can't figure out how to get the response, however. It doesn't seem to
> be included in the FileReference object.
>
> Is there a way to read the response coming back after a file upload,
> or is this halted by design?
>
>
>
>  
>
>   



Re: [flexcoders] VBox, constraint based layout not clipping content

2007-03-30 Thread slangeberg

The trick I just used for this is to set maxHeight on the 'scrolling'
container. Will allow dynamic height add, to point, before scrolls kick in.

-Scott

On 3/9/07, scott_flex <[EMAIL PROTECTED]> wrote:



Any particualar reason why a Vbox won't correctly clip content and show
scrollbars when the object is using constraint based layout positioning?

I'm adding up to 50 child objects to the vbox and want the scrollbars
to appear so the user can scroll to see them all.

If i set the height, and width everything works as expected, so i've
manually tapped into the resize event on my parent canvas and manually
set the height and width to get the effect of a constraint based
layout. Doesn't seem like i should have to do this.

If i used the top,left,right,bottom properties, my VBox just expands
its size to include all child objects added... which then forces the
scroll bars on it's parent container, not what i want.

Maybe i'm doing something wrong...

 





--

: : ) Scott


[flexcoders] List with smooth scroll

2007-03-30 Thread nxzone
Scrolling a List go from row 1 to row 2. How can I scroll between two
row? 

My itemRendrer have a big height and it's difficult to see the
scrolling...








 



[flexcoders] Re: TextArea htmltext parsing

2007-03-30 Thread jmfillman
I like what they've done here: 
http://www.flextendibles.com/DemoSpellChecker.html

however, I really don't want to add a J2EE App Server to what I have 
to support. The fewer things I have to keep running, the better. I'm 
already using PHP, MySQL, and WebORB, not that they are difficult, 
but the more you add, the bigger the chance for problems.

I've hired a guy to help me write a PHP spelling function, but the 
html stuff really makes it quite slow. He's got it stripping out the 
html quite nicely, my biggest issue is the speed. Tags inside words 
is a whole other problem that I don't have an answer for.

I really want to provide the functionality of the RichTextEditor to 
my users, but what good are these things if you can't easily check 
the spelling? It'd be ideal if Flex 3 included a robust spell 
checking capability. It would seem to fit the overall theme of RIA's. 
What good is a Word Processing app, for example, if you have to 
create a bunch of less than ideal processes to check spelling?

Getting down off the soap box, I have to find an effective way of 
doing this. I still want to send it to PHP because I can get a more 
robust spell check, but I believe that I need to handle the html text 
manipulation in Flex, to make it fast, and only send PHP a single 
word at a time.



[flexcoders] Re: Dispatching Event Question?

2007-03-30 Thread paulwelling
Hello Roman,

I am trying to avoid spec'ing who will do the dispatching and just
have my component listen for the event no matter who dispatches it.

Any ideas?

The A.addEventListener(..) seems to couple more than I want...

Thanks,
Paul


--- In flexcoders@yahoogroups.com, "Roman Protsiuk"
<[EMAIL PROTECTED]> wrote:
>
> When you are adding an event listener the only thing that tells who
is to
> dispatch the event is who's addEventListener() is called. I mean if
you are
> calling addEventListener(...) this means that you are listening to
'this'
> that will dispatch the event. If a.addEventListener(...) then 'a' will
> dispatch it.
> 
> What you need is smth like:
> instanceOfA.addEventListener("myEvent", myBListenerFunc);
> inside of the B instance.
> 
> R.
> 
> On 30 Mar 2007 08:25:28 -0700, paulwelling <[EMAIL PROTECTED]>
> wrote:
> >
> >   Hello,
> >
> > Question on disipatching events that I hope someone can clear up...
> >
> > I have two custom components, A and B created at the Application
level.
> >
> > I want to send a custom event from A to B.
> >
> > Inside of B creationComplete, I have addEventListener("myEvent",
> > myBListenerFunc);
> >
> > Inside of A, on a button click, I dispatchEvent(new Event("myEvent"))
> >
> > Obviously I would like the function on B, myBListenerFunc() to be
> > called, but is not.
> >
> > I'm sure I can do this without having to tell B that A is the
> > dispatcher (in B, A.addEventListner("myEvent",myBListnerFunc);)
> >
> > Thanks,
> > Paul
> >
> >  
> >
>




[flexcoders] Re: rendering checkboxes with as3 instead of mxml?

2007-03-30 Thread ben.clinkinbeard
var cb:CheckBox = new CheckBox();
cb.addEventListener(MouseEvent.CLICK, handleClick);
addChild(cb);



--- In flexcoders@yahoogroups.com, "craig.drabik" <[EMAIL PROTECTED]>
wrote:
>
> --- In flexcoders@yahoogroups.com, "blc187"  wrote:
> > The problem comes in when I want to add functionality on toggle.
> > I can't type cbox.click = updateFld and I'm not sure what events I 
> > can listen for on it.
> > 
> > Little help on how to handle this?
> >
> 
> Create an actionscript class that extends CheckBox, put your custom
> code in there, and then create instances of that class instead of
> programatically setting up checkboxes.
>




[flexcoders] Re: How do I read Response after FileReference uploads a file?

2007-03-30 Thread ben.clinkinbeard
Holy hell, thanks Geoffrey. When was this added? With the initial
release of FP9? I posted here several months ago expressing my
disbelief that this was not supported and got no feedback to the contrary.

Thanks again,
Ben


--- In flexcoders@yahoogroups.com, "Geoffrey Williams" <[EMAIL PROTECTED]> 
wrote:
>
> Just to note, this functionality was only recently added to FP9 and
was not
> available in previous versions of the player.
> 
>  
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Merrill, Jason
> Sent: Friday, March 30, 2007 11:43 AM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] How do I read Response after FileReference
uploads
> a file?
> 
>  
> 
> Stupid Outlook hotkeys. What I meant to say was:
> 
>  
> 
> In Flash 8 AS2 it was just:
> 
>  
> 
> listener_obj.onComplete = function(file:FileReference):Void { }
> 
>  
> 
> Where file was the complete file object on the result which had all
the info
> you needed.  Should be something similar in AS3.
> 
>  
> 
> Jason Merrill 
> Bank of America  
> GT&O Learning & Leadership Development 
> eTools & Multimedia Team 
> 
>  
> 
>  
> 
>  
> 
>   _  
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of thegators_2002
> Sent: Friday, March 30, 2007 11:36 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] How do I read Response after FileReference
uploads a
> file?
> 
> I am trying to use FileReference to upload a file from the user side
> to a web page and read the response(xml) that the server returns. I
> can't figure out how to get the response, however. It doesn't seem to
> be included in the FileReference object.
> 
> Is there a way to read the response coming back after a file upload,
> or is this halted by design?
>




Re: [flexcoders] Re: Make a component 'modal'

2007-03-30 Thread Doug McCune

another option would be to remove the component from the displaylist, swap
in a spacer component that was the same size, then use the PopUpManager to
redisplay your component, place it in the exact pixel location it was before
and make it a modal popup. Then when you want to give focus back to the
entire app you swap it back into the displaylist of whatever container it
was originally in. Not sure how well this would work, but in theory if you
calculate the pixel values exactly, the user might not notice anything's
happening.

Doug

On 3/30/07, Shaun <[EMAIL PROTECTED]> wrote:


  Hmm, now that's an idea... a little bit of a hack, but I'm ok with
simplicity over elegance to start with. I think I'll head down that
path unless someone throws out another (more) brilliant solution :)

Thanks for the help guys.

Shaun

--- In flexcoders@yahoogroups.com , Tom
Chiverton <[EMAIL PROTECTED]>

wrote:
>
> On Friday 30 Mar 2007, Shaun wrote:
> > The problem is that I don't want to pop up a new control or
create a
> > custom control every time I want this effect. Instead, I want to
> > apply an effect to an existing control (that could be any
control).
>
> Hmm.
> You could create partly opaque rectangles over the rest of the
screen, for
> instance ?
>
> --
> Tom Chiverton
> Helping to synergistically revolutionize intuitive solutions
> on: http://thefalken.livejournal.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 St James's Court Brown Street Manchester M2
2JF. A list of members is available for inspection at the registered
office. Any reference to a partner in relation to Halliwells LLP
means a member of Halliwells LLP. Regulated by the Law Society.
>
> 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 8008.
>
> For more information about Halliwells LLP visit www.halliwells.com.
>

 



[flexcoders] Re: List dragMoveEnabled problem?

2007-03-30 Thread jasondrubenstein
--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Can you post a test case?
> 


yep - here's the version that acts oddly. When I load the XML using
 tags, everything works as expected.

--start code--

http://www.adobe.com/2006/mxml";
layout="absolute" creationComplete="init()">












--end code--




Re: [flexcoders] Dispatching Event Question?

2007-03-30 Thread Roman Protsiuk

When you are adding an event listener the only thing that tells who is to
dispatch the event is who's addEventListener() is called. I mean if you are
calling addEventListener(...) this means that you are listening to 'this'
that will dispatch the event. If a.addEventListener(...) then 'a' will
dispatch it.

What you need is smth like:
instanceOfA.addEventListener("myEvent", myBListenerFunc);
inside of the B instance.

R.

On 30 Mar 2007 08:25:28 -0700, paulwelling <[EMAIL PROTECTED]>
wrote:


  Hello,

Question on disipatching events that I hope someone can clear up...

I have two custom components, A and B created at the Application level.

I want to send a custom event from A to B.

Inside of B creationComplete, I have addEventListener("myEvent",
myBListenerFunc);

Inside of A, on a button click, I dispatchEvent(new Event("myEvent"))

Obviously I would like the function on B, myBListenerFunc() to be
called, but is not.

I'm sure I can do this without having to tell B that A is the
dispatcher (in B, A.addEventListner("myEvent",myBListnerFunc);)

Thanks,
Paul

 



[flexcoders] Re: Make a component 'modal'

2007-03-30 Thread Shaun
Hmm, now that's an idea... a little bit of a hack, but I'm ok with 
simplicity over elegance to start with.  I think I'll head down that 
path unless someone throws out another (more) brilliant solution :)

Thanks for the help guys.

Shaun

--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> 
wrote:
>
> On Friday 30 Mar 2007, Shaun wrote:
> > The problem is that I don't want to pop up a new control or 
create a
> > custom control every time I want this effect.  Instead, I want to
> > apply an effect to an existing control (that could be any 
control).
> 
> Hmm.
> You could create partly opaque rectangles over the rest of the 
screen, for 
> instance ?
> 
> -- 
> Tom Chiverton
> Helping to synergistically revolutionize intuitive solutions
> on: http://thefalken.livejournal.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 St James's Court Brown Street Manchester M2 
2JF.  A list of members is available for inspection at the registered 
office. Any reference to a partner in relation to Halliwells LLP 
means a member of Halliwells LLP. Regulated by the Law Society.
> 
> 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 8008.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
>




[flexcoders] Aligning LineCharts in a VBox

2007-03-30 Thread mr19

I have two LineCharts in a VBox using the same data for the horizontalAxis.  
I would like the horizontal axis ticks on the two charts to line up.  I have
been unable to do this due to the vertical axis labels being of different
length and the top chart using a secondVerticalAxis.

Any help would be greatly appreciated.  I've tried using the width
attributes without any luck.

Marc
-- 
View this message in context: 
http://www.nabble.com/Aligning-LineCharts-in-a-VBox-tf3493042.html#a9755903
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: Problem with flash.Utils.Timer

2007-03-30 Thread kumaran_sb
Hi the online documentation at Adobe has recommended setting the value
= 0 to make the loop run continuously.

Cheers
Kumaran
--- In flexcoders@yahoogroups.com, "Clint Tredway" <[EMAIL PROTECTED]> wrote:
>
> I think its not working right because you have set the continue
param to 0.
> What happens if you set this to some other value?
> 
> On 3/30/07, kumaran_sb <[EMAIL PROTECTED]> wrote:
> >
> >   Hello flexcoders
> >
> > this is a related question to my previous one. I'm having trouble
> > with the flash.utils.Timer which Im using to perform a scheduled
> > event inside a Flex app. I want the timer to fire every 10 seconds,
> > continuously till the application is killed.
> >
> > Unfortunately, however I initialize it, the TimerEvent seems to
> > fire at every instant of time(i..e it does not seem to respect the
> > 10 second delay). Has anyone seen this issue before ?Here is my code
> > snippet..
> >
> > _pingTimer = new Timer(1,0);
> > _pingTimer.addEventListener(TimerEvent.TIMER,onTick);
> > _pingTimer.start();
> >
> > Any help would be much appreciated.
> >
> > Thanks
> > Kumaran
> >
> >  
> >
> 
> 
> 
> -- 
> I am not a diabetic, I have diabetes
> my blog - http://grumpee.instantspot.com/blog
>




RE: [flexcoders] How do I read Response after FileReference uploads a file?

2007-03-30 Thread Geoffrey Williams
Just to note, this functionality was only recently added to FP9 and was not
available in previous versions of the player.

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Merrill, Jason
Sent: Friday, March 30, 2007 11:43 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How do I read Response after FileReference uploads
a file?

 

Stupid Outlook hotkeys. What I meant to say was:

 

In Flash 8 AS2 it was just:

 

listener_obj.onComplete = function(file:FileReference):Void { }

 

Where file was the complete file object on the result which had all the info
you needed.  Should be something similar in AS3.

 

Jason Merrill 
Bank of America  
GT&O Learning & Leadership Development 
eTools & Multimedia Team 

 

 

 

  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of thegators_2002
Sent: Friday, March 30, 2007 11:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How do I read Response after FileReference uploads a
file?

I am trying to use FileReference to upload a file from the user side
to a web page and read the response(xml) that the server returns. I
can't figure out how to get the response, however. It doesn't seem to
be included in the FileReference object.

Is there a way to read the response coming back after a file upload,
or is this halted by design?

 



RE: [flexcoders] How do I read Response after FileReference uploads a file?

2007-03-30 Thread Grant Davies
Thats a flash 9/flex only feature right ?
 
Flash 8/as2 doesn't have a data property..
 
g.
 
 
...
> b l u e t u b e i n t e r a c t i v e
.: The glue between creative and engineering
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti  

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Geoffrey Williams
Sent: Friday, March 30, 2007 11:44 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How do I read Response after FileReference
uploads a file?



fileReference.addEventListener (DataEvent.UPLOAD_COMPLETE_DATA,
eventHandler);

The DataEvent dispatched will have a data property with the data you are
looking for.

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of thegators_2002
Sent: Friday, March 30, 2007 11:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How do I read Response after FileReference uploads
a file?

I am trying to use FileReference to upload a file from the user side
to a web page and read the response(xml) that the server returns. I
can't figure out how to get the response, however. It doesn't seem to
be included in the FileReference object.

Is there a way to read the response coming back after a file upload,
or is this halted by design?

 
<>


Re: [flexcoders] Re: Make a component 'modal'

2007-03-30 Thread Tom Chiverton
On Friday 30 Mar 2007, Shaun wrote:
> The problem is that I don't want to pop up a new control or create a
> custom control every time I want this effect.  Instead, I want to
> apply an effect to an existing control (that could be any control).

Hmm.
You could create partly opaque rectangles over the rest of the screen, for 
instance ?

-- 
Tom Chiverton
Helping to synergistically revolutionize intuitive solutions
on: http://thefalken.livejournal.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 St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

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

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


RE: [flexcoders] How do I read Response after FileReference uploads a file?

2007-03-30 Thread Geoffrey Williams
fileReference.addEventListener (DataEvent.UPLOAD_COMPLETE_DATA,
eventHandler);

 

The DataEvent dispatched will have a data property with the data you are
looking for.

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of thegators_2002
Sent: Friday, March 30, 2007 11:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How do I read Response after FileReference uploads a
file?

 

I am trying to use FileReference to upload a file from the user side
to a web page and read the response(xml) that the server returns. I
can't figure out how to get the response, however. It doesn't seem to
be included in the FileReference object.

Is there a way to read the response coming back after a file upload,
or is this halted by design?

 



Re: [flexcoders] Re: Make a component 'modal'

2007-03-30 Thread Clint Tredway

99% of what you want to do can be accomplished, the only thing that i see is
the blur effect that you want. I am sure it can be done, but it will not be
an easy task.

If most of what the user has to do is entering data into forms you can use
the built in validators to 'highlight' invalid entries.

On 30 Mar 2007 08:39:29 -0700, Shaun <[EMAIL PROTECTED]> wrote:


  The problem is that I don't want to pop up a new control or create a
custom control every time I want this effect. Instead, I want to
apply an effect to an existing control (that could be any control).

An example usage would be to make sure the user completes an
operation before navigating somewhere else or performing a
conflicting action. Also, it would focus the user on what portion of
the screen is relevant at the moment.

Shaun

--- In flexcoders@yahoogroups.com ,
"Merrill, Jason"
<[EMAIL PROTECTED]> wrote:
>
> I don't know as much about Flex architecture yet - just the basics,
but
> I know in Flash 8 the PopupWindow component, when not enabled, is
> completely modal. I used that a lot for achieving modal windows.
Don't
> know if that helps any in this case... I know you're looking to make
> your own component model - perhaps you could extend a Flex modal
> component like the PopupWindow?
>
>
> Jason Merrill
> Bank of America
> GT&O Learning & Leadership Development
> eTools & Multimedia Team
>
>
>
>
>
> 
>
> From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com ] On
Behalf Of Clint Tredway
> Sent: Friday, March 30, 2007 11:13 AM
> To: flexcoders@yahoogroups.com 
> Subject: Re: [flexcoders] Re: Make a component 'modal'
>
>
>
> I personally don't know how this would be done, but that
doesnt
> mean it can't.
>
>
> On 30 Mar 2007 08:08:29 -0700, Shaun < [EMAIL PROTECTED]
>  > wrote:
>
> That would work, but it would only disable controls,
not
> give the
> greyed out look to the rest of the screen, like the
> popups do. I
> suppose I could do like you say, but instead have the
> style changed
> for the other components...
>
> but I'm really hoping there's some way to create a
magic
> function
> like:
>
> public static function
> strongFocus(control:DisplayObject):void
> {
> ...
> }
>
> that I can call from anywhere and it will grey out and
> disable mouse
> interaction with everything on the stage but the
control
> passed in.
>
> Am I hoping for too much?
>
> --- In flexcoders@yahoogroups.com 
>  , "Clint Tredway"


> wrote:
> >
> > without seeing how you setup your code, here is my
> suggestion.
> >
> > Set the parent containers of the other 'components'
> enabled
> attribute to a
> > bindable var or even a state, and then when that
> specific button is
> clicked,
> > set the var to false or in the case of using states,
> just change
> the state.
> > Either way, that should accomplish what you are
> describing.
> >
> > HTH,
> > Clint
> >
> > On 30 Mar 2007 07:36:17 -0700, Shaun
>  wrote:
> > >
> > > Is there any way to make a component modal/hilight
> it? I would
> like to
> > > be able to gray out (like when a popup is shown)
> everything on the
> > > screen but a certain component when the user click
> on a specific
> button.
> > >
> > > Basically I want a popup that's not a popup, but
> rather sets the
> focus
> > > on a particular component that is already in the
> displaylist.
> > >
> > > Thoughts on the best way to acheive this?
> > >
> > > Thanks,
> > > Shaun
> > >
> > >
> > >
> >
> >
> >
> > --
> > I am not a diabetic, I have diabetes
> > my blog - http://grumpee.instantspot.com/blog
> 
> >
>
>
>
>
>
>
>
>
> --
> I am not a diabetic, I have diabetes
> my blog - http://grumpee.instantspot.com/blog
> 
>

 





--
I am not a diabetic, I have diabetes
my blog - http://grumpee.instantspot.com/blog


RE: [flexcoders] How do I read Response after FileReference uploads a file?

2007-03-30 Thread Merrill, Jason
Stupid Outlook hotkeys. What I meant to say was:
 
In Flash 8 AS2 it was just:
 
listener_obj.onComplete = function(file:FileReference):Void { }
 
Where file was the complete file object on the result which had all the
info you needed.  Should be something similar in AS3.
 

Jason Merrill 
Bank of America  
GT&O Learning & Leadership Development 
eTools & Multimedia Team 


 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of thegators_2002
Sent: Friday, March 30, 2007 11:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How do I read Response after FileReference
uploads a file?



I am trying to use FileReference to upload a file from the user
side
to a web page and read the response(xml) that the server
returns. I
can't figure out how to get the response, however. It doesn't
seem to
be included in the FileReference object.

Is there a way to read the response coming back after a file
upload,
or is this halted by design?



 



RE: [flexcoders] How do I read Response after FileReference uploads a file?

2007-03-30 Thread Grant Davies
you can't... file reference does not return the response... (yes I know
that's dumb, I thought the same thing)
 
What I had to do is write the response to the session, and after file
reference returns success/fail I go back and request the session
variable as an XML response...
 
Grant
 
 
...
> b l u e t u b e i n t e r a c t i v e
.: The glue between creative and engineering
.: grant davies
.: 404.428.6839 (c)
.: 708-983-1577 (F)
> [EMAIL PROTECTED]
> http://www.bluetube.com/bti  

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of thegators_2002
Sent: Friday, March 30, 2007 11:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How do I read Response after FileReference uploads
a file?



I am trying to use FileReference to upload a file from the user side
to a web page and read the response(xml) that the server returns. I
can't figure out how to get the response, however. It doesn't seem to
be included in the FileReference object.

Is there a way to read the response coming back after a file upload,
or is this halted by design?



 
<>


[flexcoders] Opening file after download

2007-03-30 Thread Battershall, Jeff
Hello,

I'm downloading a file using FileReference.download(), which prompts for
a save location. What IE/FF provides is the ability to open after
download, is there any way to replicate that behavior??? Many of my
users would like to open immediately, not have to browse to the
downloaded file location.

Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED]
(609) 520-5637 (p)
(484) 477-9900 (c)


[flexcoders] Re: Make a component 'modal'

2007-03-30 Thread Shaun
The problem is that I don't want to pop up a new control or create a 
custom control every time I want this effect.  Instead, I want to 
apply an effect to an existing control (that could be any control).

An example usage would be to make sure the user completes an 
operation before navigating somewhere else or performing a 
conflicting action.  Also, it would focus the user on what portion of 
the screen is relevant at the moment.

Shaun

--- In flexcoders@yahoogroups.com, "Merrill, Jason" 
<[EMAIL PROTECTED]> wrote:
>
> I don't know as much about Flex architecture yet - just the basics, 
but
> I know in Flash 8 the PopupWindow component, when not enabled, is
> completely modal.  I used that a lot for achieving modal windows.  
Don't
> know if that helps any in this case... I know you're looking to make
> your own component model - perhaps you could extend a Flex modal
> component like the PopupWindow?
>  
> 
> Jason Merrill 
> Bank of America  
> GT&O Learning & Leadership Development 
> eTools & Multimedia Team 
> 
> 
>  
> 
> 
> 
> 
>   From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On Behalf Of Clint Tredway
>   Sent: Friday, March 30, 2007 11:13 AM
>   To: flexcoders@yahoogroups.com
>   Subject: Re: [flexcoders] Re: Make a component 'modal'
>   
>   
> 
>   I personally don't know how this would be done, but that 
doesnt
> mean it can't.
>   
>   
>   On 30 Mar 2007 08:08:29 -0700, Shaun < [EMAIL PROTECTED]
>  > wrote: 
> 
>   That would work, but it would only disable controls, 
not
> give the 
>   greyed out look to the rest of the screen, like the
> popups do. I 
>   suppose I could do like you say, but instead have the
> style changed 
>   for the other components... 
>   
>   but I'm really hoping there's some way to create a 
magic
> function 
>   like:
>   
>   public static function
> strongFocus(control:DisplayObject):void
>   {
>   ...
>   } 
>   
>   that I can call from anywhere and it will grey out and
> disable mouse 
>   interaction with everything on the stage but the 
control
> passed in.
>   
>   Am I hoping for too much?
>   
>   --- In flexcoders@yahoogroups.com
>  , "Clint Tredway"  
>   wrote:
>   >
>   > without seeing how you setup your code, here is my
> suggestion.
>   > 
>   > Set the parent containers of the other 'components'
> enabled 
>   attribute to a
>   > bindable var or even a state, and then when that
> specific button is 
>   clicked,
>   > set the var to false or in the case of using states,
> just change 
>   the state.
>   > Either way, that should accomplish what you are
> describing.
>   > 
>   > HTH,
>   > Clint
>   > 
>   > On 30 Mar 2007 07:36:17 -0700, Shaun
>  wrote:
>   > >
>   > > Is there any way to make a component modal/hilight
> it? I would 
>   like to
>   > > be able to gray out (like when a popup is shown)
> everything on the
>   > > screen but a certain component when the user click
> on a specific 
>   button.
>   > >
>   > > Basically I want a popup that's not a popup, but
> rather sets the 
>   focus
>   > > on a particular component that is already in the
> displaylist.
>   > >
>   > > Thoughts on the best way to acheive this?
>   > >
>   > > Thanks,
>   > > Shaun
>   > >
>   > > 
>   > >
>   > 
>   > 
>   > 
>   > -- 
>   > I am not a diabetic, I have diabetes
>   > my blog - http://grumpee.instantspot.com/blog
>  
>   >
>   
>   
> 
>   
> 
> 
> 
> 
>   -- 
>   I am not a diabetic, I have diabetes
>   my blog - http://grumpee.instantspot.com/blog
> 
>




RE: [flexcoders] How do I read Response after FileReference uploads a file?

2007-03-30 Thread Merrill, Jason
It shouldn't be.  In Flash 8/AS2 it was just:
 
 

Jason Merrill 
Bank of America  
GT&O Learning & Leadership Development 
eTools & Multimedia Team 


 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of thegators_2002
Sent: Friday, March 30, 2007 11:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How do I read Response after FileReference
uploads a file?



I am trying to use FileReference to upload a file from the user
side
to a web page and read the response(xml) that the server
returns. I
can't figure out how to get the response, however. It doesn't
seem to
be included in the FileReference object.

Is there a way to read the response coming back after a file
upload,
or is this halted by design?



 



[flexcoders] How do I read Response after FileReference uploads a file?

2007-03-30 Thread thegators_2002
I am trying to use FileReference to upload a file from the user side
to a web page and read the response(xml) that the server returns.  I
can't figure out how to get the response, however.  It doesn't seem to
be included in the FileReference object.

Is there a way to read the response coming back after a file upload,
or is this halted by design?



[flexcoders] Dispatching Event Question?

2007-03-30 Thread paulwelling
Hello,

Question on disipatching events that I hope someone can clear up...

I have two custom components, A and B created at the Application level.

I want to send a custom event from A to B.

Inside of B creationComplete, I have addEventListener("myEvent",
myBListenerFunc);

Inside of A, on a button click, I  dispatchEvent(new Event("myEvent")) 

Obviously I would like the function on B, myBListenerFunc() to be
called, but is not.

I'm sure I can do this without having to tell B that A is the
dispatcher (in B, A.addEventListner("myEvent",myBListnerFunc);)

Thanks,
Paul



RE: [flexcoders] Re: Make a component 'modal'

2007-03-30 Thread Merrill, Jason
I don't know as much about Flex architecture yet - just the basics, but
I know in Flash 8 the PopupWindow component, when not enabled, is
completely modal.  I used that a lot for achieving modal windows.  Don't
know if that helps any in this case... I know you're looking to make
your own component model - perhaps you could extend a Flex modal
component like the PopupWindow?
 

Jason Merrill 
Bank of America  
GT&O Learning & Leadership Development 
eTools & Multimedia Team 


 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Clint Tredway
Sent: Friday, March 30, 2007 11:13 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Make a component 'modal'



I personally don't know how this would be done, but that doesnt
mean it can't.


On 30 Mar 2007 08:08:29 -0700, Shaun < [EMAIL PROTECTED]
 > wrote: 

That would work, but it would only disable controls, not
give the 
greyed out look to the rest of the screen, like the
popups do. I 
suppose I could do like you say, but instead have the
style changed 
for the other components... 

but I'm really hoping there's some way to create a magic
function 
like:

public static function
strongFocus(control:DisplayObject):void
{
...
} 

that I can call from anywhere and it will grey out and
disable mouse 
interaction with everything on the stage but the control
passed in.

Am I hoping for too much?

--- In flexcoders@yahoogroups.com
 , "Clint Tredway" <[EMAIL PROTECTED]> 
wrote:
>
> without seeing how you setup your code, here is my
suggestion.
> 
> Set the parent containers of the other 'components'
enabled 
attribute to a
> bindable var or even a state, and then when that
specific button is 
clicked,
> set the var to false or in the case of using states,
just change 
the state.
> Either way, that should accomplish what you are
describing.
> 
> HTH,
> Clint
> 
> On 30 Mar 2007 07:36:17 -0700, Shaun
<[EMAIL PROTECTED]> wrote:
> >
> > Is there any way to make a component modal/hilight
it? I would 
like to
> > be able to gray out (like when a popup is shown)
everything on the
> > screen but a certain component when the user click
on a specific 
button.
> >
> > Basically I want a popup that's not a popup, but
rather sets the 
focus
> > on a particular component that is already in the
displaylist.
> >
> > Thoughts on the best way to acheive this?
> >
> > Thanks,
> > Shaun
> >
> > 
> >
> 
> 
> 
> -- 
> I am not a diabetic, I have diabetes
> my blog - http://grumpee.instantspot.com/blog
 
>








-- 
I am not a diabetic, I have diabetes
my blog - http://grumpee.instantspot.com/blog
  



 



Re: [flexcoders] Re: Make a component 'modal'

2007-03-30 Thread Clint Tredway

I personally don't know how this would be done, but that doesnt mean it
can't.

On 30 Mar 2007 08:08:29 -0700, Shaun <[EMAIL PROTECTED]> wrote:


  That would work, but it would only disable controls, not give the
greyed out look to the rest of the screen, like the popups do. I
suppose I could do like you say, but instead have the style changed
for the other components...

but I'm really hoping there's some way to create a magic function
like:

public static function strongFocus(control:DisplayObject):void
{
...
}

that I can call from anywhere and it will grey out and disable mouse
interaction with everything on the stage but the control passed in.

Am I hoping for too much?

--- In flexcoders@yahoogroups.com , "Clint
Tredway" <[EMAIL PROTECTED]>
wrote:
>
> without seeing how you setup your code, here is my suggestion.
>
> Set the parent containers of the other 'components' enabled
attribute to a
> bindable var or even a state, and then when that specific button is
clicked,
> set the var to false or in the case of using states, just change
the state.
> Either way, that should accomplish what you are describing.
>
> HTH,
> Clint
>
> On 30 Mar 2007 07:36:17 -0700, Shaun <[EMAIL PROTECTED]> wrote:
> >
> > Is there any way to make a component modal/hilight it? I would
like to
> > be able to gray out (like when a popup is shown) everything on the
> > screen but a certain component when the user click on a specific
button.
> >
> > Basically I want a popup that's not a popup, but rather sets the
focus
> > on a particular component that is already in the displaylist.
> >
> > Thoughts on the best way to acheive this?
> >
> > Thanks,
> > Shaun
> >
> >
> >
>
>
>
> --
> I am not a diabetic, I have diabetes
> my blog - http://grumpee.instantspot.com/blog
>

 





--
I am not a diabetic, I have diabetes
my blog - http://grumpee.instantspot.com/blog


Re: [flexcoders] Warning/Error Hints

2007-03-30 Thread Tom Chiverton
On Friday 30 Mar 2007, André Rodrigues Pena wrote:
> decreases the need of interaction and the use of the boring
> Alert.show() method.
> Thanks! :)

's what we did- started out using Alert's to display form errors, moved to 
Validators as we got the hang of it.

-- 
Tom Chiverton
Helping to interactively participate eye-catching relationships
on: http://thefalken.livejournal.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 St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

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

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


[flexcoders] Re: Make a component 'modal'

2007-03-30 Thread Shaun
That would work, but it would only disable controls, not give the 
greyed out look to the rest of the screen, like the popups do.  I 
suppose I could do like you say, but instead have the style changed 
for the other components...  

but I'm really hoping there's some way to create a magic function 
like:

public static function strongFocus(control:DisplayObject):void
{
   ...
} 

that I can call from anywhere and it will grey out and disable mouse 
interaction with everything on the stage but the control passed in.

Am I hoping for too much?



--- In flexcoders@yahoogroups.com, "Clint Tredway" <[EMAIL PROTECTED]> 
wrote:
>
> without seeing how you setup your code, here is my suggestion.
> 
> Set the parent containers of the other 'components' enabled 
attribute to a
> bindable var or even a state, and then when that specific button is 
clicked,
> set the var to false or in the case of using states, just change 
the state.
> Either way, that should accomplish what you are describing.
> 
> HTH,
> Clint
> 
> On 30 Mar 2007 07:36:17 -0700, Shaun <[EMAIL PROTECTED]> wrote:
> >
> >   Is there any way to make a component modal/hilight it? I would 
like to
> > be able to gray out (like when a popup is shown) everything on the
> > screen but a certain component when the user click on a specific 
button.
> >
> > Basically I want a popup that's not a popup, but rather sets the 
focus
> > on a particular component that is already in the displaylist.
> >
> > Thoughts on the best way to acheive this?
> >
> > Thanks,
> > Shaun
> >
> >  
> >
> 
> 
> 
> -- 
> I am not a diabetic, I have diabetes
> my blog - http://grumpee.instantspot.com/blog
>




Re: [flexcoders] Warning/Error Hints

2007-03-30 Thread André Rodrigues Pena
I was thinking of something like the "found new hardware" or "low disk
space" balloons of Windows XP. But thinking twice, they are no
necessary. I can use validators (as you said) and disable all
functionalities I don't want users to use in some states.. That
decreases the need of interaction and the use of the boring
Alert.show() method.

Thanks! :)

On 30 Mar 2007 07:29:34 -0700, Tom Chiverton
<[EMAIL PROTECTED]> wrote:
> On Friday 30 Mar 2007, André Rodrigues Pena wrote:
> > something like a balloon to let the user know something in a more
> > slightly way.
>
> Like the Validator one you mean ?
>
> --
> Tom Chiverton
> Helping to paradigmatically transition impactful technologies
> on: http://thefalken.livejournal.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 
> St James's Court Brown Street Manchester M2 2JF.  A list of members is 
> available for inspection at the registered office. Any reference to a partner 
> in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by 
> the Law Society.
>
> 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 8008.
>
> For more information about Halliwells LLP visit www.halliwells.com.
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>


-- 
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Make a component 'modal'

2007-03-30 Thread Clint Tredway

without seeing how you setup your code, here is my suggestion.

Set the parent containers of the other 'components' enabled attribute to a
bindable var or even a state, and then when that specific button is clicked,
set the var to false or in the case of using states, just change the state.
Either way, that should accomplish what you are describing.

HTH,
Clint

On 30 Mar 2007 07:36:17 -0700, Shaun <[EMAIL PROTECTED]> wrote:


  Is there any way to make a component modal/hilight it? I would like to
be able to gray out (like when a popup is shown) everything on the
screen but a certain component when the user click on a specific button.

Basically I want a popup that's not a popup, but rather sets the focus
on a particular component that is already in the displaylist.

Thoughts on the best way to acheive this?

Thanks,
Shaun

 





--
I am not a diabetic, I have diabetes
my blog - http://grumpee.instantspot.com/blog


Re: [flexcoders] Problem with flash.Utils.Timer

2007-03-30 Thread Clint Tredway

I think its not working right because you have set the continue param to 0.
What happens if you set this to some other value?

On 3/30/07, kumaran_sb <[EMAIL PROTECTED]> wrote:


  Hello flexcoders

this is a related question to my previous one. I'm having trouble
with the flash.utils.Timer which Im using to perform a scheduled
event inside a Flex app. I want the timer to fire every 10 seconds,
continuously till the application is killed.

Unfortunately, however I initialize it, the TimerEvent seems to
fire at every instant of time(i..e it does not seem to respect the
10 second delay). Has anyone seen this issue before ?Here is my code
snippet..

_pingTimer = new Timer(1,0);
_pingTimer.addEventListener(TimerEvent.TIMER,onTick);
_pingTimer.start();

Any help would be much appreciated.

Thanks
Kumaran

 





--
I am not a diabetic, I have diabetes
my blog - http://grumpee.instantspot.com/blog


Re: [flexcoders] re naming flex builder

2007-03-30 Thread Tom Chiverton
On Friday 30 Mar 2007, John Barrett wrote:
> will just leave it be. Now that I have flex builder I don't really need
> that flex module for apache, but i do like it`-`

Yeah, I've always seen the web-tier compiler as a hang over from the Flex 1 
days - handy if you are getting started, but it's not rated for production 
use in Flex 2 so why bother ?

-- 
Tom Chiverton
Helping to ambassadorially develop end-to-end IPOs
on: http://thefalken.livejournal.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 St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

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

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



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 


[flexcoders] Make a component 'modal'

2007-03-30 Thread Shaun
Is there any way to make a component modal/hilight it?  I would like to 
be able to gray out (like when a popup is shown) everything on the 
screen but a certain component when the user click on a specific button.

Basically I want a popup that's not a popup, but rather sets the focus 
on a particular component that is already in the displaylist.

Thoughts on the best way to acheive this?

Thanks,
Shaun



[flexcoders] Problem with flash.Utils.Timer

2007-03-30 Thread kumaran_sb
Hello flexcoders

  this is a related question to my previous one. I'm having trouble 
with the flash.utils.Timer which Im using to perform a scheduled 
event inside a Flex app. I want the timer to fire every 10 seconds, 
continuously till the application is killed.

  Unfortunately, however I initialize it, the TimerEvent seems to 
fire at every instant of time(i..e it does not seem to respect the 
10 second delay). Has anyone seen this issue before ?Here is my code 
snippet..

_pingTimer = new Timer(1,0);
_pingTimer.addEventListener(TimerEvent.TIMER,onTick);
_pingTimer.start();

Any help would be much appreciated.

Thanks
Kumaran



[flexcoders] Re: rendering checkboxes with as3 instead of mxml?

2007-03-30 Thread craig.drabik
--- In flexcoders@yahoogroups.com, "blc187" <[EMAIL PROTECTED]> wrote:
> The problem comes in when I want to add functionality on toggle.
> I can't type cbox.click = updateFld and I'm not sure what events I 
> can listen for on it.
> 
> Little help on how to handle this?
>

Create an actionscript class that extends CheckBox, put your custom
code in there, and then create instances of that class instead of
programatically setting up checkboxes.




  1   2   >