|
-
Setting dynamic text from within a webpage without using a text file
As a complete newbie to flash and KoolMoves, I am having some difficulty with what would seem to be a simple task.
All I wish to do is to have an SWF with a single, dynamic-text field that I could set via javascript using HTML text retrieved from a mySQL database with PHP. By doing this, I am hoping to make it more difficult for someone to steal text from a website by simple copy/paste or source-code methods.
This needs to be truly dynamic, without the use of a text file containing values for LoadVars, but most of the tutorials I am encountering want to use text files. 
I have tried the javascript-related instructions in the "Dynamic Text in Kool Moves 3.doc" tutorial file from the KoolMoves site, but in Firefox, the javascript console shows the following error: "window.document.movie has no properties" and in IE, it gets the following error: "'window.document.movie' is null or not an object" and the text does not change.
Ultimately, I WAS able to pass SOMEthing to the dynamic text field in that example, but only by coding it into the URL used to load the movie (i.e. "?text=whatever").
To summarise, I want:- to have a single, dynamic-text field, with HTML enabled, but text-selection, etc., disabled
- to use PHP/mySQL to retrieve the text to be fed to the dynamic-text field
- to set the value of the dynamic-text field without using a text file, and without having the text visible in the page source code
Thanks!
Oops! Forgot to add the version info, etc., in case it matters. This was with KoolMoves 6.2.0, and was tested with Firefox 2.0.0.9 and IE 7.0.5730.11, with ShockWave player 10.1r21.
Last edited by Tsume; 11-30-2007 at 12:27 PM.
Reason: Forgot version info
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|