dcsimg
A Flash Developer Resource Site

Search:

Type: Posts; User: electricbluemonkey

Page 1 of 11 1 2 3 4

Search: Search took 0.51 seconds.

  1. Replies
    2
    Views
    289

    The problem is everytime you return to the first...

    The problem is everytime you return to the first frame of your movie you are creating another Key.listener - hence, the onKeyUp function gets called twice for every KeyUP action.

    Try this


    ...
  2. Replies
    3
    Views
    357

    // PUT ALL THIS ON THE MAIN TIMELINE function...

    // PUT ALL THIS ON THE MAIN TIMELINE
    function time() {
    return getTimer()/1000;
    }
    startTime = time();
    count=0;
    this.onEnterFrame = function() {
    currentTime = time()-startTime;
    if (count) {...
  3. Replies
    3
    Views
    303

    When you setInterval() use this:...

    When you setInterval() use this:
    intervalID=setInterval(wclear,500);

    When you want to clearInterval() use this:
    clearInterval(intervalID);
  4. In your changeInfoBox function you have declared...

    In your changeInfoBox function you have declared the SpeedofTransistion variable as a _global. However, in both the fadeIn() and fadeOut() functions you refer to it as a local variable...
  5. Add the following to your on(release) when the...

    Add the following to your on(release) when the object is released on it's target clip.

    // disable the button
    this.enabled=0;
  6. Try this: ...

    Try this:

    getURL("javascript:window.open('"+linkout+"','game','"+linkout_window_properties+"')");
  7. Replies
    2
    Views
    339

    // drop this onto frame 1 of any movie and it...

    // drop this onto frame 1 of any movie and it will act as a preloader
    // and when preloading is complete it will delete itself
    // so it won't interfere with any of your code
    this.onEnterFrame =...
  8. Replies
    4
    Views
    389

    try www.moock.org it's Colin Moock's site (you...

    try www.moock.org it's Colin Moock's site (you should own his book if you want to really learn good oop techniques) - anyway he's got some .fla's you can download that are templates for creating oop...
  9. Replies
    15
    Views
    350

    You might get some help if you showed us the code...

    You might get some help if you showed us the code that is not working.
  10. Replies
    3
    Views
    326

    You have two options when preloading your movie:...

    You have two options when preloading your movie: 1. check to see if a certain frame has loaded, or 2. check to see if a certain number of bytes have loaded. So, if you only want to load the movie up...
  11. Replies
    1
    Views
    337

    // this code goes in an onEnterFrame function -...

    // this code goes in an onEnterFrame function - or some other function
    // that gets called every frame
    this.onEnterFrame = function() {
    currentTime = int(getTimer()/1000); // current time in...
  12. Replies
    2
    Views
    328

    2 things: First, your conditional statement...

    2 things:
    First, your conditional statement should be:

    if (_root.ball.hitTest(_root.square)) {

    (period after ball, not comma)

    Second, since the statement is on the main timeline, and not in...
  13. Replies
    3
    Views
    344

    You were pretty close actually. ...

    You were pretty close actually.

    _currentframe/2 == int(_currentframe/2);
  14. Regardless of whether or not the _parent & child...

    Regardless of whether or not the _parent & child hitareas overlap you cannot put a button inside another button
  15. I've never used a Linux server. You might check...

    I've never used a Linux server. You might check with Macromedia - maybe there is some info in one of their tech notes about it.
  16. Your syntax was a bit off is all: if...

    Your syntax was a bit off is all:

    if (rawTextLength > breakpoint){
    while(rawText.charAt(breakpoint) != " "){
    breakpoint--;
    }
    substring1 = rawText.slice(0,breakpoint);
    substring2 =...
  17. Without even seeing a hint of you code it's hard...

    Without even seeing a hint of you code it's hard to say, but my guess would be that you are telling the sound to start() before it has loaded.
  18. Replies
    1
    Views
    322

    You can download a Flash detection kit from...

    You can download a Flash detection kit from Macromedia's website. It includes a default page, for those visitors that don't have the plugin, which contains an image - just swap out their image for...
  19. Replies
    10
    Views
    417

    You should only need to use this once. After the...

    You should only need to use this once. After the initial frames have loaded the entire movie will still be loading so you don't need another preloader for the portfolio. However, you may want to make...
  20. here you go...

    here you go...
  21. Replies
    10
    Views
    417

    No, I don't know of a tutorial, but this might...

    No, I don't know of a tutorial, but this might help:


    // put this on the first frame of your movie
    // set this equal to the first frame of your portfolio
    // (if you have multiple scenes in you...
  22. The principles of using ASP with Flash are...

    The principles of using ASP with Flash are basically the same as PHP,PERL, or any other server side script, and since it is much more common to use PHP with Flash you might look up a tutorial on a...
  23. Replies
    10
    Views
    417

    It is possible to preload only part of the site...

    It is possible to preload only part of the site if you insist on keeping it all in one file. To do this you would have to have you portfolio section come after everything else on the timeline. You...
  24. Replies
    1
    Views
    1,258

    onClipEvent(load) { badPeanutSpeed=random(4); ...

    onClipEvent(load) {
    badPeanutSpeed=random(4);
    function badPeanutReset() {
    this._x=random(400);
    this._y=0;
    this._visible=true;
    }
    badPeanutReset();
    // add move variable
    this.move =...
  25. Replies
    2
    Views
    332

    Is pressOutside a new function in MX2004? I've...

    Is pressOutside a new function in MX2004? I've never heard of Mouse.isDown either (Key.isDown I'm familiar with). Anyhow, this may help:


    // You only need one onClipEvent(load) function...
Results 1 to 25 of 252
Page 1 of 11 1 2 3 4




Click Here to Expand Forum to Full Width

HTML5 Development Center