Personalize Yedda, (And make Danny Happy)
People ask & answer about almost everything. Tell us what you're interested in... So we can personalize Yedda especially for you
I'm interested in:
success = amibition * persistence * luck

How to embed HTML/JS inside Flash

My web site is a chat service using Javascript and HTML. In order to put my service on MySpace I could create a Flash version, but I would rather re-use my HTML/JS version. Is it possible to embed HTML/JS within Flash somehow?


Share Send to a friend Watch Report
 
 

3 Posted Answers
Order by

 
16 helpful answers

• Premasagar.com
• Dharmafly

You cannot simply embed JavaScript or HTML inside a Flash movie. However, Actionscript is very similar to JavaScript, so you may be able to reuse much of your code without too much difficulty. 

It is possible that someone has written a simple JavaScript engine for Flash, but I don't know of one...

If you find a good solution, it would be useful to write about it here.

Posted 2007-01-04T16:45:18Z
Premasagar was invited by Yedda to answer this question.

 
21 helpful answers

If you try to include HTML/JavaScript within Flash. It is surely possible to insert some HTML code in a TextField (see the property .htmlText), but without support for JavaScript.



I would recommend another approach:
  • Create your Website with HTML and use Flash in some parts, for example to show some animations or animated menus, but not for the whole website.
  • A HTML Web page with a little bit Flash is faster, as a whole Flash site.
  • HTML opens the possibilty of including JavaScript to implement a lot of useful things (for example Dynamic HTML, AJAX, ...).
  • HTML knowledge is neccessary, HTML is the "bread and butter" language of the web.
  • Pure Flash sites aren't searchable (and findable) from Google, Yahoo or MSN.
  • After a relaunch, Macromedia's website was a short time a pure Flash site, but there were so much rumours about the bad performance and the lack of usability, that Macromedia changes there website back to a HTML site with some Flash parts.

 

Posted 2007-01-19T06:54:32Z
Helpful?(2)
Rated as Best Answer
 

To embed HTML to Flash, you can check the HTML AD Plugin with Moyea Web Player . It enables you can add html-ad inside or over videos for monetizing videos on website. And the html-ad can be any thing that can be implemented with HTML code, like the Google Adsense. This is tutorial .

Posted 2009-11-23T09:04:11Z

Sign in to participate

Got an answer for alexp? Would you like to comment on the posted answers, or vote for the one which you think is the best?

Sign up for a free account, or sign in (if you're already a member).

Explore Related Questions

Other people asked questions on similar topics, check out the answers they received:


Q:

Downloadable programming screencasts

Hi, I want to know where can I download screencasts for beginners, of HTML, Javascript, Ajax, PHP, etc.
Submitted by crisask   3 years ago.
  • viewed 1070 times
Last answer posted 2 years ago by crisask


Q:

Web programming interactive cheatsheets

Hello guys. I am interested in becoming a web developer. I am starting HTML. Sometimes, I forget which attribute corresponds to ...
Submitted by crisask   3 years ago.
  • viewed 607 times
Last answer posted 2 years ago by kanuj


Q:

Can I use flash movie to execute a javascript ...

Can I use flash movie to execute a javascript document.write method on the hosting page?
Submitted by Guy Vardi   2 years ago.
  • viewed 2816 times
Last answer posted 2 years ago by Avi Charkham



» More...

Feed - Subscribe to changes to this Q&A Blog
ADVERTISEMENT
  • Answers
  • Web
Copyright © 2006-2009, Yedda Inc. and respective copyright owners · CC License