RE: [flexcoders] Passing variables into an alert handler

2005-08-03 Thread Jeff Beeman
Hmm... looks interesting.  I'll give it a shot, thanks!


/**
* Jeff Beeman
**/


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt 
Chotin
Sent: Tuesday, August 02, 2005 7:37 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Passing variables into an alert handler

You could essentially use an anonymous function in there.  Something like this:

Alert(..., Delegate.create(this, function(event) { this.alertHandler({myVar: 
'apples'}); });

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ashish 
Goyal
Sent: Tuesday, August 02, 2005 2:37 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Passing variables into an alert handler


I just reread your question and it seems like you already got that part which I 
have mentioned in my previous post. About the passing of events, I tried adding 
event as the 3rd parameter and getting the event.target value but it returns 
blank. 
Somebody on the flexcodes who have played around with events should be able to 
answer your question..


 -Original Message-
 From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On Behalf Of Ashish Goyal
 Sent: Tuesday, August 02, 2005 2:23 PM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Passing variables into an alert handler
 
 
 How about simple passing the parameters like:
 
  Alert(... ..., Delegate.create(this, 
 this.alertHandler('apples','Bar'));
 
 And in your alertHandler(myVar,myFoo), you can get the values 
 of your parameters.
 
 Does this answer your question?
 
 Thanks
 -Ashish
 
 
 
  -Original Message-
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Jeff Beeman
  Sent: Tuesday, August 02, 2005 9:17 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Passing variables into an alert handler
  
  I'm trying to pass variables into the Delegate that I have 
  run during an
  alert.  Here is the code I currently have:
  
  alert(Delete record?, Alert, mx.controls.Alert.OK |
  mx.controls.Alert.CANCEL, Delegate.create(this, this.alertHandler),
  mx.controls.Alert.CANCEL);
  
  I would like to be able to pass variables into the 
 alertHandler, i.e.:
  
  Alert(... ..., Delegate.create(this, this.alertHandler({ 
  myVar:'apples',
  myFoo:'Bar' });
  
  This works... but the problem is that the 'event' is no 
 longer passed.
  Trying to add 'myEvent:event' to that object doesn't work, 
 as I get an
  error returned saying 'event' doesn't exist.
  
  Is there a way to pass variables using the method above while still
  capturing the event details?
  
  
  
  
  /***
  * Jeff Beeman
  * Digital Media  Instructional Technologies
  * Arizona State University
  ***/
  
  
  
  
  
   Yahoo! Groups Sponsor 
  ~-- 
  font face=arial size=-1a 
  href=http://us.ard.yahoo.com/SIG=12hn4jb9f/M=362131.6882499.7
  825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123006875
  /A=2889191/R=0/SIG=10r90krvo/*http://www.thebeehive.org
  Get Bzzzy! (real tools to help you find a job) Welcome to 
  the Sweet Life - brought to you by One Economy/a./font
  --
  --~- 
  
  --
  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
  
  
  
   
  
  
  
 
 
  Yahoo! Groups Sponsor 
 ~-- 
 font face=arial size=-1a 
 href=http://us.ard.yahoo.com/SIG=12htq29fs/M=362329.6886308.7
 839368.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123024998
 /A=2894321/R=0/SIG=11dvsfulr/*http://youthnoise.com/page.php?p
 age_id=1992
 Fair play? Video games influencing politics. Click and talk 
 back!/a./font
 --
 --~- 
 
 --
 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 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 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



 




 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hls7n8p/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123085889/A=2894361/R=0

[flexcoders] Form visibility question

2005-07-27 Thread Jeff Beeman
We've got a project that has the following behavior.  When a particular
form item is answered a certain way, another form item should turn on
on the page.  A common example is choosing Other in a radio group
turns on a text box for inputting what Other is.

Right now, we've got ActionScript turning the visibility of the form
items on and off depending on answers to previous questions.  The
problem is that the form items still take up physical space.  The
behavior we'd like would have the form item not only be invisible but
also not take up space.  Then, when the required answer is given, the
form item would appear and push the content after it down.

I know it's a weird question, so here's a visual example:

Initial form state:

Choose your favorite fruit:
() Apples
() Oranges
() Lemons
() Other

Choose your favorite car:
() Chevy
() Ford
() Toyota



If Other is chosen:

Choose your favorite fruit:
() Apples
() Oranges
() Lemons
(*) Other
Please describe other:
-
|   |
-

Choose your favorite car:
() Chevy
() Ford
() Toyota





/***
* Jeff Beeman
* Digital Media  Instructional Technologies
* Arizona State University
***/






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

* 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] Turning on / off display of chart series

2005-06-28 Thread Jeff Beeman










(Ive had to be away from the list for a couple of
weeks, so I apologize if this has been covered already)



Is there any way to, through ActionScript, enable and
disable the visibility of a series in a chart?



mx:series

 mx:Array

 mx:ColumnSeries yField=col_preqs
name=Requests showDataEffect=effect_interpolate /

 mx:ColumnSeries
yField=col_pbytes name=Bytes
showDataEffect=effect_interpolate /

 /mx:Array

/mx:series



For example, in the above code, Id like to be able to
turn off and on the visibility of the Requests and the Bytes columns. Theres
an example of something similar on Flex Authority, but it simply modifies the
requested information from a service to not include information that isnt
requested. 



Ive already got the information, and I just want to
hide and unhide its display.





/***
* Jeff Beeman
* Digital Media  Instructional Technologies
* Arizona State University
***/








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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











RE: [flexcoders] Turning on / off display of chart series

2005-06-28 Thread Jeff Beeman










Doh. Thats the reply I was hoping
to not hear. Can I submit my feature request for v2 now? It just seems to be
a fairly obvious thing users would want to do.







/**
* Jeff Beeman
**/











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ely Greenfield
Sent: Tuesday, June 28, 2005 2:11
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Turning
on / off display of chart series









Jeff -- I believe you'll have to remove
the series from the array.



Ely.













From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeff Beeman
Sent: Tuesday, June 28, 2005 4:38
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Turning on /
off display of chart series
Importance: High

(Ive had to be away from the list for a couple of
weeks, so I apologize if this has been covered already)



Is there any way to, through ActionScript, enable and
disable the visibility of a series in a chart?



mx:series

 mx:Array

 mx:ColumnSeries
yField=col_preqs name=Requests showDataEffect=effect_interpolate
/

 mx:ColumnSeries
yField=col_pbytes name=Bytes
showDataEffect=effect_interpolate /

 /mx:Array

/mx:series



For example, in the above code, Id like to be able to
turn off and on the visibility of the Requests and the Bytes columns.
Theres an example of something similar on Flex Authority, but it simply
modifies the requested information from a service to not include information
that isnt requested. 



Ive already got the information, and I just want to
hide and unhide its display.





/***
* Jeff Beeman
* Digital Media  Instructional Technologies
* Arizona State University
***/





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




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  











[flexcoders] Getting client's IP address

2005-06-13 Thread Jeff Beeman










Weve got a Flex app that is calling a PHP script to
retrieve the end-users IP address (for an authentication procedure), but
the IP address that is returned is the address of the Flex server, not the
client. Any thoughts on why this is happening? And, how do we work around it?





/***
* Jeff Beeman
* Digital Media  Instructional Technologies
* Arizona State University
***/













Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












RE: [flexcoders] Re: Getting client's IP address

2005-06-13 Thread Jeff Beeman
Thanks, all!  I will let you know if one of these works for us, but they
all sound like reasonable solutions :-)


/**
* Jeff Beeman
**/

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andrew Spaulding
Sent: Monday, June 13, 2005 4:18 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Getting client's IP address

You could also pass it to your mxml file as a flashvar, as long as you
have the variable declared in your root application. I do something
similar to the following from within a jsp page:

!-- index.jsp --

html
head
titleflex/title

%@ taglib uri=FlexTagLib prefix=mm /

%
   String ipAddress = null;
   if( request.getHeader(X-Forwarded-For) == null )
   {
  ipAddress = request.getRemoteAddr();
   }
   else
   {
  ipAddress = request.getHeader(X-Forwarded-For);
   }
%

body

   mm:mxml source=myApp.mxml
  mm:flashvar name=IP_ADDRESS value=%= ipAddress % /
   /mm:mxml

/body

/html


Be sure to have the variable IP_ADDRESS declared in the root of your
mxml application.

Hope this helps,

Andrew
www.flexdaddy.com




--- In flexcoders@yahoogroups.com, heybluez [EMAIL PROTECTED]
wrote:
 Hi,
 
 I do this with a simple .jsp script in the Flex app.  You can include
 something like the following:
 
 getIPAddress.jsp:
 
 clientip
 valGet%=request.getRemoteAddr()%/valGet
 /clientip
 
 Then call that within Flex in an HTTPService and parse the return. 
 HTTPService.result.clientip.valGet , etc
 
 Then you can store that in a sharedobject or whatever you want.
 
 Hope it helps.
 
 -Michael
 
 --- In flexcoders@yahoogroups.com, temporal_illusion
 [EMAIL PROTECTED] wrote:
  I assume it's a http service you're using that calls the PHP page to
  get the IP?  I think the web service calls are proxied by default. 
  Try adding the useProxy=false property in the http service, that
  should tell the app to go to the web service directly.
  
  Jason
  
  --- In flexcoders@yahoogroups.com, Jeff Beeman [EMAIL PROTECTED]
  wrote:
   We've got a Flex app that is calling a PHP script to retrieve the
   end-user's IP address (for an authentication procedure), but the
IP
   address that is returned is the address of the Flex server, not
the
   client.  Any thoughts on why this is happening?  And, how do we
work
   around it?
   

   

   
   /***
   * Jeff Beeman
   * Digital Media  Instructional Technologies
   * Arizona State University
   ***/





 
Yahoo! Groups Links



 






 
Yahoo! Groups Links

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

* 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] Flex Eclipse discussion

2005-06-07 Thread Jeff Beeman










I remember reading a discussion about setting up Eclipse for
coding MXML and AS a while ago, but I cant find it in the
archives. Can someone point me to the discussion, or maybe a couple of
the sites mentioned in it?



(BTW, the search tool in the Yahoo groups area leaves a lot
to be desired  if I search for Eclipse, I can end up
getting no results because it only searches the first 30 or so messages.
So, in order to search the 16,500 messages Id have to click through a
page at a time. Anyone know a way around this?)





/***
* Jeff Beeman
* Digital Media  Instructional Technologies
* Arizona State University
***/













Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












RE: [flexcoders] Flex Eclipse discussion

2005-06-07 Thread Jeff Beeman










Ah, this is perfect, thank you! For those
who need the link to the Flexcoders The Mail Archive here it is:

http://www.mail-archive.com/flexcoders@yahoogroups.com/









/**
* Jeff Beeman
**/











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Steven Webster
Sent: Tuesday, June 07, 2005 9:48
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex
 Eclipse discussion







(BTW, the search tool in the Yahoo groups area leaves a lot
to be desired  if I search for Eclipse, I can end up
getting no results because it only searches the first 30 or so messages.
So, in order to search the 16,500 messages Id have to click through a
page at a time. Anyone know a way around this?)





The flexcoders FAQ that has been sent out
to the list a few times recently, has a link to the mail-archive for
flexcoders, that gives you much better search capability.



So, erm, what Im kinda saying is,
erm, check out the FAQ J



Steven 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












RE: [flexcoders] Flex Eclipse discussion

2005-06-07 Thread Jeff Beeman










I think what I was actually looking for
was a news posting I read a while ago I found it at everythingflex.com 
heres the link: http://www.everythingflex.com/blog/1/2005/05/Eclipse-for-Flex-Development.cfm









/**
* Jeff Beeman
**/











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeff Beeman
Sent: Tuesday, June 07, 2005 9:51
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex
 Eclipse discussion





Ah, this is perfect, thank you! For
those who need the link to the Flexcoders The Mail Archive here
it is:

http://www.mail-archive.com/flexcoders@yahoogroups.com/









/**
* Jeff Beeman
**/











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Steven Webster
Sent: Tuesday, June 07, 2005 9:48
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex
 Eclipse discussion







(BTW, the search tool in the Yahoo groups area leaves a lot
to be desired  if I search for Eclipse, I can end up
getting no results because it only searches the first 30 or so messages. So,
in order to search the 16,500 messages Id have to click through a page
at a time. Anyone know a way around this?)





The flexcoders FAQ that has been sent out
to the list a few times recently, has a link to the mail-archive for
flexcoders, that gives you much better search capability.



So, erm, what Im kinda saying is,
erm, check out the FAQ J



Steven 













Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












RE: [flexcoders] Re: Tree dataProviders backingObject

2005-06-06 Thread Jeff Beeman
My other thought for a simpler, quicker approach was to use the good old
variables of data and label for each node, and the data variable
would simply contain a number that references the id of what I'm looking
at.  The full data for the node would be stored elsewhere.  

The big problem I have with that solution is that my data is now
disconnected and I'm creating unnecessary clutter in my app.  Having not
looked into the TreeDataProvider too thoroughly yet, could you give me
an idea how difficult it might be if I simple modify it to do the
following:

Any arrays inside a tree data provider are treated as nodes, unless the
array is called data, in which case it is treated as the data for the
node.

Sounds simple too me on paper... but I realize it could end up being a
major headache - thoughts before I begin?


/**
* Jeff Beeman
**/
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of alex_harui
Sent: Monday, June 06, 2005 7:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Tree dataProviders  backingObject

Ah yes, the ol' convert arrays to children problem.  The 
TreeDataProvider is guilty of trying to hard to figure out which 
parts of a complex object are children.  I can only think of two ways 
to deal with this:

1) write your own implementation of TreeDataProvider that doesn't 
munge your data.

