  | |  | Re: How would you modify the vertical position of an eleme | Re: How would you modify the vertical position of an eleme 2005-09-29 - By ud
Back Oh, and one other thing. This code is only going to be called one time. If you wanted mcObject to reposition itself more than once, you'd have to use a different event. Depending on the version of Flash you are publishing to, you might be stuck with onClipEvent(enterFrame) (Flash player 5 and up ) or an equivalent based on an empty clip with a loop (if you want to avoid onClipEvent). Better might be setInterval() (Flash player 6 and up )or using a MovieClipLoader Object (Flash player 7).
Becky
-- -- Original Message -- -- From: "MK" <flabbygums@(protected)> To: <pro_flash@(protected)> Sent: Wednesday, September 28, 2005 9:40 PM Subject: [Pro Flash Users] Re: How would you modify the vertical position of an element while
> --- 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.. > > > > > > > > > ========================= > 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 > > > > > > >
-- ---- ---- ---- ------ 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.
|
|
 |