Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








External Swf Loading Into Target Movieclip Loading Problem


Hi Everyone,

Can someone please help me...

I’m trying to load a SWF movie into a target movieclip called ‘blankmc’.

The SWF movie is loaded from an absolute URL (eg. http://www.somedomain.net/img/20042005113934movie3.swf )

My Loading Progress code fails to detect the SWF file size. However the same code works perfectly for a JPG!

Essentially the .getBytesLoaded() and .getBytesTotal fail to work. Why is this and how can I get it to work for loading SWFs?

//EXAMPLE CODE:

loadMovie( URL ,"blankmc");
blankmc.getBytesLoaded() ;
blankmc.getBytesTotal() ;


//This works with JPGs but not SWFs

Thanks in advance!
J

ps. i am using Flash MX




KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 04-20-2005, 07:59 AM


View Complete Forum Thread with Replies

Sponsored Links:

External Swf Loading Into Target Movieclip Loading Problem
Hi Everyone,

Can someone please help me...

I’m trying to load a SWF movie into a target movieclip called ‘blankmc’.

The SWF movie is loaded from an absolute URL (eg. http://www.somedomain.net/img/20042005113934movie3.swf )

My Loading Progress code fails to detect the SWF file size. However the same code works perfectly for a JPG!

Essentially the .getBytesLoaded() and .getBytesTotal fail to work. Why is this and how can I get it to work for loading SWFs?

//EXAMPLE CODE:

loadMovie( URL ,"blankmc");
blankmc.getBytesLoaded() ;
blankmc.getBytesTotal() ;


//This works with JPGs but not SWFs

Thanks in advance!
J

ps. i am using Flash MX

View Replies !    View Related
External Swf Loading Into Target Movieclip Loading
Hi Everyone,

Can someone please help me...

I’m trying to load a SWF movie into a target movieclip called ‘blankmc’.

The SWF movie is loaded from an absolute URL (eg. http://www.somedomain.net/img/20042005113934movie3.swf )

My Loading Progress code fails to detect the SWF file size. However the same code works perfectly for a JPG!

Essentially the .getBytesLoaded() and .getBytesTotal fail to work. Why is this and how can I get it to work for loading SWFs?

//EXAMPLE CODE:

loadMovie( URL ,"blankmc");
blankmc.getBytesLoaded() ;
blankmc.getBytesTotal() ;


//This works with JPGs but not SWFs

Thanks in advance!
J

View Replies !    View Related
Loading A Swf Mc Into An Empty Target Movieclip
The other day Pellepiano explained how there are two ways of loading external files into Flash. Loading swf files into levels or into movieclip targets.

He recommended the second method which I followed with the help of another person. The problem is that the swf I am trying to load in is a scrolling 360 degree panorama whose speed of scrolling is determined by the position of the cursor. When we load it in it doesn't work and we surmise that the problem is the inability of a swf nested inside another swf to detect the action and the position of the cursor.

If pellepiano is looking in, do you have any suggestions. Or anyone looking in? Any thoughts on this?

View Replies !    View Related
Loading Movieclip To A Target With A Button?
How can I load a movie clip with a btn, basically I would like for a saved swf file to load and play in a target(an empty movie clip used as a place holder) mc with the push of a button. I found a tutorial that showed me how do do it with a list box. Please view this file http://kaiprime.hollosite.com/list%20loader.html#test that i modified with a listbox to see what I am seeking to do with a button. Thank you for all your help

View Replies !    View Related
Scaling A Swf When Loading Into Target Movieclip
Is it possible to scale a swf that gets loaded into a target movieclip?

Or can a swf that has been created at a certain size be scaled down to a new specified size when published?

Thanks for any help.

View Replies !    View Related
Loading Two Movies On One Click Without Target Movieclip
Hi,
I have a main movie on which i have just placed the buttons.By clicking the button i want that my About movie loads and then it calls the Movie named Red in to a taget MC.

How can we do this with Button Scripting?

View Replies !    View Related
Loading An External Swf With Xml Into Target Mc
I am loading an external swf into a target mc. the external swf is the xml slide show from the kirupa tutorials. the xml text shows up, but no pics. what's up?

when i run the slide show by itself it works fine, but when its loaded into the target mc i see the slideshow frame but no pics... is this a problem with the root levels?

any help would be much appreciated.



here is the action script from the slide show:

delay = 3000;
//-----------------------
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
}
};
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
slideshow();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
picture_num();
slideshow();
}
}
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
}
function slideshow() {
myInterval = setInterval(pause_slideshow, delay);
function pause_slideshow() {
clearInterval(myInterval);
if (p == (total-1)) {
p = 0;
firstImage();
} else {
nextImage();
}
}
}


