NTS Forums

Please login or register.

Login with username, password and session length
 

News:

Welcome to the Newtek Technology Services Forum!


Author Topic: Flash form fails after removing simple CFselect tag  (Read 1163 times)

Offline jbusha

  • SM5 Beta Tester
  • Full Member
  • ****
  • Posts: 265
  • Karma: +1/-0
Flash form fails after removing simple CFselect tag
« on: February 03, 2010, 08:34:37 AM »
Editing a Flash form that was working fine, until I tried to remove a simple CFselect form field.

With this code in the form, it works fine:
<cfselect name="fluency_quarter" label="Grading Period" style="horizontalGap:-15" width="80">
<option value="0">Baseline</option>
<option value="1">1st Quarter</option>
<option value="2">2nd Quarter</option>
<option value="3">3rd Quarter</option>
<option value="4">4th Quarter</option>
</cfselect>

After deleting code above, I receive the following error:

Errors, warnings or exceptions were found when compiling /index.cfm. Visit the online Flex documentation or API reference for further information. 
--------------------------------------------------------------------------------
1 Error found. 
Error generated version of _watcherSetup:436
Branch between 35938 and 68711 around line 0 exceeds 32K span. If possible, please refactor this component.

This is driving me nuts and documentation it suggests reading is old and looks useless.

Thanks in advance for any and and all help!
« Last Edit: February 03, 2010, 10:14:25 AM by jbusha »

Offline Shiny

  • Hero Member
  • *****
  • Posts: 1,848
  • Karma: +39/-0
Re: Flash form fails after removing simple CFselect tag
« Reply #1 on: February 09, 2010, 10:08:07 AM »
Error generated version of _watcherSetup:436


That makes me think that something was binding or referring to the, now removed, combobox?

Branch between 35938 and 68711 around line 0 exceeds 32K span. If possible, please refactor this component.


This sounds like the size of the resulting swf exceeded the limit (which doesn't make sense)

This is driving me nuts and documentation it suggests reading is old and looks useless.


Yeah, it is old and useless... and will probably never get any better. Flash forms have become one of those features that is rarely used anymore. It was developed at a time when Flex was not free, and so flash forms were severely limited in order to not take sales away from Flex. Now that that has changed, creating content with Flex is the preferred and recommened practice. Adobe isn't planning on removing Flash Forms (for the sake of backwards compatibility) but they certainly have no plans of adding to it or fixing many bugs.

Offline jbusha

  • SM5 Beta Tester
  • Full Member
  • ****
  • Posts: 265
  • Karma: +1/-0
Re: Flash form fails after removing simple CFselect tag
« Reply #2 on: February 09, 2010, 10:21:06 AM »
Thanks for that info, Shiny. I have tried a few times to get comfortable with Flex, but haven't gotten very far. Any reading / tutorial recommendations you want to shoot my way?

FYI -- I asked the same question in the CF forum and Morovan provided a (quite bizarre) fix -- http://forums.crystaltech.com/index.php/topic,34765.0.html

Thanks again, man -- you're a great resource on these boards, and I want you to know that I (and probably a lot of "quiet others") appreciate it!

Offline Shiny

  • Hero Member
  • *****
  • Posts: 1,848
  • Karma: +39/-0
Re: Flash form fails after removing simple CFselect tag
« Reply #3 on: February 09, 2010, 12:56:19 PM »
Thanks for that info, Shiny. I have tried a few times to get comfortable with Flex, but haven't gotten very far. Any reading / tutorial recommendations you want to shoot my way?


What approaches did you use for learning CF?

As with many people, I started my flex learning path by just picking up a book and going through it, cover to cover. That's, of coures, one of the obvious methods for getting a handle on an unfamiliar technology. But beyond that, I chose to just go for the brute force attack strategy. I got to a particular level in CF just by writing CFML... getting a job as a CF develper and writing CFML 8hrs per day / 5 days a week. I figure I had to do the same thing to become as competent with Flex. I quit my CF job and became a fulltime Flex developer for... almost 3 years now.

I'm not saying you need to make the switch (that's a personal decision). Before making the switch, and while learning, I spent a lot of time attempting to create some of my own ideas in Flex/AIR. Not that I ever finished very many, or that any of them ended up being as useful as it was in my head, but I was learning a heck of a lot in the process.

The point is that no matter how many books, articles, tutorials you read, the only way to to get comfortable with a new technology is to practice doing it. Along the way you're going to have questions, hit road blocks, not understand how something works. But you'll eventually figure that stuff out on your search for answers. And before you know it, things will start to "click".

One of the more interesting aspects of it, dealing with a true OO language like AS3, and therefore having to learn good application architecture and design, I feel like I'd be a much better CF developer with that knowledge, even though I've barely touched it in such a long time.