A Flash Developer Resource Site

Results 1 to 11 of 11

Thread: [RESOLVED] ? deleted messages ?

  1. #1
    Member
    Join Date
    Apr 2008
    Posts
    31

    resolved [RESOLVED] ? deleted messages ?

    I just posted a message about AS3 because I am trying to learn 3DFA and it was deleted. Should I repost or was it deleted deliberately?

  2. #2
    Senior Member
    Join Date
    Dec 2006
    Posts
    274
    I see one as3 question you posted... forum seems to be defaulting to "show last day"... so is it just slipped "out" of default view and not deleted??

  3. #3
    Senior Member kusco's Avatar
    Join Date
    Nov 2001
    Posts
    681
    No messages have been deleted that i know of, but Flashkit seems to be acting a little unusual lately.
    Cheers,
    kusco
    (3DFA Support Team)

  4. #4
    Member
    Join Date
    Apr 2008
    Posts
    31
    Ok I have this class entered into a program in 3DFA with flash 9 export:
    package {
    import flash.display.Sprite;
    import flash.utils.setInterval;

    public class SetIntervalExample extends Sprite {
    private var intervalDuration:Number = 1000; // duration between intervals, in milliseconds

    public function SetIntervalExample() {
    // var intervalId:uint = setInterval(myRepeatingFunction, intervalDuration, "Hello", "World");
    trace("SetIntervalExample called");
    }

    public function myRepeatingFunction():void {
    trace(arguments[0] + " " + arguments[1]);
    }
    }
    }

    and am trying to activate it with a script:

    var xx:SetIntervalExample = new SetIntervalExample;
    xx.SetIntervalExample();

    No matter how I do this I cannot seem to get the program to recognize the setInterval function. It keeps saying setInterval is not a method of the SetIntervalExample class or other messages depending.
    Anyone know why?

  5. #5
    3DFA hobby scripter LewxX's Avatar
    Join Date
    Jul 2006
    Location
    Germany, Karlsruhe
    Posts
    198
    I think your Post still exist: http://board.flashkit.com/board/showthread.php?t=768446

    Change the display options on the bottom to see all posts:
    sorry for my bad school English
    btw. visit my Page: projects.lewxx.de
    or lewxx.de (<= German)

  6. #6
    Member
    Join Date
    Apr 2008
    Posts
    31

    Clarification

    First, I see no such option to change display. Perhaps it is the level of user? Second in the sample code I posted this line causing the problem:
    // var intervalId:uint = setInterval(myRepeatingFunction, intervalDuration, "Hello", "World");

    was NOT commented out during my various trials. I neglected to change it back by accident.

  7. #7
    supervillain gerbick's Avatar
    Join Date
    Jul 2000
    Location
    undecided.
    Posts
    18,979
    You mean this message - here?

    Nothing's been deleted.

    LewxX got it right the first time. Under your name, richinri, nothing has been deleted.

    [ Hello ] | [ gerbick ] | [ Ω ]

  8. #8
    Member
    Join Date
    Apr 2008
    Posts
    31

    Ok...now?

    Yes, I changed the setting and see more messages now. But does anyone have the answer?

  9. #9
    Member
    Join Date
    Apr 2008
    Posts
    31

    More...

    I see what is happening now. Everytime I leave the forum the settings go back to one day's listings. I marked the other message resolved so this thread can continue. Does anyone know why the code I submitted in this thread won't work?

    Quote Originally Posted by richinri
    Yes, I changed the setting and see more messages now. But does anyone have the answer?

  10. #10
    Member
    Join Date
    Apr 2008
    Posts
    31

    Here is the problem in one shot

    To simplify here is the code again in a class file:

    package {
    import flash.display.Sprite;
    import flash.utils.setInterval;

    public class SetIntervalExample extends Sprite {
    private var intervalDuration:Number = 1000; // duration between intervals, in milliseconds

    public function SetIntervalExample() {
    var intervalId:uint = setInterval(myRepeatingFunction, intervalDuration, "Hello", "World");
    trace("SetIntervalExample called");
    }

    public function myRepeatingFunction():void {
    trace(arguments[0] + " " + arguments[1]);
    }
    }
    }

    And the script to run it in a script file:

    var xx:SetIntervalExample = new SetIntervalExample;
    xx.SetIntervalExample();
    trace(typeof(xx));

    gives the error message that setInterval is not a function of the SetIntervalExample class.

    The AS3 book I am trying to learn this program with says it should work fine.

  11. #11
    Senior Member Zoranan's Avatar
    Join Date
    May 2008
    Posts
    126
    I'm sorry, but you've already lost me, I'm not the best bay far...

    Zoranan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center