Free flash carroussel onClick fonction problems

  • Hi all !!
    I'm starting with integrating flash external components into Krpano now that I'm more familiar to Krpano xml syntax !
    But my problem is that... I'm a noob in flash programation, most of all in AS3 !!

    I'm trying to use this carroussel :http://www.flashkod.com/codes/MENU-CARROUSSEL-3D_46489.aspx

    And I've already change some fonction to get the elements clickable:


    Code
    on (press) {$url='lien 1';getURL($url);}// affichage du texte on (rollOver) { _root.ChampDeTexte = "Accueil"; }  // réinitialisation du champs de texte on (rollOut) { _root.ChampDeTexte = ""; }


    I'd like to get it work on Krpano to get somethiong like :

    Code
    onclick="loadscene(scene1, null, MERGE, BLEND(1));" or any other action...


    But integrating the AS3 interface gets to complicated for me...

    If I understood the starting I have to import the AS3 interface in my carroussel by writting:


    Code
    import krpano_as3_interface;


    then:


    Code
    var krpano:krpano_as3_interface;
    krpano = krpano_as3_interface.getInstance();


    But then how to make my objects clickable in the .fla carroussel ?

    Thank you all in advance to help me just starting with that AS3 programming method ^^

    'Cause I'm a little bit lost there ^^

  • Hi all

    Nobody can help me there ?

    Or neither reply that you would'nt help *sad*
    I'm now trying to code it in AS3 to see if it works better but not easy ^^
    Thanks for replying !

    Ok here's the AS3 coded in the fla:



    Pfuii !!!

    So I tried to import krpano AS3 interface like I said previously
    but then I don't know what to do *confused*

    If someone could give me some tips..
    That would be great !!

  • Hi,

    in the code the 'stage' object was used,

    but when the swf was loaded into a other swf (e.g. krpano),
    the 'stage' object will not be available until the ADDED_TO_STAGE event has happened,

    e.g. add something like that:

    Code
    this.addEventListener(Event.ADDED_TO_STAGE, startplugin);

    and then in the startplugin function do anything with the 'stage' object,

    best regards,
    Klaus

  • Hi Klaus !!

    I've modified my code and keep going on ^^

    Here where I am :


    My problem here is that the swf works without any compilation problem, but shows only the first movie clip...
    I'm working on it but if you have a idea ^^

    See that I'm codind it step by step cause I don't know at all AS3 ^^
    Forgive me for my blindness ^^

    Thanks in advance !

    Best regards

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!