Fork me on GitHub
Not signed in (Sign In)

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

    • CommentAuthoreltrem
    • CommentTimeJul 22nd 2011
     
    Hi everyone!

    first of all congratulations for the flint system, it looks very powerful and flexible.

    I am a total newbee in AS3, and i've been fighting four a couple of hours with the rain example, tryng to dynamically change the center of the discZone coliision area, with no luck.
    I tryed changing the constant values for the center of the disc by _xmouse and _ymouse, but compiler gives 2 errors...
    as i've been reading in the forum, it looks like i should include some classes to work with the mouse, isn't it?

    Anyway,
    my final goal is receiving the x and y data of the collision center from some other software through UDP.
    I used to do that on AS1 and AS2 using FLOSC, a UDP/TCP bridge built in java that allowed to receive OpenSoundControl data.

    So my question is,
    Can i tell flint to use data coming from "outside" to move the center of the colission DiscZone?
    How could i do that?
    a little help would be very much appreciated, i am a little lost right now!

    Lots of thanks!
    • CommentAuthorRichard
    • CommentTimeJul 31st 2011
     
    You're right to set the centerX and centerY of the discZone (or set the center, which is a Point). However, int actionscript 3 the mouse location is identified as mouseX and mouseY, not _xmouse and _ymouse.