rolotomasi

View Replies !    View Related
Loading External Swf Using Target
hi,
im trying to load a movie.swf into an empty movie clip (called holder) and ive got an action which loads that movie ie loadMovie ("movie.swf", "holder");....it loads it, but the problem is it doesn't load in the right place ie exactly inside the empty movie clip...weird..so i can't position it properly...any ideas?

View Replies !    View Related
Need Assisstance: Loading External .swf Into Target MC.
First, I'd like to thank everyone that has helped me in the past. Much appreciation goes to you!

Now what I need help with is trying to load a movie into a MC which is placed inside my main movie. I've tried every possible way that i can think of to do this and I'm getting nothing. The code that i am using is this:

Code:
on (release) {
_root.contentMC.loadMovie("bio.swf");
}


I really don't understand why it's not working the way that it should. The main button that I am testing obviously is the "bio" button. If you'd like to take a look at the .fla files for both movies to see where I might have went wrong, you can download them from here.


Any help that anyone can spare would really be appreciated. Thanks a million!


*Navigating index_v2.fla*
Open the file in Flash, then click on the folder layer named "interface". Scroll down in the timeline slightly til you come to "bannerMC" layer. Click the lock to unlock the layer. Click on the first keyframe for the "bannerMC" to appear on the Stage. Right click on the MC and choose "edit in place" from the menu. Click on the "navbarMC" layer and unlock it. Click on the first keyframe to make the MC appear on the Stage.
Right click on the MC and choose "edit in place". From there you can access the individual buttons for the bar. Each button is on its on layer. The button in question is the "bio" button. If you right click on that button and choose actions, you will see the code that I mentioned earlier.

View Replies !    View Related
Loading External Mov. With % Loader Into Target
I have a preloader with a progress bar and a percentage. Been working fine until I had to start loading my externals into a target. Now the percentage doesn't work but the progress bar still does. Is there something I'm misssing. I have altered the paths time and again and still no luck. Anyone?

View Replies !    View Related
Loading An External SWF Into A Target Empty MC?
is it possible to load an external SWF into a targeted level? and into an empty MC?...

i tried this

i created an empty MC the same size as the movie... in the loader SWF i loaded the external SWF into that level and MC like root.loadhere where "loadhere" is the blank MC...

it didnt work..however it loaded the external SWF but the position is not where i want it...

and how do u justify which layer..cuz i dont want it to cover the other MC..

any help is greatly appreciated..

View Replies !    View Related
Loading External Movieclip From An External Movieclip Library Into Main Movie?
How do you load an external movieclip from an external movieclip library into a main movie?

I have an external movieclip loaded within a main movie. I then want the external movieclip to be able to take a movieclip from its own library and the load this into another container ind the main movie.

In other words:

A contains B

B contains C

I want a button in B to place C directly in A

How is this done?

View Replies !    View Related
Loading An External .swf Into A Target Movie Clip
Hello,

I have a .swf called "UEFACup". What it does is by using next and previous component buttons it loops through 4 images inside of a "images" folder. If I run the "UEFACup" movie on its own, it does this perfectly.

However,

when I load it into a target movie clip called "blank_mc" by using loadMovie(), and then use those same next and previous buttons to go through images, they display outside of the target "blank_mc". So really, instead of being towards bottom right, they are in upper left and I have no clue how get them to display in the target.

Thanks

View Replies !    View Related
Loading External Swf Into Target Movie Clip
I'm not sure why this isn't working. Here's what I've done:

Start a new flash movie.
Create a box on the stage in it's own layer, convert it to a symbol, select "movie clip".
Give it the instance name myClip.
Apply the actions:
loadMovie("file.swf", myClip);

file.swf loads into the scene, but not at the x/y coordinates occupied by the target movie myClip. Instead, it loads off to the right and down.

I also tried _root.myClip for the target and got the same results.

View Replies !    View Related
Issues In Loading External Swf Into Target Area..
We have planned to do a presentation like http://www.microsoft.com/forefront/e...oducttours.swf and I hope I could manage with the accordion.
But the problem comes in loading of external swfs in the main content area.
Even i am new to action script, I came to know that this involves container movie clip, script for button blah..blah..
I am looking for a step by step tutorial kinda method to follow to achieve this ,as i am new to scripting.
Attached is the so far tried work.

