ActionScript 2.0 :: MovieClipLoader Vs LoadMovie External Swf

Jan 28, 2009

I need to do is load an external swf into a movieclip and make sure it stays within a certain size.

1. How do I make it a set size? Instead of it inheriting the root timeline height/widht. ie: my main movie is 900 x 900 the external swf is 700 x 500 and there are mouse moves that rely on the 700 x 500 boundaries.

2. How do I make this: loadMovie("external.swf", "load_mc"); utilize MovieClipLoader?

View 6 Replies


Similar Posts:


ActionScript 2.0 :: Loading Multiple Jpgs Dynamically With LoadMovie And MovieClipLoader

Dec 13, 2005

I'm loading multiple instances of the same jpg dynamically to my swf. It works just fine locally, but when I upload it, it only executes the first loading code it encounters in the timeline. I was doing things fairly complexly with 'for' loops and dynamic name generation and stuff, but I've stripped it down to the basics in an effort to get this to work.

Here's some code:

loadMovie('1.jpg', mc1.empty_mc);
loadMovie('1.jpg', mc2.empty_mc);
mcLoader.loadClip('1.jpg', mc3.empty_mc);
mcLoader.loadClip('1.jpg', mc4.empty_mc);
mcLoader.loadClip('1.jpg', mc5.empty_mc);

as you can see, I'm using two different methods of loading the jpgs, just in an effort to pin down exactly what is going on. Locally, they all load fine. When I upload to the server, only the first instance of the loading code is run (so mc1 will get its jpg, but the rest won't). I've tried to swap the order, place the loading code in different areas, try to load different jpgs into each empty mc, but nothing works except that first instance flash gets to in the timeline.

The swf and jpgs are all in the same folder, both locally and on the server. The server the swf is hosted on is Windows 2003 box if that matters. I tried uploading it to a different windows box and got the same problem.

View 2 Replies

ActionScript 1/2 :: Loading An External SWF Using MovieclipLoader?

Mar 26, 2009

I'm in a hurry and need big help quick

1 - I'm using AS2 and know my way around it well

2 - I'm loading an external SWF using MovieclipLoader

3 - The external SWF has a MP3 file in it's library (exported for actionscript) and is attached to a Sound Object.

4 - Running the SWF by itself, everything is fine, but once it's loaded in my main movie, it won't play, no sound,

View 2 Replies

ActionScript 2.0 :: MovieClipLoader Not Playing External Swf?

Jan 23, 2007

I am using MovieClipLoader to load a swf. The external swf has about 12 images on it that just show up one after another. But only the first frame displays.

My code:
[AS]
var empty_mc:MovieClip;
var mclListener:Object = new Object();
var myMCL:MovieClipLoader = new MovieClipLoader();

[code]....

View 11 Replies

ActionScript 2.0 :: Loading External .swf With MovieClipLoader?

Mar 23, 2009

I am using the MovieClipLoader class to externally load a .swf file with a preloader. The problem is that my .swf starts playnig behind the preloader, before it is completely loaded...

How can I make it paly only after it is 100% loaded?

Here is what I have so far:

Code:
var loader:MovieClipLoader = new MovieClipLoader();
var loadHandler:Object = new Object();
myGlobalSound = new Sound(this);

[Code]....

View 7 Replies

ActionScript 2.0 :: MovieClipLoader For External Swf With File Dependencies?

Feb 3, 2009

I'm trying to use the MovieClipLoader class to load external swfs into my main movie. A problem occurs when the external swf relies on or loads other external files. The external swf acts as if it's running in the same directory as the main swf and expects files to be located relative to that.

For example:
main_movie/main.swf
other_path/external.swf

[Code]......

This seems to be similar to having the base parameter set improperly in the html, but I haven't been able to find a way to set this when loading an swf dynamically with MovieClipLoader.

View 4 Replies

ActionScript 2.0 :: Moviecliploader Document Size External Swf?

Feb 9, 2009

ActionScript Code:
var container:MovieClip = createEmptyMovieClip("container", this.getNextHighestDepth());
var mcLoader:MovieClipLoader = new MovieClipLoader();
mcLoader.addListener(this);
mcLoader.loadClip("crossball.swf", container);
function onLoadInit(mc:MovieClip) {
trace(container._width);
trace(container._height);
}