2) convert your data into the TreeNodes by using addTreeNodeAt then 
adding the arrays later.

I'd go with #1, it'll be hard to get started but the best solution in 
the end.


--- In flexcoders@yahoogroups.com, Jeff Beeman [EMAIL PROTECTED] 
wrote:
 It looks like I just need to look more into the TreeDataProvider 
API.
 I'm not very familiar with it (as you can tell), and I guess the
 behavior I'm experiencing does make sense.  It just gets difficult 
when
 I'm trying to make an object that has multiple properties, including
 arrays, be the 'data' part of the tree node, as the arrays end up
 showing as children (which does make sense).
 
 I guess, my recommendation to MM would be to document this 
component a
 bit better, as I really had no clue where to start with looking for 
a
 solution :)
 
 Thanks, all!
 
 
 /**
 * Jeff Beeman
 **/
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of alex_harui
 Sent: Friday, June 03, 2005 4:29 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Tree dataProviders  backingObject
 
 The Tree needs a hierarchy of objects each of which implement 
 TreeDataProvider.  That way, at each level in the tree we can ask 
the 
 current node for its children and other data.
 
 Built-in Flash types like XMLNode don't support TreeDataProvider 
and 
 it is too hard to mix it in (and bad practice as well).  Thus we 
take 
 each XMLNode and wrap it in a TreeDataProvider and put the original 
 node in a backingObject.
 
 There is no API for limiting tree depth.  I'd think twice before 
 implementing it because it would seem to me that the tree should 
 faithfully represent its data so, if the data has only two levels 
 then fine, but if it has more you should show that too.
 
 However, if you really gotta do it, you have a couple of choices 
 depending on what you want the UI to look like.  You could override 
 setIsOpen on the Tree and block opening of things that are too 
deep, 
 but the those nodes at level 2 with children will still look like 
 folders.  You could customize a TreeDataProvider to pretend that 
 nodes of level 2 have no children.  That's probably the best option.
 
 --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] 
wrote:
  Check out the TreeDataProvider API in the ASDoc.  The 
backingObject 
 is
  used by one implementation of that API (called TreeNode) which is 
 used
  when the object you are passing to the Tree does not implement
  TreeDataProvider itself.  
  
   
  
  I don't think we provide an easy way to limit the depth of the 
 tree.  I
  suppose you could simply implement the TreeDataProvider API 
 yourself to
  make sure that children that are too deep aren't displayed.
  
   
  
  Matt
  
   
  
  
  
  From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On
  Behalf Of Jeff Beeman
  Sent: Friday, June 03, 2005 2:50 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Tree dataProviders  backingObject
  
   
  
  Is there any sort of documentation on the way the Tree component 
 deals
  with it's dataProvider?  
  
  Using the Object Inspector from
  http://www.coenraets.com/viewarticle.jsp?articleId=83 I can see 
that
  binding my dataProvider for the tree to an object creates a 
 subobject
  called backingObject that actually holds the data.
  
  So, I've got 2 additional questions - Why does it do

[flexcoders] Tree dataProviders backingObject

2005-06-03 Thread Jeff Beeman
Is there any sort of documentation on the way the Tree component deals
with it's dataProvider?  

Using the Object Inspector from
http://www.coenraets.com/viewarticle.jsp?articleId=83 I can see that
binding my dataProvider for the tree to an object creates a subobject
called backingObject that actually holds the data.

So, I've got 2 additional questions - Why does it do this?  And, a
related question is, how do I limit how many nodes of an object the tree
actually uses for it's display?  (For example, I only want it to go 2
levels into a dataProvider)


/***
* Jeff Beeman
* Digital Media  Instructional Technologies
* Arizona State University
***/




 
Yahoo! Groups Links

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

