ActionScript 2.0 :: Loading External SWFs Controlled By MovieClip Buttons?

Jun 4, 2006

I basically made movie clip buttons to navigate through my site, has sounds and all...now all i need those buttons to do is to call out a .swf file from a certain directory. I know how to do this with the traditional button, but not with a movie clip button since it requires a function. This is what I have tried and failed with so far:

// PROFILE SECTION BUTTON //
this.profile_mc.onRollOver = function(){
profile_mc.gotoAndPlay("_over");

[code]....

View 3 Replies


Similar Posts:


ActionScript 2.0 :: CS3 Buttons In Loaded Swfs Loading Other External Swfs Into The Main Timeline?

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

ActionScript 3.0 :: Loading SWFs With XML Controlled By Button

Jan 18, 2011

I'm trying to create a AS3 file that will import an xml file, that has an file path node and an image name node. I want and swf imported to be displayed on my first page, then have previous and next buttons that will load the next node/slide with another swf. I'm thinking it should be simple enough. How to pull the path name out og the xml file and put in the next button function. I'm guessing I should pull all of the file locations into an array, but I'm struggling to grasp how to do this. XML file would be something like this....but eventually much larger.

<cbt>
<lesson>Lesson 1
<page title="Lesson 1 Slide number 1" slideNum="slide01_01.swf" />
<page title="Lesson 1 Slide number 2" slideNum="slide01_02.swf" />
<page title="Lesson 1 Slide number 3" slideNum="slide01_03.swf" />
<page title="Lesson 1 Slide number 4" slideNum="slide01_04.swf" />
<page title="Lesson 1 Slide number 5" slideNum="slide01_05.swf" />
[Code] ......

View 1 Replies

ActionScript 2.0 :: Loading External SWFs Without Buttons?

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

ActionScript 2.0 :: Loading External Swfs With Buttons (that Are Not On Main Timeline)

Aug 7, 2008

I just don't know how to target it. I'm trying to load an external swf, when releasing a button. The problem is the button is not on the main timeline, but instead nested in a movie clip. I just don't know how to target that button. I tried loading the swf with a button on my main timeline and it worked, so I know the problem is not with the movie clip loader class or the actual swf itself. I actually learned this from a note midway down the page in one of your tutorials..... [URL] how can i target that button that is nested in that movie clip?

[Code]...

View 2 Replies

ActionScript 3.0 :: Loading And Unloading External Swfs When User Clicks Buttons?

Jan 9, 2012

I am working on a few websites at the moment, one of the being my online portfolio, as well as my website for a sleep product I am trying to sell. I have very little experience with AS3, last time I created a website AS2 was used. I've tried a few online tutorials, but nothing gets the job done, there is always some error..I have a index.swf which loads the default home.swf.There is also an about.swf, contact.swf, order.swf, and All I need is for the external swf to pull up when the corresponding button is clicked, and when the next button is clicked, for the current swf to unload and the new swf to load.  This was so simple with AS2, one would think things might be as simple if not easier.

View 9 Replies

ActionScript 3.0 :: Flash Loading Different External Swfs To The Same Movieclip?

May 16, 2010

Here's what i'm trying to do:

I have 3 different movieclips that acts as buttons. These 3 buttons are called mc_projekt1, mc_projekt2 and mc_projekt3.

When one of the buttons are clicked, they will load an external swf.

Here's my code for doing this with the first button (mc_projekt1):

Code:
// Projekt1
content.mc_projekt1.addEventListener(MouseEvent.CLICK, projekt1);
function projekt1(e:Event):void{

[Code].....

This works fine and all, but what I'm doing right now is repeating the code above for each of the 3 buttons (mc_projekt1, mc_projekt2, mc_projekt3) and just simply add a "2" after each function instead. So for mc_projekt2, it's imageLoader2 and loadImage2 etc. This also works fine, but I know I'll be adding more buttons over time and in the end I'll end up with a lot of the same code that way.

So I was wondering if by adding mc_projekt1, mc_projekt2 and mc_projekt3 and any future "mc_projekt" to an array this could all be done much simpler, I'm just not sure what to do ...

View 7 Replies

ActionScript 2.0 :: Loading External SWF - FPS Controlled Or Independent?

Feb 5, 2004

It may be easier to actually do it but I'm not going to. Is the frame rate of loaded movies controlled by the main swf or are the fps all independent?

View 7 Replies

ActionScript 3.0 :: Loading Buttons In MovieClip As External SWF File

Jun 27, 2009

I am working on a website, its a project, I built custom buttons and used there own AS3 to make them play on hover. There is one problem thou, in my main scene or timeline I created this function:

about_but.addEventListener(MouseEvent.CLICK, function(){
var aboutURL:URLRequest = new URLRequest("about.swf");
})
contact_but.addEventListener(MouseEvent.CLICK, function(){
var contactURL:URLRequest = new URLRequest("contact.swf");
})
cat_but.addEventListener(MouseEvent.CLICK, function(){
var galleryURL:URLRequest = new URLRequest("catalogue.swf");
})
port_but.addEventListener(MouseEvent.CLICK, function(){
var portURL:URLRequest = new URLRequest("port.swf");
})

Ok but it had the navigatetoURL function but I took it out. Reason is because I want these buttons to load in a movieclip (mc_loader) as external swf files. I am not sure as is to linking these buttons to the loader movieclip.

View 9 Replies

ActionScript 3.0 :: Loading External Swf Files With Buttons From Inside A Movieclip?

Mar 3, 2010

In my main .swf I have labels on the timeline, navs for those btns are on the first frame of the AS layer and each button sends the playhead to a different frame. On one frame called fr1 there is an mc called mc_1 that appears on stage when the playhead stops there. Inside mc_1 are a set of navigation buttons that need to call external .swfs.
 
Do I add event listeners on the last frame of mc_1 for each button? how do I call the loaders for the swfs on the buttons since the swfs will load on the main timeline NOT the mc_1 timeline?
 
So label on main timeline called fr1 will load external1 swf , on fr10 external 2.swf will load and so on.

View 4 Replies

ActionScript 3.0 :: Loading External SWFs From Another External Swf Into The Main SWF Container?

May 4, 2011

I have created a main "site.swf" file that loads a "default.swf" file into a container after a preloader. On this default.swf file I have buttons that needs to load new external SWF files in its place in the container. All of the external SWFs contain buttons and navigations that will also call up other external SWFs into this container. So, I would like to know how to program each button (some are movieclips as buttons) to unload itself and load the respective SWF into the container (eg. AboutUsButton to call up aboutus.swf into the container). I do not have a main navigation on the site.swf file bacause the navigation changes on each SWF that needs to be loaded into the container.

View 2 Replies

ActionScript 3.0 :: Stop .mp3 And .flv In External Swfs When Loading A New External Swf?

Apr 10, 2009

Specifically, I am building a flash page that loads external swf files and inside some of the external swf  files, I would like to add audio and flash video (flv) streaming from the Flaash Media Server. In some of the external swf files, (using a FLVPlayback component) when you press a button on the main timeline to unload the current playing swf the audio/video continues to play after loading the new external swf file.So I believe that my approach is all wrong and I should be working to dynamically load the .mp3 and.flvs in the external swf ... my questiion is how to unload those assets when loading the new external swf

View 1 Replies

ActionScript 2.0 :: Loading Transitions Between Buttons Of Ext. Swfs?

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

ActionScript 2.0 :: Transitions Between External SWFs Using MCs Instead Of Buttons

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

ActionScript 2.0 :: CS3 Dynamically Loading Sequential Swfs W/o Using Buttons?

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" is its own project/swf. Once the main interface loads, it should 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 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:- First frame of main movie (let's call this main.fla) contains the following code (most of this code was taken from an online tutorial):

var slideName = "modules/intro.swf";
var loader:MovieClipLoader = new MovieClipLoader();
loader.addListener(this);

[code].....

View 1 Replies

Actionscript 3.0 :: Control External Swf's MCs From Main Swfs Buttons?

Jul 8, 2010

Is it possible to control a movie clip in an externally loaded swf from a button in your main swf? I have 4 buttons in my main swf. In the externally loaded swf there are 4 movie clips all with their alha set to 0. What i'm trying to do is when the user clicks button 1, movie clip 1 one the external swf changes its alpha to 1. Then if you press button 2, movie clip 1's alpha returns to 0 and movie clip to 2's alpha changes to 1.

The, buttons need to be in the main swf as there are over 20 externally loaded swf all with 4 movie clips and I cant make those four buttons in each swf and also, the 4 buttons are intergrated into the graphics on the moan swf.

View 7 Replies

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

ActionScript 3.0 :: Loading External Swfs Into Mc?

Jan 12, 2010

how can i load 3 external swfs into one movieclip at the moment i can only get it to load one or it may be loading each clip over the previous one.

View 3 Replies

ActionScript 2.0 :: Possible To Loading External SWFs?

Apr 27, 2006

I'm doing the tutorial for "transitions between external SWFs", but I'm having a problem because in the tutorial all of the buttons are on the main timeline, but in my site the buttons are on a different timeline. This is the actionscript that the tutorial tells me to use....

on (release) { if (_root.currMovie == undefined) { _root.currMovie = "work"; container.loadMovie("work.swf"); } else if (_root.currMovie != "work") { if (container._currentframe >= container.midframe) { _root.currMovie = "work";

[code].....

View 5 Replies

ActionScript 3.0 :: Loading External Swfs?

Feb 22, 2009

iv made a flash site using as3 using the actionscript on thefirst frame, this by itself works fine.iv also used an online tutorial tocreate a dynamicslideshow/photo gallery which again works fine, but this time usingan external .as file.When i try to load the external slideshow/gallery into amovieclip in the site it dosnt work and i get this error:TypeError: Error #1009: Cannot access a property or method ofa null object reference.im pretty sure its because the code used in the main flashfile is on the timeline and the code in the external file to beloaded in is in an external as file.

the code im using to load the external flash file is:
var toload =new Loader();
toload.load(new URLRequest("newfile.swf"));

[code]....

View 2 Replies

ActionScript 2.0 :: Loading External Swfs?

Feb 20, 2010

I am trying to figure out where is the problem with loading external swfs on a site that i uilt..actionscript 2. The site has an intro slide show and buttons underneath. It plays everything But when you go to "works" and click on a gallery, it takes you to that frame and although it looks like it starts loading it bubs you back to the beginning.

[Code]...

View 1 Replies

ActionScript 3.0 :: Created 5 Buttons To Load 5 Different External Swfs Into Webpage

Jan 23, 2010

I've created 5 buttons to load 5 different external swfs into my webpage. I use the following script. How do I unload it when the next button is been clicked. [code]

View 3 Replies

ActionScript 2.0 :: Loading Var From Javascript To External Swfs?

Mar 31, 2009

I am loading one variable from javascript to one main swf file which does have 2 more links to other 2 external swf files, i want to use the same var to be transfered to those 2 files when they are loaded

This is teh javascript in the header:

function CountryCode(){
document.getElementById('Spotlight_en_gb').SetVari able("ccode", "SU");
}

This script is triggered onLoad when the page loads.

One dynamic text box var name is ccode and instance name countrychk is taking the values and action accordingly, other two files need the same var to use but on LoadMovie they dont get teh value.

Here are the links:
1.

on (release) {
unloadMovie(1);
loadMovie("Movies.swf", 1);

[Code]....

View 5 Replies

ActionScript 3.0 :: Loading And Unloading External SWFs?

May 29, 2009

I have a question regarding the swapping out of swf files in Flash CS3 / AS3.I start my project with a �logo� swf, which has no interactivity.At the last frame, the following code is used to load another swf from the local folder:

-------------------------------------------
//Stop current swf and stop its sound
stop();
SoundMixer.stopAll();

[code]...

How do I remove and/or unload the previous swf when a new one is loaded? and remove that previous swf from memory? Can I give the current swf access to the previous one, then run a �remove� or �unload� function on it?

View 3 Replies

ActionScript 3.0 :: Loading External SWFs With Params From Within A SWF?

Jun 2, 2009

How would I load a .swf from within a .swf with parameters?First, I need to know how to pass the parameters, and second I need to know how the other .swf is going to read those parameters...

View 1 Replies

ActionScript 2.0 :: CS3 Loading External Swfs In The Background?

Aug 2, 2009

As you can see, I have an external swf file that loads into a container clip. When a user clicks on the next project button, or any other category, another image gallery starts loading. My question is, is there anyway to load the other galleries in the background while users browse through the loaded ones?

View 4 Replies

ActionScript 3.0 :: Loading Multiple External SWFs At Once?

Sep 23, 2009

I have a game which has various cutscenes. Each cutscene is split up into 3 or 4 seperate swf movie files which can be played (and replayed) by the user.

My question is, I've seen many tutorials on how to load external swfs but how do I load several movie clips into memory, and then clean everything up once the user has finished viewing them all?

View 2 Replies

ActionScript 2.0 :: CS3 : Loading External Swfs In The Background?

Oct 18, 2009

[URL]I have an external swf file that loads into a container clip. When a user clicks on the next project button, or any other category, another image gallery starts loading. My question is, is there anyway to load the other galleries in the background while users browse through the loaded ones? Is having an off-stage invisible movieclip with an loadMovie function the best way to do this, or is there a better method?

View 3 Replies

ActionScript 3.0 :: Loading And Unloading External Swfs

Feb 17, 2011

After years of putting it off, I've finally begun the move to AS3.The frustration I've encountered is evidently shared by a lot of other designer/developers. Knowing that the future is inevitable, I have bitten the bullet and forged ahead. There has been one thing, however, that has just been a real quandry and has cost me hours of banging my head against the wall.That would be getting an externally loaded swf to (really) unload in an AS3 file.Before I even begin to post code, let me just say that I've tried a lot of things read in books, posts from this and other forums, and trial and error to no real avail. In my research I've come across many others who are experiencing the same problem and even one reference that suggests you not use AS3.For a project that uses multiple loads and unloads that's due in a month, should I just go with AS2?I'm using CS4 on a PC publishing to Flash player 10. And yes I have tried "unloadAndStop()" and "removeChild()".

View 8 Replies

Actionscript 3 :: Loading External Swfs With A Loop?

Jun 25, 2011

I've spent days working on this code, it seems so simple, but yet it never works. All I'm trying to do is make a loop automatically load person0.swf through person4.swf in the same directory. I've got it set-up so that I can change a single number and it loads up to person[whatever-the-new-number-is].swfCurrently it loads the first movie and thats it. I also get this error: "TypeError: Error #1009: Cannot access a property or method of a null object reference.at Menu()"Here is the code

package {
import flash.display.*;
import flash.net.URLRequest;

[code].....

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved