Re: [flexcoders] How to display a LARGE dataset of images
One of those 'community' photo wall type apps. Do you know of an example of your solution or what I should google. Thanks! Sent via BlackBerry by ATT -Original Message- From: Oleg Sivokon olegsivo...@gmail.com Sender: flexcoders@yahoogroups.com Date: Fri, 6 Aug 2010 23:27:54 To: flexcoders@yahoogroups.com Reply-To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to display a LARGE dataset of images Load them and draw to a single bitmapdata and then unload? Anyways, just out of curiosity, what kind of application would need to display that many images at once?
Re: [flexcoders] Funtion in Background
Technically all functions run in the background. What exactly are you trying to do? Sent via BlackBerry by ATT -Original Message- From: Christophe christophe_jacque...@yahoo.fr Sender: flexcoders@yahoogroups.com Date: Wed, 28 Jul 2010 08:28:04 To: flexcoders@yahoogroups.com Reply-To: flexcoders@yahoogroups.com Subject: [flexcoders] Funtion in Background Hello, Inside a flex application, is it possible to run a function in background ? Thank you, Christophe,
Re: [flexcoders] Stopping a function
I guess it depends on the function. Take the Timer class. It has a start() and stop() functions. You can create a custom function that calls those functions to start and stop them. So, if you have a class that has a running function (I.e. Timer.start()), then you can create another function (function B) to stop it. Make any sense? Sent via BlackBerry by ATT -Original Message- From: Christophe christophe_jacque...@yahoo.fr Sender: flexcoders@yahoogroups.com Date: Wed, 28 Jul 2010 08:57:53 To: flexcoders@yahoogroups.com Reply-To: flexcoders@yahoogroups.com Subject: [flexcoders] Stopping a function Hello, How to stop a ruuning function by software of another function ? FunctionA { } FunctionB { Stop FunctionA } Thank you, Christophe,
[flexcoders] AS3 RemoteObjects and Operations
Thank you to those that have taken the time to try to help me understand AS RemoteObjects. Its much more detailed than the mxml version, but that is why I want to learn it. Having said that... When creating a DAO Class for CRUD, is it necessary / best practice declare the operation name? I don't see it declared in the few examples online that I can find for creating RemoteObjects in AS. For example, is this right for a set up? package com.isavepets.data { import mx.rpc.events.FaultEvent; import mx.rpc.remoting.Operation; import mx.rpc.remoting.RemoteObject; public class PetDAO { private var ro:RemoteObject; private var create:Operation; private var read:Operation; private var update:Operation; private var deletePet:Operation; public function PetDAO() { var ro:RemoteObject = new RemoteObject(); ro.destination = ColdFusion; ro.source = com.isavepets.pets.petDAO; ro.addEventListener(FaultEvent.FAULT, faultHandler); } } } Then build functions off of them: public function create(petData:Object):void { var create:Operation = new Operation(ro, create); ro.create(petData): } Thanks again. trying to wrap my head about RemoteObjects and how to create them in one Class that my app can use over and over.
[flexcoders] Invoking a remote object.
Please be patient, I am new to this :-) I am trying invoke a RemoteObject that is in a Class from a code behind AS file. But I am getting this error: TypeError: Error #1009: Cannot access a property or method of a null object reference. Here is my CB: import mx.collections.ArrayCollection; import com.isavepets.projects.ProjectGateway; [Bindable] public var projectData:ArrayCollection = new ArrayCollection(); public var ProjGateway:ProjectGateway = new ProjectGateway();; public function initApp():void { projectData = ProjGateway.list(); } What am I missing? Thanks!
[flexcoders] ActionScript RemoteObject - Trying to learn so please be patient :-)
I am trying to wrap my head around trying to move my RemoteObjects out of mx:Script and into a AS Class File. I thought I would put all the set up code in the constructor and then just have functions that call methods on the instantiated RemoteObject. I am getting errors (as to be expected from a Noob). Can someone help me learn how this is done? I have a CFC set up in the directory as I have done a thousand times before when I was using mx:RemoteObject. It works fine. Below is my code for the .as. I am getting this error: Access of undefined property RO (ProjectGateway.as) Thank for any information and education! ProjectGateway.as package com.isavepets.projects { import mx.collections.ArrayCollection; import mx.controls.Alert; import mx.rpc.events.FaultEvent; import mx.rpc.remoting.Operation; import mx.rpc.remoting.RemoteObject; public class ProjectGateway { public function ProjectGateway() { var RO:RemoteObject = new RemoteObject(); RO.destination = ColdFusion; RO.source = com.isavepets.projects.projectGateway; RO.addEventListener(FaultEvent.FAULT, faultHandler); var list:Operation = new Operation(RO, list); } public function list():ArrayCollection { var projectData:ArrayCollection = RO.list(); return projectData; } private function faultHandler(e:FaultEvent):void { Alert.show(e.fault.message, 'Project Gateway Error'); } } } Close Window
Re: [flexcoders] ActionScript RemoteObject - Trying to learn so please be patient :-)
Thanks, that cleared the error on the AS page! Of course now I am getting an error on my .mxml page. TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.isavepets.projects::ProjectGateway/list() at ASRemoteObject/initApp() Here is my .mxml script. mx:Script ![CDATA[ import mx.collections.ArrayCollection; import com.isavepets.projects.ProjectGateway; [Bindable] public var projectData:ArrayCollection = new ArrayCollection(); public var ProjGateway:ProjectGateway = new ProjectGateway();; public function initApp():void { projectData = ProjGateway.list(); } ]] /mx:Script Thanks! From: Dan Vega danv...@gmail.com Sent: Sunday, December 21, 2008 8:25 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] ActionScript RemoteObject - Trying to learn so please be patient :-) Your RO variable is out of scope, you defined as a local variable to the constructor. You need to set it up outside of there. public class ProjectGateway { private var RO:RemoteObject; ProjectGateway() { RO = new RemoteObject(); RO.destination = ColdFusion; RO.source = com.isavepets.projects.projectGateway; RO.addEventListener(FaultEvent.FAULT, faultHandler); var list:Operation = new Operation(RO, list); } ProjectGateway.as package com.isavepets.projects { import mx.collections.ArrayCollection; import mx.controls.Alert; import mx.rpc.events.FaultEvent; import mx.rpc.remoting.Operation; import mx.rpc.remoting.RemoteObject; public class ProjectGateway { public function ProjectGateway() { var RO:RemoteObject = new RemoteObject(); RO.destination = ColdFusion; RO.source = com.isavepets.projects.projectGateway; RO.addEventListener(FaultEvent.FAULT, faultHandler); var list:Operation = new Operation(RO, list); } public function list():ArrayCollection { var projectData:ArrayCollection = RO.list(); return projectData; } private function faultHandler(e:FaultEvent):void { Alert.show(e.fault.message, 'Project Gateway Error'); } } } Thank You Dan Vega danv...@gmail.com http://www.danvega.org
[flexcoders] Passing a varibable back to ActionScript via HTTPRequest
I have a CF page that generates a Unique ID (UUID). I have an HTTPRequest passes information to a CF page and I want it to generate the number and then return it to ActionScript where it can use it as a local variable. Any idea on how to do that? Does the HTTPRequest return a value? Does it have to be in XML? Would I set the returned value in the resulthandler? Here is what I have for a HTTPRequest: private function startTrackIt(trackInfo:Object):void { var service:HTTPService = new HTTPService(); service.url = tracker.cfm; //Dev service.method = POST; service.addEventListener(ResultEvent.RESULT, timingSaved); service.addEventListener(FaultEvent.FAULT, alertFault); service.send(trackInfo); } What would I need to do next to set a local variable in my AS? In a RemoteObject, I usually set the a variable, typed ArrayCollection, in the ResultHandler. Sorry, this little idea is all new me and I am trying to figure it out. OR Can Flash create a unique number like ColdFusion?
[flexcoders] Call Flex from JavaScript
Using a set up in my ActionScript of: ExternalInterface.addCallback(tagWithClosed,windowClosed); How can I write a JavaScript function that calls 'tagWithClosed' to Flex when the user closes the window (window.close() ) or when they leave for another page?
[flexcoders] Invoking Flex fuction from Javascript for close.window
Using a set up in my ActionScript of: ExternalInterface.addCallback(tagWithClosed,windowClosed); How can I write a JavaScript function that calls 'tagWithClosed' to Flex when the user closes the window (window.close() ) or when they leave for another page?
RE: [flexcoders] Re: Desperate Times...Desprate Messures: What is sent by HTTPRequest?
Figured it out. Wrapped the query in a try/catch that outputted to a pdf. It was the weirdest thing..same values hardcoded and sent, but the sent ones were truncated.. Now I just need to figure out how to write a javascript that calls to Flex and invokes a function on window.close...stay tuned. Than you for your help Tracy. From: Tracy Spratt [EMAIL PROTECTED] Sent: Monday, December 08, 2008 4:53 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Desperate Times...Desprate Messures: What is sent by HTTPRequest? Also, have you yet managed to get Flex to communicate with the server at all? If not, that is job 1. I'd advise simplifying things as much as possible, like creating a simple page that accepts an HTTPService request (no parameters) and returns a hard coded value (I advise xml). Then, make that page an echo page, that takes a single querystring parameter and returns it to the Flex client. Test that from a browser before you try it from Flex (using GET). Then use an htm form to submit the parm, then POST from Flex.. When you get that, you will be pretty much in business. Ah, also try it without https. There are some considerations with HTTPS, particularly with serving the Flex app from http, but the data from https. Google that. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Monday, December 08, 2008 7:35 PM To:flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Desperate Times...Desprate Messures: What is sent by HTTPRequest? That error typically means that flex failed to contact the specified URL. You said, Ok, I see what is being sent. How did you determine that? You saw that where? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wkolcz Sent: Monday, December 08, 2008 6:01 PM To:flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Desperate Times...Desprate Messures: What is sent by HTTPRequest? I created a form that submitted to the same page that the HTTPService sends to. It inserts fine. The variables are there, I generated a document with them. What needs to be sent back and how? This is the error I am getting: 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: https://ummciisdevweb22.med.umich.edu/videotracking/tracker.cfm;]. URL: https://ummciisdevweb22.med.umich.edu/videotracking/tracker.cfm' From : Tracy Spratt [EMAIL PROTECTED] Sent: Monday, December 08, 2008 1:26 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Desperate Times...Desprate Messures: What is sent by HTTPRequest? That means Flex is sending the call with the data corrrectly. So then where is the error happening? Between CF and the Database? Does the CF Insert query work if you hard code the values? What IS the error? Send something back to Flex. Hard code it if necessary. I have never done either HTTPService or WebSevice calls without some return data. Maybe flex is trying work with a null. I advise setting resultFormat=e4x for either RPC call types. I always send back a status node to flex. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wkolcz Sent: Monday, December 08, 2008 3:56 PM To:flexcoders@yahoogroups.com Subject: re: [flexcoders] Re: Desperate Times...Desprate Messures: What is sent by HTTPRequest? Ok, I see what is being sent. If I dump them to a pdf, I can see them fine. cfdocument format=PDF overwrite=yes filename=whatyousee.pdf FORM: cfdump var=#form# / cfoutput #form.duration# #form.action# #form.source# /cfoutput /cfdocument But when I just submit them to a page with just an insert Query, using the form.variable, I get an error! This is making NO sense. cfquery name=create datasource=webstatistics-test INSERT INTO tracker(clickCount, duration, action, dept, videoFile, datePlayed) VALUES(1, #form.duration#, '#form.action#', 'PRMC', '#form.source#', #Now()#) /cfquery Is Flex waiting for something else? Do I need to send something back. I just want to insert a counter into the database each time the user leaves the page or clicks the stop button. From : valdhor [EMAIL PROTECTED] Sent: Monday, December 08, 2008 12:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Desperate Times...Desprate Messures: What is sent by HTTPRequest? Grab a copy of Charles (http://www.charlesproxy.com). This will show you exactly what is being sent to your server
[flexcoders] How to wite a javascript that calls to ActionScript
Can someone show me how to write a javascript function that calls to a Flex/AS function before a browser window closes? In my AS contructor I have: if (ExternalInterface.available) ExternalInterface.addCallback(tagWithClosed,windowClosed); I tried something like this, but I don't know how to actually invoke the correct function name. The swf is FXVideo.swf, the swf id is FXVideo and the .as file is FXVideo.as: SCRIPT LANGUAGE=JavaScript window.onbeforeunload = closingWindow; function closingWindow() { FXVideo.tagWithClosed(); } /SCRIPT I would greatly appreciate it if someone could help me write this. Project due tomorrow.
Re: [flexcoders] How to wite a javascript that calls to ActionScript
Sorry about that. Its not really my fault. Its the flexcoder list system. Actually I emailed one at 5pm yesterdays, waited for it to show up but it didnt. So I sent another one about 8:30 pm, it didn't show up either. Then I sent one this morning and it didn't show up for an hour (when all 3 showed up). From: Fidel Viegas [EMAIL PROTECTED] Sent: Tuesday, December 09, 2008 8:35 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to wite a javascript that calls to ActionScript On Tue, Dec 9, 2008 at 2:07 PM, wkolcz [EMAIL PROTECTED] wrote: Can someone show me how to write a javascript function that calls to a Flex/AS function before a browser window closes? In my AS contructor I have: if (ExternalInterface.available) ExternalInterface.addCallback(tagWithClosed,windowClosed); I tried something like this, but I don't know how to actually invoke the correct function name. The swf is FXVideo.swf, the swf id is FXVideo and the .as file is FXVideo.as: SCRIPT LANGUAGE=JavaScript window.onbeforeunload = closingWindow; function closingWindow() { FXVideo.tagWithClosed(); } /SCRIPT I would greatly appreciate it if someone could help me write this. Project due tomorrow. Hi wkolcz, try not to post the same message more than once. If people don't take the time to answer it is because the information is easily available on the net. What you are asking is easily found on google. Here is what I found doing a search on flex + javascript: http://blog.paranoidferret.com/?p=25 Good luck, and try to search on google before posting your question. It is faster than waiting for someone to reply. All the best, Fidel.
RE: [flexcoders] Call Flex from JavaScript
Based on that and other examples, I tried this: script language=JavaScript type=text/javascript window.onunload = trackClosing; function trackClosing(){ document.getElementById(FXVideo).tagWithClosed(); } /script In my constructor I have: if (ExternalInterface.available){ ExternalInterface.addCallback(tagWithClosed,windowClosed); } It doesn't seem to work. Any ideas on what I am doing wrong? From: Seth Hodgson [EMAIL PROTECTED] Sent: Tuesday, December 09, 2008 9:50 AM To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Subject: RE: [flexcoders] Call Flex from JavaScript This page in the LCDS docset describes this specifically: http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/lcds/help.html?content=lcconnections_4.html#1074309 The scenario in the docs is dealing with notifying the server that the client is going away, in order to short-circuit the slower normal notification based on server session timeout. But you could use the same technique to achieve other things as well. Best, Seth From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wkolcz Sent: Monday, December 08, 2008 6:28 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Call Flex from JavaScript Using a set up in my ActionScript of: ExternalInterface.addCallback(tagWithClosed,windowClosed); How can I write a JavaScript function that calls 'tagWithClosed' to Flex when the user closes the window (window.close() ) or when they leave for another page?
RE: [flexcoders] Call Flex from JavaScript
Unfortunately that is not an option. This is a video player tracking system on a very public landing page. Would onbeforeunload work better? Is there a way to just delay the closing of a page before it happens (behind the scenes)? Any other javascript events that would work better? From: Seth Hodgson [EMAIL PROTECTED] Sent: Tuesday, December 09, 2008 10:32 AM To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Subject: RE: [flexcoders] Call Flex from JavaScript You need to pop a Javascript alert in your trackClosing() method to keep the browser from closing until the user clicks the OK button. This technique is a hack, but an alert generally leads to a long enough delay in user interaction (say a second or two) to finish making your call into the Player before the browser process exits. Best, Seth From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wkolcz Sent: Tuesday, December 09, 2008 10:26 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Call Flex from JavaScript Based on that and other examples, I tried this: script language=JavaScript type=text/javascript window.onunload = trackClosing; function trackClosing(){ document.getElementById(FXVideo).tagWithClosed(); } /script In my constructor I have: if (ExternalInterface.available){ ExternalInterface.addCallback(tagWithClosed,windowClosed); } It doesn't seem to work. Any ideas on what I am doing wrong? From: Seth Hodgson [EMAIL PROTECTED] Sent: Tuesday, December 09, 2008 9:50 AM To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Subject: RE: [flexcoders] Call Flex from JavaScript This page in the LCDS docset describes this specifically: http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/lcds/help.html?content=lcconnections_4.html#1074309 The scenario in the docs is dealing with notifying the server that the client is going away, in order to short-circuit the slower normal notification based on server session timeout. But you could use the same technique to achieve other things as well. Best, Seth From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wkolcz Sent: Monday, December 08, 2008 6:28 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Call Flex from JavaScript Using a set up in my ActionScript of: ExternalInterface.addCallback(tagWithClosed,windowClosed); How can I write a JavaScript function that calls 'tagWithClosed' to Flex when the user closes the window (window.close() ) or when they leave for another page?
[flexcoders] Anything other than a JS alert can delay a window close?
Pretty much what I asked in the subject line. I need Flash to submit to a database before the window closes and the flash instance dies. Don't think that a pop up (alert) is an option for our sites. Using JS and ExternalInterface to communicate with flash (AS) to push to a HTTPRequest data to insert. ANY ideas? Any?
[flexcoders] Does anyone know ANYTHING about AS Webservices?
I created a simple web service using ColdFusion CFC. It takes a struct and inserts the info into the database. Works fine from a direct call using CF's createObject(webservice) so I know it works... However in AS, I am getting this error: faultCode:DecodingError faultString:'SOAP Response cannot be decoded. Raw response: ' faultDetail:'null' Here is my Web Service Script: var ws:WebService = new WebService(); ws.wsdl = https://ummciisdevweb22.umich.edu/videotracking/trackerDAO.cfc?wsdl;; ws.addEventListener(FaultEvent.FAULT, alertFault); ws.loadWSDL(); ws.countIt({trackData:trackInfo}); I have looked at 100 different examples and none of them work. Does ANYONE know how I can get this to work? I have a Wednesday deadline to get this thing to work.
RE: [flexcoders] Does anyone know ANYTHING about AS Webservices?
I put the webservice so it creates a public instance ready for use. public var webService:WebService = new WebService(); public var trackInfo:Object = new Object(); public var myTimer:Timer = new Timer(0); I then change the code to: private function wsdlLoaded(event:LoadEvent):void { Alert.show(Web Service Loaded and Ready, Service Status); webService.countIt(trackInfo); webService.addEventListener(FaultEvent.FAULT, alertFault); } private function stop_onClick(event:MouseEvent):void { myTimer.stop() trackInfo.addOne = 1 ; trackInfo.duration = myTimer.currentCount; trackInfo.action = Video Stopped; trackInfo.source = source; webService.wsdl = https://ummciisdevweb22.umich.edu/videotracking/trackerDAO.cfc?wsdl;; webService.loadWSDL(); webService.addEventListener(LoadEvent.LOAD, wsdlLoaded); stop(); playPressed = false; } It loads the WSDL and the Alert pops up, but still cant get it to the database. Now I am getting: faultCode:DecodingError faultString:'SOAP Response cannot be decoded. Raw response: ' faultDetail:'null' From: Tracy Spratt [EMAIL PROTECTED] Sent: Monday, December 08, 2008 10:08 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Does anyone know ANYTHING about AS Webservices? First, loadWSDL() is asynchronous. You need to wait for the LoadEvent.LOAD event before attempting to call an operation. Also, declare and use a result Handler in addition to the fault handler. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wkolcz Sent: Monday, December 08, 2008 12:34 PM To:flexcoders@yahoogroups.com Subject: [flexcoders] Does anyone know ANYTHING about AS Webservices? I created a simple web service using ColdFusion CFC. It takes a struct and inserts the info into the database. Works fine from a direct call using CF's createObject(webservice) so I know it works... However in AS, I am getting this error: faultCode:DecodingError faultString:'SOAP Response cannot be decoded. Raw response: ' faultDetail:'null' Here is my Web Service Script: var ws:WebService = new WebService(); ws.wsdl = https://ummciisdevweb22.umich.edu/videotracking/trackerDAO.cfc?wsdl;; ws.addEventListener(FaultEvent.FAULT, alertFault); ws.loadWSDL(); ws.countIt({trackData:trackInfo}); I have looked at 100 different examples and none of them work. Does ANYONE know how I can get this to work? I have a Wednesday deadline to get this thing to work.
[flexcoders] Desperate Times...Desprate Messures: What is sent by HTTPRequest?
I am just trying to send 4 parameters over to a CFC or CFM page to insert into the database and both WebService and HTTPRequest are giving me fits. Ok here is the scenerio: When the user watches a video, it starts a timer, when the user either exits the page or clicks the 'stop' button it triggers a function that sends out 3 pieces of info: what video, how long, and whether they clicked stop or left. I am packaging that information into an Object and sending it to a .cfm page with a query on it, ready to insert. What exactly is my .cfm page 'seeing' sent to it? Are they form., url., or just the stuct name? Here is my AS code: trackInfo.duration = myTimer.currentCount; trackInfo.action = Video Stopped; trackInfo.source = source; var service:HTTPService = new HTTPService(); service.url = https://ummciisdevweb22.med.umich.edu/videotracking/tracker.cfm;; service.method = POST; service.addEventListener(ResultEvent.RESULT, countHandler); service.addEventListener(FaultEvent.FAULT, alertFault); service.send(trackInfo); How should I constuct the query on the tracker.cfm page? Something like: cfquery name=countIt datasource=#request.dsn# Insert Into tracker (clickCount, duration, action, videoFile, datePlayed) VALUES(1, #trackInfo.duration#, '#trackInfo.action#', '#trackInfo.source#', #Now()#) /cfquery
RE: [flexcoders] Desperate Times...Desprate Messures: What is sent by HTTPRequest?
Not necessarily giving up, but the internet is fruitless and not anyone in the Adobe Forums has chimed it, and you are the only one on here. Unfortunately for me, I need this thing running by Wednesday. So I am exploring both options right now. Which ever one works first, will be for the demo on Wednesday. From: Tracy Spratt [EMAIL PROTECTED] Sent: Monday, December 08, 2008 12:27 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Desperate Times...Desprate Messures: What is sent by HTTPRequest? With POST, it should be seeing form parameters, in name=value pairs. I do not know CF, but in asp.net, the parameters would be available through Request.Form(action) What is the tracker.cfm page returning?Have you given up on the WebService? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wkolcz Sent: Monday, December 08, 2008 3:16 PM To:flexcoders@yahoogroups.com Subject: [flexcoders] Desperate Times...Desprate Messures: What is sent by HTTPRequest? I am just trying to send 4 parameters over to a CFC or CFM page to insert into the database and both WebService and HTTPRequest are giving me fits. Ok here is the scenerio: When the user watches a video, it starts a timer, when the user either exits the page or clicks the 'stop' button it triggers a function that sends out 3 pieces of info: what video, how long, and whether they clicked stop or left. I am packaging that information into an Object and sending it to a .cfm page with a query on it, ready to insert. What exactly is my .cfm page 'seeing' sent to it? Are they form., url., or just the stuct name? Here is my AS code: trackInfo.duration = myTimer.currentCount; trackInfo.action = Video Stopped; trackInfo.source = source; var service:HTTPService = new HTTPService(); service.url = https://ummciisdevweb22.med.umich.edu/videotracking/tracker.cfm;; service.method = POST; service.addEventListener(ResultEvent.RESULT, countHandler); service.addEventListener(FaultEvent.FAULT, alertFault); service.send(trackInfo); How should I constuct the query on the tracker.cfm page? Something like: cfquery name=countIt datasource=#request.dsn# Insert Into tracker (clickCount, duration, action, videoFile, datePlayed) VALUES(1, #trackInfo.duration#, '#trackInfo.action#', '#trackInfo.source#', #Now()#) /cfquery
re: [flexcoders] Re: Desperate Times...Desprate Messures: What is sent by HTTPRequest?
Ok, I see what is being sent. If I dump them to a pdf, I can see them fine. cfdocument format=PDF overwrite=yes filename=whatyousee.pdf FORM: cfdump var=#form# / cfoutput #form.duration# #form.action# #form.source# /cfoutput /cfdocument But when I just submit them to a page with just an insert Query, using the form.variable, I get an error! This is making NO sense. cfquery name=create datasource=webstatistics-test INSERT INTO tracker(clickCount, duration, action, dept, videoFile, datePlayed) VALUES(1, #form.duration#, '#form.action#', 'PRMC', '#form.source#', #Now()#) /cfquery Is Flex waiting for something else? Do I need to send something back. I just want to insert a counter into the database each time the user leaves the page or clicks the stop button. From: valdhor [EMAIL PROTECTED] Sent: Monday, December 08, 2008 12:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Desperate Times...Desprate Messures: What is sent by HTTPRequest? Grab a copy of Charles (http://www.charlesproxy.com). This will show you exactly what is being sent to your server. --- In flexcoders@yahoogroups.com, wkolcz [EMAIL PROTECTED] wrote: I am just trying to send 4 parameters over to a CFC or CFM page to insert into the database and both WebService and HTTPRequest are giving me fits. Ok here is the scenerio: When the user watches a video, it starts a timer, when the user either exits the page or clicks the 'stop' button it triggers a function that sends out 3 pieces of info: what video, how long, and whether they clicked stop or left. I am packaging that information into an Object and sending it to a .cfm page with a query on it, ready to insert. What exactly is my .cfm page 'seeing' sent to it? Are they form., url., or just the stuct name? Here is my AS code: trackInfo.duration = myTimer.currentCount; trackInfo.action = Video Stopped; trackInfo.source = source; var service:HTTPService = new HTTPService(); service.url = https://ummciisdevweb22.med.umich.edu/videotracking/tracker.cfm;; service.method = POST; service.addEventListener(ResultEvent.RESULT, countHandler); service.addEventListener(FaultEvent.FAULT, alertFault); service.send(trackInfo); How should I constuct the query on the tracker.cfm page? Something like: cfquery name=countIt datasource=#request.dsn# Insert Into tracker (clickCount, duration, action, videoFile, datePlayed) VALUES(1, #trackInfo.duration#, '#trackInfo.action#', '#trackInfo.source#', #Now()#) /cfquery
RE: [flexcoders] Re: Desperate Times...Desprate Messures: What is sent by HTTPRequest?
I created a form that submitted to the same page that the HTTPService sends to. It inserts fine. The variables are there, I generated a document with them. What needs to be sent back and how? This is the error I am getting: 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: https://ummciisdevweb22.med.umich.edu/videotracking/tracker.cfm;]. URL: https://ummciisdevweb22.med.umich.edu/videotracking/tracker.cfm' From: Tracy Spratt [EMAIL PROTECTED] Sent: Monday, December 08, 2008 1:26 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Desperate Times...Desprate Messures: What is sent by HTTPRequest? That means Flex is sending the call with the data corrrectly. So then where is the error happening? Between CF and the Database? Does the CF Insert query work if you hard code the values? What IS the error? Send something back to Flex. Hard code it if necessary. I have never done either HTTPService or WebSevice calls without some return data. Maybe flex is trying work with a null. I advise setting resultFormat=e4x for either RPC call types. I always send back a status node to flex. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wkolcz Sent: Monday, December 08, 2008 3:56 PM To:flexcoders@yahoogroups.com Subject: re: [flexcoders] Re: Desperate Times...Desprate Messures: What is sent by HTTPRequest? Ok, I see what is being sent. If I dump them to a pdf, I can see them fine. cfdocument format=PDF overwrite=yes filename=whatyousee.pdf FORM: cfdump var=#form# / cfoutput #form.duration# #form.action# #form.source# /cfoutput /cfdocument But when I just submit them to a page with just an insert Query, using the form.variable, I get an error! This is making NO sense. cfquery name=create datasource=webstatistics-test INSERT INTO tracker(clickCount, duration, action, dept, videoFile, datePlayed) VALUES(1, #form.duration#, '#form.action#', 'PRMC', '#form.source#', #Now()#) /cfquery Is Flex waiting for something else? Do I need to send something back. I just want to insert a counter into the database each time the user leaves the page or clicks the stop button. From : valdhor [EMAIL PROTECTED] Sent: Monday, December 08, 2008 12:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Desperate Times...Desprate Messures: What is sent by HTTPRequest? Grab a copy of Charles (http://www.charlesproxy.com). This will show you exactly what is being sent to your server. --- In flexcoders@yahoogroups.com, wkolcz [EMAIL PROTECTED] wrote: I am just trying to send 4 parameters over to a CFC or CFM page to insert into the database and both WebService and HTTPRequest are giving me fits. Ok here is the scenerio: When the user watches a video, it starts a timer, when the user either exits the page or clicks the 'stop' button it triggers a function that sends out 3 pieces of info: what video, how long, and whether they clicked stop or left. I am packaging that information into an Object and sending it to a .cfm page with a query on it, ready to insert. What exactly is my .cfm page 'seeing' sent to it? Are they form., url., or just the stuct name? Here is my AS code: trackInfo.duration = myTimer.currentCount; trackInfo.action = Video Stopped; trackInfo.source = source; var service:HTTPService = new HTTPService(); service.url = https://ummciisdevweb22.med.umich.edu/videotracking/tracker.cfm;; service.method = POST; service.addEventListener(ResultEvent.RESULT, countHandler); service.addEventListener(FaultEvent.FAULT, alertFault); service.send(trackInfo); How should I constuct the query on the tracker.cfm page? Something like: cfquery name=countIt datasource=#request.dsn# Insert Into tracker (clickCount, duration, action, videoFile, datePlayed) VALUES(1, #trackInfo.duration#, '#trackInfo.action#', '#trackInfo.source#', #Now()#) /cfquery
[flexcoders] Help with a Action Script web service - Noobie Question
I am trying to create a web service in ActionScript that will push 4 variables to a remote CFC to do a simple insert. How can I pass the 4 variables in the code? Assume I know not much. This is my first Web Service. Here is what I have so far: var trackerDAO:WebService = new WebService(); trackerDAO.wsdl = https://umm/prmc/videotrack/trackerDAO.cfc?wsdl;; trackerDAO.loadWSDL(); var operation:Operation = new Operation(null, countIt); operation.addEventListener(FaultEvent.FAULT, alertFault); operation.request(addOne, results, action, source); ---Wrong?? operation.send(); How close am I or how far off?
re: [flexcoders] Help with a Action Script web service - Noobie Question
I further modified my code to this: var trackerDAO:WebService = new WebService(http://ummcstqa16vm/prmc/videotracking/trackerDAO.cfc?wsdl;); var operation:Operation = new Operation(trackerDAO,countIt); operation.addEventListener(FaultEvent.FAULT, alertFault); operation.countIt(addOne, results, action, source); Now I am getting this Error: Call to a possibly undefined method countIt through a reference with static type mx.rpc.soap:Operation. From: wkolcz [EMAIL PROTECTED] Sent: Friday, December 05, 2008 7:12 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Help with a Action Script web service - Noobie Question I am trying to create a web service in ActionScript that will push 4 variables to a remote CFC to do a simple insert. How can I pass the 4 variables in the code? Assume I know not much. This is my first Web Service. Here is what I have so far: var trackerDAO:WebService = new WebService(); trackerDAO.wsdl = https://umm/prmc/videotrack/trackerDAO.cfc?wsdl;; trackerDAO.loadWSDL(); var operation:Operation = new Operation(null, countIt); operation.addEventListener(FaultEvent.FAULT, alertFault); operation.request(addOne, results, action, source); ---Wrong?? operation.send(); How close am I or how far off?
[flexcoders] Flexbuilder is getting on my last nerve
I like to start my AS files by adding all the import statement of all the items I know I am going to need. However, if I forget one and FB is nice enough to add it form me, it tends to delete a couple of mine (seemingly randomly, except for Alert...It hates that one). Is this a 'feature'? Is it a bug? Can it be stopped. I appreciate adding ones on the fly for me, but my apps are striking errors since it deletes them for me.
Re: [flexcoders] Huzzah for MAX!
See ya there! San Fran BABY! From: Farid Shahlavi [EMAIL PROTECTED] Sent: Friday, November 14, 2008 8:05 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Huzzah for MAX! Make sure you wear a kick me sign so we don't kick the wrong brits butt!!! Farid On Fri, Nov 14, 2008 at 10:58 AM, Gregor Kiddie [EMAIL PROTECTED] wrote: Finished work, and off to the states! See some of you there! Feel free to kick my rear or buy me a beer as required ;) Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street , London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact [EMAIL PROTECTED]
[flexcoders] Reloading creation complete or another way...
I have a number of pop up windows that take passed ID's to grab information and display it. I am doing it through and initApp() in the creationComplete. However I notices that if you spawn another one, the initApp doesn't load since the component is already loaded into the system. Is there another place to put a initApp function that will reload the info each time the component TitleWindow is loaded or a event that dies when the window closes using PopUpManager.removePopUp(this)
RE: [flexcoders] Reloading creation complete or another way...
Thanks, already figured it out. From: Tracy Spratt [EMAIL PROTECTED] Sent: Thursday, November 06, 2008 1:49 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Reloading creation complete or another way... Implement the public ID property using a setter function. Kick off your initialization from that setter. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wkolcz Sent: Thursday, November 06, 2008 3:32 PM To:flexcoders@yahoogroups.com Subject: [flexcoders] Reloading creation complete or another way... I have a number of pop up windows that take passed ID's to grab information and display it. I am doing it through and initApp() in the creationComplete. However I notices that if you spawn another one, the initApp doesn't load since the component is already loaded into the system. Is there another place to put a initApp function that will reload the info each time the component TitleWindow is loaded or a event that dies when the window closes using PopUpManager.removePopUp(this)
re: [flexcoders] my first flex website
Interesting. They only thing I have to critique is that the 'contact us' is difficult to read on the background image. Other than that, not too shabby for the first time :-D From: Gustavo Duenas [EMAIL PROTECTED] Sent: Tuesday, November 04, 2008 11:07 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] my first flex website HI, finally I've done my first flex web siteit is done, or at least is that what I think...maybe tomorrow I'll add something else. please check it at: http://leftandrightsolutions.com/lrsad/bin/lrsad.html please don't be so hard in critics, is ok to be criticized but don't be offensive. I hope you like, is not the big deal, but is something that did by myself, I thank in advance to all of you who help me out with your advices. regards, Gustavo Gustavo A. DuenasCreative DirectorLEFT AND RIGHT SOLUTIONS904. 265 0330 - 904. 386 7958www.leftandrightsolutions.comJacksonville - Florida
Re: [flexcoders] Re: my first flex website
I too agree that Flex is probably not the best choice for an information type site. I am using it to develop working applications for clients/work that stress less information and more functionality. Using Flex as a Flash-based web application platform is probably the better way to go and leave the fluff-sites to HTML or Flash. From: Brendan Meutzner [EMAIL PROTECTED] Sent: Tuesday, November 04, 2008 11:49 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: my first flex website Design/purpose/intent aside, for a first crack at Flex this isn't so bad. You've used a good number of the components/effects/etc... available, and the content loads/displays well. Beyond the technical aspect, I agree with Florian on the fact that it's a bit overwhelming with colors and layout. I'm of the opinion that Flex is not the solution of choice for traditional sites like this... did it offer any advantages of traditional HTML or Flash? If this was a learning experience then take it as such and go from here, but I wouldn't use it as your corporate image... IMHO. Brendan On Tue, Nov 4, 2008 at 1:30 PM, florian.salihovic [EMAIL PROTECTED] wrote: Sorry, imho it's hard to believe that this website is used to present yourself on the market. - pictures simply appear randomly... load first the content, then show it. - pictures aren't antialiased, the pictures in pricing don't look nice. - pictures and icons don't work well together (simple gradients, 3d icons... ), the visual impression is not that nice since the colors don't work. - i miss the concept of the site Sorry, just my opinion... --- In flexcoders@yahoogroups.com, Gustavo Duenas [EMAIL PROTECTED] wrote: HI, finally I've done my first flex web siteit is done, or at least is that what I think...maybe tomorrow I'll add something else. please check it at: http://leftandrightsolutions.com/lrsad/bin/lrsad.html please don't be so hard in critics, is ok to be criticized but don't be offensive. I hope you like, is not the big deal, but is something that did by myself, I thank in advance to all of you who help me out with your advices. regards, Gustavo Gustavo A. Duenas Creative Director LEFT AND RIGHT SOLUTIONS 904. 265 0330 - 904. 386 7958 www.leftandrightsolutions.com Jacksonville - Florida -- Brendan Meutzner http://www.meutzner.com/blog/
re: [flexcoders] Integration Of flex into Asp.net
Flex apps are just swfs when compiled. Just add it as any element. If you need to navigate, use the navigateToURL function to move around the site. From: prem_toc [EMAIL PROTECTED] Sent: Monday, October 20, 2008 5:44 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Integration Of flex into Asp.net Intro: am a asp.net programmer and am a beginner in flex .now my firm converting into flex .we are developing banking domain application in asp.net . our menubar is in flex .how i integrated flex menu into asp.net master pages . so that each page in asp.net uses that flex menu?
re: [flexcoders] Ely's Flexbook
Check out: http://www.rubenswieringa.com/blog/flex-book-component-alpha I have been using it and its really easy to work with From: Uday M. Shankar [EMAIL PROTECTED] Sent: Monday, October 06, 2008 6:02 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Ely's Flexbook I am trying to use Ely's FlexBook component in one of my projects. But, I keep running into a problem which I am not able to fix. Let me explain... I can replicate this issue in the boundaries example @ http://demo.quietlyscheming.com/book/boundaries.html. Follow these steps in the boundaries example. 1. Check the Add Covers checkbox on the left side. 2. Then, click on Add Page button to add a page to the book. Now PAGE A is added to the book. (as inner front cover) 3. Now, try to close the book by click-dragging the back cover. At this point, the book will throw the following error - ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller. at flash.display::DisplayObjectContainer/removeChild() at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$remove\ Child() at mx.core::UIComponent/removeChild() at qs.controls.bookClasses::BookPageImpl/set rightRenderer() at qs.controls.bookClasses::BookPageImpl/clearContent() at qs.controls::Book/commitProperties() at mx.core::UIComponent/validateProperties() at mx.managers::LayoutManager/validateProperties() at mx.managers::LayoutManager/doPhasedInstantiation() at Function/http://adobe.com/AS3/2006/builtin::apply() Can anybody help me with this? am stuck in my project because am not able to fix this.
re: [flexcoders] Embedded Flex
Just size the application to what size you want in the page and then add it as a normal swf. I done it a numbe r of time here. Building dynamic content for static HTML pages. From: tchredeemed [EMAIL PROTECTED] Sent: Monday, October 06, 2008 10:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Embedded Flex Is it easy to embed a flex application inside of an HTML page instead of the app being standalone? Any tutorials? Any help?
re: [flexcoders] Embedded Flex
Also, nice to see another religious educational institute using CF and Flex. From: tchredeemed [EMAIL PROTECTED] Sent: Monday, October 06, 2008 10:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Embedded Flex Is it easy to embed a flex application inside of an HTML page instead of the app being standalone? Any tutorials? Any help?
Re: [flexcoders] Embedded Flex
He doesnt want the 100% application. Just a sub app. I assume. From: Paul Andrews [EMAIL PROTECTED] Sent: Monday, October 06, 2008 10:59 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Embedded Flex - Original Message - From: tchredeemed [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Monday, October 06, 2008 6:37 PM Subject: [flexcoders] Embedded Flex Is it easy to embed a flex application inside of an HTML page instead of the app being standalone? Err.. isn't that how flex applications are deployed anyway? Any tutorials? Any help?
Re: [flexcoders] Not to harp on about it....
On Sep 25, 2008, at 11:28 AM, Samuel Colak wrote:I don't think papervision has anything on it - And its all written in Flex :) I find that interesting. Didn't know you could write a 3D engine in Flex. Thought they were all written in AS... Also, love the claim on the web site, co-operation with numerous Fortune 500 and publicly listed companies world-widesuch as
Re: [flexcoders] Flex Application In Website
If you want to put the app inside on of your exisiting pages, just grab the swf and the swf object code and put it into any page. Make sure you have the correct dimensions of the mx:Application. I added a flex based RSS Reader into our static page. The app is only 148px.205px From: Haykel BEN JEMIA [EMAIL PROTECTED] Sent: Tuesday, September 23, 2008 6:25 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex Application In Website Just go to Project-Export Release Build... in Flex Builder and copy the created files directories to your server. For the links there are s many! Here are some:http://www.adobe.com/devnet/flex/ http://blogs.adobe.com/flex/ http://blogs.adobe.com/flexdoc/ http://flex.org/ http://www.insideria.com/ http://www.mikechambers.com/blog/http://blog.flexexamples.com/http://seantheflexguy.com/blog/ http://www.thetechlabs.com/ http://www.joshuaostrom.com/ Happy reading :) On Tue, Sep 23, 2008 at 8:07 AM, supriya p [EMAIL PROTECTED] wrote: Hi all, this is supriya and am new to Flex.. Can anyone tell me how to deploy the flex application in the website.For example: I have a Image Gallary Application and i want to put it in my website. And can u people suggest me any blogs or websites regarding this. Download prohibited? No problem. CHAT from any browser, without download. -- Haykel Ben Jemia Allmas Web RIA Development http://www.allmas-tn.com