[flexcoders] Re: pausing application for given time

2005-09-09 Thread heybluez
Never tried this but maybe use setInterval() when the button is
pressed and then when that calls the function you do a clearInterval()
to stop the setInterval().

setInterval():
http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flex_Documentationfile=1662.htm#wp4023423

clearInterval():
http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flex_Documentationfile=1270.htm#wp3945377


--- In flexcoders@yahoogroups.com, Krzysztof Szlapinski [EMAIL PROTECTED]
wrote:
 hi,
 i've got this - probably simple - problem, I want to pause my 
 application for some time, and I cant find neither pause nor wait 
 nor halt or whatever function that can perform this task.
 
 here are the details:
 I've got a label and a button, user clicks the button and the label
text 
 changes after 2 seconds
 
 any ideas please
 krzysiek




 Yahoo! Groups Sponsor ~-- 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
~- 

--
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] Re: Another Proxy? PHP?

2005-09-01 Thread heybluez
This is great!  Thanks!


--- In flexcoders@yahoogroups.com, Jeff Conrad [EMAIL PROTECTED]
wrote:
 I've been late getting my blog up, but I wrote a watered-down
replacement
 version of the Flex proxy in PHP around the time of the $30k price
jump.  We
 don't use Java at work and I wouldn't want a Java server running
just for
 Flex, so I spent a few hours on a weekend and made a replacement in PHP.
 Maybe I'll actually get some use out of it when Zorn comes around. 
 
 It currently only handles HTTP GET, WSDL, and SOAP POST, but it can
easily
 be extended to handle the rest.
 
 http://www.jeffxpx.com/blog/2005/08/31/flex-proxy-written-in-php/
 
 Hope you get some use out of it.  If/when you update it, let me know and
 I'll put the updated version up there.
 
 Jeff
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of heybluez
 Sent: Thursday, August 11, 2005 5:04 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Another Proxy? PHP?
 
 Hey,
 
 I have a client that does not want to use the Flex proxy for
 HTTPService requests.  Unfortunately, you need to have a
 crossdomain.xml file on all the requested servers.  This, is probably
 unlikely to be the case all the time...if even part of the time.  SO I
 was thinking of building a PHP proxy or something to route through.
 Question is, are there any other solutions before I start?  Has
 anyone done something similar and wants to kindly share? :)
 
 Thanks!
 Michael
 
 
 
 
 
 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
 
 
 SPONSORED LINKS 
 Computer software testing 
 Macromedia flex 
 Development 
 Software developer 
 
 
 
 
 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. 
 
 





 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

--
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] Another Proxy? PHP?

2005-08-11 Thread heybluez
Hey,

I have a client that does not want to use the Flex proxy for
HTTPService requests.  Unfortunately, you need to have a
crossdomain.xml file on all the requested servers.  This, is probably
unlikely to be the case all the time...if even part of the time.  SO I
was thinking of building a PHP proxy or something to route through.
 Question is, are there any other solutions before I start?  Has
anyone done something similar and wants to kindly share? :)

Thanks!
Michael





 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hmokifo/M=362131.6882499.7825260.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123801497/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

* 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] Re: Another Proxy? PHP?

2005-08-11 Thread heybluez
Hi.

Can you expand on this?  If I am sending a request from flex, how
would i use RewriteRule?

Thanx!

--- In flexcoders@yahoogroups.com, Manish Jethani
[EMAIL PROTECTED] wrote:
 On 8/12/05, heybluez [EMAIL PROTECTED] wrote:
 
  I have a client that does not want to use the Flex proxy for
  HTTPService requests.  Unfortunately, you need to have a
  crossdomain.xml file on all the requested servers.  This, is probably
  unlikely to be the case all the time...if even part of the time.  SO I
  was thinking of building a PHP proxy or something to route through.
   Question is, are there any other solutions before I start?  Has
  anyone done something similar and wants to kindly share? :)
 
 IIRC I simply put a RewriteRule in my .htaccess.  No need to write any
 proxy.  Just ask your Apache web server to redirect, that's it.
 
 Manish




 Yahoo! Groups Sponsor ~-- 
font face=arial size=-1a 
href=http://us.ard.yahoo.com/SIG=12hd4gnro/M=362335.6886445.7839731.1510227/D=groups/S=1705007207:TM/Y=YAHOO/EXP=1123825121/A=2894361/R=0/SIG=13jmebhbo/*http://www.networkforgood.org/topics/education/digitaldivide/?source=YAHOOcmpgn=GRPRTP=http://groups.yahoo.com/;In
 low income neighborhoods, 84% do not own computers. At Network for Good, help 