This always traces the width/height of the content of the external crossball.swf file, not its stage dimensions. So let's say crossball.swf has a document size of 200 by 200 pixels and in it is a shape of 115 by 30 it will trace the last as the width/height of 'container'. Is there any way to get the stage dimensions of an externally loaded swf through moviecliploader?

View 9 Replies

ActionScript 2.0 :: Load An External SWF Into UI SWF Using MovieClipLoader.loadClip()?

Sep 22, 2006

When I load an external SWF into my UI SWF using MovieClipLoader.loadClip(), does the external SWF get cached?

Therefore, if the user tries to reload a SWF that had been previously loaded, the SWF will load from the local HDD instead of the website, right?

In my case, caching of content is important to reduce bandwidth usage.

View 1 Replies

ActionScript 2.0 :: Unloading An External Swf Using The MovieClipLoader Object?

Jun 6, 2007

I"m having a tiny problem with unloading an external swf using the MovieClipLoader object. This is what I"m doing:

Code:
if (mcLoader.unloadClip(container)) {
trace(container.testVar) // shows testVar
}
button.clickHandler = function () {
trace(container.testVar) // says undefined when clicked
}

So what's happening is right after I call unloadClip it's still loaded however if I click the button at some point after unloadClip is called it shows that is has been unloaded. So obviously there's a little bit of a delay while things are being unloaded. My question is, does anyone know of a way to detect when the clip is unloaded like with an event listener or something? I want to be able to load up another swf after one is unloaded for the level maps for my game I'm working on.

View 2 Replies

ActionScript 2.0 :: Preloading A MovieClipLoader() With A MovieClipLoader() Inside

Jan 20, 2004

Is it posible to make a preloader of a SWF that loads an external JPG?

View 1 Replies

ActionScript 2.0 :: Loads External Images From An Xml Feed (using Moviecliploader) And Then Rotates And Firefox

Dec 17, 2007

I have a swf that loads external images from an xml feed (using moviecliploader) and then rotates through these images every n seconds. This works fine in ie and it loads the images and scrolls through them. However in Firefox sometimes it loads the image and sometimes it doesn't! its like a lucky dip haha Is there any link that you know of to any information on this bug/issue with firefox that might help me resolve this? Found something that might be causing the problem, if Firefox cannot find the image within a certain time it just gives up... is this true?

View 1 Replies

ActionScript 2.0 :: Setup A Website That Uses The MovieClipLoader Class To Load External Images & Swfs

Oct 29, 2009

I'm trying to set up a website that uses the MovieClipLoader class to load external images & swfs. The loader is working but I can't seem to get the preloader text to work, ie the onLoadProgress. The Percent text just has jibberish when I test the movie. Could some tell me what I'm doing wrong. Attached is the test file that I'm working on

[Code]...

View 3 Replies

Actionscript 2.0 :: Create A Basic Flash Script To Load An External Swf File Using MovieClipLoader Class?

Mar 17, 2009

I am trying to create a basic flash script to load an external swf file using MovieClipLoader class. Here's my code:

var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
myMCL.addListener(myListener);
myMCL.loadClip("splash.swf",5);

I simply copied it from a tutorial. Unfortunately it throws an error message as follows:

1046: Type was not found or was not a compile-time constant: MovieClipLoader
1180: Call to a possibly undefined method.

PS: I have CS3 professional in my machine but I am following Flash 8 book. But my CS3 application supports AS1, 2 and 3.

View 4 Replies

ActionScript 2.0 :: Loadmovie/ External Swf Or Fla?

Apr 30, 2011

but i just can't figure it out. I've made a website in flash, with a button. The purpose is when you click one button, a portfolio will open. This portfolio is xml driven and i've got the FLA file and the SWF file.

But.. when i put the portfolio FLA file in my website timeline it won't work, and when i try to use the SWF file instead and connect it to the button using AS2.. it won't work at all. The last option i used the following AS2 codes and put the code on the button frame.. that didn't work (not at the same time offcourse ):

[Code]...

This last code did work.. but for some strange reason this last code loaded the SWF again and again...

