ActionScript 2.0 :: External SWF - Click A Button Into Another SWF, It Reloads The Current SWF "videos" Again?
Jan 17, 2009
I'm building a website & I'm using External Swf's, Everything works fine, but on some pages, e.g "Videos" loads fine, but when I try to click a button into another SWF, it reloads the current SWF "videos" again,, is it something in the preloader script or something,
View 3 Replies
Similar Posts:
Mar 16, 2010
how to get 4 FLV to seamlessly run from one to another without the end user having to click a button?
View 4 Replies
May 4, 2010
I have this menu that I am loading my swf files under a as. file and linked to a xml file. It loads perfectly my swf files when i click on the buttons, but when i keep clicking the buttons, it keeps loading it on top of each other...How can i unload the current swf file when i click on the other button.? under the as file i have the following to load my swf files:
private function customFunc(link):void { var request:URLRequest = new URLRequest(link); var loader:Loader = new Loader() loader.load(request) var swfContainer:MovieClip=new MovieClip ; this.addChild(swfContainer) swfContainer.addChild(loader);; trace(link);
}
and under the xml i have the following code :
<buttons> <button name="HOME" linkType="custom" link="ball.swf" /> <button name="DESIGN" linkType="custom" link="rec.swf" /></buttons>
View 3 Replies
Apr 9, 2009
I'm making a mp3 player using flash. when i test the movie it starts playing fine but when i click the next button the current track keeps playing while the next one starts. plus the stop button it's not working. here is the code.
[Code]...
View 1 Replies
May 10, 2006
Take a look at this site. [URL] You notice when you click on a button the current 'site' you are on dissapears befor the next one loads. How is this done? It's like the code tells flash first to 'close' the current page and then load the page you clicked on.
View 1 Replies
May 31, 2007
I have this code (AS 2.0 / FLASH 8) for loading swf from an array, and it works great except one little thing. The lodaded swfs reloads after one second and then it plays like normal. I have placed the start and stop attribute to ensure that the swf doesn't start before its fully loaded, but then this happens.
PHP Code:
function loadSwf(sceneSelect){his.loader.loadMovie(scenes[sceneSelect]);
[code]....
View 2 Replies
Mar 11, 2011
I'm using SWFObject to embed Flash Videos. Is there a way to get notified as soon as the user hits some specific time marks of the embedded video? I.e. get a notification from the Browsers Flash Plugin?
My goal is to change the page content at specific times of the embedded video.
View 2 Replies
Oct 2, 2011
Is there way to make function in Action Script, or any other language, to stop all currently played youtube videos in current Tab?
Here's example, There are 10 youtube video objects on the site, i wanna have one button, to simply make them stop playing.
So, is there way to do this, and if yes, could you give any advices/directions where i can learn the technique?
View 1 Replies
Dec 10, 2010
I have trailed through endless forums and tried adding all the various codes.I have a movie that is embedded within a php page. The movie starts with an animation and at the end, an image emerges with buttons. The image that emerges is actually an xml run slideshow but I don't want to complicate it with this bit of information if it is not relevant. So the film stops there and the buttons remain with a changing background.
I would like to make it skip to the end frame if it has been played before, if someone returns to the page, so that the user doesn't have to watch the entire movie to get to the buttons.I have tried adding this to the first scene however it is pretty temperamental:
var myCookie:SharedObject = SharedObject.getLocal("checkFirstVisit");
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
// Flash Cookie[code].....
View 1 Replies
Feb 19, 2010
How to load an External SWF on button click?[code]...
View 3 Replies
Apr 9, 2011
Using AS3.0, how do I load an external swf file when I click a button? Also, how can I get rid of that swf file when I click a different button on a menu?
View 1 Replies
Sep 8, 2011
I have an external swf that is loaded at frame 2 of the main timeline. The external swf has code that plays an flv, i've pasted the code below for the button that navigates the play head to the fram label 'frame2'. I want to know, how can i unload the external swf after each button click? Does the code for unloading have to go to in the button code or the main timeline?
anim_mc.stop();
anim_mc.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver);anim_mc.addEventListener(MouseEvent.MOUSE_OUT, onMouseOut);anim_mc.addEventListener(MouseEvent.CLICK, onClick);
anim_mc.buttonMode = true;anim_mc.mouseChildren = false;
[code]....
View 22 Replies
Oct 19, 2010
I can load an external SWF when I click a button. If I click the same button again the same swf file loads on top of it self. How can I fix it?
[Code]....
View 1 Replies
Apr 22, 2010
I am trying to simply load in an external swf when I click a button. I have created a button on the stage called it 'my_button' I can get the swf to load in automatically but I am not understanding the script for loading it in on a click.....would someone pleae explain what script I need to have this is the script I have for loading automatically
[Code]...
View 11 Replies
May 14, 2010
I am trying to close on as I am attempting to get this incorporated into my website. It came with the recommendation to try the CS5 today to see if this will meet the requirement at the moment.There is a desire to take custom SWF files (I think there is something called Swish files too?) from various sponsors for advertisement purposes and place them on my website.The implementation was straight-forward to make them work through the webserver.I tried a custom example of making a button that upon mouse click would open up a new webpage in CS5 which did work for me.My problem is since the SWF files are finalized, there is no way to put URL information into those files.After doing a lot of searching around today, it appears that the best way to redirect a user upon click of a video is to:
1) Open up a new Flash
2) Import the SWF video file into the project
3) Create a Invisible Button over top the SWF video so when the user clicks, they are redirected to a specific URL.
But for some reason, when I tried to overlay it with a sample SWF file I imported, there was all this flickering going on to where both were made transparent to one another on the screen not to mention the video wasn't even visible at all.My hope was that the SWF video could be seen clearly while the button remained invisbile to handle the click on the video.Is there someone on the forum that is able to guide me fairly quickly with a fast-path procedure so that I can try this?
View 16 Replies
Oct 2, 2010
My container (emptyMC) will load 4 external movies and loop as default when someone comes to the site.
Right now the code for the empty mc (emptyMC) is:
var loader:MovieClipLoader = new MovieClipLoader();this.createEmptyMovieClip("emptyMC",1);loader.loadClip("image1.jpg",emptyMC);
[Code]....
View 7 Replies
Dec 24, 2011
I need to click on a button that is on an external swf loaded in the main movie with a loader. I'm trying this but does not work:
// main movie
function openswf(queFoto:String)
{
imgLoader = new Loader();
[Code].....
View 1 Replies
Oct 14, 2009
First of all, right now I have 2 buttons, which are defined as buttons. Clicking on button1 loads swf1, clicking button2 unloads swf1 and loads swf2. Heres the basic code for that transition which is pasted ON the button...
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "F2";
container.loadMovie("F2.swf");
} else if (_root.currMovie != "F2") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "F2";
container.play();
}}}
This works like a charm, no problems. The problem I am having is that I need the button (which will eventually be a part of an animated drop down menu) to have more functionality. When I try to make a movieclip button, no variation of this code above will work to load the swf. I am totally lost. Here is the latest incarnation of the movie clip button code. This version is in the timeline, but I've tried variations directly on the movie clip as well
mc_HeightTest.onPress = HeightMovie
function HeightMovie(){
if (_root.currMovie == undefined) {
_root.currMovie = "F2";
container.loadMovie("F2.swf");
} else if (_root.currMovie != "F2") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "F2";
container.play();
}}}
Why the code pasted on the button will not work when its used in conjunction with a movie clip button?
View 2 Replies
Jun 26, 2009
I was getting in to transitioning from AS2 to AS3 a while back and had designed a page that had menu buttons that when clicked, loaded an external swf in to a container. Pretty simple accept for the fact that it was a while ago and my computer crashed so I'm having to redo this and learn it all over again. I have read in to flash on the subject but I am not to sure on the best way to go about this. I know there are a lot of people on here who make thing a lot more simple and structured than I do. I'm so used to putting the actionscript on the button and I'm a little stuck on the best way to combine the actionscript for the button and loading the swf. I would need to make a button load an external swf in to a container when clicked? I figure I just need one and then I can copy it to all the other menu buttons.
View 2 Replies
Feb 2, 2010
I have created buttons with this Actionscript. They load in the external swf's fine, but when I click on them again they load them in again, and again, and again... What do I need to write in the code so it loads in fresh everytime you click on the button? (or in other words, cleans up the load in page before it loads in new files).
[Code]...
View 1 Replies
Oct 6, 2004
i have a flash file with a scrollpane. into this scrollpane i have loaded an external swf. how would i be able to get the external swf to change between frames when you click on a button within in it? it works perfectly as a stadalone file but whenever i load it into the scrollpane it stops working edit: i just realised, this might eb the wrong forum to post this in, should it be posted in the "flash mx 2004" forum?
View 1 Replies
Dec 16, 2011
I have my main swf and another swf in "/tools/FrameJumper.swf" In my main swf I have a movieclip container on the stage "myContainer" and when I click a button it loads that "FrameJumper.swf" into that container. Now in that "FrameJumper.swf" I have a txt box and a button. here is the code on that button
[Code]...
View 1 Replies
Jul 22, 2011
i found a script that unloads my external swf inside a movieclip when i click a button on my main screen. this script causes the external flash inside my moviclip to close and unload when i click the close button, which is what i want!. the only pain in the butt is it preloads the external flash when you go the flash site and i dont want that. i only want the script to close the external swf. if anyone is curious book.swf is the swf in the movieclip i am trying to close.[code]
View 1 Replies
Jul 20, 2011
I have created a website which loads external swfs as pages onto the main stage on the click of a button. I am using Flash CS3 and Actionscript 3.0. Here is my code:
[Code]...
View 6 Replies
Feb 23, 2011
I am loading swfs into a movie clip. However, the contact button is not a loaded swf any longer. It's in the main flash page. This is what I want to do. All the buttons load the external swfs except when I click on the contact button that is in the main flash page. I need to get the other buttons to load after I click the contact flash button. Below is the code for the contact button and the one under for one of the other buttons.
[Code]....
View 3 Replies
May 12, 2010
Lets say i have a button on frame 1. And if you press it normal, you ll get to frame 2. But then if you click it on another way, you ll get to frame 3. How do i do that easy?! With another way i mean like shift click or ctrl click or is it an easier way?
View 3 Replies
May 8, 2009
load new menu with videos on click on video picture?
View 2 Replies
Jul 11, 2009
I have setup some nav buttons on my website. When I click one of the buttons, I want the current page to fade out, and I don't want the other page fading in until the first one is gone. This means I need a statement to go along with each button so that they all get rid of the current page, and don't fade in their respective pages until the first one is gone. Here is my current code:
buttons_mc.about_mc.addEventListener(MouseEvent.CL ICK,disappear);
buttons_mc.about_mc.buttonMode = true;
buttons_mc.about_mc.useHandCursor = true;[code]...
So, what do I need in order for this to all function correctly, once "home_mc" has reached its final frame?
View 5 Replies
Feb 3, 2010
I have 2 buttons on the stage whose each MouseEvent load a different external swf when clicked. In an attempt to get the current swf to fade out and new swf to fade in on button click, I vainly added a Tween to the function but to no avail.
As it is now, when the movie starts, the button 1 swf fades in, however, when button 2 is clicked, the new swf is loaded but the old swf does not fade.
Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;
var image:Loader = new Loader();
[Code]....
View 1 Replies
Nov 11, 2010
having trouble loading videos that exist already at a URL on the web. Its a pretty straightforward loader, so I'm not sure what the problem is... I'm getting the error:
Error #2044: Unhandled IOErrorEvent:. text=Error #2124: Loaded file is an unknown type.
Here's the code:
ActionScript Code:
var vidLoader:Loader = new Loader();
function loadVid(ref:String):void{
[Code]....
View 4 Replies