×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Apr 2010
    Posts
    1

    Problem with WRT/Flash ExternalInterface

    I'm doing a WRT app that uses flash inside. The thing is i have to pass parameters to the swf via javascript. So i created a function in javascript like

    Code:
    function returnFunction()
    {
        return "test";
    }
    and in my SWF i have the following code:

    Code:
    import flash.external.ExternalInterface;
    
    var result:Object = ExternalInterface.call("returnFunction");
    versionTxt.text = "Returned: " + String(result);
    So, this works fine when i run on my local machine(had to change some security on the flash player) and when i host it on a server. But i have to run it on a mobile phone, so i wrapped it in a WRT app, but when i test it, it returns like:

    Returned: null

    So i'm out of options here, is it a security problem? I guess i already saw something like this running in WRT so i'm quite sure it's possible, just don't know what i'm missing here :/

  2. #2
    Nokia Developer Champion
    Join Date
    Jul 2008
    Location
    Pakistan
    Posts
    1,065

    Re: Problem with WRT/Flash ExternalInterface

    Hi tvalle,
    Welcome to Flash Lite Dibo ! I did use ExternalInterface in one of my project and it worked fine for me when we return value from a js function to flash object via ExternalInterface. I tested it on Nokia N8 (Flash Lite 4). Please, let us know on which phone you are using? and do u read the sample code of this article ? It may helps you.
    Using_the_externalInterface_class_of_Flash_in_WRT

    Best Regards,
    SajiSoft

Similar Threads

  1. Replies: 1
    Last Post: 2010-07-30, 16:10
  2. WRT - flash communication problem
    By shpe11 in forum Symbian
    Replies: 2
    Last Post: 2010-05-26, 12:42
  3. Replies: 6
    Last Post: 2010-05-17, 22:35
  4. WRT with flash doesn't load
    By ranco in forum [Archived] Flash Lite on Nokia Devices
    Replies: 6
    Last Post: 2010-01-17, 21:01
  5. Flash Lite with Javascript - not in a WRT widget
    By funkadeelia in forum [Archived] Flash Lite on Nokia Devices
    Replies: 4
    Last Post: 2009-03-05, 13:55

Posting Permissions

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