A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Javascript and ExternalInterface

  1. #1
    Junior Member
    Join Date
    Dec 2006
    Posts
    27

    Javascript and ExternalInterface

    Hello guys, I'm going crazy.

    Does anybody know why this is not going to work??

    http://cioccolatonapoleone.com/compr...?id_product=10

    At this link there is a product page.
    You can see there is a little text link called "Ciccio". If I click it, it calls a javascript function that makes the div disappear. It's a test and it works.

    Below there is a flash movie with a blue button.
    The code in the click of the button is:

    ExternalInterface.call("editConfig");

    It calls the same function called by the "Ciccio" link.

    The "Ciccio" link works... the blue button DOESN'T.
    I'm really going crazy... please help me!

  2. #2
    newb of many sorts Ralgoth's Avatar
    Join Date
    Apr 2002
    Posts
    466
    You have a security error...

    Code:
    SecurityError: Error #2060: Security sandbox violation: ExternalInterface caller http://www.cioccolatonapoleone.com/compra/themes/prestashop/provajs.swf cannot access http://cioccolatonapoleone.com/compra/product.php?id_product=10.
    at flash.external::ExternalInterface$/_initJS()
    at flash.external::ExternalInterface$/call()
    at provajs_fla::MainTimeline/jscript()
    it's probably because you didn't set allowScriptAccess in the embed code.
    Search first, asked questions later.

  3. #3
    Junior Member
    Join Date
    Dec 2006
    Posts
    27
    Really thank you.

    I had no output in the browser (actually I don't know how to do) so I couldn't debug the movie "in action".

    Thank you again.

Tags for this Thread

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