Re: [flexcoders] Popups and Focus

2007-11-14 Thread Muzak
Use Javascript to set focus to the swf when it's loaded.
IIRC, only works in IE, not Firefox.

regards,
Muzak

- Original Message - 
From: triggersoftware [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, November 14, 2007 11:53 AM
Subject: [flexcoders] Popups and Focus


I'm trying to get my application to launch a popup as soon as it
starts up and the popup should put the focus its text box.  The
problem is, that while I can see the blue border around the text box,
the cursor is not active in the text box, meaning the user has to
click on the popup in order to type anything in.

How do I make it so the user can type in straight away?


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute creationComplete=doInit()

mx:Script
![CDATA[
import Login.Login;
import mx.managers.PopUpManager;

private function doInit():void {
PopUpManager.createPopUp(this, TestPopUp, true); 
}
]]
/mx:Script

/mx:Application




?xml version=1.0 encoding=utf-8?
mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml; 
width=400 height=300 
creationComplete=doInit()

mx:Script
![CDATA[
import mx.controls.Alert;

private function doInit():void {
txt.setFocus(); 
} 
]]
/mx:Script

mx:TextInput id=txt/
/mx:TitleWindow







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

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

* Your email settings:
Individual Email | Traditional

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

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

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

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


[flexcoders] Popups and Focus

2007-11-14 Thread triggersoftware
I'm trying to get my application to launch a popup as soon as it
starts up and the popup should put the focus its text box.  The
problem is, that while I can see the blue border around the text box,
the cursor is not active in the text box, meaning the user has to
click on the popup in order to type anything in.

How do I make it so the user can type in straight away?


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute creationComplete=doInit()

mx:Script
![CDATA[
import Login.Login;
import mx.managers.PopUpManager;

private function doInit():void {
PopUpManager.createPopUp(this, TestPopUp, 
true);
}
]]
/mx:Script

/mx:Application




?xml version=1.0 encoding=utf-8?
mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml; 
width=400 height=300 
creationComplete=doInit()

mx:Script
![CDATA[
import mx.controls.Alert;

private function doInit():void {
txt.setFocus(); 
}   
]]
/mx:Script

mx:TextInput id=txt/
/mx:TitleWindow






Re: [flexcoders] Popups and Focus

2007-11-14 Thread Hara Jn
AS Muzak said use the id in the function AC_FL_RunContent( in the
javascript used in the html generated.Use the id.If the id is 
in the body tag of the html use .focus() in the onload event.

Cheers
Hara

On Nov 14, 2007 4:50 PM, Muzak [EMAIL PROTECTED] wrote:
 Use Javascript to set focus to the swf when it's loaded.
 IIRC, only works in IE, not Firefox.

 regards,
 Muzak


 - Original Message -
 From: triggersoftware [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Wednesday, November 14, 2007 11:53 AM
 Subject: [flexcoders] Popups and Focus


 I'm trying to get my application to launch a popup as soon as it
 starts up and the popup should put the focus its text box.  The
 problem is, that while I can see the blue border around the text box,
 the cursor is not active in the text box, meaning the user has to
 click on the popup in order to type anything in.

 How do I make it so the user can type in straight away?


 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute creationComplete=doInit()

 mx:Script
 ![CDATA[
 import Login.Login;
 import mx.managers.PopUpManager;

 private function doInit():void {
 PopUpManager.createPopUp(this, TestPopUp, true);
 }
 ]]
 /mx:Script

 /mx:Application




 ?xml version=1.0 encoding=utf-8?
 mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml;
 width=400 height=300
 creationComplete=doInit()

 mx:Script
 ![CDATA[
 import mx.controls.Alert;

 private function doInit():void {
 txt.setFocus();
 }
 ]]
 /mx:Script

 mx:TextInput id=txt/
 /mx:TitleWindow







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






Re: [flexcoders] Popups and Focus

2007-11-14 Thread Hara Jn
BTW all the code is  in index.template.html under html-template
folder. As said earlier it wont work in firefox

Cheers
Hara

On Nov 14, 2007 5:18 PM, Hara Jn [EMAIL PROTECTED] wrote:
 AS Muzak said use the id in the function AC_FL_RunContent( in the
 javascript used in the html generated.Use the id.If the id is 
 in the body tag of the html use .focus() in the onload event.

 Cheers
 Hara


 On Nov 14, 2007 4:50 PM, Muzak [EMAIL PROTECTED] wrote:
  Use Javascript to set focus to the swf when it's loaded.
  IIRC, only works in IE, not Firefox.
 
  regards,
  Muzak
 
 
  - Original Message -
  From: triggersoftware [EMAIL PROTECTED]
  To: flexcoders@yahoogroups.com
  Sent: Wednesday, November 14, 2007 11:53 AM
  Subject: [flexcoders] Popups and Focus
 
 
  I'm trying to get my application to launch a popup as soon as it
  starts up and the popup should put the focus its text box.  The
  problem is, that while I can see the blue border around the text box,
  the cursor is not active in the text box, meaning the user has to
  click on the popup in order to type anything in.
 
  How do I make it so the user can type in straight away?
 
 
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  layout=absolute creationComplete=doInit()
 
  mx:Script
  ![CDATA[
  import Login.Login;
  import mx.managers.PopUpManager;
 
  private function doInit():void {
  PopUpManager.createPopUp(this, TestPopUp, true);
  }
  ]]
  /mx:Script
 
  /mx:Application
 
 
 
 
  ?xml version=1.0 encoding=utf-8?
  mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml;
  width=400 height=300
  creationComplete=doInit()
 
  mx:Script
  ![CDATA[
  import mx.controls.Alert;
 
  private function doInit():void {
  txt.setFocus();
  }
  ]]
  /mx:Script
 
  mx:TextInput id=txt/
  /mx:TitleWindow
 
 
 
 
 
 
 
  --
  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