Professional Web Applications Themes

Cfform is like, breaking, for no good reason - Coldfusion - Advanced Techniques

What in gods name does this mean Errors, warnings or exceptions were found when compiling /Digital Swordsmen/prod/index.cfm. Visit the online Flex doentation or API reference for further information. 1 Error found. Error /Digital Swordsmen/Prod/inde-generated.as:398 Member function init is larger than 32K. If possible, please refactor this component....

  1. #1

    Default Cfform is like, breaking, for no good reason

    What in gods name does this mean
    Errors, warnings or exceptions were found when compiling /Digital
    Swordsmen/prod/index.cfm. Visit the online Flex doentation or API reference
    for further information.

    1 Error found.

    Error /Digital Swordsmen/Prod/inde-generated.as:398
    Member function init is larger than 32K. If possible, please refactor this
    component.

    kenji776 Guest

  2. #2

    Default Re: Cfform is like, breaking, for no good reason

    There is a 32k limit on Flash forms, this means if the compiled MXML for the
    form is larger than 32k it wont work. This is also true of Flex, but you can
    get round that by doing somethign akin to cfinclude. Alas in CF7 there is no
    such get out. You are going to have to try and optimise your code a little, if
    you are on 7.01 then using cfformitem type="script" can dramatically help
    reduce file size.

    HTH

    Stressed_Simon Guest

  3. #3

    Default Re: Cfform is like, breaking, for no good reason

    Stressed_Simon wrote: 

    you can use #include in your injected AS:

    <cfsavecontent variable="geocode">
    var theMap=theMap;
    <cfoutput>
    theMap.host="http://#cgi.HTTP_HOST#/flashservices/gateway/";
    </cfoutput>
    #include "geocode.as"
    // for later when we can hang IDs off stuff
    #include "mouseHandler.as"
    </cfsavecontent>

    where "geocode.as" contains more AS bits.

    but certainly use the "script" cfformitem type, it's a world beater.


    PaulH Guest

  4. #4

    Default Re: Cfform is like, breaking, for no good reason

    What does type="script" do and as there any changes that must be made or anything? If you need my code to show me, just ask and ill post it.
    kenji776 Guest

  5. #5

    Default Re: Cfform is like, breaking, for no good reason

    type="script" allows you to write AS straight inside the cfform rather than
    using savecontent to hack the interface.

    Have a look on www.asfusion.com for loads of really cool stuff about flash
    forms.

    Stressed_Simon Guest

  6. #6

    Default Re: Cfform is like, breaking, for no good reason

    Thats odd, because I have some actionscript in my form, just geturl() but I didn't have to do any hack of any kind. Strange.
    kenji776 Guest

  7. #7

    Default Re: Cfform is like, breaking, for no good reason

    kenji776 wrote: 

    it allows you to create real *reusable* AS functions instead of having
    to repeatedly inject (possibly) duplicate AS into the form objects.
    PaulH Guest

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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