Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Redirect To Html After Flv Plays



So I have an flv playing as a short intro to a site, when it is done playing I would like it automatically go to the main page. Any help? This is the code I'm using the play the FLV.var nc:NetConnection = new NetConnection();nc.connect(null);var nStream:NetStream = new NetStream(nc);theVideo.attachVideo(nStream);nStream.setBufferTime(5);nStream.play("flv/logo_intro.flv");playbtn_mc.onRelease = function() { if (this.icon_mc._currentframe == 1) { this.icon_mc.gotoAndStop(2); nStream.pause(); } else { this.icon_mc.gotoAndStop(1); nStream.pause(); }};



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 05-24-2007, 01:08 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Automatic Redirect After An Flv Plays?
I've searched all around the internet and cant figure out how to do this. Basically, I have an flv movie play on progressive download--it's about 3mb. Then, following the video playing, I need it to automatically foreword the viewer to another page.

I understand there's a listen function of some kind, but I couldn't make sense of it. Any help would really be appreciated.

GetURL Doesn't Redirect After Movie Plays
Can someone please help me, I am going nuts over this and ready to hit a wall!!

I have entered a getURL command at the end of my Flash Movie, and it wont redirect the page to a new website after it's finished playing. I've followed instructions and the Wizard thing, but to no avail.

I am new to Flash so please be nice... I am trying...

Here is the code I'm using:


Code:
getURL("www.canberraantiques.com", "_self", "GET");


And here is the Sample .FLA file that i'm creating/trying to get it to work with....


Code:
http://members.iinet.net.au/~ellavale/Advertistement.fla


Could someone please help me.... No other Flash Forum seems to want to help....

Html Redirect
How do you make the flash redirect to another webpage at the end of the flash???

Html Redirect (i Don´t Get It)
ok guys, here it is. I read everywhere that before a user loads a FLASH WEB SITE it should first be directed to a html page with some .GIF in order to link it the main site.

i mean, HOW DO I DO THAT? can i publish a HTML page in flash with out the .SWF? i´m really lost here. and another thing, how do i link the .gif image to the site.

Please excuse my english, i don´t speak it very well.

PLEASE dont leave me alone with problem, HEEEELPPPP me PLEEEEEEEEASEEE.

Thank you my friends.

[F8] Redirect To Html
My client wants a Flash intro to redirect automatically to an html page. Can anybody tell me how that's done? Thank you.

Redirect To Html From Swf
hi,

I need redirect to html web page after playing loaded swf content. It should be executed from swf. Is it possible?

Need To Redirect To Html
Hi
  I wrote a simple flash file and I want it to play through and then redirect the browser to an html page.

  Whats the actionscript for this?

-A

Redirect Html Code?
sorry for asking about html here guys, but can someone remind me how to make a page automatically redirect the user to another page.

I know its just a simple bit of code you put in the head tag or something, with a value for the URL and a value for how many seconds it waits before redirecting.

Cheers

Redirect When Viewing Swf Without Html...
Hi there...

Is it possible to prevent using only the .swf instead of the html with the .swf?

So if people load the swf in their browser without the html, it should redirect to a specific url.

Can it be done?

Thnx,

Leon

How To Redirect To Html Page?
Hello ...

Ok the problemis ..I have one html page for intro that using flash and doing some animation..ok what I want do is..how to redirect this page to index.html contain no flash as soon as the intro was done...without clicking the button to enter the index.html

hope someone can help me out with this...

Reading HTML Variable To Redirect URL
Please help!
My ability to use actionscript is very limited and I am reaching a deadline on some important work for the company i'm employed by.

Basically, what I want to do is read in a variable (RUNID) from the HTML code into Flash, and then add this to a URL. [RUNID generates a unique number which changes each time somebody accesses the site.]

I'm trying to add RUNID onto the url using this in the GETURL box:
"http://www.theurl.co.uk/scripts/txnsvr.p?RUNID=" add RUNID

But it doesn't recogonise the variable RUNID as defined in the HTML. Do I have to declare the variable somehow in Flash?

Many thanks in anticipation to a solution!!!

Gav.

Flash Intro To HTML Without Redirect?
I am trying to reverse engineer something I saw recently. I want to try something similar with a site I am doing.
Here's what happens. You go to the website, a flash intro page plays, then after playing it displays the html page. I know, you guys are saying just have the flash intro redirect after playing...well the guy set it all up so it doesn't redirect, it just hides the swf file and displays the HTML below.

