Help with the SVN!! 
Posted: 10 July 2008 05:02 PM   [ Ignore ]
New Member
Avatar
Rank
Total Posts:  47
Joined  2008-07-01

Hey everyone,

I was looking around for a tutorial on how to get started making my own apps. TouchLibrary v1 seemed to be the best suited for my knowledge. Since i have little knowledge in coding for a multitouch environment. I am new to the multitouch app development and i was wondering if someone could explain something to me.  I was wondering how to use a file from the SVN with that library. I was trying to use the RotatableScalable.as that i found in the TouchLib SVN. But i was having trouble trying to get some of the functions to work for me. I really just wanted to be able to make a rectangle the same way that Mark made the red square. But instead of being able to just drag it around. I was looking to use the RotatableScalable to be able to Rotate and Scale along with being able to drag. If someone could just explain how this would be possible that would help me so much. Something like this video below:

I was also looking into using the Scrollable.as to be able to scroll through a list of objects. But i have to take it one step at a time. Thanks to everyone for the help in advance.

To see Marks post on the TouchLibrary click on this link---->
http://nuigroup.com/forums/viewthread/2001/
Or if that does not work you can copy and paste this url in your browsers address bar.

 Signature 

“Good ideas are only bad ideas that work!”

Profile
 
 
Posted: 11 July 2008 04:39 PM   [ Ignore ]   [ # 1 ]
New Member
Rank
Total Posts:  18
Joined  2008-06-23

Here is how to make a simple RotatableScalable.  I didnt put this into a package, so you can just create a flash file and paste the following into the Actions panel:

import flash.display.MovieClip;

import app.demo.albumLoad;
import app.core.action.*;
import flash.events.TUIO;


var 
parentScaleCanvas = new RotatableScalable(); //you can also swap this with new Physical(); 

parentScaleCanvas.graphics.beginFill(0x0000FF,0.90);
parentScaleCanvas.graphics.drawRect(200,200,400,400);
parentScaleCanvas.graphics.endFill();
parentScaleCanvas.0;
parentScaleCanvas.0;
this.addChild(parentScaleCanvas);

TUIO.initthis'localhost'3000''true );

This will make a 400x400 rectangle at x: 200, y:200.  I am not sure what the difference between a RotatableScalable and a Physical is but either one may work for you.

I have attached my file for you to use. Unzip this in the “\AS3\src\” folder in touchlib.

Hope this helps. I haven’t played with the Scrollable.as at all so I cant help you with that.

File Attachments
simpleRotatableScalable.zip  (File Size: 6KB - Downloads: 47)
Profile
 
 
Posted: 11 July 2008 05:54 PM   [ Ignore ]   [ # 2 ]
New Member
Avatar
Rank
Total Posts:  47
Joined  2008-07-01

Hey stargazer424,

Thanks for taking the time out to right some code to help me. I haven’t tried it yet but i am going to try it and let you know how it turned out. I really appreciate the help. It is really no problem with the Scrollable I will just try to get this to work. Maybe someone else has tried useing it and wouldn’t mind explaining how to use it. Thanks again and i will give it a try right now.

 Signature 

“Good ideas are only bad ideas that work!”

Profile