Sagewire Logo

flash and cfml RSS Feed

Recent Posts View Recent Posts | View Archived Posts

Message from Adomacro
Most recent post: 10/24/2007
2 authors and 3 replies.

I need to convert many wmv to swf....

Which tool is best?.

Any open source tool available?. If not, we can buy best tool. read more about Looking for BEST Tool to convert WMV to SWF


Message from nightkiller211
Most recent post: 10/23/2007
2 authors and 2 replies.

:confused;

I can not seem to figure out why the filter as you type feature is not working.
When I type some text in the text-box it clears the grid. I can not get it to
work with Flash Remoting.
<CFSILENT>
<!--- make an empty query to populate the grid with no records --->
<CFSET memberList = queryNew("CustName,TechCode") />
</CFSILENT>

< read more about Filter CFGRID with Flash Remoting (Problem)


Message from farmazone
Most recent post: 10/10/2007
2 authors and 6 replies.

hi.

I have problem with polish letters like '?????????' passing from flex to ColdFusion
script writing them to database . All I get is a string like "??????".

My database charset is UTF-8 and collation of tables is also utf-8
(utf8_general_ci ).everything is utf-8. Variables passed from flex and returned
back from ColdFusion script are fine.

Previously I used to work with php and amfphp and there were no problems with
encoding and database. I'm not newbie to flash and flex.

I work on MacPro Intel.

strange issue.. read more about problem with polish letters passing to database


Message from Xuan Mai
Most recent post: 10/10/2007
6 authors and 8 replies.

I think this is a bug, but I can not get it to repeat with any consistancy.

I've a CFCALENDAR on an html form that looks like this:

<CFIF chkDate.initResponse neq "">
<td><CFCALENDAR name="initDate" height="130" width="135"
selecteddate="#DateFormat(chkDate.initResponse, 'mm/dd/yyyy')#"
required="yes">
</td>
<CFELSE>
<td><CFCALENDAR name="initDate" height="130" width="135"
selecteddate="#DateFormat(Now(), 'mm/dd/yyyy')#" required="yes">
</td>
</CFIF>

The date shows up in green on the page when you load it. When the user hits
the submit button, sometimes it sets Form.initDate to nothing. I can not get it
to repeat with any consistancy. Anyone have any similar experiences? read more about CFCALENDAR Bug


Message from hkk
Most recent post: 10/8/2007
2 authors and 2 replies.

hi,
how can I pass ALL the form variables including grid-data to a remoting-CFC in one big structure? (like the form structure in cf)

regards
herbert read more about passing complete form-structure to a cfc?


Message from VirtualED
Most recent post: 10/2/2007
3 authors and 4 replies.

This problem was posted way back in 2005 but I haven't seen a solution to it.
When querying from a database a record that contains a semicolon and displaying
it on a CFGRID if you select that row and try to submit or do anything with it
you'll get an error (....submitted CFGRID form field is corrupt ....). Here
is an example of the code used to prove the bug.

<CFSET myQuery = QueryNew("ticket_id,description")>
<CFSET temp = QueryAddRow(myQuery)>
<CFSET QuerySetCell(myQuery,"ticket_id","1")>
<CFSET QuerySetCell(myQuery,"description","a;")>
<CFSET temp = QueryAddRow(myQuery)>
<CFSET QuerySetCell(myQuery,"ticket_id","2")>
<CFSET QuerySetCell(myQuery,"description","a;b")>
<CFFORM NAME="test" ACTION="#cgi.SCRIPT_NAME#">
<CFGRID NAME="testGrid" QUERY="myQuery" SELECTMODE="ROW" FORMAT="FLASH">
</CFGRID>
<CFINPUT TYPE="submit" NAME="submit">
</CFFORM>

I have tried different things and different platforms and different versions of
JRE all give me the same result.

Has this problem been solved yet? read more about CFGRID and semicolon bug


Message from phunsanit
Most recent post: 9/23/2007
2 authors and 2 replies.

my CFGRIDE can not return data if buill form integer field
After upgrade form 7.0 to Cold Fusion 8
(i use ms sql server)


