Ask a Question related to Macromedia Flex General Discussion, Design and Development.
-
dam85 #1
Message before the start
Hello,
I have to check if an user is authorized to see the content inside swf file.
Can i show a message if the user is not authorized, and "block" the application?
thanks
dam85 Guest
-
How To Supress Acrobat Error Message And Alert Message
Is there any way to supress those pop up message? If can't, is there any way to catch it? -
CF MX6.1 will not auto start after server reboot.. but will start by hand...
I just moved all the stuff to a new dual Xeon Windows server 2003. Problem with CF MX 6.1 is that it will not start after a server reboot! I get... -
***This message may contains virus****Delete the message***Taste this correction pack for MS Internet Explorer
"If you receive an e-mail that claims to contain software from Microsoft, do not run the attachment. The safest course of action is to delete the... -
***This message may contains virus****Delete the message***Taste this correction pack for MS Internet Explorer
"If you receive an e-mail that claims to contain software from Microsoft, do not run the attachment. The safest course of action is to delete the... -
P2P Networking: Can't Start Server! Message
Can anyone help me with this problem? This error problem is driving me nuts. It won't stop popping up every couple of seconds. Any help in... -
-
ntsiii #3
Re: Message before the start
Yes, there are several ways to do this. It can be simple or very complicated.
I have a simple example on [url]www.cflex.net[/url]. Search for: login
Tracy
ntsiii Guest
-
dam85 #4
Re: Message before the start
could you please give the link?, i don't found the code....
thanks a lot
bye bye
dam85 Guest
-
-
-
-
Shelady #8
Re: Message before the start
I have an idea. You can use Alert control to this. Alert has a property called
Modal which you can use to restrict the user to proceed or if you want
otherwise.
This is the example.
<?xml version="1.0" encoding="utf-8"?>
<!--
[url]http://blog.flexexamples.com/2007/12/13/creating-nonmodal-alert-dialog-boxes-in-[/url]
flex/ -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
verticalAlign="middle"
backgroundColor="white">
<mx:Style>
Alert {
modalTransparencyColor: black;
}
</mx:Style>
<mx:Script>
<![CDATA[
import mx.controls.Alert;
private function button_click(evt:MouseEvent):void {
var flags:uint = Alert.OK | Alert.YES;
if (checkBox.selected) {
flags |= Alert.NONMODAL;
}
var alert:Alert = Alert.show("Message", "", flags);
alert.title = alert.toString();
}
]]>
</mx:Script>
<mx:ApplicationControlBar dock="true">
<mx:CheckBox id="checkBox"
label="Alert.NONMODAL:"
labelPlacement="left"
selected="true" />
<mx:Spacer width="100" />
<mx:Button label="Launch Alert"
click="button_click(event);" />
</mx:ApplicationControlBar>
</mx:Application>
Shelady Guest
-
slaingod #9
Re: Message before the start
If you want this to be actually secure, as opposed to waving your hands at it,
you would need to do server side security and only return the SWF, or a sub
Module if the user passed server authentication. If the code hits the client
then assume it is compromised.
slaingod Guest
-
dam85 #10
Re: Message before the start
thanks a lot Shelady for the example.
.... in your example there are two buttons, can i show an Alert without
buttons? i want to block the application....the user will must to close the
window of the page(browser)...
is it possible?
thanks again
dam85 Guest



Reply With Quote