View Replies !    View Related
Loading External.swf Into Nesteed Target Clip Automaticly?
Ok I have movie where a preloader loads the main movie then jumps to the frame that all the action script and main background, nav, essentials live.

As that frame gets hit it runs a function that checks to make sure that the index_mc is the initial active MC and slides that into position where it's supposed to be.

Here is my problem, I have been trying to figure out a way to automaticly load an external.swf into a placeHolder_mc that sits(nested) in the index_mc so that as the index_mc slides into place the external.swf loads into placeHolder_mc.

I know to use loadMovie and how to target the right clip but what is the event that I should use to trigger the loadMovie?

I have tried a bunch of different ways of doing this but being a novice I am not sure what I am doing wrong. If anyone could help me I would be unbelievable thankful.

View Replies !    View Related
Loading External Movie In A Target Window With Its Size
Okey I have a root movie and when I press button my external movie loads:
on (release) {
loadMovie ("logo.swf", "main");
}

The name of movie is logo.swf and I wanted it to load in a specific target window which in that case would be main (a movieclip symbol). Problem is that it get rids of window (which is fine) but it also loads movie with its original size. So I have a root movie with something on right corner that looks like logo. But I want it to be in the window with size of that window. So how do I do load movie into spefic target with target's size.

View Replies !    View Related
Loading An External Movieclip
I load an external movie within a fla. but when is loaded appears on the topleft corner, I guess is the default position.
what I am trying to do is to load it , but not in the default position.
I hope to be clear.
Thank´s


__________________
jerry

View Replies !    View Related
Loading A Movieclip In External Swf
Hi!

For a site I need three different swf files, but i need a button in the one swf file to trigger a movieclip in the two others.

(In case of bade explanation:

Pushin button in one flash file

Starts/stops movieclip in a two other flash files)


Thanks for the help, really need it!

View Replies !    View Related
Loading External Movieclip
Okay, i'm trying to load an external swf into an empty movieclip onto the _parent timeline. the function loadswf uses the global variable "movie"

how could i go about doing this, with a loading bar and all?


in short, i guess i'm just asking how to load an external swf and have a loader monitoring the progress of that.

this is the code that i wrote but it doesnt work.


Code:
stop();
function loadswf(movie){
delete content_mc;
_parent.createEmptyMovieClip(content_mc,1);
_parent.content_mc._x = 50;
_parent.content_mc._y = 100;
loadMovie(movie,content_mc);
loaded = movie.getBytesLoaded()/movie.getBytesTotal();
percent = Math.round(loaded*100);
percenttext = percent+"%";
bar._width = loaded*(50+percent);
percenttext._x = percent-5;
if (!movie){
stop();
trace("movie has failed to load");
}
if (loaded >=1){
gotoAndPlay(22);
}


}
loadswf(movie);
can anyone help?

View Replies !    View Related
Help Loading EXTERNAL Swf Into A MOVIECLIP
How do i load an external swf into a movieclip ??
PLEASE!!!

View Replies !    View Related
Loading External Movieclip
I have a page that I want to load external swf. I want the external swf to load at a certain point in the timeline and loop, even though the rest of the page has stopped its animations. Also I want it to load automatically without a user prompt. Each time I try it I cant seem to get around flash wanting a onclip event any ideas?:confused

View Replies !    View Related
Loading External .swf Into Movieclip
Hi -

My problem is as follows:

I have a movie.
Wihtin this movie i have 6 movieclips.
Each movieclip contains a button, which launches a blank field.

How do i load an external .swf into one of the movieclips, (not the main stage), without replacing anyhing, so that the external .swf (a textfield) loads inside, and on top of, the movieclip?

And how do i unload it again?

Thanks,
Jan

View Replies !    View Related
Loading External Movieclip After The First
How can I load an external movieclip into the stage after the first movieclip has finished loading on the stage?

I want to do during startup to play this movieclip and once the movieclip has finished playing, immediately the 2nd external swf loads in and play on the stage.

I did not want to do all on a SWF itself as it consumed too much disk space as it is supposed to go onto the web.

Any help and codes will be deeply appreciated!

View Replies !    View Related
Loading An External Movieclip And Communicating Between Them
I'm having difficulty getting a movieclip loaded with the loader to communicate with the movieclip that loaded it..

Let's just say we load an mc called mc2 somewhere onto the stage.
Now on the stage we have a function called testme..


Code:
var mcLoader:Loader = new Loader();
var url:String = "mc2.swf";
var urlreq:URLRequest=new URLRequest(url);
mcLoader.load(urlreq);
addChild(mcLoader);
mcLoader.contentLoaderInfo.addEventListener(loaderEvent.complete,finloading);

