RE: [flexcoders] Re: Flow Control in Flex
It is probably just a matter of my being more familiar with Flash than Flex; that, exacerbated by the sample explorer application demoing Flow Control using an Accordian and a very --- Steven Webster <swebs...@iterationtwo.co.uk> wrote: > > What can't you achieve with a viewstack and buttons > ? > > Steven > > > -Original Message- > > From: Harris Reynolds > [mailto:hreynol...@yahoo.com] > > Sent: 18 March 2005 14:59 > > To: flexcoders@yahoogroups.com > > Subject: [flexcoders] Re: Flow Control in Flex > > > > > > > > I feel like I am trying to put a square peg in a > round hole > > using Flex to create a Wizard based app (Next/Back > flow control). > > Components like Accordian and ViewStack are cool, > but not > > great for a series of 10 to 15 questions. > > > > Has anyone actually implemented a solution where > you have > > several questions where the answers dictate the > flow of the > > questionaire? > > > > If there isn't a good way to do this in Flex I can > simply > > revert to using the Screens/Forms in Flash MX Pro; > maybe in > > this case Flash is just the right tool for the > job. > > > > Anyone have some thoughts on this? Macromedia? > > > > ~harris > > > > > > --- In flexcoders@yahoogroups.com, Abdul Qabiz > <aqabiz@m...> wrote: > > > First question: You can use Accordion but it > isn't like the > > typical ones, > > > but you can make one using ViewStack, Panel & > ControlBar, I guess > > so... > > > > > > Second Question: Look into ASDocs, here is the > link: > > > > http://livedocs.macromedia.com/flex/15/asdocs_en/ > > > > > > > > > -abdul > > > > > > -Original Message- > > > From: Harris Reynolds [mailto:hreynolds2@y...] > > > Sent: Sunday, March 13, 2005 6:22 AM > > > To: flexcoders@yahoogroups.com > > > Subject: [flexcoders] Flow Control in Flex > > > > > > > > > > > > Quick question: What is the primary control one > would use > > in Flex to > > > implement a Wizard like application? I am > looking for > > something > > > similar to Screens in Flash. I have looked > through the explorer > > > example, but didn't see anything for > implementing flow control. > > > > > > Also, is there a "Components Dictionary" > somewhere in the Flex > > > documentation similar to the one for Flash MX > components? I'd > > like > > > to see all the properties/methods/events > available on all the > > > available Flex components. > > > > > > TIA, > > > > > > ~mh > > > > > > > > > > > > > > > > > > > > > Yahoo! Groups Links > > > > > > > > > > > > > > Yahoo! Groups Links > > > > > > > > > > > > > > -- > > No virus found in this incoming message. > > Checked by AVG Anti-Virus. > > Version: 7.0.308 / Virus Database: 266.7.3 - > Release Date: 15/03/2005 > > > > > > -- > No virus found in this outgoing message. > Checked by AVG Anti-Virus. > Version: 7.0.308 / Virus Database: 266.7.3 - Release > Date: 15/03/2005 > > > > > > Yahoo! Groups Links > > > > > >
[flexcoders] hasAll property of OLAPHierarchy and OLAPDataGrid
Does anyone know what the hasAll property does? In the example it is alwasy set to true; in the doc is says that: Specifies whether the hierarchy has an all member, true, or not, false. If true, the all member name is as specified by the allMemberName property. However the data schema in the example does NOT have an All property. What does this do? (I am having troulbe getting 3+ dimensions to work with the OLAPDataGrid and I'm trying to get a deeper understanding of how it all works together). Thanks, ~harris
[flexcoders] Re: does FLEX2 support text direction right to left?
Mike... can you point to any of the suggested workarounds that Adobe has put forward? We'd like to be able to support RTL text editing (for Arabic) in an application I'm working on. ~harris --- In flexcoders@yahoogroups.com, Michael Labriola [EMAIL PROTECTED] wrote: Unfortunately, no. This is an area where I have spent countless hours trying to work around. Flash player has absolutely no support for right to left natively. Further, while you can manually do *some* things to fix this, ultimately none of the text components (input, area, etc) allow editing in RTL. So, you can *display* RTL text, however, you can not actually edit it. Adobe has some suggestions for workarounds. However, they all require a significant amount of work and none can be accomplished directly in flash player in a real-time environment. Sorry. This is an issue which has been the subject of countless debates and is really limiting the ability to use Flash as a serious development platform for true international solutions. Adobe is aware and we are all hoping that this can be resolved within the next few releases. --Mike --- In flexcoders@yahoogroups.com, shemeshkale baldhead72@ wrote: hello, can someone tell me if flex2 have an option of RTL text? i need to use hebrew and arabic in my flex app but i know the flash player do not have support for RTL text. or does it? is there any way to work with RTL texts ?
[flexcoders] FDS Polling Exception
Has anyone ever seen this? My app is using the polling mechanism of FDS and is getting this after I call transaction.refreshFill via a remoting call. ~harris Error: Item requested item is not available. A request for the item is now pending. at mx.data::DataList/http://www.adobe.com/2006/flex/mx/internal::requestI temAt() at mx.data::DataList/getItemAt() at mx.collections::ListCollectionView/getItemAt() at ::ListCollectionViewCursor/moveNext() at mx.controls.treeClasses::HierarchicalCollectionView/::getVisibleLocati on() at mx.controls.treeClasses::HierarchicalCollectionView/collectionChangeHa ndler() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv entFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.collections::ListCollectionView/dispatchEvent() at mx.collections::ListCollectionView/::addItemsToView() at mx.collections::ListCollectionView/::listChangeHandler() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv entFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.data::DataList/http://www.adobe.com/2006/flex/mx/internal::applyUpd ateCollection() at mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/interna l::processUpdateCollection() at mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/interna l::mergeMessage() at mx.data::ConcreteDataService/::messageHandler() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv entFunction() at flash.events::EventDispatcher/dispatchEvent() at mx.messaging::Consumer/::messageHandler() at mx.messaging::Consumer/http://www.adobe.com/2006/flex/mx/internal::dis patchMessageList() at ::PollCommandMessageResponder/PollingChannel.as$33:PollComm andMessageResponder::resultHandler() at mx.messaging::MessageResponder/result()
[flexcoders] FDS Pain
Hi there. I am trying to use FDS to manage a collection tree nodes. The top-level collection that is managed by FDS contains all of the root nodes. I'd like for FDS to refresh the top-level collection of root nodes any time I insert a node into the tree, regardless of where in the hierarchy it falls. This turns out to be very difficult using FDS. Here is what I have tried: I tried turning off caching of the collection so that FDS would just refill the data whenever I call: DataServiceTransaction transasction = DataServiceTransaction.begin (null, false); transasction.refreshFill(DestinationNameHere, null); This doesn't work. When caching is turned off there is a strange dependency that I don't understand on the getItem method in my Assembler. If caching is not disabled, then FDS simply looks at the top-level nodes by their identity and doesn't notice any changes so it ignores new nodes added lower in the tree's hierarchy. I can't use the updateItem method call b/c I don't now which top- level node is being updated deep within the tree (and shouldn't need to do this just to get FDS to reload the tree data for any connected clients). I am starting to think it would be easier to write my own polling data service that does what I want myself and not even use FDS as currently FDS is making something very simply very hard. I hope someone proves me wrong!! :-) Any ideas here? Thanks, ~harris
[flexcoders] Re: FDS Pain
Thanks for the reply man. Unfortunately my object structure is already built to support the default TreeDataDescriptor (each node has a children property that itself is a collection of nodes). I'd like to have the tree completely refreshed any time I add a node to one of these children on the server. ~harris --- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote: I use a simple ArrayCollection in cases like this, and provide a custom TreeDataDescriptor which converts a 1-dimentional array collection into something usable by the Tree component. When you bind your array collection to the Tree as the data provider, FDS will refresh it appropriately. Jay Proulx [EMAIL PROTECTED] From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Harris Reynolds Sent: April 17, 2007 12:13 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] FDS Pain Hi there. I am trying to use FDS to manage a collection tree nodes. The top-level collection that is managed by FDS contains all of the root nodes. I'd like for FDS to refresh the top-level collection of root nodes any time I insert a node into the tree, regardless of where in the hierarchy it falls. This turns out to be very difficult using FDS. Here is what I have tried: I tried turning off caching of the collection so that FDS would just refill the data whenever I call: DataServiceTransaction transasction = DataServiceTransaction.begin (null, false); transasction.refreshFill(DestinationNameHere, null); This doesn't work. When caching is turned off there is a strange dependency that I don't understand on the getItem method in my Assembler. If caching is not disabled, then FDS simply looks at the top-level nodes by their identity and doesn't notice any changes so it ignores new nodes added lower in the tree's hierarchy. I can't use the updateItem method call b/c I don't now which top- level node is being updated deep within the tree (and shouldn't need to do this just to get FDS to reload the tree data for any connected clients). I am starting to think it would be easier to write my own polling data service that does what I want myself and not even use FDS as currently FDS is making something very simply very hard. I hope someone proves me wrong!! :-) Any ideas here? Thanks, ~harris
[flexcoders] FlexFactory/FDS Inconsistencies
Hi there. I am working on a FlexFactory implementation that is capable of creating objects that act as remote services. In the documentation it states that, Each factory instance can add configuration attributes that are used when that factory instance is defined, as the following example shows: destination id=myDestination properties sourcemypackage.MyRemoteClass/source factorymyFactoryId/factory myfactoryinstanceattribute myfoobar2value /myfactoryinstanceattribute /properties /destination However, adding an extra element to the properties element within remoting-config.xml causes Flex to chock in the initialization process when starting the server. Is is possible to get additional information into a FlexFactory to customize its implementation? I've looked in detail at the example that does this with Spring, but it doesn't take advantage of passing a custom value to the FlexFactory. I am trying to deploy this to Weblogic and create a FlexFactory that is capable of creating EJBs based on their JNDI name. thanks, ~harris
[flexcoders] Re: Some help with a concept im working with
If you are floundering in the deep end why don't you try breaking off a much smaller piece where your feet can still touch the ground. Going through some tutorials would likely be a good place to start. ~harris --- In flexcoders@yahoogroups.com, flashman1357 [EMAIL PROTECTED] wrote: Hello all! Firstly let me start off by saying my knowledge of flex is fairly limited - but my knowledge of flash and AS are as i would describe as intermediate/advanced. Before i get into it - i just want to make clear to everyone that, no - im not trying to phish for someone to do this for me, i very much would like to learn for myself, i just need direction! lol. So any thoughts, suggestions, tactics! i would greatly appreciate it all! I am trying to create an app for a community im involved with in which we produce a monthly eZine. We have a team of some 20-30 people working on different articles and content. What I am trying to accomplish is build a very superficial CMS in essence. An online app where firstly, the editor can specifiy the content for the upcomming month (i.e what needs to be done) the team members may then submit their articles and so forth for each section specified by the editor, and finally where I (the publisher in this case) can view each piece to finally compose a finished eZine. All this - each month! Here is a little of my thought proccess. Start with a Login screen. This is where i would split up the various roles, allowing access to different parts of the app depending on their role. The editor would be able to go the an admin section where, each month, she may specifiy which sections are going to be included this month. The team would be able login to see what needs to be done each month, sign up for it, do it, then submit it. And where the publisher can view what should basically be a summary of the content submitted both thus far, and finally. For the editor, I would have a list of all the possible sections that could be included at any given time. Beside which would be a panel with a list for what is to be included this month (i was thinking a drag and drop from the list of possibles, over to the list of to be included) once she is satisfied with the content she has layed out, she could hit save, and the list she dragged to (to be included) would be saved. Team members would then see a list on the left with all the sections needing to be done this month. Then some sort of system...be it color coded, tick box, something to allow people to see what is being done, whats completed, and what needs to yet be done, as well as what has/has not been proofed by the checkers (explain about them later). Perhaps when an item on the list is selected on the right it would load up a few things: at the top a tick box reading proof read (that only the checker role would be able to modify, but all could see) if no one is yet signed up to do the selected item, there would be a button they could sign up, which (based on their login name) would assing them to that article and the article would then only display who is doing it, not the button. and then a text box for copy/pasting or typing in the article, and a field for uploading images for the article. They could then save it. If the article has no one assigned to it, the text box would be greyed out, and if someone is viewing it that is not assigned to be doing it, they can only read - not modify. (unless they are a checker). Checkers would be able to modify all the articles, as well as sign off on the article, by ticking the check box (perhaps adding their name beside it so we know who proof read it, maybe not), as well as apply to do articles themselves. Publisher, would be able to login and have a summary button in which all the content is compiled into one long document broken down by headings so i know what is what, and can then bring into inDesign for publishing. Now, i know this is not a simple undertaking - and I have been fiddling with ideas and what not. I was toying with text files, or xml, all of which i have pretty much ruled out - not to mention the fact i have had no luck with roles and such with a login, other than by declairing simple if statements. Not ideal by any means. I have managed to get a simple upload script working - nothing exciting there, nor entirely usefull at this point. I am using this as a method for me to learn, becase i learn by jumping in at the deep end. And to be completly honest - up to this point i have been slightly regretting the afformentioned metophor. If anyone has any idea, or better yet! the drive and enthusiasm to team up with me on this, I couldnt be happier. Anything anyone can offer would be great! After all, im floundering here! Cheers everyone - and thanks for staying with me up till now. --][--
[flexcoders] Dynamically Adding XML Elements witih Namespaces
Anyone have a clue how to dynamically (using ActionScript) add a child element to an XML document that is in a namespace that is already declared? Below is a simple example that shows what I'd like to do, but is broken. This should be so simple, but I am getting an error saying the element isn't bound to the namespace. thanks, ~harris ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=onCreationComplete() mx:Script ![CDATA[ import mx.controls.Alert; public function onCreationComplete():void { var xml:XML = mx:Application xmlns:mx='http://www.adobe.com/2006/mxml' layout='absolute' /mx:Application; var ns:Namespace = xml.namespace(mx); var dynamicElement:XML = mx:DynamicNameHere width='100%' height='100%'/mx:DynamicNameHere dynamicElement.setNamespace(ns); xml.appendChild(dynamicElement); Alert.show(XML Message:\n + xml.toXMLString (), Test); } ]] /mx:Script /mx:Application
[flexcoders] Re: Dynamically Adding XML Elements witih Namespaces
A more succinct way to ask this question is: does anyone know how to bind a new element to an existing namespace? See error #1083 here: http://livedocs.macromedia.com/labs/as3preview/langref/runtimeErrors. html ~harris --- In flexcoders@yahoogroups.com, Harris Reynolds [EMAIL PROTECTED] wrote: Anyone have a clue how to dynamically (using ActionScript) add a child element to an XML document that is in a namespace that is already declared? Below is a simple example that shows what I'd like to do, but is broken. This should be so simple, but I am getting an error saying the element isn't bound to the namespace. thanks, ~harris ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=onCreationComplete() mx:Script ![CDATA[ import mx.controls.Alert; public function onCreationComplete():void { var xml:XML = mx:Application xmlns:mx='http://www.adobe.com/2006/mxml' layout='absolute' /mx:Application; var ns:Namespace = xml.namespace(mx); var dynamicElement:XML = mx:DynamicNameHere width='100%' height='100%'/mx:DynamicNameHere dynamicElement.setNamespace(ns); xml.appendChild(dynamicElement); Alert.show(XML Message:\n + xml.toXMLString (), Test); } ]] /mx:Script /mx:Application
[flexcoders] Example of using a:hover to Style a Link in a TextField Component
What up? The Flex API docs [1] mentions that anchor tags used within a TextField object can be styled: You can also define a:link, a:hover, and a:active styles for anchor tags by using style sheets. Does anyone actually know how to do this? All the CSS incantations I have tried thus far don't work. It has to be possible since it is in the docs... right? :-) ~harris [1] http://livedocs.macromedia.com/flex/2/langref/flash/text/TextField.html #htmlText -- 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] Styling a DataGrid at the Row Level
Is it possible to style individual rows within a DataGrid differently? Or is styling only available for the DataGrid as a whole? ~harris -- 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: Styling a DataGrid at the Row Level
Hey Jim... what's going on? Yeah... I'd like to be able to style rows based on three categories: winners, losers, and disqualified. All I can tell from the doc though is that a DataGrid has a top-level style that is applied to the whole component. ~harris --- In flexcoders@yahoogroups.com, dadrobson [EMAIL PROTECTED] wrote: Hey Harris! I take it you want to do more than alternatingItemColor ? Jim --- In flexcoders@yahoogroups.com, Harris Reynolds hreynolds2@ wrote: Is it possible to style individual rows within a DataGrid differently? Or is styling only available for the DataGrid as a whole? ~harris -- 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: Problem with Sortable Draggable DataGrid
Here's another question... when I drag a row to a different spot in the datagrid... how can I figure out where in the grid it landed? I need to be able to have a user drag and drop rows to order the datagrid to their liking and then be able to get the current order of the rows. Is this possible? ~harris --- In flexcoders@yahoogroups.com, Harris Reynolds [EMAIL PROTECTED] wrote: Hi there. I am having a problem with a DataGrid that allows users to drag items in the control to new positions with the list. Dragging items works when the control is initially loaded, but stops working after a column header is clicked that sorts the items using the default mechanism. Is there a way to have dragging items to other positions within the grid still work after sorting on the columns? thanks, ~harris -- 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] Problem with Sortable Draggable DataGrid
Hi there. I am having a problem with a DataGrid that allows users to drag items in the control to new positions with the list. Dragging items works when the control is initially loaded, but stops working after a column header is clicked that sorts the items using the default mechanism. Is there a way to have dragging items to other positions within the grid still work after sorting on the columns? thanks, ~harris -- 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/ * 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 and .NET Objects
Hi Jack. At this point the easiest way to integrate Flex with .Net is to use WebORB. Here's the link: http://www.themidnightcoders.com/weborb/dotnetweborb.htm Hope that helps, ~harris --- In flexcoders@yahoogroups.com, ajackbr [EMAIL PROTECTED] wrote: Hi! I'd like to know if someone is working or has some reference to the integration between Flex and Microsoft .NET. I did read in some place that the Flex Data Services would do that dealing with .NET Remoting, but I'm not sure about that. Best regards. Jack Yahoo! Groups Sponsor ~-- See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM ~- -- 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/ * 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] getURL GONNNNNNNNNE
The global getURL function appears to have been yanked from the Flex 2 Beta 3 release. Is that correct? What is the current state of the art for opening up or redirecting to a new URL? (i.e. what is the new API to do the same thing?) thanks, ~harris Yahoo! Groups Sponsor ~-- You can search right from your browser? It's easy and it's free. See how. http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM ~- -- 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/ * 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: getURL GONNNNNNNNNE
Just found the answer... something like this from the flash.net package: var request:URLRequest = new URLRequest('/signin'); navigateToURL(request, '_self'); This should work accomplish the same thing as this: getURL('/signin', '_self'); Thanks for reading, ~harris --- In flexcoders@yahoogroups.com, Harris Reynolds [EMAIL PROTECTED] wrote: The global getURL function appears to have been yanked from the Flex 2 Beta 3 release. Is that correct? What is the current state of the art for opening up or redirecting to a new URL? (i.e. what is the new API to do the same thing?) thanks, ~harris Yahoo! Groups Sponsor ~-- You can search right from your browser? It's easy and it's free. See how. http://us.click.yahoo.com/_7bhrC/NGxNAA/yQLSAA/nhFolB/TM ~- -- 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/ * 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: Using CheckBox to switch states.
I am not 100% clear on what you are trying to accomplish. However, it sounds like ViewStack container could be helpful. Using a view stack you can toggle easily between multiple alternative UIs based on user inputs (like CheckBox clicks). ~harris --- In flexcoders@yahoogroups.com, riku.raisanen [EMAIL PROTECTED] wrote: I'm trying to use a checkbox to view states. No AS script involved, here's the code: mx:CheckBox label=to stateTwo id=bar click=currentState='otherState' selected=false / and in state 'otherState': mx:SetEventHandler target={belongsToCompany} name=click handler=currentState=''/ mx:SetProperty target={belongsToCompany} name=selected value=true/ For some odd reason, it takes 3 click to uncheck the checkbox. The states change as they should. In my case, the other state adds more fields to a form if the customer checks the checkbox.. No clicking the checkbox twice removes the extra fields but the checkbox remains checked. Confuses the users, and me. Has anyone else experienced this? any work-arounds? -Riku Räisänen -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Clarification on Flex Derby Rules
Quick question regarding the rules of the Derby contest; the rules state, Limit one (1) submission per participant per category. I interpret this to mean that one person could submit *two* entries if each entry was submitted for a different category. Is this correct? Or should it read Limit one (1) submission per participant PERIOD.? Thanks for any clarification. ~harris -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Locking the Max Size of a Component
What up flex coders. I'd like to lock the maximum size of a compoent. To do this I have set both the width and height properties in the MXML file to 100%. If the user then maximizes the browser the component will expand to fill the new extra space. This is good. Here is the rub. After the component reaches its maximum size I'd like to lock the size so that if the user then clicks the Restore Down broswer button to make the window smaller, then the scrollbars will kick in and the size stays the same. Does this make sense? Basically I want the width and height to be 100% until the browser is maximized, then I want that size to be locked. One solution I thought might work is overriding the updateDisplayList function on my customized Canvas component like this: override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { if( unscaledWidth width || unscaledHeight height ) return; super.updateDisplayList(unscaledWidth, unscaledHeight); } This didn't work. Does anyone have any ideas? thanks, ~harris -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Locking the Max Size of a Component
Tim, You are the man. Your solution works great. I had started thinking that the answer lied in the minWidth/minHeight properties, but hadn't even run across the resize event on the Application container. SWEET! Thanks again, ~harris p.s. The one thing I did change was a simple null check at the beginning of the lockCanvas function (I guess the resize event is fired before all the components are constructed?) This seems weird, but my canvas object was null when the function is first called. --- In flexcoders@yahoogroups.com, Tim Hoff [EMAIL PROTECTED] wrote: Hi Harris, You can acheive this similar to the following code. The canvas (id=applicationCanvas) is originally set to a percentage-based height and width. When the browser is maximized, you can set the minHeight and minWidth to explicit values. This will replace the percentHeight and percentWidth propertes. I hope that this helps you, Tim Hoff //- -\ -- ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml creationComplete=initApp() resize=lockCanvas(); mx:Script ![CDATA[ private function initApp():void { applicationCanvas.minHeight = applicationCanvas.height; applicationCanvas.minWidth = applicationCanvas.width; } private function lockCanvas() : void { if (applicationCanvas.minHeight applicationCanvas.height) { applicationCanvas.minHeight = applicationCanvas.height; } if (applicationCanvas.minWidth applicationCanvas.width) { applicationCanvas.minWidth = applicationCanvas.width; } } ]] /mx:Script mx:Canvas id=applicationCanvas height=100% width=100%/ /mx:Application //- -\ -- --- In flexcoders@yahoogroups.com, Harris Reynolds hreynolds2@ wrote: What up flex coders. I'd like to lock the maximum size of a compoent. To do this I have set both the width and height properties in the MXML file to 100%. If the user then maximizes the browser the component will expand to fill the new extra space. This is good. Here is the rub. After the component reaches its maximum size I'd like to lock the size so that if the user then clicks the Restore Down broswer button to make the window smaller, then the scrollbars will kick in and the size stays the same. Does this make sense? Basically I want the width and height to be 100% until the browser is maximized, then I want that size to be locked. One solution I thought might work is overriding the updateDisplayList function on my customized Canvas component like this: override protected function updateDisplayList (unscaledWidth:Number, unscaledHeight:Number):void { if( unscaledWidth width || unscaledHeight height ) return; super.updateDisplayList(unscaledWidth, unscaledHeight); } This didn't work. Does anyone have any ideas? thanks, ~harris -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Reference Errors, Flex Beta 2
Has anyone seen the Flash Player spew out some Reference Errors when trying to load a Flex 2 compiled movie? I saw it once last week and a co-worker saw it yesterday on an application that I could load fine. Below is an example of the errors. This error only comes up sporadically, and does not affect all users. ~harris ReferenceError: Error #1065: Variable _demo_mx_managers_SystemManager is not defined ReferenceError: Error #1065: Variable _HDividedBoxStyle__embed_css_Assets_swf_mx_skins_cursor_VBoxDivider_15 58936548 is not defined ReferenceError: Error #1065: Variable RichTextEditor__embed_mxml_assets_icon_style_italic_png_1789808142 is not defined ReferenceError: Error #1065: Variable _TreeStyle__embed_css_Assets_swf_TreeNodeIcon_1734862534 is not defined ReferenceError: Error #1065: Variable _AlertStyle__embed_css_Assets_swf_CloseButtonDown_1884413801 is not defined -- 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 Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Loading an SWC into Flex 2 Beta 2
Has anyone had success importing a 3rd party SWC into a Flex 2 Beta 2 project? I have tried two different components and each time I get the following error: unable to load SWC componentnamehere.swc: unknown element swc found in componentPackage section in catalog.xml. Does anything special need to be done to the SWC to make it compatible with Flex 2? thanks, ~harris -- 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/ * 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: Loading an SWC into Flex 2 Beta 2
Thanks for the reply Jester... that stinks that things like the Yahoo Maps component can not be imported into Flex 2. I tried importing the SWC directly *and* creating a new SWC with the MXP and obviously didn't have any luck with either approach. I am sure support from Yahoo will be coming in the future, but it would be nice to have it now! Thanks man, ~harris --- In flexcoders@yahoogroups.com, JesterXL [EMAIL PROTECTED] wrote: It needs to be created compiled in Flex 2 Beta 2. Flex 1, Flex 1.5, Flash MX 2004, and Flash 8 SWC's will not work in Flex 2 Beta 2 projects. That's because Flex 2 Beta 2 utilizes ActionScript 3 and the Flash Player 8.5 whereas the others do not. - Original Message - From: Harris Reynolds [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, April 18, 2006 11:30 AM Subject: [flexcoders] Loading an SWC into Flex 2 Beta 2 Has anyone had success importing a 3rd party SWC into a Flex 2 Beta 2 project? I have tried two different components and each time I get the following error: unable to load SWC componentnamehere.swc: unknown element swc found in componentPackage section in catalog.xml. Does anything special need to be done to the SWC to make it compatible with Flex 2? thanks, ~harris -- 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 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/ * 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] Finding the Cursor Position in a RichTextEditor (Beta 2)
In vanilla Flash I could get the current cursor position via the Selection class, but this doesn't not appear to be available in Flex 2. The extensibility of the RichTextEditor control is severely compromised if there is not a way to get the current cursor position (and dynamically update the text). I know this information is available in the control since it is able to insert BOLD tags in the middle of the text. Is there an API for this? If not can we get one? Something like, richTextEditor.textArea.currentIndex would be valuable. ~harris --- In flexcoders@yahoogroups.com, Harris Reynolds [EMAIL PROTECTED] wrote: Is there a way to find the current position of the cursor on a RichTextEditor control? I see how to get the start and end position of selected text, but not how to get the single index of the cursor (when there isn't any text selected/highlighted). thanks, ~harris -- 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/ * 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] Finding the Cursor Position in a RichTextEditor (Beta 2)
Is there a way to find the current position of the cursor on a RichTextEditor control? I see how to get the start and end position of selected text, but not how to get the single index of the cursor (when there isn't any text selected/highlighted). thanks, ~harris -- 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/ * 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: TabNavigator Bug Flex 2 Beta 2
Sreejith, You are correct... this BUG was reporting earlier (see thread below) and I have confirmed that it still exists. Can anyone from Adobe confirm this? ~harris --- In flexcoders@yahoogroups.com, Jonathan Miranda [EMAIL PROTECTED] wrote: It sometimes lays out correctly after you have focused off and on the tab, but still the initial label is truncated. And if the label is long, even with a lower-case it doesn't work correctly. _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Deepa Subramaniam Sent: Thursday, February 02, 2006 3:13 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] TabNavigator and Flex2 Beta I just glanced quickly at the code and it looks like it is an issue with the measuring of the label text for the selected tab. The bug only happens when the leading characters of the selected tab's label starts with capital letters. If you try: mx:VBox label=afta mx:VBox label=aFTA Or similar variations you'll see the TabNavigator will layout correctly. If you can live with alternative labels then you might be ok, but if others have workarounds please share them. Thanks, deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Miranda Sent: Thursday, February 02, 2006 7:58 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] TabNavigator and Flex2 Beta Any luck with that workaround or has anyone else figured a way to fix this? _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Deepa Subramaniam Sent: Wednesday, February 01, 2006 1:04 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] TabNavigator and Flex2 Beta Hi Jonathan - Ok, that's definitely a bug. It something to do with the initial layout of the tab, because if you select another tab and come back to the AFTA tab you'll see that it doesn't truncate (though it is a bit clipped). I'll log this for you. I'm not sure of a workaround off the top of my head - I'll investigate a bit more and see if I can find one. deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Miranda Sent: Wednesday, February 01, 2006 11:25 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] TabNavigator and Flex2 Beta Yup still doesn't work. Even if I put in tabWidth to like 200 (no more percentages in Flex2 beta), it still messes up. mx:TabNavigator id=mainTN width=70% height=100% backgroundAlpha=0 marginLeft=0 marginRight=0 change=refreshDG() mx:VBox label=AFTA width=100% height=100% backgroundAlpha=0 /mx:VBox mx:VBox label=Emergency Monitor width=100% height=100% backgroundAlpha=0 /mx:VBox mx:VBox label=Communication width=100% height=100% backgroundAlpha=0 /mx:VBox /mx:TabNavigator _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Deepa Subramaniam Sent: Wednesday, February 01, 2006 12:03 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] TabNavigator and Flex2 Beta Hi Jonathan - I can't seem to reproduce your case. I can't size my TabNavigator such that the label for a tab is not truncated when not selected, and then truncated when selected. Could you send me some code that reproduces that case? Thanks, deepa -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Miranda Sent: Wednesday, February 01, 2006 10:25 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] TabNavigator and Flex2 Beta Just noticed, when you click on a tab...the font weight changes and the label doesn't resize now...so you'll get AFTA becoming AFT... even when there is plenty of room. Work-around for this bug? _ Jonathan Miranda Flexible Master of the Web In the game of chess, it's important to never let your opponent see your pieces. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development http://groups.yahoo.com/gads?
[flexcoders] TabNavigator Display Issue [Flex 2 Beta 2]
I have the very simple Flex script that is listed below. When the script is compiled and displayed the first tab is only rendering: Brow... After selecting the 2nd tab the whole word 'Broswer' displays. However, after selecting the 1st tab again the whole word 'Browser' is displayed, but now the end of the 'r' is shaved off. The first impression when looking at this is YUCK! The same file looks great in Flex 1.5. Is there a way to make the tab labels look good at the outset using 2.0? Also... is there a way to have characters with overhangs (like a lowercase 'r') render properly when selected? thanks, ~harris ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; xmlns=* mx:Panel title=Blah Manager width=525 height=250 mx:TabNavigator id=tabNavigator width=500 height=200 tabWidth=120 mx:Canvas id=browserCanvas label=Browser /mx:Canvas mx:Canvas id=editorCanvas label=Editor /mx:Canvas /mx:TabNavigator /mx:Panel /mx:Application -- 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/ * 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] Updating HTTP Service Whitelist at Runtime
What would happen if you updated the whitelist for HTTP services within flex-config.xml at runtime? Would Flex notice the change and reload the configuration? This would be a very nice feature for building dynamic applications where users may want to add services on the fly. Of course this would require the service to provided structured information that the application could understand, but there are several uses for this even today. Anyone on the Flex team have an answer for this? or anyone else? ~harris __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Hibernate
Ryan, I'd suggest that you post some of your hibernate code here [1] with the same question. You'll get a lot better Hibernate support there. That said, one important thing to keep in mind from the Flex perspective is your service interface. You should design the integration point as a course-grained service that does as much work on the server as possible (instead of lots and lots of service calls, wrap all that logic behind one clean service point). This is a fairly well known pattern for web services. I have seen services before that exposed lots of CRUD/database operations that don't provide a clean layering in the application and caused serious pain when integrating with Flex (imagine lots of synchronous calls... possible, but painful). hope that helps, ~harris [1] http://forum.hibernate.org/ --- Ryan Scott Jones [EMAIL PROTECTED] wrote: Hi Steve, Thanks for the help. I have all of my collections mapped as lazy=false. Everything I've tried ends with: - could not initialize proxy - the owning Session was closed org.hibernate.LazyInitializationException: could not initialize proxy - the owning Session was closed Any idea what I might be forgetting? Ryan _ From: Steven Shaw [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 12, 2005 7:22 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Hibernate You will want to watch your server log closely as you probably are getting errors in there about lazy instantiation. Putting lazy=true in your mapping file does not guarantee that the association will be instantiated. It depends in max-fetch-depth and perhaps other things. You could try using Hibernate.initialize(collection) to ensure it is initialised before allowing AMF to get at it. Steve. _ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! http://docs.yahoo.com/info/terms/ Terms of Service. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] AS - adding dynamic properties to an object
In AS you always have the option of taking advantage of the dynamic type system and just adding properties to an untyped object on the fly. What is the type of the object? Is that an option? ~harris --- viraf_bankwalla [EMAIL PROTECTED] wrote: Hi, How do I add dynamic properties to an obect ? These properties are received over the HTTPService request. Thanks __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Interfaces?
It's about the same as in ActionScript... I was just doing this today... the MXMO below is clipped from the flex docs... notice the implements attribute and the corresponding implementation in the Script element. hope that helps, ~harris mx:ComboBox xmlns:mx=http://www.macromedia.com/2003/mxml; implements=SuperBox mx:Script function selectSuperItem():String { return Super Item was selected; } function removeSuperItem():Boolean { return true; } function addSuperItem():Boolean { return true; } /mx:Script mx:dataProvider mx:Array mx:StringAK/mx:String mx:StringAL/mx:String /mx:Array /mx:dataProvider /mx:ComboBox --- JesterXL [EMAIL PROTECTED] wrote: How do you use an interface in MXML? In ActionScript it's implements ISomeInterface. __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Interfaces?
It's about the same as in ActionScript... I was just doing this today... the MXMO below is clipped from the flex docs... notice the implements attribute and the corresponding implementation in the Script element. hope that helps, ~harris mx:ComboBox xmlns:mx=http://www.macromedia.com/2003/mxml; implements=SuperBox mx:Script function selectSuperItem():String { return Super Item was selected; } function removeSuperItem():Boolean { return true; } function addSuperItem():Boolean { return true; } /mx:Script mx:dataProvider mx:Array mx:StringAK/mx:String mx:StringAL/mx:String /mx:Array /mx:dataProvider /mx:ComboBox --- JesterXL [EMAIL PROTECTED] wrote: How do you use an interface in MXML? In ActionScript it's implements ISomeInterface. __ Yahoo! Messenger Show us what our next emoticon should look like. Join the fun. http://www.advision.webevents.yahoo.com/emoticontest Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Interfaces?
Yep... it still feels a little weird implementing an interface in MXML instead of AS, but it is cool stuff. Interfaces are one of the nicest things about modern OO programming IMO. L8R, ~harris --- JesterXL [EMAIL PROTECTED] wrote: That's it? Awesome, thanks! :: tests :: Heck yeah, it works, neat!!! __ Do you Yahoo!? Yahoo! Personals - Better first dates. More second dates. http://personals.yahoo.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Interfaces?
Yeah... I have had trouble with the search facility as well. I am looking at the main doc available here [1]. The info I've been looking at is available by navigating to Developing Flex Applications Version 1.5 - Working with ActionScript in Flex - Working with components - Implementing interfaces. On that page there is a link to Using Interfaces [2]. After spending a fair amount of time being frustrated with finding stuff in the docs, I have now embraced these pages and can usually find whatever I need. The organization of the Flash/AS2 Component docs seems a little better organized IMO. good luck, ~harris [1] http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/js/html/wwhelp.htm [2] http://livedocs.macromedia.com/flex/15/flex_docs_en/0462.htm --- JesterXL [EMAIL PROTECTED] wrote: wtf...dude, where are you finding this in the docs...or rather, how? I did a search for interface, and in both books, these didn't come up in like the first 5? - Original Message - From: Harris Reynolds [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, April 02, 2005 4:37 PM Subject: Re: [flexcoders] Interfaces? LOL... this is your lucky day... again clipped from the doc... implement away!! ~harris SnipFromDoc You can implement multiple interfaces by separating them with commas as the following example shows: mx:ComboBox xmlns:mx=http://www.macromedia.com/2003/mxml; implements=SuperBox, SuperBorder, SuperData /SnipFromDoc --- JesterXL [EMAIL PROTECTED] wrote: ...when we get the ability to implement more than 1, than that'll be the hotness! - Original Message - From: Harris Reynolds [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Saturday, April 02, 2005 4:32 PM Subject: Re: [flexcoders] Interfaces? Yep... it still feels a little weird implementing an interface in MXML instead of AS, but it is cool stuff. Interfaces are one of the nicest things about modern OO programming IMO. L8R, ~harris --- JesterXL [EMAIL PROTECTED] wrote: That's it? Awesome, thanks! :: tests :: Heck yeah, it works, neat!!! __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Create ViewStack children via Actionscript
Quick qustion... after creating a Flex component using ViewStack.createChild, how do you coerce the MovieClip that is returned to be the correct type. In the example code that was posted below, how to you get the VBox variable (vb) to actually walk and talk like a VBox? (instead of a MovieClip). thanks, ~harris --- Krzysztof Szlapinski [EMAIL PROTECTED] wrote: You can create children with CreateChild method In the example below when clicking on the button you create a label inside of a VBox which is a child of a ViewStack ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; mx:Script ![CDATA[ function generateChildren(){ var vs=mx.core.Application.application.vs01; var vb = vs.createChild(mx.containers.VBox,undefined,{id:vb01}); vb.createChild(mx.containers.Label,undefined,{text:Hello}); } ]] /mx:Script mx:Panel mx:ViewStack id=vs01 /mx:ViewStack mx:Button click=generateChildren() /mx:Panel /mx:Application Does any1 know how i do that? Greetz Erik Yahoo! Groups Links __ Do you Yahoo!? Yahoo! Mail - You care about security. So do we. http://promotions.yahoo.com/new_mail Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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: Calling Java Servlet
The fact that RemoteObject uses a servlet is an implementation detail. You can see that it is by looking at the [FLEX_APP]/WEB-INF/web.xml file in your Flex application. It is the servlet named AMFGatewayServlet. With regard to your problem, depending on how your code is factored, you may be able to use RemoteObject out of the box. Typically you would surface a remote object that provided a service In your case you could create a Java object called JavaBeanService (or whatever) and expose a method on it that returned all your java beans. The point here is that you don't need to muck around with HTTP level stuff as is the case with your servlet. Flex handles that using Flash remoting. good luck, ~harris --- Libby [EMAIL PROTECTED] wrote: Well, my custom servlet already exists. I have read all I can find on RemoteObject and have not discovered any mention of servlet, either mine or flex's. Could you tell me exactly where you are looking to get your info? Thanks, Libby --- In flexcoders@yahoogroups.com, Harris Reynolds [EMAIL PROTECTED] wrote: Libby, It is definitely possible to invoke a servlet from Flex b/c I have done it successfully. If you invoke a custom servlet though, the burden is on you to return data in a format that Flex can understand. I guess I am wondering why you want to invoke a custom servlet; it seems like you should be invoking the remoting gateway servlet that ships with Flex and automatically handles data (un)marshalling of java objects for you. See the RemoteObject component for more information. good luck, ~harris --- Libby [EMAIL PROTECTED] wrote: No, I'm returning an array of javabeans. At this point I am wondering if it is even possible to call a servlet from Flex since they don't have an example of doing it. I have successfully invoked some other java objects, but not servlets so far. --- In flexcoders@yahoogroups.com, Harris Reynolds [EMAIL PROTECTED] wrote: Libby, If you are returning a chunck of XML one simple option is to call your servlet using the HTTPService Flex control. Using this approach you can attach the result to a data provide and Flex will wire it all up for you. An example of this can be found here [1]. It uses a JSP page instead of a servlet, but the concept is the same. Hope this helps, ~harris [1] http://flexapps.macromedia.com/flex15/explorer/explorer.mxml (See Dynamic Data Services - HTTP Service) --- Libby [EMAIL PROTECTED] wrote: Hello, I am evaluating Flex. We have flash Remoting calling some servlets running on Websphere 5.1, and for my eval I am trying to build a similiar interface to them. So far I cannot find an example of how to do this (call a servlet with arguments) so I was hoping someone here could show me a tiny example, or offer corrections to my code? Using flash, we call a controller servlet using one or more arguments. ItemDefServlet(getAllRecords); -- like this in Flash In Flex, this is what I have: mx:RemoteObject type=servlet source=maintenance.ItemDefServlet protocol=http id=remoteobject1/mx:RemoteObject mx:DataGrid id=ItemDef_grd dataProvider={remoteobject2.getMessage.result} . . /mx:DataGrid mx:ControlBar mx:Button label=Get All click=remoteobject1.send() / /mx:ControlBar thanks, Libby __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Calling Java Servlet
Libby, If you are returning a chunck of XML one simple option is to call your servlet using the HTTPService Flex control. Using this approach you can attach the result to a data provide and Flex will wire it all up for you. An example of this can be found here [1]. It uses a JSP page instead of a servlet, but the concept is the same. Hope this helps, ~harris [1] http://flexapps.macromedia.com/flex15/explorer/explorer.mxml (See Dynamic Data Services - HTTP Service) --- Libby [EMAIL PROTECTED] wrote: Hello, I am evaluating Flex. We have flash Remoting calling some servlets running on Websphere 5.1, and for my eval I am trying to build a similiar interface to them. So far I cannot find an example of how to do this (call a servlet with arguments) so I was hoping someone here could show me a tiny example, or offer corrections to my code? Using flash, we call a controller servlet using one or more arguments. ItemDefServlet(getAllRecords); -- like this in Flash In Flex, this is what I have: mx:RemoteObject type=servlet source=maintenance.ItemDefServlet protocol=http id=remoteobject1/mx:RemoteObject mx:DataGrid id=ItemDef_grd dataProvider={remoteobject2.getMessage.result} . . /mx:DataGrid mx:ControlBar mx:Button label=Get All click=remoteobject1.send() / /mx:ControlBar thanks, Libby __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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: Calling Java Servlet
Libby, It is definitely possible to invoke a servlet from Flex b/c I have done it successfully. If you invoke a custom servlet though, the burden is on you to return data in a format that Flex can understand. I guess I am wondering why you want to invoke a custom servlet; it seems like you should be invoking the remoting gateway servlet that ships with Flex and automatically handles data (un)marshalling of java objects for you. See the RemoteObject component for more information. good luck, ~harris --- Libby [EMAIL PROTECTED] wrote: No, I'm returning an array of javabeans. At this point I am wondering if it is even possible to call a servlet from Flex since they don't have an example of doing it. I have successfully invoked some other java objects, but not servlets so far. --- In flexcoders@yahoogroups.com, Harris Reynolds [EMAIL PROTECTED] wrote: Libby, If you are returning a chunck of XML one simple option is to call your servlet using the HTTPService Flex control. Using this approach you can attach the result to a data provide and Flex will wire it all up for you. An example of this can be found here [1]. It uses a JSP page instead of a servlet, but the concept is the same. Hope this helps, ~harris [1] http://flexapps.macromedia.com/flex15/explorer/explorer.mxml (See Dynamic Data Services - HTTP Service) --- Libby [EMAIL PROTECTED] wrote: Hello, I am evaluating Flex. We have flash Remoting calling some servlets running on Websphere 5.1, and for my eval I am trying to build a similiar interface to them. So far I cannot find an example of how to do this (call a servlet with arguments) so I was hoping someone here could show me a tiny example, or offer corrections to my code? Using flash, we call a controller servlet using one or more arguments. ItemDefServlet(getAllRecords); -- like this in Flash In Flex, this is what I have: mx:RemoteObject type=servlet source=maintenance.ItemDefServlet protocol=http id=remoteobject1/mx:RemoteObject mx:DataGrid id=ItemDef_grd dataProvider={remoteobject2.getMessage.result} . . /mx:DataGrid mx:ControlBar mx:Button label=Get All click=remoteobject1.send() / /mx:ControlBar thanks, Libby __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * 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] Canvas Layout vs other Containers
Duh... why didn't *I* think of that!! :-) Thanks! --- Gordon Smith [EMAIL PROTECTED] wrote: You would have to put a Canvas inside them. - Gordon -Original Message- From: Harris Reynolds [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 16, 2005 7:14 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Canvas Layout vs other Containers Quick question. The Canvas container allows controls to be placed anywhere in the container (absolute positioning), whereas containers like Panel and TitleWindow that provide a cool title don't seem to allow this. Is there anyway to configure a Panel or TitleWindow to allow absolute positioning (instead of vertical grid positioning)?? ~mh __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ Yahoo! Groups Links __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/
Re: [flexcoders] Question about do while loops
In general I use do-while loops only very rarely; as mentioned though the do while loop is not your problem. If you are trying to get a random number between certain numbers it should be a one line of code... are you doing something sophisticated that requires more than simply adjusting a call to Math.random? ~harris --- [EMAIL PROTECTED] wrote: Are do while loops used a lot in Flex or are they generally avoided? I know that if you ask the computer to do a do while loop that never ends it will probably slow the computer down. But the loops I have tried to make have been very slow? What I have been trying to do is generate a random number over and over again until it meets a certain criteria. __ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/
Re: [flexcoders] Re: Slider extension
This is a good question. Without the source extending the Slider is difficult at best. Currently I had to write a custom slider to get the functionality I need, but I'd like to leverage what is already available as well. ~harris --- Matthew Pflueger [EMAIL PROTECTED] wrote: Has anybody extended the Slider component to use more than two thumbs? Also, does anybody have the source to the Flex Slider components? The FlexForFlash archive under resources does not seem to contain the mx.controls.sliderclasses package. Thanks, Matt __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Getting the Flex Store Running
Gotta love it! Thx. --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: The full FlexStore is in samples.war that comes with the Flex install. Matt _ From: Harris Reynolds [mailto:[EMAIL PROTECTED] Sent: Saturday, March 12, 2005 9:09 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Getting the Flex Store Running Hi there. I have downloaded the Flex store demo application and am trying to get it running inside of my Flex server. The problem seems to be that all the required files are not included in the zip, namely, flexstore_script.as and flexstore.css. Without these files the MXML file will not compile. I downloaded the code from here [1]. Are these files available somewhere? ~mh [1] http://www.macromedia.com/devnet/flex/articles/getting_started.html http://www.macromedia.com/devnet/flex/articles/getting_started.html Yahoo! Groups Sponsor ADVERTISEMENT http://us.ard.yahoo.com/SIG=129lmhne1/M=298184.6018725.7038619.30011 76/D=gr oups/S=1705007207:HM/EXP=1110733747/A=2593423/R=0/SIG=11el9gslf/*http :/www.n etflix.com/Default?mqso=60190075 click here http://us.adserver.yahoo.com/l? M=298184.6018725.7038619.3001176/D=groups/S= :HM/A=2593423/rand=930002064 _ Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] subject=Unsubscribe * Your use of Yahoo! Groups is subject to the Yahoo! http://docs.yahoo.com/info/terms/ Terms of Service.