Re: {Disarmed} [flexcoders] Using Flex for Webcast site
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am currently upgrading one of my webcasting sites to use Flex and Adobe Air. Currently it was wrote with Flash 8 and Flash Communication Server and I will be moving to Flex and Flash Media Server or Red5. Basically you will need two flex applications which could be modules or stages. The first one would be the broadcasting location and the second one would be the listening location. Then you connect to a Stream and you are off and running. candysmate wrote: Does anyone have experiences with using Flex as a client for webcasting, or know on any resouces I can refer to please? -- This message has been scanned for viruses and dangerous content by *MailScanner* http://www.mailscanner.info/, and is believed to be clean. !-- #ygrp-mkp{ border: 1px solid #d8d8d8; font-family: Arial; margin: 14px 0px; padding: 0px 14px; } #ygrp-mkp hr{ border: 1px solid #d8d8d8; } #ygrp-mkp #hd{ color: #628c2a; font-size: 85%; font-weight: bold; line-height: 122%; margin: 10px 0px; } #ygrp-mkp #ads{ margin-bottom: 10px; } #ygrp-mkp .ad{ padding: 0 0; } #ygrp-mkp .ad a{ color: #ff; text-decoration: none; } -- !-- #ygrp-sponsor #ygrp-lc{ font-family: Arial; } #ygrp-sponsor #ygrp-lc #hd{ margin: 10px 0px; font-weight: bold; font-size: 78%; line-height: 122%; } #ygrp-sponsor #ygrp-lc .ad{ margin-bottom: 10px; padding: 0 0; } -- !-- #ygrp-mlmsg {font-size:13px; font-family: arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial,helvetica,clean,sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;*font-size:100%;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family: Georgia; } #ygrp-text p{ margin: 0 0 1em 0; } #ygrp-tpmsgs{ font-family: Arial; clear: both; } #ygrp-vitnav{ padding-top: 10px; font-family: Verdana; font-size: 77%; margin: 0; } #ygrp-vitnav a{ padding: 0 1px; } #ygrp-actbar{ clear: both; margin: 25px 0; white-space:nowrap; color: #666; text-align: right; } #ygrp-actbar .left{ float: left; white-space:nowrap; } .bld{font-weight:bold;} #ygrp-grft{ font-family: Verdana; font-size: 77%; padding: 15px 0; } #ygrp-ft{ font-family: verdana; font-size: 77%; border-top: 1px solid #666; padding: 5px 0; } #ygrp-mlmsg #logo{ padding-bottom: 10px; } #ygrp-reco { margin-bottom: 20px; padding: 0px; } #ygrp-reco #reco-head { font-weight: bold; color: #ff7900; } #reco-grpname{ font-weight: bold; margin-top: 10px; } #reco-category{ font-size: 77%; } #reco-desc{ font-size: 77%; } #ygrp-vital{ background-color: #e0ecee; margin-bottom: 20px; padding: 2px 0 8px 8px; } #ygrp-vital #vithd{ font-size: 77%; font-family: Verdana; font-weight: bold; color: #333; text-transform: uppercase; } #ygrp-vital ul{ padding: 0; margin: 2px 0; } #ygrp-vital ul li{ list-style-type: none; clear: both; border: 1px solid #e0ecee; } #ygrp-vital ul li .ct{ font-weight: bold; color: #ff7900; float: right; width: 2em; text-align:right; padding-right: .5em; } #ygrp-vital ul li .cat{ font-weight: bold; } #ygrp-vital a{ text-decoration: none; } #ygrp-vital a:hover{ text-decoration: underline; } #ygrp-sponsor #hd{ color: #999; font-size: 77%; } #ygrp-sponsor #ov{ padding: 6px 13px; background-color: #e0ecee; margin-bottom: 20px; } #ygrp-sponsor #ov ul{ padding: 0 0 0 8px; margin: 0; } #ygrp-sponsor #ov li{ list-style-type: square; padding: 6px 0; font-size: 77%; } #ygrp-sponsor #ov li a{ text-decoration: none; font-size: 130%; } #ygrp-sponsor #nc{ background-color: #eee; margin-bottom: 20px; padding: 0 8px; } #ygrp-sponsor .ad{ padding: 8px 0; } #ygrp-sponsor .ad #hd1{ font-family: Arial; font-weight: bold; color: #628c2a; font-size: 100%; line-height: 122%; } #ygrp-sponsor .ad a{ text-decoration: none; } #ygrp-sponsor .ad a:hover{ text-decoration: underline; } #ygrp-sponsor .ad p{ margin: 0; } o{font-size: 0; } .MsoNormal{ margin: 0 0 0 0; } #ygrp-text tt{ font-size: 120%; } blockquote{margin: 0 0 0 4px;} .replbq{margin:4} -- -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.8 (MingW32) Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJED8t3GqPAgBSy90RAmIuAJ0VblRyBIr86qDKEQx1u4k3uuv47wCfU07o FmVOi0l5D4leEb8uOwaW3gw= =p9lB -END PGP SIGNATURE-
Re: [flexcoders] questions about Flex and deploying on servers
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I use the same Directory Structure on my Development, Testing and production Servers so when I create a Flex Application, I am sure that it will work no matter what server it is currently running on. I have all of the flex swf files in a web accessible directory but not in the webroot as it helps me to organize my files and I point the embed and object code lines to the new location of the swf file. The only files I use from the bin filder is the swf, the .js files and the files within the deeplinking but I do not use the swf ith the - -debug or -profile stephen50232 wrote: Hi, I always create my Flex apps using the ColdFusion remoting project in Flex builder, then I put the in my wwwroot folder on my dev machine, and everything works fine. now when I try to deploy them to another server I always get errors (CFCs not found, java.lang.NullPointerExceptions), so I have a couple of questions about setting up CF based flex applications. 1. Does all the config files that come with Flex have to be the same on my live server as they are on my dev machine? 2. If so can I copy the config files from my dev machine to my live server? 3. Do all CF/Flex apps have to be under Inetpub\wwwroot\ so that the CFCs can be found? 4. Do I have to copy over all the code for my application or just the files in the bin folder? 5. Do I need to create mappings in CFAdministrator for my CFCs? What I looking to do is get a standard way I can build and deploy my Flex applications, so I don't get these same problems everytime I create a new Flex app and deploy it to the server. Thanks Stephen -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.4 (MingW32) Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQEVAwUBRxfNn3njLHMPlkANAQJ7Kgf/SJMIO5YImD0plOFSyrru7ACtGoSE3FTF l5bQX0ouRbHuEWC/KXydL44kmncmWY430XfoPVdOG7hMH79gXqpaCSUdgdyskR4r SvyXzlQ+b6R1U6L8P4PSb7eGyNqrCpClRnqlHCB/RqQ8c3pex1LSXLbVsBYFFj4e q0u0nA2/98hWCUyjmw2lAdWEZVta5yqU0OvVTsDCO4bqf97ygce3hXQcrS2FIKKO YrVBcykwlmdyEGwkTM+8cMIqwzucbru+y4W6MK7z+MulEykNOngDj99g/GMWvE9m 5nXxGT7baEa64woPv4KKKDBVaNUP51iFYndlxp6Cf8d1F1whMZnGkw== =+pIv -END PGP SIGNATURE- -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
[flexcoders] Populate List from Remote Shared Object
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 List: I am trying to populate a List component from a Remote Shared Object that is stored within FMS. However the List is blank when I run the application within FlexBuilder. My Code is as follows: private function SyncUserList(event:SyncEvent):void { for (var i in event.target.data) { var tempList:Object = new Object(); tempList.UserName = event.target.data[i]['UserName']; Alert.show(tempList.UserName, Object tempList.UserName, Alert.OK); chatPeopleListDP.push(tempList); } } When I run the application tempList.UserName is equal to gpearson and my mx:List has a labelField of UserName Any Ideas as to where I have gone wrong in this? -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.4 (MingW32) Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQEVAwUBRxYTtXnjLHMPlkANAQLW1wgAl4jgMHSpxgaTFLHvFGbpI/VhhPyc1Ppa R9WLb2iIIvkBnCue/RjgQj23MJxWFDApXDMQKuFlzFaLC9wNgRHYBrO741gsPpfC ocMRYN8GfA1FiaAynY5drZVXzbkUcNumKftHW7/gFDBy70stH9T37iorQ9GDJDNF KxTaAxQFWH3GpDMoT08Hdj2NyxYa5R5aSqhk57y6xhpWKsCJ/bKrMqtqdu2+jLPy VFHJ74GldUEhyfBj5WZO17ewjPirYUQ2ZW/v5bqFpFyGrtSqBe4GFDjZLeH/u22g uLemCsUNO5NtbmRtPf383S3RYwtxlCBdtO70a4mtllm2JUFSngMYPg== =ohBp -END PGP SIGNATURE- -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
[flexcoders] Remote Shared Object Inquiry
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 As I am working through converting one of my applications to Flex/FMS I have one small issue which does not produce the same results for the 1st person that enters the application. Within my viewStack I have a textArea and a List which is being populated from information that is retrieved from a Remote Shared Object. When I run the application from FlexBuilder sometimes I get an TypeError: Error #1009: Cannot access a property or method of a null object reference which occurs on line 163 of my application. When I get this error message, then the mx:List is populated with all usernames of the users who are connected to the application and the mx:TextArea is blank. If I do not get the Error Message then the mx:List box does not have any usernames within it however the mx:TextArea has the correct information within it. The mx:List has a dataProvider of {chatPeopleListDP} and a labelField of UserName below is the code sections: [Bindable] private var chatPeopleListDP:Array = new Array(); private function NetStatusHandler(event:NetStatusEvent):void { switch (event.info.code) { case NetConnection.Connect.Success: HomeworkChatViewStack.selectedChild=ChatWindow; UsersListSO = SharedObject.getRemote(ChatUsers, ChatServer_nc.uri, false); UsersListSO.addEventListener(SyncEvent.SYNC, SyncUserList); UsersListSO.connect(ChatServer_nc); ChatHistorySO = sharedObject.getRemote(ChatHistory, ChatServer_nc.uri, false); ChatHistorySO.addEventListener(SyncEvent.SYNC, SyncClientMsgHistory); ChatHistorySO.connect(ChatServer_nc); break; {Other Case Statements for NetConnection.Connect.Rejected, Closed, Failed} } private function SyncClientMsgHistory(event:SyncEvent):void { TextChatWindow.htmlText += event.target.data['ChatSession']; } private function SyncUserList(event:SyncEvent):void { var tempList:Object = new Object(); for (var i:String in event.target.data) { tempList.UserName = event.target.data[i]['UserName']; tempList.IP = event.target.data[i]['ip']; chatPeopleListDP.push(tempList); } } Can anyone see why only one of these Sync Method is executing when a user enters the application. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.4 (MingW32) Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQEVAwUBRxTKTXnjLHMPlkANAQLaBwf/VTEKF7ua+GvffqlJr28UD/+1JEOdfnw0 1bqs+nqaTK7PCo9zQkmWkpjRrY3b7xhqcBUN2tuSw9A0Oplb8ll3Kfeb8T/S30wI B1hT+F58IRaulSzSDLpbmYxGqDkvD1d1ysvB4d8XPhzBvPVkq+n9gXl4oJQlq/YM sOABra3tFymoMfvC04YfgccMSORlK2r204eOnB7j8T6POiVfOBQrGYRhmO6vv3B4 lH+yYVx3RqkQqvDCQuBU0hf+yUDtkaFUicJ78SuyLOkq3iO3+fpHLCkuTcs4sH1R YqMn9i22N2uh7bdL+FlBtL2ZaQeRdstUEWCA/6/5hHn6zRnEsE+Xog== =dAhu -END PGP SIGNATURE- -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
[flexcoders] NetConnection.call Assistance
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am having an issue with NetConnection.call as I am trying to update and convert one of my Flash8/FCS applications over to Flex2/FCS or FMS. Searching the net for an example of the Responder has not resulted me in any results which I can understand. In my MXML file I have a button which calls a function of SendUserMessage which is listed below: private function SendUserMessage():void { // Send what the user has said to the Remote Shared Object so everyone can see the results ChatServer_nc.call(SendUserMessage, SendMessageResponder, AccountLoginResults[0].USERNAME, UserMessage.text); } private function SendMessageResponder() { } Now In FB I am getting an error message which says Implicit coercion of a value of type Function to an unrealted type flash.net:Responder. Does anyone have an example of sending what as user has typed into a text box to FCS/FMS and then having that being displayed within a textbox. -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.4 (MingW32) Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQEVAwUBRxNDR3njLHMPlkANAQJFcwf/SLZEG0+MjUT+uGxi3cQ1/qafPUOMV6Gm NEwAOSPmuf2pJsVdahyMMgGwwcx59IAIKlc6/RUBlFSDXiCdxBN1vtcAZhtgDELQ p+jFz9Y222NHKalXSZqxguXfoazGK/sMN3Uu9EtHRTX9wR+jOTjpoOD6TliiCCDz pgPrU1FldXXGI+LQ/Lb4N/R/m26cycIzin+5tWCfYeSzs/RNtXZ6Go2bmB04q0MX ufAEVlSpYGe2rPekfkbzQtVQkdkfOnDbyFX3FrUX1TfoXVua5FSemLEyrfR6gog3 pTy0MRV9nQwuEuQqrgXxJ3yYmYLUbmmIyrSQAcc7YJ/mTClOEYj5PA== =TxLi -END PGP SIGNATURE- -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
Re: [flexcoders] Re: ComboBox populate list with remoteobject
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Here is what I have done to get a RemoteObject Array into the ComboBox. mx:ComboBox id=cbxSchoolBuilding enabled=true change=DisplayBuildingTeachers(); dataProvider={SchoolBuildingsDP} labelField=LABEL/mx:ComboBox Then within the mx:Script [Bindable] private var SchoolBuildingsDP:Array; private function GetSchoolBuildings_Result(event:ResultEvent):void { SchoolBuildingsDP = ArrayUtil.toArray(event.result); } Now my RemoteObject is mx:RemoteObject id=K12WebServices destination=ColdFusion source=properties.cfc.K12FlexWebService showBusyCursor=true fault=K12WebService_Fault(event) endpoint=http://{ServerName}/flex2gateway/; mx:method name=GetSchoolBuildingsWS fault=GetSchoolBuildings_Fault(event) result=GetSchoolBuildings_Result(event) mx:arguments SiteID{SiteID}/SiteID /mx:arguments /mx:method /mx:RemoteObject George Georgiou wrote: This simple task is really very confusing :-( I have been through tutorials, references with comboboxes and Arrays and this really appears very simple there. However when it comes to remoteobject it gets extremenly complicated :-( My guess is.. is there any easy way to convert my ArrayCollection that comes from the RemoteObject into an array which has no problems at all with the combobox? i.e. in order to use this dataprovider in a combobox is very easy! [Bindable] public var cards: Array = [ {label:Visa, data:1}, {label:MasterCard, data:2}, {label:American Express, data:3} ]; [Bindable] public var selectedItem:Object; Can I get a remoteobject return me some date and using some simple AS3 to convert what comes back from my service into this? thanks, George ps: sorry if this sounds like a dump idea - i m not really experianced Flex Developer at all, just started it :-) On 10/15/07, Randy Martin [EMAIL PROTECTED] wrote: Here's the code for the Adobe BindableComboBox.mxml that's generated by the ColdFusion Application Wizard. This will do what you want. ?xml version=1.0 encoding=utf-8? !-- // // Copyright (C) 2003-2006 Adobe Macromedia Software LLC and its licensors. // All Rights Reserved. The following is Source Code and is subject to all // restrictions on such code as contained in the End User License Agreement // accompanying this product. If you have received this file from a source // other than Adobe, then your use, modification, or distribution of this file // requires the prior written permission of Adobe. // // @author Dean Harmon // @author Mike Nimer -- mx:ComboBox xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=* creationComplete=componentInit() mx:Script ![CDATA[ import mx.utils.ObjectUtil; import mx.controls.Alert; [Bindable] public var valueField:String = ; [Bindable] public var labelFields:Array = []; public function componentInit():void { this.labelFunction = renderLabelFunction; } public function renderLabelFunction(item:Object):String { var result:String = ; if (labelFields.length == 0) { if (labelField != null) { return item[labelField]; } else { return item.toString(); } } else { for(var i:int=0; i labelFields.length; i++) { if (i 0) { result += ; } result += item[labelFields[i]]; } } return result; } override public function set selectedItem(val:Object):void { //Alert.show(valueField +: +ObjectUtil.toString(val)); if (this.valueField != null) { for(var i:int=0; i this.dataProvider.source.length; i++) { var item:Object = this.dataProvider.source[i]; if (item[valueField] == val) { // if it matches, make it selected. this.selectedIndex = i; break; } } } else { super.selectedItem(val); } } public function get selectedItemValue():Object { if (this.valueField != null selectedItem != null) { return selectedItem[valueField]; } else { return text; } } ]] /mx:Script /mx:ComboBox ~randy --- In flexcoders@yahoogroups.com, T [EMAIL PROTECTED] wrote: Actually this is a good question, and I am in the same boat and also do not know the correct way to handle this. I have a value object in my data model that came from a table in a database via a RemoteObject call. The VO has an int field that is a foreign key reference to a record in the people table. I have a combobox that gets its
[flexcoders] Creating Custom Component
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I am trying to understand and learn how to create my own custom components for my flex based applications and have ran into a problem I can not resolve. My custom component works if nothing has been placed on the stage but it will not display if I place a panel on the stage. Here is my code: package myComponents { import mx.controls.Label; public class SelectSchoolBuildingsLabel extends Label { private function initComponent():void { var SchoolBuildingLabel:Label = new Label(); SchoolBuildingLabel.text = Select School Building; } } } In my mxml file if I remove the panel component on the stage so the only code is the mx:application I can insert myComponents:SelectSchoolBuildingsLabel / which will display the label with the associated text, however if I insert the following code I will not get the label on the screen mx:Panel {Options set are layout, id, title, right, left, top and bottom} mx:VBox mx:HBox paddingLeft=10 paddingTop=10 mx:Label text=mx:Label Select School Building / myComponents:SelectSchoolBuildingsLabel / /mx:HBox /mx:VBox /mx:Panel I do get the mx:Label being displayed however myCompoent is not being displayed. What have I missed. My idea for this component is to also include a combo box which will list the available school buildings for a specific school corporation. Suggestions and/or Ideas? -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.4 (MingW32) Comment: GnuPT 2.6.2.1 by EQUIPMENTE.DE Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQEVAwUBRtVL0HnjLHMPlkANAQIiuwf9H/KSnZcAn6OdZerC6sLpjNtDkWEhff6S x2kGMVUcNAJMVDo1Ggq/hXUtiDeCN8GBqeeK5eOrTuR9ejnljyFyrLSBL0SAxdgS 1AGy6QsSEW2o8FtbmZPJROdNl/o0moXfoMBcF05h5F/1/SE2lS0Kru1ecgKAJ+8K wJhnFTye/1tubBQQiyGstGuCo9uyenfvpGkMQJCZfWaaHMLgIDb4alsRSyiVEY5U /TlZl8aFbhX9qplwj5K+mzQO9RUAbXDtYnvhRwXdokQl2V87UxqzlvkO8mNLLPzj UJu49fIMNFpws++nnKttJUpPNCC7GIoarz4G3YaaD4yy3+QdHe54Zw== =6HlH -END PGP SIGNATURE- -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.