function finloading() {
trace("finished loading mc2");
}

function testme():void {
trace("Callback function from mc2 works");
};
The document class for mc2 looks something like this :

Code:
package {
import flash.display.MovieClip;
public class mc2 extends MovieClip{
var thisref;
function mc2 ():void {
thisref = this;
trace("my parent = " + thisref.root);
trace("parent of my root? = " + thisref.root.parent);
// try and run test
thisref.root.parent.runme();
}
}
}
This really shouldn't be all that difficult , there must be a simple way to do this... Does anybody have any ideas ? Thanks.

View Replies !    View Related
Loading External MovieClip - TotalFrames
Hi,


I am new to Flash/Actionscript.

I have one problem concerning MovieClips that I can't seem to solve regarding loading external MovieClips.

I have cut a MovieClip from a tutorial fla's library and pasted into my own fla. The movieclip is an animation and has 3 frames, a different image on each frame.


Using AS3 I can create an instance of that movieclip:



ActionScript Code:
var myClip:MovieClip = new spaceMan();


I can then extract the number of frames the movieclip has by using myClip.totalFrames. This all works and returns "3" as it should.


However, I have been trying to experiment with loading external movieClips into my application.

So I exported the movieClip by right clicking the item in the library and clicking "Export flash movie".


If I now load the MovieClip into my application from this external source, the loaded movieclip only has 1 frame, rather than 3.



The code I am using to load the moveclip back in is:




ActionScript Code:
m_loaderObj = new Loader();
m_loaderObj.contentLoaderInfo.addEventListener(Event.INIT, assetLoadedListener);                   
m_loaderObj.load(new URLRequest("spaceMan.swf"));


private function assetLoadedListener(e:Event):void
{
    m_movieClipRef   = MovieClip(e.target.content); 
    trace(m_movieClipRef.totalFrames);      // is 1 rather than 3!                   
}


Can anybody tell me what I am doing wrong?


Many thanks for any help.

View Replies !    View Related
Loading An External Image Into A Movieclip.
I may be missing something painfully obvious here but I cannot seem to find it.

Basically I want to pull in an external image, place in in a movieclip on my stage and have it actionable, as in have that movieclip performs actions for example be moveable around the stage by the user. However when I load in an image onto the mc it becomes static, almost part of the background, regardless or what actions are set on the mc.

Can anyone help here please?

View Replies !    View Related
LoadMovie- Loading An External Swf Into Movieclip In AS3
m extremely frustrated.........im trying to do something that was once very simple, which has now become over complicated unecessecarily.....i want to do a simple loadMovie type action and load an external clip into a movieclip called ph. my AS2 code would be:

loadMovie("ExternalMovieClip.swf","ph");

or

on(release) {
loadMovie("ExternalMovieClip.swf","ph");
}


This no longer works. Can somebody tell me the new code that i would use with AS3 to do exactly what i just demonstrated? I honestly dont even want to touch AS3. The only reason i want to use it is because it makes skinning the components SOOOOOO much easier than AS2. That is the one and only reason im trying to convert to AS3. All the new load movie AS3 examples ive seen on google look like half a page long to do what i used to do in 2 lines. There must be a simpler and much easier way. I am a designer. It looks to me like Adobe went back to making flash for programmers only again leaving us designers out of the mix. Someone please help me, im desperate. I also have other old code that im sure im going to have to convert to AS3 for it to still work, and i may eventually need help with that as well, but ill stick with this loadMovie problem for now. Any and all help is appreciated. Thanks

View Replies !    View Related
LoadMovie- Loading An External Swf Into Movieclip In AS3
Im extremely frustrated.........im trying to do something that was once very simple, which has now become over complicated unecessecarily.....i want to do a simple loadMovie type action and load an external clip into a movieclip called ph. my AS2 code would be:

loadMovie("ExternalMovieClip.swf","ph");

or

on(release) {
loadMovie("ExternalMovieClip.swf","ph");
}


This no longer works. Can somebody tell me the new code that i would use with AS3 to do exactly what i just demonstrated? I honestly dont even want to touch AS3. The only reason i want to use it is because it makes skinning the components SOOOOOO much easier than AS2. That is the one and only reason im trying to convert to AS3. All the new load movie AS3 examples ive seen on google look like half a page long to do what i used to do in 2 lines. There must be a simpler and much easier way. I am a designer. It looks to me like Adobe went back to making flash for programmers only again leaving us designers out of the mix. Someone please help me, im desperate. I also have other old code that im sure im going to have to convert to AS3 for it to still work, and i may eventually need help with that as well, but ill stick with this loadMovie problem for now. Any and all help is appreciated. Thanks

