A Flash Developer Resource Site

Search:

Type: Posts; User: BobJohnson

Page 1 of 18 1 2 3 4

Search: Search took 0.05 seconds.

  1. Thread: new [var];

    by BobJohnson
    Replies
    2
    Views
    425

    function Build(unit:String) { var clazz:Object =...

    function Build(unit:String) {
    var clazz:Object = getDefinitionByName(unit);
    var newUnit:MovieClip = new clazz();
    addChild(newUnit);
    }
    Build("House");

    Ended up having to data type it as an...
  2. Thread: new [var];

    by BobJohnson
    Replies
    2
    Views
    425

    new [var];

    A stupid question I'm sure, but here goes:

    I have a MC with class name "House" in the library.
    The Build function will be used to add hundreds of different MCs to the stage, so I am using the the...
  3. Replies
    2
    Views
    500

    Make a function that fades out the dropdown MC in...

    Make a function that fades out the dropdown MC in which the button is located...

    //main timeline frame code
    _global.fadeMenu = function(menuName) {
    eval(menuName).gotoAndPlay("fadeOut");
    }...
  4. Replies
    1
    Views
    452

    They're probably just tweens being played in...

    They're probably just tweens being played in movie clips. So if a user clicked on button 2, you'd want only buttons 1,3, and 4 to reset...

    stop();
    button2.onRelease = function() {...
  5. Replies
    1
    Views
    496

    stopAllSounds() should actually work, but if you...

    stopAllSounds() should actually work, but if you really want to avoid overlapping songs, just use one sound object instead of multiple ones. For a new song, load over the same object.

    s = new...
  6. Replies
    2
    Views
    484

    It already has speed variables. Change the values...

    It already has speed variables. Change the values of dx and dy for xspeed and yspeed, respectively.
  7. Replies
    5
    Views
    492

    You can post the .fla if you want. I'm actually...

    You can post the .fla if you want. I'm actually interested to see what the problem is.
  8. Replies
    5
    Views
    492

    #include "filename.as" Don't put a semicolon ( ;...

    #include "filename.as"
    Don't put a semicolon ( ; ) at the end of the line or it won't work.
  9. Replies
    2
    Views
    586

    You can't put on() handlers on components. Use an...

    You can't put on() handlers on components. Use an event listener...

    function change() {
    trace("hello");
    }
    comboBox.addEventListener("change" , this);
  10. if(n >= 10 && n < 20) { //stuff }

    if(n >= 10 && n < 20) {
    //stuff
    }
  11. Replies
    2
    Views
    520

    Probably because it hasn't loaded yet. You could...

    Probably because it hasn't loaded yet. You could just put stop(); on the first frame of kids2.swf
  12. I assume you mean a checkbox not a button. If...

    I assume you mean a checkbox not a button. If you're using the chekbox component then you check its value like this...

    if(checkBox.selected) trace("selected");where "checkBox" is the instance...
  13. Replies
    2
    Views
    494

    Declare the SharedObject before you save the...

    Declare the SharedObject before you save the data. Declare as...

    dataCoookie = SharedObject.getLocal("datosCookie");not...

    var dataCoookie:Object = new Object();
  14. Replies
    1
    Views
    346

    Make sure you have the same plugin for IE that...

    Make sure you have the same plugin for IE that you have for Firefox.
  15. Replies
    2
    Views
    511

    Probably a scope issue. Try...

    Probably a scope issue. Try _root.gotoAndStop(55); or _parent.gotoAndStop(55); if you're trying to control the main timeline from a button MC.
  16. Replies
    6
    Views
    941

    There are 2 kinds of button code. One kind is...

    There are 2 kinds of button code. One kind is code that goes on a frame, refers to the button with a target path, and assigns a function to a certain button event. Example:

    searchButton.onRelease...
  17. Replies
    6
    Views
    941

    Right. You might want to put matchFound = false;...

    Right. You might want to put matchFound = false; at the very beginning of the search button function (before the for loop), too. That way the user won't get erroneous results if they search more than...
  18. Yes. Did you try doing it? Should just be... ...

    Yes. Did you try doing it? Should just be...

    loadMovie("filename.swf" , _parent);
  19. Replies
    6
    Views
    941

    Maybe something like this... array = [];...

    Maybe something like this...
    array = [];
    matchFound = false;
    Button1.onRelease = function() {
    array.push("whatever");
    }
    Button2.onRelease = function() {
    array.push("somethingElse");
    }...
  20. Replies
    4
    Views
    683

    No, just type it into the instance name field in...

    No, just type it into the instance name field in the properties panel...
  21. Replies
    3
    Views
    445

    Do you mean... for (i=1; i

    Do you mean...

    for (i=1; i<=50; i++) {
    duplicateMovieClip(_root.ship, "ship"+i, i);
    _root["ship"+i]._x = _root.gun._x;
    _root["ship"+i]._y = _root.gun._y;
    }??
  22. You could loop through every character of the...

    You could loop through every character of the string in AS to check for those kinds of characters, but that would be a pain. I don't know my CF, but I bet there's a function that strips # and similar...
  23. Hmm.... tough one. My next suggestion would be ...

    Hmm.... tough one. My next suggestion would be
    lvSend["return"]= "http://www.google.com"; but I see you already tried that. You could say...

    lvSend.Return = "http://www.google.com";...
  24. Replies
    2
    Views
    528

    Not separate MCs, but separate SWFs. When you...

    Not separate MCs, but separate SWFs. When you need to load a new page, you can do...

    loadMovie("filename.swf" , containerMC);
    //or
    loadMovieNum("filename.swf" , level);
    //or
    loader = new...
  25. Replies
    1
    Views
    564

    Open up notepad and type [autorun] ...

    Open up notepad and type

    [autorun]
    open=filename.exeThen save the file as "autorun.inf" Burn the file onto your CD.
Results 1 to 25 of 442
Page 1 of 18 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center