Var

Yes, im stil strugling=)

anyone know how i could incorpotrate a varial i this code witch makes it go on top of the old one. Right now its set to one.
And then delete the old one?

on (release) {
var newMc = this.attachMovie(“megmain”,“interface”,1);
newMc._x = 0;
newMc._y = 0;

}

???

How many thread are you trying to create with one single question??? :frowning:

i figure someone new is online today.
Its joust that im sooooooooo desperate, ive got my deadline on monday=) and im readin in the flash help file but it dont seem to work=)

Okay… Let me tell you what I think…

First of all, that reason doesn’t justify the multiple threads… I know that there is no rule on that, but I think that is a netiquette…

Having said that, I saw your original thread… and you are not providing all the information that needs whichi we can use to help you…

Let me tell you this… Why not create a sample file and post it so the other people can take a look??? I say sample file because that way you might be able to pinpoint where your problem lies while creating one, and the file size gets smaller…

What do you think??? :wink:

heres the file, right now the old one dissapers when the new one is loaded in, i want it to still be there untill the new one has loaded.

i cant get it in the forum, but i put it on the net

http://www.pro****.com/potofolio/pro6.swf

Um… What’s wrong with the URL??? And What do you want us do with the SWF file??? :frowning:

it sencored my adress. the**** is suposed to be:

s_h_i_t without the underscores=)

swf so u can see what i mean or u want the.fla?

Yes, please… Otherwise, how could other people know what you have in your file??? :beam:

http://www.pro****.com/potofolio/pro6.fla

**** = s_h_i_t =)

Hm… Nice one you’ve got there… :wink:

I don’t see any old movie staying on the stage though… Where am I looking at???

Thanks=)

no it dont do that here, cus im loading it into _root now.
But the thing is, when u push the main menu(the small squears) the old one dissapears and the new one starts. Because the are both loaded in 1. But id like the new one to load in over the old one, so that it builds it self up over it, then when its done, it removes the old one.

Im thinkin it has to be some var on the attach, so if the old one is on 2 the new goes on 3. But i have no idea how to do it?

Is this clear or am i still ramblin?=)

Um… Okay… :wink:

You can try this…

Add this in the first frame of main timeline…

_global.depth = 0;

and change you code like this for all of them…

var newMc = _root.attachMovie("megmain", "interface" + (_global.depth + 1), _global.depth++);

This will ensure that the depth where they get attached will be keep going up…

Well… I had to change the new instance name of the movieclip too so that you can use that name to delete the specific movieclip…

Good luck… :wink:

THANKS MAN!!!
its my portfolio, a big agency is lookin at it monday, so i might get myself a new job=)

So i joust use removeclip to remove it?
did u change interface_1 to interface?

Well… The new instance name… You are using names like this in your movie…

interface_1
interface
megmain_1
portfoliomain_1
kompetansemain_1
portfoliomain
megmain_1
kompetansemain_1

It doesn’t matter what it is as long as you keep track of it… Why did I change it to ‘interface’??? I just copied the script from that button… That’s why… No other reason… :wink:
To remove… Use (the instance name + the depth number). removeMovieClip()… For example, you want to remove ‘kompetansemain_1’ which is located in depth number 30, then…

_root.kompetansemain_130.removeMovieClip();

something like this??? Check out the debugger while you are doing it to make sure you get the right path for the movieclip…

Good luck for the new job… I hope you get it… :wink:

Thanks a lot man, uve been to big help!!!

trying to get into as, but i seem to be doing it when there is no time for it:smirk:

Well… I guess that’s the best time to learn… :wink:

Gotta try to go get some sleep… Good luck… and if you got problem, post it up… There are many people who’s gotta help ya… :wink:

G’day!!!

anyone know what this means? or whats wrong?

Scene=kompetanse, Layer=mal, Frame=1: Line 2: ‘)’ or ‘,’ expected
var newMc = _root.attachMovie(“megmain”, “megani” + (_global.depth + 1), _global.depth++;

Sorry… I missed the ending parenthesis… :beam:

var newMc = _root.attachMovie("megmain", "megani" + (_global.depth + 1), _global.depth++);

Should work… :wink:

thanks=)

i joust figured it out my self, after houers of plundering:beam:

im not mr iq=)