View Replies !    View Related
Loading An External Image Into A Movieclip.
I may be missing something painfully obvious here but I cannot seem to find it.

Basically I want to pull in an external image, place in in a movieclip on my stage and have it actionable, as in have that movieclip performs actions for example be moveable around the stage by the user. However when I load in an image onto the mc it becomes static, almost part of the background, regardless or what actions are set on the mc.

Can anyone help here please?

View Replies !    View Related
Loading External Text Into A MovieClip?
Hello everyone. I have a little problem which I will try to explain as best as I can.

I downloaded a nice scroll bar from this site http://www.flashscaper.com/blog/?p=3.

And here I have some code for loading external text files into text fields:


Code:
var textContainer:Sprite = new Sprite();
textContainer.x = 30;
textContainer.y = 150;
addChild(textContainer);

var tContent:TextField = new TextField();
tContent.width = 350;
tContent.height = 220;
tContent.wordWrap = true;
tContent.autoSize =TextFieldAutoSize.LEFT;
textContainer.addChild(tContent);


var cssLoader:URLLoader = new URLLoader();
var cssRequest:URLRequest = new URLRequest("myCSS.css");
cssLoader.addEventListener(Event.COMPLETE, cssLoaded);
cssLoader.load(cssRequest);

function cssLoaded(evt:Event):void{
var css:StyleSheet = new StyleSheet();
css.parseCSS(URLLoader(evt.target).data);
tContent.styleSheet = css;
}

var welcomeLoader:URLLoader = new URLLoader();
var welcomeRequest:URLRequest = new URLRequest("my.txt");
welcomeLoader.dataFormat = URLLoaderDataFormat.TEXT;
welcomeLoader.addEventListener(Event.COMPLETE, welcomeLoaded);
welcomeLoader.load(welcomeRequest);

function welcomeLoaded(evt:Event):void {
tContent.text = welcomeLoader.data;
}
What I want to do is load an external text file that uses that scrollbar, but that scrollbar is made to be used on a movie clip so that images can go along with text.

The only actionscript that goes inside the scrollbar's fla file is:
Code:
sb.init(txt_mc, "easeOutBack",2,true,2);
sb is the instance name for the scrollbar and txt_mc is the instance name of the movie clip in which the text goes.

I have been playing for a long while with this until I got pretty frustrated.
Hopefully someone could help me.

View Replies !    View Related
Loading External Movies From Inside A Movieclip...
Hi people,

I am in the middle of a project and having a serious problem with the interface.
Basically the interface is consists of a fla movie called index. This looks like a cd set half way of its box, this movie pulls in another fla movie for the cover (cover.fla) and another for the main content (showcase_main.fla). There is also a diary section that I want to load over main content (its called diary.fla). The problem is this: Since the main menu is inside a movieclip on the index stage I can not figure out how to make this menu control the loading of other fla movies (ie diary.fla) into the index stage, basically what I want to do is be able to click on the main menu “diary” so that this loads the diary.fla over the showcase_main.fla on the index stage. I know this may sounds confusing so I have attached the files for someone to look at. Can someone please help? Your time is greatly appreciated. Thanks.

G’luck.

View Replies !    View Related
Loading Movieclip Using External Text File And XML
Hi everyone.

I have an external text file that loads a movieclip into the text area of my flash movie. The text file uses the following XML:

web="<img width='*' height='*' src='webthumbs' hspace='25' vspace='0' align='left' />";

I have this working fine except for one thing. When the movieclip loads into the text area the images that are in my movieclip appear tiny instead of their real size.

The movieclip I am loading is an internal movieclip which means that its canvas size is the same as the rest of my movie. Where I have the *'s for width and height I have tried everything under the sun to try and manipulate the size of the images but to with no success. Does anybody know how to get the images in my movieclip to appear their actual size? I am really baffled |

thanku
millala

View Replies !    View Related
Loading External Swf Into An Empty Movieclip With Problems?
Hi guys,

I would like to loadMovie an external SWF into a specific Movieclip, but I fail, as only part of the external SWF is loaded.
The external SWF, testnews4.swf has only one scene. Its size is only 180 X 120 pixels which is smaller than the main movie. The size of the Movieclip included in the main movie is also 180X120.

The code I use is:

