Home » Developer & Programmer » Forms » Animation (Windows XP DB 9i - forms 6i)
Animation [message #356287] Thu, 30 October 2008 03:37 Go to next message
*munnabhai*
Messages: 157
Registered: March 2008
Location: Riyadh
Senior Member
Hi Guyz,

Hope everyone well....

please find attach form for animation text i took this from this forum...when i run the form it works fine but when it reach to 400 it will give the error.....FRM-41081 Cannot move item- Invalid position....i tried a lot but i fail i want this to return to 0 or move with -1 and continue like To-From and From-To....anyone help me in this regards plz...

Waiting for replies...

Regards
  • Attachment: Moving.fmb
    (Size: 48.00KB, Downloaded 1121 times)
Re: Animation [message #356476 is a reply to message #356287] Thu, 30 October 2008 20:39 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
If you took this form from this forum, it would be appropriate to post the link to that thread. If someone else wrote it then perhaps either emailing or using PM to contact them would be a good start.

David
Re: Animation [message #356489 is a reply to message #356287] Thu, 30 October 2008 21:59 Go to previous messageGo to next message
xpact83
Messages: 225
Registered: October 2008
Location: philippines
Senior Member
i have modified the code in when time expired trigger and below is the fmx


DECLARE
v_item ITEM;
v_x_pos NUMBER ;
v number;
BEGIN
v_item := FIND_ITEM('CONTROL.anim');
v_x_pos := GET_ITEM_PROPERTY(v_item, X_POS);
v := GET_ITEM_PROPERTY(v_item, X_POS);



IF GET_ITEM_PROPERTY(v_item,X_POS)<300 then
-- if it reaches position x 300 it will go to else
SET_ITEM_PROPERTY(v_item,X_POS,v_x_pos+1);

else
--else move back the item to x positon 10
SET_ITEM_PROPERTY(v_item,X_POS,10);

END IF;


--that easy dude
END;
  • Attachment: Moving.fmx
    (Size: 10.66KB, Downloaded 1247 times)
Re: Animation [message #356490 is a reply to message #356287] Thu, 30 October 2008 22:01 Go to previous messageGo to next message
xpact83
Messages: 225
Registered: October 2008
Location: philippines
Senior Member
try to download the fmx and you will see....

it will move back to 10 ... when reaches 300 postion x...

why dont try to animate it from 300 to 10 ...... just to practice your logical skills...
Re: Animation [message #356494 is a reply to message #356489] Thu, 30 October 2008 22:25 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
No, I will NOT try to run an FMX on my machine. I probably don't have the release of forms that you are using anyway.

How wide is the image? With that width, with an origin of 400, will the image actually fit inside your canvs/window/browser?

David
Re: Animation [message #356497 is a reply to message #356287] Thu, 30 October 2008 22:33 Go to previous messageGo to next message
xpact83
Messages: 225
Registered: October 2008
Location: philippines
Senior Member
ok this is the fmb
  • Attachment: Moving.fmb
    (Size: 48.00KB, Downloaded 1163 times)
Re: Animation [message #356498 is a reply to message #356287] Thu, 30 October 2008 22:36 Go to previous messageGo to next message
xpact83
Messages: 225
Registered: October 2008
Location: philippines
Senior Member
actually i just modified the code as stated above
Re: Animation [message #356501 is a reply to message #356498] Thu, 30 October 2008 22:46 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Unfortunatly, you need to think about what you are changing at the same time as changing it.

Please answer my question.

David
Re: Animation [message #356504 is a reply to message #356287] Thu, 30 October 2008 22:52 Go to previous messageGo to next message
xpact83
Messages: 225
Registered: October 2008
Location: philippines
Senior Member
i just gave a solution to the author's problem..

i just gave a direct solution.. to his problem... and not just referred him to other people..
Re: Animation [message #356505 is a reply to message #356287] Thu, 30 October 2008 22:53 Go to previous messageGo to next message
xpact83
Messages: 225
Registered: October 2008
Location: philippines
Senior Member
if you open the fmb youre questions will be answered
Re: Animation [message #356806 is a reply to message #356505] Sun, 02 November 2008 09:23 Go to previous messageGo to next message
saadatahmad
Messages: 452
Registered: March 2005
Location: Germany/Paderborn
Senior Member

hi,
I think this is the original form which I uploaded long time before and still it woks perfectly fine. Smile

http://www.orafaq.com/forum/m/132114/67693/?srch=animation#msg_132114

regards,
Saadat Ahmad
Re: Animation [message #357004 is a reply to message #356287] Mon, 03 November 2008 08:41 Go to previous messageGo to next message
*munnabhai*
Messages: 157
Registered: March 2008
Location: Riyadh
Senior Member
Thanks guyz i did a good animation in my form looks nice....getting lot of information from this website....

Thanks little thanks dj and sadaat,
xpact83


Regards
Re: Animation [message #357031 is a reply to message #357004] Mon, 03 November 2008 11:11 Go to previous messageGo to next message
Littlefoot
Messages: 21823
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
No, not me, I'm not guilty! /forum/fa/1604/0/ (didn't participate in this discussion!)
Re: Animation [message #376110 is a reply to message #356287] Tue, 16 December 2008 01:56 Go to previous messageGo to next message
xpact83
Messages: 225
Registered: October 2008
Location: philippines
Senior Member
guys i have here a mini game...using mouse over trigger to move you
horizontally ...

this is nice for moving objects at runtime...
  • Attachment: anims.fmb
    (Size: 232.00KB, Downloaded 1169 times)

[Updated on: Tue, 16 December 2008 02:04]

Report message to a moderator

Re: Animation [message #376120 is a reply to message #376110] Tue, 16 December 2008 02:53 Go to previous messageGo to next message
*munnabhai*
Messages: 157
Registered: March 2008
Location: Riyadh
Senior Member
Nice Invent....good
Re: Animation [message #376296 is a reply to message #356287] Tue, 16 December 2008 18:30 Go to previous message
xpact83
Messages: 225
Registered: October 2008
Location: philippines
Senior Member
guys the try to reach level 2 of that mini game and you will see that the target seems to have an a.i. hehehe
Previous Topic: Mapping functional key in forms 10g
Next Topic: Webutil - Open dialogue box
Goto Forum:
  


Current Time: Sun Feb 09 10:06:34 CST 2025