Getting the server Host name in Action Script?

Good Morning --
Is it possible in a flash movie (CS3/AS 3.0) to get the host
name of the
server running the flash movie?
For example, if the URL is
http://www.domain.com/movie.swf,
I would like to
be able to read a variable / function and have the result be
"domain.com"
Thanks
Rich

Excellent! Thank you. I will give this a shot.
Rich
"David Stiller" <[email protected]> wrote in
message
news:ff57ge$hj2$[email protected]..
> Rich,
>
>> Is it possible in a flash movie (CS3/AS 3.0) to get
the host name
>> of the server running the flash movie?
>
> In AS2, it was a simple matter of checking
MovieClip._url against the
> root, since the main timeline is, after all, a movie
clip ...
>
> trace(_root._url);
>
> ... then manipulating the string -- say, with
String.substr() -- to format
> it how you need.
>
> In AS3, it's a simple matter of checking the LoaderInfo
instance
> associated with the root. In AS3, the main timeline is
an instance or
> subclass of DisplayObject (such as Sprite or MovieClip),
and
> DisplayObject's have a loaderInfo property that refers
to the necessary
> associated LoaderInfo instance, which has a loaderURL
property that points
> to what you're after:
>
> trace(root.loaderInfo.loaderURL);
>
> If you pop a quick dynamic text field in the main
timeline and give it
> the instance name output, you could put this line of
code in a script
> layer:
>
> output.text = root.loaderInfo.loaderURL;
>
> ... and you'd see the info you're after. Again, use
String methods to
> chop off whatever part of the string you don't need.
>
>
> David Stiller
> Co-author, Foundation Flash CS3 for Designers
>
http://tinyurl.com/2k29mj
> "Luck is the residue of good design."
>

