Groups | Blog | Home
all groups > coldfusion flash integration > january 2007 >

coldfusion flash integration : Flash form actionscript



LensterRAD
1/29/2007 1:59:03 PM
My first experience with actionscript is 3.0 because I recently got heavily
into Flex 2 development. I am working on a new site that has a simple form and
I wanted to play around with flash forms in MX 7.02. I want to validate a
cfselect element by checking for mySelect.selectedIndex. I am aware that as of
7.02 you don't have to use the cfsavecontent hack anymore and that you can
enter actionscript in the cfformitem tag. But the code example I found uses
this code to launch an alert box.

<cfformitem type="script">
function alertMsg(msg)
{
if(howHeard.selectedIndex==0) {
alert("Please tell us how you heard about e-gamingbrokerage.com.")
return false;
}
return true;
}
</cfformitem>

And this works perfectly but I am confused because alert("asdfadf") is
javascript code is it not? Or is cfform backward compatible with earlier
versions of actionscript? I tired mx.controls.Alert.show("asdfasdf"), but that
did not work. Documentation on the web is scarce about this so I thought I
would try here to get some answers like is AS3.0 supproted in cfform? Can any
version of Flash work with flash forms? Is my code javascript or some ealrier
form of AS.

Thanks.
The ScareCrow
1/31/2007 2:16:17 AM
The alert is actionscript
mx.controls.Alert.show("asdfasdf"), see http://www.asfusion.com/ for an
example of this.

[Q]AS3.0 supproted in cfform[/Q] No

[Q]Can any version of Flash work with flash forms[/Q] I assume you mean the
flash player ?, No

[Q]Is my code javascript or some ealrier form of AS. [/Q] Probably a bit of
both.

Ken
AddThis Social Bookmark Button