Felipe Bastos
June 1st, 2003, 01:23 PM
I have an empty mc called "attachmcextra".
Into this empty mc is attached another mc called "mcnote" that contains a texto box named "loadnote". So it`s path would be:
_root.attachextra.mcnote.loadnote
The following code is set to the mc "attachextra":
onClipEvent (load) {
//set inicial position
this.posY = 20;
}
onClipEvent (enterFrame) {
cY = this._y;
difY = cy-this.posY;
setProperty(this, _y, cY-(difY/2.5));
}
So when I click on btn_note01 it sends the mc to some posY (vertical movement). But the notes have different amount of text, logically have different loadnote height.
Is it possible to set the "attachextra" mc posY depending on the final loadnote height loaded? Note that the mc has a downward movement? It`s inicial position is y=20 and maximum is y=400.
Again: can I send the "attachextra" mc to a Y position depending on the text height loaded to "loadnote"?
I coul not attach the swf file
Click here (felipe@nwi.com.br) to ask me for the file.
Thanks
:rd:
Into this empty mc is attached another mc called "mcnote" that contains a texto box named "loadnote". So it`s path would be:
_root.attachextra.mcnote.loadnote
The following code is set to the mc "attachextra":
onClipEvent (load) {
//set inicial position
this.posY = 20;
}
onClipEvent (enterFrame) {
cY = this._y;
difY = cy-this.posY;
setProperty(this, _y, cY-(difY/2.5));
}
So when I click on btn_note01 it sends the mc to some posY (vertical movement). But the notes have different amount of text, logically have different loadnote height.
Is it possible to set the "attachextra" mc posY depending on the final loadnote height loaded? Note that the mc has a downward movement? It`s inicial position is y=20 and maximum is y=400.
Again: can I send the "attachextra" mc to a Y position depending on the text height loaded to "loadnote"?
I coul not attach the swf file
Click here (felipe@nwi.com.br) to ask me for the file.
Thanks
:rd: