RE: [flexcoders] Event calling in Cairngorm 2.1 - Newbie question.
What's the description of the error? Are you sure the controller has been instantiated? Olivier From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Sent: Wednesday, January 10, 2007 12:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Event calling in Cairngorm 2.1 - Newbie question. I am trying to follow the 2.1 store as a model to understand the cairngorm structure and I am getting a constant error in trying to dispatch an event. I copied the example code almost exactly, but i get seen to get the even to fire. I don't know if the problem is in my FrontController or my event. Any help you can offer is much appreciated. Thank, Kevin --- I have this in my main.mxml file private function loadGroupList() : void { CairngormEventDispatcher.getInstance().dispatchEvent( new CairngormEvent( GetGroupListEvent.EVENT_GET_GROUP_LIST ) ); } and then in my event file: import flash.events.Event; import com.adobe.cairngorm.control.CairngormEvent; public class GetGroupListEvent extends CairngormEvent { public static var EVENT_GET_GROUP_LIST : String = getGroupList; //public var position : int; /** * Constructor. */ public function GetGroupListEvent() { super( EVENT_GET_GROUP_LIST ); } /** * Override the inherited clone() method, but don't return any state. */ override public function clone() : Event { return new GetGroupListEvent(); } } and my controller: import com.adobe.cairngorm.control.FrontController; //import the command folder import com.onefoot.dbocl.command.* //import each event import com.onefoot.dbocl.event.GetGroupListEvent; /** * @version $Revision: $ */ public class DboclController extends FrontController { public function DboclController() { initialiseCommands(); } public function initialiseCommands() : void { addCommand( GetGroupListEvent.EVENT_GET_GROUP_LIST, GetGroupListCommand ); } } - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. - - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. -
Re: [flexcoders] Re: Svn Flex
If you necessary want copy files from source dir you can make this via ant script with switched off Copy non-embedded... option rw Jim Robson wrote: Lieven: In Flex Builder, go to Project Properties - Flex Compiler and deselect Copy non-embedded files to output directory Also - and more importantly - install the SVN Eclipse plugin (Subclipse). When you do that, Flex Builder becomes svn-aware, and stops doing stupid things with your working copy: http://subclipse.tigris.org/ http://subclipse.tigris.org/ HTH Jim --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Lieven Cardoen [EMAIL PROTECTED] wrote: Hi, When compiling a Flex project, Flex copies all files to bin folder, including hidden .svn folders. As a result, Tortoise goes crazy... Anyway to resolve this? Thx, Lieven Cardoen Lieven Cardoen Application developer indiegroup interactive digital experience engelse wandeling 2 k18 b8500 kortrijk -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] DataGrid row
Thanks Tracy for your help From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Tuesday, January 09, 2007 6:39 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] DataGrid row That is because there is really no such thing. The list controls are windows into the data, and only the visible rows exist. The visual rendering elements are re-used when the data is scrolled or the dataProvider is changed. You cannot access the data through the control, but must work with the dataProvider, in your case, something like: myDataGrid.dataProvider.setItemAt(); The exact API you use depends on what the dataProvider is, ArrayCollection, XMLList, XMLListCOllection are the main types. If you use the Collection api to modify the data, then the changes will automatically be reflected in the control. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stembert Olivier (BIL) Sent: Tuesday, January 09, 2007 4:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] DataGrid row Hi, How can I get a pointer to a row in a DataGrid? i.e. myDataGrid.getRow(index).setSomething() I know the DataGridColumn but there's nothing like a DataGridRow Thanks - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. - - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. - - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. -
[flexcoders] Client logging
Hi all, Am I right if I say there's no way to log on the client (trace() output method) without the debugger version of the Flash Player? Thanks - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. -
Re: [flexcoders] Re: Proxy callproperty probs
serviceProxy is set in the constructor of the class, the params are valid in the method callproperty. I use var myProxy:RemotingProxy = new RemotingProxy(); myProxy.getNews(); Maybe the private var serviceProxy is not yet instantiated ... How can I make sure it's instantiated before I call a dynamic method ?
[flexcoders] Re: gradient itemrenderer and resize (charts)
u r good man! (solved the problem in a sec) vigen --- In flexcoders@yahoogroups.com, Ely Greenfield [EMAIL PROTECTED] wrote: Are you calling clear in your itemrenderer updateDisplayList()? Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of vigen2000 Sent: Tuesday, January 09, 2007 8:20 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] gradient itemrenderer and resize (charts) Hi, i have a weired thing going on. i implemented a gradient itemrenderer for the series to color the bars according to the data. all works well until i resize the chart with AS. the bars are covering each other in an ugly way. only recreating the object solve the problem (scrolling out of the chart and scrolling back) any ideas? vigen
Re: [flexcoders] basic architecture question
Amen to that. I had to work with a related issue using repeater. But ours involved a dynamically generated form with images which positions it's children depending on the config xml passed into it. Embed simply cannot work for the reason stated by ralf. So we simply used url's passed in by the same config xml. However, you should take note that using a repeater to tile your custom component will leave the 'positioning' work to you. Hence I suggest you use another component such as TileList and have your custom component be the item renderer. For this kind of approach, you can bind the 'image urls' inside the custom component itself by using the data property of the base class from which you derived your custom component and of course setting the dataprovider of your tilelist to an arraycollection(or whatever type suitable ie XMLlist) which contains all the data you need to show. AS for the repeater - although I dont suggest using that unless you terribly need to - you can access the individual repeater instances using the id of the repeater and the index of the item you wish to access. Say you named our repeater rep, you can access the nth repeated component using rep[n] followed by whatever property you want to access assuming the component is fully instantiated and that property exists. Cheers. --- Ralf Bokelberg [EMAIL PROTECTED] wrote: Hi Jason, are you trying to embed the images? I'm not sure, if a repeater can do that at all, since it is executed at runtime and not at compile time like the embed directive. Maybe you can load the images at runtime by binding their url to the source attribute of an image? Setting labels in a custom component works similar. Expose a public property of your component to set the value from outside and bind the label's text property to it internally. Cheers, Ralf. On 1/9/07, jmerrill_2001 [EMAIL PROTECTED] wrote: Newbie to Flex, (but not Flash/AS 2.0) so for me it's like a skier learning to snowboard. I have dabbled with Flex in the past, and recently went through all the lessons in the help docs, as well as read a lot of other things in there. I'm designing a Team Page - a site that shows people of the business unit as individual cards - like baseball cards. Each card will have elements like a photo of the person, a description of skillsets, and buttons to expand and change to a different state. Making that is easy with a custom component, but I'm having some struggle with the dynamic data part as it relates to the custom component - in other words, making the components generic and then settings the data for them later in my application. I thought I would make a generic person card with a placeholder for the photo and data - that would be a single component, and then in another main application MXML I would repeat that component over and over based on some XML data. Easy enough so far - the XML data isn't the problem. In Flex, I'm not sure how to add the image dynamically, or change the value of the image file reference for each component repeated - I can add an image tag easily enough in the component, but having a hard time not hard-coding the image reference. So I guess I have a few questions: 1. What's the best way to set up a generic image container for the image file be in the person card component and how would I set that in the main application MXML repeat region? Or is making the person card as a component not a good approach? Should I just describe the person card within the repeat region and not make it a custom component? 2. How do i set other variables in the custom components like label values? 3. Overall, what would be a good way to architect a site like this? I know how to create and change states, but unsure what should be a component and what should just described right in the main MXML. Thanks, Jason Merrill Bank of America Learning Organizational Effectiveness Multimedia / eTools Team -- Ralf Bokelberg [EMAIL PROTECTED] Flex Flash Consultant based in Cologne/Germany __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[flexcoders] 2.0.1 compile modules with ant
Hi All, I am having problems compiling modules using Ant. Here are my TestModule.mxml: ?xml version=1.0? mx:Module xmlns:mx=http://www.adobe.com/2006/mxml; width=100% height=100% mx:Label text=Test/ /mx:Module I can compile successfuly using Flex Builder - Run as Application or command line: C:\Program Files\Adobe\Flex Builder 2\Flex SDK 2\bin\mxmlc.exe -output=bin/TestModule.swf TestModule.mxml Here is my very simple Ant build: ?xml version=1.0? project name=TestModule default=compile property name=flex.mxmlc location=C:\Program Files\Adobe\Flex Builder 2 Plug-in\Flex SDK 2\bin\mxmlc.exe / target name=compile exec executable=${flex.mxmlc} failonerror=true arg line=-output 'bin/TestModule.swf'/ arg line=TestModule.mxml/ /exec /target /project Result: TestModule.mxml(4): Error: Could not resolve mx:Module to a component implementation. If I change mx:Model to mx:Application, it compiles well. Also, in one of my other application, I tried to load a module, and I got the same Error: Could not resolve mx:ModuleLoader to a component implementation. What am I missing? Thanks, Andi
[flexcoders] Re: Calling javascript with navigateToURL
Hi, you can try : ExternalInterface.call(functionName, parameter); Regards, Sanjay sharma --- In flexcoders@yahoogroups.com, jensen.axel [EMAIL PROTECTED] wrote: I'm trying to do a loop, and call a javascript function in flex for every loop. The loop only seems to call the javascript once the loop is done... and it only calls it for the last iteration of the loop. To reproduce the issue do the following: 1. Create a new project in flex 2. Put a button on the form, and make it's click=test1(); 3. Create a script block like so mx:Script ![CDATA[ private function test1():void{ for (var i:int = 0; i 5; i++){ var u:URLRequest = new URLRequest(javascript:alert( + \'test + i + \');); navigateToURL(u,_self); trace(i); } } ]] /mx:Script the button calls this very simple function, and theoretically you should get 5 alert boxes, but you don't you get 1 I'm curious if these methods can be used like this.
[flexcoders] Performance Enhancement of Flex Application
Hi guys, How to improve the startup performance of the flex application. That is before the application initializes a blank screen appears for over a minute after that a progress bar shows up.I want to minimize the time the blank page appears. I am using Tomcat server for running the application. Does the usage of containers play a role on such behaviour or is that a server problem. Will I be helped if the application is precompiled??.. If so how do I precompile the application :). Or is there any other way to improve the performance. I did try out ceratin links but they recommend using timer to check the initialization performance. But I need to improve the performance before initialization. I need to recommend flex for RIA development.But this thing is like a black mark for Flex. Can anybody help me. Thanks in advance Cheers Hara
Re: [flexcoders] flash.net.FileReference dynamic download
I guess that no. You have firstly save it to the server and after call the file saving using FileReference or directly calling link to file in new window. On 10/01/07, graysonpierce [EMAIL PROTECTED] wrote: Hello, Is there a way to use flash.net.FileReference to download a dynamically created XMLDocument? In other words have the Flex application put together an XML document and offer it up for saving (or execution) -- Best regards, Oleg Filipchuk
Re: [flexcoders] Re: Proxy callproperty probs
Even if I try it like this, it fails: // override to catch call operations flash_proxy override function callProperty(methodName:*, ...args):* { serviceProxy = new ServiceProxy( http://localhost.:8500/flashservices/gateway;, mysite.services.public); serviceProxy[getPhotobook].apply(serviceProxy,[]);//.getRecentNews(5); }
Re: [flexcoders] Flex, RemoteObject calls, ColdFusion, and SSL
On Tuesday 09 January 2007 22:04, Douglas Knudsen wrote: have a cluster of CF instances in a production environment, I'm running IIS with SSL, and I can't get my Flex remoteobject calls to work. Are you testing with IE ? You need an extra argument: channels channel-definition id=my-cfamf-myplan2 class=mx.messaging.channels.SecureAMFChannel endpoint uri=https://host.domain.co.uk/flex2gateway/; class=flex.messaging.endpoints.SecureAMFEndpoint/ properties polling-enabledfalse/polling-enabled serialization instantiate-typesfalse/instantiate-types /serialization add-no-cache-headersfalse/add-no-cache-headers /properties /channel-definition /channels^ -- Tom Chiverton Helping to advantageously customize back-end web-readiness This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: flex 2.0.1 feedback from the trenches (BUG !)
On Tuesday 09 January 2007 22:12, bsdensmore wrote: Are you using Remoting on this DataGrid Tom? I posted this over on the Adobe forums and they couldn't reproduce it, but they were just binding to XML not using Remoting. I'm wondering if it's an issue with result sets returned from the Remoting Call. I can make it happen just on a local DataProvider, with a subclass of the DataGrid (it just adds some icons, and works in 2.0). I've emailed it over to the folks from Adobe who contacted me yesterday, as well as updated the issue in the 'bug files' forum for the beta. Interestingly, the issue has been updated with 'Fix Build: Next_Approved_Build_flex_201_ja'. No idea if that means it's confirmed or not. -- Tom Chiverton Helping to evangelistically unleash virtual models This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex 2.0.1+ IE 6.0 + Secure AMF
Hi, I've found the fix. The release notes for version 2.0.1 say that a secure AMP channel should have the add-no-cache-headersfalse/add-no-cache-headers attribute set. When it is set for some reason first attempt to send request fails and a subsequent one succeeds. To fix that I configured IE to not cache encrypted pages. Then everything works fine. It seems that this is really what fixes this issue since taking out the attriute does change anything. Cheers, Bartek --- In flexcoders@yahoogroups.com, baardos [EMAIL PROTECTED] wrote: Hi , I've just installed Flex 2.0.1 and tried to run my app which is configured to use secure AMF. The problem is that on IE 6.0 it is unable to communicate with the server - it's unable to access the URL associated with the secure channel. It works on IE 7.0 anf Firefox 2.0 as it used to. To give more details the app uses CUSTOM auth and a self-signed cert. Does it have anything to do with HTTP headers mentioned in this article: http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=fdc7b5cpss=rss_flashplayer_fdc7b5c I would be grateful for help! Thanks, Bartek
[flexcoders] ComboBox Open State?
Hi, In my application, there is a process which is running in the background. Here I want to know ComboBox's state whether it is open or not so that I can stop the process accordingly. If the combobox is open I dont want to excute that process. So please help and tell me how can i get the combobox state? Thanks in Advance Sanjay
[flexcoders] How to retrieve a default icon ?
Hello, I wanted to retrieve and use the checkmark icon used in front of selected menu items. I read many documents about Embed metadata and so on, but I found no way to simply get the default asset - the one coming with the default theme. The only way I found to do so is to create a dummy Menu object to retrieve the icon : public var imgChk:Class; var men:Menu = new Menu(); men.regenerateStyleCache(false); imgChk = men.getStyle(checkIcon); Is there a simplier way to get this checkIcon ?
RE: [flexcoders] Flex Builder 2.0.1 Trial
When I downloaded the trial a week ago, I got 2.0.1 - maybe they messed something up since then. Jason Merrill Bank of America Learning Organizational Effectiveness From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of pk_wasp Sent: Tuesday, January 09, 2007 8:14 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex Builder 2.0.1 Trial Is this available? I seem to bet getting the old when I download I try to download the trial.
RE: [flexcoders] FileReference Upload Chunk The File into smaller chunks
I need to split the file the user wants to upload into smaller chunks. Is this possible within the confines of the FileReference object? From my experience with the FileReference, no - there are no methods to do partial binary streams. Jason Merrill Bank of America Learning Organizational Effectiveness
[flexcoders] Re: Referring to created AS class from within MXML
David, I just re-read your original post, and I'm wondering what you mean by the following: when I try to create a class in the inline code of an mxml page The first time I read this, I assumed that you meant that you were instantiating a class in an MXML file. Is that what you meant? Or are you actually trying to write a class within the mx:Script block of an MXML file? If it's the latter, then that's your problem. You should create the AS class in its own separate file. -Jim --- In flexcoders@yahoogroups.com, David Steele [EMAIL PROTECTED] wrote: I now have the following, but I get the same error: import flash.display.Sprite; import flash.events.*; import flash.net.XMLSocket; public class socket extends UIComponent { ... - Original Message From: Jim Robson [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, January 9, 2007 10:58:54 AM Subject: [flexcoders] Re: Referring to created AS class from within MXML David, DisplayObjects (Sprite, Shape, Bitmap) can't generally be used directly in MXML. To be able to add a child using an MXML tag, you need to extend UIComponent. -Jim --- In [EMAIL PROTECTED] ups.com, David Steele stldvd@ wrote: I apologize for what must be an obvious question, but why when I try to create a class in the inline code of an mxml page do I get the 'Classes must not be nested' error? I'm trying to test a socket connection. I've got the socket code (which is a class); I know how to create mxml buttons etc. What I don't know is how to put the two together. I've created a new actionscript class file: package { import flash.display. *; import flash.events. *; import flash.net.XMLSocket ; public class socket extends Sprite { ... I've also got a document called socketTest.mxml. How do I refer to to my AS class from within socketTest.mxml? Do I need to explicitly place the two files somewhere? Thanks. _ _ _ _ __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail. yahoo.com __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[flexcoders] MXMl with code behind - how to bind?
Hi everyone, I wonder if you can help me. I am using Aral's code behind method of building a Flex app http://www.adobe.com/devnet/flex/quickstart/building_components_using_code_behind/ and it works really well so far. Now I've hit a problem which is probably easy to solve but I can't figure out. My main MXML file is index.mxml and it uses an AS class Main.as custom:Main xmlns:custom=comps.* xmlns:mx=http://www.adobe.com/2006/mxml; The MXML has a Canvas, then another Canvas, then another Canvas, then a TabNavigator and the third tab has a Listbox. So this is the tree: Main | canv1 | |__ canv2 |___canv3 |___tabnav |___users_list Main.as receives an event from another class instance (soConnector) and upon this event I want to bind a property dpUsers (an ArrayCollection) which exists within soConnector to the users_list Listbox. This is where I receive the event in Main: private function soHandler( e:SOEvent ):void { trace(soHandler - SO ready); answer_pb.addEventListener(MouseEvent.CLICK, answerHandler); } I tried adding this to soHandler: users_list.dataProvider = soConnector.dpUsers; But this throws an error, it appears that users_list is null and I have to drill down to it through canv1, canv2 and so on. But how? I can't seem to be able to append several getChildByName methods to one another: canv1.getChildByName(canv2).getChildByName(canv3).getChildByName(tabnav).getChildByName(users_list) does not seem to work it states: 1061: Call to a possibly undefined method getChildByName through a reference with static type flash.display:DisplayObject. Any help appreciated. This must be dead easy if you know how Cheers Stefan
Re: [flexcoders] Flex 2.0.1 Developer Ready?
On Tuesday 09 January 2007 12:42, Adam Reynolds wrote: Knowing the way Macrobe work, I've held off on working with Flex 2 until the 2.0.1 release , however is it me or is 2.0.1 still in Beta? I'm The beta site is still working, and last time it was turned off when the beta period ended. -- Tom Chiverton Helping to heterogeneously disseminate unique developments This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: basic architecture question
Hi Jason, This syntax looks correct... currentState = targetComp.dataProvider[event.index].data; ... as long as targetComp.dataProvider[event.index].data gives the name of the state that you want. I noticed that you output this to a text field, so I assume that it's correct. So it's the usual check-for-empty-spaces-and-stuff-like-that. Another method is to use a TabNavigator in place of a Tab Bar, and use custom components for the individual tabs. Something like this: mx:TabNavigator jx:CustomComponent1 label=First Tab / jx:CustomComponent2 label=Second Tab / jx:CustomComponent3 label=Third Tab / /mx:TabNavigator Or you could re-use the same component with different data for each tab: mx:TabNavigator jx:CustomComponent1 label=First Tab dataObject={myArrayCollection.getItemAt(0)} / jx:CustomComponent1 label=Second Tab dataObject={myArrayCollection.getItemAt(1)} / jx:CustomComponent1 label=Third Tab dataObject={myArrayCollection.getItemAt(2)} / /mx:TabNavigator Either way, a nice thing about using the TabNavigator approach is that the Flash player doesn't load the contents of a tab into memory until the user clicks on the tab. This helps the app load faster, and saves client resources generally. I'm not sure if this also applies to states. -Jim --- In flexcoders@yahoogroups.com, Merrill, Jason [EMAIL PROTECTED] wrote: Thanks everyone for your help and ideas. Very useful. I have something working now, but not with a custom component, though Jim I will try out your ideas there. My next architecture question has to do with states and navigation. I have a TabBar I am trying to use to navigate between different states - different pages in my application which all look very different except the navigation piece. Is this the best way to handle switching between different screens? I was able to render the TabBar based on my data bindings without a problem, and I can register the event that the tab was clicked, but i was unable to get it to change states. I tried: private function tabClick(event:ItemClickEvent):void { var targetComp:TabBar = TabBar(event.currentTarget); forClick.text=label is: + event.label + index is: + event.index + capital is: + targetComp.dataProvider[event.index].data; currentState = targetComp.dataProvider[event.index].data; } Where .data is the name of the state I want to change to. What is the proper approach? Thanks! Jason Merrill Bank of America Learning Organizational Effectiveness
[flexcoders] Prevent DataGrid itemClick event from launching with header click
I have a dataGrid that I have set an itemClick event to launch a popup canvas as an editor for the line item clicked. The dataGrid is set to editable but each column is set to noneditable to prevent the cell from being edited directly. Everything works well for the editing the line items however if I click on a column header to sort it also launchs my itemClick event (editor). How can I prevent this ?? Not having much luck trapping the event source since both header clicks and line item clicks return the same event.target.
RE: [flexcoders] Re: basic architecture question
Thanks Jim, I'll check out the Tab Navigator component - I wasn't sure what the differences were. So using that component, switching to a different state is still the same way I had it I guess eh? I'll have to check my data again to find out why it's failing. yeah, the textfield was just to show what the values were on screen for debugging. That part is working fine and showing the correct values. Thanks! Jason Merrill Bank of America Learning Organizational Effectiveness From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jim Robson Sent: Wednesday, January 10, 2007 8:14 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: basic architecture question Hi Jason, This syntax looks correct... currentState = targetComp.dataProvider[event.index].data; ... as long as targetComp.dataProvider[event.index].data gives the name of the state that you want. I noticed that you output this to a text field, so I assume that it's correct. So it's the usual check-for-empty-spaces-and-stuff-like-that. Another method is to use a TabNavigator in place of a Tab Bar, and use custom components for the individual tabs. Something like this: mx:TabNavigator jx:CustomComponent1 label=First Tab / jx:CustomComponent2 label=Second Tab / jx:CustomComponent3 label=Third Tab / /mx:TabNavigator Or you could re-use the same component with different data for each tab: mx:TabNavigator jx:CustomComponent1 label=First Tab dataObject={myArrayCollection.getItemAt(0)} / jx:CustomComponent1 label=Second Tab dataObject={myArrayCollection.getItemAt(1)} / jx:CustomComponent1 label=Third Tab dataObject={myArrayCollection.getItemAt(2)} / /mx:TabNavigator Either way, a nice thing about using the TabNavigator approach is that the Flash player doesn't load the contents of a tab into memory until the user clicks on the tab. This helps the app load faster, and saves client resources generally. I'm not sure if this also applies to states. -Jim --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Merrill, Jason [EMAIL PROTECTED] wrote: Thanks everyone for your help and ideas. Very useful. I have something working now, but not with a custom component, though Jim I will try out your ideas there. My next architecture question has to do with states and navigation. I have a TabBar I am trying to use to navigate between different states - different pages in my application which all look very different except the navigation piece. Is this the best way to handle switching between different screens? I was able to render the TabBar based on my data bindings without a problem, and I can register the event that the tab was clicked, but i was unable to get it to change states. I tried: private function tabClick(event:ItemClickEvent):void { var targetComp:TabBar = TabBar(event.currentTarget); forClick.text=label is: + event.label + index is: + event.index + capital is: + targetComp.dataProvider[event.index].data; currentState = targetComp.dataProvider[event.index].data; } Where .data is the name of the state I want to change to. What is the proper approach? Thanks! Jason Merrill Bank of America Learning Organizational Effectiveness
[flexcoders] Re: Event calling in Cairngorm 2.1 - Newbie question.
There actually is a problem in the Cairngorm store code. I found it when trying to dispatch an event using it. There are two sections that dispatch events, one works and one does not. The section with the graphical tile list dispatches a cairngorm event, but not using the CairngormEventDispatcher to update the details. The textual list uses a different method, since I had a grid object updating the details panel, I used that code, and it does not fire. The rule of thumb is, if you want to dispatch and event that is not registered on your controller, you do not use the CairgormEventDispatcher, but the standard EventDispatcher, regardless of whether or not your event is a cairngorm event. If you are using the code that resides in the textual product list to dispatch an event to update the details it will not work, the code is wrong. Unless they changed it recently. If you download it, compile it, and run it, switch to the textual view, it will not update the details panel. However the visual graphical tile list will work. Because they use different event dispatching. Hope this helps. This was a problem for me too. This may not be what your doing, but at least make sure you did not copy the code from the textual product list to dispatch the event or it wont work properly. Jeremy Sanders Cardinal Solutions Group Flex Application Developer [EMAIL PROTECTED] --- In flexcoders@yahoogroups.com, Stembert Olivier \(BIL\) [EMAIL PROTECTED] wrote: What's the description of the error? Are you sure the controller has been instantiated? Olivier From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Sent: Wednesday, January 10, 2007 12:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Event calling in Cairngorm 2.1 - Newbie question. I am trying to follow the 2.1 store as a model to understand the cairngorm structure and I am getting a constant error in trying to dispatch an event. I copied the example code almost exactly, but i get seen to get the even to fire. I don't know if the problem is in my FrontController or my event. Any help you can offer is much appreciated. Thank, Kevin --- I have this in my main.mxml file private function loadGroupList() : void { CairngormEventDispatcher.getInstance().dispatchEvent( new CairngormEvent( GetGroupListEvent.EVENT_GET_GROUP_LIST ) ); } and then in my event file: import flash.events.Event; import com.adobe.cairngorm.control.CairngormEvent; public class GetGroupListEvent extends CairngormEvent { public static var EVENT_GET_GROUP_LIST : String = getGroupList; //public var position : int; /** * Constructor. */ public function GetGroupListEvent() { super( EVENT_GET_GROUP_LIST ); } /** * Override the inherited clone() method, but don't return any state. */ override public function clone() : Event { return new GetGroupListEvent(); } } and my controller: import com.adobe.cairngorm.control.FrontController; //import the command folder import com.onefoot.dbocl.command.* //import each event import com.onefoot.dbocl.event.GetGroupListEvent; /** * @version $Revision: $ */ public class DboclController extends FrontController { public function DboclController() { initialiseCommands(); } public function initialiseCommands() : void { addCommand( GetGroupListEvent.EVENT_GET_GROUP_LIST, GetGroupListCommand ); } } - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. - - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. -
[flexcoders] Re: Prevent DataGrid itemClick event from launching with header click
I had the same problem, and solved it by testing the event rowIndex. The rowIndex #0 is for the header, so I just skip my job : (_itemClick is my handler) private function _itemClick(evt:ListEvent) : void { if (evt.rowIndex == 0) return; // do sth } Yan --- In flexcoders@yahoogroups.com, pdflibpilot [EMAIL PROTECTED] wrote: I have a dataGrid that I have set an itemClick event to launch a popup canvas as an editor for the line item clicked. The dataGrid is set to editable but each column is set to noneditable to prevent the cell from being edited directly. Everything works well for the editing the line items however if I click on a column header to sort it also launchs my itemClick event (editor). How can I prevent this ?? Not having much luck trapping the event source since both header clicks and line item clicks return the same event.target.
[flexcoders] Re: POST not working
Thanks for the reply... As you can tell, I'm trying to write the results of my simple form to a file, can be any format, i.e., text, XML, etc. to preferably an email address or to a text file. What I'd like to see in the file would look like this Name: John Smith Address1: 234 Main St Address2: Suite 100 City: Los Angeles State: CA Zip: 90028 Email: [EMAIL PROTECTED] Is there a way to do this? Can't seem to find any info in the Flex docs...thanks again... --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: I don't think you can post to a .txt file. That would be way too easy. I mean, you need some server-side program to accept the url and write the file. Have you ever posted to a .txt file in any other language? What are you expecting such a file to look like? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of danj520 Sent: Tuesday, January 09, 2007 3:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] POST not working Anyone know why this isn't working? When run, nothing is posted..all form fields exist and are valid...thanks in advance... mx:HTTPService id=userRequest url=data/forms/contact.txt useProxy=false method=POST mx:request xmlns= username{nameInput.text}/username address1{address1.text}/address1 address2{address2.text}/address2 city{city.text}/city state{state.text}/state zip{zip.text}/zip country{country.text}/country emailaddress{emailInput.text}/emailaddress /mx:request /mx:HTTPService
[flexcoders] Associating DataStructure with tree
Hi, I am creating a tree control which represents a huge set of records. each record contains a number of properties and I want to be able to associte a structure like class with each node of the tree and fill in values for these properties in it at runtime. Is it possible to do such a thing. regards, Shruti
[flexcoders] Transition States with Percentages
Hey Everyone, I am going to make this quick as I am tired and want to get away from the computer for the night. Has anybody ever had an issue when using a transition from one state to another where you are changing the property of say 2 panels that have percentages for their height or width and specifying new percentages? I think there is a bug, but I have two panels laid out in a VBox. When the application starts the top panel is 10% height and the bottom is 90% height. When you click the search button in the top panel, I want the search panel to change to 50% height and the bottom panel to change to 50% height. When I run the application, Flex successfully runs the transition just as it should but then at the end snaps the top panel to the smallest allowable height (if minHeight is not set the panel seems to disappear) Any suggestions? -Kyle
RE: [flexcoders] FileReference Upload Chunk The File into smaller chunks
I'm not sure about security implications, but I for one would love to see some added functionality on the client side for the file reference classes at least in flex if possible, though I'm sure it would mess up the flash player more then anything. A: A handle to the byte array before upload starts. First thought benefits: Compression Possible to send in chunks (multipart upload) Validation Upload is not protocol specific (rpc possible [1]) Immediate access to data [2] B: A binary type shared client object that can accept the file reference (size = to size of file) First thought benefits: If upload is interrupted then restart at the same byte offset possible Same for download C: Multiple file download. [3] [1]Not sure if this is already possible or not as I've been using soap for file upload. [2]If the user has committed to an upload why do the round trip in order to manipulate it.Good for image resizing, manipulation, and any kind of file pre processing. [3]If access to the binary data was to be allowed then one could decompress the file on the fly. The user would not require a decompression program. Or if data is compressed a user could select particular files to download from the compressed file. This should be just using a folder dialog, as apposed to a file dialog. That said I'm sure Adobe has a particular reasoning behind the decision not to allow these things. These couple things would just make it more of a feature rich part of the experience. Jason -Message d'origine- De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] la part de Merrill, Jason Envoye : mercredi 10 janvier 2007 13:11 A : flexcoders@yahoogroups.com Objet : RE: [flexcoders] FileReference Upload Chunk The File into smaller chunks I need to split the file the user wants to upload into smaller chunks. Is this possible within the confines of the FileReference object? From my experience with the FileReference, no - there are no methods to do partial binary streams. Jason Merrill Bank of America Learning Organizational Effectiveness
[flexcoders] trouble with addChild
Hi all. I tried to do that: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx= http://www.adobe.com/2006/mxml; layout=absolute currentState=partview width=100% height=100% mx:Script ![CDATA[ private var cp:Panel private function onCopyClick(event:MouseEvent):void { cp=pnl; application.setCurrentState('fullview') fullc.addChild(cp); } private function onCopyClick2(event:MouseEvent):void { trace(playout+|+cp) playout.addChild(cp); if (fullc.getChildren().length0) { fullc.removeAllChildren(); } application.setCurrentState('partview') } ]] /mx:Script mx:states mx:State name=partview mx:AddChild position=lastChild mx:VBox id=playout x=32 y=88 height=351 width=287 mx:Panel id=pnl width=100% height=100% layout=absolute /mx:Panel /mx:VBox /mx:AddChild /mx:State mx:State name=fullview mx:AddChild position=lastChild mx:VBox id=fullc x=0 y=58 width=100% height=100% /mx:VBox /mx:AddChild /mx:State /mx:states mx:ApplicationControlBar x=0 y=0 width=100% height=50 mx:Button label=Button1 click=onCopyClick(event)/ mx:Button label=Button2 click=onCopyClick2(event)/ /mx:ApplicationControlBar /mx:Application but I got error with RangeError: Error #2006: The supplied index is out of bounds. What the reason?
RE: [flexcoders] Re: POST not working
Locally? Security restrictions won't allow you to do that. To do it on the web, you would have to use something like .NET or PHP, and then download the file to the local system. That would be pretty easy. Jason Merrill Bank of America Learning Organizational Effectiveness From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of danj520 Sent: Wednesday, January 10, 2007 12:24 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: POST not working Thanks for the reply... As you can tell, I'm trying to write the results of my simple form to a file, can be any format, i.e., text, XML, etc. to preferably an email address or to a text file. What I'd like to see in the file would look like this Name: John Smith Address1: 234 Main St Address2: Suite 100 City: Los Angeles State: CA Zip: 90028 Email: [EMAIL PROTECTED] mailto:jsmith%40company.com Is there a way to do this? Can't seem to find any info in the Flex docs...thanks again... --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt [EMAIL PROTECTED] wrote: I don't think you can post to a .txt file. That would be way too easy. I mean, you need some server-side program to accept the url and write the file. Have you ever posted to a .txt file in any other language? What are you expecting such a file to look like? Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of danj520 Sent: Tuesday, January 09, 2007 3:34 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] POST not working Anyone know why this isn't working? When run, nothing is posted..all form fields exist and are valid...thanks in advance... mx:HTTPService id=userRequest url=data/forms/contact.txt useProxy=false method=POST mx:request xmlns= username{nameInput.text}/username address1{address1.text}/address1 address2{address2.text}/address2 city{city.text}/city state{state.text}/state zip{zip.text}/zip country{country.text}/country emailaddress{emailInput.text}/emailaddress /mx:request /mx:HTTPService
RE: [flexcoders] Prevent DataGrid itemClick event from launching with header click
You could try an event.preventDefault(); you would have to be able to identify the event to know if you want it to pass or not. jason -Message d'origine- De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] la part de pdflibpilot Envoyé : mercredi 10 janvier 2007 14:22 À : flexcoders@yahoogroups.com Objet : [flexcoders] Prevent DataGrid itemClick event from launching with header click I have a dataGrid that I have set an itemClick event to launch a popup canvas as an editor for the line item clicked. The dataGrid is set to editable but each column is set to noneditable to prevent the cell from being edited directly. Everything works well for the editing the line items however if I click on a column header to sort it also launchs my itemClick event (editor). How can I prevent this ?? Not having much luck trapping the event source since both header clicks and line item clicks return the same event.target.
[flexcoders] Re: Calling javascript with navigateToURL
That worked great, thanks --- In flexcoders@yahoogroups.com, jensen.axel [EMAIL PROTECTED] wrote: I'm trying to do a loop, and call a javascript function in flex for every loop. The loop only seems to call the javascript once the loop is done... and it only calls it for the last iteration of the loop. To reproduce the issue do the following: 1. Create a new project in flex 2. Put a button on the form, and make it's click=test1(); 3. Create a script block like so mx:Script ![CDATA[ private function test1():void{ for (var i:int = 0; i 5; i++){ var u:URLRequest = new URLRequest(javascript:alert( + \'test + i + \');); navigateToURL(u,_self); trace(i); } } ]] /mx:Script the button calls this very simple function, and theoretically you should get 5 alert boxes, but you don't you get 1 I'm curious if these methods can be used like this.
Re: [flexcoders] Re: Flex, RemoteObject calls, ColdFusion, and SSL
http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1099.html that's the only docs I found so far on this. Aside from that are tidbits in the flexcoders archive, so basically I'm left to hack out a solution instead of understanding one. We REALLY need a technote on how to get this going with full explanations. The Flex doc team did a outstanding job in my opinion, but this area is sorely lacking. Unless of course its hidden from my sight! Now, I got SSL working for AMF calls by using this channel definition ONLY in my services-config.xml file. channels channel-definition id=my-cfamf class= mx.messaging.channels.SecureAMFChannel endpoint uri=https://{server.name}:{server.port}{context.root}/flex2gateway/; class=flex.messaging.endpoints.SecureAMFEndpoint/ properties polling-enabledfalse/polling-enabled add-no-cache-headersfalse/add-no-cache-headers serialization instantiate-typesfalse/instantiate-types /serialization /properties /channel-definition /channels So, I can use this to force SSL use. Is it possible to modify the above to allow me to use either non SSL or SSL letting the web server force SSL use? Why? Cause I need to be able to compile and run the SWF on a dev box that has no SSL for testing first. Do I need to have two services-config.xml to compile against, one for dev one for prod? DK On 1/9/07, João Fernandes [EMAIL PROTECTED] wrote: To be honest Douglas, I never saw anywhere documentation about secured endpoint for a cf destination. Are you pointing your endpoint to /flex2gateway ? What are your secure and non secure endpoints(my-cfamf and my-secure-cfamf)? João Fernandes *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Douglas Knudsen *Sent:* 09 January 2007 22:22 *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: Flex, RemoteObject calls, ColdFusion, and SSL this is what is showing in a cfusion-out.log file. Looks like its trying to connect, then dies. [Flex] 01/09/2007 17:20:08.657 [INFO] [Endpoint.General] Channel endpoint my-secure-cfamf received request. [Flex] 01/09/2007 17:20: 08.657 [DEBUG] [Endpoint.AMF] Deserializing AMF/HTTP request Version: 3 (Message #0 targetURI=null, responseURI=/1) (Array #0) [0] = (Typed Object #0 'flex.messaging.messages.CommandMessage') messageRefType = null operation = 5 correlationId = timeToLive = 0 body = (Object #1) clientId = null messageId = 5841B70D-681C-757D-8C51-08F26FA3CF5E headers = (Object #2) destination = timestamp = 0 [Flex] 01/09/2007 17:20:08.657 [DEBUG] [Message.Command.cluster_request] Executed command: (default service) commandMessage: Flex Message ( flex.messaging.messages.CommandMessage) operation = cluster_request messageRefType = null clientId = 25D7D0AD-C11D-EF62-3FC9-B6943B9FCD0E correlationId = destination = messageId = 5841B70D-681C-757D-8C51-08F26FA3CF5E timestamp = 1168381208657 timeToLive = 0 body = {} replyMessage: Flex Message (flex.messaging.messages.AcknowledgeMessage) clientId = 25D7D0AD-C11D-EF62-3FC9-B6943B9FCD0E correlationId = 5841B70D-681C-757D-8C51-08F26FA3CF5E destination = null messageId = 25D7D0AD-C128-3443-EB35-12AF60EA8684 timestamp = 1168381208657 timeToLive = 0 body = null [Flex] 01/09/2007 17:20:08.657 [DEBUG] [Endpoint.AMF] Serializing AMF/HTTP response Version: 3 (Message #0 targetURI=/1/onResult, responseURI=) (Typed Object #0 'flex.messaging.messages.AcknowledgeMessage') destination = null headers = (Object #1) correlationId = 5841B70D-681C-757D-8C51-08F26FA3CF5E messageId = 25D7D0AD-C128-3443-EB35-12AF60EA8684 timestamp = 1.168381208657E12 clientId = 25D7D0AD-C11D-EF62-3FC9-B6943B9FCD0E timeToLive = 0.0 body = null On 1/9/07, *Douglas Knudsen* [EMAIL PROTECTED] wrote: Can anyone point me to definitive documentation for setting this up? I have a cluster of CF instances in a production environment, I'm running IIS with SSL, and I can't get my Flex remoteobject calls to work. -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it?
Re: [flexcoders] Flex, RemoteObject calls, ColdFusion, and SSL
thanks Tom, yeah, ran across that technote. DK On 1/10/07, Tom Chiverton [EMAIL PROTECTED] wrote: On Tuesday 09 January 2007 22:04, Douglas Knudsen wrote: have a cluster of CF instances in a production environment, I'm running IIS with SSL, and I can't get my Flex remoteobject calls to work. Are you testing with IE ? You need an extra argument: channels channel-definition id=my-cfamf-myplan2 class=mx.messaging.channels.SecureAMFChannel endpoint uri=https://host.domain.co.uk/flex2gateway/; class=flex.messaging.endpoints.SecureAMFEndpoint/ properties polling-enabledfalse/polling-enabled serialization instantiate-typesfalse/instantiate-types /serialization add-no-cache-headersfalse/add-no-cache-headers /properties /channel-definition /channels^ -- Tom Chiverton Helping to advantageously customize back-end web-readiness This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it?
Re: [flexcoders] Flex, RemoteObject calls, ColdFusion, and SSL
No, I didn't import the key. In fact this is not necessary, eh? AMF calls occur over HTTP, so only the web server needs the cert in this case. Now, if I needed the communication between the webserver and my appserver to be over SSL, yes, I'd need the cert imported into the key store. DK On 1/9/07, Sarge Sargent [EMAIL PROTECTED] wrote: Hey Doug, I don't have anything definitive (yet) but have you imported the certificate into CF's store? See my blog postings on it: http://www.sargeway.com/blog/index.cfm/2005/11/23/Enabling-SSL. My guess is you have CF set up in Multiserver configuration, so all of your instance can actually share the same cert store. Turn on the JVM debugging (see the debugging example in the blog) and see what you're getting in the handshake when you issue your RO call. Let me know what you get ;). *Sarge* *Sr. Product Support Engineer* Macromedia, now part of Adobe Systems http://www.macromedia.com/go/sarge_blog -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Douglas Knudsen *Sent:* Tuesday, January 09, 2007 3:04 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Flex, RemoteObject calls, ColdFusion, and SSL Can anyone point me to definitive documentation for setting this up? I have a cluster of CF instances in a production environment, I'm running IIS with SSL, and I can't get my Flex remoteobject calls to work. -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it?
Re: [flexcoders] Drag and Drop within TileList - why does my code copy instead of move?
are you using flex 2.0 or 2.0.1? I have an application using drag and drop and need to move the items within the TileList, it was working just fine in version 2.0, now since I updated to 2.0.1 it doesn't move the items anymore but instead makes a copy. Basically I want to order the Items of the TileList by dragging them, but I also want to drag items from a different component. As I said it worked with flex 2.0. Here is the code: ?xml version=1.0 encoding=utf-8? mx:TileList xmlns:mx=http://www.adobe.com/2006/mxml; backgroundAlpha=0 backgroundColor=#FF itemRenderer=renderer.ProjectThumbnail dragEnabled=true dragEnter=doDragEnter(event) dragExit=doDragExit(event) dragDrop=doDragDrop(event) dragOver=doDragOver(event) mouseDown=dropInitiator = DragManager.MOVE; dragMoveEnabled=true mx:Script ![CDATA[ *import* mx.collections.IList; *import* mx.collections.ArrayCollection; *import* events.CompareImageChangeEvent; *import* mx.events.DragEvent; *import* mx.managers.DragManager; *import* mx.core.DragSource; *import* com.cnh.imageBank.model.ModelLocator; [*Bindable*] *public* *var* model:ModelLocator = ModelLocator.getInstance(); *private* *var* dropInitiator:String = DragManager.NONE; *// Drag and drop events **public* *function* doDragEnter(event:DragEvent): *void* { *// Get the drop target component from the event object. **var* dropTarget:TileList = event.currentTarget *as* TileList; *var* dataInfo:ArrayCollection = dropTarget.dataProvider *as*ArrayCollection; *var* item:Object = event.dragSource.dataForFormat(*item*); *if*(dropInitiator == DragManager.MOVE){ DragManager.showFeedback(DragManager.MOVE); DragManager.acceptDragDrop(dropTarget); } *else* { *if*(item != *null*){ *for*(*var* i:int = 0; i dataInfo.length; i++){ *if*(dataInfo[i].id == item.id) *return*; } DragManager.showFeedback(DragManager.COPY); DragManager.acceptDragDrop(dropTarget); } } }* **public* *function* doDragExit(event: DragEvent): *void* { *var* dropTarget:TileList = event.currentTarget *as* TileList; dropTarget.hideDropFeedback(event); dropInitiator = DragManager.NONE; *this*.dropEnabled = *false*; } *public* *function* doDragOver(event: DragEvent): *void* { *var* dropTarget:TileList = event.currentTarget *as* TileList; dropTarget.showDropFeedback(event); } * **public* *function* doDragDrop(event: DragEvent): *void* { *var* dropTarget:TileList = event.currentTarget *as* TileList; *var* item:Object = event.dragSource.dataForFormat(*item*); *if* (item == *null*) { *// Item was dragged from the thumbnail view **var* items:Object = event.dragSource.dataForFormat(*items*); item = items[0]; } *var* dropLoc:int = dropTarget.calculateDropIndex(event); IList(dropTarget.dataProvider).addItemAt(item, dropLoc );* * doDragExit(event); } ]] /mx:Script /mx:TileList
RE: [flexcoders] Re: POST not working
You'll need logic on the server to handle the creation of the text file. So Flex takes the form input and POSTs it to your server page set up to handle it, something like a PHP, ASP, CFM, etc. This page on the server takes the input fields sent to it from Flex and formats it to your liking and writes out the file. So find out what middleware is on your server and go from there. I might suggest that you are going to want to store your information in a database though. Good luck, Mike Weiland Original Message --- Thanks for the reply... As you can tell, I'm trying to write the results of my simple form to a file, can be any format, i.e., text, XML, etc. to preferably an email address or to a text file. What I'd like to see in the file would look like this Name: John Smith Address1: 234 Main St Address2: Suite 100 City: Los Angeles State: CA Zip: 90028 Email: [EMAIL PROTECTED] Is there a way to do this? Can't seem to find any info in the Flex docs...thanks again... --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: I don't think you can post to a .txt file. That would be way too easy. I mean, you need some server-side program to accept the url and write the file. Have you ever posted to a .txt file in any other language? What are you expecting such a file to look like? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of danj520 Sent: Tuesday, January 09, 2007 3:34 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] POST not working Anyone know why this isn't working? When run, nothing is posted..all form fields exist and are valid...thanks in advance... mx:HTTPService id=userRequest url=data/forms/contact.txt useProxy=false method=POST mx:request xmlns= username{nameInput.text}/username address1{address1.text}/address1 address2{address2.text}/address2 city{city.text}/city state{state.text}/state zip{zip.text}/zip country{country.text}/country emailaddress{emailInput.text}/emailaddress /mx:request /mx:HTTPService
[flexcoders] Unable to drag move objects from a TileList after updating to Flexbuilder 2.0.1
I have an application using drag and drop and need to move the items within the TileList, it was working just fine in version 2.0, now since I updated to 2.0.1 it doesn't move the items anymore but instead makes a copy. Basically I want to order the Items of the TileList by dragging them, but I also want to drag items from a different component. As I said it worked with flex 2.0. Here is the code: ?xml version=1.0 encoding=utf-8? mx:TileList xmlns:mx=http://www.adobe.com/2006/mxml; backgroundAlpha=0 backgroundColor=#FF itemRenderer=renderer.ProjectThumbnail dragEnabled=true dragEnter=doDragEnter(event) dragExit=doDragExit(event) dragDrop=doDragDrop(event) dragOver=doDragOver(event) mouseDown=dropInitiator = DragManager.MOVE; dragMoveEnabled=true mx:Script ![CDATA[ *import* mx.collections.IList; *import* mx.collections.ArrayCollection; *import* events.CompareImageChangeEvent; *import* mx.events.DragEvent; *import* mx.managers.DragManager; *import* mx.core.DragSource; *import* com.cnh.imageBank.model.ModelLocator; [*Bindable*] *public* *var* model:ModelLocator = ModelLocator.getInstance(); *private* *var* dropInitiator:String = DragManager.NONE; *// Drag and drop events **public* *function* doDragEnter(event:DragEvent): *void* { *// Get the drop target component from the event object. **var* dropTarget:TileList = event.currentTarget *as* TileList; *var* dataInfo:ArrayCollection = dropTarget.dataProvider *as*ArrayCollection; *var* item:Object = event.dragSource.dataForFormat(*item*); *if*(dropInitiator == DragManager.MOVE){ DragManager.showFeedback(DragManager.MOVE); DragManager.acceptDragDrop(dropTarget); } *else* { *if*(item != *null*){ *for*(*var* i:int = 0; i dataInfo.length; i++){ *if*(dataInfo[i].id == item.id) *return*; } DragManager.showFeedback(DragManager.COPY); DragManager.acceptDragDrop(dropTarget); } } }* **public* *function* doDragExit(event: DragEvent): *void* { *var* dropTarget:TileList = event.currentTarget *as* TileList; dropTarget.hideDropFeedback(event); dropInitiator = DragManager.NONE; *this*.dropEnabled = *false*; } *public* *function* doDragOver(event: DragEvent): *void* { *var* dropTarget:TileList = event.currentTarget *as* TileList; dropTarget.showDropFeedback(event); } * **public* *function* doDragDrop(event: DragEvent): *void* { *var* dropTarget:TileList = event.currentTarget *as* TileList; *var* item:Object = event.dragSource.dataForFormat(*item*); *if* (item == *null*) { *// Item was dragged from the thumbnail view **var* items:Object = event.dragSource.dataForFormat(*items*); item = items[0]; } *var* dropLoc:int = dropTarget.calculateDropIndex(event); IList(dropTarget.dataProvider).addItemAt(item, dropLoc );* * doDragExit(event); } ]] /mx:Script /mx:TileList
[flexcoders] Re: FDS - possible bug???
Same for me: autoRefreshFill is never called. --- In flexcoders@yahoogroups.com, Jeff Vroom [EMAIL PROTECTED] wrote: It does look like this is a bug I think there is an easy workaround which is to just have autoRefreshFill always return true and just have the refreshFill method return the DO_NOT_EXECUTE_FILL value. The end result is the same - the fill is not refreshed unless you manually refresh it. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dmitry Miller Sent: Tuesday, November 28, 2006 11:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] FDS - possible bug??? Hello, everyone I am using FDS Java Adapter and Assembler approach. I am currently in the process of making fill() methods more smart and started playing with autoRefreshFill() and refreshFill() methods. I have discovered the following issue Looks like autoRefreshFill() not being executed. @Override public boolean autoRefreshFill(List params) { System.out.println( auto refresh fill: + params); return super.autoRefreshFill(params); } refreshFill(List params, Object item, boolean isCreate) { int res; ... System.out.println(refresh fill: + params); return res; } The above snippet generates no output in regards to autoRefreshFill to the console whenever I add/remove/update items to the DS while refresh fill messages do show up. Therefore I can conclude that my implementation of autoRefreshFill is never called. Am I missing something?
RE: [flexcoders] Re: Flex, RemoteObject calls, ColdFusion, and SSL
Douglas, You could eventually pass in your html wrapper a variable telling to use secured or insecured channel and at runtime redefine your channel definition to all your RemoteObjects. Dont you need both unsecured and secured channels? João Fernandes From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Knudsen Sent: 10 January 2007 14:24 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flex, RemoteObject calls, ColdFusion, and SSL http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp .htm?context=LiveDocs_Parts http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhel p.htm?context=LiveDocs_Partsfile=1099.html file=1099.html that's the only docs I found so far on this. Aside from that are tidbits in the flexcoders archive, so basically I'm left to hack out a solution instead of understanding one. We REALLY need a technote on how to get this going with full explanations. The Flex doc team did a outstanding job in my opinion, but this area is sorely lacking. Unless of course its hidden from my sight! Now, I got SSL working for AMF calls by using this channel definition ONLY in my services-config.xml file. channels channel-definition id=my-cfamf class=mx.messaging.channels.SecureAMFChannel endpoint uri=https://{server.name}:{server.port}{context.root}/flex2gateway/; class=flex.messaging.endpoints.SecureAMFEndpoint/ properties polling-enabledfalse/polling-enabled add-no-cache-headersfalse/add-no-cache-headers serialization instantiate-typesfalse/instantiate-types /serialization /properties /channel-definition /channels So, I can use this to force SSL use. Is it possible to modify the above to allow me to use either non SSL or SSL letting the web server force SSL use? Why? Cause I need to be able to compile and run the SWF on a dev box that has no SSL for testing first. Do I need to have two services-config.xml to compile against, one for dev one for prod? DK On 1/9/07, João Fernandes [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: To be honest Douglas, I never saw anywhere documentation about secured endpoint for a cf destination. Are you pointing your endpoint to /flex2gateway ? What are your secure and non secure endpoints(my-cfamf and my-secure-cfamf)? João Fernandes From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Knudsen Sent: 09 January 2007 22:22 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex, RemoteObject calls, ColdFusion, and SSL this is what is showing in a cfusion-out.log file. Looks like its trying to connect, then dies. [Flex] 01/09/2007 17:20:08.657 [INFO] [Endpoint.General] Channel endpoint my-secure-cfamf received request. [Flex] 01/09/2007 17:20: 08.657 [DEBUG] [Endpoint.AMF] Deserializing AMF/HTTP request Version: 3 (Message #0 targetURI=null, responseURI=/1) (Array #0) [0] = (Typed Object #0 'flex.messaging.messages.CommandMessage') messageRefType = null operation = 5 correlationId = timeToLive = 0 body = (Object #1) clientId = null messageId = 5841B70D-681C-757D-8C51-08F26FA3CF5E headers = (Object #2) destination = timestamp = 0 [Flex] 01/09/2007 17:20:08.657 [DEBUG] [Message.Command.cluster_request] Executed command: (default service) commandMessage: Flex Message ( flex.messaging.messages.CommandMessage) operation = cluster_request messageRefType = null clientId = 25D7D0AD-C11D-EF62-3FC9-B6943B9FCD0E correlationId = destination = messageId = 5841B70D-681C-757D-8C51-08F26FA3CF5E timestamp = 1168381208657 timeToLive = 0 body = {} replyMessage: Flex Message (flex.messaging.messages.AcknowledgeMessage) clientId = 25D7D0AD-C11D-EF62-3FC9-B6943B9FCD0E correlationId = 5841B70D-681C-757D-8C51-08F26FA3CF5E destination = null messageId = 25D7D0AD-C128-3443-EB35-12AF60EA8684 timestamp = 1168381208657 timeToLive = 0 body = null [Flex] 01/09/2007 17:20:08.657 [DEBUG] [Endpoint.AMF] Serializing AMF/HTTP response Version: 3 (Message #0 targetURI=/1/onResult, responseURI=) (Typed Object #0 'flex.messaging.messages.AcknowledgeMessage') destination = null headers = (Object #1) correlationId = 5841B70D-681C-757D-8C51-08F26FA3CF5E messageId = 25D7D0AD-C128-3443-EB35-12AF60EA8684 timestamp = 1.168381208657E12 clientId = 25D7D0AD-C11D-EF62-3FC9-B6943B9FCD0E timeToLive = 0.0 body = null On 1/9/07, Douglas Knudsen [EMAIL PROTECTED] wrote: Can anyone point me to definitive documentation for setting this up? I have a cluster of CF instances in a production environment, I'm running IIS with SSL, and I can't get my Flex remoteobject calls to work. --
[flexcoders] IFlexModule
I downloaded Eclipse 3.2 (the all in one wtp package), Flex 2.0.1. I did a clean install in new folders. Now when I open Eclipse and open a project I'm getting some IFlexModule error.. I did a google search and that didnt help much. Has anyone seen this error and know how to fix it? It's getting on my nerves!
Re: [flexcoders] Flex/Flash on The iPhone ?
but how will we deal with mouse events for multiple mice (fingers)? On Jan 10, 2007, at 1:34 AM, Shannon Hicks wrote: It runs OS X, it runs Safari It even runs widgets... surely it is capable of running Flash Player 9. If Apple intends on letting 3rd party developers in on the phone, then I bet it'll be included. If Apple/Cingular plan on selling more optional applications for the phone, perhaps they won't. On a similar but off-topic note... what of PDF's on the iPhone? Shan
RE: [flexcoders] Flex/Flash on The iPhone ?
The same way Safari does. (but are you sure there are multiple simutaneous mouse events in the iPhone?) Jason Merrill Bank of America Learning Organizational Effectiveness From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Tuminello Sent: Wednesday, January 10, 2007 10:01 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex/Flash on The iPhone ? but how will we deal with mouse events for multiple mice (fingers)? On Jan 10, 2007, at 1:34 AM, Shannon Hicks wrote: It runs OS X, it runs Safari It even runs widgets... surely it is capable of running Flash Player 9. If Apple intends on letting 3rd party developers in on the phone, then I bet it'll be included. If Apple/Cingular plan on selling more option! al applications for the phone, perhaps they won't. On a similar but off-topic note... what of PDF's on the iPhone? Shan
Re: [flexcoders] Re: Flex, RemoteObject calls, ColdFusion, and SSL
I really don't want to have to code for this. In fact you shouldn't have to, this type of thing occurs at a lower level of the whole stack of existence, eh? On my production servers, I need only SSL. but on my development/testing server, I need non SSL. So far it appears I need to use a different services-config.xml for each environment. DK On 1/10/07, João Fernandes [EMAIL PROTECTED] wrote: Douglas, You could eventually pass in your html wrapper a variable telling to use secured or insecured channel and at runtime redefine your channel definition to all your RemoteObjects. Don't you need both unsecured and secured channels? João Fernandes *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Douglas Knudsen *Sent:* 10 January 2007 14:24 *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Flex, RemoteObject calls, ColdFusion, and SSL http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1099.html that's the only docs I found so far on this. Aside from that are tidbits in the flexcoders archive, so basically I'm left to hack out a solution instead of understanding one. We REALLY need a technote on how to get this going with full explanations. The Flex doc team did a outstanding job in my opinion, but this area is sorely lacking. Unless of course its hidden from my sight! Now, I got SSL working for AMF calls by using this channel definition ONLY in my services-config.xml file. channels channel-definition id=my-cfamf class= mx.messaging.channels.SecureAMFChannel endpoint uri=https://{server.name}:{server.port}{ context.root}/flex2gateway/ class= flex.messaging.endpoints.SecureAMFEndpoint/ properties polling-enabledfalse/polling-enabled add-no-cache-headersfalse/add-no-cache-headers serialization instantiate-typesfalse/instantiate-types /serialization /properties /channel-definition /channels So, I can use this to force SSL use. Is it possible to modify the above to allow me to use either non SSL or SSL letting the web server force SSL use? Why? Cause I need to be able to compile and run the SWF on a dev box that has no SSL for testing first. Do I need to have two services-config.xml to compile against, one for dev one for prod? DK On 1/9/07, *João Fernandes* [EMAIL PROTECTED] wrote: To be honest Douglas, I never saw anywhere documentation about secured endpoint for a cf destination. Are you pointing your endpoint to /flex2gateway ? What are your secure and non secure endpoints(my-cfamf and my-secure-cfamf)? João Fernandes *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Douglas Knudsen *Sent:* 09 January 2007 22:22 *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: Flex, RemoteObject calls, ColdFusion, and SSL this is what is showing in a cfusion-out.log file. Looks like its trying to connect, then dies. [Flex] 01/09/2007 17:20:08.657 [INFO] [Endpoint.General] Channel endpoint my-secure-cfamf received request. [Flex] 01/09/2007 17:20: 08.657 [DEBUG] [Endpoint.AMF] Deserializing AMF/HTTP request Version: 3 (Message #0 targetURI=null, responseURI=/1) (Array #0) [0] = (Typed Object #0 'flex.messaging.messages.CommandMessage') messageRefType = null operation = 5 correlationId = timeToLive = 0 body = (Object #1) clientId = null messageId = 5841B70D-681C-757D-8C51-08F26FA3CF5E headers = (Object #2) destination = timestamp = 0 [Flex] 01/09/2007 17:20:08.657 [DEBUG] [Message.Command.cluster_request] Executed command: (default service) commandMessage: Flex Message ( flex.messaging.messages.CommandMessage) operation = cluster_request messageRefType = null clientId = 25D7D0AD-C11D-EF62-3FC9-B6943B9FCD0E correlationId = destination = messageId = 5841B70D-681C-757D-8C51-08F26FA3CF5E timestamp = 1168381208657 timeToLive = 0 body = {} replyMessage: Flex Message (flex.messaging.messages.AcknowledgeMessage) clientId = 25D7D0AD-C11D-EF62-3FC9-B6943B9FCD0E correlationId = 5841B70D-681C-757D-8C51-08F26FA3CF5E destination = null messageId = 25D7D0AD-C128-3443-EB35-12AF60EA8684 timestamp = 1168381208657 timeToLive = 0 body = null [Flex] 01/09/2007 17:20:08.657 [DEBUG] [Endpoint.AMF] Serializing AMF/HTTP response Version: 3 (Message #0 targetURI=/1/onResult, responseURI=) (Typed Object #0 'flex.messaging.messages.AcknowledgeMessage') destination = null headers = (Object #1) correlationId = 5841B70D-681C-757D-8C51-08F26FA3CF5E messageId = 25D7D0AD-C128-3443-EB35-12AF60EA8684 timestamp = 1.168381208657E12 clientId = 25D7D0AD-C11D-EF62-3FC9-B6943B9FCD0E timeToLive = 0.0 body = null On 1/9/07,
Re: [flexcoders] trouble with addChild
Hi, It's not possible to move your cp variable between containers like that. When you call addChild the second time. cp is still in the first containers child list. As Flex updates the display, it runs over the arrays of children on the component you remove from and thinks cp is still there, except it isn't. Hence the RangeError (array index out of bounds). Every child has a parent attribute that points to it's parent. At any point during runtime, there can only be one reference here, so you have to cleanly remove cp from it's old container *before* adding it to the new one. Really read this carefully: http://livedocs.macromedia.com/flex/2/docs/1850.html Technically, I think Flex should do the clean remove for you (according to the document above anyway). I have a sneaky feeling though, that this exception throw is partially to alert the developer to potential berk-traps in code. Best of luck, Ciarán On 1/10/07, Pavel Zabelin [EMAIL PROTECTED] wrote: Hi all. I tried to do that: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx= http://www.adobe.com/2006/mxml; layout=absolute currentState=partview width=100% height=100% mx:Script ![CDATA[ private var cp:Panel private function onCopyClick(event:MouseEvent):void { cp=pnl; application.setCurrentState('fullview') fullc.addChild(cp); } private function onCopyClick2(event:MouseEvent):void { trace(playout+|+cp) playout.addChild(cp); if (fullc.getChildren().length0) { fullc.removeAllChildren(); } application.setCurrentState('partview') } ]] /mx:Script mx:states mx:State name=partview mx:AddChild position=lastChild mx:VBox id=playout x=32 y=88 height=351 width=287 mx:Panel id=pnl width=100% height=100% layout=absolute /mx:Panel /mx:VBox /mx:AddChild /mx:State mx:State name=fullview mx:AddChild position=lastChild mx:VBox id=fullc x=0 y=58 width=100% height=100% /mx:VBox /mx:AddChild /mx:State /mx:states mx:ApplicationControlBar x=0 y=0 width=100% height=50 mx:Button label=Button1 click=onCopyClick(event)/ mx:Button label=Button2 click=onCopyClick2(event)/ /mx:ApplicationControlBar /mx:Application but I got error with RangeError: Error #2006: The supplied index is out of bounds. What the reason?
[flexcoders] Flash on the Playstation 3
Copied from: http://lists.terrasoftsolutions.com/pipermail/yellowdog-announce/2006-October/000129.html Flash Player 9 Beta is now available for Linux, but not for the Power architecture. Fortunately, Adobe offers a 'feature request' form: http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform I ask each and every one of you to submit your request for Flash for Yellow Dog Linux in order to showcase the strength of our userbase with enthusiasm for the Sony Playstation 3. I encourage you to complete the form as follows in order that we speak with a single, simple voice making less complicated their support initiative. Remember, the port itself is never the obstacle, rather the on-going maintenance and support for any new platform: This is a: Feature Request Product name: Flash Product Version: 9 Browser: FireFox Web Server: Apache App Server: Other Database: MySQL OS: Linux OS version: YDL v5.0 Feature request: Please make available the full suite of Flash applications for Yellow Dog Linux v5.0 which now suppots the Sony PlayStation 3 --thank you! Thank you for your enthusiasm and support!
Re: [flexcoders] Flex/Flash on The iPhone ?
Pretty sure. Watch the 'image zoom' movie - putting two fingers on the screen and moving them apart zooms the image... Ian On 1/10/07, Merrill, Jason [EMAIL PROTECTED] wrote: The same way Safari does. (but are you sure there are multiple simutaneous mouse events in the iPhone?) Jason Merrill Bank of America Learning Organizational Effectiveness
RE: [flexcoders] Flex/Flash on The iPhone ?
Cool. Either way, I bet the mouse event for the Flash player would be the same one that comes from Safari - unless they are pushing a special version of Safari for the iPhone which has two mouse events. Even if there were two, I'm sure there's a primary and secondary, and they wouldn't change the API for the primary because they know it would break too many web apps. Jason Merrill Bank of America Learning Organizational Effectiveness From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Ian Thomas Sent: Wednesday, January 10, 2007 10:26 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex/Flash on The iPhone ? Pretty sure. Watch the 'image zoom' movie - putting two fingers on the screen and moving them apart zooms the image... Ian On 1/10/07, Merrill, Jason [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: The same way Safari does. (but are you sure there are multiple simutaneous mouse events in the iPhone?) Jason Merrill Bank of America Learning Organizational Effectiveness
[flexcoders] Re: IFlexModule
I'm having the same problem... In the 2.0.1 install instructions for the Mac, Adobe instructs that it's necessary to refresh the workspace by using the -clean option. I followed the links in the instructions and did a refresh in a terminal session by entering: /Applications/eclipse/eclipse -clean That did seem to run. Problem still exists. I can compile without errors back in my 2.0 beta copy which I kept (just in case). Something's wrong inside the black box. Hope someone can help here. --- In flexcoders@yahoogroups.com, Greg Morphis [EMAIL PROTECTED] wrote: I downloaded Eclipse 3.2 (the all in one wtp package), Flex 2.0.1. I did a clean install in new folders. Now when I open Eclipse and open a project I'm getting some IFlexModule error.. I did a google search and that didnt help much. Has anyone seen this error and know how to fix it? It's getting on my nerves!
[flexcoders] Network Monitor in Flex Builder
I have Flex Builder 2.0.1 (standalone) installed I am not able to find the Network Monitor view ... Not even through the Window menu ... where did it go??
[flexcoders] Re: trouble with addChild
This might help explain: http://www.onflex.org/ted/2006/12/developing-in-trees-part-2.php --- In flexcoders@yahoogroups.com, Pavel Zabelin [EMAIL PROTECTED] wrote: Hi all. I tried to do that: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx= http://www.adobe.com/2006/mxml; layout=absolute currentState=partview width=100% height=100% mx:Script ![CDATA[ private var cp:Panel private function onCopyClick(event:MouseEvent):void { cp=pnl; application.setCurrentState('fullview') fullc.addChild(cp); } private function onCopyClick2(event:MouseEvent):void { trace(playout+|+cp) playout.addChild(cp); if (fullc.getChildren().length0) { fullc.removeAllChildren(); } application.setCurrentState('partview') } ]] /mx:Script mx:states mx:State name=partview mx:AddChild position=lastChild mx:VBox id=playout x=32 y=88 height=351 width=287 mx:Panel id=pnl width=100% height=100% layout=absolute /mx:Panel /mx:VBox /mx:AddChild /mx:State mx:State name=fullview mx:AddChild position=lastChild mx:VBox id=fullc x=0 y=58 width=100% height=100% /mx:VBox /mx:AddChild /mx:State /mx:states mx:ApplicationControlBar x=0 y=0 width=100% height=50 mx:Button label=Button1 click=onCopyClick(event)/ mx:Button label=Button2 click=onCopyClick2(event)/ /mx:ApplicationControlBar /mx:Application but I got error with RangeError: Error #2006: The supplied index is out of bounds. What the reason?
RE: [flexcoders] Re: Flex, RemoteObject calls, ColdFusion, and SSL
Have you updated the remoting-service destination for coldfusion to allow for multiple channels to contact it? That is, if you configure two channel definitions for, say, my-cfamf, and my-secure-cfamf, then both of these channel ids have to be allowed by the destination (or you can update the service default channels for all destinations). From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Knudsen Sent: Wednesday, January 10, 2007 9:24 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flex, RemoteObject calls, ColdFusion, and SSL http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1099.html http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1099.html that's the only docs I found so far on this. Aside from that are tidbits in the flexcoders archive, so basically I'm left to hack out a solution instead of understanding one. We REALLY need a technote on how to get this going with full explanations. The Flex doc team did a outstanding job in my opinion, but this area is sorely lacking. Unless of course its hidden from my sight! Now, I got SSL working for AMF calls by using this channel definition ONLY in my services-config.xml file. channels channel-definition id=my-cfamf class=mx.messaging.channels.SecureAMFChannel endpoint uri=https://{server.name}:{server.port}{context.root}/flex2gateway/; class=flex.messaging.endpoints.SecureAMFEndpoint/ properties polling-enabledfalse/polling-enabled add-no-cache-headersfalse/add-no-cache-headers serialization instantiate-typesfalse/instantiate-types /serialization /properties /channel-definition /channels So, I can use this to force SSL use. Is it possible to modify the above to allow me to use either non SSL or SSL letting the web server force SSL use? Why? Cause I need to be able to compile and run the SWF on a dev box that has no SSL for testing first. Do I need to have two services-config.xml to compile against, one for dev one for prod? DK On 1/9/07, João Fernandes [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: To be honest Douglas, I never saw anywhere documentation about secured endpoint for a cf destination. Are you pointing your endpoint to /flex2gateway ? What are your secure and non secure endpoints(my-cfamf and my-secure-cfamf)? João Fernandes From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Douglas Knudsen Sent: 09 January 2007 22:22 To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex, RemoteObject calls, ColdFusion, and SSL this is what is showing in a cfusion-out.log file. Looks like its trying to connect, then dies. [Flex] 01/09/2007 17:20:08.657 [INFO] [Endpoint.General] Channel endpoint my-secure-cfamf received request. [Flex] 01/09/2007 17:20: 08.657 [DEBUG] [Endpoint.AMF] Deserializing AMF/HTTP request Version: 3 (Message #0 targetURI=null, responseURI=/1) (Array #0) [0] = (Typed Object #0 'flex.messaging.messages.CommandMessage') messageRefType = null operation = 5 correlationId = timeToLive = 0 body = (Object #1) clientId = null messageId = 5841B70D-681C-757D-8C51-08F26FA3CF5E headers = (Object #2) destination = timestamp = 0 [Flex] 01/09/2007 17:20:08.657 [DEBUG] [Message.Command.cluster_request] Executed command: (default service) commandMessage: Flex Message ( flex.messaging.messages.CommandMessage) operation = cluster_request messageRefType = null clientId = 25D7D0AD-C11D-EF62-3FC9-B6943B9FCD0E correlationId = destination = messageId = 5841B70D-681C-757D-8C51-08F26FA3CF5E timestamp = 1168381208657 timeToLive = 0 body = {} replyMessage: Flex Message (flex.messaging.messages.AcknowledgeMessage) clientId = 25D7D0AD-C11D-EF62-3FC9-B6943B9FCD0E correlationId = 5841B70D-681C-757D-8C51-08F26FA3CF5E destination = null messageId = 25D7D0AD-C128-3443-EB35-12AF60EA8684 timestamp = 1168381208657 timeToLive = 0 body = null [Flex] 01/09/2007 17:20:08.657 [DEBUG] [Endpoint.AMF] Serializing AMF/HTTP
Re: [flexcoders] Re: Calling javascript with navigateToURL
http://livedocs.macromedia.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=passingarguments_086_12.html On 1/10/07, jensen.axel [EMAIL PROTECTED] wrote: That worked great, thanks --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, jensen.axel [EMAIL PROTECTED] wrote: I'm trying to do a loop, and call a javascript function in flex for every loop. The loop only seems to call the javascript once the loop is done... and it only calls it for the last iteration of the loop. To reproduce the issue do the following: 1. Create a new project in flex 2. Put a button on the form, and make it's click=test1(); 3. Create a script block like so mx:Script ![CDATA[ private function test1():void{ for (var i:int = 0; i 5; i++){ var u:URLRequest = new URLRequest(javascript:alert( + \'test + i + \');); navigateToURL(u,_self); trace(i); } } ]] /mx:Script the button calls this very simple function, and theoretically you should get 5 alert boxes, but you don't you get 1 I'm curious if these methods can be used like this.
Re: [flexcoders] Re: Flex, RemoteObject calls, ColdFusion, and SSL
Where? how? DK On 1/10/07, Peter Farland [EMAIL PROTECTED] wrote: Have you updated the remoting-service destination for coldfusion to allow for multiple channels to contact it? That is, if you configure two channel definitions for, say, my-cfamf, and my-secure-cfamf, then both of these channel ids have to be allowed by the destination (or you can update the service default channels for all destinations). -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Douglas Knudsen *Sent:* Wednesday, January 10, 2007 9:24 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Flex, RemoteObject calls, ColdFusion, and SSL http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1099.html that's the only docs I found so far on this. Aside from that are tidbits in the flexcoders archive, so basically I'm left to hack out a solution instead of understanding one. We REALLY need a technote on how to get this going with full explanations. The Flex doc team did a outstanding job in my opinion, but this area is sorely lacking. Unless of course its hidden from my sight! Now, I got SSL working for AMF calls by using this channel definition ONLY in my services-config.xml file. channels channel-definition id=my-cfamf class= mx.messaging.channels.SecureAMFChannel endpoint uri=https://{server.name}:{server.port}{ context.root}/flex2gateway/ class= flex.messaging.endpoints.SecureAMFEndpoint/ properties polling-enabledfalse/polling-enabled add-no-cache-headersfalse/add-no-cache-headers serialization instantiate-typesfalse/instantiate-types /serialization /properties /channel-definition /channels So, I can use this to force SSL use. Is it possible to modify the above to allow me to use either non SSL or SSL letting the web server force SSL use? Why? Cause I need to be able to compile and run the SWF on a dev box that has no SSL for testing first. Do I need to have two services-config.xml to compile against, one for dev one for prod? DK On 1/9/07, João Fernandes [EMAIL PROTECTED] wrote: To be honest Douglas, I never saw anywhere documentation about secured endpoint for a cf destination. Are you pointing your endpoint to /flex2gateway ? What are your secure and non secure endpoints(my-cfamf and my-secure-cfamf)? João Fernandes *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Douglas Knudsen *Sent:* 09 January 2007 22:22 *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: Flex, RemoteObject calls, ColdFusion, and SSL this is what is showing in a cfusion-out.log file. Looks like its trying to connect, then dies. [Flex] 01/09/2007 17:20:08.657 [INFO] [Endpoint.General] Channel endpoint my-secure-cfamf received request. [Flex] 01/09/2007 17:20: 08.657 [DEBUG] [Endpoint.AMF] Deserializing AMF/HTTP request Version: 3 (Message #0 targetURI=null, responseURI=/1) (Array #0) [0] = (Typed Object #0 'flex.messaging.messages.CommandMessage') messageRefType = null operation = 5 correlationId = timeToLive = 0 body = (Object #1) clientId = null messageId = 5841B70D-681C-757D-8C51-08F26FA3CF5E headers = (Object #2) destination = timestamp = 0 [Flex] 01/09/2007 17:20:08.657 [DEBUG] [Message.Command.cluster_request] Executed command: (default service) commandMessage: Flex Message ( flex.messaging.messages.CommandMessage) operation = cluster_request messageRefType = null clientId = 25D7D0AD-C11D-EF62-3FC9-B6943B9FCD0E correlationId = destination = messageId = 5841B70D-681C-757D-8C51-08F26FA3CF5E timestamp = 1168381208657 timeToLive = 0 body = {} replyMessage: Flex Message (flex.messaging.messages.AcknowledgeMessage) clientId = 25D7D0AD-C11D-EF62-3FC9-B6943B9FCD0E correlationId = 5841B70D-681C-757D-8C51-08F26FA3CF5E destination = null messageId = 25D7D0AD-C128-3443-EB35-12AF60EA8684 timestamp = 1168381208657 timeToLive = 0 body = null [Flex] 01/09/2007 17:20:08.657 [DEBUG] [Endpoint.AMF] Serializing AMF/HTTP response Version: 3 (Message #0 targetURI=/1/onResult, responseURI=) (Typed Object #0 'flex.messaging.messages.AcknowledgeMessage') destination = null headers = (Object #1) correlationId = 5841B70D-681C-757D-8C51-08F26FA3CF5E messageId = 25D7D0AD-C128-3443-EB35-12AF60EA8684 timestamp = 1.168381208657E12 clientId = 25D7D0AD-C11D-EF62-3FC9-B6943B9FCD0E timeToLive = 0.0 body = null On 1/9/07, *Douglas Knudsen* [EMAIL PROTECTED] wrote: Can anyone point me to definitive documentation for setting this up? I have a cluster of CF
[flexcoders] Re: TextArea.maxVerticalScrollPosition - getting the box to continually scroll t
I am running into the same issue. Does anyone have a recommendation or a fix for the problem? Thanks, Mark --- In flexcoders@yahoogroups.com, John Grden [EMAIL PROTECTED] wrote: output.verticalScrollPosition = output.maxVerticalScrollPosition; while the box does scroll, it never is as the max position. Has anyone seen this? I searched the archive but nothing came up. Am I using the wrong property? maxVerticalScrollPosition traces out and shows it getting bigger with every text addition btw. Thanks for the help, -- John Grden - Blitz
Re: [flexcoders] Re: 64-bit Integers
On 1/9/07, michael_ramirez44 [EMAIL PROTECTED] wrote: The 64-bit integer limitation is an Actionscript 3 limit not Flex. The Number data type uses the 64-bit double-precision format as specified by the IEEE Standard for Binary Floating-Point Arithmetic (IEEE-754). This standard dictates how floating point numbers are stored using the 64 available bits. One bit is used to designate whether the number is positive or negative. Eleven bits are used for the exponent, which is stored as base 2. The remaining 52 bits are used to store the significand (also called the mantissa), which is the number that is raised to the power indicated by the exponent. Michael, Thank you for providing that section of the manual for me to read. Although I had not read it before, I was familiar with the allocation of bits in the Number data type. My concern is that, in effect, what the Number data type provides for integers is a assurance of precision only up to the 52 bits provided for the significand (with a 53rd holding the sign).. As the manual states: When you store integer values with the Number data type, only the 52 bits of the significand are used. The Number data type uses these 52 bits and a special hidden bit to represent integers from -9,007,199,254,740,992 (-253) to 9,007,199,254,740,992 (253). Unfortunately, that leaves me a few bits short. It may be that internally AS handles these values in a way which renders my concern unnecessary, but I though I would ask.
Re: [flexcoders] Re: IFlexModule
It screwed up my old install of FB2.0/Eclipse3.1... I decided to go back to using that temporarily, so I loaded up Eclipse3.1, the Navigator view was empty! I right clicked, chose Import and chose my workspace. My projects were present in the dialog and were all checked. I hit finish and was told the projects existed.. If they did, I couldn't see them in the Navigator view... This sucks Adobe.. sucks On 1/10/07, Tom Sobut [EMAIL PROTECTED] wrote: I'm having the same problem... In the 2.0.1 install instructions for the Mac, Adobe instructs that it's necessary to refresh the workspace by using the -clean option. I followed the links in the instructions and did a refresh in a terminal session by entering: /Applications/eclipse/eclipse -clean That did seem to run. Problem still exists. I can compile without errors back in my 2.0 beta copy which I kept (just in case). Something's wrong inside the black box. Hope someone can help here. --- In flexcoders@yahoogroups.com, Greg Morphis [EMAIL PROTECTED] wrote: I downloaded Eclipse 3.2 (the all in one wtp package), Flex 2.0.1. I did a clean install in new folders. Now when I open Eclipse and open a project I'm getting some IFlexModule error.. I did a google search and that didnt help much. Has anyone seen this error and know how to fix it? It's getting on my nerves! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
Re: [flexcoders] Flex/Flash on The iPhone ?
On Wednesday 10 January 2007 05:28, John Kirby wrote: After seeing the Steve Jobs MacWorld demo (http://events.apple.com.edgesuite.net/j47d52oo/event) of the new iPhone which runs a Mac OS X (light)... I can't help but think that flex apps can't be far behind? I can't wait to start! Running the Flash player is a lot more work than running just JavaScript (that is what is the Dashboard widgits are written in, no ?). AFAIK there are no specs for the hardware yet in terms of CPU or RAM, so you can't say for sure. I agree it would be a shame if it couldn't. -- Tom Chiverton Helping to revolutionarily bully enterprise design-patterns This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: SQL Insert operation fails silently
Greg, My apologies for not getting back to the board sooner but at least I come bearing solutions. The problem was both an Adobe bug and problems with my code and the dB. Like the perfect storm it all came together to deny me the simple pleasure of an INSERT operation. Flex updater 2.0.1 fixed the child form INSERT problem (Thank you very much to Farah Gron and her team for working with me and including the fix in the update). For a child form (usually a dataGrid) inside a parent, the ArrayCollection that holds the child data is not populated correctly when adding a new record. The fix was to force the array from the array collection with this line: this.detailObject.childBeans = getChildBeansArray(); The wizard now puts this line just above this.datamanager.save(item) in the function saveItem(item:Object) Okay, that fixed Adobe's bug but still didn't work for me completely. In order to get the primary key from the parent table and insert it as the foreign key in the child, the wizard uses a SELECT statement with a WHERE clause that uses every field from the parent table. That might work and might not. In my case, several of those fields were not part of the parent form and so contained nulls (why my dB allowed nulls is a matter I'll have to discuss with my DBA -- oh yeah, that's me-- shoot!). What do you get when the WHERE clause returns nulls? You got it, nothing. I deleted those fields from the WHERE clause and added a timestamp to ensure I got the right foreign key and all is well in Flex land. PS the dB no longer allows nulls -- duh Thanks for your input Greg. It got me looking and helped out a great deal. Cheers, Dan --- In flexcoders@yahoogroups.com, greg h [EMAIL PROTECTED] wrote: Dan, Your writing the following makes me wonder if there might not be a conditional block somewhere that results in the INSERT child statement not being executed. You wrote: The INSERT for the child table simply isn't even attempted. That would be sensible since executing INSERT child without the necessary foreign key would result in an error at run time :-) Could you check the code around whatever calls the insert for any IF/ELSE logic? Where the initial subject line was fails silently, maybe the error is that there is no logic to select back the newly inserted primary key for the PARENT, causing conditional logic to skip INSERT child since, again, executing INSERT child without the foreign key would result in a runtime error. So now I really, really am curious. So please do post back once you get it all working. g On 12/20/06, nall_daniel [EMAIL PROTECTED] wrote: Thanks Greg, Your advice is appreciated and helpful. I'm using MS SQL server, CF 7.02, and of course Flex 2. I have nothing in my CF logs, nothing in SQL logs (SQL errors show up in the browser anyway ie fault=server_fault(event)). I use the Flash Tracer extension for Firefox (very helpful BTW) and see nothing there either. The INSERT for the child table simply isn't even attempted. I've contacted Adobe and they have verified the problem and submitted it as a bug. In the meantime, I have done this with CF flash forms before so I'll try the same technique I used there. INSERT parent, Lock the dB, grab primary key, INSERT child, release lock. We'll see. If I can get it working I'll definately post a solution. Hopefully Adobe will beat me to the punch. Thanks again... Dan
RE: [flexcoders] Re: Flex, RemoteObject calls, ColdFusion, and SSL
Peter, but wont the Channel Definition set to the remoteObject and forced to a value during compilation (AMFChannel or SecuredAMFChannel)? What I think Douglas want is to avoid recompiling twice his app, once for dev and once for production. João Fernandes From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Knudsen Sent: 10 January 2007 16:23 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flex, RemoteObject calls, ColdFusion, and SSL Where? how? DK On 1/10/07, Peter Farland [EMAIL PROTECTED] wrote: Have you updated the remoting-service destination for coldfusion to allow for multiple channels to contact it? That is, if you configure two channel definitions for, say, my-cfamf, and my-secure-cfamf, then both of these channel ids have to be allowed by the destination (or you can update the service default channels for all destinations). _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Knudsen Sent: Wednesday, January 10, 2007 9:24 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flex, RemoteObject calls, ColdFusion, and SSL http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp .htm?context=LiveDocs_Parts http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhel p.htm?context=LiveDocs_Partsfile=1099.html file=1099.html that's the only docs I found so far on this. Aside from that are tidbits in the flexcoders archive, so basically I'm left to hack out a solution instead of understanding one. We REALLY need a technote on how to get this going with full explanations. The Flex doc team did a outstanding job in my opinion, but this area is sorely lacking. Unless of course its hidden from my sight! Now, I got SSL working for AMF calls by using this channel definition ONLY in my services-config.xml file. channels channel-definition id=my-cfamf class=mx.messaging.channels.SecureAMFChannel endpoint uri=https://{server.name}:{server.port}{context.root}/flex2gateway/; class=flex.messaging.endpoints.SecureAMFEndpoint/ properties polling-enabledfalse/polling-enabled add-no-cache-headersfalse/add-no-cache-headers serialization instantiate-typesfalse/instantiate-types /serialization /properties /channel-definition /channels So, I can use this to force SSL use. Is it possible to modify the above to allow me to use either non SSL or SSL letting the web server force SSL use? Why? Cause I need to be able to compile and run the SWF on a dev box that has no SSL for testing first. Do I need to have two services-config.xml to compile against, one for dev one for prod? DK On 1/9/07, João Fernandes [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: To be honest Douglas, I never saw anywhere documentation about secured endpoint for a cf destination. Are you pointing your endpoint to /flex2gateway ? What are your secure and non secure endpoints(my-cfamf and my-secure-cfamf)? João Fernandes From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Knudsen Sent: 09 January 2007 22:22 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex, RemoteObject calls, ColdFusion, and SSL this is what is showing in a cfusion-out.log file. Looks like its trying to connect, then dies. [Flex] 01/09/2007 17:20:08.657 [INFO] [Endpoint.General] Channel endpoint my-secure-cfamf received request. [Flex] 01/09/2007 17:20: 08.657 [DEBUG] [Endpoint.AMF] Deserializing AMF/HTTP request Version: 3 (Message #0 targetURI=null, responseURI=/1) (Array #0) [0] = (Typed Object #0 'flex.messaging.messages.CommandMessage') messageRefType = null operation = 5 correlationId = timeToLive = 0 body = (Object #1) clientId = null messageId = 5841B70D-681C-757D-8C51-08F26FA3CF5E headers = (Object #2) destination = timestamp = 0 [Flex] 01/09/2007 17:20:08.657 [DEBUG] [Message.Command.cluster_request] Executed command: (default service) commandMessage: Flex Message ( flex.messaging.messages.CommandMessage) operation = cluster_request messageRefType = null clientId = 25D7D0AD-C11D-EF62-3FC9-B6943B9FCD0E correlationId = destination = messageId = 5841B70D-681C-757D-8C51-08F26FA3CF5E timestamp = 1168381208657 timeToLive = 0 body = {} replyMessage: Flex Message (flex.messaging.messages.AcknowledgeMessage) clientId = 25D7D0AD-C11D-EF62-3FC9-B6943B9FCD0E correlationId = 5841B70D-681C-757D-8C51-08F26FA3CF5E destination = null messageId = 25D7D0AD-C128-3443-EB35-12AF60EA8684 timestamp = 1168381208657 timeToLive = 0 body = null [Flex] 01/09/2007 17:20:08.657 [DEBUG] [Endpoint.AMF] Serializing AMF/HTTP response Version: 3
[flexcoders] Re: Flex/Flash on The iPhone ?
I suspect that the pinch as Steve called it is an iPhone event and not a 'mouse' event - the phone does the zooming of the interface in and out based on the pinch - since there currently aren't any applications that look for a similar 2 fingered event (at least at the moment) then i doubt apple is letting those multi-finger events get passed down to the underlying application (tho come to think of it - i suspect that their photo app on the iPhone can get those commands - so maybe it is indeed possible - if the phone lets the event get passed thru to your application in the future). --- In flexcoders@yahoogroups.com, Ian Thomas [EMAIL PROTECTED] wrote: Pretty sure. Watch the 'image zoom' movie - putting two fingers on the screen and moving them apart zooms the image... Ian On 1/10/07, Merrill, Jason [EMAIL PROTECTED] wrote: The same way Safari does. (but are you sure there are multiple simutaneous mouse events in the iPhone?) Jason Merrill Bank of America Learning Organizational Effectiveness
[flexcoders] handling right-click on datagrid column header
Hey there, does anyone know if it's possible to handle a right-click event on just the column header in a datagrid? We're messing around with to make a datagrid work the same way the iTunes data grid works... Where you right click on one of the column headers and then pops up a modal type window that lets you select which columns to show and hide. We can't seem to figure out how to get a right-click mouse event on a datagrid column, let alone the column header. any help would be appreciated. thanks, marky
Re: [flexcoders] Re: Flex, RemoteObject calls, ColdFusion, and SSL
On Wednesday 10 January 2007 16:36, João Fernandes wrote: What I think Douglas want is to avoid recompiling twice his app, once for dev and once for production. You already do this, right, one with --debug and one without, no ? -- Tom Chiverton Helping to authoritatively establish viral technologies This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Flex, RemoteObject calls, ColdFusion, and SSL
On Wednesday 10 January 2007 15:21, Douglas Knudsen wrote: On my production servers, I need only SSL. but on my development/testing server, I need non SSL. So far it appears I need to use a different services-config.xml for each environment. That's what we do. -- Tom Chiverton Helping to completely evolve scalable content This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Security Sandbox Violation loading localhost based Flash SWF into Flex app during development
We have a Flex app that loads a Flash SWF and during development we get a lot of these errors: *** Security Sandbox Violation *** SecurityDomain 'http://localhost/abc.swf?ID=4799' tried to access incompatible context 'file:///C:/Projects/xyz/bin/xyz-debug.html' It doesn't happen when deployed (both are on the same server) but during development Flex Builder launches the app from the file:/// url. Is there any way to setup a crossdomain.xml file to allow http://localhost to talk to file:/// or something similar? Everything works fine, just getting thousands of these errors in the console is annoying. Thanks, Sam
Re: [flexcoders] Drag and Drop within TileList - why does my code copy instead of move?
I'm using 2.0, I'm not in a huge hurry to upgrade right before I finish this project :) Thank you for offering help, I got it working by changing the TileList attribute dragMoveEnabled=true (I didn't realize this could be turned on when using custom drag and drop handling). On 1/10/07, Paolo Bernardini [EMAIL PROTECTED] wrote: are you using flex 2.0 or 2.0.1? I have an application using drag and drop and need to move the items within the TileList, it was working just fine in version 2.0, now since I updated to 2.0.1 it doesn't move the items anymore but instead makes a copy. Basically I want to order the Items of the TileList by dragging them, but I also want to drag items from a different component. As I said it worked with flex 2.0. Here is the code: ?xml version=1.0 encoding=utf-8? mx:TileList xmlns:mx=http://www.adobe.com/2006/mxml; backgroundAlpha= 0 backgroundColor=#FF itemRenderer= renderer.ProjectThumbnail dragEnabled=true dragEnter=doDragEnter(event) dragExit=doDragExit(event) dragDrop=doDragDrop(event) dragOver=doDragOver(event) mouseDown=dropInitiator = DragManager.MOVE; dragMoveEnabled=true mx:Script ![CDATA[ *import* mx.collections.IList; *import* mx.collections.ArrayCollection ; *import* events.CompareImageChangeEvent; *import* mx.events.DragEvent; * import* mx.managers.DragManager; *import* mx.core.DragSource; * import* com.cnh.imageBank.model.ModelLocator; [ *Bindable*] *public* *var * model:ModelLocator = ModelLocator.getInstance (); *private* *var* dropInitiator:String = DragManager.NONE; *// Drag and drop events **public* *function * doDragEnter(event:DragEvent): *void* { *// Get the drop target component from the event object. **var* dropTarget:TileList = event.currentTarget *as* TileList; * var* dataInfo:ArrayCollection = dropTarget.dataProvider *as*ArrayCollection; *var * item:Object = event.dragSource.dataForFormat(*item*); *if* (dropInitiator == DragManager.MOVE){ DragManager.showFeedback(DragManager.MOVE); DragManager.acceptDragDrop(dropTarget); } *else* { * if*(item != *null*){ *for*(* var* i:int = 0; i dataInfo.length; i++){ *if*(dataInfo[i].id == item.id) * return*; } DragManager.showFeedback(DragManager.COPY); DragManager.acceptDragDrop(dropTarget); } } }* ** public* *function* doDragExit(event: DragEvent): *void* { *var* dropTarget:TileList = event.currentTarget *as* TileList; dropTarget.hideDropFeedback(event); dropInitiator = DragManager.NONE; *this*.dropEnabled = *false*; } *public* *function* doDragOver(event: DragEvent): * void* { *var* dropTarget:TileList = event.currentTarget *as* TileList; dropTarget.showDropFeedback(event); } * **public* * function* doDragDrop(event: DragEvent): *void* { *var* dropTarget:TileList = event.currentTarget *as* TileList; *var* item:Object = event.dragSource.dataForFormat( *item*); *if* (item == *null* ) { *// Item was dragged from the thumbnail view **var* items:Object = event.dragSource.dataForFormat( *items*); item = items[0]; } *var* dropLoc:int = dropTarget.calculateDropIndex (event); IList(dropTarget.dataProvider).addItemAt(item, dropLoc );** doDragExit(event); } ]] /mx:Script /mx:TileList
[flexcoders] Re: TextArea.maxVerticalScrollPosition - getting the box to continually scroll t
The solution to the problem is quite simple: make sure to call validateNow() before adjusting verticalScrollPosition: output.validateNow(); output.verticalScrollPosition = output.maxVerticalScrollPosition; Cheers, Mark --- In flexcoders@yahoogroups.com, Mark Piller [EMAIL PROTECTED] wrote: I am running into the same issue. Does anyone have a recommendation or a fix for the problem? Thanks, Mark --- In flexcoders@yahoogroups.com, John Grden neoriley@ wrote: output.verticalScrollPosition = output.maxVerticalScrollPosition; while the box does scroll, it never is as the max position. Has anyone seen this? I searched the archive but nothing came up. Am I using the wrong property? maxVerticalScrollPosition traces out and shows it getting bigger with every text addition btw. Thanks for the help, -- John Grden - Blitz
Re: [flexcoders] Flex/Flash on The iPhone ?
All that is, as far as Safari goes, is the ability to zoom in and out. Do you have dual mouse events when someone uses User Accessibility to zoom in on XP or OS X? :) Through Safari, the flash movie wouldn't see anything special. Now, if they opened up widgets to use FP9, then I'm sure there's going to be some new mouse events. Shan Ian Thomas wrote: Pretty sure. Watch the 'image zoom' movie - putting two fingers on the screen and moving them apart zooms the image... Ian On 1/10/07, *Merrill, Jason * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: The same way Safari does. (but are you sure there are multiple simutaneous mouse events in the iPhone?) Jason Merrill Bank of America Learning Organizational Effectiveness
[flexcoders] Re: RTE when using itemRenderers in DataGrid.
Michael, I see the error. I created a project using your code, and when I compiled it, I got the same error. It's being thrown in ListBase.scrollVertically() at line 5346: numCols = listItems[i].length; According to the comments, protected var listItems is: * An Array of Arrays that contains * the itemRenderer instances that render each data provider item. * This is a two-dimensional row major array * (array of rows that are arrays of columns). Since the error indicates that A term is undefined and has no properties it seems that the function continues to loop after all of the itemRenderer instances have been evaluated, resulting in a null pointer exception. The loop is defined as follows: for (i = lockedRowCount; i rowCount; i++) So the loop continues for the length of rowCount, which is defined as follows: var rowCount:int = rowInfo.length; From all of this, it appears that rowInfo.length listItems.length, which evidently should not happen. Have you filed this as a bug report with Adobe? -Jim
RE: [flexcoders] Re: 64-bit Integers
You're correct that ActionScript 3 has no 64-bit integer data type. JavaScript / ECMAScript has the same limitation. I'm afraid that if you need to store very large integers, you'll need to use a datatype like String or ByteArray. If you need to do arithmetic with these, you'll need to write your own AS3 routines or do the arithmetic on the server. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Adam Dorritie Sent: Wednesday, January 10, 2007 8:18 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: 64-bit Integers On 1/9/07, michael_ramirez44 [EMAIL PROTECTED] mailto:michael_ramirez44%40yahoo.com wrote: The 64-bit integer limitation is an Actionscript 3 limit not Flex. The Number data type uses the 64-bit double-precision format as specified by the IEEE Standard for Binary Floating-Point Arithmetic (IEEE-754). This standard dictates how floating point numbers are stored using the 64 available bits. One bit is used to designate whether the number is positive or negative. Eleven bits are used for the exponent, which is stored as base 2. The remaining 52 bits are used to store the significand (also called the mantissa), which is the number that is raised to the power indicated by the exponent. Michael, Thank you for providing that section of the manual for me to read. Although I had not read it before, I was familiar with the allocation of bits in the Number data type. My concern is that, in effect, what the Number data type provides for integers is a assurance of precision only up to the 52 bits provided for the significand (with a 53rd holding the sign).. As the manual states: When you store integer values with the Number data type, only the 52 bits of the significand are used. The Number data type uses these 52 bits and a special hidden bit to represent integers from -9,007,199,254,740,992 (-253) to 9,007,199,254,740,992 (253). Unfortunately, that leaves me a few bits short. It may be that internally AS handles these values in a way which renders my concern unnecessary, but I though I would ask.
RE: [flexcoders] Re: Flex, RemoteObject calls, ColdFusion, and SSL
Tom, We're not talking about debug or not version of the app but using AMFChannel and SecureAMFChannel depending if they are on a dev or production box. I don't know if just setting different channel definitions on each box is enough to avoid recompiling the app, because I don't know if the channel definion is hardcoded during compile or not. João Fernandes -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tom Chiverton Sent: 10 January 2007 16:58 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flex, RemoteObject calls, ColdFusion, and SSL On Wednesday 10 January 2007 16:36, João Fernandes wrote: What I think Douglas want is to avoid recompiling twice his app, once for dev and once for production. You already do this, right, one with --debug and one without, no ? -- Tom Chiverton Helping to authoritatively establish viral technologies This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
Re: [flexcoders] Re: Event calling in Cairngorm 2.1 - Newbie question.
I am actually looking at the event called in the Main.mxml file --- private function onCreationComplete() : void { CairngormEventDispatcher.getInstance().dispatchEvent( new CairngormEvent( GetProductsEvent.EVENT_GET_PRODUCTS ) ); } --- I will look at my code again today and see if I can find the error. I am getting no error message, the event just doesn't fire. I have also noticed in the store code, that they store the static event variable --- public static var EVENT_GET_PRODUCTS : String = getProducts; --- in the Event class, while most other Cairngorm examples store this in the Controller. Is this just personal preference or is there a more significant reason for this? - Kevin On Jan 10, 2007, at 8:30 AM, cardinalflexjeremy wrote: There actually is a problem in the Cairngorm store code. I found it when trying to dispatch an event using it. There are two sections that dispatch events, one works and one does not. The section with the graphical tile list dispatches a cairngorm event, but not using the CairngormEventDispatcher to update the details. The textual list uses a different method, since I had a grid object updating the details panel, I used that code, and it does not fire. The rule of thumb is, if you want to dispatch and event that is not registered on your controller, you do not use the CairgormEventDispatcher, but the standard EventDispatcher, regardless of whether or not your event is a cairngorm event. If you are using the code that resides in the textual product list to dispatch an event to update the details it will not work, the code is wrong. Unless they changed it recently. If you download it, compile it, and run it, switch to the textual view, it will not update the details panel. However the visual graphical tile list will work. Because they use different event dispatching. Hope this helps. This was a problem for me too. This may not be what your doing, but at least make sure you did not copy the code from the textual product list to dispatch the event or it wont work properly. Jeremy Sanders Cardinal Solutions Group Flex Application Developer [EMAIL PROTECTED] --- In flexcoders@yahoogroups.com, Stembert Olivier \(BIL\) [EMAIL PROTECTED] wrote: What's the description of the error? Are you sure the controller has been instantiated? Olivier From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Sent: Wednesday, January 10, 2007 12:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Event calling in Cairngorm 2.1 - Newbie question. I am trying to follow the 2.1 store as a model to understand the cairngorm structure and I am getting a constant error in trying to dispatch an event. I copied the example code almost exactly, but i get seen to get the even to fire. I don't know if the problem is in my FrontController or my event. Any help you can offer is much appreciated. Thank, Kevin --- I have this in my main.mxml file private function loadGroupList() : void { CairngormEventDispatcher.getInstance().dispatchEvent( new CairngormEvent( GetGroupListEvent.EVENT_GET_GROUP_LIST ) ); } and then in my event file: import flash.events.Event; import com.adobe.cairngorm.control.CairngormEvent; public class GetGroupListEvent extends CairngormEvent { public static var EVENT_GET_GROUP_LIST : String = getGroupList; //public var position : int; /** * Constructor. */ public function GetGroupListEvent() { super( EVENT_GET_GROUP_LIST ); } /** * Override the inherited clone() method, but don't return any state. */ override public function clone() : Event { return new GetGroupListEvent(); } } and my controller: import com.adobe.cairngorm.control.FrontController; //import the command folder import com.onefoot.dbocl.command.* //import each event import com.onefoot.dbocl.event.GetGroupListEvent; /** * @version $Revision: $ */ public class DboclController extends FrontController { public function DboclController() { initialiseCommands(); } public function initialiseCommands() : void { addCommand( GetGroupListEvent.EVENT_GET_GROUP_LIST, GetGroupListCommand ); } } - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. - - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. -
[flexcoders] Bug.Flex 2: Background becomes black when defining depthColors style for Tree Component
Bug.Flex 2: Background becomes black when defining depthColors style for Tree Component. It used to work fine before (in Flex 2.0). Now with Flex 2.0.1, it renders as shown below when we define depthColors attribute for Tree Component depthColors=[0xFF, 0xF2F6F7, 0xEDF5F7, 0xE8F0F2, 0xD3E2E6] Any workaround? Regards, Arulattachment: depthColorsBlackPatch-727119.jpg
Re: [flexcoders] Flex/Flash on The iPhone ?
I think they have no choice but to introduce something new here. there is currently no way to track the position of 2 or more pointers in relation to each other (at least not that I am aware of). Michael On Jan 10, 2007, at 10:35 AM, Merrill, Jason wrote: Cool. Either way, I bet the mouse event for the Flash player would be the same one that comes from Safari - unless they are pushing a special version of Safari for the iPhone which has two mouse events. Even if there were two, I'm sure there's a primary and secondary, and they wouldn't change the API for the primary because they know it would break too many web apps. Jason Merrill Bank of America Learning Organizational Effectiveness
RE: [flexcoders] Client logging
No, you're wrong. Check http://osflash.org/xray http://osflash.org/xray and there are also many runtime trace panels out there that dump messages to the panel via LocalConnection (for ActionScript 1, 2 3) -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stembert Olivier (BIL) Sent: woensdag 10 januari 2007 9:39 To: flexcoders@yahoogroups.com Subject: [flexcoders] Client logging Hi all, Am I right if I say there's no way to log on the client (trace() output method) without the debugger version of the Flash Player? Thanks - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. -
Re: [flexcoders] Re: Flex, RemoteObject calls, ColdFusion, and SSL
João, almost, yes. I have ANT scripts to compile and push Flex code to development, staging, and production servers, so I do re-compile evrything already. The latter of these two servers need the SSL setup. What I'm trying to avoid is having to have separate services-config.xml files and having to code around this in ANT too ;). Form what Tom said above, looks like I have to. Not a huge deal. Still need to see some docs or technote on this. I'd blog about it, but without really understanding what is going on, I can't. DK On 1/10/07, João Fernandes [EMAIL PROTECTED] wrote: Peter, but won't the Channel Definition set to the remoteObject and forced to a value during compilation (AMFChannel or SecuredAMFChannel)? What I think Douglas want is to avoid recompiling twice his app, once for dev and once for production. João Fernandes *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Douglas Knudsen *Sent:* 10 January 2007 16:23 *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Flex, RemoteObject calls, ColdFusion, and SSL Where? how? DK On 1/10/07, *Peter Farland* [EMAIL PROTECTED] wrote: Have you updated the remoting-service destination for coldfusion to allow for multiple channels to contact it? That is, if you configure two channel definitions for, say, my-cfamf, and my-secure-cfamf, then both of these channel ids have to be allowed by the destination (or you can update the service default channels for all destinations). -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Douglas Knudsen *Sent:* Wednesday, January 10, 2007 9:24 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Re: Flex, RemoteObject calls, ColdFusion, and SSL http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1099.html that's the only docs I found so far on this. Aside from that are tidbits in the flexcoders archive, so basically I'm left to hack out a solution instead of understanding one. We REALLY need a technote on how to get this going with full explanations. The Flex doc team did a outstanding job in my opinion, but this area is sorely lacking. Unless of course its hidden from my sight! Now, I got SSL working for AMF calls by using this channel definition ONLY in my services-config.xml file. channels channel-definition id=my-cfamf class= mx.messaging.channels.SecureAMFChannel endpoint uri=https://{server.name}:{server.port}{ context.root}/flex2gateway/ class= flex.messaging.endpoints.SecureAMFEndpoint/ properties polling-enabledfalse/polling-enabled add-no-cache-headersfalse/add-no-cache-headers serialization instantiate-typesfalse/instantiate-types /serialization /properties /channel-definition /channels So, I can use this to force SSL use. Is it possible to modify the above to allow me to use either non SSL or SSL letting the web server force SSL use? Why? Cause I need to be able to compile and run the SWF on a dev box that has no SSL for testing first. Do I need to have two services-config.xml to compile against, one for dev one for prod? DK On 1/9/07, *João Fernandes* [EMAIL PROTECTED] wrote: To be honest Douglas, I never saw anywhere documentation about secured endpoint for a cf destination. Are you pointing your endpoint to /flex2gateway ? What are your secure and non secure endpoints(my-cfamf and my-secure-cfamf)? João Fernandes *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Douglas Knudsen *Sent:* 09 January 2007 22:22 *To:* flexcoders@yahoogroups.com *Subject: *[flexcoders] Re: Flex, RemoteObject calls, ColdFusion, and SSL this is what is showing in a cfusion-out.log file. Looks like its trying to connect, then dies. [Flex] 01/09/2007 17:20:08.657 [INFO] [Endpoint.General] Channel endpoint my-secure-cfamf received request. [Flex] 01/09/2007 17:20: 08.657 [DEBUG] [Endpoint.AMF] Deserializing AMF/HTTP request Version: 3 (Message #0 targetURI=null, responseURI=/1) (Array #0) [0] = (Typed Object #0 'flex.messaging.messages.CommandMessage') messageRefType = null operation = 5 correlationId = timeToLive = 0 body = (Object #1) clientId = null messageId = 5841B70D-681C-757D-8C51-08F26FA3CF5E headers = (Object #2) destination = timestamp = 0 [Flex] 01/09/2007 17:20:08.657 [DEBUG] [Message.Command.cluster_request] Executed command: (default service) commandMessage: Flex Message ( flex.messaging.messages.CommandMessage) operation = cluster_request messageRefType = null clientId = 25D7D0AD-C11D-EF62-3FC9-B6943B9FCD0E correlationId = destination = messageId = 5841B70D-681C-757D-8C51-08F26FA3CF5E timestamp =
[flexcoders] Re: RTE when using itemRenderers in DataGrid.
--- In flexcoders@yahoogroups.com, Jim Robson [EMAIL PROTECTED] wrote: Michael, I see the error. I created a project using your code, and when I compiled it, I got the same error. It's being thrown in ListBase.scrollVertically() at line 5346: numCols = listItems[i].length; According to the comments, protected var listItems is: * An Array of Arrays that contains * the itemRenderer instances that render each data provider item. * This is a two-dimensional row major array * (array of rows that are arrays of columns). Since the error indicates that A term is undefined and has no properties it seems that the function continues to loop after all of the itemRenderer instances have been evaluated, resulting in a null pointer exception. The loop is defined as follows: for (i = lockedRowCount; i rowCount; i++) So the loop continues for the length of rowCount, which is defined as follows: var rowCount:int = rowInfo.length; From all of this, it appears that rowInfo.length listItems.length, which evidently should not happen. Have you filed this as a bug report with Adobe? -Jim Jim, I have not filed a bug report with Adobe because I don't know how to go about doing that?
Re: [flexcoders] Re: trouble with addChild
Solved! Need just using playout.addChild(fullc.removeChild(.));
[flexcoders] How I can get access Application's script
HI. How I can get access Application's script from instance of some class. Application's script I mean that: mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute backgroundGradientColors=[#272936, #272936] xmlns:components=components.* xmlns:panels=panels.* currentState=main creationComplete=createLayout(); width=100% height=100% mx:Script ![CDATA[ import components.AdvancedPanel; import panels.CallListPanel; public function test2():void { } ]] /mx:Script for example function test2 ?
[flexcoders] Re: Checkbox in dataGrid problem
Check the data type of the myFIELD property; you may find it isn't the boolean you're expecting. My guess would be String, in which case you could try: mx:CheckBox id='cb' selected={ data.myFIELD.toLowerCase() == 'true' }/ --- In flexcoders@yahoogroups.com, pdflibpilot [EMAIL PROTECTED] wrote: I am using an inline render as follows: mx:itemRenderer mx:Component mx:VBox horizontalAlign=center mx:CheckBox id='cb' selected={data.myFIELD}/ /mx:VBox /mx:Component /mx:itemRenderer No matter what value is in myFIELD null or true this checkbox always renders as checked ?? What am I missing here ?
[flexcoders] Embedded Fonts Filters Issue
I'm wondering if anyone else has come across this one. I am embedding a font in Flex using FlashType for use on a button component. onRollOver of this button I am using a Glow effect. When the glow filter is applied the font changes to having no anti-aliasing. onRollOut, when the filter is removed the font goes back to normal. Anyone seen this before and have a solution?
Re: [flexcoders] Flex/Flash on The iPhone ?
If y'all haven't seen this you should. The iPhone is not the first interface to show this kind of multiple gesture behavior... http://www.youtube.com/watch?v=PLhMVNdplJc -Andy On 1/10/07, Michael Tuminello [EMAIL PROTECTED] wrote: I think they have no choice but to introduce something new here. there is currently no way to track the position of 2 or more pointers in relation to each other (at least not that I am aware of). Michael On Jan 10, 2007, at 10:35 AM, Merrill, Jason wrote: Cool. Either way, I bet the mouse event for the Flash player would be the same one that comes from Safari - unless they are pushing a special version of Safari for the iPhone which has two mouse events. Even if there were two, I'm sure there's a primary and secondary, and they wouldn't change the API for the primary because they know it would break too many web apps. Jason Merrill Bank of America Learning Organizational Effectiveness
[flexcoders] Re: Network Monitor in Flex Builder
Hmm .. no replies ... I tried my best to find it. I think I am looking at some old documentation . guys at Adobe .. what is this page all about http://www.adobe.com/devnet/flex/articles/flexbuilder_ws_06.html If it is updated, could someone please help me out with this, if it is not ... what other methods could I employ to look at the soap message going out and coming in. Someone please help !!! Thank you Mrinal --- In flexcoders@yahoogroups.com, mrinal.wadhwa [EMAIL PROTECTED] wrote: I have Flex Builder 2.0.1 (standalone) installed I am not able to find the Network Monitor view ... Not even through the Window menu ... where did it go??
Re: [flexcoders] Flex/Flash on The iPhone ?
Maybe I'm wrong, but I saw a bunch of tiling going on when Jobs was zooming in and out. I also noticed the compression changes when the zoom-in finished from low quality to high. All that makes me wonder if there isn't some faking-it going on for the zoom feature. Almost like a mapping program for a web-page, where the iPhone Safari browser renders the web-page into a buffer off screen and then clones it to a bitmap and uses that to display and scale up/down on the phone. IF that is the case that will cause huge problems with motion graphics on a web-page displayed in the iPhone (ie, they will not animate). I tried to look for animations on his demo's of NYT and Amazon but I wasn't able to spot any, Maybe someone else did? Thoughts / other observations? -Andy On 1/10/07, Shannon Hicks [EMAIL PROTECTED] wrote: All that is, as far as Safari goes, is the ability to zoom in and out. Do you have dual mouse events when someone uses User Accessibility to zoom in on XP or OS X? :) Through Safari, the flash movie wouldn't see anything special. Now, if they opened up widgets to use FP9, then I'm sure there's going to be some new mouse events. Shan Ian Thomas wrote: Pretty sure. Watch the 'image zoom' movie - putting two fingers on the screen and moving them apart zooms the image... Ian On 1/10/07, Merrill, Jason [EMAIL PROTECTED] wrote: The same way Safari does. (but are you sure there are multiple simutaneous mouse events in the iPhone?) Jason Merrill Bank of America Learning Organizational Effectiveness
[flexcoders] Re:Performance Enhancement of Flex Application
Hey Hara, There are lot of factors for your flex app performance: 1) Server response, 2) Backend response, 3) What kind of communication are you using in the middle tier? FDS or open AMF or some other 4) Container nesting architecture 5) What is the app loading initially? By this I mean whether you are loading an image, etc.. You need to revisit your application architecture pin point the issues. From the front end, yes, container nesting plays a very important role also the type of controls you are using. Hope this helps. Regards
Re: [flexcoders] Performance Enhancement of Flex Application
Ya... precompiling would definitely help. While your waiting for that minute. 90% of that time is probably compilation. Precompiling is in the docs... http://livedocs.flexsearch.org/index.shtml?cx=017079146949617508304%3Amv4wpsyofxucof=FORID%3A9q=precompiling#816 Which version of Flex is this? On 1/10/07, haravallabhan [EMAIL PROTECTED] wrote: Hi guys, How to improve the startup performance of the flex application. That is before the application initializes a blank screen appears for over a minute after that a progress bar shows up.I want to minimize the time the blank page appears. I am using Tomcat server for running the application. Does the usage of containers play a role on such behaviour or is that a server problem. Will I be helped if the application is precompiled??.. If so how do I precompile the application :). Or is there any other way to improve the performance. I did try out ceratin links but they recommend using timer to check the initialization performance. But I need to improve the performance before initialization. I need to recommend flex for RIA development.But this thing is like a black mark for Flex. Can anybody help me. Thanks in advance Cheers Hara
Re: [flexcoders] Re: IFlexModule
Severity and DescriptionPathResourceLocation Creation Time Id 1023: Incompatible override.aopschedulerline 11 1168453153048 2221 1120: Access of undefined property IFlexModule. aopschedulerline 22 1168453153048 1144: Interface method create in namespace mx.core:IFlexModuleFactory is implemented with an incompatible signature in class _index_mx_managers_SystemManager. aopschedulerline 7 1168453153063 2224 1172: Definition mx.binding:RepeaterComponentWatcher could not be found. aopschedulerline 16 1168453155423 2226 1172: Definition mx.core:IFlexModule could not be found. aopschedulerline 6 1168453153063 2225 1180: Call to a possibly undefined method IFlexModule.aopschedulerline 24 1168453153063 2223 On 1/10/07, Greg Morphis [EMAIL PROTECTED] wrote: Okay I'm fed up I removed Flex Builder 2 entirely, the newly installed 2.0.1 and the older installed 2, and I removed FDS2 also... I just reinstalled Eclipse (unzipped the WTP zip file to the C: drive) and just ran the FB2.0.1 installer. I chose default options for both questions. Before going any further I wanted to test it.. so I started Eclipse and guess what? There's the error!! On 1/10/07, Greg Morphis [EMAIL PROTECTED] wrote: It screwed up my old install of FB2.0/Eclipse3.1... I decided to go back to using that temporarily, so I loaded up Eclipse3.1, the Navigator view was empty! I right clicked, chose Import and chose my workspace. My projects were present in the dialog and were all checked. I hit finish and was told the projects existed.. If they did, I couldn't see them in the Navigator view... This sucks Adobe.. sucks On 1/10/07, Tom Sobut [EMAIL PROTECTED] wrote: I'm having the same problem... In the 2.0.1 install instructions for the Mac, Adobe instructs that it's necessary to refresh the workspace by using the -clean option. I followed the links in the instructions and did a refresh in a terminal session by entering: /Applications/eclipse/eclipse -clean That did seem to run. Problem still exists. I can compile without errors back in my 2.0 beta copy which I kept (just in case). Something's wrong inside the black box. Hope someone can help here. --- In flexcoders@yahoogroups.com, Greg Morphis [EMAIL PROTECTED] wrote: I downloaded Eclipse 3.2 (the all in one wtp package), Flex 2.0.1. I did a clean install in new folders. Now when I open Eclipse and open a project I'm getting some IFlexModule error.. I did a google search and that didnt help much. Has anyone seen this error and know how to fix it? It's getting on my nerves! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
[flexcoders] Re: RTE when using itemRenderers in DataGrid.
Here you go: http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
[flexcoders] generate getter/setter methods
is there an extension to flex builder for generating getter/setters? -- Dominick Accattato, CTO New View Networks www.newviewnetworks.com
[flexcoders] XSL in Flex?
Hello, I'm wondering if anyone has any insights as to the possibility of using XSL transforms in Flex? Thanks in Advance Steve Steve Kellogg Peak8 Solutions 1401 14th Street Boulder, Colorado 80302, USA Fax: 303.415.2597 E-Mail: [EMAIL PROTECTED]
Re: [flexcoders] Flex/Flash on The iPhone ?
John Kirby wrote: After seeing the Steve Jobs MacWorld demo (http://events.apple.com.edgesuite.net/j47d52oo/event) of the new iPhone which runs a Mac OS X (light)... I can't help but think that flex apps can't be far behind? I can't wait to start! Anyone at Adobe care to comment on a flash/flex mobile version for the iPhone. No responses from other staff members, because Apple usually locks down news pretty tightly at a launch. I didn't know about this device until the keynote, myself. I *do* know that Adobe staffers are currently working on getting some good guidance out there, but the key steps of initial disclosure are really up to Apple. I put up an early i dont know up on the weblog yesterday, and added some useful third-party analysis overnight: http://weblogs.macromedia.com/jd/archives/2007/01/iphone_launch.cfm Summary: No info yet, but ASAP. jd -- John Dowdell . Adobe Developer Support . San Francisco CA USA Weblog: http://weblogs.macromedia.com/jd Aggregator: http://weblogs.macromedia.com/mxna Technotes: http://www.macromedia.com/support/ Spam killed my private email -- public record is best, thanks.
[flexcoders] Flex 2.0.1 installation - no problems
3 minutes for the download, 24 hours to work up the guts, 2 minutes for the install. So far, no problems ... maybe I'm just lucky. Jeff Hindman Simon Software Solutions
[flexcoders] Custom SystemManager / Preloader
I am finding that I would really like to extend or override the SystemManager and the Preloader. I specifically want to do this because I need to customize some hard coded values in the SystemManager and also incorporate loading some resources like xml files during the preload and have the sizes be incorporated into the preloader like RSL are done. Has anyone done this and have some pointers? Also I would be really interested in finding out how I could pass more parameters into com.adobe.flexbuilder.project.flexbuilder and also mxmlc/compc so I don't have to hard code additional information into the SystemManager. If it isn't possible to customize parameters with flexbuilder java class and mxmlc/compc then my next approach would be to use Ant and a simple script that injects the parameters into my SystemManager class before the flexbuilder build command runs but I would rather not introduce more scripts if there is any way at all that I can avoid it. Thanks! Lance
RE: [flexcoders] Re: Flex, RemoteObject calls, ColdFusion, and SSL
Yep, sorry, that's the second part of the problem isn't it. Note that you can use set the endpoint property on the mx:RemoteObject API programmatically... so if you could detect you were in your production environment (lots of ways this could be achieved, flashvars, or it could be as simple as looking at the Application.application.url property to see if it was HTTPS, etc) you could change the endpoint property on the mx:RemoteObject instance. Note that this is only possible on the MXML API for RemoteObject, however. Pete From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of João Fernandes Sent: Wednesday, January 10, 2007 11:37 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Flex, RemoteObject calls, ColdFusion, and SSL Peter, but won't the Channel Definition set to the remoteObject and forced to a value during compilation (AMFChannel or SecuredAMFChannel)? What I think Douglas want is to avoid recompiling twice his app, once for dev and once for production. João Fernandes From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Knudsen Sent: 10 January 2007 16:23 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flex, RemoteObject calls, ColdFusion, and SSL Where? how? DK On 1/10/07, Peter Farland [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Have you updated the remoting-service destination for coldfusion to allow for multiple channels to contact it? That is, if you configure two channel definitions for, say, my-cfamf, and my-secure-cfamf, then both of these channel ids have to be allowed by the destination (or you can update the service default channels for all destinations). From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Douglas Knudsen Sent: Wednesday, January 10, 2007 9:24 AM To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Flex, RemoteObject calls, ColdFusion, and SSL http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1099.html http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1099.html that's the only docs I found so far on this. Aside from that are tidbits in the flexcoders archive, so basically I'm left to hack out a solution instead of understanding one. We REALLY need a technote on how to get this going with full explanations. The Flex doc team did a outstanding job in my opinion, but this area is sorely lacking. Unless of course its hidden from my sight! Now, I got SSL working for AMF calls by using this channel definition ONLY in my services-config.xml file. channels channel-definition id=my-cfamf class=mx.messaging.channels.SecureAMFChannel endpoint uri=https://{server.name}:{server.port}{context.root}/flex2gateway/; class=flex.messaging.endpoints.SecureAMFEndpoint/ properties polling-enabledfalse/polling-enabled add-no-cache-headersfalse/add-no-cache-headers serialization instantiate-typesfalse/instantiate-types /serialization /properties /channel-definition /channels So, I can use this to force SSL use. Is it possible to modify the above to allow me to use either non SSL or SSL letting the web server force SSL use? Why? Cause I need to be able to compile and run the SWF on a dev box that has no SSL for testing first. Do I need to have two services-config.xml to compile against, one for dev one for prod? DK On 1/9/07, João Fernandes [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: To be honest Douglas, I never saw anywhere documentation about secured endpoint for a cf destination. Are you pointing your endpoint to /flex2gateway ? What are your secure and non secure endpoints(my-cfamf and my-secure-cfamf)? João Fernandes From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ] On Behalf Of Douglas Knudsen Sent: 09 January 2007 22:22 To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex, RemoteObject calls, ColdFusion, and SSL this is what is showing in a cfusion-out.log file. Looks like its trying to connect, then dies. [Flex] 01/09/2007 17:20:08.657 [INFO] [Endpoint.General] Channel endpoint my-secure-cfamf received request. [Flex] 01/09/2007 17:20: 08.657 [DEBUG] [Endpoint.AMF] Deserializing AMF/HTTP request Version: 3 (Message #0 targetURI=null, responseURI=/1) (Array #0) [0] = (Typed Object #0 'flex.messaging.messages.CommandMessage') messageRefType = null operation = 5 correlationId =
[flexcoders] Scrollbar doesn't show up when it should - Possible rendering bug?
Hello Flexperts... I'm encountering a problem with some TileLists that should be have scroll bars but do not, or when they do, they don't allow scrolling the full length of the window. The structure of my MXML is (for illustration only! not actual code): VerticalDividedBox Panel TileList TileList / /TileList Panel Panel TileList TileList / /TileList Panel /VerticalDividedBox The verticalScrollPolicy for all items is set to Auto. This seemed to be working normally with test data, but when I increased the amount of data (tiles in the outermost TileList) I noticed that even though the contents of the TileList were longer than the height of the list, there was no scroll bar. If I shrink down the screen or move the vertical divider up or down to shrink the list's scroll rectangle, the scrollbar DOES eventually show up, however it won't let me scroll the full length of the list. For instance, I have 6 rows in the TileList, but only 4 show in the space available. This would be fine, if there was a scroll bar, but there is not. If I shrink the list so that only two items show, I do have a scroll bar, but it only lets me scroll to the third item, and not to the 6th. And I'm not sure if this is related, but when I stretch the window size back to the full size, the last tile that was cut off when the list was small shows up twice. Even setting the verticalScrollPolicy to ON for all components did not actually give a scroll option when it should have. It just showed the scrollbar placeholder. Some things I've tried: - fiddling with the lockedRowCount, not using it at all, set to 1, set to 10 (no change) - setting the verticalScrollPolicy to auto on all (that's how it is now) - setting the verticalScrollPolicy to ON on all (no change except the scroll placeholder showed, still not scrollable when it needs to be) - setting the verticalScrollPolicy to OFF on all except the outermost Panel (no change except that the scroll bars didn't show up even when the window was small) - setting the row count higher (no change) It's very odd! Here is a sample of the tileList code (please note, for it to run you would need to move the itemRenderer to a separate component): !-- begin code -- mx:VDividedBox id=outerVerticalDividedBox verticalScrollPolicy=auto mx:Panel id=outerPanel title=outer panel layout=vertical verticalAlign=top verticalScrollPolicy=auto horizontalScrollPolicy=off height=60% width=100% mx:TileList id=outerTileList itemRenderer=innerTileList verticalScrollPolicy=auto horizontalScrollPolicy=off columnCount=1 rowCount=10 lockedRowCount=1 direction=vertical allowMultipleSelection=false dragEnabled=false dragMoveEnabled=false dropEnabled=false width=100% height=100% rowHeight=75 mx:TileList itemRenderer=myCanvas id=innerTileList verticalScrollPolicy=auto horizontalScrollPolicy=off columnCount=2 rowCount=10 lockedRowCount=1 rowHeight=22 columnWidth=160 direction=horizontal allowMultipleSelection=false/ /mx:TileList /mx:Panel /mx:VDividedBox !-- end code -- Has anyone ever seen this before? Thanks Rachel
RE: [flexcoders] Re: IFlexModule
Are you using an older version of the flash player per chance? Im assuming youve done a clean on the project(s)? Could it be that there is a trace of the project(s) config? If you close all projects, and create a brand new project with just the application + a control; does the problem persist? Have you already installed an older version of the modules framework before this release? From the originators blog perhaps. Excuse if Im off the mark. I understand your frustration, and wish to try and help Jason -Message d'origine- De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] la part de Greg Morphis Envoyé : mercredi 10 janvier 2007 19:20 À : flexcoders@yahoogroups.com Objet : Re: [flexcoders] Re: IFlexModule Severity and Description Path Resource Location Creation Time Id 1023: Incompatible override. aopscheduler line 11 1168453153048 2221 1120: Access of undefined property IFlexModule. aopscheduler line 22 1168453153048 1144: Interface method create in namespace mx.core:IFlexModuleFactory is implemented with an incompatible signature in class _index_mx_managers_SystemManager. aopscheduler line 7 1168453153063 2224 1172: Definition mx.binding:RepeaterComponentWatcher could not be found. aopscheduler line 16 1168453155423 2226 1172: Definition mx.core:IFlexModule could not be found. aopscheduler line 6 1168453153063 2225 1180: Call to a possibly undefined method IFlexModule. aopscheduler line 24 1168453153063 2223 On 1/10/07, Greg Morphis [EMAIL PROTECTED] wrote: Okay I'm fed up I removed Flex Builder 2 entirely, the newly installed 2.0.1 and the older installed 2, and I removed FDS2 also... I just reinstalled Eclipse (unzipped the WTP zip file to the C: drive) and just ran the FB2.0.1 installer. I chose default options for both questions. Before going any further I wanted to test it.. so I started Eclipse and guess what? There's the error!! On 1/10/07, Greg Morphis [EMAIL PROTECTED] wrote: It screwed up my old install of FB2.0/Eclipse3.1... I decided to go back to using that temporarily, so I loaded up Eclipse3.1, the Navigator view was empty! I right clicked, chose Import and chose my workspace. My projects were present in the dialog and were all checked. I hit finish and was told the projects existed.. If they did, I couldn't see them in the Navigator view... This sucks Adobe.. sucks On 1/10/07, Tom Sobut [EMAIL PROTECTED] wrote: I'm having the same problem... In the 2.0.1 install instructions for the Mac, Adobe instructs that it's necessary to refresh the workspace by using the -clean option. I followed the links in the instructions and did a refresh in a terminal session by entering: /Applications/eclipse/eclipse -clean That did seem to run. Problem still exists. I can compile without errors back in my 2.0 beta copy which I kept (just in case). Something's wrong inside the black box. Hope someone can help here. --- In flexcoders@yahoogroups.com, Greg Morphis [EMAIL PROTECTED] wrote: I downloaded Eclipse 3.2 (the all in one wtp package), Flex 2.0.1. I did a clean install in new folders. Now when I open Eclipse and open a project I'm getting some IFlexModule error.. I did a google search and that didnt help much. Has anyone seen this error and know how to fix it? It's getting on my nerves! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links
RE: [flexcoders] Re: IFlexModule
Judging from the error I would think that perhaps your using an older version or the modules or your existing project before the update was referencing the older modules framework. If this is the case there may have been changes between the older version and the release version that are causing you grief. The fact that your project is failing on IFlexModule leads me to this. Again excuse if off the mark. Jason -Message d'origine- De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] la part de Greg Morphis Envoyé : mercredi 10 janvier 2007 19:20 À : flexcoders@yahoogroups.com Objet : Re: [flexcoders] Re: IFlexModule Severity and Description Path Resource Location Creation Time Id 1023: Incompatible override. aopscheduler line 11 1168453153048 2221 1120: Access of undefined property IFlexModule. aopscheduler line 22 1168453153048 1144: Interface method create in namespace mx.core:IFlexModuleFactory is implemented with an incompatible signature in class _index_mx_managers_SystemManager. aopscheduler line 7 1168453153063 2224 1172: Definition mx.binding:RepeaterComponentWatcher could not be found. aopscheduler line 16 1168453155423 2226 1172: Definition mx.core:IFlexModule could not be found. aopscheduler line 6 1168453153063 2225 1180: Call to a possibly undefined method IFlexModule. aopscheduler line 24 1168453153063 2223 On 1/10/07, Greg Morphis [EMAIL PROTECTED] wrote: Okay I'm fed up I removed Flex Builder 2 entirely, the newly installed 2.0.1 and the older installed 2, and I removed FDS2 also... I just reinstalled Eclipse (unzipped the WTP zip file to the C: drive) and just ran the FB2.0.1 installer. I chose default options for both questions. Before going any further I wanted to test it.. so I started Eclipse and guess what? There's the error!! On 1/10/07, Greg Morphis [EMAIL PROTECTED] wrote: It screwed up my old install of FB2.0/Eclipse3.1... I decided to go back to using that temporarily, so I loaded up Eclipse3.1, the Navigator view was empty! I right clicked, chose Import and chose my workspace. My projects were present in the dialog and were all checked. I hit finish and was told the projects existed.. If they did, I couldn't see them in the Navigator view... This sucks Adobe.. sucks On 1/10/07, Tom Sobut [EMAIL PROTECTED] wrote: I'm having the same problem... In the 2.0.1 install instructions for the Mac, Adobe instructs that it's necessary to refresh the workspace by using the -clean option. I followed the links in the instructions and did a refresh in a terminal session by entering: /Applications/eclipse/eclipse -clean That did seem to run. Problem still exists. I can compile without errors back in my 2.0 beta copy which I kept (just in case). Something's wrong inside the black box. Hope someone can help here. --- In flexcoders@yahoogroups.com, Greg Morphis [EMAIL PROTECTED] wrote: I downloaded Eclipse 3.2 (the all in one wtp package), Flex 2.0.1. I did a clean install in new folders. Now when I open Eclipse and open a project I'm getting some IFlexModule error.. I did a google search and that didnt help much. Has anyone seen this error and know how to fix it? It's getting on my nerves! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links