Ask a Question related to Coldfusion Flash Integration, Design and Development.
-
elfrick #1
Flash Forms - fscommand?
Any way to get fscommand to work from within CFMX7 flash forms? Had a play and
it doesn't seem to work. Noticed that there is no ID attribute in the JS
doc.write code that get created for embedding the flash movie, and fixed that
using savecontent / replace but still no joy. Any more success anyone?
elfrick Guest
-
SCORM Issue, fscommand LMSGetValue call from Flash
Hi all I'm using fscommands to communicate with the SCORM 1.2 template published from Flash. I need to use fscommand because, even though I'm... -
SetVariable, fscommand, JS <-> Flash communication
Hi, Keep hitting this problem. Can someone please point me in the direction of a document outlining the operating systems and browsers that... -
Converting existing forms to the Flash forms
I have forms and I change all the tags on them, but they don't change to the new 'Flash forms' in CFMX 7. Any ideas on this? -
EMBEDDING FLASH MOVIES INTO FLASH FORMS
Is there a way? EMBEDDING FLASH MOVIES INTO FLASH FORMS -
fsCommand and Flash Projector
Help! I am using fsCommand ("fullscreen", "true") to allow a presentation to capture the users entire window, this command is placed in a... -
Mike Nimer #2
Re: Flash Forms - fscommand?
Can you post some example code?
---nimer
"elfrick" <ian@celticinternet.com> wrote in message
news:cvf0ag$aod$1@forums.macromedia.com...> Any way to get fscommand to work from within CFMX7 flash forms? Had a
> play and
> it doesn't seem to work. Noticed that there is no ID attribute in the JS
> doc.write code that get created for embedding the flash movie, and fixed
> that
> using savecontent / replace but still no joy. Any more success anyone?
>
Mike Nimer Guest
-
elfrick #3
Re: Flash Forms - fscommand?
Here you go: <script> function myForm_DoFScommand(func,args) {
alert('fscommand worked') } </script> <cfform action='index.cfm'
method='POST' name='myForm' height='50' format='Flash' id='myForm'> <cfinput
type='Button' name='myButton' value='Test FSCommand' visible='Yes'
enabled='Yes' onclick='fscommand('myfunc',10)'> </cfform> If you view source,
you will see that the <embed> tag within the <noscript> tags has an ID
attribute, however, the <embed> tag writted out by the script does not. Without
this the fscommand cannot work. Hence I've changed my code to this: <script>
function myForm_DoFScommand(func,args) { alert('fscommand worked') }
</script> <cfsavecontent variable='writeID'> <cfform action='index.cfm'
method='POST' name='myForm' height='50' format='Flash' id='myForm'> <cfinput
type='Button' name='myButton' value='Test FSCommand' visible='Yes'
enabled='Yes' onclick='fscommand('myfunc',10)'> </cfform> </cfsavecontent>
<cfoutput> #Replace(writeID,'write('<object','write(#chr(asc( '''))#<object
id='myForm'')# </cfoutput> Now the script code is correct, but the alert
never shows because the fscommand is not working...
elfrick Guest
-
Mike Nimer #4
Re: Flash Forms - fscommand?
Instead of fscommand (I'm not sure why it doesn't work) try this.
<script>
function myfunc(args)
{
alert('fscommand worked');
}
</script>
<cfform action='index.cfm' method='POST' name='myForm' width="200"
height='200' format='Flash' id='myForm'>
<cfinput type='Button' name='myButton' value='Test FSCommand'
onClick="getURL(""javascript:myfunc(10)"")">
</cfform>
---nimer
"elfrick" <ian@celticinternet.com> wrote in message
news:cvhnt7$opb$1@forums.macromedia.com...> Here you go: <script> function myForm_DoFScommand(func,args) {
> alert('fscommand worked') } </script> <cfform action='index.cfm'
> method='POST' name='myForm' height='50' format='Flash' id='myForm'>
> <cfinput
> type='Button' name='myButton' value='Test FSCommand' visible='Yes'
> enabled='Yes' onclick='fscommand('myfunc',10)'> </cfform> If you view
> source,
> you will see that the <embed> tag within the <noscript> tags has an ID
> attribute, however, the <embed> tag writted out by the script does not.
> Without
> this the fscommand cannot work. Hence I've changed my code to this:
> <script>
> function myForm_DoFScommand(func,args) { alert('fscommand worked') }
> </script> <cfsavecontent variable='writeID'> <cfform action='index.cfm'
> method='POST' name='myForm' height='50' format='Flash' id='myForm'>
> <cfinput
> type='Button' name='myButton' value='Test FSCommand' visible='Yes'
> enabled='Yes' onclick='fscommand('myfunc',10)'> </cfform> </cfsavecontent>
> <cfoutput> #Replace(writeID,'write('<object','write(#chr(asc( '''))#<object
> id='myForm'')# </cfoutput> Now the script code is correct, but the
> alert
> never shows because the fscommand is not working...
>
Mike Nimer Guest
-



Reply With Quote

