Is it possible

Does anyone know if it is possible, or how to embed a java app or failing that, some java script into a flash movie?

Depending on what you are trying to do… yes you can use Javascript in your Flash (not a java app though).

And again, it all depends on what your doing.

How about something like this…

Javascript version:-

<script Language="Javascript" type="text/Javascript" src="http://www.mgforex.com/minimg/09/minimg.asp"></script>

Java app version:-

<applet code="MGRates.class" codebase="http://www.mgforex.com/minimg/51/" width=150 height=73 MAYSCRIPT=TRUE>
 <param name=number    value="4">
 <param name=forecolor value="0">
 <param name=titlecolor value="150">
 <param name=fontname value="Arial">
 <param name=fontsize value="9">
 <param name=top    value="13">
 <param name=bottom    value="1">
 <param name=link value="ref=MiniMGUser&ad=MGRLIVE051">
 </applet>

working versions can be seen at
http://www.forexnews.com/tools/minimg.asp

Thanks!

[edit by lostinbeta]used PHP vbTags to show code[/edit]

oops! just meant to post code, didn’t realise it would work…doh!

at the site listed in the last post, click on instructions by each version and it shows code…

Well You MIGHT be able to use loadVars to do that. Server-Side scripting in Flash isn’t really my thing so I can’t help you much on that.

There is one thing though, I am not 100% sure about this, but I don’t think loadVars works on a file that is contained on a server that isn’t yours. I believe that is considered a security risk or something and Flash can’t do it, so if that .asp file isn’t on your server you might not be able to access it. Not sure though.

Howdy…

Yes… There is a restriction for that…

A Technote from the Macromedia

An Introduction to Flash Remoting, Justin Watkins from DevMX…


There is also a security restriction within the Flash player that only allows a swf to connect to the server it originated from or a server within the same sub-domain. Using the Flash Remoting gateway allows the Flash client the ability to access resources on other domains and servers without violating this sandbox security policy by utilizing the Flash Remoting server as an external proxy to the other servers.

Another interesting article, Understanding the latest Player security issue from ActionScript.com… (Tried it myself, and it didn’t work anymore… Maybe I did something wrong, or maybe this has been patched… Not sure…)

Loading data across domains from the Macromedia… A workaround for this issue…