********************************************************************************
*******************************************************
<CFSAVECONTENT variable="scdisplay">
ffee_type_id.text = contactList.selectedItem.fee_type_id;
ffee_name_th.text = contactList.selectedItem.fee_name_th;
ffee_name_en.text = contactList.selectedItem.fee_name_en;
fseq.text = contactList.selectedItem.seq;
</CFSAVECONTENT>
<!---<CFQUERY name="qsrec_fee" datasource="#request.dsn#">
SELECT seq+' ' AS seq ,*
FROM Rec_fee
</CFQUERY>--->
<CFQUERY name="qsrec_fee" datasource="#request.dsn#">
SELECT seq+' ' AS seq ,*
FROM Rec_fee
</CFQUERY>
<CFFORM format="flash" width="700">
<CFFORMGROUP type="panel" label="?????????????">
<CFGRID name="contactList" query="qsrec_fee" rowheaders="false" height="225"
onchange="#scdisplay#">

<CFGRIDCOLUMN name="seq" header="???????????????">
<CFGRIDCOLUMN name="fee_type_id" header="?????????????">
<CFGRIDCOLUMN name="fee_name_th" header="????????????????????">
<CFGRIDCOLUMN name="fee_name_en" header="???????????????????????">
<CFGRIDCOLUMN name="calculate_type_id" header="?????????">
</CFGRID>[/ read more about CFGRID can not get value if data type is in


Message from Hughesh
Most recent post: 9/21/2007
2 authors and 3 replies.

Hi,

I'm currently experiencing a problem when compiling flash forms:


Error /Copyoftest2.cfm:-1
macromedia.css.LocatorParser Error /Copyoftest.mxml:376
The class 'mx.rpc.RemoteClassRelayResponder' couldn't be loaded.

I have searched for a resolution but had no joy, The code is simple and as
follows:

<CFFORM format="flash" width="500">
<CFINPUT type="button" value="Hello" name="hi" />
</CFFORM>

Can anyone shed any light on this? read more about Error Compiling flash forms


Message from Mark Forsberg
Most recent post: 9/21/2007
2 authors and 3 replies.

I have a simple grid:

<CFGRID name="testGrid" format="flash" query="getHistory">
<CFGRIDCOLUMN name="idno" header="Employee ID">
</CFGRID>

The grid is populated just fine. When I submit the form instead of seeing the
form variables I am getting the following error:

The submitted CFGRID form field is corrupt (name: __CFGRID__NEWFORM__TESTGRID
value: __CFGRID__COLUMN__CFGRIDROWINDEX
__CFGRID__DATA__1__CFGRID__COLUMN__IDNO__CFGRID__DATA__3000080)

I have changed columns in the query and no difference. The error still occurs.
Any ideas on where this error comes from?
We are using CFMX 7.02 on a Windows 2000 Server. Query is coming from Oracle
8i.
thanks.

Mark read more about cfform/CFGRID form submit error


Message from existdissolve
Most recent post: 9/8/2007
2 authors and 5 replies.

I'm looking for some direction on how to use actionscript to reload a CFGRID on
an onclick event. I am currently using getURL() to call a CFC to asynchonously
update the query driving the grid, but I cannot figure out how to actually
refresh the grid itself without reloading the page.

Any help'd be tremendously appreciated.

Thanks

Joel read more about Actionscript Function to Reload CFGrid


Message from guitarMB
Most recent post: 9/8/2007
2 authors and 3 replies.

I'm using Flash remoting to send usage statistics from a movie up to a
Cold Fusion component for processing and storage. System works great -- at
least the individual calls are working -- but when I try to execute all these
calls multiple times through the movie, it never gets past two remote calls
before throwing an "Error Opening URL" error referencing my flashservices
gateway:

http://<host>/flashservices/gateway&CFID=1052&CFTOKEN=c8c5587a8f62a442-E197BB47-
B213-8FBA-0924E5F0BF114A00;jsessionid=2a30fe0e960f21172524?CFID=1052

I have tried changing names of the instance each time I call a new one -- but
that does not seem to matter. I'm starting to suspect this is a Cold Fusion
error --
Anybody have any idea what I'm talking about?
I have included the connection code and the general examples of the method calls
I'm using... import mx.remoting.*;
import mx.rpc.*;
import mx.services.Log;

// connection script
var trackingService:Service = new
Service("http://<host>/flashservices/gateway", null, "<CFC>", null, null);

// open user tracking tracking session (called once when movie is opened)
var sessionTrax:PendingCall = trackingService.discStart({cf_macID:xxx,
cf_projectID:xxx, cf_clientID:xxx });

// log user activity (needs to be called numerous times on any button click,
regardless of amount of clicks)
var clickTrax:PendingCall = trackingService.contentClick({cf_macID:xxx read more about Remoting with CFC


Message from rvp68
Most recent post: 9/6/2007
2 authors and 2 replies.

hello all,

I've the following problem: I am using Flash Remoting Services to populate a
CFGRID during the form "onload". Works fine on my development server. On my
production server, cfgrid isn't populated.
Both servers are running ColdFusion MX 7.0.2, and the config is the same.

Any idea what that can be?

As a bypass, is there a way to refresh content of a cfgrid?

Thanks in advance for any help.
Cheers read more about CFGRID refresh and Flash Remoting Services


Message from reya276
Most recent post: 9/6/2007
2 authors and 2 replies.

I want to refresh/reload a CFGRID after I perform an update, how'd I go
about doing this?
here is the action script code I'm using below, can anyone provide the code
for me to do this or just modify the one below because I'm having a tuff time
getting this to work, I also tried getting some tips for the here
(http://tutorial127.easycfm.com/) but I guess I just do not get it.

<CFSAVECONTENT variable="updLocation">

if (loc_nameB.text == '')
{
mx.controls.Alert.show('location Name is required!');
}
else if (loc_addressB.text == '')
{
mx.controls.Alert.show('location Address is required!');
}
else if (loc_cityB.text == '')
{
mx.controls.Alert.show('location City is required!');
}
else if (loc_stateB.text == '')
{
mx.controls.Alert.show('location State is required!');
}
else if (loc_zipcodeB.text == '')
{
mx.controls.Alert.show('location Zipcode is required!');
}
else if (loc_phoneB.text == '')
{
mx.controls.Alert.show('location Tel.Number is required!');
}
else if (loc_managerB.text == '')
{
mx.controls.Alert.show('location Manager is required!');
}
else if (loc_hoursB.text == '')
{
mx.controls.Alert.show('location Hours are required!');
}
else
{
//create connection, replacing the gateway url with yours
var connection:mx.remoting.Connection =
mx.remoting.NetServices.createGatewayConnection("http:// read more about CFGRID Refresh/Reload


Message from ianskinner
Most recent post: 8/25/2007
3 authors and 4 replies.

Can anybody provide insight into this error?

A coworker developed an application making extensive use of Flash forms. This
application runs fine in his Win XP workstation with a development version of ColdFusion When he published the application to our Unix/Apache 2 development server
with CFMX 7.x running on it his application fails.

Even the simplest, one field test form fails with this message 'RSL Load
Failed'. read more about RLS Load Failed


Message from j-mail
Most recent post: 8/23/2007
2 authors and 3 replies.

Hi!

I am preparing some big service and I have got some problems. Right now my
client want me to change the style of labels, tooltips and icons in flashforms.

Is there any chance to do this?

The icons are the icons in the cftree.

Please help me.

Regards

jmail read more about Style in FlashForm


Message from jimmyharrell
Most recent post: 8/16/2007
3 authors and 6 replies.

Does Flash Forms not work on Safari Browser? I have them on my site but when I
try to look at them in Safari, they do not work.. Or do I need to just add some
type of extension to my Safari Browser to View a Flash Form?

Here is the page. it won't work in Safari.. unless I"m missing an install
extension. I just downloaded the browser for Windows for the first time today
and so I wanted to check my site in that browser.

http://www.jimmyharrell.com/contact.CFM

is the page in question. read more about So does Flash Forms not work in Safari?


Message from bryn50
Most recent post: 8/9/2007
2 authors and 6 replies.

Hi,

In short, How can I get a <CFINPUT type="button" to send out a JAVAscript
command to change the current page location.

I have this code:
When I click on the HTML type button, the relocation happens as expected.
When I click on the equivalent CFFORM button, it doesn't.

I'm guessing it is something in the syntax of the onClick event, but I have to
say I'm lost. Flash MX documentation says this should work right (?)

Cheers,

<script language="JAVAScript">


function fred_DoFSCommand(command, arguments){
alert("Caught Command:" + command + " arguments:" + arguments);
var mytarget=parent.window.document.getElementById('mainarea');
if (command == "goURL") {
mytarget.src=arguments;
}
}
</script>
</head>
<body>
<form action="" name="freddy" id="freddy">
<input type="button" name="mybutton" id="mybutton" value="MyButton"
onClick="JAVAscript:fred_DoFSCommand('goURL', 'http://news.bbc.co.uk');"
visible="Yes" enabled="Yes">

</form>
<CFFORM action="#self#" method="POST" target="mainarea" name="fred"
height="100" width="100" format="Flash" skin="haloBlue" id="fred">

<CFINPUT type="Button" name="mybutton" value="MyButton" visible="Yes"
enabled="Yes" onClick="{ fscommand('goURL', 'http://news.bbc.co.uk') };">

</CFFORM> read more about Flash Form and Navigation Button Issue (DoFSCommand)


Message from cyber fyb
Most recent post: 8/1/2007
2 authors and 2 replies.

Hi everyone,

I am starting to retract my brain from an intense 2 days to figure out how to
use Flex with Cold Fusion. I am using Cold Fusion 8 Beta (this part is good,
do not need help for ColdFusion itself). I am also using Flex Builder 2 (with chart but
thisn't the topic). I installed FDS 2.5 before to install Cold Fusion 8 but I
think CF8 have is own FDS or something like that... anyway, it might help to
mention it!

Well, I tried HTTPService, RemoteObject, WebSer vice - NOTHING WORKS!!! Argh!
Did I mention I spent 2 days? ;-)))

Well, I start with the basic: a login form with an email (as a username) and a
password to be validated. I have a CFC to do the validation and return a simple
message (string): "OK' when it is valid and a custom message when it isn't
valid; depending if it is the password and/or the email which isn't valid.

I always got an error. Since the error is different depending of the method I
use, I'll explain the latest method I used in this message and try to
concentrate on that method specifically! The method is WebService and here is
the error:

faultCode:Server.Error.Request
faultString:'HTTP request error'
faultDetail: 'Error: [IOErrorEvent type="ioError"
bubbles:false cancelable=false eventPhase=2
text="Error #2032: Stream Error .
URL=http://localhost:8501/iDashboard/login.cfc"].
URL: http://localhost:8501/iDashboard/login.cfc'

Any help will be very useful!!!

Thank's

P.S.: I succeed o read more about Flex 2, FDS 2.5 and ColdFusion 8


Message from ghouser
Most recent post: 8/1/2007
2 authors and 3 replies.

Is it possible to place buttons inside a flash from and use these buttons to
exit the form and go to another page? I assume using GetURL'd be used but
I have not been successful in making it work. I also thought about making each
button a submit button with a ColdFusion variable as the value and then letting it pass
that value to the "action" of the form, but again... no luck. I think I'm
barking up the wrong branch of the tree so to speak. read more about Buttons for links inside flash form


Message from omega1234
Most recent post: 7/22/2007
2 authors and 4 replies.

I could be wrong but it seems to me that Cold Fusion 8 never displays flash
charts when the name is specified, making it impossible to use charts within
cfforms.

ie - won't display:

<CFCHART format="flash" show3d="yes" pieslicestyle="sliced"
labelformat="currency" name="testChart" title="Summary of Revenue">

<CFCHARTSERIES type="pie">
<CFCHARTDATA item="a" value="50">
<CFCHARTDATA item="b" value="100">
<CFCHARTDATA item="c" value="100">
</CFCHARTSERIES>
</CFCHART>

but will:

<CFCHART format="flash" show3d="yes" pieslicestyle="sliced"
labelformat="currency" showmarkers="no" title="Summary of Revenue">

<CFCHARTSERIES type="pie">
<CFCHARTDATA item="a" value="50">
<CFCHARTDATA item="b" value="100">
<CFCHARTDATA item="c" value="100">
</CFCHARTSERIES>
</CFCHART> read more about CF8 and CFCHART problem


Message from saintsilver
Most recent post: 7/20/2007
2 authors and 3 replies.

I'm not sure if this should be a form question, a CFCONTENT question or a flash
question, so I apologize if this isn't the proper place to post.

Here is the situation:

I have a flash form with a CFSELECT with
onchange=getURL('viewFile.cfm?requestedFile=someFileLocation','_blank')

the viewFile.CFM page is:
<CFIF Right(requestedFile,3) IS "xls" OR Right(requestedFile,3) IS "XLS">
<CFHEADER name="Content-Disposition" value="inline; filename=Report.xls">
<CFCONTENT type="application/vnd.ms-excel"
file="\\myServer\myFolder\#requestedFile#">

</CFIF>

#requestedFile# is encrypted and decrypted before and after passing the value,
but I left that out for simplicity.

The result is:
Action Canceled
Internet Explorer was unable to link to the Web page you requested. The page
might be temporarily unavailable.

If I hit F5 or click reload, the XLS document will open (after Open, Save or
Cancel Dialog Box).

Any other file type seems to work fine, it is only .xls that is giving me
trouble.

If I create the same form as an HTML form using onchange=window.open etc.
the document opens as requested (again, after dialog box)

However, I need to use the Flash Form.

Has anyone experienced this before?

Thanks. read more about using getURL with CFCONTENT and Excel files


Message from mishuno
Most recent post: 7/19/2007
5 authors and 7 replies.

Just upgraded from ColdFusion MX 6 to MX 7. Trying out flash forms, but they aren't
working.

I tried out a simple First Name, Last name, Submit form setting the form to
flash. When viewing the page in Safari, Firefox on a Mac and IE in Windows the
page is blank. If I set take out the flash tag and just leave it as a CFFORM it
shows perfectly in all browsers. All browsers are able to view flash and
shockwave files.

Not sure what is going on.

Any ideas?

Thanks. read more about Flash Form not Showing


Message from superkat
Most recent post: 7/18/2007
3 authors and 3 replies.

Hi,

I use CFFORM format flash to display and edit participant information to a
sport competition. I have a top panel displaying a grid with the list of
participants.
When you select a participant in the grid, it displays the detailed
information in a sub page, where you can edit them.

On one of these sub pages, I have some checkboxes.
What I want is:
Depending on whether the particpant is a men or a women (that's a field celled
Ctaegory), the checkboxes vary on the sub page.

what is the path to access my grid data that are currently selected?
I tried this, but it does not work ...

------[i]<CFIF "{grid1.selectedItem.Category}" IS 'Women' and
"{grid1.selectedItem.Belt}" IS 'Strong'>
[/i]

it says grid1 is unknown ... but all is in the same form .... why is it
unknown?

... any idea on calling these data with the correct syntax? screenshot of my page
http://katapulse-com.tempserv1.clientnshosting.net/vovinam/img/temp.png

I forgot to say that of course my grid and my other fields are binded and it
works fine, but now i'd like to have some checkboxes displayed in the tab below
if the category of the selected item in the grid is "x" and some other
checkboxes displayed if the category is "y".

Any idea?

Thanks.

Kat read more about Flash forms, grid and accessing currently selected data


Message from pope on acid
Most recent post: 7/16/2007
3 authors and 8 replies.

<CFFORM format="flash" action="upload.cfm"
style="background-image:url(../images/BuyAndSell.png);
background-repeat:no-repeat; background-position:top right; text-align:center;
border:1 solid black;">

</CFFORM>

Is there a way to use background images in a flash form? read more about Using background images in flash forms


Message from dolliff
Most recent post: 7/10/2007
3 authors and 4 replies.

I just installed the new Apple Safari 3.0 to test out a web site. read more about flash forms in Safari 3.0


Message from amy_jo
Most recent post: 7/1/2007
2 authors and 2 replies.

Having a little trouble,its probably something simple but I have not that
familiar with JAVA.

<CFINPUT type="button" name="EditPass" value="Edit Bus Pass"
tooltip="Click here to edit the selected bus pass."
onclick="getURL('BusPass.cfm?PASSID=+getBusPass.PassID');">


When I click the button it gives me the following error showing the correct
link:

Line 295 Char 1
Object Expected
Code ()
URL=http://....buspass.cfm?passID=13 read more about Passing Variable in getURL


Message from Chuck1411
Most recent post: 6/29/2007
2 authors and 3 replies.

My browser shows 'Transfering data from <mywebsite>...' even when it should be
displaying Done. Is there a way to update the browser status bar to display
Done manually, or is my gateway not doing the proper thing to have the browser
set it? read more about access to Browser status bar


Message from CF_Hack
Most recent post: 6/26/2007
2 authors and 3 replies.

I'm using CFGRID to display a query of queries. CFGRID as type applet displays
everything perfectly. as flash only two columns display. Also I can't change
the format of the number in flash while I can in applet. The mask attribute
does not seem to work. Code below of a smaller grid that does not work either.

query

<CFQUERY DBTYPE="query" NAME="all_oil">
SELECT get_total_oil.yyyy, get_total_oil.ievalue as total,
get_crd_prod.ievalue as crude
FROM get_total_oil,get_crd_prod
where get_total_oil.yyyy=get_crd_prod.yyyy
order by YYYY
</CFQUERY>

<CFQUERY DBTYPE="query" NAME="all_oil2">
SELECT all_oil.yyyy, all_oil.total,all_oil.crude , get_conc.ievalue as conc
FROM get_conc, all_oil
where all_oil.yyyy=get_conc.yyyy
order by YYYY desc
</CFQUERY>

<CFFORM format="flash">
<CFGRID format="flash" query="all_oil" name="test" >
<CFGRIDCOLUMN name="yyyy" header="Year" width="40">
<CFGRIDCOLUMN name="total" header="Total Oil Production">
<CFGRIDCOLUMN name="crude" header="Crude Production" >
</CFGRID>
</CFGRID> read more about CFGRID not displaying data


Message from WCrens01
Most recent post: 6/26/2007
2 authors and 2 replies.

I'm new to Flash forms and just testing it out. I created the simplest example
of a flash form with a calendar field. We've CFMX7 installed on our server.
The problem is that a ColdFusion error appear saying that ColdFusion doesn't recognize the
'format="flash" parameter in the CFFORM tag. Any ideas? I am using IE 6 to
display the form, but it's a ColdFusion error so I do not think that's it...
:confused; read more about Flash forms not working


Message from david_sternberg
Most recent post: 6/26/2007
3 authors and 3 replies.

Ok, so I tried the hello world example below and still can not get it to work.
When I use CFINVLOKE to test it works via web browser.

http://www.adobe.com/devnet/Cold Fusion/articles/startremoting.html

Here is my Code:

import mx.remoting.*; // I switched to this instead of the old #include in the
example.

function Result()
{
//receives data returned from the method
this.onResult = function(result){
trace("Data received from server : " + result);
}

this.onStatus = function(error){
trace("Error : " + error.description);
}
}


NetServices.setDefaultGatewayUrl("http://localhost:8500/flashservices/gateway");
var gw = NetServices.createGatewayConnection();
var server = gw.getService("com.macromedia.test.HelloWorld", new Result());
server.sayHello();

I am running the ColdFusion Sever 7,0,2,142559 on IIS.

I've a the HelloWorld.CFC file in the wwwroot/com/macromedia/test
directory and I am the calling the .swf file after it is published.

When I try to view it through the browser or flash 8 I just get a blank screen.

Can someone please help me with this. I've been working on this all day and
am about to throw in the towel. I'm sure this is something simple.

Thanks
Dave read more about Flash Remoting not working


Message from gyannuzzi
Most recent post: 6/24/2007
4 authors and 18 replies.

Hello, I have a CFFORM with actionscript.
Basically I have a data grid that when a row is selected, a CFFORM is
populated.
The problem is with the datefield.
The datefield text updates without problem, however, the datefield
selectedDate is never updated.
I tried changing the selectedDate property of the datefield, but I received
errors.
In my attempt, the word new wasn't allowed, when I tried to set the
datefield.selectedDate to a new Date().
Perhaps there are other ways? read more about changing dateField selectedDate


Message from j_mcwatters
Most recent post: 6/19/2007
8 authors and 9 replies.

Hi,

everytime I try to typing in this url,
http://localhost:8500/flashservices/gateway, I get a 404 error. Reading
articles I see that the flash remoting services should be installed on set up
of Cold Fusion. But I do not think that mine was.
So, what can I do? Is there a post installation set up I can do?
What about these web.xml and web_config.xml files?
I am running Cold Fusion MX7 on Windows XP