Flash Forms - fscommand?

Ask a Question related to Coldfusion Flash Integration, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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?
    4. EMBEDDING FLASH MOVIES INTO FLASH FORMS
      Is there a way? EMBEDDING FLASH MOVIES INTO FLASH FORMS
    5. 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...
  3. #2

    Default 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

  4. #3

    Default 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

  5. #4

    Default 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

  6. #5

    Default Re: Flash Forms - fscommand?

    Excellent idea!

    Thanks :)
    elfrick Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139