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

  1. Replies
    3
    Views
    431

    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,...
  2. Replies
    1
    Views
    246

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

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

    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 =...
  5. Replies
    4
    Views
    737

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

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

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

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

    by dawsonk
    Replies
    2
    Views
    556

    package { import...

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

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

    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...
  11. Replies
    4
    Views
    753

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

    You are not calling the photoGallery function...


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

    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;
    ...
  14. Replies
    1
    Views
    431

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

    package {
    import flash.display.*;

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

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

    addEventListener(Event.ENTER_FRAME,...
  16. Replies
    12
    Views
    1,967

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

    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
  19. Replies
    1
    Views
    820

    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;
  20. Replies
    3
    Views
    789

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

    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...
  22. AS 2 stop(); this.onEnterFrame = function() { ...

    stop();

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

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

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

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

    Target.onMouseDown = function() {
    Target.onEnterFrame = function() {
    Target._rotation++;
    upDate();
    };
    onMouseUp = function () {
    ...
  25. Timing issue... Code on clip var...

    Timing issue...

    Code on clip


    var myText:TextField = new TextField();
    myText.name = "myText";
    addChild(myText);
    myText.text = "old text";
    dispatchEvent(new Event (Event.INIT));
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