RE: [flexcoders] alert listener

2005-06-23 Thread Matt Horn





trythis:
mx.core.Application.application.getURL("index.html");

hth,

matt horn
flex docs

  
  
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of Robert 
  BrueckmannSent: Thursday, June 23, 2005 3:45 PMTo: 
  flexcoders@yahoogroups.comSubject: [flexcoders] alert 
  listener
  
  
  
  I have an alert 
  listener thats instantiated upon login to my application like 
  so:
  
  public var 
  alertListener:Object = new Object();
  
  function 
  createListener() {
   
  alertListener.click = function(event) {
   
   
  getURL("index.html");
   
  }
  }
  
  Then I have a method 
  that is called when the application session has ended like 
  so:
  
  public function 
  sessionEnded():Void {
   
  mx.controls.Alert.show("Your session has ended and you must log back into the 
  site.", "Session Alert",
   
  mx.controls.Alert.OK, this, alertListener, "", 
  mx.controls.Alert.OK);
  }
  
  When the user clicks 
  on a link and the session has ended, it pops up the alert window successfully, 
  telling them they must log in againI had hoped that after reading this 
  message and clicking ok, the application would refresh and theyd be presented 
  with the login screen again, only thing is, getURL buried in the 
  createListener() method isnt workingIve put trace statements in thereits 
  getting thereit just doesnt want to get me my URL. Does this have 
  something to do with scoping here? Is there a way to do this properly, 
  scope-wise if that is in fact the case so my call to getURL actually does 
  work?
  
  
  robert l. 
  brueckmann
  senior web 
  developer
  merlin 
  securities
  595 madison 
  avenue
  new 
  york,ny 
  10022
  p: 
  212.822.4821f: 212.822.4820 
  
  
  
  
  
  This message contains information fromMerlin 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 throughMerlin Securities, LLC are not insured by the FDIC or any 
  other Federal Government Agency, are not deposits of or guaranteed 
  byMerlin Securities, LLCand may lose value. Nothing in this 
  communication shall constitute a solicitation or recommendation to buy or sell 
  a particular security.--Flexcoders Mailing 
  ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
  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

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] alert listener

2005-06-23 Thread JesterXL





Use Application's getURL:

mx.core.Application.getURL("index.html");

- Original Message - 
From: Robert Brueckmann 
To: flexcoders@yahoogroups.com 
Sent: Thursday, June 23, 2005 3:44 PM
Subject: [flexcoders] alert listener



I have an alert 
listener that’s instantiated upon login to my application like 
so:

public var 
alertListener:Object = new Object();

function 
createListener() {
 
alertListener.click = function(event) {
 
 
getURL("index.html");
 
}
}

Then I have a method 
that is called when the application session has ended like 
so:

public function 
sessionEnded():Void {
 
mx.controls.Alert.show("Your session has ended and you must log back into the 
site.", "Session Alert",
 
mx.controls.Alert.OK, this, alertListener, "", 
mx.controls.Alert.OK);
}

When the user clicks on 
a link and the session has ended, it pops up the alert window successfully, 
telling them they must log in again…I had hoped that after reading this message 
and clicking ok, the application would refresh and they’d be presented with the 
login screen again, only thing is, getURL buried in the createListener() method 
isn’t working…I’ve put trace statements in there…it’s getting there…it just 
doesn’t want to get me my URL. Does this have something to do with scoping 
here? Is there a way to do this properly, scope-wise if that is in fact 
the case so my call to getURL actually does work?


robert l. 
brueckmann
senior web 
developer
merlin 
securities
595 madison 
avenue
new 
york,ny 
10022
p: 
212.822.4821f: 212.822.4820 





This message contains information fromMerlin 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 throughMerlin Securities, LLC are not insured by the FDIC or any 
other Federal Government Agency, are not deposits of or guaranteed 
byMerlin Securities, LLCand may lose value. Nothing in this 
communication shall constitute a solicitation or recommendation to buy or sell a 
particular security.--Flexcoders Mailing 
ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txtSearch 
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

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] alert listener

2005-06-23 Thread Robert Brueckmann









That was fantastic. Thanks!





robert l. brueckmann

senior web developer

merlin securities

595 madison avenue

new york,ny 10022

p: 212.822.4821
f: 212.822.4820











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of JesterXL
Sent: Thursday, June 23, 2005 3:59
PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] alert
listener







Use Application's getURL:











mx.core.Application.getURL(index.html);











- Original Message - 



From: Robert Brueckmann 





To: flexcoders@yahoogroups.com






Sent: Thursday, June 23,
2005 3:44 PM





Subject: [flexcoders] alert
listener













I have an alert listener thats
instantiated upon login to my application like so:

public var alertListener:Object
= new Object();

function createListener() {


alertListener.click = function(event) {



getURL(index.html);


}

}

