| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: Jul 2007
Location: Norway
Posts: 4
|
Running Javascript through Flash
Hi! I'm new here, and pretty new to flash, so I have a little problem. I'm registered to this site where Javascript, PHP etc is limited, but flash is allowed. Like having a little YouTube movie etc. on your profile. So what I basically is wondering is, how do I get a flash object to read a javascript file with loads of information to make the profile look completely different (removing some of the adds etc)? I've heard it's just a "getURL()" code, but when i try to tell my test page to get my run.swf file, the only thing appearing is a bunch of text for about 1 second, then the actual javascript code is printed to the page. Please help me! URL to the test page if you're interested: nettby.rustee.net |
|
|
|
|
|
#3 (permalink) |
|
Senior Member
|
getUrl("javascript: your_javascript_function();"); This will call a function on the page the flash movie is embedded in. I don't think you can load a .js file into a swf and then call those functions on the page... that does not make sense and is also a major security issue. |
|
|
|
#5 (permalink) |
|
Iris Folder
Join Date: Apr 2003
Location: smokey
Posts: 2,643
|
I think he means flash's security model won't allow it. Which as far as I know it won't. On another note won't removing the ads etc breach the site's terms and conditions, it usually does which could get your account cancelled. That really depends on the site though. |
|
|
|
#6 (permalink) |
|
Registered User
Join Date: Jul 2007
Location: Norway
Posts: 4
|
Oh yeah, I didn't think of that. I can move it though. But I've got help from different persons who's been working with flash for a couple of months now, but nobody is able to make it the way I want it. The only way the javascript will actually work on that site is by calling it through a flash file. Here's my current code: Code:
Hope you understand what i mean, and that someone here can help me. Getting desperate now. |
|
![]() |