A Flash Developer Resource Site

Search:

Type: Posts; User: dawsonk

Page 1 of 5 1 2 3 4

Search: Search took 0.09 seconds; generated 13 minute(s) ago.

  1. Replies
    12
    Views
    928

    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...
  2. 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)
  3. Replies
    1
    Views
    154

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

    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;
  5. Replies
    3
    Views
    536

    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...
  6. Replies
    3
    Views
    428

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

    stop();

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

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

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

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

    Target.onMouseDown = function() {
    Target.onEnterFrame = function() {
    Target._rotation++;
    upDate();
    };
    onMouseUp = function () {
    ...
  10. 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));
  11. var spray:Boolean = false; var count:Boolean =...

    var spray:Boolean = false;
    var count:Boolean = false;
    var placement:Boolean = false;

    count_mc.addEventListener(MouseEvent.CLICK, doClick, false, 0, true);...
  12. AS 2 spindle.gotoAndStop(1); paper1.onPress =...

    spindle.gotoAndStop(1);

    paper1.onPress = moveMe;
    paper2.onPress = moveMe;
    paper3.onPress = moveMe;

    function moveMe() {
    if (this.orgX == undefined) {
    this.orgX =...
  13. import flash.utils.getDefinitionByName; var...

    import flash.utils.getDefinitionByName;

    var len:uint = 10;

    for (var i:uint=1; i<=len; i++) {
    var s:String = "s" + i;
    var cr:Class = getDefinitionByName(s) as Class;
    ...
  14. Make a movie clip and place it in the library,...

    Make a movie clip and place it in the library, with a Linkage name of "Dot".

    On the main timeline, in the actions layer, add the following code.



    var len = slides_mc.totalFrames;
    var offX =...
  15. import fl.transitions.*; import...

    import fl.transitions.*;
    import fl.transitions.easing.*;
    import flash.events.Event;

    var myTween:Tween = new Tween(PopUp_mc,"y",Strong.easeOut,PopUp_mc.y,300,1,true);
    var lastFrame:int = -1;...
  16. AS 2 spindle.gotoAndStop(1); paper1.onPress =...

    spindle.gotoAndStop(1);

    paper1.onPress = moveMe;
    paper2.onPress = moveMe;
    paper3.onPress = moveMe;

    function moveMe() {
    this.startDrag();
    ...
  17. AS 2 _root.spinner.onEnterFrame = function() { ...

    _root.spinner.onEnterFrame = function() {
    if (running == true) {
    this._rotation -= speed;
    if (speed <= 10) {
    ...
  18. Replies
    2
    Views
    526

    var bigstar:thestar; var midstar:thestar; var...

    var bigstar:thestar;
    var midstar:thestar;
    var smallstar:thestar;
    var stars:Array = [];
    var i:int = 25;
    while (i-- > 0) {
    bigstar=new thestar();
    bigstar.width = 18;
    ...
  19. Replies
    4
    Views
    745

    Using distance instead of hit test... ...

    Using distance instead of hit test...


    function doUpDate() {
    if (Key.isDown(Key.LEFT)) {
    hero._x -= hero.power;
    } else if (Key.isDown(Key.RIGHT)) {
    ...
  20. Replies
    2
    Views
    585

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

    Maybe this is something you can adapt...
    Replaced the graphics with blank images in the fla to make the file smaller, so you will need to re-attach your graphics in the library before you try to run...
  21. Replies
    4
    Views
    745

    Removed all codes from clips, placed code below...

    Removed all codes from clips, placed code below in first frame main timeline

    Removed variable from textfield and gave it an instance name of 'txt'.

    Removed 'add bomb' button, added code for...
  22. Replies
    2
    Views
    382

    Maybe you can adapt this... var num = 0;...

    Maybe you can adapt this...


    var num = 0;
    var sideNavListener:Object = new Object();
    var sideNavLoader:MovieClipLoader = new MovieClipLoader();
    sideNavLoader.addListener(sideNavListener);...
  23. Thread: need help :(

    by dawsonk
    Replies
    2
    Views
    338

    Flash8 When speed exceeds the width of the wall the clip...

    When speed exceeds the width of the wall the clip moves outside...

    Maybe you can adapt this...


    onClipEvent (load) {
    power = 1;
    yspeed = 0;
    xspeed = 0;
    ...
  24. Thread: need a code

    by dawsonk
    Replies
    2
    Views
    413

    Maybe you can adapt this... // bottom...

    Maybe you can adapt this...



    // bottom layer - 'linesMC', empty movie clip at 0,0
    // middle layer - dot movie clips, put instance names in dots array below
    // top layer - 'drawMC', empty...
  25. Replies
    1
    Views
    290

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

    package {

    import flash.display.*;
    import flash.events.*;
    import MMES.Common;

    public class Main extends Sprite {

    public function Main() {
    ...
Results 1 to 25 of 120
Page 1 of 5 1 2 3 4




Click Here to Expand Forum to Full Width


HTML5 Development Center