Message before the start

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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?
    2. 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...
    3. ***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...
    4. ***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...
    5. 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...
  3. #2

    Default Re: Message before the start

    do you have any idea ?
    dam85 Guest

  4. #3

    Default 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

  5. #4

    Default Re: Message before the start

    could you please give the link?, i don't found the code....
    thanks a lot

    bye bye
    dam85 Guest

  6. #5

    Default Re: Message before the start

    up
    dam85 Guest

  7. #6

    Default Re: Message before the start

    no other ideas?
    dam85 Guest

  8. #7

    Default Re: Message before the start

    no other ideas?
    dam85 Guest

  9. #8

    Default 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

  10. #9

    Default 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

  11. #10

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139