loadMovie("testnews4.swf",_level0.Movieclip);

I also tried with :
loadMovie("testnews4.swf",_parent.Movieclip);

and with
loadMovie("testnews4.swf",”Movieclip”;

I enclose the testnews4.fla.

How could i possibly do that?

Many thanks for your help.

Raoul

View Replies !    View Related
[MX04] Loading External URL Into Empty Movieclip?
I'm trying to load an existing webpage using the loadMovie command into an empty movieclip.

I thought this would be easy, but I can't seem to get the code to work and have tried several variations of the code below....

//catrun_mc=the empty movieclip//

catrun_mc.loadMovie.getURL("http://www.website.html");

View Replies !    View Related
Loading External HTML Files Into A Movieclip
Hi,
Im making a website for a client and he wants me to set it up so that when you click on a button it will load up a html file into a flash Movieclip. Does anyone know how to do this, if so could they please help me. Thankyou !

Jimmy

View Replies !    View Related
Loading External HTML Files Into A Movieclip
Hey,
I need to know how it is possible to make a button so that when you click on it, it will load a external HTML file into a movieclip. If anyone knows how to do this could they please help right away, cause if been tryin to figure it out for weeks and my client needs to see a copy of it tommorow. Please, please help

Thankyou in advance Jimmy

View Replies !    View Related
Loading External Movieclip Into Layer And Going To Frame
I am trying to load an external movieclip into layer10 which is working fine using:


on (release) {

loadMovieNum("worksheets.swf",10);
}

However I want the movieclip to go to a particular frame or label depending on what button instance it is called from on my mainmoive. Everything I have tried is not working. Any help would be appreciated.

View Replies !    View Related
Loading Large External Swfs Into A Movieclip
Hello!
Does anyone know how to large external swfs with multiple associated files into a movie clip.

The folder would look like this:
Folder 1/folder1.swf, 1.swf, 2.swf etc
Folder 2/folder2.swf,1.swf, 2.swf etc
Folder 2/folder2.swf, 1.swf, 2.swf etc
Folder 3/folder3.swf,1.swf, 2.swf etc

Start.fla

The Start.fla cannot seen to find the other swf files when I use
on (release) {
gotoAndPlay(6);
_root.location.LoadMovie("Stock Comp/A&A Stock Comp.swf", 1);
}
//play &A Stock Comp.swf
Thanks in Advance

View Replies !    View Related
Loading External Movies From Inside A Movieclip...
Hi people,

I am in the middle of a project and having a serious problem with the interface.
Basically the interface is consists of a fla movie called index. This looks like a cd set half way of its box, this movie pulls in another fla movie for the cover (cover.fla) and another for the main content (showcase_main.fla). There is also a diary section that I want to load over main content (its called diary.fla). The problem is this: Since the main menu is inside a movieclip on the index stage I can not figure out how to make this menu control the loading of other fla movies (ie diary.fla) into the index stage, basically what I want to do is be able to click on the main menu “diary” so that this loads the diary.fla over the showcase_main.fla on the index stage. I know this may sounds confusing so I have attached the files for someone to look at. Can someone please help? Your time is greatly appreciated. Thanks.

G’luck.

View Replies !    View Related
Loading An External .swf Into A Movieclip And Exchanging Variables Between The Two
Hello,
I have searched for this and I seem to be having troubles finding the answer.

Ok, lets say i have a Main.swf

within the _root of Main.swf, I load another external flash file called Timer.swf into a MovieClip titled 'container'

Now, I lets say i want to share variables between the two. How would I do this? (Like lets say Main.swf wanted to know the value for Timer.swf's variable called xTime and Timer.swf wanted to know the value for Main.swf's variable xtimezone )

Any help, GREATLY appreciated.

kutyadog

View Replies !    View Related
[Loader Class] Loading External Swf Into MovieClip
Hello everyone,

I'm a newcomer to Flash and so far I've only encountered this problem which I can't seem to obtain an answer from online resources.

I'm loading an external swf into a MovieClip object I have on stage. The external swf is a simple flash that just flips between two graphics when I press a button symbol I created. This flash file works flawlessly when seen alone. The button symbol instance has MouseEvent listeners.

When loading the external swf directly onto the stage it works as expected. The button instance inside the external swf is responsive. But when I load it into an empty MovieClip I have on stage, the button instance is no longer responsive (hoovering over it doesn't change its color, for instance. And it doesn't respond to mouse clicks anymore).

I gather this is because the mouse event dispatcher hits the MovieClip object and doesn't move inside its children. But I don't know how can I solve it


Code:
var clip:MovieClip = new MovieClip();
var mcLoader:Loader = new Loader();

/* ... later, at Event.COMPLETE ... */

if (contents_mc.numChildren > 0) contents_mc.removeChildAt(0);
clip = MovieClip(mcLoader.content);
mcLoader.unload();
contents_mc.addChild(clip);
contents_mc is the empty MovieClip I have on stage that I'm trying to act as a container for external swf files. The above code is a cutout version with the bits I think are important for you to understand how I'm loading the external swf.

When I change the code for the clip:MovieClip object to be added directly to the stage instead, all works fine and clip:MovieClip contents are responsive to mouse events.

View Replies !    View Related
Loading External Movies From Inside A Movieclip...
Hi people,

I am in the middle of a project and having a serious problem with the interface.
Basically the interface is consists of a fla movie called index. This looks like a cd set half way of its box, this movie pulls in another fla movie for the cover (cover.fla) and another for the main content (showcase_main.fla). There is also a diary section that I want to load over main content (its called diary.fla). The problem is this: Since the main menu is inside a movieclip on the index stage I can not figure out how to make this menu control the loading of other fla movies (ie diary.fla) into the index stage, basically what I want to do is be able to click on the main menu “diary” so that this loads the diary.fla over the showcase_main.fla on the index stage. I know this may sounds confusing so I have attached the files for someone to look at. Can someone please help? Your time is greatly appreciated. Thanks.

G’luck.

View Replies !    View Related
Dynamic Movieclip Not Loading External Image?
Hope someone here can help me! :lol:

I made a post in the Flash - Actionscript forums over at Adobe and thus far have not got a reply...

I'm making a little map with marked points.... the map image loads in "zone_mc" but the currGatherable does not seem to load or at least does not show up, loading to "Gatherable_mc"...

Where did I go wrong?

See the below code for refference...

Code:

function GenerateMap(map_xml) {
   var a_zone = map_xml.firstChild.childNodes;
   for (var i = 0; i<a_zone.length; i++) {
      var a_zone = a_zone[i];
      _root.createEmptyMovieClip("zone_mc", 20);
      _root.zone_mc.loadMovie(a_zone.attributes.image);
      //load the map
      var Gatherable = a_zone.childNodes;
      //try to load the Gatherable items
      for (var g = 0; g<Gatherable.length; g++) {
         currGatherable = Gatherable[g];
         _root.zone_mc.createEmptyMovieClip("Gatherable_mc", 10);
         _root.zone_mc.Gatherable_mc.loadMovie(currGatherable.attributes.Icon);
         _root.zone_mc.Gatherable_mc._height = 16;
         _root.zone_mc.Gatherable_mc._width = 16;
         _root.zone_mc.Gatherable_mc._x = currGatherable.attributes.XPos;
         //set the gatherable X
         _root.zone_mc.Gatherable_mc._y = currGatherable.attributes.YPos;
         //set the gatherable Y
         //load the gatherable Icon
         trace(currGatherable.attributes.Icon);
         trace(currGatherable.attributes.XPos);
         trace(currGatherable.attributes.YPos);
      }
   }
}
var map_xml = new XML();
map_xml.ignoreWhite = true;
map_xml.onLoad = function(success) {
   if (success) {
      GenerateMap(this);
   } else {
      trace("Error loading XML file");
   }
};
map_xml.load("new_nodes.xml");


Code:

<zone>
      <a_zone name="Elwynn Forest" image="http://localhost/gatherer/images/zone/Elwynn.jpg">
        <Gatherable Gtype="Ore" XPos="170" YPos="202" Icon="http://localhost/gatherer/images/ore/OreCopper.png" GatherableName="Copper - Requires Mining level 1" />
        <Gatherable Gtype="Herb" XPos="150" YPos="425" Icon="http://localhost/gatherer/images/herb/HerbSilverleaf.png" GatherableName="Herb - Requires Herbalism level 1" />
        <Gatherable Gtype="Treasure" XPos="256" YPos="488" Icon="http://localhost/gatherer/images/treasure/TreasureChest.png" GatherableName="Treasure Chest" />
      </a_zone>
    </zone>

View Replies !    View Related
Loading Specific Frame (within An External Swf's Movieclip) Flash 5
Flash Gurus,

I need to load a picture (in a specific frame) that is located in an external swf's (External.swf) movieclip, which I have named "MC_External".

In the main movie (Main.swf), the event button is sitting in a movieclip called "MC_Timeline".

I have loaded the external movie using one of the buttons on the stage:

on (release) {
targetx = 560;
loadVariablesNum ("Intro.txt",0);
unloadMovie(1);
loadMovieNum ("External.swf", 1);
}

And in the "MC_Timeline" movieclip, I have several buttons and I would like for each button to load specific event text and a picture that is sitting in the external swf's movie clip ("MC_External") Here is the code:

on (release) {
loadVariablesNum ("Events/Event1.txt", 0);
tellTarget (MC_External) {
gotoAndStop (2);
}
}

The text loads fine but not the picture. What did I do wrong?

I'm using Flash 5.

Thanks in advance!

View Replies !    View Related
Loading External Text File.. Into A Movieclip...that Is In A Scrollpane..
Ok, I am perplexed...

I can get the external text to load when I put a dynamic text box on the main stage. But when I try to load the external text into a text box that is in a movie clip that is the content for a scrollpane, it does not show up....

I'll try to illustrate...

on the mainstage, I have the following script in a keyframe.


Quote:




loadVariables("flash/text/portfolio.txt", "");




the variable is


Quote:




&portfolio=yada yada




on the mainstage I have the scrollpane component.

The scrollpane is going to scroll the movie clip "scroller"

The scrollpane works fine. But I cannot for the life of me get the text "yada yada" to show up within the textbox that is in the movieclip "scroller"

The following is the link to what i'm trying to do.

The link to download the FLA is below it.

http://www.dkbds.com/dkb/help/portfolio.html

Thanks in advance

View Replies !    View Related
Loading External Html Text Into Movieclip Headache
I'm trying to load some simple html text into a dynamic text box which is inside a couple of movieclips.

The code works perfectly if the textbox and the code is both on the main timeline, but does not work if i move the textbox inside a couple of movieclips leaving the load code on the main timeline.

The code im using is


ActionScript Code:
myData = new LoadVars();
myData.onLoad = function(){
    _root.towers_mc.covers_mc.contactText.html = true;
    _root.towers_mc.covers_mc.contactText.htmlText = this.contact;

};
myData.load("content.txt");
contact is the name of the variable in the text file

But this code just leaves the text box empty.

I know its probably a really simple fix, but ive had hours of headache trying out different methods.

Any help is much appriciated, Thanks very much.

View Replies !    View Related
Loading + Storing An External Image As A MovieClip, Then Displaying It Later
I have a class:


Code:
class Component
{
var image_mc:MovieClip; // the image data itself
var image_filename; // filename of the image

function Component(filename)
{
image_filename = filename;
image_mc = new MovieClip();
loadMovie("http://localhost/" + image_filename, image_mc);
}
}
Then in some other code, of course, the object is created:


Code:
var _root.foo:Component = new Component("helloworld.jpg");
How can I display root.foo’s image (imagemc) on the stage at some point down the road? I have tried something similar to root.add(root.foo.image_mc); and that didn’t work (not even if I set the _x, _y, and _visible variables of the imagemc member).

View Replies !    View Related
Loading External Swf File To Movieclip And Size Problem
Hi,
I am loading a swf file using the following code:

objects[objname].bbb.removeMovieClip();
objects[objname].createEmptyMovieClip("bbb", 999);
objects[objname].bbb.loadMovie("fan.swf");

//it is not working
objects[objname]._height = height_i;
objects[objname]._width = width_i;
//

but this code didn't work correctly.MovieClip's size is changing by itself.

regards,

View Replies !    View Related
Loading External SWFs Controlled By MovieClip Buttons.
Wutsup doods,
Alright this is pretty much the last thing I am going to need help with for my site, so anyways, I basically made movie clip buttons to navigate through my site, has sounds and all...now all i need those buttons to do is to call out a .swf file from a certain directory. I know how to do this with the traditional button, but not with a movie clip button since it requires a function. This is what I have tried and failed with so far:

__________________________________________________ ________

// PROFILE SECTION BUTTON //

this.profile_mc.onRollOver = function(){
profile_mc.gotoAndPlay("_over");
}

this.profile_mc.onRollOut = function(){
profile_mc.gotoAndPlay("_out");


this.profile_mc.onRelease = function() {
profile_mc.loadMovie ("profile.swf","placeholder_mc");
}

// PROFILE SECTION BUTTON //
_ __________________________________________________ _______

The 1st two lines of code work which controls the animation of the button, but the last script is where I am confused. I want to load the external swf "profile.swf" into the "placeholder_mc", so yeah that is the problem.

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved