Is it possible to load a URL on stage?

Hello

I use CC - Action Script 3 Flash, is it possible to load a URL on the stage?

use:

import flash.events.MouseEvent;

import flash.text.TextField;

import flash.text.Font;

import flash.text.TextFormat;

import flash.display.Sprite;

import flash.text. *;

import flash.filters.BitmapFilter;

import flash.filters.BitmapFilterQuality;

import flash.filters.BlurFilter;

Import 12345678910111213import;

import flash.display.Loader;

import flash.net.URLRequest;

var link: URLRequest = new URLRequest ("http://simplegreen.com/");

ADD CONTAINERS

var containerStage: Sprite = new Sprite();

containerStage.tabChildren = false;

stage.addChild (containerStage);

DATE TIMER

var my_date: Date;

var mon_timer: Timer = new Timer (1000); create a new timer that everysecond ticks

var dateStyle: TextFormat = new TextFormat;

dateStyle.color = 0xFFFFFF;

dateStyle.size = 48;

dateStyle.font = "myriadMm;

dateStyle.align = 'left ';

var myDateTextBox: TextField = new TextField;

myDateTextBox = new TextField();

myDateTextBox.width = 600;

myDateTextBox.x = 70;

myDateTextBox.y = 70;

myDateTextBox.setTextFormat (dateStyle);

Add to the scene;

containerStage.addChild (myDateTextBox);

var myTimeTextBox: TextField = new TextField;

myTimeTextBox = new TextField();

myTimeTextBox.width = 600;

myTimeTextBox.x = 70;

myTimeTextBox.y = 117;

myTimeTextBox.setTextFormat (dateStyle);

Add to the scene;

containerStage.addChild (myTimeTextBox);

my_timer.addEventListener (TimerEvent.TIMER, onTimer);

my_timer. Start();

MONTH AND DATE

var months: Array = ['Jan', 'Feb', 'Mar', 'Apr', 'may', 'June', 'Jul', 'Aug', 'Seven', "Oct", "Nov", "Dec"];

days var: Array = ["Sun", "Read", "Ma", "Wed", "Game", "Fri"];

Text charger

var textLoader: URLLoader = new URLLoader();

textLoader.addEventListener (Event.COMPLETE, textLoaded);

textLoader.load (new URLRequest("assets/phoneList.txt"));

var ampm: String = new String();

function onTimer (e: TimerEvent): void {}

my_date = new Date();

myDateTextBox.text = days [my_date.day] + "," + "" + months [my_date.month] + "" + formatF (my_date.date) + "" + my_date.fullYear;

If (my_date.hours< 12)="">

AMPM = "AM";

} else {}

AMPM = 'H ';

}

var hours: int = my_date.hours;

If {(heures > 12)}

hours-= 12;

}

myTimeTextBox.text = formatF (hours) + ":" + formatF (my_date.minutes) + "" + ampm.

}

function formatF(n:int):String {}

var s:String = n.toString ();

While (s.length<>

s = « 0 » + s ;

}

return s;

}

Event listeners

phone.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame);

function fl_ClickToGoToAndPlayFromFrame(event: MouseEvent): void {}

trace ("ready directory');

}

simpleGreen.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_2);

function fl_ClickToGoToAndPlayFromFrame_2(event: MouseEvent): void {}

navigateToURL (link, "_self");

}

videoDirectory.addEventListener (MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_3);

function fl_ClickToGoToAndPlayFromFrame_3(event: MouseEvent): void {}

trace ("Video Player is ready");

}

function textLoaded(evt: Event): void {}

info_txt.htmlText = textLoader.data;

}

Tags: Adobe Animate