Is there someone who knows what i'm doing wrong? I just want that the portfolio opens when you click on the button.. and opens in a container with certains measures.

View 3 Replies

Flash8 LoadMovie - Load An External Swf

Aug 14, 2009

This is my first time ever constructing a web site ONLY using Flash 8. I normally just use elements here and there, and I am totally confused. The link to the project is here: [URL] I want the site to be set up so that when I click a button (at the bottom), an external .swf file loads into that gray box in the center. How do I start? Where do I start? I should be able to figure this out, but I am stuck.

View 1 Replies

ActionScript 3.0 :: Load An External Swf Using Loadmovie?

Jul 23, 2009

I need to create a button with script, on rollover load an external swf into movieclip in AS3.  This was able to create this in AS2, but I need to create this in AS3

View 3 Replies

ActionScript 2.0 :: Flash CS4 Alternative To LoadMovie From External

May 6, 2010

I am running into some real problems with importing a png and associating it with a movieclip.Basically I want an image (image1.png) to appear inside a blank movieclip on my stage called "image1". I need this to all run from the library and not from an external folder - thus this does not work for me : loadMovie ("image1. png", "ClickReveal.image1");Is this possible? Or do I absolutely have to run from an external folder or convert the png to a movieclip by hand and then use attachMovie? I am desperately trying to avoid those options.The reason is that I am building a template file here and the users need to be able to import their own images which may be called anything and need to pop into movieclips.

View 1 Replies

ActionScript 2.0 :: Dynamically Loaded External .swf's With LoadMovie();

Feb 3, 2006

i have a button that when pressed passes a variable:

_root.movieToLoad = "testAni";

then the next movie clip thet "receives" the variables needs to play the external .swf in an empty movie clip... i have the code like so:

movieToLoad = eval("external_" + _root.movieToLoad + ".swf");
emptyMovie_mc.loadMovie(" + VARIABLE_GOES_HERE + ", "_self", "GET");

of course it doesn't work... how do i place a variable in that loadMovie?

View 3 Replies

ActionScript 2.0 :: LoadMovie, Control From Maintimeline To External Swf?

Sep 11, 2006

I have an external swf that I've placed in an empty movie clip using loadmovie into the main movie.

The swf shows and plays fine, however I have an interactive movie clip which does nothing when loaded into the main movie. (note: the loaded .swf is fine when tested outside of the main movie). How do I target the external .swfs interactive features after it has been loaded into the main timeline?

here's an example:

