ActionScript 2.0 :: Command External SWF-file To Play Outside Of The Main Movieclip Via Button From Main?
Jan 17, 2012
I Have a flashmovie thats almost done and will soon hit the internet, but I want to add some animations into the website it�s two gears that I�m about to put at the bottom of the page and when a button releases in the main flashmovie the two bottom gears will turn a few frames and just stand still.These three movies are all separate (main movie, first gear and second gear).
It's a homepage designed in HTML and flash that has this "main flashmovie" in the middle of the screen, the size is about 1500(width)X800(height). And the gears is about 800wX200h placed at the left and right side bottom of the page. Dont worry the site is easy to apply to any screen resolution.I have been looking everywhere for any soul out there who suffering from the same problem but no success. Is it possible to script a button in the main movie to launch two separate movies in their own contents?
View 2 Replies
Similar Posts:
Jan 15, 2007
im trying to play a frame in an external .swf with a button from my main flash file.
View 5 Replies
Oct 11, 2009
I'm building a website, in which the 'Gallery Page' has a link to an external swf file, which is a scrolling clip of thumbnails.
What I want to do, is create each thumbnail into a button, which will then play a Movie Clip from a frame located in the Main swf file. (So basically, each thumbnail button is a small photo, will play that photo in a large scale as a movie)
eg.
thumbnail1_btn needs to go to main swf and play movieclip1.mc, frame 1
thumbnail2_btn nends to go to main swf and play movieclip1.mc, frame 2
View 2 Replies
Mar 7, 2009
I finally got to link an external swf movie playing in my main movie... this external mov. has a script that when u move the mouse, a series of panels slide from left to right... when i preview the external movie, it plays fine.. but when i insert it in the main movie, and preview it, the movie plays, but the panel stays there.... static... does not move...
also, when i load a movie, how can i unload it when another is pressed?
View 2 Replies
Jan 7, 2009
I am loading an external swf file/movieclip onto the main stage - it is a simple transition and once it has finished playing, I want to jump to a frame in the main stage.I've loaded the movieclip onto the stage, but don't know how to jump to another frame after it has played and stopped...what's needs to be added to this to goto a frame on the main stage........
on (release) {
loadMovie("black.swf", holder);
}
View 2 Replies
Oct 6, 2009
I have searched the archives here, but cant get a clean answer on this.I am loading an external SWF sucessfully, but I need to manipulate a MovieClip instance within that external SWF from the main file.
Code:
// SLIDE 1 IMAGE LOADING
var slide1Loader:Loader = new Loader();
var image1:URLRequest=new URLRequest("slides/1.swf");
slide1Loader.load(image1);
slide1.slideImage.addChild(slide1Loader);
That is the successful code to bring it in - but now I need to be able to use a movieclip within it called COPYMC
View 4 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
Jun 3, 2008
I have created a MovieClip "Main" that have a class file "Main.flv" attached to it. Inside this movieclip I have several buttons and movieclips.The problem I have is with the reference "this" inside the class file.When I write "this" I get a reference to my movieclip "Main". But when I write this.button I dont get a reference to my buttons inside the "Main" movieclip. The button have an instanse name "button".
View 3 Replies
Jan 7, 2010
I've created a movie clip with an animation on it's own timeline 30 frames long. When I press 'Enter' while inside the movieclip the animation plays ok.On the main timeline, I have one layer 30 frames long with the movieclip symbol placed on frame one. If I press 'Enter' the main timeline play head moves to frame 30 but the movieclip animation does not play on the stage. If I press 'Ctrl + Enter' or publish to swf then the animation plays ok but I can't setup the stage how I want it without the animation playing on the stage. Do I need to just change a viewing setting (tick box in preferences) or is this related to AS3 or new CS4 inner workings?
View 4 Replies
Sep 24, 2004
I have a background swf that has been coded so that it scales with the browser. I want to load the main swf file (main.swf) on top of this bg so that it is always centred on the page.
View 2 Replies
Sep 12, 2009
I can't seem to remove / unload the external swf files e.g when the carousel.swf (portfolio) is displayed and I press the about button the about content is overlapping the carousel (portfolio) . How can I remove / unload an external swf file from the main flash file and load a new swf file, while at the same time removing garbage collection from memory?
View 15 Replies
Apr 22, 2007
I am trying to get a nav button in one movie (main_nav.swf) to target a my main movie (index.swf) and load a sub nav movie (metals_subnav_infinite.swf) into it. The sub nav movie will do a similar task - loading a portfolio swf into main movie (index.swf). Here is the file breakdown of my working files:index.swf - main final movie which loads "main_nav_infinite3.swf" on startmain_nav_infinite3.swf - loads main nav "main_nav.swf" and scrolls it infinitely (infinite menu)main_nav.swf - main nav with buttons that trigger sub nav "metals_subnav_infinite.swf" to load into index.swfmetals_subnav_infinite.swf - loads sub nav "metals_subnav.swf" and scrolls it infinitelymetals_subnav.swf - sub nav with buttons that trigger "folio.swf" (have not created this file yet!) to load into "index.swf"The script I was focusing on is in main_nav.fla and it is:
metals_mc_bn.onRelease = function() {
reActivateMenu();
this.gotoAndStop(3);
[code].....
View 2 Replies
Dec 8, 2010
I have a flash website. I have a sound on and pause button on the main timeline and when you press the on button I want to play the mp3 from a server so my main file size doesnt get to big. Does anyone know the code for that? I guess I put the mp3 file on the server and then put in a code to the maintime that tells the server when I want to mp3 to begin playing and to pause.
View 1 Replies
Feb 14, 2008
how to sequentially play external SWFs loaded into the main timeline?
I have several SWF files with short videos embedded in them. I wish to load these external SWF files into my main timeline as follows:
User Presses Button -> Play Video Clip in External SWF#1 -> Once Video Clip in External SWF#1 has Finished -> Play Video Clip in External SWF#2.
I tried achieving this by adding: var endmovie:Boolean = true; to the end of each video clip inside the external SWFs (e.g. 1.swf) then cycling through an if statement in the main timeline to see when this condition was meet:
ActionScript In Main Timeline:
Code:
var mc_Loader = new MovieClipLoader();
mc_Loader.addListener(this);
[Code].....
How is the best way to go about achieving this? Am I on the right track? (By the way, using .FLV or one long external SWF file is not really an option due to long loading times...
View 3 Replies
Jul 28, 2010
I have a movieclip (a), inside another movieclip (b), on the main timeline. I want to click on movieclip (a) and make it go to and play a keyframe on the main timeline. I'm used to using buttons for actions, not movie clips, and I forget how to use the _root thingy.
View 3 Replies
Jun 1, 2009
I have a main fla, which has some buttons on the stage. When you click on a button an external swf loads(using loadMovie method) inside container_mc which is an empty movieclip.
On that specific external swf, I have created an empty movieclip called content_mc which also loads external swfs.
Is it possible to call the content_mc from the main fla? For example when clicking a button of the main fla, how can I point to content_mc which is part of the external swf?
View 3 Replies
Apr 21, 2008
I'm creating a flash 3d website for a company. The idea is that there is one overall swf file - this holds the navigation and design. Once the user clicks on a button, it goes to frame 10, I have included the following script to load a swf file
loadMovie("deepbartesting.swf", maincontent);
this.onEnterFrame=function(){
if(movieClipName._currentframe==5){
[Code]....
the preloader works, but instead of going to frame 2 of that swf file, it goes to frame 2 of the overall swf that holds the navigation. Does anyone know how to get around this so that it goes to frame 2 in the same swf file as the preloader?
View 1 Replies
Jan 28, 2011
I have been trying to create a play/pause button for the main timeline in my flash movie. Created a movie clip with 1st frame - a pause graphic, then on 2nd frame - play graphic, labelled the frames 'pause' and 'play' consecutively and put a stop action on the first frame of the movieclip. Then put the following code in the actions layer of the main timeline (and gave instance name of 'ppBtn' to the movieclip):
var pp:Boolean = true;
function ppState(event:MouseEvent) {
if(pp) {
stop();
event.target.gotoAndStop('pause');
[Code] ....
It works in stopping and starting the movie but the actual movieclip doesn't toggle between the pause and the play graphics (just stays on the 'pause' state - 1st frame).
View 5 Replies
Jul 18, 2006
All works fine untill I do something to the loaded swf.For example if I click a button on the loaded swf the button works but then when I click the button on the main movie to load the next and play the transition the transistion doesnt work.If I dont do anything to the loaded swf the transitions work.Is it something to do with the paths being changed when the loaded swf is acivated?
View 2 Replies
May 12, 2010
I am currently in the middle of making a "sniping" flash game. In the first level there are a series of moving targets which are also movie clips. Inside the movie clip there is a 7 frame animation of the target exploding. Inside that is a tween of the target moving up and down. And inside that there is a plain old button.
What I want to happen is when you click on the moving target it explodes and brings you to a new frame of the main timeline. (ex. Main Timeline frame #27) But I'm pretty sure it thinks I was to play the seven frame animation of it exploding and then go to frame 27 inside the movie clip, rather then frame 27 on the main timeline.
Here's what my AS looks like on the target (ActionScript 2.0 is what I'm using.)
on (press) {
play();
}
on (release){
gotoAndStop(27)}
So how do I make it explode and then take me to frame 27 on the main timeline?
View 3 Replies
Sep 8, 2011
I have a main fla file that loads an external swf into a holder mc, let's call it 'swfloaderholder', when a menu item clicked. Inside the external swf's fla I have a holder mc, let's call it, 'jpgloaderholder' that loads different jpegs. Is there a way to 'talk' to the 'jpgloaderholder' from witin the main fla file?
View 5 Replies
Apr 18, 2003
Can you have a/s in the external swf that runs a 'gotoAndplay' in the main movie? I want the swf to be halfway through when the picture on my main swf changes.~ Seretha(I can't load the picture in with the external swf because they have to be unloaded at different times and the picture HAS to load on a level under the external swf.)
View 14 Replies
Jan 16, 2004
i am extreemly new to flash / website design ( i made my first site 6 months ago ) i am very interested in making a good looking flash site. I have made a simple flash site before using dynamic text loading it form .txt documents. too bad the site is realy lame and i want to make a better one. here is the url to my site here This came about throught the useage of tutorials on this site. i am using flash MX version 6 now i am in the process of making a new site for my profile which will be totaly flash, using flash movies getting imported into a main site under a certain layer.here is how it is set up.
[Code]....
View 3 Replies
Mar 22, 2011
I have a main movie is coding AS2 which contains a movieClip called MC_header.And I have an external movie is coding with AS3.
My question is : Can i loadmovie the external movieclip in the main movie?
View 1 Replies
Oct 18, 2004
I have loaded an external swf into an empty movie clip in my main movie. Movie clip works fine when I test the external swf by itself. Once I test the main movie and load the ext. swf file the movie clip stops working.
This movie clip will act as a button. It is a small folder tab that will move up once clicked and move down when it is clicked again. Will changing the _root to _parent work?
AS for the movieclip:
onClipEvent (load) {
speed = _root.variSpeed;
}
[Code]....
View 2 Replies
Oct 18, 2004
I have loaded an external swf into an empty movie clip in my main movie. Movie clip works fine when I test the external swf by itself. Once I test the main movie and load the ext. swf file the movie clip stops working.
This movie clip will act as a button. It is a small folder tab that will move up once clicked and move down when it is clicked again. Will changing the _root to _parent work?
AS for the movieclip:
onClipEvent (load) {
speed = _root.variSpeed;
}
[Code]...
View 2 Replies
Dec 23, 2004
I want to load six seperate .swf's into the main movie while the main movie loads too. So in simpler words, i want to be able to load all of the swf's the same time i am loading the main swf.
View 2 Replies
Mar 11, 2010
I have a video in .flv format that I have converted into .swf. And this .swf file, I have added it in into my main flash file by using Loader. And now, I want to detect when this video will finish playing so that I can go to the next frame which is not looping the video again and again.
View 3 Replies
Jun 23, 2009
I have a movie clip that loads and when it is done playing it has a close button that unloads the movie clip... I want to add code to this button that moves the play head to frame 20 of my main timline using actionScript 3.0
View 10 Replies
Jan 20, 2011
i made a main(parent) page that loads an swf which has a button(a1) which on click i need it to move the timeline of the parent
i wrote this code to the external swf and tryed many commands such as Object(root).gotoAndStop(1);
a1.buttonMode = true;
a1.addEventListener (MouseEvent.MOUSE_UP,a1a);
function a1a(event:MouseEvent):void {
}
View 3 Replies