loading external swf's into a certain layer

This is a discussion on "loading external swf's into a certain layer" within the Flash & Multimedia Forum section. This forum, and the thread "loading external swf's into a certain layer are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Apr 12th, 2008, 20:38
Reputable Member
Join Date: Aug 2007
Location: netherlands
Posts: 107
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ahwell Send a message via Yahoo to ahwell
loading external swf's into a certain layer

hi all,
I have a problem with loading external .swf's into my flash. I can load them but they all load at the toplevel. How can I make them load into a certain layer/ You can see my problem here:

http://www.gotoandflash.com/sanderbe...ite_apr12.html

this is my code so far:

Code: Select all
// Create a Movie Clip to load the swf Movie into
this.createEmptyMovieClip("myExternallyLoadedSWFMovieHolder", 0);
 
// A variable to hold the name and location of where the external swf Movie is located 
var myVariable = "http://www.gotoandflash.com/sanderbeenen/video1.swf";
 
// Set the Movie's location on the Stage
myExternallyLoadedSWFMovieHolder._x = 350;
myExternallyLoadedSWFMovieHolder._y = 450;
 
/* Set the Progress Bar to manual mode so that we can reset its value back to 0. We don't want it staring from 100 ! */
myProgressBar.mode = "manual";
 
// Reset the Progress Bar back to zero
myProgressBar.setProgress(0, 100);
 
// Show the Progress Bar
myProgressBar._visible = true;
 
// Create a listener object event.
myProgressBarListener = new Object();
 
// When the Progress Bar is complete and has preloaded the Movie, the listener will call and run this code below:
myProgressBarListener = function (eventObject) {
 
// Hide the Progress Bar now the Movie is loaded
myProgressBar._visible = false;
 
// This next section is optional.
// If you wish to remain on Frame 2 and view the External Movie do nothing 
// Otherwise un-comment any of the options bellow:
// Plays the Movie from Frame 2 onwards: 
// play();
// Go to the next Frame:
// nextFrame();
// Go to the next scene but may not automatically play beyond the Frame 1 in the next scene:
// nextScene(); 
// Goes to a Frame Label or Frame number and Play: 
// gotoAndPlay("myFrameLabel"); 
// gotoAndPlay(10);
// Go to and stop at the Frame Label or Frame number: 
// gotoAndStop("myFrameLabel");
// gotoAndStop(10);
// closes the function
};
// Declares a listener that detects when the Progress Component has loaded the external Movie and is complete. 
// It will call the function myProgressBarListener when the external swf Movie has loaded
myProgressBar.addEventListener("complete", myProgressBarListener);
// Set up the Progress Bar Component variables
// Set up the Progress Bar Component to polled when loading the Movie. It has to be set to polled to work
myProgressBar.mode = "polled";

// Set the preloader source to show the progress of the loader Component as it loads the external swf Movie
myProgressBar.source = "myExternallyLoadedSWFMovieHolder";
/* This is how we automatically load the external swf Movie. We call the load Movie Clip event and load the external swf Movie into the Movie Clip we created through ActionScript */ 
loadMovie(_root.myVariable, _root.myExternallyLoadedSWFMovieHolder);
// Stop the Movie at the frame until the Movie is loaded

stop();

I guess I have to add some script to the location part or something?

Hope someone can help me
marieke
Reply With Quote

  #2 (permalink)  
Old Apr 12th, 2008, 20:40
Reputable Member
Join Date: Aug 2007
Location: netherlands
Posts: 107
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ahwell Send a message via Yahoo to ahwell
Re: loading external swf's into a certain layer

ps:the swf has to appear behind the red curtain which is located somewhere halfway the layers

Last edited by ahwell; Apr 12th, 2008 at 20:44.
Reply With Quote
  #3 (permalink)  
Old Apr 13th, 2008, 09:25
Reputable Member
Join Date: Aug 2007
Location: netherlands
Posts: 107
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to ahwell Send a message via Yahoo to ahwell
Re: loading external swf's into a certain layer

ok nevermind..i used loadmovie instead..
http://www.gotoandflash.com/sanderbe...ite_apr13.html

thanks anyway

marieke
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
loading external swf crazytyler34 Flash & Multimedia Forum 3 Nov 15th, 2007 21:38
loading external swf worldheadja Flash & Multimedia Forum 3 Feb 7th, 2007 19:06
Loading external swf's in preloader. Lassjus Flash & Multimedia Forum 11 Jan 7th, 2007 05:03
Help needed in Loading external swf goodboy Flash & Multimedia Forum 4 Apr 11th, 2006 08:35
loading external swf razor Flash & Multimedia Forum 1 Nov 30th, 2005 15:40


All times are GMT. The time now is 17:05.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43