Then I have a method that is
called when the application session has ended like so:

public function
sessionEnded():Void {


mx.controls.Alert.show(Your session has ended and you must log back into
the site., Session Alert,


mx.controls.Alert.OK, this, alertListener, , mx.controls.Alert.OK);

}

When the user clicks on a link
and the session has ended, it pops up the alert window successfully, telling
them they must log in againI had hoped that after reading this message
and clicking ok, the application would refresh and theyd be presented
with the login screen again, only thing is, getURL buried in the
createListener() method isnt workingIve put trace statements
in thereits getting thereit just doesnt want to get
me my URL. Does this have something to do with scoping here? Is
there a way to do this properly, scope-wise if that is in fact the case so my
call to getURL actually does work?



robert l. brueckmann



senior web developer



merlin securities



595 madison avenue



new york,ny 10022



p: 212.822.4821
f: 212.822.4820 





















This message contains information
fromMerlin 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 throughMerlin Securities, LLC are not
insured by the FDIC or any other Federal Government Agency, are not deposits of
or guaranteed byMerlin Securities, LLCand may lose value. Nothing
in this communication shall constitute a solicitation or recommendation to buy
or sell a particular security.





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











This message contains information fromMerlin 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 throughMerlin Securities, LLC are not insured by the FDIC or any other Federal Government Agency, are not deposits of or guaranteed byMerlin Securities, LLCand may lose value. Nothing in this communication shall constitute a solicitation or recommendation to buy or sell a particular security.


--
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 the Yahoo! Terms of Service.










RE: [flexcoders] Alert Listener

2005-04-14 Thread Abdul Qabiz





Alert.show(sMensagem, sTitulo, 
Alert.OK | Alert.CANCEL, null,mx.utils.Delegate.create(this, click), '', 
Alert.OK);

It 
should solve your problem...

-abdul




From: Fernando Barros 
[mailto:[EMAIL PROTECTED] Sent: Thursday, April 14, 2005 5:56 
PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] 
Alert Listener


Hi 
there,

I have fixed the problems with yours 
helps but I still have some doubts.

Look 
this:
import 
mx.controls.Alert;
class 
classes.Confirmar{
 
public function Confirmar()
 
{}
 

 
public function click(evt):Boolean
 
{
 
if (evt.detail == 4) //ok
 
return true;
 
else
 
 return 
false;
 
}

 
public function Show(sMensagem:String, sTitulo:String, sOkLabel:String, 
sCancelLabel:String)
 
{
 
Alert.okLabel = sOkLabel;
 
Alert.cancelLabel = sCancelLabel;
 
Alert.show(sMensagem, sTitulo, 
Alert.OK | Alert.CANCEL, null, this, '', Alert.OK);
 
}
}

So I 
did:

Var obj: classes.Confirmar = new 
classes.Confirmar();
obj. Show();

How can I access the click method if 
its a listener?

Thks in 
advance,


---Fernando 
Barros
---








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] Alert Listener

2005-04-14 Thread Abdul Qabiz

Hi Fernando,
 
Frankly speaking, I generally don't read books cover-to-cover. I refer
product help and a few books sometimes, when I need to brush up concepts.
But I believe, I learnt more by doing than reading. And yes, Flexcoders is
the best place to learn about Flex by trying  helping out others.
 
However, following books might help you out:
 
For Flex: 

* Developing Rich Clients with Macromedia Flex by Steven Webster  Alistair
McLeod
 
For ActionScript2:
 
* Essential ActionScript 2 by Colin Moock
 
For low level details  Flash Player:

* ActionScript for Flash MX: The Definitive Guide by Colin Moock


Hope that helps...

-abdul
 


From: Fernando Barros [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 14, 2005 7:11 PM
To: flexcoders@yahoogroups.com
Subject: RES: [flexcoders] Alert Listener



It was funny! So easy and I was doing a huge class! Abdul, thank you!

Abdul and people, which books do you recommend?

 

Thks again!

 

PS: I don't know but reading some articles from Macromedia and following the
tutorial, I can notice there are a big difference between them. At the
begging, reading only the tutorial, I had an idea, but If you want do to the
rigth thing, it´s very important to read the articles and some books. Would
be a better idea the Macromedia delivery more tutorials?. Like one for
begginers, intermediates and experts? Only an idea...

 

---
Fernando Barros

Internet Officer
---



De: Abdul Qabiz [mailto:[EMAIL PROTECTED] 
Enviada em: quinta-feira, 14 de abril de 2005 10:00
Para: flexcoders@yahoogroups.com
Assunto: RE: [flexcoders] Alert Listener

 

Alert.show(sMensagem, sTitulo, Alert.OK | Alert.CANCEL, null,
mx.utils.Delegate.create(this, click), '', Alert.OK);

 

It should solve your problem...

 

-abdul

 

  





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/