Web Design and Development Forums

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 > Design Your Website > Flash & Multimedia Forum

Welcome to Webforumz.com.
Register Now Register now!

Reply
 
LinkBack Thread Tools Rate Thread
Old Apr 12th, 2008, 20:38   #1 (permalink)
Reputable Member
 
Join Date: Aug 2007
Location: netherlands
Posts: 104
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
ahwell is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Apr 12th, 2008, 20:40   #2 (permalink)
Reputable Member
 
Join Date: Aug 2007
Location: netherlands
Posts: 104
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.
ahwell is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old Apr 13th, 2008, 09:25   #3 (permalink)
Reputable Member
 
Join Date: Aug 2007
Location: netherlands
Posts: 104
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
ahwell is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
loading external content CDT KM Flash & Multimedia Forum 0 Mar 24th, 2006 09:56
loading external swf razor Flash & Multimedia Forum 1 Nov 30th, 2005 15:40



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 19:07.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


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 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59