  | |  | Re: How would you modify the vertical position of an element w | Re: How would you modify the vertical position of an element w 2005-09-29 - By MK
Back --- In pro_flash@(protected), "Tony" <thudman@(protected)> wrote: > How would you modify the vertical position of an element while > preloading? Using a standard preloader, I've added this to an object > on the stage: > > onClipEvent (load) {MovieClip.prototype.move = function(x,y){ > this._x = x > this._y = y > } > mcObject._x = 425 > mcObject._y = 0 > mcObject.move(0,"vpos"); > vpos = (600/percentLoaded)*100 > } > > Why doesn't this work?
In general you should try to stay away from onClipEvents.. then try taking the quotes off vpos - the quotes tell the player it's a string..
-- ---- ---- ---- ------ Yahoo! Groups Sponsor -- ---- ---- ---- --~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/IHFolB/TM -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -----~->
========================= Pro_Flash: Professional Web Developers Using Macromedia Flash To subscribe: mailto:pro_flash-subscribe@(protected) To UNSUBSCRIBE: mailto:pro_flash-unsubscribe@(protected) Yahoo! Groups Links
<*> To visit your group on the web, go to: http://groups.yahoo.com/group/pro_flash/
<*> To unsubscribe from this group, send an email to: pro_flash-unsubscribe@(protected)
<*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Earn $52 per hosting referral at Lunarpages.
|
|
 |