Similar Questions

  • When I open another tab and type a Web site address, once the site loads the URL in the navigation bar disappears. Why?

    When I open a new tab and type the URL of the Web site, after that load the url of the Web site Web site disappears. In order for me to get him back, I have to right click on the navigation bar, then click Cancel. Why is this?

    Has this happened immediately after the reboot or at a later date?

    This only happens to you in a new tab?

    What is the current setting of the new tab as established through the browser.newtab.url pref page?

    You can open the topic: config page via the address bar.

    Rename or remove the file prefs.js and numbered possible prefs-# .js and the file user.js to reset all default prefs.

  • Load the url in tab of firefox running via cmd versions

    I launched several version of firefox with the following command.
    "\Program Files\Mozilla Firefox 18\firefox.exe" - profile "C:\f18" - no-remote
    "\Program Files\Mozilla Firefox31\firefox.exe" - profile "C:\f31" - no-remote
    Both versions are running, now I want to load a url in tab via cmd versions. currently I'm unable to do so. I have tried almost every flag / command, documented by Mozilla.
    for example
    "\Program Files\Mozilla Firefox18\firefox.exe" - profile "C:\f18" - distance "openURL (http://example.com, new-tab)".
    "\Program Files\Mozilla Firefox18\firefox.exe" - distance "openURL (http://example.com, new-tab)".
    "\Program Files\Mozilla Firefox18\firefox.exe" - profile "C:\f18" - distance "openURL (http://example.com, new-tab)".
    Whenever I faced with an error due to parent.lock or another new windows (with the new process) has appeared.
    - - - - - - - - - - - -
    I want to open a url in the running versions of Mozilla Firefox tabs. If please correct me if I'm doing wrong or guide me how can we solve this problem,
    Thank you

    The - No.-line remote control switch does not allow you to use - remote (as its name suggests). Which took effect in Firefox. 9 (see https://developer.mozilla.org/docs/Mo.../Command_Line_Options#-no-remote).

    Could test you Firefox start with the (not well-documented) new - new-switch instance instead of - no.-remote and see if it works? Which was added to Firefox 13.

  • IS IT POSSIBLE TO LOAD THE TRACKS / OFF ROAD TRAILS ON A MOTONAV TN 765

    Hi, would appreciate any help. Is it possible to load tracks / mapsource or any other software on a Motonav TN 765 trails?

    Thanks a lot Spyder63! Will try the Forum proposed by you. Is there another software / program that will transfer roads / tracks for a mtonav?

  • Is it possible to load the CD (that I put on iTunes years ago) on an iPod Nano to iTunes 9.0.3 (15) on an old MacBook? This is my last chance, as the later versions of iTunes have deleted all this precious music, so I can't be wrong!

    Is it possible to load the CD (that I put on iTunes years ago) on an iPod Nano to iTunes 9.0.3 (15) on an old MacBook (OS 10.5.8)? This is my last chance, as the later versions of iTunes have deleted all this precious music, so I can't be wrong!

    It is unclear what you are asking, but if the question is (retired), the can transfer songs that are on an iPod nano (and nowhere else) to my current computer? 

    You cannot use iTunes.  By design, iTunes sync is generally in one direction, from your computer to the iPod.  The exception is purchased songs on the iTunes Store, iTunes can verify ownership of these songs (command in the menu bar iTunes -> devices-> transfer purchases of [name of the iPod] file).  However, there are methods and third party utilities that can transfer from iPod to computer.  If you do an Internet search on something like 'the ipod transfer', you should get a few links, including a CNET article.

    Once the files of the song on your disc, you can add them to your current iTunes library.

  • is it possible to load and execute space cadets in windows 7 on a Windows XP disk. then running in a mode of compatibility for Windows XP or 95

    original title: Space cadet 3D pinball

    Pinball Space cadet is not not available for windows 7. is it possible to load and execute space cadets in windows 7 on a Windows XP disk. then running in a mode of compatibility for Windows XP or 95. I have a relevant disc that I purchased when using XP (and seriouly consider replace Windowsd 7 with). If it is possible, are there problems to download it.

    Try this: http://mspinball.weebly.com/download.html. He was installing a short test, and it works (download and installation may alert you to "Unknown Publisher", but various analyses did not find anything harmful). "192GO should be enough for everyone." (of the miniseries "Next generation jokes")

  • Get the message: it is not possible to load the user profile after Windows updates

    Original title: Windows won't let me sign after updates

    Last night when I turned off my computer I saw that he had a few updates to do let him - now it won't let me login and when I try to it says that it is not possible to load the user's profile (it's the only one)...

    Recently, I installed Office and Windows 7. My anti-virus is the one that is provided by microsoft. Help!

    Hi romanista,.

    You can read the following article and check if it helps to solve the problem:

    Error message when you log a computer Windows Vista-based or Windows 7 by using a temporary profile: "the user profile Service has no logon. Unable to load the user profile.

    http://support.Microsoft.com/kb/947215

    Hope this information is useful.

    Jeremy K
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Is it possible to load vista x 64 sp2 safely to avoid startup problems?

    I had problems with vista premium x 64 stall during what seems to be loading the driver of tunnel.sys. All equipment is new Phenom x 4 9200: Council AMD geforce 8200: 8 GB of ram: 1 TB of HARD drive.  I have tried everything I can read everything!  I gave up and I am reformatting the drive & reinstalling windows. I'm sure that SP2 is the culprit, is it possible to load updates so that they are in conflict with each other?

    Hi billyelevator,

    Thanks for choosing the Microsoft Answers forum.

    You format it and reinstall Vista I recommend you to install all the updates of windows and the Service Pack before installing your software.

    If you are an Office user, it is safe to install Office and run for Office updates after the installation of the Service Packs.Once is done, you can install the required software.

    Run the system update readiness tool and install service pack 2 on your computer.

    System Update tool checks your computer and trying to resolve certain conditions that can interfere with the installation.

    Description of the tool system for Windows Vista update:

    http://support.Microsoft.com/kb/947821/

    How to obtain the latest Windows Vista service pack

    http://support.Microsoft.com/kb/935791/

    Make sure that you remove all devices external (except keyboard and mouse) on your computer during the installation of SP2.

    You can also go through the link below:

    How to troubleshoot Windows Vista and Windows Server 2008 service pack installation issues

    http://support.Microsoft.com/kb/947366

    Hope the information is useful.

    Kind regards

    Yama - Microsoft technical support.

  • Is it possible to load my camera via usb cable?

    My camera canon t6i does not give good battery backup, so I buy the powerbank, is it possible to load my camera t6i Cannon by a usb cable?

    Lol no not guns.

  • Is it possible to load the specific libraries about the version of BlackBerry model (NOT the software)?

    Hello world

    I know it's possible to load specific libraries about the version of the BlackBerry host software (using files .alx and .jad files), but it is also possible to do the same thing about the version of BlackBerry model?

    I know you can find something with download OTA by designing a specific download servlet that will check the version of the device model (using the HTTP for ie user agent) but how could you do the same thing with the files .alx file? Is it still possible?

    In regards to as you can only check the device software version, but you can't do it with the version of the device model... Is there a workaround here?

    Thanks in advance.

    Sorry for the inconvenience, I recalled an old article that I came across a couple of months:

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800708/800651/How_To _...

  • is it not possible to load the game and load the battery other than through the xbox?

    Original title: play and charge

    I just buy a play and charge kit, it is said that it should be charged for 8 hours the first time, that I do not like to leave my xbox on 8 hours, I thought I could use one of these USB plugs that allow a device to be charged using a wall outlet, but I don't get all the lights on the controller No red light to show that the load, then is this not possible to load the game and load the battery other than through the xbox?

    Hello

    You can post the question here for assistance: http://forums.xbox.com/xbox_forums/b/xcsblog/default.aspx

  • Is it possible to load your phone with the Office using the cord with head phone the ends of both sides?

    Is it possible to load your phone with the Office using the cord with head phone the ends of both sides?

    No, only USB.

    Taken head phones don't have any power.

  • is it possible to acquire the URL as string in APEX?

    it is possible to acquire the URL (for example http://xxxx.com:12345 / DSB? test = xxx) which is issued when the APEX as string access by APEX?

    Hello

    You can use chains of substitution, for example APP_ID and APP_PAGE_ID to build URLS.

    https://docs.Oracle.com/CD/E59726_01/doc.50/e39147/concept_sub.htm#sthref197

    https://docs.Oracle.com/CD/E59726_01/doc.50/e39147/concept_sub.htm#BEIEIDAB

    In the HTML area, you get a full link to the example page

    my link
    

    Kind regards

    Jari

  • Is it possible to have a URL custom in Captivate premium?

    Is it possible to have a URL custom in Captivate premium?

    Hi John,.

    For now, first Captivate allows you to configure only a custom subdomain that can be done by logging into your account as an administrator and then click on 'Company info' on the left column.

    Click on the 'Change' link to the right of the subdomain, and you can choose something like yourcompanyname.captivateprime.com according to availability.

    If you have a domain/specific URL available to you that you want to use to access the first, then you can set a redirect to this URL to the URL of your premium account so that all learners access to this specific URL be re-directed to the URL of your default premium account.

    Kind regards

    Sharad

  • Is it possible to change the URL of an application?

    Hi all

    I was working with oracle apex and created some applications almost a year back, due to my graduate studies, there is a discrepancy with the tool... and finally I am.

    Plan to create an application that will be similar as a personal Web site. My question here is... If it is possible to change the URL and keep a single which includes my name too

    instead of having this great...

    http://Apex.Oracle.com/pls/Apex/f?p=10221:1:116416608594529

    I understand that the entire URL described page n ° no lettering and the session but ID its my doubt possible or not... If possible then how to proceed?

    Thank you

    with respect,

    Robette.

    Thanks for the reply of Tony!

    Exactly, you got my point... that's what mean...

    I want to create a personal web application in the oracle apex and be hosted in another site with a pretty URL (say xxxxx.com... If the URL includes a part of my name which is very appreciated) so that everyone can check out my page and if needs I can include this URL in my RESUME, but I understand that for my own use. Why I'm preferring apex Oracle, I just want to remind the old concepts and practical tip that is there.

    If this is not possible in Oracle apex. Could you please suggest an idea... ?

    Once again thanks for your reply very...

    Kind regards

    Robette.

Maybe you are looking for

  • What is the small lock shown on the envelope of account symbol?

    Compacted to a LOT of emails two days ago. Agreed, I had too many and deleted more than 1,500 of them. Since then, I have received no email. Although I know that some have been sent, the answer is that there is none.As far as I know, the settings are

  • Apple id reset

    I keep one of my apple family id relaxing but can't seem to connect with the new access code, because the system always tells me that I have a bad apple ID or password I did individually. What could be the problem and why the reset does not work for

  • Satellite L300-11V - Internet does not work after you remove software

    Hello Internet my brother no longer works. We believe that it is because he took off a bunch of software/programs to free up space. He said that the problem is... "There are problems of hardware or driver with the network card"Realtek RTL8101 Family

  • On battery

    I have an Acer Aspire notebook 5742-6977. It shows the battery must be replaced. Where can I get one? and I can use it without the battery until I will have a new and up to how long can be used directly on food

  • SanDisk e280 mp3 is stuck at start sreen, HELP!

    When I turn on my mp3, it remains just on the start screen. I tried to reset it, but it is still frozen!  can someone help me!