Reply LinkBack Thread Tools Search this Thread
Old 25-07-2007, 12:33   #1 (permalink)
rustee
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
  Reply With Quote
Old 26-07-2007, 15:20   #2 (permalink)
rustee
Registered User
 
Join Date: Jul 2007
Location: Norway
Posts: 4
Nobody knows?
  Reply With Quote
Old 26-07-2007, 20:22   #3 (permalink)
d3mcfadden
Senior Member
 
d3mcfadden's Avatar
 
Join Date: Apr 2005
Location: -
Posts: 694
Send a message via AIM to d3mcfadden
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.
  Reply With Quote
Old 27-07-2007, 04:47   #4 (permalink)
rustee
Registered User
 
Join Date: Jul 2007
Location: Norway
Posts: 4
The security of the files are not important at all
Thanks for the answer, I'll have a look at it.
  Reply With Quote
Old 27-07-2007, 07:28   #5 (permalink)
dan
Iris Folder
 
dan's Avatar
 
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.
  Reply With Quote
Old 30-07-2007, 10:09   #6 (permalink)
rustee
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:
getURL("here's the url supposed to be", "_self")
And according to my friends this is enough to run it in the current window, but the only thing that happens is that the javascript code is appearing insted of everything else.
Hope you understand what i mean, and that someone here can help me. Getting desperate now.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8