ActionScript 3.0 :: Portfolio - Load The First External .swf When The Main Movie Loads?

Nov 4, 2010

I am making a Flash portfolio for a college class. I am trying to make it when I click on a button, it will load an external .swf. When I click on another button, it will replace the previous .swf.I have it working, but the code is sloppy, .Also, within cleaning up the code, is there a better way to load the first external .swf when the main movie loads?

Code:
// FULL MENU ACTIONSCRIPT //
import flash.events.MouseEvent;
import flash.display.*;[code].........

View 0 Replies


Similar Posts:


ActionScript 2.0 :: .load Six Separate External .swf's Into The Main Movie While The Main Movie Loads Too

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

ActionScript 3.0 :: Converting Navigation In Main Movie That Loads External Swf Files

Aug 19, 2009

I am diving in to learn AS3 and converting my site over to AS3. The majority of my code is for my navigation in my main movie that loads external swf files. Here is what I have and I don't know where to start to convert it. I know I need to do this in steps. So the audio is not important now or my other swf files.

[Code]...

View 10 Replies

ActionScript 2.0 :: Load External Swf Files In A Main Movie?

Sep 20, 2010

I am trying to load external swf files in a main movie.I have created 3 different movies. Main movie is named "Container". Another 2 movies are named "movie1.swf" and "movie2.swf".Main movie "Container" is having some navigation buttons and template sort of thing in it. On the lowest layer in main movie I have created an empty movie clip in which I am trying to load "movie1.swf".Now problem is when I load "movie1.swf" instead of loading the external movie in target mc, it clears all the contents in main movie.

View 3 Replies

ActionScript 2.0 :: Load External MAC(ish) X Menu Into The Main Movie?

Mar 2, 2003

loading external mac x menu into my main movie. My main movie contains emty mc named "container" to load external.swf's and another emty MC named "menu" to load external "menu.swf" the problem i have once i load menu.swf into a level of my main.swf then the menu functions won't work at all.

View 4 Replies

ActionScript 2.0 :: External Swf. Files To Load Content For Portfolio.

Aug 9, 2009

I am having a strange problem with frame labels.I am using external swf. files to load content for my portfolio.The Work section contains thumbnails and once you click them they fade in at a larger size using Frame labels with AS2.[code]If you open URL... and click the thumbnails you can see it works perfectly fine. However if you go to the work section from the index URL... it no longer works. I have been trying at this all day but it does not seem to work once i upload to server :/all files (FLA , SWF, HTML )

View 3 Replies

ActionScript 3.0 :: AddChild - Load External Swf File Into Main Movie

Aug 5, 2009

I load external swf file into main movie. and i give that child a name page0 there is a bit of code.

[Code]....

so after its loaded i want to insert some text into external swf using main movie. i managed to remove external swf, like this ActionScript Code: holder_mc0.removeChild(holder_mc0.getChildByName("pages0")); but i wonder how to insert text into that swf. i don't understand how hierarchy works, when you addChild, what name should i use for my external files. for example ActionScript Code: holder_mc0. ?????? .mainTemplate.tContent.text = "TEXT"

View 6 Replies

ActionScript 2.0 :: Load External Swfs Into The Main Timeline Of Movie?

Oct 14, 2003

im using a load targetscript to load external swfs into the main timeline of my movie, however im keeping much of the other layers/mc's loaded, and the external swf is loading over them, the level the blank movie clip is created in doesnt seem to be working propperlly?? whats going wrong?

