How to stop the film otherwise in a specified URL

I would like to than the SWF at the stop (or other action) if he does not play in a specified URL.   This obviously requires a conditional statement.  I am able to do this in a local environment by checking the current location.  But I don't want the film to stop if it is already in the desired location, in this case the specified URL. The film will play if the current location is the specified URL?  How to set the URL, a path absolute or relative?  I am fairly new to scripting, would appreciate any help.  Thank you.

The LocalConnection var in the pasted code is 'lc' not 'my_lc"- but myIP should be followed very well...

Here is the code I use in AS3 project work for the field:

var conn:LocalConnection = new LocalConnection();
var myIP:String = conn.domain;

And, just checked an AS2 one.  Found that I remembered AS2, and the call of field is a function. So:

var conn:LocalConnection = new LocalConnection();
var myIP:String = conn.domain();

Tags: Adobe Animate

Similar Questions

  • Great beginner: how to stop the film from a loop?

    I created a 30 second clip. I just want that he stop and display the last image on the Web site.

    How to program AS3 to tell him to stop it on the last image and not looping? I don't want it to be empty, so, I want the last image to be visible.

    Any help would be appreciated.

    TNT

    in the timeline in the last picture - make keyframe (with F6), and then type stop();

  • How to stop the remote control to the setting

    How to stop the remote control to the setting

    Disable the settings > general > accessibility > voiceover.

  • How to stop the music in the iOS download

    How to stop the music in the iOS download songs? I accidentally clicked (stupidly) songs to download all the purchased. It will take some time and fill out my iPhone with music. I tried restarting and that did not help. It is also a priority on updating apps from the App store. I use the latest version 9.3.2 iOS iPhone 6.

    Thank you

    I will try to put the device in Airplane Mode, then signature of the iTunes and the App Store. Then try to disable airplane Mode. While you are not connected to the iTunes Store, you should not try to download on the phone once you turn it off airplane mode.

  • HOW TO STOP THE NEW ADS ON FACEBOOK... THEY ARE FRIGGIN BORING AND REEK HAVOC WHEN YOU PLAY... PLEASE ME TELL HOW TO BLOCK THEM!

    How to stop the new ads on Facebook

    I get very annoyed by ads to where they are on the web so I use an add-on called 'Adblock Plus' which uses its database to block known ads and you can even block yourself!

    With 'Adblock Plus Adblock Plus ' installed, you can block all advertising photo:

    1. right click on the announcement of photo that you want to get rid

    2. in the menu, click the option that says: ' Adblock Plus: block image... "(it is usually at the bottom of the menu)

    3. when the pop up box appears, simply click 'Add filter' and advertising will disappear before your eyes!

    If this was the answer you are looking for, please click 'Resolved' - thank you.

  • How to stop the shortcut ctrl-alt-s

    How to stop the shortcut ctrl-alt-s bringing HP info? I use this shortcut elsewhere.

    Here it is:

    http://support.HP.com/us-en/document/c00761879

  • How to stop the Animations of Chrome

    How to stop the animations in Chrome? We're wasting resources and slow down the user interface, especially when the user interface is already slow due to the nature of Firefox non-multitraitement. It is like throwing cement on a turtle.

    The animation of the tab bar has a pref browser.tabs.animate related to this and can be set to false.

  • How to stop the Firefox update page to load whenever I run the FF 3.6.16 application

    How to stop the Firefox update page to load whenever I run the application FF 3.6.16. I use it on an iMac G5 ALS.

    See the following for a few suggestions:

  • How to stop the dashboard at the bottom of the screen in endangered?

    How to stop the dashboard to disappear the bottom of Safari.  It did not happen, but I installed iCapitan.

    Dashboard or the Dock? If you mean that the docking menu Apple > System Preferences > Dock > automatically hide / show Dock.

    OS X El Capitan: use the docking station

  • How to get the film on the second screen and cut on normal?

    How to get the film on the second screen and cut on normal?

    iMovie 10 does not support using double screen, tou need to FCP to do.

    Geoff.

  • How to stop the VI and a Sub VI together

    Hi, in my application, I have a vi with a state machine with a loop of event handler. One of the events in my loop of event handler is out who runs the State of the output of my state machine. I also have an under vi outside my statemachine.

    The problem:

    1. at the exit of pressing my Vi does not stop.

    Reason: my sub vi is still running.

    Need solution : How tp stop the two loops together using the exit button.

    StateMachine P.S:1.My is inside a while loop and while loop runs inside my sub vi also.

    2. both the loops are parallel, since I'm on queues in it.

    2. both the loops are parallel, since I'm on queues in it.

    There are many ways, depending on your architecture.

    Can pass you a message from out of your event loop to your another loop on the queue?

    Another way is to use a global Boolean variable 'Stop' and use it in your second loop exit condition. Set it in the event loop when you want to stop the program.

    The producer consumer example stops the second loop by closing the queue during the first loop stops and then to capture the error when the second loop trying to read the queue.

  • How to stop the log in page and continue straight on the desktop at boot?

    Original title: desktop

    How to stop the newspaper in stright page and go to the desktop page when starting

    Hi Ms.HarleyChic,

    Windows operating system you are using?

    If you use Windows 7, try the steps in the following article and check if this can help:

    Enable or disable a secure connection (CTRL + ALT + DELETE)

  • How to stop the red symbols to appear when I use the question mark, the apostrophe and slash keys. This only happens in my e-mail program.

    How to stop the red symbol to appear when I use the key question mark in my e-mail program.

    HI Julie Delany.

    1. for how long are you facing this problem?

    2. is there any changes made prior to this issue?

    3. may I know what mail client do you use?

    Disable the function key (lock) and then check

  • How to stop the "Microsoft" folder opens at startup

    Whenever I start my computer, "C:\Program Files\Microsoft" opens. I went through each item, start nothing leading to this path. (msconfig, registry, and "Startup" in "Programs" folder.) Anyone know how to stop the start to the top of the file?

    You are really the way strong, but as long you are looking at the registry "Run" keys, make sure that the names of path for various startup items are surrounded by double quotes.

    I can find no documentation final for this - and there is certainly some entries in my key Run that have spaces in them, but are not surrounded by double quotes - but in general, Windows behaves better if you either do not use characters such as spaces or surround the path with quotation marks name.

    For example:

    "C:\Program Files\Fichiers Files\Adobe\ARM\1.0\AdobeARM.exe"

    Because registry Analyzer seems to know the space in Program Files, and given your statement that the problem started when you installed Office, I suggest looking for an entry that starts C:\Program Files\Microsoft Office\Office14\

    If you find such an entry without quotes, modify to add and see if the problem goes away.

    In the future, Autoruns is an easier way to find the startup entries... and it shows many places more than just two Run keys you watched.

  • NOTEBOOK: HOW TO STOP THE EMBEDDED "UNTITLED" WORD ON PAGE I USE

    HOW TO REMOVE THE EMBEDDED "UNTITLED" WORD OF THE PAGE WHICH SHOULD BE PRINTED...                                                                                                                                                                                      Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas:

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    HOW TO STOP THE EMBEDDED "UNTITLED" WORD ON PAGE I USE

    Go to file, Page Setup and remove header and footer text.

    "jimmcanany" wrote in the new message: * e-mail address is removed from the privacy... *

    HOW TO REMOVE THE EMBEDDED "UNTITLED" WORD OF THE PAGE WHICH SHOULD BE PRINTED... Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas:

    * You have problems with programs
    * Error messages
    * These recent changes made to your computer
    * What you have already tried to solve the problem, HOW can I STOP THE WORD EMBEDDED 'UNTITLED' of BEING PRINTED on the PAGE that I USE

Maybe you are looking for