Search Results - Flash Kit Community Forums
A Flash Developer Resource Site

Search:

Type: Posts; User: dawsonk

Page 1 of 20 1 2 3 4

Search: Search took 0.06 seconds.

  1. Replies
    2
    Views
    875

    Flash8 Maybe try something like this.. package {...

    Maybe try something like this..


    package {
    import flash.display.*;
    import flash.events.*;

    public class BreakerBar extends MovieClip {

    public function BreakerBar() {
  2. Replies
    13
    Views
    2,639

    PROJECT Sent you a PM

    Sent you a PM
  3. Replies
    68
    Views
    39,107

    Thanks for sharing. You are AWESOME.

    Thanks for sharing. You are AWESOME.
  4. Replies
    13
    Views
    2,639

    PROJECT AS2 or AS3 ? Do clips have center registration...

    AS2 or AS3 ?
    Do clips have center registration or upper left?
  5. var className:String =...

    var className:String = flash.utils.getQualifiedClassName(LibraryItem);
    var myClass:Class = flash.utils.getDefinitionByName(className) as Class;
    var BLOK = new myClass();
  6. Replies
    3
    Views
    1,137

    import com.greensock.*; import...

    import com.greensock.*;
    import flash.events.MouseEvent;
    import flash.display.MovieClip;
    import flash.geom.Rectangle;

    var item_mc:MovieClip;

    red_mc.addEventListener(MouseEvent.MOUSE_DOWN,...
  7. Replies
    1
    Views
    494

    import flash.events.KeyboardEvent; import...

    import flash.events.KeyboardEvent;
    import flash.events.Event;

    var ballXSpeed:Number = 8;
    var ballYSpeed:Number = 8;
    var moveLeft:Boolean = false;
    var moveRight:Boolean = false;
    var...
  8. Replies
    1
    Views
    726

    function doQuit($e:Event):void { if...

    function doQuit($e:Event):void {
    if (this.root.parent is Loader) {
    var loader:Loader = this.root.parent as Loader;
    loader.unloadAndStop();
    ...
  9. Replies
    4
    Views
    1,164

    CS3 // place on main timeline, delete existing...

    // place on main timeline, delete existing onClipEvent codes
    var tID;
    var numStars = 50;
    var stars = [];

    star1.onEnterFrame = function() {
    if (random(50) == 0) {
    mc =...
  10. Replies
    4
    Views
    1,164

    CS3 onClipEvent (load) { _x = _x =...

    onClipEvent (load) {
    _x = _x = random(180);
    _y = _y = random(400);
    _alpha = 80 + random(20);
    _xscale = _yscale = 80 + random(80);
    ct = random(100);
    }...
  11. Replies
    1
    Views
    555

    function handleCollision( e:Event ):void { ...

    function handleCollision( e:Event ):void {
    if (this.hitTestObject(wall)) {
    trace("HIT");
    } else {
    trace("MISS");
    }
    }
  12. Replies
    2
    Views
    892

    Flash5 The easiest way is to store the location of the...

    The easiest way is to store the location of the player, move the player and do the hit test, then move the player back to the stored location.
  13. Thread: transparency

    by dawsonk
    Replies
    2
    Views
    742

    package { import...

    package {
    import flash.display.MovieClip;
    import fl.motion.Color;
    import flash.geom.ColorTransform;

    public class RectangleClass extends MovieClip {
    ...
  14. Change the 2nd function name and the call in the...

    Change the 2nd function name and the call in the event listener...


    btn_1.addEventListener(MouseEvent.CLICK, onClick, false, 0, true);
    function onClick(e:MouseEvent):void{
    navigateToURL(new...
  15. Replies
    4
    Views
    5,263

    var myPointer:Sprite; var btns:Array =...

    var myPointer:Sprite;
    var btns:Array = ["staff099","staff098"];

    stage.addEventListener(MouseEvent.CLICK, onClick);

    function onClick(e:MouseEvent):void {
    if...
  16. Replies
    4
    Views
    1,067

    Flash8 Maybe you can adapt this to what you are trying...

    Maybe you can adapt this to what you are trying to do...



    package {
    import flash.display.*;
    import flash.ui.*;
    import flash.events.*;
    import...
  17. You are not calling the photoGallery function......

    You are not calling the photoGallery function...


    photoGallery();
    function photoGallery(){
    photos1.addEventListener(MouseEvent.MOUSE_DOWN, startGallery);
    ...
  18. Replies
    1
    Views
    928

    function dist(a, b, c, d) { xd = a - c;...

    function dist(a, b, c, d) {
    xd = a - c;
    yd = b - d;
    return (Math.sqrt(xd * xd + yd * yd));
    }
    function dragobj() {
    a = drag;
    xd = _xmouse - a.x;
    ...
  19. Replies
    1
    Views
    574

    package { import flash.display.*; ...

    package {
    import flash.display.*;

    public class Game extends MovieClip {
    // note - changed background to Background
    private var bg:Background;
    ...
  20. var isOver:Boolean = false;...

    var isOver:Boolean = false;
    myObject.addEventListener(MouseEvent.MOUSE_OVER, doOver);
    myObject.addEventListener(MouseEvent.MOUSE_OUT, doOut);

    addEventListener(Event.ENTER_FRAME,...
  21. Replies
    12
    Views
    2,672

    var myXML:XML; var stX:Number =...

    var myXML:XML;
    var stX:Number = stage.stageWidth;
    var speedX:int = 2;
    var gap:int = 20;
    var index:int = 0;
    var len:int;

    var myLoader:URLLoader = new URLLoader();
    myLoader.load(new...
  22. var my_date:Date = new Date(); var...

    var my_date:Date = new Date();
    var currentHour:Number = my_date.getHours() + (my_date.getMinutes() / 60);
    trace(currentHour)
  23. Replies
    2
    Views
    3,699

    For Escape the room tutorial, take a look at...

    For Escape the room tutorial, take a look at
    http://www.flashclassroom.com/cms/flashclassroom/index.php?vsite=1&Area=327&SubSectionOf=265
  24. Replies
    1
    Views
    1,081

    Your code works, so how are you creating your...

    Your code works, so how are you creating your object?



    var obj:Object = new Object();
    obj.Model = 'SomeModelNumber';
    obj.EID = 1234;
    obj.ItemID = 5;
    obj.Size = null;
    obj.iLength = 34;
  25. Replies
    3
    Views
    941

    my_mc is the instance name of the movie clip you...

    my_mc is the instance name of the movie clip you want to play


    keyListener = new Object();
    keyListener.onKeyDown = function() {
    if (Key.getCode() == Key.SPACE) {
    if...
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4




Click Here to Expand Forum to Full Width


HTML5 Development Center

Poll by Flashkit.com