* 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] Disabling individual list items

2005-05-26 Thread Jeff Beeman
I'm trying to figure out how to disable an individual list item (just
one item from a list of 20, for example), but I can't see where to set
the enabled=false.  I don't want to remove the items from the list - I
just want them to not be selectable.

Any thoughts / experience with this?


/***
* Jeff Beeman
* Digital Media  Instructional Technologies
* Arizona State University
***/





 
Yahoo! Groups Links

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

* 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] Re: Flex as a Windows Service?

2005-05-20 Thread Jeff Beeman
Unfortunately, searching for Windows service only brings up this
thread in the archives and searching for service brings up somewhere
around a trillion threads regarding web services... can you point us in
the right direction of the discussion?  I'm also interested in this
topic.


/**
* Jeff Beeman
**/
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rich Butler
Sent: Friday, May 20, 2005 5:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex as a Windows Service?

Not to worry, will search the archives, thanks.

*goes and sits in the naughty corner*

And thanks Sjors, will try that program :-)

Cheers,
Rich

--- In flexcoders@yahoogroups.com, Abdul Qabiz [EMAIL PROTECTED] wrote:
 Hi Rich,
 
 Never mind :)
 
 Please search archives before posting. This has been discussed several
 times...
 
 
 -abdul
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
 Behalf Of Richard Butler
 Sent: Friday, May 20, 2005 4:28 PM
 To: [flexcoders]
 Subject: [flexcoders] Flex as a Windows Service?
 
 Hi all,
 
 This may be a dumb question, so forgive me, but is it possible to run
 Flex as a Windows Service? The DOS window thing seems a nasty way of
 running it, or maybe that's just us...
 
 Cheers,
 Rich
 
 
 --
 
 Richard Butler.
 Monochrome.
 Upper Floor 164a Portsmouth Road Cobham Surrey KT11 1HS.
 
 Free: 08000 199 742
 Tel: +44 (0) 1932 862 874 
 Fax: +44 (0) 1932 866 065 
 
 www.monochrome.co.uk
 
 
 
  
 Yahoo! Groups Links




 
Yahoo! Groups Links



 






 
Yahoo! Groups Links

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

* 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] Announcing Flex Style Explorer

2005-05-18 Thread Jeff Beeman
This tool is absolutely fantastic!  I've got a bug report that one of
our developers noticed, though, and since I can't make a comment on the
site, I'll just note it here and hope someone sees it :)

Entering hex values using the keyboard seems to work for everything
except components that have 2 color values (panel headings, buttons,
etc).  When choosing a color from the drop down, the color displays
correctly.  When typing in a hex value, it displays as black.

Also, I'd like to make a feature request - Would it be possible to make
the text area where the resulting CSS appears be editable?  I'd love to
be able to edit the resulting CSS on-the-fly and see the results.

Regardless, thanks for the great tool!



/**
* Jeff Beeman
**/

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jae Hess
Sent: Tuesday, May 17, 2005 7:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Announcing Flex Style Explorer

Not sure if you have heard the news:

Announcing Flex Style Explorer

http://www.markme.com/mc/archives/007740.cfm



 
Yahoo! Groups Links



 






 
Yahoo! Groups Links

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

* 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] TitleWindow show event

2005-05-17 Thread Jeff Beeman
I've got a TitleWindow popup that appears when a button is clicked.
When the window appears, I want to set focus on a TextInput component
that is in the TitleWindow.  I assume that the event I'm looking for is
show - but it doesn't seem to be broadcasting that event when the
TitleWindow is popped up.  Does anyone have advice or examples of events
being used with TitleWindow popups?


/**
* Jeff Beeman
**/



 
Yahoo! Groups Links

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

* 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] TitleWindow show event

2005-05-17 Thread Jeff Beeman










That was far too easy 







/**
* Jeff Beeman
**/











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Horn
Sent: Tuesday, May 17, 2005 12:35
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
TitleWindow show event





Works like a charm:



?xml version=1.0
encoding=utf-8?
mx:TitleWindow xmlns:mx=http://www.macromedia.com/2003/mxml
 closeButton=true width=200
click=this.deletePopUp();
creationComplete=setMyFocus()
mx:Script
function setMyFocus() {
form1.setFocus();
}
/mx:Script

mx:TextInput id=form1 text=Your Name /







/mx:TitleWindow 



















From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt
Sent: Tuesday, May 17, 2005 3:48
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
TitleWindow show event

I'd use creationComplete of the TitleWindow instead.
Tracy

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
Behalf Of Jeff Beeman
Sent: Tuesday, May 17, 2005 2:53 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] TitleWindow show event

I've got a TitleWindow popup that appears when a
button is clicked.
When the window appears, I want to set focus on a
TextInput component
that is in the TitleWindow. I assume that
the event I'm looking for is
show - but it doesn't seem to be
broadcasting that event when the
TitleWindow is popped up. Does anyone have
advice or examples of events
being used with TitleWindow popups?


/**
* Jeff Beeman
**/




Yahoo! Groups Links




















Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












RE: [flexcoders] E4X in Flex 2.0, part 1: Reading XML

2005-05-17 Thread Jeff Beeman
Title: Message










This is very exciting! Im
especially excited about the double-dot and wildcard operators. Thanks for
this update, as itll help with planning for future projects. Keep em
coming!







/**
* Jeff Beeman
**/











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith
Sent: Tuesday, May 17, 2005 4:54
PM
To: 'flexcoders@yahoogroups.com'
Subject: [flexcoders] E4X in Flex
2.0, part 1: Reading XML







As you may have gathered, we've been spending a lot of time lately
leveraging the new features of the Flash Player in the new Flex application
model. Naturally, you'll also be able to leverage those same new features, so
we thought we'd start giving you a run down of what's new. Of course we don't
have beta software for you to play with yet, so for now, we'll provide a lot of
detail so you can evaluate these new features and give guidance for us.



XML manipulation in Flex 2.0 is going to get a lot more
powerful, as well as faster.By the time that Flex 2.0 ships, the Flash
Player will support E4X (ECMAScript for XML), a set of programming
language extensions adding native XML support to ECMAScript.The player
team is busy implementing Standard ECMA-357 as
described in http://www.ecma-international.org/publications/standards/Ecma-357.htm.











Here'show the spec describes whatthis feature
offers:E4X adds native XML datatypes to the ECMAScript language,
extends the semantics of familiar ECMAScript operators for manipulating XML
objects and adds a small set of new operators for common XML operations, such
as searching and filtering. It also adds support for XML literals, namespaces,
qualified names and other mechanisms to facilitate XML processing.











Lets take a look at a few examples of how you can read XML
data using E4X.











As in the current player, you'll be able to create variables
of type XML by parsing a String. But XML literals will now be supported as
well:











 var employees:XML =
 employees
 employee
ssn=123-123-1234

name first=John last=Doe/

address

street11 Main St./street

citySan Francisco/city

stateCA/state

zip98765/zip

/address

/employee
 employee
ssn=789-789-7890

name first=Mary last=Roe/

address

street99 Broad St./street

cityNewton/city

stateMA/state

zip01234/zip

/address

/employee
 /employees;











Instead of using DOM-style APIs like firstChild,
nextSibling, etc., with E4X you just dot down to grab the node you
want.Multiple nodes are indexable with [n], similar to the elements of an
Array:












trace(employees.employee[0].address.zip);





 ---





 98765











Tograb an attribute, you just use the .@ operator:











 trace([EMAIL PROTECTED]);
 ---







 789-789-7890













If you don't pick out a particular node, you get all of
them, as an indexable list:











 trace(employees.employee.name);





 ---





 name first=John
last=Doe/





 name first=Mary last=Roe/











(And note that nodeseven toString() themselves into
formatted XML!)













A handy double-dot operator lets you omit the
path down into the XML _expression_, so you could shorten the
previous three examples to











 trace(employees..zip[0]);







 trace([EMAIL PROTECTED]]);







 trace(employees..name);









You can use a * wildcard toget a list of multiple
nodes or attributes with various names, and the resulting list is indexable:















 trace(employees.employee[0].address.*);





 ---





 street11 Main St./street





 citySan Francisco/city





 stateCA/state





 zip98765/zip






trace([EMAIL PROTECTED]);
 ---





 Doe











You don't have to hard-code the identifiers for the nodes or
attributes... they can themselves be variables:















 var whichNode:String = zip;
 trace(employees.employee[0].address[whichNode]);



 ---





 98765

















 var whichAttribute:String =
ssn;
 trace([EMAIL PROTECTED]);
 ---





 789-789-7890











Anew for-each loop lets you loop over multiple nodes
or attributes:











 for each (var ssn:XML in [EMAIL PROTECTED])





 {





 trace(ssn);





 }





 ---









 123-123-1234
 789-789-7890











Most powerful of all, E4X supports predicate
filtering using the syntax .(condition),which lets you pick out
nodes or attributes that meet a condition you specify using a Boolean
_expression_. For example, you can pick out the employee with a particular social
security number like this, andget her state:











 var ssnToFind:String =
789-789-7890;
 trace(employees.employee.(@ssn == ssnToFind)..state);
 ---





 MA











Instead of using a simple conditional operator like ==, you
can also write a complicated predicate filtering function to pick out the data
you need.











By the way, although none ofmy examples use XML
namespaces, E4X has complete support for them

RE: [flexcoders] Internal popups

2005-05-13 Thread Jeff Beeman










Were you able to use the ViewStack to hide
/ unhide a popup window without the content underneath being
hidden? My popup window will be of a smaller size than my application window.







/**
* Jeff Beeman
**/











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Allen Manning
Sent: Friday, May 13, 2005 1:42 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Internal
popups





Hello Jeff,



Have you thought of using a View Stack
with a Title Window? For a project we were working on, we first started
with a Popup Window, but found performance to be a problem. 



We switched to a simulating a popup via
a Title Window / View Stack and found it more performant and more usable.



HTH,

Allen


 
  
  
  
   



   
   

Allen Manning, Technical Director 

   
   

Prismix
Ltd t:
+44 (0)870 749 1100 f: +44 (0)870 749 1200 w:
www.prismix.com

   
  
  
  
  
 
























































From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeff Beeman
Sent: 12 May 2005 17:56
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Internal
popups

Ive been scouring the documentation, but I
cant seem to find how to do something that should be quite simple.
How do I create a popup window that doesnt reference an external
file? All examples point to loading in an external mxml file, but I would
like to simply create a panel that is hidden on startup and have it hide /
unhide on different events. Is this possible?





/***
* Jeff Beeman
* Digital Media  Instructional Technologies
* Arizona State University
***/














Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












RE: [flexcoders] Internal popups

2005-05-13 Thread Jeff Beeman










Yeah, youre code is what Im
looking into right now. Thanks for your help!







/**
* Jeff Beeman
**/











From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com] On Behalf Of Sreejith Unnikrishnan
Sent: Friday, May 13, 2005 8:02 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Internal
popups





Did you check out the code I
posted ...
Viewstack can display only one view at a time ... thats why you should use the
canvas+hbox

Jeff Beeman wrote: 

Were
you able to use the ViewStack to hide / unhide a popup window
without the content underneath being hidden? My popup window will be of a
smaller size than my application window.







/**
* Jeff Beeman
**/











From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Allen Manning
Sent: Friday, May 13, 2005 1:42 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Internal
popups





Hello Jeff,



Have you thought of using a View Stack
with a Title Window? For a project we were working on, we first started
with a Popup Window, but found performance to be a problem. 



We switched to a simulating a popup via
a Title Window / View Stack and found it more performant and more usable.



HTH,

Allen


 
  
  
  
   



   
   