bandb.onPress = function() {
_root.createEmptyMovieClip("empty2", 4);
loadMovie("flash/band.swf", "_root.empty2");
container._x = 0;

[Code]...

View 4 Replies

ActionScript 2.0 :: Load External Movie Into Main Flash Site

Aug 31, 2004

[code]What I'm trying to do is load an external movie into my main flash site, but I want the main flash site to wait till the movie is loaded then the main time line starts to play again. I would told that the onClipEven(data) would give me this option. So I thought I said that when it's loaded go and play frame 6 of the main time line.My external movie works fine, and it has a preloader, just want the main timeline to wait till that movie is loaded to start to play again

View 2 Replies

ActionScript 2.0 :: Load An External Swf And Dynamically Attach The Mc's In The Loaded Swf To The Main Movie?

Nov 20, 2010

I want to load an external swf and dynamically attach the mc's in the loaded swf to the main movie. Is it possible to reference the linkage properties of the externally loaded swf in this way?

View 1 Replies

ActionScript 2.0 :: Levels - Load External Swfs Into The Main Timeline Of Movie

Oct 14, 2003

im using a load targetscript to load external swfs into the main timeline of my movie, however im keeping much of the other layers/mc's loaded, and the external swf is loading over them, the level the blank movie clip is created in doesnt seem to be working propperlly?? whats going wrong?

[Code]...

View 4 Replies

ActionScript 2.0 :: Load An External Swf In An Empty Movieclip And Then Manipulate This Loaded Swf From Main Movie

Jul 29, 2007

i just recently started programming in flash and so far I have learned a lot, but new questions keep coming up

My problem is that I want to load an external swf in an empty movieclip and then manipulate this loaded swf from my main movie. For example tell it to go to a certain frame. Is such a thing possible?

View 1 Replies

ActionScript 2.0 :: Use The Main Preloader To Loads The External Swf's ?

Sep 20, 2003

I have a main swf loads a serveral swf's from the menu.how can i use the main preloader to loads the external swf's ?

View 4 Replies

ActionScript 2.0 :: Link To A Page Which Then Loads A New Movie Into The Main Movie?

Oct 17, 2003

I have a html page that has a link, which links to another html page with a flash file on. What i need is when this flash page is accessed i need a new movie to load, which would usually load from the navigation when someone clicks on a button.Is there anyway to link to a page which then loads a new movie into the main movie. can this be done???

View 10 Replies

ActionScript 3.0 :: Main .swf With Buttons On A Navigation Menu That Loads External .swf(s)?

Dec 18, 2011

I am using a main .swf with buttons on a navigation menu that loads external .swf(s) - these load external videos (I use them as their backgrounds).In the main .FLA I have used the following code (in the first and unique frame):

CODE

var Xpos:Number = 110;
var Ypos:Number = 180;
var swf:MovieClip;
var loader:Loader = new Loader();
var defaultSWF:URLRequest = new URLRequest("swfs/eyesClosed.swf");[code].....


I can make each button on the menu load each external .swf correctly with videos included - but when I leave that .swf using the navigation buttons to go to another section, the video and audio keep working in the background.

View 4 Replies

ActionScript 2.0 :: Buttons And Transitions - Load In External Swf Files Into An Empty Movie Clip On The Main Stage Called Container

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

ActionScript 2.0 :: Movie Loads In A Separate Window Instead Of The The Main Timeline

Jun 21, 2003

I have a button that I want to have load a movie when pressed. It works, howerver, the movie loads in a separate window instead of the the main timeline where I would like it to. How can I correct this? Here's how I have it scripted now:

[Code]...

View 3 Replies

ActionScript 2.0 :: External Movie Loads But Next Movie Doesn't

Feb 9, 2005

I have a modular movie format. All movies load into a shell/base movie. I have a video intro that loads into the loader component in an external movie. This movie in turn loads into the actual main movie.What I'm trying to figure out is when the video intro gets done playing, I want it to move to the the next frame (#3) so it can run a behavior I have there to load another movie in its place.I've tried the "on complete" with several variations to no avail.I have a button that will move you to the frame #3, but I want to make it happen automatically if I could.

View 8 Replies

ActionScript 2.0 :: Trigger External Swf To Load Into Main Swf From Button In Another External Swf?

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

ActionScript 2.0 :: Loading An External Movie Through An External Movie To The Main Movie?

Apr 30, 2003

I am creating a full site in flash. The main movie has an empty movie clip in the middle of the movie to load external movies as the user clicks on the links. Everything has worked good so far as the linking has only gone 1 level deep. However, when I created a new external movie, and had buttons on it for another external page, but yet to open in the main movie, I can't get anything to work. Example.... In the main movie, the user clicks on the archive link, and the external archive movie is loaded into the main movie. Now, on this archive movie, there is a button on it that links to a another movie (say text effects.swf). However, when they click this button for text effects, I can't get it to load into the main movie clip and replace the archive movie that was currenlty there.

View 14 Replies

ActionScript 1/2 :: Load A .swf File Which Loads External Xml Html Content Page

Sep 28, 2011

I have a main.swf file. In first frame i load a background slideshow with this code:

[Code]...

My problem is that when the site loads the 1st time and click from the menu to go to the 2nd frame (1st content page) then i have to wait at about 3-4 seconds to load my html content. The same for the 3rd frame. If these two content pages load for the 1st time, then the pages open immediately. What can i do for this? Is there a way to open this content pages more quickly, or place a loader, and with what code?

View 3 Replies

ActionScript 2.0 :: Transition Within Movieclip - Open The Load.swf And Click Red Buttons.. It Loads Up The External Swf?

Feb 27, 2006

if you open up the TEST.swf you can see how I want my transition to look like.. everything works perfectly.. then if you open the Load.swf and click one of those red buttons.. it loads up the external swf.. but if you click another button it loads up the same external thing.the difference between Load.swf and TEST.swf is that in Load.swf is container in which the TEST.swf is loaded..

View 4 Replies

ActionScript 1/2 :: Load A Menu Bar As Movie Clip Loads?

Apr 5, 2009

I have a horizontal menu bar across the bottom of a site I manage, and I would like to load it as the Moive content loads. I have made the menu bar into it's own movie clip, but I cannot work out the code to relate the Menu bar movieclip to the parent movie clip.[url]...

View 9 Replies

Randomly Load Movie Clip When Page Loads?

Mar 29, 2009

I am trying to make what I thought would be a very simple random picture display. I have five movie clips named myClip1, myClip2, etc. All are on the first frame of the timeline. Each has this as a movie clip action:

Code:

onClipEvent(load){
_alpha = 0;
}

The frame also has an action like this:

Code:

nClipMax = 5;
// nClipMax being the number of movie clips
this["myClip" + Math.ceil(Math.random()*nClipMax)]._alpha = 100;

When I test this the background (an image) displays but nothing else, the movie clips stay transparent. I have tried several variations without any luck.I am mainly an asp and net developer that uses flash periodically so be gentle.

View 1 Replies

ActionScript 1/2 :: Load Movie - Randomly Load Other Swf's (individual Ads) Into Main Swf After

Apr 2, 2009

I am pulling double duty with this question as it serves two purposes. I am developing a total flash controlled ad system for myself, but also need to use the same theory for a project for work.

Concept: I have a main movie (ad rotator system) that I then want to randomly load other swf's (individual ads) into this main swf after a set period of time. The random load I got set no problem. The problem I am having is to get it to move to the new Frame label of the main movie which then loads the smaller swfs. I am using the LoadMovie with nInterval time delay command in flash to load the movies.

[Code]....

View 5 Replies

ActionScript 2.0 :: Loading Into The Movie Loads A Easily Editable External XML File?

Sep 15, 2009

I know this goes against the logic of most menus. I am building a menu. I have very nice mc called "menu_list" and loading into the movie loads a easily editable external XML file with all my over categorys and sub menus

it looks like this...client.niallohara.net/xml_menu.html

[Code]...

View 0 Replies

ActionScript 3.0 :: Load External SWFs - Parent Document Which Essentially Loads One Of The Ten Child Documents Onto The Respective Key Frame

Apr 29, 2011

I've got this interactive poem I've been working on for a class. I've basically finished each "episode" seperately. I made a parent document which essentially loads one of the ten child documents onto the respective key frame. Here's a sample of the code for the first key frame of the parent document:

stop();
import flash.net.URLRequest;
import flash.display.MovieClip;
import flash.events.Event;
stage.addEventListener(Event.ENTER_FRAME, LoadSWF2);
[Code]....

Well Two things are messed up about it, well my "ChildTimeline2" variable will off and on assosciate itslef not with the main time line of a child document, but of a nested symbol inside said child document. Even worse, the "gotoAndStop();" command I will give sometimes applies to Parent document... yaay! but often it will apply to the child document. The end result being this horrible looping moment where you are stuck in one child document for all time.

I wish I could attach the documents but they exceed the 300KB. how I can get Actionscript to listen fro the last frame of the maintimeline of the child document, or tell flash to gotoandStop for the parent document

View 4 Replies

ActionScript 2.0 :: Loads An External Swf That Loads 2 External Swf Files

Nov 21, 2005

the best way to do it but i have a preloader the loads an external swf that loads 2 external swf files. one on layer o and the other 1.it seems to load the swf on layer 1 twice.url...if i run the swf that loads the 2 external swf files by it's self and the same problem happens.mouse over the navagation button and then mouse over the close button and follow the animation down to were it turns back into the navagation button. sometimes the close stays up.if i run the swf file that just contains the navagation it dosen't happen.

View 2 Replies

ActionScript 2.0 :: When Click On A Link From The External Movie Won't Return On The Main Movie

Feb 1, 2006

- i have 3 separate movie clips (a,b,c)

- my main movie is (a) and when i click a button there, it will go to external movie (b)

- under external movie (b) there's a movie clip that includes my animation and content button

- if i click on the content button on movie (b), external movie (c) will pop up [ it will not replace movie (b) but will just overlap it, it's like a small pop up ]

i did the actionscript and when i'm testing external movie (b), it's working... it's showing/popping up movie (c) but when i tried it on the main movie (a), the movie (c) is not popping on the (b) err, sorry if it's a bit confusing / how i explained it. but hopefully somebody will get the idea. and it won't also return on the main movie (a) when i click on a link from the external movie.

View 5 Replies

ActionScript 2.0 :: Activating The External .swf Into A Blank Movie Clip In The Main Movie?

Oct 10, 2002

I'm still a rookie in flash and I'm having a little bit of trouble with some actionscript. I've gotten as far as placing the buttons and assign the correct actionscript for them to work. Everything is working fine with the buttons activating the external .swf into a blank movie clip in the main movie. Ony thing is, I would like the external movie assigned to the first button to open once the movie is loaded.

I thought by using the same actionscript i used on the button {and removing the on(release) tag} and placing on the first frame of the main movie would help, but it doesn't.

View 2 Replies







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