ActionScript 2.0 :: MC Buttons Launching External SWFs With Transitions?
Sep 30, 2006
I can handle animation but am somehow ignorant about ActionScript as my knowledge of Flash goes back to the Tell target actions...I've been playing around with 2 tutorials I've found on Kirupa (see links below) in order to build a text based navigation:
My first level is made of MC buttons. All working great when adding the script indicated in the first tutorial. From there, I would like to be able to load external SWFs when clicking on one of those first level buttons and in order to do so I added the script from the second tutorial (Transitions Between External SWFs)
Doing so, I was told I could only add that script on button symbols which is unfortunately i not an option at this point. how can I launch external SWFs that would allow transitions from those MC symbols?
[code]....
View 1 Replies
Similar Posts:
Aug 13, 2005
I have just completed the "Transitions Between External SWFs" tutorial and I'm now I'm at the stage of altering a few things in there to suit my needs. But I've run into a problem... For my buttons, instead of "Button" symbols, I want to use "Movie Clip" symbols - reason being is that I've got some specially animated Movie Clip buttons that I wish to use.
To get this... err "working"... with my Movie Clip buttons I have needed to use "_root." when referencing to the container Movie Clip. Now that works to an extent, but for some reason each button plays only "red.swf" even when there is no mention of it in the ActionScript and is instructed to play "blue" for example ("red.swf" happens to be the first appearing movie). Normal method with Button - works fine!
Code:
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "red";
container.loadMovie("
[Code] .....
View 3 Replies
Sep 2, 2006
[URL]regarding this tutorial I started my site [URL] to get some trasition effects but im getting somewhat different since the external SWFs take time to load. isn't it better to create "intro and outro" on the same time line instead of loading external SWFs bcos once the movie loaded as a whole will lead to smooth and contineous transitions.
View 1 Replies
Mar 5, 2009
I have just completed the "Transitions Between External SWFs" tutorial and I'm now I'm at the stage of altering a few things in there to suit my needs. But I've run into a problem...For my buttons, intead of "Button" symbols, I want to use "Movie Clip" symbols - reason being is that I've got some specially animated Movie Clip buttons that I wish to use.To get this... err "working"... with my Movie Clip buttons I have needed to use "_root." when referencing to the container Movie Clip. Now that works to an extent, but for some reason each button plays only "red.swf" even when there is no mention of it in the ActionScript and is instructed to play "blue" for example ("red.swf" happens to be the first appearing movie).Normal method with Button - works fine!
Code:
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "red";
container.loadMovie("
[code]....
View 2 Replies
Aug 15, 2005
I recently created a site using the "Transitions between External SWFs" tutorial for Flash MX 2004. I use this to load the sections of my site into the main movie file. Each section is an External SWF file. When a viewer clicks on a navigation button, the specific external swf move will load and play. Currently, a viewer would need to click on another navigation option to close the current external swf file. I would like to add a close button to each of the external swfs so that a view has the option to close the window without clicking on a naviagtion link.
View 12 Replies
Sep 2, 2010
I would like to play out a movie that has been loaded (if it has been loaded) when another button is clicked.
It is my understanding, I can do this by adding AS to the SWF file at the point I want to play it out (labeled "init_out") and variables to my base file.
Summary:
btn_GD
btn_IL
btn_CN
btn_CN plays a transitional animation ("init_in") which changes the base of the scene.
Once btn_GD or btn_IL has been clicked btn_CN needs to play ("init_out") in an external swf to return the scene so they can play their movies, which are also external.
My second problem is (on a different button), I have a loaded Movie Clip which unloads itself, but once it is unloaded I would like it to show another (internal) and/or a static page.
This is a transitional animation which plays and it does not go to another scene, but shows a different "flat" of the file which contains buttons returning one back to the main scene.
Though it's exeternal I'm not opposed to having that movieclip remain up as long as I'd be able to have it click and return back to the main menu section.
Summary: btn_CT needs to both load an external SWF, unload said SWF, and arrive at mc_CT.
View 7 Replies
Jan 30, 2009
I read the tutorial about transitions between external swfs and started implementing it! So as a good and ordonate guy that I am, I put the index.html in the root, created a style folder for the style and a folder for the swfs. I was struggling about one hour to find out why it wouldn't work, to find out that if I move the html inside with the swfs, being in the same directory, it worked fine!
View 3 Replies
Aug 14, 2005
I followed your tutorial on transitions. And its working really great. But...what if I want to link the content in the transition? I want to link it to an other swf. I tried to change the path but It's not working because im a beginner.
View 6 Replies
Apr 21, 2007
I am using this scripting for my website. [URL] I have used it on other websites successfully, but the website I'm working on now is a little more complicated and the scripting is not working correctly.
Before I had simple buttons on the root level, but now I have complex rollover buttons in side movieclips playing on the root level. When I go to test the site in Flash 8, it works fine, but then when i publish the files and open it in a browser, it is not loading the external swfs into the main swf. All the files are in the same folder as the main swf and I am not using any other folders. attaching and transitioning of external swfs?
View 5 Replies
Feb 2, 2009
I am trying to convert the source in this tutorial from AS1 to AS3 [URL] i think i am doing good but i am missing something.the AS3 code is:
[AS]
//Load Sec1
var requestDefSec1:URLRequest = new URLRequest("section1.swf");
var loadDefSec:Loader = new Loader();
loadDefSec.load(requestDefSec1);
[code]....
View 2 Replies
Dec 30, 2004
What if at the midframe of section1.swf it loads scene 2 of section1.swf.....Now if the section2 button is pressed, how can it go back to scene1 of section1.swf to finish the outro transition?
View 3 Replies
May 20, 2008
i need insert the main movie, into a mc, but the code is no functional, why? how fixed the code?
View 1 Replies
Oct 26, 2009
I need help getting my loaded swf files to play the "out" transition before the next movie loads. I have a main swf with 5 buttons (movie clips) that load external swf onto the stage.[code]The loaded swf has a stop() an intro animation and on the last frame have.dispatchEvent(new Event("removeMe", true));
View 6 Replies
Aug 25, 2011
what I want and currently have is a main swf that loads in assets based on buttons pressed. I have 3 external SWFs (for the sake of this example, lets call the initial loaded swf "indexExt.swf", file two" f02.swf" and file three, " f03.swf") and in each of them,there's one layer that goes from frame 1 to frame 10. On frame 1, there's an "intro" label, on frame 5, an "outro" label, and on frame 10, an " end" label.
indexExt.swf is loaded on initial load of the main swf. as for my buttons, I gave my buttons on the main swf stage, instance names that are the same name as the external swfs so that with this line event.target.name + ".swf" I can call em in without having to re-write code for every button etc..
[Code]....
View 1 Replies
Aug 22, 2004
I'm using Flash MX 2004. I have a main file called Main_En.swf, which contains the empty movie clip container (_EN is for English, because I'll have multiple languages eventually). Upon loading, Main_En.swf calls Welcome_EN.swf into the container. So far, no problems.
Main_EN.swf contains a movie clip symbol named "navigation," inside which are the buttons that will call the other swfs (Links_EN.swf, Stories_EN.swf, etc.). That's the rub: The swfs won't load. I thought maybe it was because of the individual swf's pre-loader code (also made from one of Kirupa.com's tutorial) but I tried without it and the movies still failed to load.
Here is the Action Script associated with one of the buttons.
//Loads movie
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "Links_EN";
container.loadMovie("Links_EN.swf");
[Code] ....
This code is at the midframe:
stop();
And this code is on the last frame:
_root.container.loadMovie(_root.currMovie+".swf")
View 7 Replies
Jun 12, 2005
i've used an empty moveclip and loaded external swfs into it using buttons. Each of the swfs has an intro and outro and uses the transition action script from the tutorial on this website. When I navigate through the site on my computer the transitions work fine, but when I go to the actual uploaded site none of the movies load up. All of the swfs are in the same folder on the site so surely I only need the "the_name.swf" as the path.
View 1 Replies
Sep 30, 2005
i followed the tutorial by Voetsjoeba about Transitions between external swfs. i applied it to my own .fla and am having fair success. the problem i'm having is that the buttons work and transition correctly, but every button reloads the same external .swf. i can't find whats keeping each button from loading its external file. if i switch the external file that loads first. then all buttons load that clip.
my main stage has an embedded movie clip called mc_opening. the container is on frame 25 until the end. an animation runs until frame 64 where this code is placed.
[Code]...
View 1 Replies
Mar 24, 2006
After following the Transitions Between External SWFs Tutorial Does anyone know how I can make this button work if it is not in the main swf? I have loaded a swf in automatically and want to make a button from within the loaded swf to load another swf. Here is the button code...
[Code]...
View 1 Replies
Oct 12, 2006
I'm trying to get the script where you can make transitions between external .SWF's. Anyway, the Container movie is on the main timeline, however the button is inside of a movie that's on the main timeline. I read this on the site - "If your buttons are not located on the main timeline, you will have to change the path to the container movieclip. In this example the buttons are located on the main timeline, therefore 'container' targets the container movieclip correctly. Though, if they are not on the main timeline, you must change container to the appropriate path." How do I change the path to work?
View 1 Replies
Aug 4, 2008
I would like the buttons to be in the same external SWF so I can animate them as well, the problem is I can't seem to get the actionscript to work, here's what mine looks like:
PHP Code:
container.button01.onPress = function() {
if (_root.currMovie == undefined) {
_root.currMovie = "home";
_root.container.loadMovie("home.swf");
} else if (_root.currMovie != "home") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "home";
container.play();
}}}
And I've also tried using
PHP Code:
this._lockroot = true;
In the external SWFs but that didn't work either.
View 3 Replies
Jul 29, 2004
I read the tutorial about timelime transitions between external swfs and it works perfectly on in flash but when loaded on the web it doesnt work at all.
Was wondering why this is.
I embedded the button code from the tutorial in my script for the xml menu I am using and it works in flash flawlessly but when I push it to the web on my server it doesnt work at all.
View 8 Replies
Nov 3, 2009
I'm trying to load & unload external SWFs with transitions in Actionscript 3.I was able to do this in AS2 on the timeline but can't figure it out in AS3. Or if I can do it with straight Actionscript.[url]...
View 0 Replies
Sep 12, 2005
I am having difficulty making the buttons of the 3rd level load the final set of external swfs and keep doing the smooth transitions they are supposed to, with midframes and outros. Somehow I am messing up the paths. I have several buttons in each level and they all work fine except the very last level.Below are a characteristic string of button AS for each level:
Main timeline:
on (release) {
if (_level0.currMovie == undefined) {
_level0.currMovie = "firm";
menu.loadMovie("firm.swf");
[code]....
All buttons inside assoc.swf are not working. I played around with the paths, but obviously I am missing something very simple and very ellusive about pathing. If I change the path in firm.swf so that _root is _lever0, then THOSE buttons stop working.
View 3 Replies
May 15, 2008
ANYONE KNOW HOW TO Preloader and Transition for Dynamic Files AND Transitions Between External SWFs MIX TOGHETER...
View 1 Replies
Sep 11, 2009
I have a main fla file which loads an external swf into an empty movieclip on the main timeline which works fine but I want a button in the external swf to load another external swf into another empty movie clip on the main timeline.eg. start.swf loads UKEIAMap.swf into (empty movie clip within start.swf) MapLoader_mc then a button havant_b within UKEIAMap.swf needs to load HavantProjectSheet.swf into (empty movie clip within start.swf) ProjectSheetLoader_mc without unloading UKEIAMap.swf
View 3 Replies
Jul 19, 2005
I have made a complex button with the help of warhero's tutorial. The onRelease event of this script opens a URL when clicked. What I need is to have the onRelease event of this script load an external movie into a container mc based on Voetsjoeba's Transitions tute.I thought I'd try combining the if/else statement from Voetsjoeba into the complex button script, but this does not work. Can someone tell me how to combine these scripts?
Code:
stop();
this.onEnterFrame = function(){ [code].....
View 12 Replies
Jan 11, 2004
I have a problem with buttons and transitions.I have two buttons onstage (they're inside a movie clip) inside the movie, on the button one I have the following code:
on (release) {
if (_root.externaltwo._currentframe == 7) {
_root.externaltwo.gotoAndPlay(8);[code]....
I have similar code on button two and this does indeed make the buttons move into place as required. My problem is this, I need to load in external swf files into an empty movie clip on the main stage called container. These External SWF files have transitions and this is where my problem is. If I place a normal button on the stage it works but not if the button is inside a movie clip and has actions applied as above. The code next is what I have believe should also be placed on the button to make swf transition one load in.
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "externalone";[code].....
Obviously a similar code would be placed on button two so the transitions could take place.I am uploading my file so you can see exactly what I am talking about. Also in this file will be a folder containg a version that works but without the buttons moving up and down which is the effect I wish to have
View 4 Replies
Jul 26, 2011
I have a main flash movie, that launches an external swf. Now this works fine, but this external SWF, launches more external mini SWFs. What happens is that after going opening and closing these mini swfs, is that eventually the main swf, will start to to run beneath the the 1st external swf. i.e. I have a small animation that is suppose to stop and remain invisible until the secondary swf is closed.
But this is not the case, and very randomly this will start to happen, and it makes everything look like crap. At first I thought it was the fonts that I was using through out the swfs, because there were some design changes, but after updating the SWFs with the new embedded font I am still running into this issue.
Look at it like this.
main swf---->2nd swf--->numerous 3rd swfs
View 4 Replies
Jan 11, 2004
I have a problem with buttons and transitions and it is similar to a problem I had a couple of days ago that I posted and that was sorted out. I have two buttons onstage (they're inside a movie clip) inside the movie, on the button one I have the following
[Code]....
I have similar code on button two and this does indeed make the buttons move into place as required. My problem is this, I need to load in external swf files into an empty movie clip on the main stage called container. These External SWF files have transitions and this is where my problem is. If I place a normal button on the stage it works but not if the button is inside a movie clip and has actions applied as above. The code next is what I have believe should also be placed on the button to make swf transition one load in.
[Code]....
View 4 Replies
Aug 17, 2009
Flash CS4 Actionscript 2.0 internal training project Main movie is a single frame project, containing just the interface. This includes a menu listing 80+ individual "chapters" for the training series. Each "chapter" that loads is its own project/swf of varying lengths. Once the main interface loads, it should automatically begin to play the chapters sequentially without the user selecting anything from the menu. When one chapter finishes, the next should load. If the user DOES select a chapter in the menu, it should load that SWF, and continue auto-playing from that selection forward.
- Each chapter swf has a built-in play/rewind/ff bar, various movie clips with animations, dialogue audio track and a fairly lengthy embedded FLV movie, and therefore a preloader before each chapter is mandatory.What I have so far works, but it's embarrassingly crafted my lack of AS skills:- First frame of main interface movie (let's call this main.fla) contains the following code:
var slideName = "modules/00.swf";
var loader:MovieClipLoader = new MovieClipLoader();
loader.addListener(this);
[code]....
View 0 Replies