PDA

View Full Version : flash based turntable> how?



cresshead
08-13-2009, 05:42 PM
hi

does anyone know how to get the drag slider implemented as seen on this site?

http://www.artstorm.net/journal/2009/01/turntable-spin-model/

i use flash a little bit i'm no flash guru, also i'm stuck on flash mx so if anyone has a tutoral/url and base .FLA file i could play with that would be FAB!

i could make a mov that loops but would much prefer a user interactive turntable that people could study and control where they are looking at the turn with a drag out the mouse.

any help or links would be fantastic.:thumbsup:

http://www.newtek.com/forums/attachment.php?attachmentid=76257&d=1250206953

AdamAvenali
08-13-2009, 05:56 PM
oh man, i did something like this before, but that was back when it was Flash MX. i will dig around and see if i still have the flash files somewhere.

edit: scratch that haha when i did mine i had my turntable rendered to an image sequence and then had all of my image sequence loaded into frames. i then had a button under the images that said 'click to rotate' and the button just bascially took you through the sequence frame by frame. this slider is very cool though.

cresshead
08-13-2009, 06:08 PM
found this but there's no audio and no final fla...might have a bash at it though i'm not sure if its flash mx compatible

http://indyfx.co.cc/tutorial/flash.turntable.htm

there's 3 grabs...so i'll have to put it together, the last grab [botom] is the final edit nr the bottom and the middle grab is a edit he made nr the top of the pageand the top page grab is the stuff he worte first off...

AdamAvenali
08-13-2009, 07:23 PM
try looking for a tutorial on how to build a scrub bar for a movie clip or swf

cresshead
08-13-2009, 08:40 PM
onClipEvent(mouseDown){
down = 1;
down_x = _xmouse;
nowfrm =frm;
}

onClipEvent(mouseUp){
down = 0;
drag = 0;
frm = nowfram;
}

onClipEvent(mouseMove){
if (down) {
drag = 1;
up_x = _xmouse;
//stage width 512, then 512 is 100%

distance = (-1)*(Math.floor((down_x - up_x)*100/512));
// In movie clip 'model' are 30 frames, then 30 frames is 100%, 1frame =3.33%

turn = Math.floor(distance/3.33);
nowfrm =frm+turn;
if (nowfrm < 1) {
nowfrm = Math.abs(30+nowfrm);
}
if (nowfrm < 30) {
nowfrm = Math.abs(nowfrm-30);
}
gotoAndStop(nowfrm);
}
}

cresshead
08-13-2009, 08:42 PM
done!


fixed it..wooo hoo!

okay this doesn't have a drag bar but works with your mouse position on the screen..just click n drag left or right to
rotate the view

below i'll load up the final swf as well as the fla [flash mx] in case anyone else would like to use it for their own model
turntables

AdamAvenali
08-13-2009, 09:07 PM
haha congrats. i dont have access to flash anymore and i miss it pretty often.

cresshead
08-13-2009, 09:42 PM
thanks
i'm no coder for sure...just a part time detective when i have to be!

Silkrooster
08-13-2009, 10:31 PM
Nice job getting that working. Reminds me of those quicktime videos for Panos.

akademus
08-14-2009, 04:21 AM
Awesome! Very useful for model galleries.

Thanks a bunch!

Twisted_Pixel
08-14-2009, 05:42 AM
Thanks for sharing Cresshead.
Will be looking into it more, once I escape from work.
I did something similar before also, but this looks a lot more efficient.

artstorm
08-16-2009, 07:43 AM
I just saw this thread.
If you're interested you can have my small turntable flash app, I could just add a few customization options to it first so you can easily change colors and such so it can fit better on any site and not have to look exactly like it does on mine. :)

JamesCurtis
08-16-2009, 01:02 PM
artstorm,

Would really appreciate that, if you can.

Thanks in advance.

cresshead
08-16-2009, 01:03 PM
I just saw this thread.
If you're interested you can have my small turntable flash app, I could just add a few customization options to it first so you can easily change colors and such so it can fit better on any site and not have to look exactly like it does on mine. :)


wow, thank you so much, a 'app' version wll open it up to non flash app owners which would be great for all the poeple here wanting a model rotate
capability.

that offer sounds excellent, i'll look forward to having a bash with it :thumbsup:

geo_n
08-19-2009, 08:16 PM
The small turntable flash app would be really cool :thumbsup:

probiner
08-19-2009, 11:54 PM
This is interesting i wad trying to make a screen version of a big FlipBook and this could cut it has for page turn velocity control =)

Cheers

adhesiveX
08-21-2009, 05:25 AM
A turntable app would be such a great help for me,please make this happen
and thanks for doing it.

cresshead
01-14-2010, 06:41 PM
just updated a page on my website and put the turntable flash example on it.

http://www.cresshead.com/gallery1%20recent%20work.htm