bridge the Digital Divide!/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

* 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] Re: HTTPService useProxy question...

2005-07-09 Thread heybluez
Hey Guys,

Thanks!  I will just built an alternative proxy with PHP or something.
 It should not be too complicated :)

-Michael

--- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote:
 Sent at 3:21pm
 
 You have to use a proxy, not Flex, but any proxy.  The Flash Player
is a 
 client-side technology, and as such, it can only retreive data from
sources 
 within it's domain.  So, if the XML you are looking for is outside your 
 site, no dice without a proxy.
 
 I use PHP, for example, to hit swgcraft.com.  It has gzipped XML
files on 
 it's site, and dev.jessewarden.com wants to use that data.
 
 PHP grabs the xml feed, unzips it, and sends it to Flex when Flex
requests 
 it.  Since PHP is server-side, and not bound by any domain sandbox,
I'm good 
 to go.
 
 http://dev.jessewarden.com/swg/resources/
 
 - Original Message - 
 From: heybluez [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Friday, July 08, 2005 3:14 PM
 Subject: [flexcoders] HTTPService useProxy question...
 
 
 Anyone bypass the flex proxy with useProxy=false?  I have a flex app
 that currently uses the server as a proxy but we want to bypass the
 flex server and go directly to the source HTTP post/request.
 
 For example, one source is an RSS feed that will come up in a browser
 but is an XML file.  When I use HTTPService and hit that with the
 default settings (i.e. Flex Proxy) it works.  As soon as I turn that
 off (i.e. useProxy=false) it says that it cannot retrieve data!
 
 I am looking to see what I need to do...I did see this in the manual:
 
 --
 Note: You must use the Flex proxy to correctly return HTTP status
 codes from a service.
 --
 
 
 Is this my issue?  The direct hit on the .rdf (i.e. XML) file does not
 return status codes?!  Is that possible?
 
 Ideas?
 
 Thanks,
 -Michael
 
 
 
 
 --
 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

* 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] HTTPService useProxy question...

2005-07-08 Thread heybluez
Anyone bypass the flex proxy with useProxy=false?  I have a flex app
that currently uses the server as a proxy but we want to bypass the
flex server and go directly to the source HTTP post/request.

For example, one source is an RSS feed that will come up in a browser
but is an XML file.  When I use HTTPService and hit that with the
default settings (i.e. Flex Proxy) it works.  As soon as I turn that
off (i.e. useProxy=false) it says that it cannot retrieve data!

I am looking to see what I need to do...I did see this in the manual:

--
Note: You must use the Flex proxy to correctly return HTTP status
codes from a service.
--


Is this my issue?  The direct hit on the .rdf (i.e. XML) file does not
return status codes?!  Is that possible?

Ideas?

Thanks,
-Michael




--
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] Re: HTTPService useProxy question...

2005-07-08 Thread heybluez
First thanks for the response!  Clears a lot of things up.

But...if I read this correctly, then all the sites that I am
requesting FROM have to have a crossdomain.xml file in their root web
directory?

Thanks again,
Michael

--- In flexcoders@yahoogroups.com, Theodore E Patrick [EMAIL PROTECTED] 
wrote:
 When you set proxy=false you need to have crossdomain.xml files
set-up to
 handle the flash player security sandbox. If you do not have
crossdomain.xml
 files configured, the player will block the URL request internally.
 
 Here is the lowdown on crossdomain.xml.
 
 http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14213
 
 Here are some sample crossdomain.xml files:
 
 http://www.macromedia.com/crossdomain.xml
 http://www.yahoo.com/crossdomain.xml
 http://www.ifbin.com/crossdomain.xml
 
 These files are typically found on the server where the data is being
 requested. The Flash Player will automatically check this address
for any
 domain or subdomain that is accessed.
 
 The Flex proxy gets around this restriction.
 
 Cheers,
 
 Ted ;)
 
  -Original Message-
  From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
  Behalf Of heybluez
  Sent: Friday, July 08, 2005 3:15 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] HTTPService useProxy question...
  
  Anyone bypass the flex proxy with useProxy=false?  I have a flex app
  that currently uses the server as a proxy but we want to bypass the
  flex server and go directly to the source HTTP post/request.
  
  For example, one source is an RSS feed that will come up in a browser
  but is an XML file.  When I use HTTPService and hit that with the
  default settings (i.e. Flex Proxy) it works.  As soon as I turn that
  off (i.e. useProxy=false) it says that it cannot retrieve data!
  
  I am looking to see what I need to do...I did see this in the manual:
  
  --
  Note: You must use the Flex proxy to correctly return HTTP status
  codes from a service.
  --
  
  
  Is this my issue?  The direct hit on the .rdf (i.e. XML) file does not
  return status codes?!  Is that possible?
  
  Ideas?
  
  Thanks,
  -Michael
  
  
  
  
  --
  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