I just can't figure out what the actionscripting is in the flash file that triggers the javascript in the html file. Here's his source code from the page:

Quote:




<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
<title>Welcome</title>
<script>
if(document.all && !document.getElementById)
{
document.getElementById = function(id)
{
return document.all[id];
}
}
function toggleView(id)
{
var show = id + "-show" ;
var hide = id + "-hide" ;
document.getElementById(show).style.display = "none" ;
document.getElementById(hide).style.display = "inline" ;
}
//end toggleView
</script>
</head>
<body bgcolor="#FFFFFF">
<span id="bj-show" style="display:inline">
<table width="100%" height="100%">
<tr>
<td align="center" valign="middle">
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<!--bj-->
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
width="750" height="550" id="bj" align="">
<param name=movie value="bj.swf"> <param name=quality value=high> <param name=bgcolor value=#FFFFFF>
<embed src="bj.swf" quality=high bgcolor=#FFFFFF width="750" height="550" name="bj" align=""
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
</object> </td>
</tr></table>
</span>
<span id="bj-hide" style="display:none">
<!-- Front page here. -->
</span>
</body>
</html>

Auto Detect Redirect To HTML
Hello,

I need help setting up a entrance page that will automatically redirect visitors that do not have Flash to my HTML site. Of course if the visitor has Flash it will play the Flash site. Btw, I have Flash 8 which has a detection switch but not sure how to use it for this.

A good example of what I'm trying to do is at sony.com. If you disable your flash plugin in the browser it (sony.com) will auto take you to the html site and inform you by placing a link at the bottom of the page that says "html site".

Thanks,
tdsilk

Flash Intro To HTML Without Redirect?
I am trying to reverse engineer something I saw recently. I want to try something similar with a site I am doing.
Here's what happens. You go to the website, a flash intro page plays, then after playing it displays the html page. I know, you guys are saying just have the flash intro redirect after playing...well the guy set it all up so it doesn't redirect, it just hides the swf file and displays the HTML below.

I just can't figure out what the actionscripting is in the flash file that triggers the javascript in the html file. Here's his source code from the page:

HTML Code:
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
<title>Welcome</title>
<script>
if(document.all && !document.getElementById)
{
document.getElementById = function(id)
{
return document.all[id];
}
}
function toggleView(id)
{
var show = id + "-show" ;
var hide = id + "-hide" ;
document.getElementById(show).style.display = "none" ;
document.getElementById(hide).style.display = "inline" ;
}
//end toggleView
</script>
</head>
<body bgcolor="#FFFFFF">
<span id="bj-show" style="display:inline">
<table width="100%" height="100%">
<tr>
<td align="center" valign="middle">
<!-- URL's used in the movie-->
<!-- text used in the movie-->
<!--bj-->
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
width="750" height="550" id="bj" align="">
<param name=movie value="bj.swf"> <param name=quality value=high> <param name=bgcolor value=#FFFFFF>
<embed src="bj.swf" quality=high bgcolor=#FFFFFF width="750" height="550" name="bj" align=""
type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>
</object> </td>
</tr></table>
</span>
<span id="bj-hide" style="display:none">
<!-- Front page here. -->
</span>
</body>
</html>

Auto Redirect To Html If No Flash
Can anyone help me with this? I've built 2 websites one in HTML and the other in FLash, but what I would like for it to do is autodetect, if the user does not have flash player in their browser it will autoredirect to the HTML site. Thanks in advance.

Redirect To Html Page Using Flash Actionscript
Hi anyone has any idea what's the action script in an flash that will redirects the html page after the flash has ended 5 second. It will redirect into the page that is in the same target folder example: the flash is in index.html and it will redirect to home.html after the flash end.

Example web -> http://www.female50gp.com/

Thanks!

HTML Rollover Plays .swf On Same Html Page Help
Please help... Still a bit of a newbie.

I have an html page with html links. Also on the page is a .swf that will play when the page is loaded. However, I want to create a roll-over effect with the text HTML lnks that play another .swf. How do I do this (specifically)?
Also, instead of having separate .swf files, I would like set-up the roll-over to go to specific frames in one swf and play?
THX

Html --> Redirect To Flash Site And Load Specific Movie
This will take a while to explain..
I have a website done in one main flash which calls up external swf. If the user does not have Flash 6 player, they will be redirected to the HTML site. However, users coming in via search engines will most likely end up in the HTML site. So the boss has asked me to add some magic codes into every HTML page to check the user for presence of flash player. If the user has it, then they will be redirected to the FLASH site BUT the trick is, it has to load the exact corresponding swf of the HTML page they were redirected from!!!! Any Flash Merlins out there with that kind of magic to teach me how to achieve such miracles? I cannot afford to restructure my Flash cuz my navigations are in the main movie and every page is in individual external swf to be loaded into a blank container in the main mov when they are called.

I'm building with Flash MX

Redirect Timer Function ( Within Flash Mx ) That Redirects To Html Page
help!
for html,there's a function that auto-redirects a page by using the <meta> tag...
i was wondering if flash mx has its own way of doing it,too
sample FLAs will be welcome

Redirect Timer Function ( Within Flash Mx ) That Redirects To Html Page
help!
for html,there's a function that auto-redirects a page by using the <meta> tag...
i was wondering if flash mx has its own way of doing it,too
sample FLAs will be welcome

Plays In Flash But Not HTML?
I made this movie thing for a friend im not done but when i play in flash (control>play) it works fine. But when i publish to html, the movie doesnt play. Whats wrong?

Web Behavior Plays In Swf But Not In Html
Please explain why when I create a button and assign to it web behavior it plays in swf file (when I press Ctrl-Enter) and it does not play in HTML (when pressing F12 - it opens html page but does not go to URL while clicking on the button)

SWF Plays Slow In Html
Yo yo,

I searched the forums first and couldn't find anything.
I’m sure you have come across this before, it’s a pain.

I have used flash for years and came across this problem before but can’t remember how I solved the issue.

Finished my flash intro:-
30sec long.
preload of 1 second (56k).
25 frames per second.
swf 63.5k.

The swf plays perfectly until I embed it in a html page where it just runs well, just **** terrible, really slows down (machine specs are not an issue, and the swf plays fine on its own).

Cheers

SWF Plays Slow In Html
Yo yo,

I searched the forums first and couldn't find anything.
I’m sure you have come across this before, it’s a pain.

I have used flash for years and came across this problem before but can’t remember how I solved the issue.

Finished my flash intro:-
30sec long.
preload of 1 second (56k).
25 frames per second.
swf 63.5k.

The swf plays perfectly until I embed it in a html page where it just runs well, just **** terrible, really slows down (machine specs are not an issue, and the swf plays fine on its own).

Cheers

SWF Plays Audio, HTML Doesn't - Any Clues?
I have a file at level 0 that loads the following code...

fscommand("fullscreen", true);
loadMovieNum("Entablature Cover.swf", 1);
loadMovieNum("Entablature Audio.swf", 10);
_level0._root.GoSSHome = "http://www.schenkelshultz.com";
stop();

Everything works great (loading and playing my audio) when I run the SWF file or a Windows EXE file. But when I run the HTML file it won't play the audio. All audio files are external and loaded as follows...

_root.s = new Sound();
_root.s.loadSound("\Audio\E02 P10-11 Quote.mp3", true);
_root.s.start(0, 1);

Any clues why the HTML document will not play the audio. Kinda stumped here and the project is due on Monday.

Thanks for any assistance.

