2 of 2
2
Barebones touch / AS3 example? 
Posted: 15 July 2008 07:30 PM   [ Ignore ]   [ # 16 ]
Elite
Avatar
RankRankRankRank
Total Posts:  376
Joined  2008-02-22

MyMovieClip.as not myMovieClip.as

 Signature 

http://www.justinriggio.com cool mad
http://www.niceminds.com new blog

Profile
 
 
Posted: 15 July 2008 07:31 PM   [ Ignore ]   [ # 17 ]
Elite
Avatar
RankRankRankRank
Total Posts:  376
Joined  2008-02-22

Class names start with a capital letter and are in camelCase

 Signature 

http://www.justinriggio.com cool mad
http://www.niceminds.com new blog

Profile
 
 
Posted: 15 July 2008 07:36 PM   [ Ignore ]   [ # 18 ]
Sr. Member
RankRankRank
Total Posts:  69
Joined  2008-05-31

See I know that… And after all of this.
Still doesn’t explain why I need to copy the fire.fla to see it, but hey… let me fire it up.

I did include the two folders in the settings as well.

BUT THANK YOU SO VERY VERY MUCH FOR THE HELP

justin - 15 July 2008 07:31 PM

Class names start with a capital letter and are in camelCase

Profile
 
 
Posted: 15 July 2008 08:12 PM   [ Ignore ]   [ # 19 ]
Elite
Avatar
RankRankRankRank
Total Posts:  376
Joined  2008-02-22

So looks like you got it cool hmm

 Signature 

http://www.justinriggio.com cool mad
http://www.niceminds.com new blog

Profile
 
 
Posted: 16 July 2008 03:01 AM   [ Ignore ]   [ # 20 ]
Sr. Member
Avatar
RankRankRank
Total Posts:  55
Joined  2008-06-26

@Larky: i would realy love to see the examples you mentioned. In case of using (also parts) ofcourse there will be a credit!
@ Justin: you are certanly right - you will never forget what you learn wink But beside this would be realy great to see your example applications guys! BTW: awsome your new video with the LLP setup. What is that “floating” video application?

Thank you all!

Sandor

 Signature 

Sandor Rozsa
--
corporate design cologne
http://www.cd-cologne.de

Profile
 
 
Posted: 16 July 2008 08:45 AM   [ Ignore ]   [ # 21 ]
Sr. Member
RankRankRank
Total Posts:  69
Joined  2008-05-31

In case anyone was looking for it, here is the starting point for a touch app.
I will create full documentation on starting from the ground up on what to do within the week

Thank you justin and cerupcat so much

package app.demo.MyTouchApp{

    import flash
.display.*;
    
import flash.events.*;
    
import app.core.action.RotatableScalable;

    
public class MyTouchApp extends RotatableScalable {

        public 
function MyTouchApp() {

            
//--------connect to TUIO-----------------
            
TUIO.init(this,'localhost',3000,'',true);
            
trace("MyTouchApp Initialized");
            
//----------------------------------------        

            
addEventListener(MouseEvent.MOUSE_DOWNonMouseDown); // adds an event listener looking for a mouse click - runs "onMouseDown"
        
}
        
        
        private 
function onMouseDown(event:MouseEvent):void { //creats a circle when the mouse is clicked

            
var circle:Sprite = new Sprite();
            
            
circle.graphics.lineStyle(100xff0000); //set line width to 10px and red
            
circle.graphics.drawCircle(0,0,40); // draw a 40px circle
            
circle.mouseX//put it where the mouse clicked
            
circle.mouseY;

            
addChild(circle); //add the circle to the plane
        
}
    }
}

Profile
 
 
Posted: 16 July 2008 10:35 PM   [ Ignore ]   [ # 22 ]
Sr. Member
RankRankRank
Total Posts:  69
Joined  2008-05-31

Ill be writing the tutorial in here.

http://nuigroup.com/wiki/Building_Your_First_Application/

Profile
 
 
Posted: 16 July 2008 10:44 PM   [ Ignore ]   [ # 23 ]
Administrator
Avatar
RankRankRankRankRank
Total Posts:  952
Joined  2007-04-08

cool noverflow

For part of my GSoC project, I’ll be documenting (hopefully ALL of) the AS3/lux classes and writing tutorials on how to get started. Unfortunately I don’t have the time to write a complete guide right now. The end of GSoC isn’t that far away though wink

 Signature 

My Multitouch Blog
My Multitouch Software Direct Downloads
My Youtube

Profile
 
 
Posted: 17 July 2008 06:14 AM   [ Ignore ]   [ # 24 ]
Sr. Member
RankRankRank
Total Posts:  69
Joined  2008-05-31

Documentation is one of those things that is really hard to start, but once you get going you can’t stop.

I love documentation, it really is one of the most important things to anything innovative we do.
In fact one of my web sites is just dedicated to documentation. (in the art and design world) http://www.risdpedia.com

That’s awesome that you are at GSoC, I think if I had one more year at school, I would apply next year. There is always grad-school tough.

cerupcat - 16 July 2008 10:44 PM

cool noverflow

For part of my GSoC project, I’ll be documenting (hopefully ALL of) the AS3/lux classes and writing tutorials on how to get started. Unfortunately I don’t have the time to write a complete guide right now. The end of GSoC isn’t that far away though wink

Profile
 
 
   
2 of 2
2