Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Greating Unbalanced



Hi everyoneIm trying to create a game with a drunk effect where by the user controls an object along the x axis the object of the game is to keep the object balanced as long as possible how i aim to do this is increment and decrease the _x axis randomly thus achieving the drunk effect and the user has to counter act the drunkness and keep the object as "stable" as possible i found some code on another forum from a guy that was trying to do the same thing but it doesnt seem to work at all
Code:
onClipEvent (enterFrame) { mouse_x = _root._xmouse; circle_x= this._x; dist = mouse_x - circle_x;//if the xmouse position is greater than the//circle's position dist will be a positive number, therefore the circle will move//closer to the mouse (by moving right)//if the xmouse position is less than the circle position dist will be a negative number, (by moving left) circle._x += (0.1 * dist);}
when i applied this code it didnt do anything at all any help on this would bereally appericated



KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 08-07-2007, 11:22 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Verify Error 1030# Stack Depth Unbalanced 1 = 0.
Hi,
Iam trying to inject some code into the SWF File using an opensource Java Framework. My code is getting injected correctly. I saw this, when i tried to decompile the SWF file into which i injected the code. But there is something that needs to be handled when it comes to handling the instruction sets available inside the method where i injected the code. I just wanted to know what that 1 and 0 points to, in the below given error message.

Verify Error 1030# Stack Depth unbalanced 1 != 0.

If somebody can help me out in making me understand the 1 and 0 in the error message, i can further proceed to correct the mistake that i have done.

Thanks,
Prabakaran Srinivasan.

Copyright © 2005-08 www.BigResource.com, All rights reserved