code in the external .swf-- on a movieclip, instance name: growObject
onClipEvent (enterFrame) {
if (_root.grow == 1 && this._xscale<300) {

[Code].....

I just need to figure out how to activate these instances while watching the external swf from my main movie timeline.

View 2 Replies

ActionScript 2.0 :: Variable To Load External Swf Using LoadMovie?

Jan 29, 2009

i hav one main swf inside which iam loading second swf, but instead of hardcoding it, iwant the secound swf to calldynamically using variables.

The querystring is as follows:
<PARAM NAME=movie VALUE="film.swf?extSwf=movie.swf">
This method works fine:

[code]....

View 2 Replies

ActionScript 2.0 :: [MX2004] External JPGs & LoadMovie()?

Mar 12, 2005

I have 100 mc's loading external thumbnail jpgs via loadMovie(). I need a preloader of some sort to show the status of the thumbnails. The problem is that each of the mc's are loading JPG individually and I am not sure of how to combine their loading statuses into a preloader. The other option I had planned to use was to make one thumbnail larger in file size than the others so that it would load last and therefore I could use some onload function for this particular thumbnail, but I do not know what would be best to use in this case.

View 1 Replies

ActionScript 1/2 :: Loadmovie The External Movieclip In The Main Movie?

Mar 22, 2011

I have a main movie is coding AS2 which contains a movieClip called MC_header.And I have an external movie is coding with AS3.

My question is : Can i loadmovie the external movieclip in the main movie?

View 1 Replies

ActionScript 2.0 :: Preloading External Images Fetched By XML Via LoadMovie?

Nov 1, 2009

I have a flash website, which has 4 menu options, each of which when you click fetches a different XML file in which the child nodes indicate the content, or description of an item, and fetch a external image to represent it on stage. Each menu option when clicked gets a new XML file, replacing the old one in the xml variable. Once the XML is loaded (xml.onLoad()) it sends it to a function (loadItems) to place each item on stage. Obviously, when uploaded onto the Internet, when a XML loads, the images are still loading, thus the Tween effect of them appearing on stage can't be seen.

I need to find a way of how to create a preloader, that would show the status of ALL the images download progress, and once complete, starts the Tween effect of them appearing on stage.

loadItems function (places the external images from the XML file on stage):

ActionScript Code:
var xml:XML = new XML();
xml.ignoreWhite = true;
function loadItems()

[Code].....

View 4 Replies

ActionScript 2.0 :: Load External Movie With LoadMovie Action?

Apr 16, 2005

i load external movie with loadMovie action.

It loads the SWFs into the movie correct.

I have problem, how simply switch between the loaded movies. The last loaded movie overlay all loaded movies.

How is possible do it the swap of the loaded movies?

View 1 Replies

ActionScript 2.0 :: LoadMovie/gotoFrame From External Text File?

Nov 5, 2005

my next experiments consist on loading a movie/ or gotoframe on a hyperlink with html text that i load from a .txt file.i mean this such type of html code

Code:
visit the site<a href="http://test.com" target="_self"><font color = "#FF9933"> for more info so basicly my intention is, to refer to a hyperlink but just go to a "frame" or load a movie. where you have in your FLA some more info about the site you are going to enter again, i am just experimenting with these things, it has no real purpose but it would be considered nice if it really could work.

View 3 Replies

ActionScript 2.0 :: Loading External Swf Files Through The LoadMovie Function

Dec 7, 2005

I want to load an external .swf file through the loadMovie function. The problem is flash takes sometime to load the file and therefore what ever commands I put below the loadMovie function, will not work. Placing this commands say 10 frames from the loadMovie function works but when online and you have a slow internet connection, it yet again fails. How do I solve this problem? I tried using onLoad but from what I gathered from several sites, it will not work with LoadMovie.

View 6 Replies

ActionScript 2.0 :: Loadmovie - Goto A Specific Marker Within The External .swf

Sep 12, 2006

I am loading a external swf into a MC "m_loader" but i want to go to a specific marker within the external .swf (Marker "m1q1"), i can load the .SWF fine but how do i go to specific place currently using the following AS.

[Code]...

View 1 Replies

ActionScript 2.0 :: Use LoadMovie To Load External SWFs Into 200x200 MCs?

Mar 2, 2007

I've been trying to use loadMovie to load external SWFs into 200x200 MCs arranged on the stage. What I get is a strange placement of the loaded movies, and, the loaded movies don't appear as they should. The loaded movies are really all the same: they display 4 squares that change randomly every 3 seconds.

1) The loaded movies seem to use their center point as the registration point instead of the top left corner. Why? How can this be changed?

2) The loaded SWFs ("1.swf", "2.swf", "3.swf") get transformed from 200x200 pixels to 100x100 pixels. Why?

View 3 Replies

ActionScript 2.0 :: Load An External Swf With LoadMovie And Set It To New Width Height?

Oct 2, 2009

We sometimes get swfs at my job that doesn't match our standard banner width and height. We only have the swfs and not always able to get hold of the *fla.So we want to load the swf into our different standard banner size and show it.

How do I load the swf into a new *fla that has my standard stage width:995 and stage height: 150? Without distorting the swf to much. Swf could be loading into a MC or loading directly onto stage.I tried the loadMovie and loaded the swf into a empty MC. But I can't set the MCs width and height.

View 4 Replies

ActionScript 2.0 :: [MX2004] Mc's Loading External Thumbnail Jpgs Via LoadMovie()

Mar 12, 2005

I have 100 mc's loading external thumbnail jpgs via loadMovie(). I need a preloader of some sort to show the status of the thumbnails. The problem is that each of the mc's are loading JPG individually and I am not sure of how to combine their loading statuses into a preloader. The other option I had planned to use was to make one thumbnail larger in file size than the others so that it would load last and therefore I could use some onload function for this particular thumbnail, but I do not know what would be best to use in this case.

View 1 Replies







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