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




[F8] Attaching Mc Problem



i have a movie clip within the main movie clip that attaches a movie clip from the library. the main movie clip rotates with actionscript. the attached movie clip also rotates with the main movie clip. i do not want this to happen. i want the attached movie clip to stay at the cooridinates that it was attached at. i tried attaching the movie clip at the root level by nesting the movieclip inside another one and specifying the original x and ys of the attacher movie clip. the attached movie clip is supposed to load at those coords. it doesn't work. the coords that it uses for the original coords are the coords of the main stage, not for the movieclip which is where the coords are set.

please help me?



FlashKit > Flash Help > Flash Newbies
Posted on: 04-11-2007, 08:42 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Attaching MC From Other Swf
In my main swf i loaded another swf file with loadMovie command, and and from this movie i need to attach some MC to one MC in main swf. can i do this??

Attaching .jpg
I am having some weird problems loading .jpg files with loadMovie().

1.I download an image off the net to put in my movieClip.

2.Depending on the individual jpg, some will display and some will not(also I get no file not found errors).

3.Furthermore, lets say one displays. If I go to resize it in photoshop and then run the flash movie again it may or may not display.

I am !&#*in' confused.

Attaching A MC Into Another MC.
Basically I just want to attach a movie from the library into a movie clip on the stage.

Attaching A Pdf
I want to attach a pdf so that when a button is clicked the pdf appears. This is not on the internet but on a CD with a flash movie on it. Right now the PDF appears but thru a browser because of the script.

on (release) {getURL("englishfinal.pdf");

but I don't know any other way. I just want it to open in adobe reader not a browser window.

Attaching .jpg
I am having some weird problems loading .jpg files with loadMovie().

1.I download an image off the net to put in my movieClip.

2.Depending on the individual jpg, some will display and some will not(also I get no file not found errors).

3.Furthermore, lets say one displays. If I go to resize it in photoshop and then run the flash movie again it may or may not display.

I am !&#*in' confused.

Attaching A Movieclip
How do you use the attachmovie action.
The flash actionscripting ref book is very vague.

I know how to first name my movieclip for sharing by selecting my mc in the library and right-clicking to linkage, export this symbol, and giving it a name.
What happens next?

What do you attach the code to?
The mc in which the new mc will appear?
How do you know where about in that mc it'll appear. (top, bottom, middle????)

Please advise. Need tutorial!!!!

Attaching To Moving Obj?
Is there any way to attach, say, a square to a circle that moves by motion tween? I want the square to be able to trail behind the circle. Please excuse my obvious newbie-osity.

Attaching Sounds
I have a movie that loads many different SWF's (like a slide show) that all use the same sounds. I want to keep all of the sounds in the main movie and just call them from the SWF's in frame actions so that they don't have to keep being loaded each time. I am a bit lost in this area. Can anybody help??
[Edited by rockstar on 04-24-2002 at 10:30 PM]

Attaching Movies
Ok, I've a big problem with the method .attachmovie
I tried some settings, but it seems that this method works only with objects (correctly concatenated with an IDname) in the same level of the target movie.
This is what I would make:
- In my main timeline, I create an empty movieclip
- I Make an external swf with some objects concatenated with an IDname
- I Load this external swf on _level1 of my main timeline
- From _level1 I wish to attach one of my concatenated objects to the empty movieclip on _level0, but it doesn't work !!!!


HEEELP MEEEEE

Attaching A Movie
Hey guys, i've got a prob and i'm totally stumped
instead of trying to confuse everyone with a long winded description, i'll just poste the code and my prob.


Code:
onClipEvent(load){
max=4
i=0
px =260
py =0
}
onClipEvent(enterFrame){
if(i < max){
j="jeep"+ i
jimg =j+".jpg"
jlnk = "jeeppics/" + jimg
attachMovie("Misc","misc"+i,10+i)
mov="misc"+i
mov._x= px+10
mov._y = py
px += 100
i ++

}
}
ok basically, it loops throu 4 at a time, and should place the mc's 10 px apart, but when i "trace(mov._x)" i get undefined. Now if i change "Mov._x.." to read "misc0._x=..." it sticks it in its place. Otherwise, it seems like the mc's just pile up on eachother. any help would be great!
thanks a bunch

Attaching A Clip
using flash 5
need to attach a clip to a movie but I don't want it covering everything else.
attachMovie(arrayLinkage[i], "articleText", 50);
I am unsure of what level I should put in the spot where 50 is.... I don't know what levels all the
rest of my stuff is on.
is the level number the same as the layer number or are they 2 totally different things? If they are then is there any way to find out what level a specific movie clip is on?
I forgot what numbers half my layers were anyway.
to get to the point I just want to find out how to attach a clip beneath certain clips that are already in my movie.
Thanks in advance,
-Fireborn

Attaching Sound
I have a problem attaching sound to my movie....I'm trying to figure it out but im not too sure exactly what to do...i did what it said in the actionscript dic. and it didnt work...

Can anyone help???
Thanks.

Attaching To Email
Hi,

Is it possible (because I don't think it is), to set an email up (with using getUrl, and mailto so that it has an attachment??, is it possible to send to it an relative/absolute path, and the email program attaches that file to the email automatically??

thanks again.

phil.

Attaching Fla Files
Is there any way to attach an fla. file so that someone can download it or view it from the forum? If I have to make it into a zip, how do I do it? I have a mac and I use osx, and I use flash MX. help!

Attaching Movies
This is probably a newbie question but I tried to work it out myself to no avail so here it is.

I've got a a bunch of buttons and a picture tv screen above them. I've also got a bunch of movie clips with words that fade in (meant to be placed on the tv screen) when the mouse goes over the corresponding button.

Say I wanted a movie clip of the words fading in (exported with "wHome" as the identifier) to play when the mouse goes over the home button and to dissapear when the mouse rolls out, what would the action script look like?

Thanks in advance.

-Tom

BTW, I'm using Flash 5.

Attaching A Quicktime(.mov) To An .swf
how can i attach a quicktime movie(actually several quicktime movies) in a .swf file? in my project i have a tv and i want the buttons to play different movies on the "screen" of the tv. any advice will be greatly appreciated!

Attaching Movie
Hi,

I want to Attach lots of movie clips, to another movie clip. But I only want them to be attached to the 2nd frame of the parent clip, if that makes any sense, so I can jump to the 1st frame of the parent clip, which will be blank to turn them off, how would you do that?

I've tried putting another clip on the 2nd frame of the parent clip, and then attaching them all to that clip on the 2nd frame, but it doesn't work.

thanks

phil.

Help With Attaching Sound
Hi! What I want to be able to do is dynamically load an external mp3 automatically. I found how to do it by clicking a button but how do you do it so that it starts loading when the movie starts playing? Greatly appreciate any help!

Thanks!
Abbe

Attaching An MC To The End Of A Textfield
Hi,
i have a problem here, which is i have an MC, blogentry.
it contains 2 textfields both dynamic which will receive content from sql, and both autosize.
thing is after the 2nd text field, i need to attach another MC, blogcomment which contains basically the 'posted by <author> at <date> ' .
but i am having trouble finding a way to program the coordinates of MC Blogcomment such that it will stick to the lower right corner of MC Blogentry. Anyone got any ideas?
what i tried initially was set a variable, start_pos = blogentry._y + blodentry._height;
and blogcomment._y = start_pos;
apparently it did'nt work. at least not on the web server with the real time data

Attaching A Class To A Mc
hi all,

i want to attach a class to an mc.

i figured out that it works when i do that manually in the the linkage props of the mc.

when i the attach it, it works.

but, how can i do that dynamicly.

thanx for any answers

marcel

Attaching To Email
Im a litlle confused. Im building a site it flash. But Instead of building it for the flash preveiw i built it for the html preveiw. Is that alright. I wasd trying to make it scroll and the html option worked.
Anyway i cant get the HTML file to attch to my email . like a n swf. Any suggestions?

Rotation And Attaching MC's
Hi all,

2nd post in 1 night (I'm on a roll!!!). Ive made a skeleton type person constructed of limb MCs and a torso. I want to be able to rotate each of these limbs, but have them attached at the specific ends to a specific MC.

The leg bones connected to the, hip bone, the hip bones connected to the... etc (had to fit that in lol).

Any suggestions?

Cheers

Attaching Sound
Hey

i want my website user to rollover a button and hear a sound, but as usual i dont know the coding for it

What could it be? I know it will be a simple thing but i cant figure it out (after 10 mins of brainstorming). Any help will be grateful.

Thanks TedTLogan

Attaching Problem
I have 2 Layers. One backgroundlayer and another with an object on.
I've alsow attached a Mc( with attachMovie() ). When playing this movie, the Mc i've attached appears above the 2 Layers. But I want it to appear between those layers, so that the object lies above the Mc.
How do I do this?

Attaching An Mc To The Mouse
What I want is a screen which has an MC, containing a graphic on the stage. When a user clicks this mc I want it to attach to the mouse so that as the mouse moves, it drags the MC with it.

But there's a twist! The MC needs to attach to the mouse at the area where it is clicked!

Is this easy?

Attaching A MC To The _moving A Mc With The _x Value Of Another MC
Hi
using MX 2004

I have a loading bar and I want to attach another mc to the end of the bar. So as the bar loads in and moves from left to right, and I want the mc to move with the right side of the bar.

I haven't got a clue how to do this... so any help is greatly appreciated

Attaching To An Email
hi flashers

i have created a signiture banner in flash, all works well. the client now wants to attach this to every email that is sent out by any member of their company... could someone point me in the right direction as to do this? or any advice as to what to suggest?

thanks in advance...

tasvino

Help With Attaching Rollover Sfx
im trying to attach a sound efx to the following actionscript. im stumped as to how i would go about doing this. thanks in advance

PHP Code:



on (rollOver) {
    gotoAndPlay(2);

}
on (rollOut) {
    gotoAndPlay(6);
}
on (release) {
    gotoAndStop(11);
    if (_root.Portfolio_btn._currentFrame == "11") {
        _root.Portfolio_btn.gotoAndPlay(6);
    }
    if (_root.Prints_btn._currentFrame == "11") {
        _root.Prints_btn.gotoAndPlay(6);
    }
    if (_root.Links_btn._currentFrame == "11") {
        _root.Links_btn.gotoAndPlay(6);
    }
    if (_root.Contact_btn._currentFrame == "11") {
        _root.Contact_btn.gotoAndPlay(6);
    }

}






DJSTYXX

Attaching Mc -> Levels...
So I made this movie...

The mc's are attached dynamically using attachMovie(). Try clicking one of the large mc's (it only works once). As you can see I need to set the selected mc's level to a level that is in front of the rest of the mc's as I want the selected mc in front of the rest.

Is that possible? And if yes: How?

(Tried searching the board but couldn't find any answers there. Maybe my searching skills need a littel refinement? Still - help would be greatly appreciated...)

Attaching Sound...
Hi there...
I am building a basic flash site that has music playing in the background. I have an ON / OFF button incase someone wants to turn the button off. My question is....once you have turned it off...if you go back and turn it on, is there any way to have it resume playing from where it was stopped or is for it to start over from the beginning the only option?

thanks for any ideas or answers =)

Kari

[Help] Attaching An MC To An MC In The Library
Hey guys, I was wonderinf if its possible to add an MC to an MC thats in the library.

Say I had "closetMC" inside of the library and I wanted to add "shirt1" from the timeline into "closetMC". Is this possible? And if so, how could I achieve this?

Thanks a bunch!

AttachMovie Not Attaching Anything
I have been wrestling with this for two days now and cannot figure out what I am doing wrong. This function loads and image into the movie. The idea is the add a border around this image by using the attachMovie() method. However, this is not working. Everything in this function works perfectly except for the attachMovie() call - which does nothing. I have highlighted the lines in question. In this case "ImageMenu" is the linkageID of a movieclip I have created in the library.


Code:
function AddImage(Gallery, Image) {
var Canvas = _root.skin.Canvas.Images;
var ImageMenuTemplate = _root.skin.ImageMenu;

var CurDate:Date = new Date();
var ImageMC = Canvas.createEmptyMovieClip("Image"+CurDate.getTime(), Canvas.getNextHighestDepth());

var ImageLoader = new MovieClipLoader();
ImageLoader.onLoadInit = function(targetMC) {
var Width = targetMC._width;
var Height = targetMC._height;

targetMC._x = (675/2)-(Width/2);
targetMC._y = (425/2)-(Height/2);

// Create an outline around the added image
var OutlineMC = targetMC.createEmptyMovieClip("Outline", targetMC.getNextHighestDepth());
with(OutlineMC) {
_visible = false;
lineStyle(3, 0x00FFFF, 100);
moveTo(0, 0);
lineTo(Width, 0);
lineTo(Width, Height);
lineTo(0, Height);
lineTo(0, 0);
}

//****************************************
// THIS DOESN'T WORK

// Create an menu for the added image
var MenuMC = targetMC.createEmptyMovieClip("Menu", targetMC.getNextHighestDepth());
MenuMC.attachMovie("ImageMenu", "ImageMenu", MenuMC.getNextHighestDepth());

// THIS DOESN'T WORK
//****************************************

targetMC.onRollOver = function() {
Mouse.hide();
_root.skin.MoveCursor._visible = true;
OutlineMC._visible = true;
}

targetMC.onRollOut = function() {
Mouse.show();
_root.skin.MoveCursor._visible = false;
OutlineMC._visible = false;
}

targetMC.onPress = function() { this.startDrag(); };
targetMC.onRelease = function() { this.stopDrag(); };
}
ImageLoader.loadClip(Gallery.path+"/"+Image, ImageMC);
}


Does anyone see what I am doing wrong here? Any help or advice would be greatly appreciated.

Thanks in advance,
Aaron

Scrollbar Not Attaching Itself
Hey everyone, a friend of mine bought a flash site off of the net and now he wants to add some of his own stuff to it. He wants to add some scroll text but for some reason it's not attaching itself even though I specify the target. I tried the same thing on a new flash project and it workd just fine. What do you think is not letting itself get attched?

Dynamically Attaching MCs In AS 2.0
I'm struggling on a project of mine. Essentially I'm creating draggable windows from a series of buttons. What I want to do is, when the button is pressed, to load a 'placeholder' MC, which in turn attaches a 'content' MC inside it.

Can someone suggest a simple way of doing this, I feel as though my brain has melted.

This is the code I'm using to create the windows:

Code:
on (press) {

// create a new window object
newPanel = new panelObj();

}

the panelObj function attaches a MC instance in a level assigned by how many windows are already open.

Attaching Movies
got this code (shown below) attached to a movie clip called bottle_mc which is contained in another movie clip called map_mc. It says there are no errors but it wont load the movie clip letter_mc like i want it to - anyone no whats wrong with it? also, anyone no what the number 1 after the two "letter_mc"'s in the brackets means?

on(press) {

_root.attachMovie("letter_mc", "letter_mc", 1);

with(_root.letter_mc) {

_x = Stage.width/2;
_y = Stage.height/2;

};

_root.stop();

}

Help Attaching One Object To Another?
Please help!!!

I used to know how to attach one object to another at a certain point (i.e. simulating an arm attached to a shoulder) but I can't remember how to do it anymore! I don't think it was actionscripting, just for animation.
Can anyone refresh my memory?

Thanks!

Attaching Images
Okay, so... I have 323 Images that have been imported into flash. I need to be able to reference to them in flash. As in using the attachMovie() command to be able to attach which ones i need at the time. Do I have to convert them all to movieclips to be able to attach them to the stage? Or is there a command that i can use like with createEmptyMovieClip() and like put it into a movieclip then use that. And if converting them all to movieclips and setting the linkage is the only way to do it is there a fast way to do all 323? Or do i have to do each one seperately? Thanks for your time.

Same Movieclip Attaching Over And Over
Hi, I made a button that when pressed attaches an internal movieclip. That works fine. But when you click the button again and again it attaches the same movieclip on top of it over and over again.

Here is the code for the button. What should be changed for the movieclip not to attach over and over again.


Code:
on(release){
popup=_root.attachMovie("pop_max","pop_max1",_root.getNextHighestDepth())
popup._y=46.5
popup._x=570
}

Attaching Mc Within This Code
Hi all,
I am in MX 2004.
I am trying to attach a movie clip from the library on a button rollover and then remove the mc on rollOut or onPress.

I don't know the code to do this.
I already have the following code on the button to give the button an elastic annimation.

on (rollOver) {
this.swapDepths(_parent.getNextHighestDepth());
onEnterFrame = function () {
this.elasticScale(300, 2, .3);
};
}
on (rollOut) {
onEnterFrame = function () {
this.elasticScale(100, 1.2, .2);
};
}


Any help with the code and where to place it within the above would be greatly appreciated.

Thank you to anyone who has time to help.

Rob

Attaching A MovieClip
Hello
I am attaching a movie clip that contains a button object inside.
The rollover effect that I have in this button it doesn’t working when I use actionscript to put it on the stage.




Code:

var shapevar:MovieClip = image.attachMovie("shape2", cor, 1);
shapevar._x = 222;
shapevar._y = 182;
Thank you

Attaching Bitmap
Hi,

Not sure if I can explain the problem, but I'll give it a try.
I have an array of BitmapData object. This is cached bitmaps loaded dynamically from the server each time script is running.

Then I have a movie clip on timeline, containing other child movie clips on time line. This movie clips are basically a nice fade in/out effect implemented on timeline by motion/alpha/etc.

What I want to do is attach my bitmaps to one of the movie clips on time line.
What I have achieved so far is using instance name of the mc, make attachBitmap. But what I got is that my bitmap is disappearing when movie clip is playing(I have rollout event on that movieclip which is playing further the clip). So looks like after I attach my bitmap and flash started to play mc, it reloads the movie clip from the library at next keyframe and removing my bitmap

I've putted dummy circle shapes in the movie clip, in order to be able to create tweens. In other words I want to replace these damn circles with bitmaps from BitmapData array.

Thanks for your time!

[F8] Attaching To An Array
Hi all, I have an array of bitmaps and I simply want to create 4 parent bitmaps vertically and then loop through and attach 18 other instance to each of the 4 horizontally. Later I will just use a sin wave on each of the 4 to have the whole thing moving. (Each bitmap is a wave on the sea). So although all my debug text seems to read fine on the positional information of the bitmaps it seems that the 4 parent ones are ok but all the others are just pasted directly on top of them...I think.
ANyway, I've bee trying for ages and I'm on the verge of just importing a huge repeating bitmap nad moving that instead. It would be brilliant if anyone could help. (P.S Actionscript 2..and I am very new to this so apologies for any silly mistakes etc)

Simon


PHP Code:



function Create_seaparts ()
{
    
    var start_x_pos=550;
    var t=0;
    sea = new Array ();

    for (var v = 0; v < 4; v++)//vertical
    {
        t++
        sea[v] = new Array ();
        var vsp = "VertSeapart " +v;
        sea[v] = _root.attachMovie ("SeaPart", vsp, t);
        _root[vsp]._x = start_x_pos;
        _root[vsp]._y = 350+25*v;
        trace("Name= "+sea[v]._name+"Layer"+t)
        
        //then make a load horizontally and attach them to the original object
        
        for (var j = 0; j < 18; j++)
        {
            t++;
            var hsp = "HorizSeapart "+v+","+j;
            //attach horizontal seaparts[j] to vertical ones[v]
            sea[v][j] =sea[v].attachMovie ("SeaPart", hsp, t);
            
            sea[v][j]._x = start_x_pos+j*49;
            sea[v][j]._y = 350+25*v;
            
            trace("Name:"+sea[v][j]._name+" Layer:"+t+" X:"+sea[v][j]._x)
            
            //////////////
            //Move the sea
            //////////////
            /*sea[v][j].onEnterFrame=function()
            {
                wave_speed+=wave_velocity;
                
                this._x=this._x-Math.sin (wave_speed) * wave_length;
                
                
                trace ("TEST"+this._x);
            }*/

        }
    }
    
    
    
}

[F8] Attaching Movieclips
hi,

I'm making a game with a top down view of a virtual world, where you can do stuff through a menu with actions you can select. Now I got a player in the map, but the way the game is built up now is that the map is on the root of the movie and so is the player. The map has a empty movieclip in it, that indicate the position where the player is standing when entering a room. I use the localToGlobal method to convert the x and y position of the empty movieclip into raw numbers, which in turn are used for the player movieclip to set it to that position. In generally it works fine , but (there's always a but ) the player isn't a child of the map, therefor the player can't hide behind items, like if she or he is sitting on a chair, you would see the entire player over the chair, but you want the chair partly over the player. So as you can see it's a layer issue.

So I thought well, instead of placing the player on the root of the movie on the same timeline as the map (a room), why not make him a part of the room, where I can place the player between layers. And this is where I bumped my head . I wanted to attach the player's movieclip to the empty movieclips. But I can't seem to move around a movieclip from timeline to timeline at runtime. Anybody got any suggestions? Sorry for the long story, but at least you know my motivation, so if there's a completly different way of accomplishing this don't hold back .

[F8] Attaching Something To A Certain Layer
I just ran into a problem:
I am using

PHP Code:



_root.attachMovie("seaweed", "seaweed"+i, i*100);




to attach around 100 objects. My problem is that it allways ends up being on the top layer, even on top of the cursor. What I am trying to do is attach it to a certain layer, below the cursor layer.

NOTE: For some reason

PHP Code:



_root.attachMovie("seaweed", "seaweed"+i, _root.getNextHighestDepth());




Dosen't work the second time I amgoing to that frame. If you know what the problem for this is aswell, please let me know how to fix it.
Thanks in advance!

Attaching Bitmaps
if i am using this code:


Code:
_root.attachBitmap(now,10);
how would i change the x and y position of it?

Attaching Nodes
ok this might be a stupid question, i would love some help though.. here is the problem i have this for loop

for (var i = 0; i<30; i++) {
var node:MovieClip = attach.attachMovie("node", i, i++);
node._y = (10*i)+10;
}

it places 30 copys of node on the screen, but i need each node to be clickable and a different responce for each. eg first node would trace a, second node would trace b! can this be done? i assume it can but i can not get my head round it!! i have tried this...

for (var i = 0; i<30; i++) {
var node:MovieClip = attach.attachMovie("node", i, i++);
node._y = (10*i)+10;
node.onRelease = function() {
trace("fsdfs");


};
}

but then every instance of node traces ("fsdfs"); can any one sugest anything?

cheers this would be much apreciated

sam

Attaching Sounds
ok.. ive made a simple mp3 player... and instead of loading a .mp3 file.. it loads a .swf file that holds the .mp3 file.. by importing the file in the first frame not by actionscript... i did this because im using an upload site that dont accepts .mp3 files! it works fine when i load the .swf file but i cant get its duration or position of the song... unlike when i use:

mySound = new Sound();
mySound.loadSound(path,true);

i can get the mySound.position to know when the song is done...

my other options is using a linkage and attaching the file from the library
mySound = new Sound();
mySound.attachSound("id",true);
mySound.start(0,0);

this works fine when i run it... but when i load it from my player... it didnt come out... maybe beacuse it's looking for an idName in its own library which is in the other .swf file... i was thinking of sharing library but i dont know how.. please help me!

Attaching This Preloader
I am loading multiple .jpg and .swf files into a mc on the main stage with an instance name of container_mc. On container_mc I ahve the following script
Code:
onClipEvent (enterFrame) {
// If the host clip contains an external .swf file...
if (this._url != _root._url) {
// ...call our preload() function, which displays the
// loading .swf file's download progress.
_root.preload(this);
}
}
on the first frame of the main timeline I have this code

Code:
*/
/////////////////////////////
stop();
/////////////////////////////
function preload(theClip) {
if (!theClip.doneLoading) {
// If we have all the frames, make a
// note that download is complete.
if (theClip._framesloaded>0 && theClip._framesloaded == theClip._totalframes) {
theClip.doneLoading = true;
// Optionally start the clip once it's done loading...
// theClip.play();
trace (theClip+" is finished loading")
} else {
// Optionally pause the clip until it's loaded...
// theClip.stop();
}
// Display loading byte counts in text fields.
bytesLoadedOutput = theClip.getBytesLoaded();
bytesTotalOutput = theClip.getBytesTotal();
// Strip out the file name of the .swf loading into the
// clip and display it in a text field.
var lastSlash = theClip._url.lastIndexOf("/");
clipURLOutput = theClip._url.substring(lastSlash+1, theClip._url.length);
// Set the width of the loading bar.
var percentLoaded = (theClip.getBytesLoaded()/theClip.getBytesTotal());
preloadBar._width = preloadBarBG._width*percentLoaded;
}
}

/////////////////////////////
container_mc.createEmptyMovieClip("bg_mc", 0);
container_mc.createEmptyMovieClip("widget1_mc", 1);
container_mc.createEmptyMovieClip("widget2_mc", 2);
container_mc.createEmptyMovieClip("widget3_mc", 3);
container_mc.createEmptyMovieClip("MainLogo_mc", 4);
container_mc.createEmptyMovieClip("MainMessage_mc", 5);
/////////////////////////////
container_mc.widget1_mc._x = -10;
container_mc.widget1_mc._y = 250;
container_mc.widget2_mc._x = 275;
container_mc.widget2_mc._y = 225;
container_mc.widget3_mc._x = 445;
container_mc.widget3_mc._y = 250;
container_mc.MainMessage_mc._x = 410;
container_mc.MainMessage_mc._y = 23;
container_mc.MainLogo_mc._x = 530;
container_mc.MainLogo_mc._y = 105;
//////////////////////////////
loadMovie("images/bg.jpg", "container_mc.bg_mc");
loadMovie("images/widget1.swf", "container_mc.widget1_mc");
loadMovie("images/widget2.swf", "container_mc.widget2_mc");
loadMovie("images/widget3.swf", "container_mc.widget3_mc");
loadMovie("images/MainLogo.swf", "container_mc.MainLogo_mc");
loadMovie("images/MainMessage.swf", "container_mc.MainMessage_mc");
everything is loading perfectly but none of it is preloading.

I did notice if I change the loadMovie(); function to something like this container_mc.loadMovie("images/bg.jpg"); container_mc preloads but I need the external movie to load into a mc inside of container. And if I load a another movie it replaces the exsiting one since they are both loaded into the same level inside of container

Attaching A Graphic
Is there a way to attach a graphic I have in the library, just like the way you would attach a movieclip?

do i have to convert the graphics into movieclips or should i put the graphics in movie clips?

thanks

Copyright © 2005-08 www.BigResource.com, All rights reserved