ActionScript 3.0 :: FLV Ends, On The Index Page, Then Goes To New Webpage?
Jun 8, 2009The FLV is the index page......when it ends, then the next web page comes up, with all the naviagation.
View 13 RepliesThe FLV is the index page......when it ends, then the next web page comes up, with all the naviagation.
View 13 Replieshave extensive programming experience in other languages.What I am trying to do should be fairly simple, but I am not able to accomplish it.When a flash video ends I want to redirect the user to a new webpage. This traget webpage will be different based on the query string that is passed.
Example:
Video is embedded on page: /video.php
if query string is: ?redirect_to=xyz[code]....
I think there are 2 options one using Javascript and the other using the load event listener.
I have a simple Flash animation which I have imported to a page in my DW doc. When the anim finishes, I would like the page to go to a different page in the same site. Without clicking. I assume I have to write some AS on the last frame of my FL file, correct?
Something like this:
var link:URLRequest = new URLRequest("page.html")
stage (or something?).addEventListener(what goes here.ENDMOVIEor something like that, endMovie);
function endMovie(event:WhatGoesHere):void {
navigateToURL(link);
I have a project for a site that sells fishing lures.I want to have an animated index page before moving on to the home page. My idea is to have a boat sitting on a pond fishing lines in the water, when a fish jumps out of the water, the water ripples, the next time you see the fish it's got a hook in it mouth and jumping out of the water.how do I go about it? How to I create the water rippling? I think with the fish I can do easily enough with it jumping on and off stage. Would I do the water with shape tweens?
View 1 Repliesi had to remove the flash built form and place an iframe over the top of the animation with an html form! (my reason was that the exported flash file always recognised keystrokes as that of an american keyboard and the @ sign came out as this "when you hover over the icons at the bottom which bring up information contained in a button, it falls behind the iframe.is there anyway in which i can make that particular button that contains a movieclip get the next highest z index to go above the iframe?FYI:-i have tried this on the button instance but does not work...
on (rollOver) {
this.getNextHighestDepth();
}
[code]....
on this page .i had to remove the flash built form and place an iframe over the top of the animation with an html form! (my reason was that the exported flash file always recognised keystrokes as that of an american keyboard and the @ sign came out as this hen you hover over the icons at the bottom which bring up information contained in a button, it falls behind the iframe.is there anyway in which i can make that particular button that contains a movieclip get the next highest z index to go above the iframe??FYI:-i have tried this on the button instance but does not work...
on (rollOver) {
this.getNextHighestDepth();
}
[code]......
Will a flash movie the size of of the logo area for example[url]...
slow site down when visitors first open site, my friends said no but the whole movie has to load as well correct[url]...
I am using swf files for headers on my website. All has worked well until tonight. If I clear my browsing history in IE then go to my website, the swf does not show on the index page (index page only thus far). If you refresh the browser the file loads fine. The only thing I have changed is I added some css for a navigation bar, which I would not think would effect the swf. You can look at the site at [URL]
View 12 Repliesi am trying to remove a .swf once you leave the index page. unsure of the method "contains" and how to remove the banner var or unload the var
the page variable code is
Code:
var sights:URLRequest=new URLRequest("sights.swf");
this defines the page loader
[Code].....
For a new site I'm implementing swfaddress to enable deeplinking. Everything works fine when I test the movie in flash. However when I upload the file on the web, the content_mc keeps returning to its first position (the content_mc is a movieclip containing five pages on the timeline). Also the title in the title bar does not change consistently. The strange thing is that it works fine while playing the swf file itself.
The as3 code is:
import SWFAddress;
import SWFAddressEvent;
var pageTextArray:Array=new Array("Click a Button",
"Button 1",
"button 2",
[Code] .....
I have a flash animation that plays on the index page.My client wants it to only play when someone first gets to their site. (each visit)So if they go on to the contact page and then back to the homepage, the flash movie will stay on frame one.
View 4 RepliesI have a flash item on my website and I have Flash Professional CS3 software. On the main index page I need to remove a printed name and replace it with a logo. Is it possible, I can find directions on how to do it?
View 12 RepliesI am currently building a website and what i need to do is to call external swfs in an empty MC on the index page regarding which buttons of the nav you clicked on.It works, very nicely. But then i need to be able to preload another swf on the index when i click on a thumbnail.
e.g: index load the "who.swf" first. On the who.swf there are 2 thumbnail and when click it must replace the "who.swf" with contact.swf. It works but the only problem is that i cant make the preloader of the index to preload the empty MC which load all the external swf.
Is it because i am using loadMovie and not loadCLip.
I'm making a contact page in as3 and I need some help. How do I send post data to a php page on this web page http://parallels.fm. Basically I have three dynamic text fields and a submit button. If I can send post data from that page to a php page that would be great.
View 1 RepliesI have an index page with several buttons on. When the buttons are clicked, it takes the user to a different point in the timeline and loads the appropriate swf in the UILOader I have on stage.Everything was working fine, but it has suddenly decided to stop working. Now if you click a button on the index page, it loads the relevant swf just fine, but when you go back to the index page and click a different button, the UILoader will not show the corresponding swf and just appear blank, although I know its there as I can hear the sound of the swf playing! I'm not sure if its simply something blocking the swf, but I don't even know what it is! I'm using addChild to add little panels to the screen when a button is pressed, but they are hardly big enough to cover the whole of the UILoader!
View 1 RepliesInside my /test folder/music_player/ have have a file called mini_player.swf. If I play it without embedding it anywhere, like this: [URL].. everything is OK. But when I add it into my index page: [URL].. the song doesn't start.
[Code]...
I'm creating a banner navigation with quick animation and I just want to PLAY the animation when user visit the page for a first time OR only in homepage (index page).Basically when visitor go to another pages, they won't see the "banner" animation over & over again. How to accomplish this ?
View 3 Replieshow to get an flash webpage to show the ones on the page in an list with there usernames.In simple words; how to make an list in adobe flash that shows the current usernames that is on the page where my list is.Now il explane what this is needed and gonna be used for.Ive readed tutorials on creating an chat page and now.ive gotten to the last part but have not done the part where the tutorial says how to make an input for the users (guest) to choice there own name.
View 9 RepliesI have a strange problem: When I type the absolute URL to my SWF file it works fine; however, only the background image appears when the SWF is embedded in the home page.
View 3 RepliesI seem to have an issue with a flash I have written. The person who I made it for is telling me that first time he loads the page with the Flash in it, it loads fine. However, at this point if he navigates to another portion of the site, then goes back to the Flash page, he says it freezes on the loading bar. Consistently everytime, but only on his work computer, not home computer or lap-top. I think it might be a caching issue in IE, but I am kind of stumped, anyone ever experience this?
View 9 RepliesI have four buttons in flash and only one of them work. I have attached the fla file and an index page in a zip file. It seems only one button will work at a time.
[Code]...
So, for sending to individual streams we have to reference the connected netStream we want to send to in some way like this:
sendStream.peerStreams[0].send("MyFunction",param1,param2);
and I have to determine which peer I'm sending to by their ID such as "peerID1234"
I know that you can check the peerID of the stream by doing:
sendStream.peerStreams[0]["farID"]
how can I make my send stream function know to use the array index where the peerID is?
so basically it could be like:
sendStream.peerStreams[where peerStreams[]["farID"] == peerID].send("MyFunction",param1,param2);
i'm trying to build a flash site and ran into a problem... i have a gallery page with a bunch of page numbers at the top. when you click on one, a movieclip loads of some images coming in.so the problem i'm having is that i made a little animation for when you roll the mouse over the page number (they scale up when the mouse is over, scale back when the cursor moves away)... what it's doing is when you roll over, it goes to a certain frame in the timeline and plays that animation.that's all working cool, but i need it to not do that once it's clicked on. so basically when you actually click on a page number, the over script should stop until you go to another page... here's the code i've written,
function over(event:MouseEvent):void {
this.gotoAndPlay(30);}
function out(event:MouseEvent):void {[code].....
I think it would be simplest to explain it like this:
[Code]...
Can I edit it if I buy the application?I would like to know how i can gain control of this file type.
View 1 Repliesi have an index page (html) that contains an swf and a hyperlink. the hyperlink is set to skip the intro swf and open the main html page. there is no problem there. what i have been trying to find is an event listener that waits till the swf is finished and then goes to the main.html. i found an example that does what i want, but instead of opening a url it uses trace and shows me a message.
import fl.video.VideoEvent;
function showMessage(e:Event):void {
trace("Finished");
[Code].....
i need when a flash video ends redirectme to an html i use Flash CS3 in AS3, i impot the video in a fla document and make a swf to put in html, i can se perfect the video in the web but i dont know how to redirect to and html.
View 5 RepliesI am creating a touch screen interactive for a museum. I have a AS2 button opening a AS3 swf file popup (no html). This AS3 file shows a movie.How can I get the pop-up to close down when the move has finished without the use of a button.I have a button option too.The movie is an FLVPlayback obviously linked fro an FLV file. (so only 1 frame is showing)This is the only thing I can't work out. It's the last thing on the project.
View 9 Replieshow can I detect when the transition ends?
ES this transition: import mx.transitions.*; import mx.transitions.easing.*; mx.transitions.TransitionManager.start(_root.SerieGranitogres.Superfi ci,{type:mx.transitions.Fade, direction:Transition.OUT, duration:0.5, easing:mx.transitions.easing.Strong.easeOut});
I need to add several copies of a movieclip at random times. When each clip plays out I need it to be removed. What I'm trying is the following:
var list:Array = []
addEventListener(Event.ENTER_FRAME,
function(e:Event){[code]............
The first script is working but the last one is not. How should a movie clip instance remove itself?I'm used to AS2 where it just requires this.removeMovieClip(). I've tried to search for an equivalent in AS3 but can't find