Skip navigation
Ether-x
Currently Being Moderated

Where is alert, prompt ?

Jul 16, 2012 8:49 AM

Where is the globals methods such as alert, prompt ?

 

Seems in the globals objext extending CSHostObject, but cannot find this on.

 

I can't find the package com.adobe.bridge in my csaw_flashpro.swc and CSXSLibrary-3.0-sdk-4.5-public.swc.

 

Thank you for your time,

 

Sylvain Lecoy

 
Replies
  • Currently Being Moderated
    Jul 16, 2012 9:04 AM   in reply to Ether-x

    I think what you're looking for is in Flash Builder's mx.controls.*

     

    import mx.controls.Alert;

    import mx.controls.PopUpButton;

     

     

    Alert.show("My Alert Message");

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 16, 2012 9:38 AM   in reply to Ether-x

    You're right, that's quite different.

     

    Another alternative is using HostObject:

    http://cookbooks.adobe.com/post_Communicating_between_JavaScript_and_t he_Creative-17383.html

     

    var  jsxInterface:HostObject = HostObject.getRoot(HostObject.extensions[0]);

    jsxInterface.eval("alert(\"My Alert Message\")" );

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points