Can a .as be executed in CF8

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

  1. #1

    Default Re: Can a .as be executed in CF8

    IIRC you can use the import and #include directives using cfformitem type="script" and/or cfsavecontent. Though I do not know if either is "officially" supported with cfforms.
    -==cfSearching==- Guest

  2. Similar Questions and Discussions

    1. a different web.config gets executed
      I have .Text running on a Windows 2003 Server website, and a WebService project running on the same website, but in a virtual directory created...
    2. ASPX not executed
      Hi, I'm trying to execute ASPX page on a test IIS Server. Instead of executing it shows the ASPX file on screen. What's happening ?
    3. script executed every frame
      Hi all, I'wrote a script that executes on exitFrame . There's an intro of about 50 frames and then on frame 50 the script should be executed....
    4. aspnet_wp won't get executed
      Hi folks.. I installed windows server 2003 with domain controller role. And installed iis6 and .net framework etc. I run aspnet_regiis -i for...
    5. How to config a job to be executed?
      Hi. In the project I'm working on now each developer have its own user account towards the database. The application we are doing generates...
  3. #2

    Default Re: Can a .as be executed in CF8

    I've tried a few ways of calling

    <cfformitem type="script">##include "globalstyle.as";</cfformitem>
    <cfformitem type="script">include "globalstyle.as";</cfformitem>

    I hate to ask, but I can't seem to find this out anywhere. Could you point me
    in the direction of a "how to" for this? Thanks for your time!

    IamTrip Guest

  4. #3

    Default Re: Can a .as be executed in CF8

    Sure. (I am not, by any means, an expert on this ;-) But here is an extremely
    simple example using #include.

    <!---
    SomeFile.as (located in same directory as cfm script)
    --->
    function doStuff():String
    {
    return "You called function doStuff()";
    }


    <!---
    CFFORM code
    --->
    <cfform name="testForm" format="flash">
    <cfformitem type="script">
    #include "SomeFile.as"
    </cfformitem>
    <cfinput type="button" name="testButton" value="Test"
    onClick="alert(doStuff());">
    </cfform>


    -==cfSearching==- Guest

  5. #4

    Default Re: Can a .as be executed in CF8

    BTW, I would also recommend you check out asfusion.com. Though many of the
    newer articles are on Flex, they still have some amazing entries and examples
    for cfform

    [url]http://www.asfusion.com/examples/[/url]


    -==cfSearching==- Guest

  6. #5

    Default Re: Can a .as be executed in CF8

    Thank you so much for responding!!
    IamTrip Guest

  7. #6

    Default Re: Can a .as be executed in CF8

    You are welcome!
    -==cfSearching==- 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