A Flash Developer Resource Site

Page 3 of 12 FirstFirst 1234567 ... LastLast
Results 41 to 60 of 222

Thread: KoolMoves 7 technology preview

  1. #41
    Relaxing tmoore935's Avatar
    Join Date
    Oct 2001
    Location
    colorado, usa
    Posts
    1,713
    Quote Originally Posted by Chris_Seahorn

    I'm looking at one run as I type built with a custom class so trust me, KM7 will certainly allow you to create something like (or better than even) the example you posted
    I know wilberts will be better. I just wanted to show a differnt AC3 direction. And my example is like 10 lines of code. As for real coding, As I pound thru with Brute force, I am learning AS3. I have not seen it discused here but I had to relearn using all code from the frame and packages and not to do any noodle coding.
    Any programming language is at its best before it is implemented and used.

  2. #42
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    I hear ya Tmoore, it has taken me a little time to get started. But once I dug in and tried creating my one componet (very simple one) and now I've been able to bring that component into KM7 and it works It's kinda exciting.

    In case anyone is interested here is the code for the dice component I showed
    PHP Code:
    /**
    * @author Bret Lanius
    * @version 0.1
    * Intended class for use with Koolmoves 7
    */

    package com.bretlanius.game {

        
        
    import flash.display.*;
        
    import flash.geom.*;
        
        public class 
    Dice extends Sprite{

            private var 
    _number:int;
            public var 
    _bg:int;
            public var 
    canvas:Sprite = new Sprite;
            
            public function 
    Dice():void {//set defaults
            
                
    _number 6;
                
    _bg0xf5f5f5;
                
            }

            public function 
    getNumber():int {
                
    //retrieve value
                
    return _number;
            }
            public function 
    setBg(c:int):void {
                
    _bg c;
            }
            public function 
    draw():void {
                
    //Clear it first before redrawing
                
    canvas.graphics.clear();
                var 
    y1:int 18;
                var 
    y2:int 50;
                var 
    y3:int 80;
                
    //redraw visual representation of die
                
                //draw box
                
    canvas.graphics.beginFill(_bg1);
                
    canvas.graphics.lineStyle(101false"normal"null"round");
                
    canvas.graphics.drawRoundRect(001001009);
                
                var 
    y:int 5;
                
    //draw dots
                        
                
    var fillType:String GradientType.LINEAR;
                var 
    colors:Array = [0xc8c8c80x000000];
                var 
    alphas:Array = [11];
                var 
    ratios:Array = [0255];
                
    canvas.graphics.lineStyle(.40xffffff1);
                
    canvas.graphics.beginGradientFill(fillTypecolorsalphasratios);
                if (
    _number == 1) {
                    
    canvas.graphics.drawCircle(y2,y210);
                }
                if (
    _number == 2) {
                    
    canvas.graphics.drawCircle(y1y110);
                    
    canvas.graphics.drawCircle(y3y310);
                }
                if (
    _number == 3) {
                    
    canvas.graphics.drawCircle(y1y110);
                    
    canvas.graphics.drawCircle(y2y210);
                    
    canvas.graphics.drawCircle(y3y310);
                }
                if (
    _number == 4) {
                    
    canvas.graphics.drawCircle(y1y110);
                    
    canvas.graphics.drawCircle(y1y310);
                    
    canvas.graphics.drawCircle(y3y110);
                    
    canvas.graphics.drawCircle(y3y310);
                }
                if (
    _number == 5) {
                    
    canvas.graphics.drawCircle(y1y110);
                    
    canvas.graphics.drawCircle(y1y310);
                    
    canvas.graphics.drawCircle(y2y210);
                    
    canvas.graphics.drawCircle(y3y110);
                    
    canvas.graphics.drawCircle(y3y310);
                }
                if (
    _number == 6) {
                    
    canvas.graphics.drawCircle(y1y110);
                    
    canvas.graphics.drawCircle(y1y210);
                    
    canvas.graphics.drawCircle(y1y310);
                    
    canvas.graphics.drawCircle(y3y110);
                    
    canvas.graphics.drawCircle(y3y210);
                    
    canvas.graphics.drawCircle(y3y310);
                }
                
    addChild(canvas);
            }

            public function 
    roll():void {
                
    //generate new number
                
    _number = (Math.random())+1;
                
            }

        }


    Just getting this working was a real learning experience for me. And this is the kind of thing I would recommend to anyone wanting to learn. I did this in Flashdevelop using the FLEX api before KM7 beta was ready then only had a minor error when I used it in KM but Wilbert helped me sort it out.

  3. #43
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632
    Chris is right TMoore, it won't be a problem to create something like that.
    KoolMoves itself comes with a simple spectrum analyzer that is also used by the media player component.

    Event handling and using the display list might take a little time to get used to.
    Maybe this page from the Adobe livedocs explains a bit about the display list
    http://livedocs.adobe.com/flash/9.0/main/00000142.html

  4. #44
    That web bloke Stoke Laurie's Avatar
    Join Date
    Jan 2006
    Location
    England
    Posts
    869
    I feel like the kid with his nose pressed against the sweet shop window, and the chosen few are pushing it, haven't felt like this since v6 was launched. Earlier you mentioned that those beta testing were conversant with as3, but from this thread that is clearly not the case. I think I speak for a few in here that stand on the outside again. Particularly as some of them have consciencously contributed help and koolexchange examples for existing versions.

  5. #45
    Senior Member
    Join Date
    Jun 2000
    Posts
    3,512
    Only about 3 people are playing with the beta which at this point is not fully functioning.

  6. #46
    Senior Member FLASHPULSE's Avatar
    Join Date
    Nov 2002
    Location
    USA
    Posts
    1,356
    I have not recieved a beta in some time but that could be for a few reasons. But I can tell you guys have been working hard with AS3 and KM7 looks to be interesting. Nice work guys!

  7. #47
    Relaxing tmoore935's Avatar
    Join Date
    Oct 2001
    Location
    colorado, usa
    Posts
    1,713
    Quote Originally Posted by FLASHPULSE
    I have not recieved a beta in some time but that could be for a few reasons. But I can tell you guys have been working hard with AS3 and KM7 looks to be interesting. Nice work guys!
    I have not either but I am not the best tester. I looked today at your website flashpulse. I guess you are really into the minimalist look.
    Any programming language is at its best before it is implemented and used.

  8. #48
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    FLV-Dropper v2
    Koolmoves Beta / Adobe Air 1.0
    A desktop application requires adobe air runtime (one time install)

    Just using the beta at this stage (scripting only) and KM7's ability to export F9 swf, the improvements over the KM6/AIR Exchange submission are worth the recode. When KM7 goes final, you may find you revisit old code that may be improved with what AS3 brings to the table. Just my simple FLV-Loader alone has seen a few:

    1. localConnections no longer needed as KM7 can utilize the Loader class. This was a massive improvement in and of itself. The Loader class rocks. Start reading about it now

    2. Wilberts new components can now handle thousands (and I mean thousands) of items and I no longer have to cap search returns at 200 (an arbitrary number chosen for no reason but to cap).

    3. Always On Top now added

    4. Add Mode (will add dropped files to existing playlist) and Clear Mode (dropped files will replace current playlist) added.

    Everything I link to or show will eventually be source code at the exchange once KM7 goes final.


    Some screenshots of KM7 and Adobe AIR working as a team:







  9. #49
    Senior Member
    Join Date
    Dec 2002
    Location
    Netherlands
    Posts
    1,632

    Thumbs up

    Great work Chris !
    It looks professional. I'm glad you like the new things and am looking forward to your contributions once KM7 goes final

  10. #50

  11. #51
    Senior Member FLASHPULSE's Avatar
    Join Date
    Nov 2002
    Location
    USA
    Posts
    1,356
    Quote Originally Posted by tmoore935
    I have not either but I am not the best tester. I looked today at your website flashpulse. I guess you are really into the minimalist look.
    I was going for the notepad look.

    Chris: Looks interesting, can't wait for KM7.

  12. #52
    Senior Member
    Join Date
    Jun 2000
    Posts
    3,512
    Thanks Chris.

  13. #53
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    It's I who thank you. Thanks you for all your hard work Bob. I know this version upgrade is unlike any other before it as far as work involved for you and all I can say is Lucky Monkey is very lucky indeed to have you. We are too

  14. #54
    Member
    Join Date
    Oct 2005
    Posts
    91
    so i've been following this forum since I'm looking forward to KM 7. But just to clarify (since i don't know). With AS 3 being supported does that mean AS 1 won't be? I know that they're different (and AS 3 is supposed to be better) but Koolmoves is only a hobby for me and not something i do full time. I don't want to relearn all the codes i know at once. And does it mean older files with AS 1 won't run properly? Call me stupid, but i think it's a good question for the people who don't know as much.
    we keep making fool proof systems, but the world keeps making better fools.

  15. #55
    Senior Member
    Join Date
    Jun 2000
    Posts
    3,512
    This is a very good question. Export at Flash 8 or below will only accept AS1. Export at Flash 9 is tricky. Flash 9 export will only accept AS3 (in KoolMoves). If there is existing AS1 code or motion scripts or components, there is complication and how that will be handled is still not fully determined. AS1 cannot be mixed with AS3 in the same movie but swfs containing AS1 can be loaded into movies with AS3. There will be an opportunity to convert AS1-based components into newer AS3 components that have greater flexibility and are skinned. There will also be AS3 equivalents to some of the motion scripts which will provide much better CPU utilization. For remaining AS1 objects, they will probably be encapsulated into AS1 movies and under-the-covers loaded into the AS3 movie. There will be 100% compatibility if the export remains below Flash 9. At Flash 9 export, scripting at the frame or button level added by the user will have to be converted to AS3. I hope I have answered your question. I think you can appreciate that there is considerable technical challenge in achieving a Flash 9 export using prior projects.

  16. #56
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244

    using a custom class from internet

    Here's an example of using a refelection component that I found online.

    fairly easy to get working in KM7 once Wilbert helped me load an image in.
    At this point everything has to be coded, the AS3 components are not working in the GUI yet.

    Cool thing is that because of the display hierarchy the reflection is a child of the image so it will move with it and hide the image the reflection hides and so on, you don't have to deal with it once created. This would have been hard to do in AS1

  17. #57

  18. #58
    KoolMoves Moderator blanius's Avatar
    Join Date
    Jul 2001
    Location
    Atlanta GA
    Posts
    5,244
    Quote Originally Posted by Stoke Laurie
    ^ No link Bret?
    DOH!!!!!

    Sorry
    http://bretlanius.com/flash/km7stuff...ctiontest.html

  19. #59

  20. #60
    Junior Member
    Join Date
    Jul 2008
    Posts
    25
    it's great feature, is this reflection can be applied in to text as well?


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center