;

PDA

Click to See Complete Forum and Search --> : Hide Mc (Very simple Question)


xzerox_xzerox
08-22-2006, 01:09 PM
Hi

I've use this code to hide mc's

on (release) {
_root.mcName._visibility = false;
}

I have to use this command in a loaded movie called "bilder.swf". The problem is that i want to hide a movieclip in the original movie named "index.swf".

How can i do that? The movieclip in the original movie is called "page".

Should i use this code? Is the level of the original movie 0?

on (release) {
_level0.page._visibility = false;
}

donaldparkerii
08-22-2006, 01:18 PM
I dont think you need to add the level in there. Did you create the movie clip "page" with actionscript?

Chris_Seahorn
08-22-2006, 01:24 PM
level0 is _root

on (release) {
_root.page._visible = false;
}

xzerox_xzerox
08-22-2006, 02:26 PM
thanks for the reply chris but it does not work... I don't think you understainds me:

I've got a movie named index.swf.
In index.swf i have a movieclip called page.
In "page" i have a button who loads a movie called bilder.swf
In bilder.swf i have a movieclip called bilder.
In "bilder" movieclip i've got a button.
With this button i want to hide "page" in the index.swf got it?

Chris_Seahorn
08-22-2006, 02:44 PM
OK man...if you have a level0 anything in a script...it's from swish or flash object, example or movie. ...so revert to what you were doing and use the word.

"_visible"

and not

"visibility"

Had I known this kind of content was what we were dealing with instead of thinking you were using a command in KM that it doesn't utilize (flash supports), I would have stayed out of it....sorry.

xzerox_xzerox
08-22-2006, 02:49 PM
still nothing... if i use the code:

on (release) {
_root.page._visible = false;
}

It does only hide my bilder.swf and not the "page" movieclip

blanius
08-22-2006, 06:59 PM
bound to be just a naming issue.

Chris_Seahorn
08-22-2006, 07:04 PM
_lockroot has to be enabled

You are able to edit this index.swf? ...it's Koolmoves? or a trapped flash swf(trapped as in you don't have the source code to index.swf) you want to manipulate from a loaded clip(binder)?

This is exactly why I hate mismatched content.....make it all Koolmoves or toss it I say :)

tmoore935
08-22-2006, 08:15 PM
It seem like loadMovie and unload movie would work since a level could be added then removed by a button

As for mismatched content, I do it all the time.

example:

on (release) {
loadMovieNum("home.swf", 10);
}

Or

on (release) {
unloadMovieNum(10);
}

Chris_Seahorn
08-22-2006, 08:17 PM
As for mismatched content, I do it all the time.


Didn't say you hated it...said I did. Do as you wish.

tmoore935
08-22-2006, 08:22 PM
Didn't say you hated it...said I did. Do as you wish.

I was trying to give a different alternative. Thats all.

bobgodwin
08-22-2006, 09:29 PM
Here's a shot at it.

And what's the difference between this:

on(release){_root.page._visible = 0;
}

And this:

on(release){setProperty("_root.page", _visible, "0");
}

Is one preferred?

xzerox_xzerox
08-23-2006, 01:56 PM
thanks for all the replys guys... i solved it using an url and a _blank target...

look at www.vmgcomputers.com/uk and press "bilder" and "klicka här för att starta"

blanius
08-24-2006, 09:09 AM
Xzerox that site seems to stop at 62% loaded for some reason.

ant_Z
08-24-2006, 06:20 PM
Xzerox that site seems to stop at 62% loaded for some reason.
yea, at mines too.

xzerox_xzerox
08-25-2006, 03:55 PM
my site works now... some ftp problems... please check it out :D

ant_Z
08-25-2006, 06:07 PM
yea, it works now. Your site is very nice. I like it, but you could increase FPS, everything is so slow... ive go to wait... and i - and many other ppl - dont like to wait...

xzerox_xzerox
08-25-2006, 06:20 PM
hum... i use 32 fps... i thought that was maximum for koolmoves?

ant_Z
08-25-2006, 06:50 PM
no, i use 60 fps with usually 6 tweens pkf. 60 is the max value.

xzerox_xzerox
08-26-2006, 06:06 AM
aha... but i think im gonna strick to 32... :)