# Is it possible

**URL:** <https://forum.kirupa.com/t/is-it-possible/14612>\
**Category:** Uncategorized\
**Created:** [February 28, 2003, 10:19am UTC](https://forum.kirupa.com/t/is-it-possible/14612 "2003-02-28T10:19:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JasonK](https://avatars.discourse-cdn.com/v4/letter/j/71e660/32.png) [@JasonK](https://forum.kirupa.com/u/JasonK)\
**Post date:** [February 28, 2003, 10:19am UTC](https://forum.kirupa.com/t/is-it-possible/14612/1 "2003-02-28T10:19:01Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 28, 2003, 10:25am UTC](https://forum.kirupa.com/t/is-it-possible/14612/2 "2003-02-28T10:25:00Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 28, 2003, 10:44am UTC](https://forum.kirupa.com/t/is-it-possible/14612/3 "2003-02-28T10:44:34Z")

</div>

How about something like this…

Javascript version:-

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

```

Java app version:-

```php
<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](http://www.forexnews.com/tools/minimg.asp)

Thanks!

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 28, 2003, 10:48am UTC](https://forum.kirupa.com/t/is-it-possible/14612/4 "2003-02-28T10:48:00Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 28, 2003, 5:40pm UTC](https://forum.kirupa.com/t/is-it-possible/14612/5 "2003-02-28T17:40:23Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 28, 2003, 7:21pm UTC](https://forum.kirupa.com/t/is-it-possible/14612/6 "2003-02-28T19:21:24Z")

</div>

Howdy…

Yes… There is a restriction for that…

[A Technote from the Macromedia](http://www.macromedia.com/support/flash/ts/documents/loadvars_security.htm)…

[An Introduction to Flash Remoting](http://www.devmx.com/articles.cfm?Mode=Article&c=4&a=2), 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](http://www.actionscript.com/archives/00000360.html) from [ActionScript.com](http://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](http://www.macromedia.com/support/flash/ts/documents/load_xdomain.htm) from the Macromedia… A workaround for this issue…
