|
-
Hide Mc (Very simple Question)
Hi
I've use this code to hide mc's
Code:
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?
Code:
on (release) {
_level0.page._visibility = false;
}
-
Senior Member
I dont think you need to add the level in there. Did you create the movie clip "page" with actionscript?
-
up to my .as in code
level0 is _root
on (release) {
_root.page._visible = false;
}
-
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?
-
up to my .as in code
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.
Last edited by Chris_Seahorn; 08-22-2006 at 01:47 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
-
KoolMoves Moderator
bound to be just a naming issue.
-
up to my .as in code
_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
-
Relaxing
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);
}
Any programming language is at its best before it is implemented and used.
-
up to my .as in code
As for mismatched content, I do it all the time.
Didn't say you hated it...said I did. Do as you wish.
-
Relaxing
 Originally Posted by Chris_Seahorn
Didn't say you hated it...said I did. Do as you wish.
I was trying to give a different alternative. Thats all.
Any programming language is at its best before it is implemented and used.
-
Thick as a Brick
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?
Last edited by bobgodwin; 01-05-2008 at 05:05 PM.
Bob Godwin

-
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"
-
KoolMoves Moderator
Xzerox that site seems to stop at 62% loaded for some reason.
-
Polak Maly
 Originally Posted by blanius
Xzerox that site seems to stop at 62% loaded for some reason.
yea, at mines too.
-
my site works now... some ftp problems... please check it out
-
Polak Maly
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...
-
hum... i use 32 fps... i thought that was maximum for koolmoves?
-
Polak Maly
no, i use 60 fps with usually 6 tweens pkf. 60 is the max value.
-
aha... but i think im gonna strick to 32...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|