Swf Plays Slower In Browser Then Swf Embedded In Html?
Can this be true?
i made a swf with some onEnterFrames and some setIntervals, and when i tested it from within flash (so just the flash player) my timing was perfect.
Then i tried to test it online in a browser (i typed the adress of the swf in the browser , so 'http://www. ..... .swf), and everything went way slower!
So i adjusted everything to make the timing right again.
Now i tested it by looking at the html file that contains the swf (so i typed 'http://www. ..... .html' in the browser) and then everything went way faster again.

I also noticed that swf's play WAY slower in Firefox then in IE????

Does anybody now how to work around this problem?

thanks

Plays Audio Stream In Flash 8, Does Not In HTML
Website: www.tinmandownloads.com
Stream: http://212.72.165.26:9386
The player on the page has two buttons: T and N
T plays a song stored as MP3 on another site, loads it as a stream. Works all the time
N connects to the stream above.
Works on "test movie", works on publish preview flash, does NOT work on publish preview htlm, does not work when published on site.
What am I missing?
Any help would be appreciated.

Flash Plays Slow When Published To Html
Hello..I've made a flash mx movie which plays at the right speed when I watch in the SWF format, but when I publish it to HTML it plays a lot slower...I have the settings at 30fps...i am publishing with best quality...Does anyone know why this is???? am I missing something

Can An Html Page Dictate What Frame A SWF Plays Or Goes To?
Hello,

I have wondered this for a long time, hopefully some of you clever lads & lasses will be able to help me.

I have a flash header for a web site, that appears on every page. What I would like, is that when it's on the home page, the header.swf shows the home page view, and when on the contact page it shows the contact page view etc.. different artwork different text but same header file.

IE the html page sends information to the swf file telling it which frame to go to and stop (or play as the case maybe)

Is this possible?

Or do I need to create a new header for everypage, which seems a bit of a wasteof resources.

Any help greatly appreciated

Thank you
Tilly

Video Plays Automatically In Html Even Though Play=false
I am experimenting with adding flash video to my website, and everything is cool except that the videos all start playing immediately, even though I've set the parameter "play" = "false".

http://www.hydepower.com is the website, go to 'what we do'

I don't have much experience with flash. Is there something I'm missing?

Thanks in advance.

Stumped - Why Movie Plays Slower In Html Page.
Hi,

I am building an online presentation that has a voice over. I am timing the text and images that are displayed with the various words in the voice over.

The problem is when I insert the swf in to an html page the movie runs slower than the voice over, so all the words are out of sink with the sound. If I view the movie in flash player it all works fine.

Does anybody know what is causing this and if it can be fixed?

Stumped - Why Movie Plays Slower In Html Page.
Hi,

I am building an online presentation that has a voice over. I am timing the text and images that are displayed with the various words in the voice over.

The problem is when I insert the swf in to an html page the movie runs slower than the voice over, so all the words are out of sink with the sound. If I view the movie in flash player it all works fine.

Does anybody know what is causing this and if it can be fixed?

Loading Html Page After Flash Movie Plays
I have a question please? I just recently started playing around in Flash and am using MX. I've created an swf and published the html, but how do I call another html page from the movie page?

Loading New HTML Page After Flash Animation Plays?
I want to have an HTML page with a Flash animation embedded on it. Is there a way to make it so that when the animation is done playing, the page automatically changes to another HTML page?

After Flash Intro Plays How Do I Auto Open Html Page?
I created a splash page in flash but the rest of my site is in html. Once the splash page is finished playing, I want my html index page to auto open. Can anyone help me out.

Can You Have HTML Link That When You Rollover Plays A Flash Movie In Page?
bascially as the title

I have 4 main links on webpage, when you rollover one I want a flashmovie to play, then on rolloff i want it to playout??

can this be done.... I dont want to use all flash on page due to this only happening on 2-3 pages + google cant see links as easily....

cheers for any help

MP3 Player On Website-Plays Approx. 5-10 Seconds Of Song Then Restarts And Plays Thru
Hello,

I have an MP3 player that I have tweaked and modified on a website of mine for a friend.
Everything works fine--but it seems it will load a song and start playing 5-10 seconds of the song then restarts the song and plays it in full. Anyone have any idea why this would be happening?
The MP3 player is at www.peeler.ca and will start as soon as you get inside the website.
Could someone have a look and listen and see if you have any ideas?
I imagine it is some redundant code or something small. It is very annoying....

Thanks in advance...

MP3 Player On Website-Plays Approx. 5-10 Seconds Of Song Then Restarts And Plays Thru
anyone have any ideas as to why my player would play like 5 seconds of a tune....then restart it and play thru completely?
I was told maybe interval coding....but not sure what I am looking for....nothing appears to jump out at me.

I will upload the .fla source code and maybe someone will see something I dont- Or you can check out what it is doing on the website www.peeler.ca the player will start on its own as soon as you get in the main page of the website.

Any help is appreciated...I am stumped!

Flash Splash Page Redirect To Html Page
I am very new to flash and please forgive my lack of knowledge.

So here is my question... How do I get this splash page to redirect to this HTML page as soon as the flash movie stops?

Also any preloader guidance or reading material would be greatly appreciated. I have no idea where to begin with the preloader.

Thanks in advance -

Flash Detection - Redirect To Html If No Flash Present - HELP PLEASE
Hello,

Can anyone help? I have to produce a flash website, but rather than use a detection kit that would direct them to the latest flash download for a plug-in, I need it to display the customers site in html instead.

The idea is to have two sites. One Flash, One html, and depending on users browsers/flash etc they would see the site that suits them.

I have thought of using an index page with the choice but thought it would be better for it to be auto.

Also not sure how this will work with search engines and page rankings etc?

Any suggestions or have anybody else done something similar?

[MX04] Rollover One Movie Clip Plays It, And Plays Another. How?
Alright, so I've got two movie clips.
I have one, called fade_mc, which will play on rollover, and then play in reverse on rollout.
Here's the code for that, placed on a separate layer in the MC.

PHP Code:



stop();

this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}

