A Flash Developer Resource Site

Page 2 of 2 FirstFirst 12
Results 21 to 25 of 25

Thread: [Resolved] [Resolved] 2 Localconnection at once?

  1. #21
    Senile member! :)
    Join Date
    Dec 2001
    Location
    Saunaswamp (transl)
    Posts
    2,296
    Here have a look at this:

    http://www2.norsjo.net/mirandir/frame.html

    I think that atleast the first two buttons under "HISTORIEK" should work now...

    anyways you wan't the new flas:

    http://www2.norsjo.net/mirandir/mainframe.fla
    http://www2.norsjo.net/mirandir/index.fla

    I made some comments in the code(see first frame of mainframe.fla) about the changes I made. Compare them to the old ones and if there's something you don't understand let me know.

    /Mirandir

  2. #22
    Senior Member
    Join Date
    Apr 2001
    Posts
    132
    Hehehe, have you found anything new Mirandir?

    (BTW, what do you think of my picture banner )

    T.

  3. #23
    Senior Member
    Join Date
    Apr 2001
    Posts
    132
    Ooops, hadn't seen the next page thingy :d Well, lemme check it out and come back to you

    T

  4. #24
    Senior Member
    Join Date
    Apr 2001
    Posts
    132
    Hey man thanx ALOT!!

    It seems to work perfectly

    Just a few questions about the changes you made to the code.
    What does the "var" and "trace" items do, becuase they are cleary one of the main things that make this menu work.

    Thanx again!
    T.

  5. #25
    Senile member! :)
    Join Date
    Dec 2001
    Location
    Saunaswamp (transl)
    Posts
    2,296
    I don't think that they are what made it work... But when it comes to flash you never know...

    trace() is a debug function. It only works when testing the movie within the flash authoring enviorment (menu: file->publish preview->flash, or keyboard: [ctrl] + [enter]). What it does in practice is to open the output panel, if not open already, and write the result of the expression whithin the parentesis, followed by a linebreak into the panel.

    try make a new movie and enter this script into the single frame:
    Code:
    trace("Hello world!");
    Then test the movie ([ctrl] + [enter] or publish preview in the menu.) And see what happens. Then If you like you can try to publish it as html too and see what happens then...

    var declares a variable. It's exactly the same as when you first set a variable( e.g myVar = "something") with one exection. It also decides the scope of a variable.

    this little example illustrates var in action. It also shows more examples on trace.

    Code:
    var myVar = "global!"; // myVar global to this timeline.
    
    trace("myVar = " + myVar) // print out content of myVar
    
    test() // execute function test() that is declared below
    
    trace("myVar = " + myVar) // After function test() we once again print out the content of myVar.
    
    function test()
    {
       var myVar = "local!"; // This is only local to this function. Note that it sets myVar to "local!"!
    
       trace("myVar inside test = " + myVar)
    }
    /Mirandir

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