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.09 seconds.

  1. var className:String =...

    var className:String = flash.utils.getQualifiedClassName(LibraryItem);
    var myClass:Class = flash.utils.getDefinitionByName(className) as Class;
    var BLOK = new myClass();
  2. Replies
    3
    Views
    466

    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,...
  3. Replies
    1
    Views
    270

    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...
  4. Replies
    1
    Views
    472

    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();
    ...
  5. Replies
    4
    Views
    759

    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 =...
  6. Replies
    4
    Views
    759

    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);
    }...
  7. Replies
    1
    Views
    362

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

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

    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.
  9. Thread: transparency

    by dawsonk
    Replies
    2
    Views
    573

    package { import...

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

    public class RectangleClass extends MovieClip {
    ...
  10. 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...
  11. Replies
    4
    Views
    4,321

    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...
  12. Replies
    4
    Views
    771

    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...
  13. You are not calling the photoGallery function......

    You are not calling the photoGallery function...


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

    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;
    ...
  15. Replies
    1
    Views
    441

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

    package {
    import flash.display.*;

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

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

    addEventListener(Event.ENTER_FRAME,...
  17. Replies
    12
    Views
    2,013

    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...
  18. 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)
  19. Replies
    2
    Views
    1,969

    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
  20. Replies
    1
    Views
    835

    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;
  21. Replies
    3
    Views
    805

    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...
  22. Replies
    3
    Views
    712

    Maybe this is something you can adapt... ...

    Maybe this is something you can adapt...


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

    public...
  23. AS 2 stop(); this.onEnterFrame = function() { ...

    stop();

    this.onEnterFrame = function() {
    var amount= this.getBytesLoaded() / this.getBytesTotal()*100;
    _root.preLoader.preLoaderFill._xscale = amount;
    ...
  24. Replies
    1
    Views
    643

    Flash8 Can you be more specific about what you are...

    Can you be more specific about what you are trying to do?
  25. Replies
    2
    Views
    474

    MX04 Target.onMouseDown = function() { ...

    Target.onMouseDown = function() {
    Target.onEnterFrame = function() {
    Target._rotation++;
    upDate();
    };
    onMouseUp = function () {
    ...
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