Loading URL after flash movie finishes
I have created a flash movie which i have taken into a html
page. when the flash movie has finished i want to load a html page
in the current window. What actionscript should i be using to do
what i want?
I'm far from an flash expert but off the top of my head you
could try adding this to a blank keyframe at the end of your movie:
getURL(
http://www.whatever.com,
"_self");
worth a try
Similar Messages
-
Load webpage in flash movie?
I've been working with components for a while with a lot of
actionscript, and I really cannot find out how to put a website
inside a flash movie using the internet connection component. Am I
using the right component or am I trying the impossable? Please
respond. Thanks in advanced!You can load the raw html - if flash is told (e.g. via
flashvars) the url of the page that you want (its available in
flash as what you would think of as the browser's 'view source'
style plain text) with either as2 or as3.
But you can't do full browser-style rendering of the content
because flash just can't do all that. You could parse the raw html
(probably a custom parser as I think the internal xml parser might
choke on some of the tags in html that are not closed such as
<br> etc) and just pick out bits of text or images that you
could display but you can't achieve an embedded browser.
Adobe's AIR might be more what you want - it has embedded
browser support- but it doesn't run inside a browser like flash. -
Buttons do not function after Flash Movie
I have a page with a number of buttons and a couple of flash
"list" components. One of these lists, gives the user an option to
select one of two modules and then navigates to a marker where a
flash movie plays. When the user exits the flash movie. This is
done via and exit button in the flash movie itself they returnt to
the page where they started. After navigating to that page
following the flash movie many but not all of the buttons are no
longer functional, e.g they do not receive mouseEnters etc.Are the buttons in question Director buttons or Flash
buttons? In either case, is the code for these buttons in a
behavior that is attached to each button? Is there any part of this
code that disables the button? -
Redirect to url after flash video completes
I've embedded a .flv file using Insert/media/flash video in
DW 8.02. Is there some way I can get it to redirect to a specific
url once the movie completes?
The only options currently seem to be stop/rewind.
Thanks,
Rashid.RashidK wrote:
> I've embedded a .flv file using Insert/media/flash video
in DW 8.02. Is there
> some way I can get it to redirect to a specific url once
the movie completes?
>
> The only options currently seem to be stop/rewind.
>
> Thanks,
>
> Rashid.
>
you have to set this up in the flash file (in ActionScript).
when it reaches the end:
getURL("redirectpage.html");
seb ( [email protected])
http://webtrans1.com | high-end web
design
Downloads: Slide Show, Directory Browser, Mailing List -
How do I open a new url after a flv finishes playing?
Sorry for asking this question again, but I'm under the gun.
I have a get
url action script command in my movie in the frame after an
FLV. It doesn't
work. What's the trick to triggering a getURL command when an
FLV finishes?
Thanks.Fudo wrote:
> Sorry for asking this question again, but I'm under the
gun. I have a get
> url action script command in my movie in the frame after
an FLV. It doesn't
> work. What's the trick to triggering a getURL command
when an FLV finishes?
>
help - search - cue points
Regards
Urami
Happy New Year guys - all the best there is in the 2006
<urami>
http://www.Flashfugitive.com
</urami>
<web junk free>
http://www.firefox.com
</web junk free> -
Safari will not load pages after flash update yesterday
I am trying to access pages like CNN.com...with the nice background image on the home page...it does not load the images. Also, articles like "34 sports photos" do not load the flash player so I can see the photos.
how do I fix that or revert?If you can't install or update Flash, follow these instructions.
If you have installed the latest version of Flash, please take each of the following steps that you haven't already tried. After each step, relaunch Safari and test.
For a "blocked plug-in" error, see Step 4.
For a "missing plug-in" error, start with Step 8.
Back up all data before making any changes.
Step 1
You might have to log out or restart the computer before a Flash update takes effect.
Step 2
From the Safari menu bar, select
Safari ▹ Preferences... ▹ Privacy ▹ Remove All Website Data...
and confirm. Close the window. Then select
▹ System Preferences… ▹ Flash Player ▹ Advanced ▹ Delete All...
In the sheet that opens, check the box marked
Delete All Site Data and Settings
then click Delete Data. Close the preference pane.
Step 3
If you're only having trouble with YouTube videos, log in to YouTube and load this page. You may see a link with the text "Leave the HTML5 Trial." If so, click that link.
Step 4
a. If you get a warning of a "blocked" or "outdated" plug-in, then select the Security tab in the Safari preferences window. In the list of plugins on the left, there should be one—and only one—entry for "Adobe Flash Player," showing the same version number that you installed. Select that entry. On the right there will be a list of websites for which you have specifically allowed Flash, if any. It's normal for the list to be empty. Below that is a menu labeled
When visiting other websites
From that menu, select either Allow or Ask.
b. If you still get the alerts, then go back to the Flash Player preference pane and select the Advanced tab. Click Check Now. Quit and relaunch the browser.
c. If the alerts still persist, triple-click anywhere in the line below on this page to select it:
/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources
Right-click or control-click the highlighted text and select
Services ▹ Open
from the contextual menu.* A folder should open. Inside it, there should be a file named "XProtect.meta.plist". If that file is missing and you know why it's missing, restore it from a backup or copy it from another Mac running the same version of OS X. Otherwise, reinstall OS X.
*If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination command-C. In the Finder, select
Go ▹ Go to Folder...
from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.
Step 5
In the Safari preferences window, select the Advanced tab and uncheck the box marked
Stop plug-ins to save power
Step 6
Open this folder as in Step 4:
/Library/Internet Plug-Ins
Delete the following item, or anything with a similar name, if present:
Flash Player (failing).plugin
You may be prompted for your login password.
Step 7
Re-download and reinstall Flash. Download it from the domain "get.adobe.com". Don't click a link from any other website, including this one, because you can't trust links. They may be an attempt to trick you into installing malware masquerading as Flash. Type the address into the browser window. Never download a Flash update from anywhere else.
Step 8
If you get a "missing plug-in" error, select
Safari ▹ Preferences... ▹ Security
from the Safari menu bar and check the box marked
Allow (or Enable) plug-ins
Then click the button marked
Manage Website Settings...
if present and make sure that the website is not blocked for Flash.
Step 9
Select
Safari ▹ Preferences... ▹ Extensions
from the Safari menu bar. If any extensions are installed, disable them. -
Redirecting URL after flash video ends , help?
Hi,
I created this flash video SWF here:
www.funduefoods.com (click
"Watch Our Chocolate Fountain Video!"). When the video ends my
client wants the page to be redirected to the Fountain page. Is
there a simple action script code for this? I know one way is to
embed the video into the timeline, then add a getURL code in the
last keyframe, but I would rather have the video be a progressive
download. Help???
ThanksYou could also add an event cuepoint to the end of the flv
and use a listener for that cuepoint and trigger the getURL that
way.
It's easy to do and examples are in the Flash Help. Search
'cuepoints'.
Note: Cuepoints inserted with something like After Effects
(the way I usually do it) have a greater accuracy than those added
with Actionscript alone. Info about that is also in the help
docs. -
Basic princibles of loading feature in flash movies
Hi everyone,
just a quick question,
what are the basic princibles of the loading feature,
i.e. when a bar goes across the screen indicating how much
percent is loaded.
how do they do this and keep it moveing at the same rate as
the video loads?
please answer if you know,
Thanks!quote:
Originally posted by:
dzedward
you cant switch back and fourth from AS3 to AS2 in your movie
and expect it to work. its like somone who only speaks english,
trying to read a book in half english and half german. it just
doesnt work.. look here for a preloader tutorial for AS3
http://flashas3.flashscript.biz/stage_preloader/Stage_preloader_2.html
no no, you see when i go file> new> it gives me the
option of makeing a new as2 file or as3 file -
Flash loader reappears after movie plays
i am new to flash and cannot figure this out!!! it's probably
super simple... i have created a loader with progress bar and it
seems to work fine, but after my movie finishes playing the loader
screen with progress bar reappears at the end. how can i make it go
away? here's the actionscript i have so far:
loader.contentPath = "ice.worlds.2.swf";
loader.autoLoad = false;
pbar.setStyle("themeColor", "0x00AEEF");
pbar.setStyle("color", "0xCCCCCC");
pbar.setStyle("fontFamily", "verdana");
pbar.setStyle("fontSize", 10);
pbar.source = loader;
pbar.mode = "polled";
thanks in advance for your help!i tried what was suggested below, but it didn't work. do i
need to put anything in the parentheses and if so what? i tried
leaving it as is and i also tried putting the name of the loader
file in: "iceworlds.loader.swf"
thanks! -
On the development version of a site, I have created a flash
movie that uses an XML file that refers to the filenames of images
and their respective captions that are then loaded into the flash
movie.
The images are loaded 2 at a time, into movie containers
within the movie, and then the movies containing the images cycle
through the images one at a time, one movie container fading out
revealing the next image below it, etc. etc.
Basically, I have used this on the site for many photo
galleries. Each one uses the same flash file (in its own folder on
the server, with its respective "images" subdirectory) coupled with
an XML file (all in the same folder on the server) that tells the
flash file where the images are, and in what order, and their
related captions.
There are 9 photo galleries, therefore 9 folders on the
server, each with their own flash and XML and JPEG image files. For
3 specific galleries, the flash file does not load images on some
computers using IE. On the same computers, all other galleries work
fine.
Can anyone even guess what could be causing this??
Many thanks in advance,
ArmoMaybe you can try You Tube Api for flash
http://code.google.com/apis/youtube/flash_api_reference.html -
How to position a flash movie within a web page?
Hi guys.
I have a flash movie that is going to be loaded within
another flash movie via an xml list.
How can I set the position to load the inserted movie to the
center of the page?
At the moment it loads in the top left hand corner.Hi there.
Thanks for replying.
the website in question is www,ridethespiral.net and if you
click on pilot map you will see the error.
The main (Background) flash file is from a template site so I
didn't write the code.
But I think this is it.
//Function used to load external SWF files and call the
loader MC -------------------------------------------
function loadMovieClip (externalTarget:String,
targetRoot:MovieClip) {
var mcLoader:MovieClipLoader = new MovieClipLoader ();
var listenerLoad:Object = new Object ();
listenerLoad.onLoadStart = function (target:MovieClip) {
loader._visible = true;
ZigoEngine.doTween (loader,'_alpha',100,0.5,"easeOutExpo");
//Loading Progress
listenerLoad.onLoadProgress = function (target:MovieClip,
bytesLoaded:Number, bytesTotal:Number):Void {
percent = Math.round (bytesLoaded / bytesTotal * 100);
loader.percentTxt.text = percent + "%";
//On Load Complete
listenerLoad.onLoadComplete = function
(target:MovieClip):Void {
ZigoEngine.doTween
(loader,'_alpha',0,0.5,"easeOutExpo",0,function () {
loader._visible = false;
ZigoEngine.doTween
(content_container,'_alpha',100,0.5,"easeOutExpo",0,function () {
content_blocker._visible = false;
mcLoader.addListener (listenerLoad);
mcLoader.loadClip (externalTarget,targetRoot); -
How to finish flash movie before loading url
I'm pretty new at web design but I've picked up Flash through some tutorials. I'm a bit stuck on how to do the following:
When you click on one of my home page buttons I want my flash animation movie to finish THEN link to url.
I tried adding an eventListener for the tween to 'finish' and then added a link to url to the button but it either linked immediately or the movie finished and didn't link at all.
Here is an example of the code for the button and animation:
rentals_btn.addEventListener(MouseEvent.CLICK, rentalsClick);
function rentalsClick(e:MouseEvent):void {
trace("rentalsClick");
var myxTween:Tween=new Tween(Truck_mc,"x",Regular.easeInOut,Truck_mc.x,-378,4,true);
var myyTween:Tween=new Tween(Truck_mc,"y",Regular.easeInOut,Truck_mc.y,0,4,true);
after this x, y, animation finishes I wish for the button to link to my rentals page url. In all of the sections to my site, I want to be able to link to separately so I didn't design the flash to animate to each section. I want it to link to the url.
Any help would be really appreciated.Your attempt to listen for the end of the tween would have been th correct approach, so maybe your coding of it is off...
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
rentals_btn.addEventListener(MouseEvent.CLICK, rentalsClick);
var myxTween:Tween;
var myyTween:Tween;
function rentalsClick(e:MouseEvent):void {
trace("rentalsClick");
myxTween = new Tween(Truck_mc,"x",Regular.easeInOut,Truck_mc.x,-378,4,true);
myyTween = new Tween(Truck_mc,"y",Regular.easeInOut,Truck_mc.y,0,4,true);
myyTween.addEventListener(TweenEvent.MOTION_FINISH, moveOn);
function moveOn(TweenEvent):void {
myyTween.removeEventListener(TweenEvent.MOTION_FINISH, moveOn);
navigateToURL(...etc); -
Flash movies stop after a random amount of time,
The problem that I am having is that flash movie files (Every website) play for a moment or two and then stop with the little “loading” symbol turning endlessly in the center of the screen. Flash movies used to work with no problem but over the span of the last few months it went from not working well to not working at all. In a perhaps related problem sometimes downloads will stop after a certain length of time and also seem to “hang” at a random spot. If I pause the reload and then restart it the program or whatever will usually finish downloading. This doesn’t happen often but does happen. The flash movie thing, though, happens every time – no matter what browser I have tried. (Firefox, IE, IE with no add-ons, and Chrome anyway.)
I have tried solutions that I have found all across the internet, including the Adobe and Microsoft forums, to no avail. I have unloaded flash with the Adobe uninstaller and reloaded flash. I have tried various flash releases – with and without a firewall on. I have made sure that I am using the 32 bit version of IE and even tried running everything in “administrator mode.” I’ve upgraded every driver that I can upgrade. I’ve used a registry checker as a last resort. I even used the Dell partition to return my computer back to the condition that it was in when I bought it and that didn’t change anything either.
Everything I have tried has made zero difference. In the hopes that someone will have another idea for me to try I am putting all the stats for my computer that I can think of below.
Qwest internet running at 20mbps
Flash 10.1.102.64
Shockwave 11.5.9.615
Microsoft Security Essentials
Tried both IE 9, IE with no add-ons, and now have IE 8 from when I restored from the partition image
OS Name Microsoft Windows 7 Home Premium
Version 6.1.7600 Build 7600
System Manufacturer Dell Inc.
System Model Inspiron 560
System Type x64-based PC
Processor Intel(R) Core(TM)2 Duo CPU E7500 @ 2.93GHz, 2936 Mhz, 2 Core(s), 2 Logical Processor(s)
Graphics - Intel(R) G45/G43 Express Chipset
Sound - Realtek High Definition Audio
BIOS Version/Date Dell Inc. A00, 10/6/2009
SMBIOS Version 2.6
Hardware Abstraction Layer Version = "6.1.7600.16385"
Installed Physical Memory (RAM) 8.00 GB
Total Physical Memory 7.96 GB
Available Physical Memory 6.94 GB
Total Virtual Memory 15.9 GB
Available Virtual Memory 14.4 GB
Page File Space 7.96 GBThank you for answering eidnolb -
Answering your questions...
Have you had a Virus and if so what Anti-Virus program removed it?
No virus that I am aware of
Since you have a Dell, McAfee came pre-installed? Did you remove it prior to Installing MSE? If so, did you use the McAfee Removal Tool or just remove it from Control Panel/Programs & Features?
My computer did come with McAfee which isn't on my computer now. I used a program called "Decrapifier" that removes unwanted preloaded software that comes with PCs.
Is McAfee still Installed?
No
Do you have any Anti-Virus/Spyware programs other than MSE?
No - I have just used MSE until now. I thought about using AVAST but was't sure what running 2 virus/spyware programs would be like.
Since MSE doesn't have a Firewall, do you use any Firewall other than Windows? If so, which?
I use Windows Firewall. I have tried both adding Youtube as an allowed program and switching the firewall off enirely with no luck.
Do you use a Router? Is it Wireless?
I do have a Lynksys router that is a little older but I've also tried hooking the modem directly to the computer.
Is Qwest wireless?
I use the wired ports and not the wireless for my connection.
Other than IE8, what browsers and versions are Installed now?
I only have IE8 now. I never reinstalled the other browsers after using the Dell partition. I prefer Firefox so having to use IE is frustrating.
I've also used "RegestryBooster" to make sure that my regestry looked okay.
Thanks again for taking the time to answer. I think you are right about me doing too much - LOL -
After web page finish, mouse movement and scroll up down very slow.
After web page finish loading,both mouse movement and scrolling that page is very slow.
I compare the same page on MS internet explorer and have no problem.
p.s. I'm using intel core 2 dual on 4gb ddr3 windows vista 32bit.
== URL of affected sites ==
http://www.sanook.comThanks for both of these answers. I am finding that I do not
like the totally manual method all that much (but it does work).
Using the PrintScreen-before-and-after-each-action method seems a
little better for me. Either method requires way too much editing
for a simple "let me show you" movie. I have moved on to version 3
since it seems to behave a little better.
I think it is odd how sometimes Captivate puts an action
(like a mouse click) on a background from *two* slides previous.
Why would it ever go backward - especially skipping over the
previous slide to get an even older screen. If I have forced a
screen capture, you would think it would stay with that.
I realize that I am not using Captivate where its strengths
seem to be (eLearning) but there must be a lot of people capturing
demos of web-based material. Does everyone have this
problem? -
Flash movie doesn't load properly in IE only
I have a simple flash movie which transitions through text and photos. I have a preloader (AS3) on frame 1, which sends the playhead to frame 2, after the movie has loaded 100%. For some reason, in Internet Explorer, the preloader bar will load all the way, but fail to move the playhead to frame 2, so it'll just sit there, with the preload bar at 100%. However, this does not happen every time. For instance, right now, the flash movie will play when I initially go to the website, but when I click on another page, the same flash header (same swf on each page) will just show the preloader bar but will not play the rest of the movie. Reloading the page doesn't help. Closing the browser and reopening it doesn't help. Clearing the browser cache doesn't help either. So, the flash movie will play correctly on the first page of the website I go to (whether it be the home page or another page) but then when I go to any other page which has the flash movie, it won't play, just sits there with the preloader bar showing. And then when going back to the initial page I entered the site on, the flash movie no longer plays there, either. I haven't seen this problem in any other browser than Internet Explorer (6 and 7). I've checked in Firefox on Mac and PC and Safari on Mac. I'm using flash player 10.0.22.87 on my Mac and PC. The flash movie was made in Flash CS3, for flash player 9, actionscript 3 code.
So, to see the problem, go here in Internet Explorer: http://demo.matthewpavkov.com/adairsolar. Wait for the movie to load and start playing. It works. Then, navigate to one of the other pages and you'll see that the same swf will not play. Navigate back to the home page, the swf does not play.
Here is the preloader code:
import flash.display.*;
this.stop();
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, PL_LOADING);
function PL_LOADING(event:ProgressEvent):void {
var pcent:Number=event.bytesLoaded/event.bytesTotal*100;
lbar.scaleX=pcent/100;
lpc.text=int(pcent)+"%";
if (pcent>=100) {
this.gotoAndStop(2);
Also, if I remove the preloader actionscript code, the flash movie plays correctly. You can see that here: http://demo.matthewpavkov.com/adairsolar/no-preload
The .fla is available to anyone who wants to take a closer look.mjjp,
In may just be that in IE, the ProgressEvent never fires -- because your content is already cached. See what happens if you add the following new lines (very end of the code sample):
this.stop();
this.loaderInfo.addEventListener(
ProgressEvent.PROGRESS, PL_LOADING
function PL_LOADING(event:ProgressEvent):void {
var pcent:Number=event.bytesLoaded/event.bytesTotal*100;
lbar.scaleX=pcent/100;
lpc.text=int(pcent)+"%";
if (pcent>=100) {
this.gotoAndStop(2);
if (this.loaderInfo.bytesLoaded >= this.loaderInfo.bytesTotal) {
this.gotoAndStop(2);
See what's going on? This way, even of the ProgressEvent handler never fires, you're still comparing the bytesLoaded property against the bytesTotal property.
David Stiller
Adobe Community Expert
Dev blog, http://www.quip.net/blog/
"Luck is the residue of good design."
Maybe you are looking for
-
Having multiple environments open in the same thread.
Dear Sir, I have a question about the concurrency model inside the bdbje. I read the documents and faqs and wrote some simple programs using it. Here is my question, from my understanding, one can open an environment in multiple processes assuming th
-
Issues with leave application in MSS
Hi Experts, I have a issue , actually changed teh portal content of MSS applications including remaining activities and leave request in MSS Properties changed: Height Type: full_page from automatic Isolation Method : UAT from embedded I have observ
-
Updating XML document using DOM only updates in memory
I am trying to update an element value but it only gets updated in the memory and displayed. It does not physically change the xml document when I look after running the program. Here is the code I am trying to run : Please let me know what I am doin
-
Who knows how to make the frame open broader from the very beginning
Hello people, now my code is working correctly, but the only problem, every time i start the progrm the window is minimum and each time i need to mke it full opened, How to do this? Thank you in advance Galina Here is my code:import java.awt.*; impor
-
AppStore and Calendar stop working!
I've rebooted my mac several times and I hasn't worked. Also, I can't download any updates since Maverick. Any sugestion?