Allen Manning, Technical Director 

   
   

Prismix
Ltd t:
+44 (0)870 749 1100 f: +44 (0)870 749 1200 w:
www.prismix.com

   
  
  
  
  
  
 
























































From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Jeff Beeman
Sent: 12 May 2005 17:56
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Internal
popups

Ive been scouring the documentation, but I
cant seem to find how to do something that should be quite simple.
How do I create a popup window that doesnt reference an external
file? All examples point to loading in an external mxml file, but I would
like to simply create a panel that is hidden on startup and have it hide /
unhide on different events. Is this possible?





/***
* Jeff Beeman
* Digital Media  Instructional Technologies
* Arizona State University
***/
















Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












[flexcoders] Flex equivalent to padding in CSS?

2005-05-13 Thread Jeff Beeman










Is there a Flex equivalent to the padding
attribute in CSS? I have a box and would like to have padding between the
inner content and the border that surrounds it.





/***
* Jeff Beeman
* Digital Media  Instructional Technologies
* Arizona State University
***/













Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












[flexcoders] Internal popups

2005-05-12 Thread Jeff Beeman










Ive been scouring the documentation, but I cant
seem to find how to do something that should be quite simple. How do I create
a popup window that doesnt reference an external file? All examples
point to loading in an external mxml file, but I would like to simply create a
panel that is hidden on startup and have it hide / unhide on different events.
Is this possible?





/***
* Jeff Beeman
* Digital Media  Instructional Technologies
* Arizona State University
***/













Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












RE: [flexcoders] Internal popups

2005-05-12 Thread Jeff Beeman
The problem is that the TitleWindow in your example still takes up space
in the application window.  I need it to behave like a normal popup.


/**
* Jeff Beeman
**/

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jeff Tapper
Sent: Thursday, May 12, 2005 11:27 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Internal popups

try this:
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml;
 mx:Button click=toggleVis() label=click me/
 mx:TitleWindow id=tw title=Some title
 mx:Label text=hi there/
 /mx:TitleWindow
 mx:Script
 ![CDATA[
 function toggleVis(){
 tw.visible = !tw.visible;
 }

 ]]
 /mx:Script
/mx:Application

At 02:21 PM 5/12/2005, you wrote:
I can't find an example or description of how to use the TitleWindow 
component without it being in an external file.  Any pointers?



/**
* Jeff Beeman
**/

--
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On

Behalf Of Tracy Spratt
Sent: Thursday, May 12, 2005 10:45 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Internal popups

You probably want the TitleWindow component.

Tracy


--
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On

Behalf Of Jeff Beeman
Sent: Thursday, May 12, 2005 12:56 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Internal popups

I've been scouring the documentation, but I can't seem to find how to
do 
something that should be quite simple.  How do I create a popup window 
that doesn't reference an external file?  All examples point to loading
in 
an external mxml file, but I would like to simply create a panel that
is 
hidden on startup and have it hide / unhide on different events.  Is
this 
possible?



/***
* Jeff Beeman
* Digital Media  Instructional Technologies
* Arizona State University
***/




--
Yahoo! Groups Links
* To visit your group on the web, go to:
* 

http://groups.yahoo.com/group/flexcoders/http://groups.yahoo.com/group
/flexcoders/ 

*
* To unsubscribe from this group, send an email to:
* 

mailto:[EMAIL PROTECTED]flexc
[EMAIL PROTECTED] 

*
* Your use of Yahoo! Groups is subject to the 
 http://docs.yahoo.com/info/terms/Yahoo! Terms of Service.



 
Yahoo! Groups Links



 






 
Yahoo! Groups Links

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

* 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] Internal popups

2005-05-12 Thread Jeff Beeman










Hmm still not what Im
looking for. I guess what I would like is for something like this (what the
previous responder sent) to work:



?xml
version=1.0 encoding=utf-8?

mx:Application
xmlns:mx=http://www.macromedia.com/2003/mxml

 mx:Button
click=toggleVis() label=click me/

 mx:TitleWindow
id=tw title=Some title


mx:Label text=hi there/


/mx:TitleWindow

 mx:Script

 ![CDATA[

 function
toggleVis(){


tw.visible = !tw.visible;

 }



 ]]

 /mx:Script

/mx:Application



But I need the TitleWindow to behave not like a standard
interface element (one that takes up space in the layout), but like a normal
popup window, one that appears above the content at a specified location.



It looks like using another MXML file is the way to go











/**
* Jeff Beeman
**/











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matt Horn
Sent: Thursday, May 12, 2005 11:41
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Internal
popups





Here's an example that uses createPopUp()
to create a TextArea popup (no other file required):



?xml version=1.0?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml
mx:Script
import mx.managers.PopUpManager;



var app = mx.core.Application.application;
var a = mx.controls.TextArea;
var p:MovieClip;









