ActionScript 2.0 :: AttachMovie External Swf - Load Buttons On The Map Into The Main Interface

Apr 17, 2005

I have created an interactive atlas. I am using my favorite map zooming and panning tools supplied by Senocular which can be found here: [URL] For the panning/zooming/drawBox tool to work the map features must be buried deep within several movieclips. There is one level at which you can put buttons that aren't effected by the code for the panning/zooming etc. Buttons have to go on this level or higher if you want them to work.

The way my atlas is set up - there is a main interface that has these tools plus the menu system. The menu (xml; created by Lost and Sen - brilliant) loads in two external swfs - one is the map itself and the other is a set of "controls" for that particular map (radio buttons, check boxes, text links, etc.).

Okay so here is my problem. I have a couple of external swfs that have buttons on them that do things when you roll over and off them. If I have these buttons sitting on the map then when it gets loaded into the main interface they no longer work. So I am trying to use attachMovie to attach them to an MC within the zooming tools in the main interface at a level they can be active (oh god I hope that makes sense). But it's not working.

I am guessing it's because the code to attach them is being fired before the external can be loaded into the interface. So I'm not really sure where to fire the attachMovie code. Does it go with the external? Does it go with the controls for the external?

View 10 Replies


Similar Posts:


ActionScript 2.0 :: Buttons Load The External Swfs Except When Click On The Contact Button That Is In The Main Flash Page

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

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 3.0 :: Opening External Applications And Closing From Main Interface

Sep 2, 2009

I made several applications in Flash and I would like to present them from one main application. In basic terms, I want a window with buttons linking to each project. Click on Button A for example, which opens Project A in a separate window. All of my projects are Mac or PC projectors.

View 0 Replies

ActionScript 2.0 :: Load An External Swf For Use With AttachMovie?

Dec 31, 2004

is there anyway to load an external swf for use with attachMovie?

View 1 Replies

ActionScript 2.0 :: Load External Swf For Use With AttachMovie?

Dec 31, 2004

is there anyway to load an external swf for use with attachMovie? if so, do you have an example?

View 1 Replies

ActionScript 2.0 :: External Interface Call - Apply Code To Multiple Buttons

Sep 29, 2009

completing the code to get a return value from JavaScript to flash, but all the code was in a frame. My issue is I need to apply this code to multiple buttons, and then have them navigate to the appropriate frame. I thought I could put some of the code on the buttons themselves, or possibly I could call each button and keep all the code in frame one.....the external interface call function and the button functions....btn1, btn2; etc......I am not to verse in code and need to know what and how the best way to do this would be.

[Code].....

View 16 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 :: .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 :: Remove External Swf When Click Buttons On Main Swf?

Feb 28, 2008

I'm trying to have an external loaded swf unload when other buttons on the main swf are clicked. i finally managed to get an external swf to load with a button using AS3, now I just can't figure out how to get it to go away when the other buttons on the main swf are clicked. Here is my code so far:

Code: Select allquote4.addEventListener(MouseEvent.MOUSE_DOWN, goquote4);
function goquote4 (e:MouseEvent) {
var loadit = new Loader();

[Code]....

View 6 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 :: Different Buttons Load Different Movieclips In A Main Area?

Feb 17, 2010

how to make buttons play movie clips in a particular area when I press a button however I'm trying to make the jump up higher.

I have 3 menu items with 3 movie clips loaded just beneath the menu Items. However my first problem is, how do I hide content or even better, only play certain movies when a button is released?

At the moment the code for a button I use is:

on(release){
_root.intro.play();
}

But all the movie clips are overlayed!!

View 1 Replies

ActionScript 1/2 :: Scripting External Movies To Buttons In Main Movie?

Apr 19, 2009

I'm building an entirely flash based website using Flash CS3 and ActionScript 2. I'm using external movies for the various pages, and putting buttons that control these movies in the main movie file. Normally, I'd simply put the script to control the buttons on the main movie file, not the external ones, but because there's more than two different pages and I'm fading each external clip in and out, I'm wondering if possible to put the script, for the buttons on the main movie, on the external movies.

View 15 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 :: 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 3.0 :: Load An External SWF Into Main SWF?

Jun 24, 2009

I'm using the following code to load an external SWF into my main SWF. The code is called inside of a button function. The code works TOO well. The external SWF loads multiple times on top of each other.
 
var ldr:Loader = new Loader();ldr.load(new URLRequest("portfolio.swf"));
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,      onLoaded, false, 0, true);function onLoaded(evt:Event):void {    addChild(evt.target.content);    evt.target.removeEventListener(Event.COMPLETE, onLoaded);}
 
