Not signed in (Sign In)

Vanilla 1.0.3 is a product of Lussumo. More Information: Documentation, Community Support.

  1.  
    Anyone else know why this is so slow on safari?

    The wierd thing is if I add an alert command in the same function, it gets processed immediately. On its own it takes between 1-3 seconds to update....

    Any suggestions are appreciated.
  2.  
    Ok, it seems that there is a notable difference when testing a .swf file that has been published, and one that was created from a Test Movie publish.

    The latter performs slower. Although there is a noticable speed difference comparing how quickly FF resizes, to Safari. FF wins.
  3.  
    Ok, another thing....

    If you are calling the javascript function from the base class, you will get a MUUUUUCH faster result.
    • CommentAuthorphilip
    • CommentTimeJul 20th 2007
     
    without any examples for us to look at, we can't really offer much advice
  4.  
    Thanks Philip. I've come to the conclusion that my problem was simply that the call going out from actionscript to the HTML doc, was too 'deep'. The same call from the base class gets an immediate response from the HTML doc's resize function.

    I hope that makes sense, and any of this helps anyone else = ]
    • CommentAuthorcayennecode
    • CommentTimeJul 20th 2007 edited
     
    Then again, the same app running in Firefox, is executing the ExternalInterface call IMMEDIATELY no matter what!

    *shrug*

    well, it is Safari 3 beta after all, hopefully the javascript engine is speedier on the stable release!
    • CommentAuthorAran
    • CommentTimeJul 20th 2007
     
    Um. If you make an external interface call from within flash, it should make do differnce how "deep" it is within a class or movieclip structure. As external interface in event based there is no concept of levels, just broadcasters and listeners.

    I think your conclusions of js engine speed sounds much more likely :)

    Cheers,
    Aran
  5.  
    I'm completely baffled with it. I have an object with a method. This method changes the position of the object on the stage. It also makes an External Interface call with one Number parameter.

    I also have an external interface call sent with a button click event from the base class, that changes the position of the object on the stage.

    The latter is immediately handled by the javascript function, whereas the former takes between 1-3 seconds. If it was the js engine, why would it matter whether the function is called from the base class, or an object method? It shouldn't! But then, maybe you think the objects method is simply taking longer to complete? No, the visual position changes immediately on screen, but the javascript function takes between 1-3 seconds. wth?

    Do you see why I'm so confused?

    But then if I add an alert to the javascript function, it processes immediately, so then I think maybe it is just the js engine in Safari being slow to get the element id and act on the style.height....

    AAHH! BAH-HUMBUG! I JUST DONT KNOW! I just wish there was one web browser, or they all used the same WEBKIT!
    • CommentAuthorzhangsisi
    • CommentTimeOct 1st 2007
     
    the find best www.ConnectAsia.info/en/lang104082about_sisi11 welcome you