function createTextAreaPopup() {
p = PopUpManager.createPopUp(app,a,false,{ width:200,height:150,text:'Pop
goes the weasel and the weasel goes pop' });
}







function destroyPopup() {
p.deletePopUp();
}
/mx:Script







mx:VBox xmlns:mx=http://www.macromedia.com/2003/mxml
width=500 height=200
mx:Button id=b1 label=Create TextArea Popup
click=createTextAreaPopup(); /
mx:Button id=b2 label=Destroy Popup
click=destroyPopup(); /
/mx:VBox
/mx:Application



HTH,



matt horn

flex docs











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of JesterXL
Sent: Thursday, May 12, 2005 2:26
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Internal
popups



It's compiled into the final SWF so there isn't technically
a dependency.











However, if you want a simple popup, you could use an Alert.











check out Alert.show for that, and for loading internal
components as popups, look up PopUpManager.createPopUp











- Original Message - 



From: Jeff Beeman






To: flexcoders@yahoogroups.com






Sent: Thursday, May 12,
2005 2:21 PM





Subject: RE: [flexcoders]
Internal popups











I cant find an example or
description of how to use the TitleWindow component without it being in an
external file. Any pointers?







/**
* Jeff Beeman
**/











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Tracy Spratt
Sent: Thursday, May 12, 2005 10:45
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Internal
popups





You probably want the TitleWindow
component.



Tracy











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jeff Beeman
Sent: Thursday, May 12, 2005 12:56
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Internal
popups





Ive been scouring the documentation, but I cant
seem to find how to do something that should be quite simple. How do I
create a popup window that doesnt reference an external file? All
examples point to loading in an external mxml file, but I would like to simply
create a panel that is hidden on startup and have it hide / unhide on different
events. Is this possible?





/***
* Jeff Beeman
* Digital Media  Instructional Technologies
* Arizona State University
***/














Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












RE: [flexcoders] Internal popups

2005-05-12 Thread Jeff Beeman










Thanks, all, for your help! Ill give this
a shot and see if it can handle my needs.







/**
* Jeff Beeman
**/











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Matthew Shirey
Sent: Thursday, May 12, 2005 12:10
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Internal
popups





Yeah, you were just a
little quicker than me getting that one posted. Mine is pretty much the
same solution:

?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml

 mx:Script
  ![CDATA[
  
   function toggleVis(){
   
tw.visible = !tw.visible;
   }
  ]]
 
 /mx:Script
 
 mx:Canvas width=100%
height=100%
  mx:VBox x=0
y=0 width=100% height=100%
horizontalAlign=center
   mx:Button
click=toggleVis() label=click me/
  /mx:VBox
  mx:TitleWindow x=100
y=0 id=tw title=Some title
width=300 height=200 visible=false
   mx:Label
text=hi there/
  /mx:TitleWindow
 
 /mx:Canvas

/mx:Application

-- Matthew



On 5/12/05, Sreejith
Unnikrishnan [EMAIL PROTECTED]
wrote:



ok ... thats interesting ..





Here's an idea ... you can try it ...











mx:Application





 mx:Canvas





 mx:HBox





// Your entire application goes here //





 /mx:HBox





 mx:HBox





// The poup you need can go in here
preferably in another Hbox hidden initially that takes x and y coordinates that
you can pass either by mouse coordinates on Click//





 mx:HBox x= y=






/mx:HBox





 /mx:Hbox





 /mx:Canvas





mx:Application











:-)





-Original Message-
From: flexcoders@yahoogroups.com
[mailto: flexcoders@yahoogroups.com]
On Behalf Of Jeff Beeman



Sent: Friday, May 13, 2005 12:18 AM
To: flexcoders@yahoogroups.com
Subject: RE:
[flexcoders] Internal popups












Hmm still not what I'm looking for. I guess what I
would like is for something like this (what the previous responder sent) to
work:



?xml version=1.0 encoding=utf-8?

mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml

 mx:Button
click=toggleVis() label=click me/


mx:TitleWindow id=tw title=Some title


mx:Label text=hi there/


/mx:TitleWindow


mx:Script

 ![CDATA[


function toggleVis(){


tw.visible = !tw.visible;


}



 ]]


/mx:Script

/mx:Application



But
I need the TitleWindow to behave not like a standard interface element (one
that takes up space in the layout), but like a normal popup window, one that
appears above the content at a specified location.



It
looks like using another MXML file is the way to go











/**
* Jeff Beeman
**/











From: flexcoders@yahoogroups.com
[mailto:
flexcoders@yahoogroups.com] On Behalf Of Matt
Horn
Sent: Thursday, May 12, 2005 11:41
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Internal
popups





Here's an example that uses createPopUp() to create a
TextArea popup (no other file required):



?xml version=1.0?
mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml 
mx:Script
import mx.managers.PopUpManager;



var app = mx.core.Application.application;
var a = mx.controls.TextArea;
var p:MovieClip;









function createTextAreaPopup() {
p = PopUpManager.createPopUp(app,a,false,{ width:200,height:150,text:'Pop
goes the weasel and the weasel goes pop' });
}







function destroyPopup() {
p.deletePopUp();
}
/mx:Script







mx:VBox xmlns:mx=http://www.macromedia.com/2003/mxml
width=500 height=200
mx:Button id=b1 label=Create TextArea Popup
click=createTextAreaPopup(); /
mx:Button id=b2 label=Destroy Popup
click=destroyPopup(); /
/mx:VBox
/mx:Application



HTH,



matt horn

flex docs











From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of JesterXL 
Sent: Thursday, May 12, 2005 2:26
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Internal
popups



It's
compiled into the final SWF so there isn't technically a dependency.











However,
if you want a simple popup, you could use an Alert.











check
out Alert.show for that, and for loading internal components as popups, look up
PopUpManager.createPopUp











-
Original Message - 



From: Jeff Beeman 





To: flexcoders@yahoogroups.com 





Sent: Thursday, May 12, 2005 2:21 PM





Subject: RE: [flexcoders] Internal popups











I can't find an example or description of how to use the
TitleWindow component without it being in an external file. Any pointers?







/**
* Jeff Beeman
**/











From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On Behalf Of Tracy Spratt 
Sent: Thursday, May 12, 2005 10:45
AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Internal
popups





You probably want the TitleWindow component.



Tracy 











From: flexcoders@yahoogroups.com

[flexcoders] Setting background-color style of preloader

2005-05-09 Thread Jeff Beeman










How do I set the background color of the preloader that
plays while the application is loading? I cant seem to find how
anywhere, and even saying (in an external style sheet) global {
background-color: #FFCCFF; }, for example, doesnt affect it.



Thanks!





/***
* Jeff Beeman
* Digital Media  Instructional Technologies
* Arizona State University
***/













Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












RE: [flexcoders] Pie Chart Sizing

2005-05-06 Thread Jeff Beeman
If it helps add to the push for this feature, I'm also needing to be
able to lock down the pie chart size when using callouts.


/**
* Jeff Beeman
**/
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ely Greenfield
Sent: Friday, May 06, 2005 9:51 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Pie Chart Sizing




Unfortunately, I have bad news for you then :(  There's no way, at least
no
obvious direct way, to direct the pie chart to lock down the size of the
pie
and adjust the labels accordingly (this is something you _can_ do with
the
other charts, by setting the gutter styles).  We're considering this
enhancement for the next flex release.

Sorry to be the bearer of bad news. 

Ely.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Battershall, Jeff
Sent: Friday, May 06, 2005 9:47 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Pie Chart Sizing
Importance: High

Ely,

I'm trying to make the size of the pies consistent, if possible.  I've
gotten some success by breaking the callout text across multiple lines
via a callout function.  It would be nice to determine priorities in the
sizing algorthim, namely to have the size of text and pie size remain a
constant and the length of the callout to adjust on the fly.  

Jeff

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ely Greenfield
Sent: Friday, May 06, 2005 12:37 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Pie Chart Sizing





Hi Jeff. Let me get a little more clarity on your question. Are you
trying
to:

- make the text size of the callouts larger?
- make the size of the pie itself larger?
- make the size of all of your pies consistent?

Thanks.
Ely.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Battershall, Jeff
Sent: Friday, May 06, 2005 8:24 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Pie Chart Sizing
Importance: High

I'm having some problems getting pie charts to consistently size.
Problem is I've got 3 charts side-by-side, and the callout labels string
lengths are of different lengths in each chart.  The result is one of
the charts renders considerably smaller than the rest and makes the
callouts virtually unreadable.  I'm sure some sizing algorthim is at
fault, and I'm wondering how to best influence the outcome.

Any ideas?

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


 
Yahoo! Groups Links



 




 
Yahoo! Groups Links



 





 
Yahoo! Groups Links



 




 
Yahoo! Groups Links



 






 
Yahoo! Groups Links

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

* 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] HTTPService and dynamic url

2005-04-28 Thread Jeff Beeman










Hi, all, Im new to the list and to
Flex, but a long-time Flash-er. Ive been lurking a couple of days
and finally noticed a question I might actually be able to help out on!



I think if you bind the url attribute to
an objects property, instead of a function, you may have more
success. At this point, it doesnt know when to fire the
getLanguage() function. If it is bound to an objects property,
which you could update on button presses, etc., it would be able to
watch that property and call the service when it changes.
Im fairly new to Flex, so I wont guarantee itll work, but
that method works with other objects (data grids, charts, etc.)



Tracys solution should work too (although, Ive never done
it myself), and youll have to set the property on an event, i.e.:



Button id=myButton
click=loadXML(); /







function loadXML() {

 // 

 // set your url string here

 // 

 my_service.url = "">

}







/**
* Jeff Beeman
**/











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt
Sent: Thursday, April 28, 2005
10:05 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders]
HTTPService and dynamic url





Have you tried setting it programmatically
instead of binding?

Tracy











From:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of david_gal-reyniez
Sent: Thursday, April 28, 2005
12:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] HTTPService
and dynamic url







Hello everyone!











My problem is the following:





I try to affect dynamically the url of my HTTPService component.
But even if the value of the url that I generate is good, the url property of
my HTTPService is not affected.





I'm interested by any kind of suggestions. Thanks for your
help!











Special thanks to Abdul for the link he mentioned concerning
the multi-language feature and for Manish for his article...

























The function which initialize my HTTPService call











mx:Application width=100%
height=100% xmlns:mx=http://www.macromedia.com/2003/mxmlinitialize=initAppli()











public function initAppli() {
 srvLocaleService.send();






}***







Script defining the HTTService in my Application











It works correctly





mx:HTTPService id=srvLocaleService
url="" result=resultHandler_H1_R(event.result)
fault=resultHandler_H1_F(event.fault) /
mx:Model id=locale
{ srvLocaleService.result.strings }
/mx:Model











But this one not





mx:HTTPService id=srvLocaleService
url="" getLanguage() }result=resultHandler_H1_R(event.result)
fault=resultHandler_H1_F(event.fault) /
mx:Model id=locale
 { srvLocaleService.result.strings }
/mx:Model

















Script defining the language I desired











public function getLanguage():String {
 var item:Object = accUSA.cbLstLanguages.selectedItem; // The
selected languagecome fromone ComboBox
 var itemLabel:String = item.toString();
 language = xml/lg_+itemLabel+.xml;
 return language;
}

















***





The xml I call to define the button's label I want











?xml version=1.0
encoding=iso-8859-1?
strings
btnFindLabelfind/btnFindLabel
/strings

















***





The code I use to affect the label of the concerned button











mx:Button styleName=btn label={
locale.btnFindLabel }











Bye





David



*


Coface facilite les echanges entre
les entreprises partout dans le monde. Pour cela, elle offre a toutes les
entreprises des solutions pour gerer, financer et proteger leur poste client,
en leur permettant d'externaliser tout ou partie de la gestion et des risques
lies a leurs relations commerciales. Coface est notee AA par Fitch Ratings et
Aa3 par Moody's. 

Pour en savoir plus,
http://www.coface.fr 

Coface facilitates
business-to-business commerce worldwide. It offers all size companies an array
of solutions to manage, finance, and protect their accounts receivables
affording them the option of fully or partly outsourcing trade relationship
management and attendant risks. Coface is rated AA by Fitch ratings and Aa3 by
Moody's. 

More about Coface,
http://www.coface.com 

WARNING : 

- Soyez conscient que notre systeme
Anti-Spam peut parfois rejeter des messages, soit parce que certains mots et
types de fichiers ne sont pas acceptes, ou bien parce que le mail n'a pas ete
identifie correctement. 

- Be aware that from time to time our
Anti-Spam system may reject mails either because some words and types of files
are not allowed or because mails are misidentified. 

*














Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoder