A Flash Developer Resource Site

Search:

Type: Posts; User: -Blue-

Page 1 of 7 1 2 3 4

Search: Search took 0.05 seconds.

  1. Replies
    2
    Views
    505

    Run a string as an action.

    string= "bob+=1"

    How can I run "string" so it adds 1 to "bob"? Is this even possible?
  2. Replies
    11
    Views
    624

    Ok, The code below if found on the original...

    Ok, The code below if found on the original Barrier MC. I am hoping this code will:

    onClipEvent (load) {
    var i = 1;
    var speed = 10;
    Stage_height = Stage.height;
    this._x = random(550);...
  3. Replies
    11
    Views
    624

    So setting the onEnterFrame this way: ...

    So setting the onEnterFrame this way:
    _root["barrier"+i].onEnterFrame = function() {
    Will not overwrite an already existent onEnterframe?
  4. Replies
    11
    Views
    624

    _root["barrier"+i].onEnterFrame = function() { ...

    _root["barrier"+i].onEnterFrame = function() {

    Should(to my knowledge) make new objects onEnterFrame become whatever is in the curly brackets but it's not. By changing the onEnterframe for new...
  5. Replies
    11
    Views
    624

    Hmmm... The dynamic handler just doesn’t seem...

    Hmmm... The dynamic handler just doesn’t seem to work. If I remove it I get the exact same effect.

    I want it so new duplicated objects are only running the code that I specified but that’s not...
  6. Replies
    11
    Views
    624

    nope I don't need it in a loop. all i need is for...

    nope I don't need it in a loop. all i need is for the onEenterFrame code of a new duplicated object to change.

    It's acting like the:

    _root["barrier"+i].onEnterFrame = function() { does not...
  7. Replies
    11
    Views
    624

    Dynamic onClipEvent handler problem

    If I remove:

    _root["barrier"+i].onEnterFrame = function() { I get the exact same effect. Why is the code above doing nothing instead of changing newly duplicated object’s onEnterFrame handlers?...
  8. Replies
    3
    Views
    503

    whats that ment to mean?????

    whats that ment to mean?????
  9. Replies
    3
    Views
    503

    lag due to setInterval()

    it's fine for about 10 seconds...then it starts running then it seems to run the function more often because it duplicats an object quicker...after a minute there is some serious lag!!

    i have...
  10. and now i feel like a total....i fugured it out i...

    and now i feel like a total....i fugured it out i wasent ++ing the i variable so the objects depth wasent increasing
  11. [RESOLVED] just when i thought i could script!!!

    on a symbol on my main time line i have this...

    onClipEvent (load) {
    var i = 0;
    }
    onClipEvent (enterFrame) {
    //to tell duplicates to move
    if (this != _root.player) {
    trace("moving");...
  12. he that makes it work. thx i still dont...

    he that makes it work. thx

    i still dont understand why i have to put var or not infront of my veriables...

    thx
  13. [RESOLVED] [MX04]setInterval inside a function

    i am making a function that will automaticly set an interval in when that intervil finishe: restart it but with twice the delay....

    basicly i want to time the levels in a game and ech time a level...
  14. Replies
    0
    Views
    380

    [RESOLVED] [MX04] Path to variable?

    if i have a circle MC on stage(instance name"circle") and on that MC i have:

    onClipEvent (load) {
    var bob = 100
    }
    how would i write a path to a variable? would it be:
    _root.circle.bob???

    ...
  15. so nothings wrong with it??? and it must be...

    so nothings wrong with it??? and it must be something else...
  16. function & Dynamic Event Handler not working

    it looks fine to me but it's not working. i have been doing actionscript for awile now.


    _root.ship.onEnterFrame = function() {
    //below not working
    trace("HI");
    }
  17. I Found it out! it seems if you preveiw it in...

    I Found it out! it seems if you preveiw it in flash with more than what you normaly see(off-stage stuff)it lags....I wonder why.....

    i just minimized the preveiw box so it was only showing whats...
  18. is there a way to optimize it?

    is there a way to optimize it?
  19. it only happens when i simulate the download....

    it only happens when i simulate the download....
  20. i dont get what you mean in the first line but i...

    i dont get what you mean in the first line
    but i do have a preloader
  21. Replies
    3
    Views
    551

    ah no wonder i knew it was something siple thx...

    ah no wonder
    i knew it was something siple thx alot
  22. [RESOLVED] Simulate download, makes game run slow

    i have this game full of actionscript(dynamicly gererated objects mainly),
    It runs perfictly when i test it but when i "Simulate Download" It runs extramely slow. This also happens in this website...
  23. Replies
    3
    Views
    551

    duplicateMovieClip() not working

    onClipEvent (enterFrame) {
    for (i=0; i<10; i++) {
    duplicateMovieClip(_root.dot, "dot"+i, i);
    root["dot"+i]._x += 10;
    root["dot"+i]._y += 5;
    }
    }


    Why is it not working??
  24. Thread: circle hittest

    by -Blue-
    Replies
    2
    Views
    1,433

    circle hittest

    im trying to cheack to see if a cricle hits another but it's acting strange:


    this is on my Blue circle labled 1:

    onClipEvent (load) {
    radius = 50;
    }
    onClipEvent (enterFrame) {
    for (i=0;...
  25. Replies
    1
    Views
    314

    Enter, in a string.

    i want a veriable string to be put in a text box, but i want to make it go one line down(as if you pressed enter) so when its in the text box it will look like this,


    Hello
    How are you? ...
Results 1 to 25 of 170
Page 1 of 7 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center