Ask a Question related to Macromedia Flash, Design and Development.
-
videoken #1
need help positioning movie clip relative to a resizing clip...
I am trying to attach a "caption" to the bottom right edge of a movie clip
that resizes. I am using the resizing clip as a image holder for a gallery.
The resizing clip is in a movieclip within another movie clip that is on the
main stage. The resizing clip has two clips within it: one named "container"
and one named "the_border". The clip I am trying to position at the bottom
right is named "numbers".
I have tried "attachMovie" in many permutations to no avail. I saw the code
"attachClip" in another gallery once but I cannot find documentatiopn of how
to use it.
Here is the code I have so far:
******
spacing = 1;
number_spacing=10;
_root.gallery.screenshots.container._alpha = 0;
MovieClip.prototype.loadPic = function(pic) {
_root.gallery.screenshots.container._alpha = 0;
this.loadMovie(pic);
_root.onEnterFrame = function() {
var t = _root.gallery.screenshots.container.getBytesTotal( ), l =
_root.gallery.screenshots.container.getBytesLoaded ();
if (t != 0 && Math.round(l/t) == 1 &&
_root.gallery.screenshots.container._width != 0) {
var w = _root.gallery.screenshots.container._width+spacing , h =
_root.gallery.screenshots.container._height+spacin g;
_root.gallery.screenshots.the_border.resizeMe(w, h);
delete _root.onEnterFrame;
}
};
};
MovieClip.prototype.resizeMe = function(w, h){
var speed = 3;
this.onEnterFrame = function(){
this._width += (w - this._width)/speed;
this._height += (h - this._height)/speed;
if( Math.abs(this._height-h)<1){
this._width = w;
this._height = h;
_root.gallery.screenshots.container._x = this._x - this._width/2 +
spacing/2;
_root.gallery.screenshots.container._y = this._y - this._height/2 +
spacing/2;
_root.gallery.screenshots.container._alpha = 100;
delete this.onEnterFrame;
}
}
};
_root.gallery.screenshots.container.loadPic("image s/michelob_page2.jpg");
***
Please help.
Thanks,
videoken
videoken Guest
-
play clip, remove clip, load new clip
I have an empty 'container' MC that has a MovieClip load into it when a button is pressed.....when another button is pressed, it should play the... -
Clip position relative to _root
Hi all I have a clip buried deep within other clips, and I want to find its _x and _y position relative to the _root clip. Is this possible ... -
Re-Positioning a Movie Clip
I have 2 movie clips - A & B. Movie clip A is set to play to a frame action whereby it loads (using the loadmovienum) the second movie (B) into a... -
Positioning Loaded Movie Clip
Does anyone know if there is a way to position a loaded movie within my main movie when it is loaded into a level (as opposed to being loaded into a... -
Duplicate Movie Clip in a Duplicated Movie Clip...
I'm making a Flash Navigation Bar (menu) that could be freely customized by people just through a text file. The problem is that my submenus won't...



Reply With Quote