* 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] indicating drop target on mx:list

2005-07-02 Thread heybluez
I am trying to figure out a way to indicate to the user what they are
over on a list when dragging.  I would like to activate the rollover
color when the drag item is over that particular list item.

any suggestions?

thanks,
Michael




--
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] List.selectedIndex=0; - how do i fire change event?

2005-07-02 Thread heybluez
Ok...

silly question.

I have a list with a change event.  I would like to be able to set the
index via actionscript like so:

List.selectedIndex=0;

This will highlight the right item but it will not fire the change
event.  I am wondering how I can make it know that the list changed?

Thanks,
Michael




--
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] Re: iconFunction with List

2005-06-15 Thread heybluez
Man, 

I don't get itit won't work!  No icon is displayed.  I know it is
thereany ideas?
-Michael

--- In flexcoders@yahoogroups.com, Andrew Spaulding [EMAIL PROTECTED] wrote:
 it should work. I've got the same code :p
 
 Except where you are embedding the image my only difference is i have
 a leading ./ before images, so it would look like
 
 [Embed(./images/groupFolderSmall.jpg)]
 
 It shouldnt make any difference though.
 
 Andrew.
 
 --- In flexcoders@yahoogroups.com, heybluez [EMAIL PROTECTED]
 wrote:
  Hello
  
  This should work..shouldn't?
  
  --- MXML
  
  mx:List id=subGroupList
  labelField=sub_desc
  iconFunction=subGroupsIcon
  width=100% height=100%
  fontWeight=bold 
  fontSize=11 /
  
  --- AS
  
  // Embed icons.
  [Embed(images/groupFolderSmall.jpg)] 
  var subGroupSymbol:String; 
  function subGroupsIcon(item)
  {
  return subGroupSymbol;
  }
  
  ---
  
  It outputs the list but no icons!  Any ideas?
  
  Thanks,
  Michael




 
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] Re: iconFunction with List

2005-06-15 Thread heybluez
This is wierd.

I can take the code out of my app and it will work.  In it no icon is
displayed.  Now my application has a LOT of Flex and AS code...is
there a limit to how many things I can embed?  OR any ideas as to what
will prevent my icon from showing?

Thanks,
Michael

--- In flexcoders@yahoogroups.com, heybluez [EMAIL PROTECTED]
wrote:
 Man, 
 
 I don't get itit won't work!  No icon is displayed.  I know it is
 thereany ideas?
 -Michael
 
 --- In flexcoders@yahoogroups.com, Andrew Spaulding [EMAIL PROTECTED]
wrote:
  it should work. I've got the same code :p
  
  Except where you are embedding the image my only difference is i have
  a leading ./ before images, so it would look like
  
  [Embed(./images/groupFolderSmall.jpg)]
  
  It shouldnt make any difference though.
  
  Andrew.
  
  --- In flexcoders@yahoogroups.com, heybluez [EMAIL PROTECTED]
  wrote:
   Hello
   
   This should work..shouldn't?
   
   --- MXML
   
   mx:List id=subGroupList
 labelField=sub_desc
 iconFunction=subGroupsIcon
 width=100% height=100%
 fontWeight=bold 
 fontSize=11 /
   
   --- AS
   
   // Embed icons.
   [Embed(images/groupFolderSmall.jpg)] 
   var subGroupSymbol:String; 
   function subGroupsIcon(item)
   {
 return subGroupSymbol;
   }
   
   ---
   
   It outputs the list but no icons!  Any ideas?
   
   Thanks,
   Michael




 
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] Re: Getting client's IP address

2005-06-13 Thread heybluez
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

* 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] iconFunction with List

2005-06-13 Thread heybluez
Hello

This should work..shouldn't?

--- MXML

mx:List id=subGroupList
labelField=sub_desc
iconFunction=subGroupsIcon
width=100% height=100%
fontWeight=bold 
fontSize=11 /

--- AS

// Embed icons.
[Embed(images/groupFolderSmall.jpg)] 
var subGroupSymbol:String; 
function subGroupsIcon(item)
{
return subGroupSymbol;
}

---

It outputs the list but no icons!  Any ideas?

Thanks,
Michael




 
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] Re: render Pdf document in a flex app

2005-06-10 Thread heybluez
Or you can just fake it with this:

http://coenraets.com/viewarticle.jsp?articleId=95

--- In flexcoders@yahoogroups.com, Jose Lora [EMAIL PROTECTED] wrote:
 Not ideal, but you could also convert them to FlashPaper and load them
 directly into your app.
 
  
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Rick Bullotta
 Sent: Friday, June 10, 2005 8:32 AM
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] render Pdf document in a flex app
 
  
 
 Perhaps host the whole thing in a JSP page and an IFrame (which will
 dynamically point to your PDF file) and use JavaScript to bind the two
 together...
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Valy Sivec
 Sent: Friday, June 10, 2005 9:04 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] render Pdf document in a flex app
 
  
 
 Hello flexcoders,
 
 How can I render a pdf document in a Flex container
 (panel)?  I have some library of pdf documents that I
 would like to display them within the app, no pop-ups
 or things like that... I'd like to be able include the
 pdfs at runtime...
 
 Thanks,
 Valy
 
 
 
  
 
   _  
 
 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]
 mailto:[EMAIL PROTECTED] 
 
 * Your use of Yahoo! Groups is subject to the Yahoo! Terms of
 Service http://docs.yahoo.com/info/terms/ .




 
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] Re: HttpRequest and HttpSession access in Remote Obj ect

2005-05-09 Thread heybluez
Anyone have any examples of this?

--- In flexcoders@yahoogroups.com, James Ward [EMAIL PROTECTED] wrote:
 Pradeep,
 
 I think I saw this same problem when I did not have my RemoteObject
 class in the webapp's classloader.  Is the class you are invoking in
 either the WEB-INF/lib or WEB-INF/classes dir?
 
 -James
 
 
 On Mon, 2005-05-09 at 11:22 +0530, Pradeep Chaudhary wrote:
  The class is invoked normally by Remote Object Framework. Since the
  flashgateway.Gateway.getHttpRequest() method returns null I cannot
  call the getSession() method on it. I'am also not dealing with any
  threads at present. Do I need to do some configuration settings to
  have this working. I have the required flashgateway.jar file in
  WEB-INF/lib directory.
  
  Pradeep
  
  On 5/6/05, Peter Farland [EMAIL PROTECTED] wrote:
You simply get the HttpServletRequest object from
flashgateway.Gateway.getHttpRequest() and then call
   getSession from
there. If a session doesn't exist you need to pass true to
getSession so
that it will create one for you.

This method only works if you are within the same thread that
made the
HTTP request - i.e. your class was invoked normally by our
RemoteObject
framework by a normal NetConnection to the AMF Gateway Servlet.

I've not heard of anyone having problems with the syntax so I'd be
interested to hear how Pradeep or yourself are having issues
with this.
Without more information, however, I can not suggest what might be
wrong.
   



-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
Behalf Of Brett Palmer
Sent: Friday, May 06, 2005 1:53 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] HttpRequest and HttpSession access in
Remote
Obj ect

I think Pradeep's question is the same as mine.  Is there a
method in
Flex to gain access to the webcontainers session information? 
We need
this because we have a lot of existing server side code that uses a
session object to determine login status, user rights, etc.  We
also
use sessions to help determine the load on our servers.

What is the recommended method for sharing session information
with a
Flex/Flash client and the server when using remote objects?

Thanks in advance,

Brett

On 5/5/05, Matt Chotin [EMAIL PROTECTED] wrote:
  
  
 
 Hmm, that seems odd considering we need a request to reach the
RemoteObject.
  You're not spawning a thread are you? 
 
   
  
  
  
 
 From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED]
On
 Behalf Of Pradeep
  Sent: Thursday, May 05, 2005 4:48 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] HttpRequest and HttpSession access in
Remote
Object 
  
 
   
 
 I'am using Remote Objects to call my Java class methods on
server. For
  maintaining user information I need Http Session object. So
I tried
  using flashgateway.Gateway.getHttpRequest() and
  flashgateway.Gateway.getHttpRequest().getSession() to
   get
 HttpRequest
  and HttpSession objects respectively. But
  flashgateway.Gateway.getHttpRequest() method returns
   null.
  
  Unless I get reference to request obect I will not be able
to access
  Session object.
  
  Can anybody please suggest something?
  
  
  
  
  
  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.



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.
  
  
   
  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] Re: setFocus() on a TextInput

2005-05-09 Thread heybluez
awesome!

thanks for the help.

--- In flexcoders@yahoogroups.com, Robert Brueckmann
[EMAIL PROTECTED] wrote:
 Try this:
 
 mx:TextInput id=username 
   creationComplete=Selection.setFocus(username); /
 
 You need to use the Selection class to do what you want.  Only thing is,
 if you're expecting the caret to be blinking in the field when loaded in
 the browser, you're not guaranteed that behavior every time...the field
 definitely has focus every time, the caret isn't always blinking in it
 though...it happens intermittently...so the way I got around this is I
 use the JSP taglib tag and embed my entire flex app in a JSP page and in
 the body element of the HTML in my JSP, I force forcus on the Flex movie
 which has an ID, so I use Javascript to force the focus of the Flex app,
 which in turn guarantees a blinking caret in my focuses field without
 fail every time. 
 
 Rob
 
 Robert L. Brueckmann
 Senior Web Developer
 Merlin Securities, LLC
 595 Madison Avenue
 New York, NY 10022
 p: 212.822.4821
 f: 212.822.4820
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of heybluez
 Sent: Monday, May 09, 2005 11:56 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] setFocus() on a TextInput
 
 So..i want a textinput to show focus..on other words it should
 selected for editing, etc.
 
 I try:
 
 feedURLText.setFocus();
 
 with feedURLText as the ID of the TextInput component.
 
 This does not seem to work.
 
 Any ideas?
 
 Thanks,
 Michael
 
 
 
 
  
 Yahoo! Groups Links
 
 
 
  
 
 
 This message contains information from Merlin Securities, LLC, or
from one of its affiliates, that may be confidential and privileged.
If you are not an intended recipient, please refrain from any
disclosure, copying, distribution or use of this information and note
that such actions are prohibited. If you have received this
transmission in error, please notify the sender immediately by
telephone or by replying to this transmission.
  
 Merlin Securities, LLC is a registered broker-dealer. Services
offered through Merlin Securities, LLC are not insured by the FDIC or
any other Federal Government Agency, are not deposits of or guaranteed
by Merlin Securities, LLC and may lose value. Nothing in this
communication shall constitute a solicitation or recommendation to buy
or sell a particular security.




 
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] Re: Microsoft Sharepoint Portal and Flex

2005-05-06 Thread heybluez
interesting.

since I am not a windows programmer, here is an ignorant question.

does sharepoint have an API?  Could I patch an app into it?  if so,
where do i need to go?

--- In flexcoders@yahoogroups.com, Dave [EMAIL PROTECTED] wrote:
 I'm currently working on a project utilizing Flex and SPS. We're 
 accessing Flex apps through SPS web parts. What are you looking for?
 
 -Dave
 
 --- In flexcoders@yahoogroups.com, Tolulope Olonade 
 [EMAIL PROTECTED] wrote:
  Yeah I am interested in this too very much :-)
  If its possible anyway..
   
  
  
  From: flexcoders@yahoogroups.com 
 [mailto:[EMAIL PROTECTED] On
  Behalf Of Jose Lora
  Sent: Thursday, April 28, 2005 2:05 PM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Microsoft Sharepoint Portal and Flex
   
  Hi Team, any experiences on integrating a Flex application as a
  Sharepoint Web Part?
   
  Jose Lora
  Meredith Corporation
   
  
  
  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]
  mailto:[EMAIL PROTECTED]
 subject=Unsubscribe 

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




 
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] Charlottesville, VA

2005-04-25 Thread heybluez


Hey,

Anyone in C-Ville that is pretty good with Flex?

-Michael





 
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] Re: MenuBar : How do I snag the Root Field of the Me nu?

2005-04-22 Thread heybluez


Hey,

it works perfectly!!

For everyone else...

mx:MenuBar menuShow=showMe(event) /

function showMe(event) {
  trace(event.menuItem.attributes.label);
}

Thanks,
Michael


--- In flexcoders@yahoogroups.com, Deepa Subramaniam [EMAIL PROTECTED]
wrote:
 You can use the 'menuShow' event to find out when someone has moused
down on
 the childless top-level menuitem. 
 
 -Original Message-
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 Sent: Friday, April 15, 2005 11:07 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] MenuBar : How do I snag the Root Field of the
Menu?
 
 
 
 Hello.
 
 I have a menubar that has a number of items in it.  These work nicely
 and I can successfully get the child nodes values (i.e.
 event.menuItem.attributes.label).  In the root node I have one
 menuitem that is Logout.  It has no children.  How do I get to this?
 
 I tried mouseDown with the event.menuItem.attributes.label and have no
 luck.  Any ideas?
 
 Thanks,
 Michael
 
 
 
 
 
  
 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] MenuBar : How do I snag the Root Field of the Menu?

2005-04-15 Thread heybluez


Hello.

I have a menubar that has a number of items in it.  These work nicely
and I can successfully get the child nodes values (i.e.
event.menuItem.attributes.label).  In the root node I have one
menuitem that is Logout.  It has no children.  How do I get to this?

I tried mouseDown with the event.menuItem.attributes.label and have no
luck.  Any ideas?

Thanks,
Michael





 
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] Associative Arrays / Hashes

2005-04-07 Thread heybluez


I am trying to see if I can get an array to be more like a hash...

what i mean is say I have the following:

node
events
  month04/month
  day14/day
  shorthockey/short
  descriptionblah/description
/events
events
  month04/month
  day14/day
  shortreading/short
  descriptionblah/description
/events
events
  month04/month
  day14/day
  shortbaseball/short
  descriptionblah/description
/events
node

I want to loop through that and produce something like this...

myObject[month][day]=Array(of Objects for that day);

so I could just do a myObject[month][day] and get back an array of
objects of those events.

First, does this make sense and two how would I do this in AS?

Thanks,
Michael





 
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] Re: Associative Arrays / Hashes

2005-04-07 Thread heybluez


Hey Erik!

Thanks!

The only thing i did different was instead of:

var day_array:Array = month_obj[day_str];
if (!day_array)

I had to do:
var day_array:Array = month_obj[day_str];
if (day_array.length == undefined)

Again thanks for the help.

-Michael


--- In flexcoders@yahoogroups.com, Erik Westra [EMAIL PROTECTED] wrote:
 
 So if I understand it correctly u have a series of events. If u would
 convert this xml to and object u would have something like this:
 
 event[0].month = 04;
 event[0].day = 14;
 event[0].short = heckey;
 event[0].description = bla;
 
 
 Now u want to get access to all events on a certain day in a certain
 month like this
 
 myObject[04][14][0].short = hockey;
 myObject[04][14][0].description = bla;
 
 
 In order to be able to do that u need to convert your initial data, u
 can do that like this:
 
 /*
 input:
   
   events_array
   [0]
   month
   day
   short
   description
   [1]
   ...
 
 output:
 
   object
   [month_str]
   [day_str]
   [0]
   short
   description
   [1]
   ...
   [day_str]
   ...
   [month_str] 
   ...
 
   
 */
 public function convertData(events_array:Array):Object
 {
   var obj:Object = new Object();
   var length_num:Number = events_array.length;
   while (length_num--)
   {
   var currentEvent_obj:Object = events_array[length_num];
   var month_str:String = currentEvent_obj.month;
   var day_str:String = currentEvent_obj.day;
   
   var month_obj:Object = obj[month_str];
   if (!month_obj)
   {
   month_obj = myObject_obj[month_str] =
 new Object();
   };
   
   var day_array:Array = month_obj[day_str];
   if (!day_array)
   {
   day_array = month_obj[day_str] = new Array();
   };
   
   day_array.push({short: currentEvent_obj.short, 
   description:
 currentEvent_obj.description});
   };
   return obj;
 };
 
 
 Greetz Erik
 
 -Original Message-
 From: heybluez [mailto:[EMAIL PROTECTED] 
 Sent: donderdag 7 april 2005 14:52
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Associative Arrays / Hashes
 
 
 
 I am trying to see if I can get an array to be more like a hash...
 
 what i mean is say I have the following:
 
 node
 events
   month04/month
   day14/day
   shorthockey/short
   descriptionblah/description
 /events
 events
   month04/month
   day14/day
   shortreading/short
   descriptionblah/description
 /events
 events
   month04/month
   day14/day
   shortbaseball/short
   descriptionblah/description
 /events
 node
 
 I want to loop through that and produce something like this...
 
 myObject[month][day]=Array(of Objects for that day);
 
 so I could just do a myObject[month][day] and get back an array of
 objects of those events.
 
 First, does this make sense and two how would I do this in AS?
 
 Thanks,
 Michael
 
 
 
 
 
  
 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/