Similar Messages

  • Get the Prtal host name

    Hi,
    How can i get the currently running portl host name into visual composer applications?
    Regards,
    Naga

    Hi Naga,
    There's no built-in method in Visual Composer for doing this. However, since Visual Composer can be enhanced with a Web Dynpro component, you can write a simple WebDynpro component that does this for you and then integrate it in your Visual Composer application. Here the info you'll need:
    1. How to create a simple WD component and integrate it in a Visual Composer model:[http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20327c85-9bbc-2b10-968b-bca4bdfa45c6?overridelayout=true|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20327c85-9bbc-2b10-968b-bca4bdfa45c6?overridelayout=true]
    2. How to get the host and port name of the portal:[Get current URL|Get current URL]
    Regards,
    Netanel

  • Problem. Help please. Server Host Name "already used"

    Hello.
    This isn't very critical. But I'm getting a little tired.
    For some reason, from time to time, it appears the following message:
    "The server host name '[my nameXX]' is already being used. It has been substituted by [my_nameXX+1]".
    So it keeps incrementing by 1 that index next to the name of the computer...
    It seems like the name of the computer stays somehow in the net, in the router or in itself, and when I restart my MacBook, it finds that the name is already used.
    Any idea??
    Thanks in advance

    Hola ElPiter, y una cálida bienvenida a los foros!
    The last time I saw this I think it was the Router or Server doing it.
    Does everything have the latest Firmware updates? Routers in particulasr can't be trusted for any Auto update/notification of Firmware.

  • Locations of server host name in different SAP system files

    Hello,
    We are implementing SAP ECC 6.0, with i5/OS V5R4 on IBM System i.
    Could someone please guide me on the locations where the server host name exists in the different SAP system files.
    We need to change this server host name, and the reason is that we succeeded lately in installing SAP on a new server using restore from entire system backup done on an old server where SAP is already installed, but we can't connect the new server to the LAN as the old server is still connected to it, and we can't have the same host name in the same LAN, even with two different IP addresses.
    Thank you in advance for your cooperation.
    Best regards.
    Reda Khalifa

    Hi Reda
    If the Host name is not the same..you may have to change in the startup/Instance/Default profiles, the new hostname...i.e..replace all the old hostnames with the new hostname....
    Also ..you have to check the Data area R3_<NN> in R3<SID>400 library and check to make sure the hostnames correspond to the new hostname...
    Then delete all the sql packages before you restart the system.
    Hope that helps
    Thanks
    Abhi

  • What's the reason for this message, "A server with the specified host name could not be found" ? I'm using iPhone 4s, 16gB, iOS 7.0.4

    I get a pop-up message saying "A server with the specified host name could not be found", whenever I try to access any streaming websites/apps or even WhatApp over Wi-Fi and I cannot access the specific THING for that moment, and I've tried switching Wi-Fi On and Off both in my Phone and also in the Router. I got an internet connection and a Wi-Fi router just before two days, and it's happening since. I got the internet speed around 80kbps and i can easily stream YouTube videos except sometimes, I receive that annoying message. I can't even browse the internet in Safari, which says "No Internet Connection"(Even though the Wi-Fi is connected), and I can access it after somewhile (say 10 minutes, it'll be perfectly alright). I use iPhone 4s. And everything about the internet connection is totally fine in my Computer, but not in my iPhone, as I've explained the issues, above. If there are any technical settings that I should change/modify, either on my computer(Windows 7 OS) or in my iPhone(iOS 7.0.4), PLEASE let me know
    I hope I've provided enough information for the reader to understand my point. (I apologize for my verbal mistakes, if there are )
    THANKS

    Hello Paneesh,
    Thank you for the details of the issue you are experiencing with Wi-Fi on your iPhone 4s.  I recommend the following steps:
    Be sure you're in range of your Wi-Fi router (access point).
    Tap Settings > Wi-Fi and turn Wi-Fi off and on. If your W-Fi setting is dimmed, follow these steps.
    Confirm that your Wi-Fi router and cable or DSL modem are connected to power, turned on, and connected to the Internet. If not, refer to your network administrator or Internet service provider (ISP) for assistance.
    Restart your iOS device.
    Tap Settings > Wi-Fi and locate the Wi-Fi network to which you're connected.
    Tap and Forget this Network.
    Try to connect to your desired Wi-Fi network.
    Note: You may need to enter your Wi-Fi password again if your network requires one.
    Turn your Wi-Fi router off and on2. If your ISP also provides cable or phone service, check with them before attempting this step to avoid interruption of service.
    Update your device to the latest version of software.
    Update your Wi-Fi router to the latest firmware2. For AirPort Base Stations, install updates using the AirPort Utility.
    If the issue is still unresolved Wi-Fi disconnects or signal strength is less than expected
    Move closer to the Wi-Fi router (access point).
    Check for sources of potential interference.
    Remove any case, stand, or other accessories from your iOS device and see if signal strength improves.
    Reset network settings by tapping Settings > General > Reset > Reset Network Settings. Note: This will reset all network settings including
    previously connected Wi-Fi networks and passwords
    recently used Bluetooth accessories
    VPN and APN settings
    You can find the full article here:
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/ts1398
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • How to get the Server Name in Crystal

    Hi All,
    We created a Crystal Report that pulls images from a File Location at the run time and this File Location is different for each environment (D-Q-P). We are trying to automate the file location by the server name. Is there any function in Crystal Reports that we can get the server name so we know if it is D-Q or P system?
    Thank you,

    Hi,
    There is no function in CR that can fetch the Server Name. That is something you need to provide to the formula.
    If you're loading images from a location on the Server, you can always use a Relative Path. For eg: if the images would be stored in a folder called Images, then you can write a formula on the 'Graphic Location' for the OLE object as:
    "/Images/Crystal.jpg"
    This will load the image from the folder when it is run on D, Q or P.
    Hope this helps!
    -Abhilash

  • How to get the server name/hostname on which JVM is running?

    How to get the server name/hostname on which JVM is running from the Servlet or normal class?

    InetAddress.getLocalHost()

  • How to get the database owner name in T-SQL script

    Hello, All!
    I want to get the database ower name (in format DOMAIN\user) by through T-SQL script. But SELECT * FROM sys.databases returns only owner_sid.
    Please show me a way - how to get the owner name, if you have only owner_sid. Or, may be, somebody know another way ?
    Andy Mishechkin

    SELECT suser_sname( owner_sid ), * FROM sys.databases
    http://www.t-sql.ru

  • Can someone please help me!! I keep trying to download itunes but get a message that and error has happened 2/3 and check window activity. Then it shows A sever with the specified host name could not-- and then it cuts off the rest of the message.

    I keep trying to download itunes in Safari but get a message that and error has happened 2/3 and check window> activity. Then it shows A sever with the specified host name could not…… and then it cuts off the rest of the message. I have reset Safari and still nothing!!!
    Very frustrated!!!

    It's downloading with Firefox 3.6.27 as I write.  It's probably more a Safari problem in your case for which people on the Safari forum could provide suggestions.  Or mybe just try again in a while as I suspect everybody is downloading right now.

  • Lync Server 2013 : Export-CsArchivingData Can i get the files or name of files transferred between 2 users

    I am using LyncServer 2013 And my Question is :-
    Export-CsArchivingData -
    By using this Command-let Can i get  the files or name of files transferred between 2 users 
    Whether it is stored in "LcsLog" database ?
    If not weather Lync server saves the files (which users are sending to another users ) anywhere on file system, or not ?

    Doug Deitterick has a great blog posting that should answer your question: http://blogs.technet.com/b/dodeitte/archive/2013/04/24/archiving-options-in-lync-server-2013.aspx
    The actual File is not archived in Lync, but the file name is and will be have either _p2P or _conf at the end of the name to indicate how it was transferred.
    Please mark posts as answers/helpful if it answers your question.
    Blog
    Lync Validator - Used to assist in the validation and documentation of Lync Server 2013.

  • Can you refer to the original host name when using a challenge redirect?

    I have an authentication scheme that uses a challenge redirect to cause authentication to happen using https instead of http. However, this seems to break some of our monitoring scripts because now the credential challenge is coming from a different host name. Is it possible to refer to the original host name with some type of variable in the challenge redirect parameter? Below is an example:
    1. User accesses secured URL at http://appstenv2.company.com/testurl
    2. This webserver is hosting several aliases (appstenv2.company.com, appstenv4.company.com, appstenv6.company.com) and has a main name of appsdev.company.com - but is a single apache webserver where there is an application server plugin installed which will route to the desired application server environment based on the original hostname. So if a user accesses it with a name of appstenv2.company.com/testurl they will be routed to the "test 2" environment application server. If they access it as appstenv6.company.com, they would be routed to the "test 6" environment application server.
    3. This webserver listens on both http and https.
    4. The current challenge redirect can only redirect to a specific URL so it is set to "https://appsdev.company.com" which works fine interactively but the recorded monitoring scripts suddenly see a new hostname doing the prompting for credentials even though it is the same webserver - just a different alias.
    5. If possible, I would want to do the redirect in a relative fashion rather than absolute by using the original hostname from the URL being accessed. So, if the user was accessing http://appstenv2.company.com/testurl, I would like to redirect to https://appstenv2.company.com for the basic authentication. but with the same authentication scheme, if the user accesses http://appstenv6.company.com/testurl, I would want the challenge redirect to go to https://appstenv6.company.com. I'm hoping it's possible to use some system variable like SERVER_NAME to do this.
    Challenge Redirect: https://$SERVER_NAME
    Does anyone know if that is available in OAM 10.1.4.3 or some other way to accomplish the same thing with a single authentication scheme?

    No, there are not multiple policies - the host names for all aliases on that single webserver are together in a single host identifier. And I realize I can only have a single challenge redirect, I just want to use a variable to redirect to the host name that was accessed as opposed to a static name.

  • How to get mail server host?

    Hi, All.
    I try to implement my background co and get two questions.
    1. How can I get the mail server host name which I set in GP Administrator?
    2. How can I get my EP server`s host name?
    Thanks a lot.

    Hi,
    No idea about first question.
    For second, you can try this code :
    try {
         InetAddress thisIp =InetAddress.getLocalHost();
         String url = "http://"+thisIp.getCanonicalHostName();
         final String instanceNumber = System.getProperty("SAPSYSTEM").toString();
         final int httpPortNumber = 50000 + 100 * Integer.parseInt( instanceNumber );
         url+=":" + httpPortNumber;
    } catch(Exception e){
    Regards,
    Niraj

  • Dynamic host name in action link

    Hi All,
    Is there a way to create the dynamic host name in the url in the action link for dashboard? I have tried to use the repository variable to store the hostname from the server in the navigate to webpage. However, the action link is showing the error when I tried to place repository variable in the navigation to webpage in action link. We do not want to manually change the hostname for each migration .
    @{biServer.variables['hostname']}:7001\analytics
    Thanks,
    Sushil

    Thanks Srini,
    I was trying to use the variable value in url of the Action link ( Navigation to webpage). The variable value works inside the report or go url .
    Regards,
    Sushil

  • How to get the server URL?

    I am running WLS server on my machine to host a web app in ADF. How can I get the server name in my manged bean. I dont want to hardcode. The URL is something like this
    http://<my-machine-name>:<port>/epmos/faces/myapp/MyPage.jspx
    How can I retrieve the part
    http://<my-machine-name>:<port>

    In JSFUtils there is a getPageURL method. it will give the whole URL of your page. you can play with the URL string to get the part you need.
       * Method to create a redirect URL. The assumption is that the JSF servlet mapping is
       * "faces", which is the default
       * @param view the JSP or JSPX page to redirect to
       * @return a URL to redirect to
      public static String getPageURL(String view)
        FacesContext facesContext = getFacesContext();
        ExternalContext externalContext = facesContext.getExternalContext();
        String url =
          ((HttpServletRequest) externalContext.getRequest()).getRequestURL().toString();
        StringBuffer newUrlBuffer = new StringBuffer();
        newUrlBuffer.append(url.substring(0, url.lastIndexOf("faces/")));
        newUrlBuffer.append("faces");
        String targetPageUrl = view.startsWith("/")? view: "/" + view;
        newUrlBuffer.append(targetPageUrl);
        return newUrlBuffer.toString();
      }

  • Yahoo outgoing mail server host name

    Having Yahoo mail issues with iphone4, It will not allow the auto yahoo mail add, I did add it under "other" and can receive mail but not reply to it.
    I have the outgoing host name as smtp.mail.yahoo.com and below the server port is 25. I have changed the port yp 587 and 465 without result. Anyone know the correct outgoing outgoing server host name and port for yahoo mail?

    This old fogey will try to help you.
    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    FYI
    Complete guide to using iOS 6
    http://howto.cnet.com/ios-6-complete-guide/
    Guide to Built-In Apps on iOS
    https://sites.google.com/site/appleclubfhs/support/advice-and-articles/guide-to- built-in-apps-ios
    You can download a complete iOS 5 iPad User Guide and iOS 6 iPad User Guide here: http://support.apple.com/manuals/ipad/
    Also, Good Instructions http://www.tcgeeks.com/how-to-use-ipad-2/
    Apple - iPad - Guided Tours
    http://www.apple.com/ipad/videos/
    Apple iPad Guided Tours - Watch the videos see all the amazing iPad apps in action. Learn how to use FaceTime, Mail, Safari, Videos, Maps, iBooks, App Store, and more.
    http://www.youtube.com/watch?v=YT2bD0-OqBM
    http://www.youtube.com/watch?v=ROY4tLyNlsg&feature=relmfu
    http://www.youtube.com/watch?v=QSPXXhmwYf4&feature=relmfu
    How to - Articles & User Guides & Tutorials
    http://www.iphone-mac.com/index.php/Index/howto/id/4/type/select
    iPad How-Tos  http://ipod.about.com/lr/ipad_how-tos/903396/1/
    You can download this guide to your iPad.
    iPad User Guide for iOS 5
    http://itunes.apple.com/us/book/ipad-user-guide-for-ios-5/id470308101?mt=11
     Cheers, Tom

Maybe you are looking for

  • LR3 Missing File Naming Issue

    Hello, I accidently deleted a number of images from two different collections.  Luckily my partner had exported copies of all the keepers with the same file names. LR3 never lost the catalog info, and the thumbnails were still present, albeit with th

  • AE NEEDED REQUEST

    Maybe some of the below requests are available now and I'm not aware or they are in development (cross fingers), but here they are: Scalable interface for high dpi screens! (Like Photoshop) Also, it would be great to have big buttons on the UI based

  • Using other MP3 players with ITunes

    Can anyone give me some guidance? My little girl wants an ipod after having great fun listening to my ipod shuffle. All my music is now stored on iTunes so the question is; does itunes support any other MP3 players or will it only support ipods - I w

  • ITunes store button not working

    Help. The store button in iTunes is not working When I press it nothing happens and if I follow a link to download a song it tells me the link is not valid. This only seems to be an issue for the iTunes store, app store working fine. Have tried all t

  • Installing Forms 6i with 8i

    I have installed Oracle 8i on my computer and it works great. Including the sample database. I would also like to install Forms 6i on my computer but whe I try it, I can't get it to connect to the sample database. In fact, after 6i is installed, if I