To see the mess go to:[URL] hit the "web" button.

View 4 Replies

Actionscript :: External Swf Load Into Main?

Aug 13, 2010

I need to load external swf into my main swf into a dispay object in this main swf.

View 2 Replies

ActionScript 3.0 :: Load External Swf In Main Swf?

Feb 18, 2009

i'm trying to load external swf in my main swf. when I click first time in first frame on object(movieClip) which has event handler gotoJob, the jobfair.swf will load and it works. But I have on the stage in first frame also another objects - movieClips. If I click on some movieclip, than it means to go to nextFrame. But when I return to first frame, where is also object with click handler gotoJob and I click on it, it does not load the swf.

Code:
function gotoJob(evt:Event):void{
var requestSWF:URLRequest = new URLRequest("jobfair.swf");
var loader:Loader = new Loader();

[code]...

View 5 Replies

ActionScript 2.0 :: Load External SWF And MC On Main SWF Via Xml?

Dec 15, 2009

external SWF 1 plays and when it finishes, it loads the SWF 2.inside the loader SWF, there are MC-buttons which can control which swf will be played.i want it to be dynamic so i used XML.there are 5 external swfs and 5 MC-buttons. when i update the xml, i want loader SWF to display only 4 external SWFs and 4 MC-buttons.update:the xml is being loaded but it wont load the SWFs. heres th AS and xml

Quote:
stop();
myXML = new XML();

[code]......

View 2 Replies

ActionScript 2.0 :: Load An External .swf Into The Main .swf?

Jun 14, 2004

In the current flash project im working on I load an external .swf into the main .swf, the external .swf contains sound loops and movieclips which they are attached to. In the main .swf there are buttons which trigger the sounds to stop and start.the problem im having is that the sounds wont play when the button is pressed, when everything is in one file it all works fine, so i believe the problem is to do with the reference to the external file.

[Code]...

View 1 Replies

ActionScript 2.0 :: Swf With Buttons That Open External Swfs Which Completely Cover The Main Swf?

Jun 12, 2009

I'm building a website that has a main swf with buttons that open external swfs which completely cover the main swf. The external swf has a close button to return to the main swf. My problem is when the external swf is open the buttons hiding underneath on the main swf are still active. I want to add code to the button on the main swf to disable itself while opening the external swf. BUT, I also want to reactivate them when I close the external swf. Is there code I can place on the close button of the external swf that will communicate to the main swf to reactivate its buttons? It seems so simple but this is the trickiest part for me.

View 2 Replies

ActionScript 3.0 :: OOP: Multiple Classes - Add Functionality To The Buttons To Load Swfs Into Main Movie

Nov 2, 2009

I had to create a menu using array and I had to animate it. With some great expertise from people, I've accomplished that. But now I have a question about OOP, because I'm trying to add functionality to the buttons to load swfs into my main movie. Even though I strictly follow tutorials and exercises, I can't figure out how to reference a variable made in one class to another. For instance, I have index.as, navbar.as, and menubutton.as. I assume I need to add a loader to my index.as. But I can't trace the loader in my other classes. I've been told to effectively accomplish this, it is best to use custom event dispatchers. But I'm lost on how to use them.

View 12 Replies

ActionScript 2.0 :: Flash 8: Assign To The Buttons What News.swf To Load Into The Other Movieclip On The Main Timeline

Feb 20, 2006

I got one movieclip with several buttons and another movieclip where i use: this.loadMovie("news1.swf"); What Id like to do is, if its possible, to do, on the main timeline, assign, to the buttons what news.swf to load into the other movieclip where i load it. So i can assign one button to load news1.swf and another load news2.swf.

View 5 Replies

ActionScript 2.0 :: Load External Swf Into Main Clip, Then Go Fullscreen?

Feb 12, 2009

The main site (index.swf) had an image slideshow style gallery displayed prominently across the entire site - i.e it never changed while the rest of the site did. That is gone, but in its place is an external .swf (video.swf) which is a video player to stream flv video via php. convoluted, no?

Now, I got the php streaming player from FlashGuru [URL] and it works beautifully. I added in a button for full screen toggle, and that was a cinch - two lines of AS and editing the html and I was done. I tested it as a standalone swf file, and it streams wonderfully, goes full screen with ease...perfect more or less. See it at [URL]

Then I load the video.swf movie into the index.swf movie, and when I click the full screen button, the main root (index.swf) goes full screen. The problem is that I want only the video (video.swf) to go full screen - without reloading or restarting the streaming video.

I currently have the files up at [URL] to see the swf files in action; would post the .fla files here but since the template was purchased I can't post it, and the video player is basically stock other than the full screen switch. What the heck, I'll post it here just in case...

{also, a side note; I do plan on having multiple videos to load - I currently plan to use different .swf files for each one, but if I could just pass a variable from the main (index.swf) to the other (video.swf), it would save a bit of HD space on my server.

View 2 Replies

ActionScript 2.0 :: Load External Swfs With Main Swf Preloader

Sep 3, 2009

My external swfs are taking 8-10 secs gap in loading inside main swf, that's why i want to load my external swfs with dynamic content at the same time when my main swf loads.

Code of preloader

Code on 1st frame:
onClipEvent (load) {
total = _root.getBytesTotal();
}

[Code].....

View 3 Replies

ActionScript 2.0 :: CS4 : Get An External Swf To Load And POSITION In Main File?

Apr 14, 2010

I'm trying to get a swf file to play in a main swf file. I can get it to play, but it always appears in the top left corner. I've tried several different methods to position it but every one of them either doesn't work or won't play the file.Here's what I'm using right now.

Actionscript Code:
stop();loadMovieNum("circles.swf", 1);var xset = 381;var yset = 179;

The swf plays just fine, but it won't take the coordinates.I also need to get it to stop when I go back and the command

Actionscript Code:
unloadMovieNum(circles.swf);

doesn't work.A tutor in my class showed me a method to place the swf into a box on the main stage without doing a lot of scripting, just putting in some file-name and size/position references, but he's not available right now to ask how he got that started.

View 5 Replies

ActionScript 3.0 :: Load An External Swf Even A Object Is Clicked In The Main Swf?

Feb 14, 2011

Im trying to load an external swf even a object is clicked in the main swf, im using this code but i get an error, if u can:

bg.farm.addEventListener(MouseEvent.MOUSE_DOWN, farm_Press);
var fl_Loader:Loader;
function farm_Press(evt:MouseEvent):void

[code]....

View 6 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 3.0 :: External SWF Button To Load The Main Timeframe?

Aug 24, 2009

I am building a flash site and I am trying to load all of my swf file into one (final) fla file. This is the code for loading one of them in:

// ActionScript 3.0
stop();
var movie1:URLRequest = new URLRequest("mainpage.swf");
var ldr:Loader = new Loader()
ldr.load(movie1);
addChild(ldr);

So this mainpage.swf file has a button with instance name of btnContact which I would like to add an event Listerner to it here in the (final fla) so when I click it, it jumps to the frame "one" on the final timeframe.

So basically, controling the main timeframe though using a button on an external swf file.

View 8 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







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