Help: read a video 3 times and a link to a Web site
I need help with two things: (1) how to limit a loop of 3 plays and (2) how to GET the URL for the code to work so that when someone clicks on the video, a new window opens with the Web site.
My Flash CS6 file is set up quite simply: I FLVPlayback on a layer in the timeline panel, with an instance of the 'player' and on a separate layer name of AS3, I have the following code in the Actions window:
loop video but limit to 3 times
Player.source = "Mt.m4v";
Fl.video import. *;
function onFLVComplete (event:fl.video.VideoEvent): void
{
Player.Play ();
}
player.addEventListener (fl.video.VideoEvent.COMPLETE, onFLVComplete);
When the user clicks on the video, they will go to a Web site
import flash.events.MouseEvent;
import flash.net.URLRequest;
var myURL:URLRequest = new URLRequest ("http://www.google.com/");
function gotoURL(event:MouseEvent):void
{
navigateToURL (myURL, "_blank");
}
player.addEventListener (MouseEvent.CLICK, gotoURL);
you will need a skin because it is the only clickable part of a flvplayback component (add an alpha = 0 button on the playback screen) and use:
loop video but limit to 3 times
Player.source = "Mt.m4v";
Fl.video import. *;
var loop: int = 0;
function onFLVComplete (event:fl.video.VideoEvent): void
{
{if(Loop==2)}
gotoURL (null);
} else {}
Player.Play ();
loop ++;
}
}
player.addEventListener (fl.video.VideoEvent.COMPLETE, onFLVComplete);
When the user clicks on the video, they will go to a Web site
import flash.events.MouseEvent;
import flash.net.URLRequest;
var myURL:URLRequest = new URLRequest ("http://www.google.com/");
function gotoURL(event:MouseEvent):void
{
navigateToURL (myURL, "_blank");
}
player.addEventListener (MouseEvent.CLICK, gotoURL);
Tags: Adobe Animate
Similar Questions
-
all the site went "not found HTTP 404 error. The requested resource is not found. "and the"Firefox cannot load Web sites but other programs can"page is not help somehow
One possible cause is security software (firewall, antivirus) that prevents or limits Firefox or plugin-container process without informing you, possibly after the detection of changes (update) for the Firefox program.
Delete all rules for Firefox and the plugin-container in the permissions list in the firewall and leave your firewall again ask permission to get full unlimited access to the internet for Firefox and the plugin-container and the update process.
See:
You can try to reset (power off / on) of the router.
-
can someone help me on how to e-mail easily links to websites with friends. also need to know how to import the address book for (yahoo mail) personal information manager to send links to the web sites of my contacts.
Hi Claytoncharles,
I suggest you follow the link provided below, which has the similar problem
You can also view the article for more information:
Import, export, or change the format for contacts
http://Windows.Microsoft.com/en-us/Windows-Vista/import-export-or-change-the-format-for-contacts
-
Any time I try to access the web site GOOGLE, this message 404 not found (nginx)
Any time I try to access the web site GOOGLE, this message appears.
Any suggestions as to what is the cause and what is the fix.
Thank you
Hi LindaPhillion,
- Did you the latest changes on the computer?
- What web browser do you use?
- Are you having similar issue with any other search engine?
You will usually receive this error when Internet Explorer is able to connect to the website, but the webpage cannot be found. This error is sometimes caused because the webpage is temporarily unavailable or that the Web page has been removed.
Get help with the Web site (HTTP error) error messages.
http://Windows.Microsoft.com/en-us/Windows-Vista/get-help-with-website-error-messages-HTTP-errors
Note: Above article also applies to Windows XP.
Note: Try the step only if you are using the web browser Internet explorer below.
Refer to the article below and try the steps mentioned, check if it helps.
How to optimize Internet Explorer
-
When I click on a link in a web site, it is supposed to show the details on another page of the same website with text and numbers. But it only shows numbers. Why?
Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).
- Do not click on the reset button on the start safe mode window or make changes.
- https://support.Mozilla.org/KB/safe+mode
- https://support.Mozilla.org/KB/troubleshooting+extensions+and+themes
Alternatively, you can try to start the computer in safe mode Windows with network support (on the startup screen, press F8) as a test to see if it helps in the case where your security (firewall, antivirus) software causes this problem.
-
original title: At & t uverse internet
Use internet AT & T Uverse, their diagnosis happens every time I go online for the first 3 sites until I run their diagnosis, and then traverse the requested Web site. The diagnosis can never find anything. Works great after that. Is something my tracking sites and interrupt my process?Hi Chelsea,
· When you get the run diagnostics?
· Do you get this message in the browser or is it a popup on the computer?
It would probably be best for you to contact uverse support to see why this is happening.
-
Hi, I, m need Adobe Photoshop CC 2015 offline trial version Installer. Please help me. How to download the version from the adobe web site offline?
First read the important instructions on this page.
-
By icons in my toolbar, I had links to several Web sites such as my e-mail address, bank accounts and several other Web sites...
Make sure the toolbars like the toolbar 'Navigation' and the 'personal bar' are visible.
- Firefox menu button > Options
- View > toolbars (press F10 to display the hidden menu bar)
- Right click on empty toolbar space
Use the toolbar (Customize) to open the Customize and set the toolbar to display items.
- Make sure the "bookmarks toolbar items" are on the personal bar
- If "Bookmarks Toolbar items" is not on the bookmarks toolbar, then FRY it in the palette of the toolbar in the window the bookmarks toolbar Customize
- If the missing elements are in the toolbar palette then drag them from the window, customize the toolbar
- If you do not see an item on a toolbar in the toolbar palette and then click the button "Restore default" to restore the default toolbar configuration
-
Why can't an iBook on iTunes in South Africa? They promote the iBooks and iBooks author on their Web site, but it seems that SA is not on the list of countries of distribution. Free IBooks are not available. Someone know why? Thank you.
Liz...
According to Apple eBooks aren't yet available > > I can buy on the iTunes Store in my country?
Simply because Apple makes the promotion of iBooks does not necessarily that they are available in all locations.
Sorry!
-
Where can I find my new hp laptop laptop system software and recovery to open their Web site?
Where can I find my new hp laptop laptop system software and recovery to open their Web site?
1. I have install the hp bios system update and failed.
2. the beginning of HP ENVY 17 laptop u011nr - displays the message "something wrong."
3. then I do the restore point.
4. once I did this, the PC can not correctly run windows 10. Has lost nearly 50% function.
5 then, I run the recovery.
6 the result is OP deaths.
I invited, I need to reinstall all windows of the OP and all equipment control software.
Where can I find my new hp laptop laptop system software and recovery to open their Web site?
Hello
Please use the last item on the following link:
or
Kind regards.
-
setting the time & date on the router or Web site atomic time (to synchronize times)
Is there a program that will perform the same function as this file control breaks:
NET TIME \\[local pc name or an ip] / set yesBut instead of the parameter to another pc on your network will put it to your router (Cisco Linksys WRT110 in my case) or an atomic clock Web site?
I know VB, I can write my a program to do? If so, what would be the code to remove this date & time of my router or a Web site?
Time Windows synchronizes on a time server NTP [S].
The sequence of commands that I used in the past (as admin) is:
NET time /setsntp:192.168.1.1
w32tm/config /update
w32tm/Resync /rediscoverWhere "192.168.1.1" is replaced by the time server NTP which synchronize you to.
Not sure if the Linksys routers include a SNTP server.Microsoft replacement instructions are here:
"How to configure a time server authoritative in Windows XP"
<>http://support.Microsoft.com/kb/314054 >
Jump to halfway down to the paragraph "the time service Configuration Windows to use an external time source.HTH,
JW -
I use IE9 and cannot download files on Web sites. Is there a solution?
I use IE9 and cannot download files on Web sites. It allows me to locate the file, and then he says your file is downloaded, but just keeps spinning.
This happens on several sites and when I call their tech support, I said that there is a problem with IE9. If I use another laptop with IE8, there is no problem.
Open a browser window,
Press the F12 key, then click browser mode,
Click on ie8.
-
Help reading MOD video file on Windows 7
I downloaded video files from my JVC GZ-MC500u camcorder. My new laptop Toshiba running Windows 7 starter edition will not play video. He advises you to check the audio player, but he doesn't have a problem. I check JVC for a driver and Microsoft compatible pages, but I can't find what I'm looking for. Help, please.
Hi Dsmith353,
Welcome to the Microsoft answers site.
· Are you unable to play other file types?
· What application you use to play video files?
· What is the exact error code or error message when you try to play music files?
. MOD files are implemented in JVC to the transport stream MPEG-2, similar to one on a DVD VOB file or M2T files used on Sony hard disk camcorders.
. Mod file format is not supported by Windows Media Player.
Check the link to see the formats supported by windows Media Player file:
Information on the types of media files that supports Windows Media Player: http://support.microsoft.com/kb/316992
You can use the favorite search engine and convert. The MOD files and try playing these files and verification.
Swathi B - Microsoft technical support.
Visit our Microsoft answers feedback Forum and let us know what you think. -
Stop the timer and a link button to stop the timer
the problem is the timer will work kick to the end every time I turn the knob and how could I stop time and the timer control. Also, how would I link the operational (Wash, Rinse, Spin, Soak) and the water level to set the timer?
In your code, pause feature does not include the implementation of the timer.
Try the timer attached, I did while practicing in the review of the CLD, it's PAUSE feature.
-
How to add images to my table and how to configure the Web site? Help, please
I do not understand how to configure the Web site and add images to a table and make hyperlinks.
First, set the folder of your Local Site saying DW where to save the files on your local hard drive. Go to Site > new Site.
I think it is easier to start with a page layout predefined by using one of the appropriate templates to bootstrap that comes with DW.
Go to file > new > (Starter models > models Bootstrap). Select one:
- Bootstrap-Agency
- Bootstrap-eCommerce
- Bootstrap-Portfolio
- Bootstrap-product
- Bootstrap-real estate
- Bootstrap-curriculum vitae
Press the button create.
For pictures, go to insert > Image. Select an image and save it in the folder of your local site.
Nancy O.
Maybe you are looking for
-
A HP Elitebook 8570w fits on a 90W Docking Station A7e32AA?
Hello I was wondering if it is possible to connect my Elitebook 8570w to an A7e32AA Docking Station. In the description on the HP website (http://h30094.www3.hp.com/product/sku/10432926-) it says that the 8570 p doesn't work on it. And I read that th
-
Scanning from HPC5150 for HP G60, "no scan option" HPSDU "No. Scanners installed" Win 7
Scanning from HP Photosmart C5150 all-in-One When you use the Scan Menu button, choose "Scan to Computer": Message 'no. Scan Options '. When parsing Windows Fax and Scan, 'no Scanners were detected. After running HPSDU, 'no Scanners not installed. "
-
Using average a single point to start the acquisition.
Hi guys, I have a problem with the average. I do an acquisttion and that you want to use the average of the top 10 point a single point to start the rest of my test, but I can't stop the average calculation on 10 points, the vi continues. I want to u
-
I am unable to turn on the automatic updates error number 0 x 80070424
I have one-instsalled Microsoft Securities Essentials and then re-installed the updates have been downloaded and installed but now 2 days later, I can't activate the autmatic updates and receive the error number 0 x 80070424. I tried to turn it back
-
I want greate more space on c/station of mine
How I can greate more space on c/station of mine so I can reinstal window mine 7