Need to put a widget in a flash site.

Posted on 2011-10-26
Last Modified: 2012-05-12

I have a javascript widget that I want to put on my website, which is a flash site. How can I do this? ActionScript? I don't really want to use an iframe if I don't have to because I want it on one of the pages, not fixed on the site at all times.

script for widget:
<script src="" type="text/javascript" charset="utf-8"></script>

Open in new window


Any help is appreciated.
Question by:DantechIT

    Author Comment

    LVL 77

    Expert Comment

    by:David Johnson, CD, MVP
    since your sight is just using flash there is only the 2 options -- inline frame or add it to your swf's action script.. flash doesn't really get along that well with javascript as it is its own language.

    Author Comment

    Thank you for the reply!

    Do you have any suggestions as to how I would add it to the actionscript? I am not very familiar with flash.
    LVL 77

    Accepted Solution

    you will have to rewrite the functions provided by the javascript into  flash ( I also know next to nothing about actionscript)

    Author Comment

    Thank you!. I will look into converting the js to as.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
    Read about why website design really matters in today's demanding market.
    The viewer will learn how to count occurrences of each item in an array.
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now