this.onRollOver = function(){
rewind = false;
play();
}

this.onRollOut = function(){
rewind = true;
}




What I would like to do is add to this so that, upon rollover of this MC, other movie clips will play in a similar fashion, and play backwards upon rollout.
In this case it is a MC called dark_mc that I would like to have play.


Posted this in the newbie section to no avail, please help!

Rollover Plays Frames 1-5 Of Movieclip, Rollout Plays 6-10
Need help on this, i'm sure it's the most basic thing, but haven't found my answer thru the help files, etc !

I have a button which on rollover i need to play one of my movie clip animations from frame 1-5 (i have a stop action on frame 5), and on rollout i need it to play the rest of the animation (6-10).

at this point, i simply dropped the animation onto the 'over' state of the button, but don 't know where to go from here, if not back to the drawing board.

the button is called 'button1' and the movie clip is 'animation'.

if it's better to do this with an external movie clip, i'd be cool with that, too.

thanks for the help

What Is THE Best Way To Detect Flash And Redirect To Flash Or Html ?
What do you think is THE best way to detect flash and redirect the user to Flash or Html format page.

ROLL_OVER Plays A MC And ON_CLICK Plays A MC?
I would like to have a series of buttons that onrollover play a MC on
stage and onclick play another MC on stage. I am currently using the
following code provided in another thread to make the movie clip play
onrollover:


function showGraphic(event:MouseEvent):void {
mSymbol.visible = true;
}

function hideGraphic(event:MouseEvent):void {
mSymbol.visible = false;
}

btn.addEventListener(MouseEvent.ROLL_OVER, showGraphic);

btn.addEventListener(MouseEvent.ROLL_OUT, hideGraphic);



I am also using the following code to hide the movie clip on load:

mSymbol.visible = false;


How can I modify this code to allow a user to also click on the button
and play a MC?

Thanks!!!!!

Clik Btn1,plays Some MC,Clik Btn2,hides & Plays MC
I'm trying to create a website with flash, and it has buttons and movie clips. What i want is, when i click on button1, it plays some movie clips, and when i click on button2, it hides the old movie clips and plays new movie clips.

i was trying variables and the "if" thing. but it wont work. hope you guys can help out. i've set the button1 with ' btn="album" ' and set some actions like ' if (btn="album) {play} ' but it wont work. please help me. maybe you guys can upload the flash file so i can understand easier.

(using flash 8)

Help - Flash Movie Plays Fast By Itself, But Plays Slow When Loaded Within Another Flash Movie
I have a flash website which I tried to update recently. In particular, I am updating my photo gallery which I load within another flash using loadMovie. Before updating it, everything worked fine. The update is not completed yet, but I notice that my photo gallery is playing extremely slow compared to before. I did add some new graphics such as fading in and stuff like that, but nothing serious. If I played the clip by itself, ie. typing in the actual photogallery.swf, it plays at full speed. When I run the photogallery through my regular website, meaning loading it through loadMovie, it plays very slow. The photogallery.swf is only 58k in size, so download speed shouldn't be the case. Nevertheless, I tried adding a IfFrameLoaded just in case but that didn't solve my problem. Anybody has any ideas why it might be playing slow when I'm using the loadmovie function and plays fine when I just reference it directly?

Left Click Plays NEXT Frame, Right Click Plays PREVIOUS Frame?
Dear all,

I'm writing a simple presentation in Flash MX for the Mac. How do I get the "left click" on the mouse to play NEXT frame, and teh "right click" to play the PREVIOUS frame?

My scripting isn't so good, so please make it simple!

Thanks a lot in advance

FPS Redirect
I have a movie which on some machines plays fast and on others slow. I know this is a flash FPS issue.

How can I test in my preloader if the pc running the movie can handle the faster more graphical version of the movie.

If it cannot, it then redirects to another version which is the slower less intence version.

Copyright © 2005-08 www.BigResource.com, All rights reserved