[flexcoders] layout like My Yahoo page?
Hi Flexperts... me again! this time, a new question as far as i can tell since I didn't find anything like this in the archives... i'd like to create an application like the My Yahoo page where you can move around your components. We've currently got a canvas that contains several HDividedBox's and VDividedBox's but we'd like to be able to move them around, resize them, etc., sort of like what My Yahoo has...any idea if Flex has this built in or will we have to extend components to do this? I think My Yahoo is built using Ajax (correct me if I am wrong please) so figure Flex must have something similar or better? thanks for any help! Christine
RE: [flexcoders] Organize imports
Ctrl + shift + o -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stembert Olivier (BIL) Sent: 26 January 2007 08:50 To: flexcoders@yahoogroups.com Subject: [flexcoders] Organize imports Ho all, Do you know how to organize imports in FlexBuilder? Rgds, Olivier - 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] ColumnChart - how to change the clicked column border
hi, i got a simple ColumnChart. i want to make a selected column when one is clicked. kind of ToggleColumnChart :-) when a specific column is clicked its border shoul change. how do i change the clicked column border?? an example code would be great tnx
Re: [flexcoders] Crossdomain
There is Security Sandbox so you can not draw until you have right permissions, just having crossdomain.xml is not sufficient. You need to explictly set checkPolicyFile flag so that Flash Player 9 downloads the policy file (crossdomain.xml) and grants the access to your code, if it is allowed in policy file. I am not sure which API you are using to load images. If you are using Loader, then check for this. Loader.load (..) method's second param is instance of LoaderContext, this is where you can set checkPolicyFile=true. Read the docs here:- Loader.load () - http://livedocs.macromedia.com/flex/2/langref/flash/display/Loader.html#load() LoaderContext: http://livedocs.macromedia.com/flex/2/langref/flash/system/LoaderContext.html Check out these links:- http://missinghref.com/jdsblog/archive/2006/03/14/flash_8_cross_domain_bitmapdata_.aspx http://www.abdulqabiz.com/blog/archives/flash_and_actionscript/bitmapdatadraw.php -abdul On 1/28/07, Brendan Meutzner [EMAIL PROTECTED] wrote: On which server, and where is your crossdomain located? Is the cineminha.com.br server a multi-hosting environment? Brendan On 1/27/07, Leonardo Sobral [EMAIL PROTECTED] wrote: I´m trying to load an image from outsite of my domain and its giving me an error, the crossdomain is there, set to permit *... I get the same error online and from localhost. Any clue? SecurityError: Error #2122: Security sandbox violation: BitmapData.draw: http://localhost:8500/Store/bin/index.swf cannot access http://www.cineminha.com.br/AdvHTML_Upload/photos/poster_diamante.jpg . A policy file is required, but the checkPolicyFile flag was not set when this media was loaded. at flash.display::BitmapData/draw() at mx.effects.effectClasses::MaskEffectInstance/::getVisibleBounds() at mx.effects.effectClasses::MaskEffectInstance/::initMask() at mx.effects.effectClasses::MaskEffectInstance/startEffect() at mx.effects::Effect/play() at mx.effects::EffectManager$/::createAndPlayEffect () at mx.effects::EffectManager$/http://www.adobe.com/2006/flex/mx/internal::eventHandler() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction () at flash.events::EventDispatcher/dispatchEvent () at mx.core::UIComponent/dispatchEvent() at mx.core::UIComponent/setVisible() at mx.core::UIComponent/set visible() at mx.containers::ViewStack/mx.containers:ViewStack::updateDisplayList() at mx.core::UIComponent/validateDisplayList() at mx.core::Container/validateDisplayList() at mx.managers::LayoutManager/::validateDisplayList() at mx.managers::LayoutManager/::doPhasedInstantiation () at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/::callLaterDispatcher2() at mx.core::UIComponent/::callLaterDispatcher() at flash.utils::Timer/flash.utils:Timer::_timerDispatch () at flash.utils::Timer/flash.utils:Timer::tick() -- Brendan Meutzner Stretch Media - RIA Adobe Flex Development [EMAIL PROTECTED] http://www.stretchmedia.ca
[flexcoders] Re: Flex2 Metadata / Compiler Options Question
Over here we went for subclassing Array to create a typed array class. There's some examples of a typed array class in the documentation. --- In flexcoders@yahoogroups.com, gtuhl [EMAIL PROTECTED] wrote: I'll try to keep this brief and clear, bear with me and please request additional information if it would help. We came across a situation in a very large Flex2 application where we wanted to know the types of items inside of collections at runtime. I can provide more details if desired, but in short we are doing a lot of automatic detection of object and property types to make a running locally on xml version of the product work with very little pain and very little extra configuration. In Java 1.5, you can specify these types like this: ListContactVO foo; In Flex2, if you have something like this: var foo : ArrayCollection; There is obviously no way of discovering at runtime, by reading the class definition, what types of objects are meant to be in that ArrayCollection. So we took advantage of the metadata construct in Flex2 to create a sort of annotation, which would make the Flex2 example look like this: [Collection(type=ContactVO)] var foo : ArrayCollection; Now by reading the metadata of the property foo, we are able to determine at runtime both that foo is an ArrayCollection, and that it is meant to contain ContactVO object instances. This doesn't have the Java benefit of actually enforcing the fact that only ContactVOs are in the collection, but it at least allows us to make very useful convention-based assumptions. This is a pretty powerful option in my opinion, unfortunately Flex2 blindly throws out all metadata it doesn't understand. Through some google code searching, we were able to discover an obscure compiler option that looks like this: -keep-as3-metadata+=Collection This option would then make it such that Flex does not throw out [Collection] metadata. The problem is, this compiler option only works in DEBUG mode. In debug mode all of our code affected by this works beautifully and without fault (and would probably be a very useful tool to provide to the community). In RUN mode, it fails miserably. In short, Flex2 is ignoring these extra compiler options when not in DEBUG mode. We are no longer able to see the [Collection] metadata. Does anyone have any idea for working around this? We are using ANT for our builds, and I can guarantee that the -keep-as3-metadata compiler option is being used identically in all cases. It simply gets ignored in RUN mode, and Flex2 goes back to throwing out all metadata it doesn't understand.
[flexcoders] Nested Repeater problem
I have a situation where I need to call a RemoteObject that returns a set of questions. I set the dataProvider of my Repeater to this ArrayCollection. The Result Handler of this RO loops through the ArrayCollection and calls another RO to retreive the answers( may have multiple answers per question). the problem I have is that each answer for the questions retreived are the answer of only the last question. I know why this is occuring, I have the same dataProvider being used for the inner Repeater. My question is how can I fix this. I have tried to insert the answer results from each question into an Array, but I cannot get the Repeater to work when I try this.
[flexcoders] why flex doesn't work properly in the other computer?
i have make some form in my app, it's run very well when i run it in my computer , but if i run in the other computer like 192.168.0.60/app/index.html it doesn't work! i can see the background but not with the form. can somebody tell me why?? tngxs! -sorry if my english to bad.- Food fight? Enjoy some healthy debate in the Yahoo! Answers Food Drink QA. http://answers.yahoo.com/dir/?link=listsid=396545367
RE: [flexcoders] Re: DataService fill not filling on first try? timing issue?
One of the nice ways to handle these situations in Flex is to use data binding. Since the system listens for and handles events automatically, you can do something like this in MXML: currentState={theUser.length gt; 1 amp;amp; theUser.getItemAt(0).administratorGroupKey == 1 ? 'AdminOption' : ''} This is a bit awkward because of the and chars in the data binding expression.It is easier when you are dealing with the return value of the getItem method since that has a simple result property you can bind to, or when you are binding to the array collection as a whole since you can bind to theUser property directly. If data binding is not appropriate, the other change I'd recommend is that rather than adding the processAdminOption as a listener for the result event on the ID_USERS data service, I'd set processAdminOption as a responder on the AsyncToken returned by the fill. It is a stylistic change but I find it easier to manage responders to specific fill operations rather than use the event which is fired for any operation performed on that data service. It avoids the if/else logic in your event handler to figure out which operation this is. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ripe101 Sent: Thursday, January 25, 2007 3:05 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: DataService fill not filling on first try? timing issue? Continuing in the tradition of replying to my own posts when I find the solution... I found the issue is caused by the fill method being processed asynchronously to the actionscript execution (duh!) I didn't know that obviously ;) I just moved my code that processes the returned object into an event handler that gets called when a result is returned by the fill... So one question, is there a way to avoid filling the first array collection and just dealing with the object that is returned in the ResultEvent? it looks like this (it's ugly): private function getAdminOption(username:String):void { var theUser:ArrayCollection = new ArrayCollection; ID_USERS.addEventListener(result, processAdminOption); ID_USERS.fill(theUser,IdUser.single,[username]); } private function processAdminOption(event: ResultEvent):void { if (event.result.length != 0) { if (event.result[0].administratorGroupKey == 1) { currentState='AdminOption'; } else { currentState=''; } } else { currentState=''; } } cheers, JK --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , ripe101 [EMAIL PROTECTED] wrote: I have a fill method being called in an event handler, and I can see the correct data coming back in FDS (from Hibernate), but my ArrayCollection is empty the first time the method is called. If I trigger the exact same event with the same parameter a second time it behaves as expected. I think I am missing something subtle... the event handler is as follows: private function getAdminOption(username:String):void { var theUser:ArrayCollection = new ArrayCollection; ID_USERS.fill(theUser,IdUser.single,[username]); if (theUser.length != 0) { if (theUser.getItemAt(0).administratorGroupKey == 1) { currentState='AdminOption'; } else { currentState=''; } } } Anyone else seen this happen? Thanks JK
Re: [flexcoders] Ogg Vorbis Tremor in AS3?
That's awesome! I get an error message when it loads, and then the audio is choppy, but otherwise, this is very promising. I hope it will be released as open source, and that the performance issues can be sorted, that'd be great for anyone concerned about mp3 patent issues. Kevin N. Martin Wood-Mitrovski wrote: Its been done. :) http://flash.j-ogg.de/ Hopefully the source will be released at some point. I know that its built on top of the audio engine made by Chris Sperry of FlashCodersBrighton fame. http://www.flashcodersbrighton.org/wordpress/?p=9 There is a version of the core audio engine in the SID branch of the FC64 project if you are interested in seeing some source. (and it includes the sample rate fix) Chris said that he has made some improvements to the engine but they are not public yet, hopefully these will be released soon. for now thats all I know :) martin. Kevin Newman wrote: Hello, I was wondering what the feasibility of porting an integer based audio decoder like Ogg Vorbis Tremor to Actionscript 3 is. Are there APIs in place that would allow you to load a vorbis file, decode it and output the audio? Does AVM2 have the horse power to pull off something like that?
RE: [flexcoders] Re: Localization - URGENT
Yes, you could build a runtime localization scheme using modules or RSLs. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Abdul Qabiz Sent: Thursday, January 25, 2007 11:42 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Localization - URGENT This is the question for Gordon and Roger, I am curious if we can use Modules/Shared-Libs to load localization-resources on runtime? I have not been doing much in Flex 2 for sometime. But just curious if we can come up something using new facilities in Flex 2.0.1 Thanks -abdul On 1/26/07, Gordon Smith [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: BTW, I meant to say the next major release, not the next bug-fix release (if there is one). - Gordon From: flexcoders@yahoogroups.com [mailto: flexcoders@ mailto:flexcoders@ yahoogroups.com http://yahoogroups.com ] On Behalf Of coldfusionpaul Sent: Wednesday, January 24, 2007 8:28 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Localization - URGENT The Flex framework doesn't currently have any support for runtime locale changes, but we're considering adding this in the next release. pretty please ;-)
Re: [flexcoders] layout like My Yahoo page?
I should think that just using a canvas and dragging the components around would do the trick - you'll need to code having them snap into place and take care of sizing/overlaps. I would imagine that would be the Ajax strategy too. Paul - Original Message - From: tinkiknit [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, January 25, 2007 10:09 PM Subject: [flexcoders] layout like My Yahoo page? Hi Flexperts... me again! this time, a new question as far as i can tell since I didn't find anything like this in the archives... i'd like to create an application like the My Yahoo page where you can move around your components. We've currently got a canvas that contains several HDividedBox's and VDividedBox's but we'd like to be able to move them around, resize them, etc., sort of like what My Yahoo has...any idea if Flex has this built in or will we have to extend components to do this? I think My Yahoo is built using Ajax (correct me if I am wrong please) so figure Flex must have something similar or better? thanks for any help! Christine -- 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: Please Help - Components, States, Transitions
is there a way to call a function in an included (child) component based on something that changes in the parent? when you pass data to a component (in a param) and then apply it to a label, if the parent changes the the data changes in the child, works great... but I can't find info on or figure out how to do something in the child based on that param value changing. what am i missing? is there a source? or example that someone could share? thanks, Shane --- In flexcoders@yahoogroups.com, David Terry [EMAIL PROTECTED] wrote: Thank you Stephen. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Gilson Sent: Tuesday, January 23, 2007 7:17 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Please Help - Components, States, Transitions It is covered in the doc in the chapter on the Application container: http://livedocs.macromedia.com/flex/201/html/app_container_064_09.html http://livedocs.macromedia.com/flex/201/html/app_container_064_09.html Stephen From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Monday, January 22, 2007 6:00 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Please Help - Components, States, Transitions I'm on the Flex framework team in San Francisco. Glad to be of help. I'm not sure where (if?) this is covered in our doc set. Where would you expect to look? - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Terry Sent: Monday, January 22, 2007 2:39 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Please Help - Components, States, Transitions GORDON! Where the hell are you in the country? I'm coming to kiss you. :)~ J/K But really, thank you!!! When you are just starting out in a language, the simplest things are the hardest. I've been coding C++, VB, C#, VB.NET for 12 years (3 on the later), but learning this - has been like jumping into the abyss. Thanks again. ~David T. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Gordon Smith Sent: Monday, January 22, 2007 4:07 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Please Help - Components, States, Transitions It sounds like what you really want to know is If I have component B inside of component (or application) A, how can ActionScript code in B access A's properties and methods? (Setting the currentState property of the app from one of its components is simply a special case of this.) The answer is by using the parentDocument property. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of David Terry Sent: Monday, January 22, 2007 1:35 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: Please Help - Components, States, Transitions If it was that simple I would not be asking for help. I can figure out how to change state when all controls are in the same application, but I can't figure out how to make a custom control change the state of the parent. If the comp:Login control has the register button, and this is the 'parent' page, how does the 'login' tell the parent to change to the 'Register' state? ~David T. ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml layout=absolute xmlns:comp=assets.components.* currentState=Login mx:Style source=../assets/css/main.css/ mx:states mx:State name=Register mx:AddChild position=lastChild comp:signup1 horizontalCenter=0 verticalCenter=0/ /mx:AddChild /mx:State mx:State name=Login mx:AddChild position=lastChild comp:login horizontalCenter=0 verticalCenter=0 /comp:login /mx:AddChild /mx:State /mx:states /mx:Application From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of theduderino82 Sent: Monday, January 22, 2007 3:08 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Please Help - Components, States, Transitions It's really much more simple then you think. There are some good tutorials on the flex start page. Just type in the search transition or state.
Re: [flexcoders] Flash simple question
The browser cache, wherever that happens to be.. - Original Message - From: Stembert Olivier (BIL) [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Friday, January 26, 2007 1:47 PM Subject: [flexcoders] Flash simple question Hi all, When a swf file is downloaded to my computer, where is it stored? I mean where on the file system? Thanks Olivier - 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 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: PIVOT TABLE and CHART
I am trying to do this. --- In flexcoders@yahoogroups.com, leds usop [EMAIL PROTECTED] wrote: Hi everyone, BEfore we proceed with implementing pivot table (of MS excel -- same functionality although not necessarily with drag and drop support) in Flex, we wanna know if someone else in this group has already done this( or is currently doing this)? Care to share notes, tips, etc? Any help will be appreciated. Thnx! _ ___ Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html
Re: [flexcoders] Re: Flex2 Metadata / Compiler Options Question
This days I tried to subclass the TextInput component and seems like the compiler does not know anything about the metadata in the superclass...I didnp't have time to do some test outside my project but this is a real problem if you try to extends other components with a myriad of metadata tags in it. Could someone at adobe elaborate a bit in the compiler behaviour related to metadata when subclass a component? Thanks! On 1/28/07, Bjorn Schultheiss [EMAIL PROTECTED] wrote: Over here we went for subclassing Array to create a typed array class. There's some examples of a typed array class in the documentation. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, gtuhl [EMAIL PROTECTED] wrote: I'll try to keep this brief and clear, bear with me and please request additional information if it would help. We came across a situation in a very large Flex2 application where we wanted to know the types of items inside of collections at runtime. I can provide more details if desired, but in short we are doing a lot of automatic detection of object and property types to make a running locally on xml version of the product work with very little pain and very little extra configuration. In Java 1.5, you can specify these types like this: ListContactVO foo; In Flex2, if you have something like this: var foo : ArrayCollection; There is obviously no way of discovering at runtime, by reading the class definition, what types of objects are meant to be in that ArrayCollection. So we took advantage of the metadata construct in Flex2 to create a sort of annotation, which would make the Flex2 example look like this: [Collection(type=ContactVO)] var foo : ArrayCollection; Now by reading the metadata of the property foo, we are able to determine at runtime both that foo is an ArrayCollection, and that it is meant to contain ContactVO object instances. This doesn't have the Java benefit of actually enforcing the fact that only ContactVOs are in the collection, but it at least allows us to make very useful convention-based assumptions. This is a pretty powerful option in my opinion, unfortunately Flex2 blindly throws out all metadata it doesn't understand. Through some google code searching, we were able to discover an obscure compiler option that looks like this: -keep-as3-metadata+=Collection This option would then make it such that Flex does not throw out [Collection] metadata. The problem is, this compiler option only works in DEBUG mode. In debug mode all of our code affected by this works beautifully and without fault (and would probably be a very useful tool to provide to the community). In RUN mode, it fails miserably. In short, Flex2 is ignoring these extra compiler options when not in DEBUG mode. We are no longer able to see the [Collection] metadata. Does anyone have any idea for working around this? We are using ANT for our builds, and I can guarantee that the -keep-as3-metadata compiler option is being used identically in all cases. It simply gets ignored in RUN mode, and Flex2 goes back to throwing out all metadata it doesn't understand. -- ::| Carlos Rovira ::| http://www.carlosrovira.com ::| http://www.madeinflex.com
Re: [flexcoders] import * vs. import a.b.c performance?
It would also be nice if the linker was connected to the 'Organize Imports' command to get ride of the weeds. As you build a class, sometimes you don't end up using what was imported and you know but its a pain in the ass to find them. Peace, Mike On 1/27/07, JesterXL [EMAIL PROTECTED] wrote: import * == for slackers import a.b.c == for pimp-tastic Flex coders import * allows the compiler to look in the package to find the class it needs. If you don't have *, you have to set it manually. Both will result in the same amount of classes being exported into the SWF, so file size is the same. Readability of the code, however, degrades because you don't know what classes are used in the class. Caveat with the above is just because you use import doesn't mean the class is actually exported into the SWF, you have to actually use it, like in a variable defintion for example: import mx.controls.Button; var myC:Button; So, it's presumtious to think just because an import is used that it IS IN FACT used... could be cruft. Devil's Advocate? No, but I'll play the role. * is great when you are learning, and know ahead of time you are about to import a ton of stuff. The same reason *, :Object, and other loose typing things are there (allowing opt-in strict typing as it were) allows you to code faster, and type less. On Jan 27, 2007, at 9:07 PM, Mike Crowe wrote: Hi folks, Any downside of doing an: import * vs. import com.adobe.cairngorm.control.CairngormEventDispatcher; for example? Any reason not to do this? TIA Mike -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.
[flexcoders] Re: Does Flex work with Java without FDS?
How are you on making web services? If you can do that I do have a code generator that creates a test UI and all supporting code to talk to the service using best practice patterns. (I still need to handle ArrayCollections to populate grids/dropdowns, but that's just a couple hours away and I plan to find time this weekend) respond directly back to my email, as I don't always keep up on this list. thanks
Re: [flexcoders] Removing Slider Thumb
Daniel Freiman wrote: Does anyone know how to remove a single thumb from a slider without losing the values of the other thumbs? Looking at the source code for the Slider component (the 2.0 version, not 2.01) (Slider.as) I'd say you'd have to implement your own Slider Class. Whenever you change the thumbsCount, the component will delete all thumbs and recreate them. It should be quite trivial to do so: Just copy and paste all the slider code into your new class and implement your changes. Impelementing the change in the createThumbs function would be my first idea, but I haven't tried. Alternatively perhaps you could just remember the values, reset the thumbscount and then set the values to the remaining thumb. Don't know if that would be possible without the remaining thumb flickering/moving though. HTH Ben
[flexcoders] Re: DataGrid Custom Image Renderer - Random Cache Weirdness
Anybody? --- In flexcoders@yahoogroups.com, Anthony Onumonu [EMAIL PROTECTED] wrote: I seem to be having very weird results. The correct image from my cell renderer does not always display. I'm not sure if it's some sort of caching from previous requests. Is the problem with the way I'm setting the data on the cell renderer. I've tried various methods all rendering weird results. Sample node from XML returned from HTTP request file file_namefile_directory_list.php/file_name file_size1.8/file_size file_typefile/file_type file_modified27th January, 2007/file_modified file_extensionphp/file_extension /file Cell Renderer ?xml version=1.0 encoding=utf-8? !-- itemRenderers\dataGrid\myComponents\RendererDGHeader.mxml -- mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ import mx.controls.dataGridClasses.DataGridColumn; [Embed(source=png/php.png)] [Bindable] public var php:Class; private function setCustomIcon(setValue:String):void { image_id.source = this[setValue]; } ]] /mx:Script mx:HBox horizontalAlign=center mx:Image id=image_id x=20 height=20 creationComplete=setCustomIcon(data.file_extension) / /mx:HBox /mx:HBox Datagrid mx:DataGrid id=dgUserRequest width=100% height=100% dataProvider={userRequest.lastResult.files.file} itemClick=itemClickEvent(event); borderStyle=solid mx:columns mx:DataGridColumn width=120 headerText= dataField=file_type itemRenderer=renderer.icons/ mx:DataGridColumn headerText=Name dataField=file_name/ mx:DataGridColumn headerText=Size dataField=file_size/ mx:DataGridColumn headerText=Date Modified dataField=file_modified/ mx:DataGridColumn headerText=Extension dataField=file_extension/ /mx:columns /mx:DataGrid
Re: [flexcoders] Organize imports
What about in the Eclipse plugin? c+s+O doesn't work there. On 1/26/07, Steve Cox [EMAIL PROTECTED] wrote: Ctrl + shift + o -Original Message- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Stembert Olivier (BIL) *Sent:* 26 January 2007 08:50 *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Organize imports Ho all, Do you know how to organize imports in FlexBuilder? Rgds, Olivier - 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] Tree component bug with Flex builder 2.01 update
Hi folks, I upgraded recently to 2.01 and noticed this bug while testing the app I'm working on. When adding/deleting a leaf to/from node at run time when the node is open, the same node duplicated with all the leafs appears beneath itself, all roll overs are also completely messed up. You should be able to experience it by using the code on the adobe website like I did at: http://www.adobe.com/devnet/flex/quickstart/working_with_tree/ Copy and paste the sample code of Add and remove leaf nodes at run time. Please note that you will have to delete an extra double quote (detected by flex builder). Run the app, add an operation employee from the form below the tree. Result: The operation employee is added but the Operation node is cloned. Delete a leaf (employee) of the operation node or engineering node. Result: employee is deleted but the operation node is cloned. When you test the online example you don't have this bug as I believe it is compiled with v2.00. I have uninstall and reinstall FB 2 and the sample code run as expected. I hope it will be fixed quickly .. or is it just a problem with my laptop.
[flexcoders] Flex + PayPal.
Hi everyone. All very simple. In HTML I use this and it's working. I see paypal page with correct information. form method=post action= https://www.sandbox.paypal.com/cgi- bin/webscr input type=hidden name=cmd value=_xclick input type=hidden name=business value=[EMAIL PROTECTED] input type=hidden name=item_name value=Shopping cart input type=hidden name=item_number value=22 input type=hidden name=amount value=42.00 input type=hidden name=no_shipping value=0 input type=hidden name=rm value=1 input type=submit value=Checkout /FORM In Flex I use this: var url : String = https://www.sandbox.paypal.com/cgi-bin/webscr;; var variables : URLVariables = new URLVariables(); variables.cmd = _xclick; variables.business = [EMAIL PROTECTED]; variables.item_name = Shopping cart; variables.item_number = 22; variables.amount = 15.00; variables.no_shipping = 0; variables.rm = 1; var request:URLRequest = new URLRequest(url); request.method = URLRequestMethod.POST; request.data = variables; try { navigateToURL(request); } catch (e:Error) { } And I see paypal page with We are sorry, we are experiencing temporary difficulties. Please try again later. ... Anybody know how it fix?
Re: [flexcoders] Crossdomain
The domain that has the image is cineminha.com.br, the crossdomain is there: http://www.cineminha.com.br/crossdomain.xml I have more domains on this server, like store.filmeonline.com.br where the .swf is located... If I call just mx:Image it works fine, but iwhen I try to do something with the bitmap it calls that security error On 1/28/07, Brendan Meutzner [EMAIL PROTECTED] wrote: On which server, and where is your crossdomain located? Is the cineminha.com.br server a multi-hosting environment? Brendan On 1/27/07, Leonardo Sobral [EMAIL PROTECTED] wrote: I´m trying to load an image from outsite of my domain and its giving me an error, the crossdomain is there, set to permit *... I get the same error online and from localhost. Any clue? SecurityError: Error #2122: Security sandbox violation: BitmapData.draw: http://localhost:8500/Store/bin/index.swf cannot access http://www.cineminha.com.br/AdvHTML_Upload/photos/poster_diamante.jpg . A policy file is required, but the checkPolicyFile flag was not set when this media was loaded. at flash.display::BitmapData/draw() at mx.effects.effectClasses::MaskEffectInstance/::getVisibleBounds() at mx.effects.effectClasses::MaskEffectInstance/::initMask() at mx.effects.effectClasses::MaskEffectInstance/startEffect() at mx.effects::Effect/play() at mx.effects::EffectManager$/::createAndPlayEffect () at mx.effects::EffectManager$/http://www.adobe.com/ 2006/flex/mx/internal::eventHandler() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent () at mx.core::UIComponent/dispatchEvent() at mx.core::UIComponent/setVisible() at mx.core::UIComponent/set visible() at mx.containers::ViewStack/mx.containers:ViewStack::updateDisplayList() at mx.core::UIComponent/validateDisplayList() at mx.core::Container/validateDisplayList() at mx.managers::LayoutManager/::validateDisplayList() at mx.managers::LayoutManager/::doPhasedInstantiation () at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/::callLaterDispatcher2() at mx.core::UIComponent/::callLaterDispatcher() at flash.utils::Timer/flash.utils:Timer::_timerDispatch () at flash.utils::Timer/flash.utils:Timer::tick() -- Brendan Meutzner Stretch Media - RIA Adobe Flex Development [EMAIL PROTECTED] http://www.stretchmedia.ca -- Leonardo Sobral [EMAIL PROTECTED] Adobe Certified Professional Adobe Certified Instructor
[flexcoders] Flex applications look like Fisher-Price toys
Hi; I'm a developper but also a web designer. And I'm a beginner with Flex... But I am frustrated with the possibilities of design of Flex. All Flex applications I saw have same look: great buttons and input fields, great gap between lines. Every elements are great: these applications look like Fisher-price toys ! (you know ? Toys for children) Yes, the http://www.scalenine.com/ shows beautiful themes. But all components have same size ! A have made a click-model for an application in HTML, and now I must write it with Flex: I loose 1/3 of my page because I can't reduce gab between lines, I can't reduce padding between the label and the border of the buttons, ... (oh yes I can reduce all elements: but labels and texts become trucanted !) - Does a solution exist? - Can someone show me a Flex site where there is a real work of design? - Can I expect improvements with Flex 3.0 ? Thank's
[flexcoders] Re: DataGrid Custom Image Renderer - Random Cache Weirdness
Or does anybody know where there's an example of a datagrid that has a custom renderer populated with images that have been embed into the application? --- In flexcoders@yahoogroups.com, Anthony Onumonu [EMAIL PROTECTED] wrote: I seem to be having very weird results. The correct image from my cell renderer does not always display. I'm not sure if it's some sort of caching from previous requests. Is the problem with the way I'm setting the data on the cell renderer. I've tried various methods all rendering weird results. Sample node from XML returned from HTTP request file file_namefile_directory_list.php/file_name file_size1.8/file_size file_typefile/file_type file_modified27th January, 2007/file_modified file_extensionphp/file_extension /file Cell Renderer ?xml version=1.0 encoding=utf-8? !-- itemRenderers\dataGrid\myComponents\RendererDGHeader.mxml -- mx:HBox xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script ![CDATA[ import mx.controls.dataGridClasses.DataGridColumn; [Embed(source=png/php.png)] [Bindable] public var php:Class; private function setCustomIcon(setValue:String):void { image_id.source = this[setValue]; } ]] /mx:Script mx:HBox horizontalAlign=center mx:Image id=image_id x=20 height=20 creationComplete=setCustomIcon(data.file_extension) / /mx:HBox /mx:HBox Datagrid mx:DataGrid id=dgUserRequest width=100% height=100% dataProvider={userRequest.lastResult.files.file} itemClick=itemClickEvent(event); borderStyle=solid mx:columns mx:DataGridColumn width=120 headerText= dataField=file_type itemRenderer=renderer.icons/ mx:DataGridColumn headerText=Name dataField=file_name/ mx:DataGridColumn headerText=Size dataField=file_size/ mx:DataGridColumn headerText=Date Modified dataField=file_modified/ mx:DataGridColumn headerText=Extension dataField=file_extension/ /mx:columns /mx:DataGrid
Re: [flexcoders] Flex applications look like Fisher-Price toys
Paul, Great subject line :-) - Does a solution exist? YES. Please stand by. I suspect others will pile on this thread with ideas for you. - Can someone show me a Flex site where there is a real work of design? http://www.jessewarden.com/flex/flash_flex/source/ For the link above, the following link gives full detailed explanation. (Thank you Jesse :-) http://www.jessewarden.com/archives/2006/12/integrating_a_f.html - Can I expect improvements with Flex 3.0 ? I am just guessing here, but I think everything you need is already in Flex 2. hth, g On 1/26/07, Paul Barbieux [EMAIL PROTECTED] wrote: Hi; I'm a developper but also a web designer. And I'm a beginner with Flex... But I am frustrated with the possibilities of design of Flex. All Flex applications I saw have same look: great buttons and input fields, great gap between lines. Every elements are great: these applications look like Fisher-price toys ! (you know ? Toys for children) Yes, the http://www.scalenine.com/ shows beautiful themes. But all components have same size ! A have made a click-model for an application in HTML, and now I must write it with Flex: I loose 1/3 of my page because I can't reduce gab between lines, I can't reduce padding between the label and the border of the buttons, ... (oh yes I can reduce all elements: but labels and texts become trucanted !) - Does a solution exist? - Can someone show me a Flex site where there is a real work of design? - Can I expect improvements with Flex 3.0 ? Thank's
RE: [flexcoders] Cairngorm - Question on using ResultHandler
You are doing things the right way. If after you login you want to do some more, look at the SequenceCommand. You would basically add a executeNextCommand() statement after your model.workflowState statement. Dimitrios Gianninas RIA Developer Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of malik_robinson Sent: Sunday, January 28, 2007 1:49 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Cairngorm - Question on using ResultHandler Hi, I have a question using Cairngorm and Commands. I am new to it but its making more sense to me each day at least it seems that way. I have the following in my LoginCommand.as public function result( data:Object ):void { var event:ResultEvent = data as ResultEvent; if (event.result.length 0) { model.workflowState = ModelLocator.VIEWING_HOMEPAGE; } else { model.login.statusMsg = Your login credentials are invalid, please try again.; } } 1. Is there anything wrong with the way I am doing the above? 2. I would like to call some other remote objects s! o I can populate some datagrids after the user has been authenticated and then load the home page of the app as I am doing above. -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
RE: [flexcoders] Organize imports
Right-click anywhere in the files, select Source and then Organize Imports Dimitrios Gianninas RIA Developer Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mike Crowe Sent: Sunday, January 28, 2007 8:33 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Organize imports What about in the Eclipse plugin? c+s+O doesn't work there. On 1/26/07, Steve Cox [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Ctrl + shift + o -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com http://yahoogroups.com ] On Behalf Of Stembert Olivier (BIL) Sent: 26 January 2007 08:50 To: flexcoders@yahoogroups.com Subject: [flexcoders] Organize imports Ho all, Do you know how to organize imports in FlexBuilder? Rgds, Olivier - An electronic message is not binding on its sender. Any message referring to a binding engagement must be confirmed in writing and duly signed. - -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
[flexcoders] Re: ColumnChart - how to change the clicked column border
please look at my code. i have managed to change the border on mouse roll over/out and select a column on mouse click. BUT... how do i unselect a previously selected column? package components.highlightColumn { import flash.display.Graphics; import flash.geom.Rectangle; import mx.core.IDataRenderer; import mx.graphics.IStroke; import mx.core.UIComponent; import mx.graphics.Stroke; import mx.graphics.LinearGradient; import mx.graphics.GradientEntry; import flash.events.MouseEvent; import mx.charts.chartClasses.Series; public class SelectedColumnRenderer extends Series { public function SelectedColumnRenderer ():void { super(); this.addEventListener(MouseEvent.ROLL_OVER,rollOverHandler); this.addEventListener(MouseEvent.ROLL_OUT,rollOutHandler); this.addEventListener(MouseEvent.MOUSE_DOWN,downHandler); } private var _data:Object; private var stroked:Boolean = false; private var selected:Boolean; private function rollOverHandler(e:MouseEvent):void { stroked = true; invalidateDisplayList(); } private function rollOutHandler(e:MouseEvent):void { if(!selected) stroked = false; invalidateDisplayList(); } private function downHandler(e:MouseEvent):void { selected = true; invalidateDisplayList(); } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); var stroke:IStroke = new Stroke(0x00,2); var w:Number = stroke.weight / 2 ; var rc:Rectangle = new Rectangle(w, 0, width-1 * w, height-1 * w); var fill:LinearGradient = new LinearGradient(); var g1:GradientEntry = new GradientEntry(0x85250B,0); var g2:GradientEntry = new GradientEntry(0xF1AC52,.3); var g3:GradientEntry = new GradientEntry(0xDA3507,.55); var g4:GradientEntry = new GradientEntry(0x85250B,1); fill.entries = [g1,g2,g3,g4]; var g:Graphics = graphics; g.clear(); g.moveTo(rc.left,rc.top); fill.begin(g,rc); if (stroked) stroke.apply(g); g.lineTo(rc.width,0); g.lineTo(rc.width,rc.height); g.lineTo(0,rc.height); g.lineTo(0,0); fill.end(g); this.buttonMode = true; } } } --- In flexcoders@yahoogroups.com, shemeshkale [EMAIL PROTECTED] wrote: hi, i got a simple ColumnChart. i want to make a selected column when one is clicked. kind of ToggleColumnChart :-) when a specific column is clicked its border shoul change. how do i change the clicked column border?? an example code would be great tnx
Re: [flexcoders] Re: PIVOT TABLE and CHART
hi sanjay, we've started the development. anyway, will let you know once it's done.. or once im stuck hehe. email m if you are interested in a possible collaborative work. cheers! --- sanjaypmg [EMAIL PROTECTED] wrote: I am trying to do this. --- In flexcoders@yahoogroups.com, leds usop [EMAIL PROTECTED] wrote: Hi everyone, BEfore we proceed with implementing pivot table (of MS excel -- same functionality although not necessarily with drag and drop support) in Flex, we wanna know if someone else in this group has already done this( or is currently doing this)? Care to share notes, tips, etc? Any help will be appreciated. Thnx! _ ___ Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html It's here! Your new message! Get new email alerts with the free Yahoo! Toolbar. http://tools.search.yahoo.com/toolbar/features/mail/
[flexcoders] Re: Does Flex work with Java without FDS?
Really depends on what you need to do, but per the below link it's not a recommended architecture. Isn't IT fun? :) http://www.onjava.com/pub/a/onjava/2003/02/26/flash_remoting.html Use a Service-Oriented Architecture While you can directly access and invoke methods on servlets, JSPs, and EJBs with Flash Remoting, it does not mean that you should. It is important here to consider what Macromedia is doing today, what they are likely to do tomorrow, and where enterprise application development is going in general. In all of these areas, Service-Oriented Architectures feature heavily. A Service-Oriented Architecture describes an application designed to expose a set of loosely-coupled business services that may be accessed by a range of clients to assemble application functionality. Clients may be J2EE or .NET applications or Flash clients. This architecture makes the applications providing the services flexible and scalable. Enterprise application developers are rapidly adopting Service-Oriented Architectures, using web services to communicate between applications. The EJB 2.1 specification will require that all J2EE application servers provide the ability to expose Stateless Session Beans as web services. .NET already relies heavily on web services. This all suggests that Macromedia released Flash Remoting as an intermediate step toward allowing Flash to communicate via web services. Developers should heed this trend toward Service-Oriented Architectures and use Flash Remoting to support a Service-Oriented Architecture that can easily be moved to web services in their own applications.
Re: [flexcoders] Flex applications look like Fisher-Price toys
Flex 2 has unlimited design potential. You are not limited like you think... If a component won't do what you want, you can always re-skin it. Here's an example of a Flex site that looks pretty much nothing like the standard skin: http://www.thebetterside.com/scrawl/ScrawlExample3.html Shan Paul Barbieux wrote: Hi; I'm a developper but also a web designer. And I'm a beginner with Flex... But I am frustrated with the possibilities of design of Flex. All Flex applications I saw have same look: great buttons and input fields, great gap between lines. Every elements are great: these applications look like Fisher-price toys ! (you know ? Toys for children) Yes, the http://www.scalenine.com/ http://www.scalenine.com/ shows beautiful themes. But all components have same size ! A have made a click-model for an application in HTML, and now I must write it with Flex: I loose 1/3 of my page because I can't reduce gab between lines, I can't reduce padding between the label and the border of the buttons, ... (oh yes I can reduce all elements: but labels and texts become trucanted !) - Does a solution exist? - Can someone show me a Flex site where there is a real work of design? - Can I expect improvements with Flex 3.0 ? Thank's
[flexcoders] Re: Flash simple question
Hi Olivier, SWF is stored at the Local Settings\Temporary Internet Files folders of your workstation. Thanks, Sanjay --- In flexcoders@yahoogroups.com, Stembert Olivier \(BIL\) [EMAIL PROTECTED] wrote: Hi all, When a swf file is downloaded to my computer, where is it stored? I mean where on the file system? Thanks Olivier - 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] Flex applications look like Fisher-Price toys
Hello, Many screenshots of Flex applications here: http://www.flickr.com/photos/flexapps/ Many of them look not at all like the out of the box look of Flex. Regards, David Adobe From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shannon Hicks Sent: Sunday, January 28, 2007 11:27 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex applications look like Fisher-Price toys Flex 2 has unlimited design potential. You are not limited like you think... If a component won't do what you want, you can always re-skin it. Here's an example of a Flex site that looks pretty much nothing like the standard skin: http://www.thebetterside.com/scrawl/ScrawlExample3.html http://www.thebetterside.com/scrawl/ScrawlExample3.html Shan Paul Barbieux wrote: Hi; I'm a developper but also a web designer. And I'm a beginner with Flex... But I am frustrated with the possibilities of design of Flex. All Flex applications I saw have same look: great buttons and input fields, great gap between lines. Every elements are great: these applications look like Fisher-price toys ! (you know ? Toys for children) Yes, the http://www.scalenine.com/ http://www.scalenine.com/ shows beautiful themes. But all components have same size ! A have made a click-model for an application in HTML, and now I must write it with Flex: I loose 1/3 of my page because I can't reduce gab between lines, I can't reduce padding between the label and the border of the buttons, ... (oh yes I can reduce all elements: but labels and texts become trucanted !) - Does a solution exist? - Can someone show me a Flex site where there is a real work of design? - Can I expect improvements with Flex 3.0 ? Thank's
Re: [flexcoders] Flex applications look like Fisher-Price toys
Paul, Following up on the link Shannon gave you, for a blow-by-blow on how that design was created see the following two links: http://onreflexion.blogspot.com/2007/01/napkin-skins-stage-one-css-styles-and.html http://onreflexion.blogspot.com/2007/01/napkin-skins-stage-two-programmatic.html And here is another fun example: http://demo.quietlyscheming.com/displayShelf/index.html with blow-by-blow and source code: http://www.quietlyscheming.com/blog/2006/11/01/using-the-graphics-api-for-richer-flex-the-displayshelf-component-from-my-max-talk/ And another: http://weblogs.macromedia.com/auhlmann/archives/2006/11/download_distor.cfm Really man, you are only limited by your own imagination and skill :-) Check out the outline of this Adobe official training class: Flex 2: Programming the Visual Experience http://www.adobe.com/support/training/instructor_led_curriculum/program_visual_experience.html If you can find a training center running this class, it will be a great way to come up to speed on how to get total control over design on your Flex 2 apps. btw ... when you ultimately master getting the look that you want in Flex, please do post us back a link to it (and maybe even some comments about how you achieved it :-) Best regards, g On 1/28/07, Shannon Hicks [EMAIL PROTECTED] wrote: Flex 2 has unlimited design potential. You are not limited like you think... If a component won't do what you want, you can always re-skin it. Here's an example of a Flex site that looks pretty much nothing like the standard skin: http://www.thebetterside.com/scrawl/ScrawlExample3.html Shan Paul Barbieux wrote: Hi; I'm a developper but also a web designer. And I'm a beginner with Flex... But I am frustrated with the possibilities of design of Flex. All Flex applications I saw have same look: great buttons and input fields, great gap between lines. Every elements are great: these applications look like Fisher-price toys ! (you know ? Toys for children) Yes, the http://www.scalenine.com/ shows beautiful themes. But all components have same size ! A have made a click-model for an application in HTML, and now I must write it with Flex: I loose 1/3 of my page because I can't reduce gab between lines, I can't reduce padding between the label and the border of the buttons, ... (oh yes I can reduce all elements: but labels and texts become trucanted !) - Does a solution exist? - Can someone show me a Flex site where there is a real work of design? - Can I expect improvements with Flex 3.0 ? Thank's
[flexcoders] Re: FABridge
I was just wondering what the status for this next release was. If there wont be anything soon and I could get a little bit of direction of how to fix this problem I could do it myself, I've taken a look at the javascript but I get lost very quickly. Thanks, -John --- In flexcoders@yahoogroups.com, David Mendels [EMAIL PROTECTED] wrote: Hi, expect a new build on labs very soon (within a week it is expected, but not guaranteed.) -David From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of john_69_11 Sent: Tuesday, January 09, 2007 11:38 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] FABridge Is anyone else out there using FABridge? I'm testing it out on Safari and getting js errors, has anyone else ran into this and possible solutions? The exception I get is: Value undefined (result of expression this.target.getRoot) is not object. FABridge.js, line 191 If I could get any help at all with this I would really apprechiate it. -John
Re: [flexcoders] Crossdomain
Leonardo, Just having crossdomain.xml is not enough if you want to do Bitmap operations, as I mentione din my previous reply. I posted something on blog, you can see how can you fix this issue. http://www.abdulqabiz.com/blog/archives/flash_and_actionscript/enabling_bitmapdatad.php -abdul On 1/28/07, Leonardo Sobral [EMAIL PROTECTED] wrote: The domain that has the image is cineminha.com.br, the crossdomain is there: http://www.cineminha.com.br/crossdomain.xml I have more domains on this server, like store.filmeonline.com.br where the .swf is located... If I call just mx:Image it works fine, but iwhen I try to do something with the bitmap it calls that security error On 1/28/07, Brendan Meutzner [EMAIL PROTECTED] wrote: On which server, and where is your crossdomain located? Is the cineminha.com.br server a multi-hosting environment? Brendan On 1/27/07, Leonardo Sobral [EMAIL PROTECTED] wrote: I´m trying to load an image from outsite of my domain and its giving me an error, the crossdomain is there, set to permit *... I get the same error online and from localhost. Any clue? SecurityError: Error #2122: Security sandbox violation: BitmapData.draw: http://localhost:8500/Store/bin/index.swf cannot access http://www.cineminha.com.br/AdvHTML_Upload/photos/poster_diamante.jpg . A policy file is required, but the checkPolicyFile flag was not set when this media was loaded. at flash.display::BitmapData/draw() at mx.effects.effectClasses::MaskEffectInstance/::getVisibleBounds() at mx.effects.effectClasses::MaskEffectInstance/::initMask() at mx.effects.effectClasses::MaskEffectInstance/startEffect() at mx.effects::Effect/play() at mx.effects::EffectManager$/::createAndPlayEffect () at mx.effects::EffectManager$/http://www.adobe.com/ 2006/flex/mx/internal::eventHandler() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent () at mx.core::UIComponent/dispatchEvent() at mx.core::UIComponent/setVisible() at mx.core::UIComponent/set visible() at mx.containers::ViewStack/mx.containers:ViewStack::updateDisplayList() at mx.core::UIComponent/validateDisplayList() at mx.core::Container/validateDisplayList() at mx.managers::LayoutManager/::validateDisplayList() at mx.managers::LayoutManager/::doPhasedInstantiation () at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/::callLaterDispatcher2() at mx.core::UIComponent/::callLaterDispatcher() at flash.utils::Timer/flash.utils:Timer::_timerDispatch () at flash.utils::Timer/flash.utils:Timer::tick() -- Brendan Meutzner Stretch Media - RIA Adobe Flex Development [EMAIL PROTECTED] http://www.stretchmedia.ca -- Leonardo Sobral [EMAIL PROTECTED] Adobe Certified Professional Adobe Certified Instructor
[flexcoders] Flex working directory
Hi List, I try to integrate FLEX 2.0 applications into the Liferay Portal. At a first glance this should not to difficult but as each of us knows the details are difficult ;-) Until now I tried to use FLEX applications which load their information from XML files. In the FLEX application there is a relative path from the MXML file to the resource files ( like XML files, Images etc. ). The standalone FLEX application works like a charm. Then I put the FLEX application into a JSR 168 portlet container by embedding the SWF file into the view JSP file of the portlet. The SWF file can be loaded but the working directory seems to be changed. All resource files can't be loaded. Is there a possibility to set a flashvar which tells the Flash Plugin which is the base folder from which it should load resource files? Regards, Christoph -- Christoph Guse Löhstraße 34 41747 Viersen Tel. / VoIP 0 21 62 / 50 24 066 Mobil 01 51 / 17 80 74 84
Re: [flexcoders] Crossdomain
Finally got this to work! here´s the solution: I stoped fighting with fp security sandbox and tried to make via coldfusion proxy. The example on Adobe website didnt work so I made some changes on the code... mx:Image id=img source=cfm/proxy.cfm?url= http://www.somedomain.com/image.jpg; / the proxy.cfm file: cfprocessingdirective suppressWhiteSpace = Yes cfhttp url=#URL.url# method=get/ cfcontent type=image/jpeg reset=Yes cfoutput#toString(cfhttp.filecontent.toByteArray())#/cfoutput /cfprocessingdirective Thanks a lot for your help! -- Leonardo Sobral [EMAIL PROTECTED] Adobe Certified Professional Adobe Certified Instructor On 1/28/07, Abdul Qabiz [EMAIL PROTECTED] wrote: There is Security Sandbox so you can not draw until you have right permissions, just having crossdomain.xml is not sufficient. You need to explictly set checkPolicyFile flag so that Flash Player 9 downloads the policy file (crossdomain.xml) and grants the access to your code, if it is allowed in policy file. I am not sure which API you are using to load images. If you are using Loader, then check for this. Loader.load (..) method's second param is instance of LoaderContext, this is where you can set checkPolicyFile=true. Read the docs here:- Loader.load () - http://livedocs.macromedia.com/flex/2/langref/flash/display/Loader.html#load () LoaderContext: http://livedocs.macromedia.com/flex/2/langref/flash/system/LoaderContext.html Check out these links:- http://missinghref.com/jdsblog/archive/2006/03/14/flash_8_cross_domain_bitmapdata_.aspx http://www.abdulqabiz.com/blog/archives/flash_and_actionscript/bitmapdatadraw.php -abdul On 1/28/07, Brendan Meutzner [EMAIL PROTECTED] bmeutzner%40gmail.com wrote: On which server, and where is your crossdomain located? Is the cineminha.com.br server a multi-hosting environment? Brendan On 1/27/07, Leonardo Sobral [EMAIL PROTECTED]leonardo.sobral%40gmail.com wrote: I´m trying to load an image from outsite of my domain and its giving me an error, the crossdomain is there, set to permit *... I get the same error online and from localhost. Any clue? SecurityError: Error #2122: Security sandbox violation: BitmapData.draw: http://localhost:8500/Store/bin/index.swf cannot access http://www.cineminha.com.br/AdvHTML_Upload/photos/poster_diamante.jpg . A policy file is required, but the checkPolicyFile flag was not set when this media was loaded. at flash.display::BitmapData/draw() at mx.effects.effectClasses::MaskEffectInstance/::getVisibleBounds() at mx.effects.effectClasses::MaskEffectInstance/::initMask() at mx.effects.effectClasses::MaskEffectInstance/startEffect() at mx.effects::Effect/play() at mx.effects::EffectManager$/::createAndPlayEffect () at mx.effects::EffectManager$/ http://www.adobe.com/2006/flex/mx/internal::eventHandler() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent () at mx.core::UIComponent/dispatchEvent() at mx.core::UIComponent/setVisible() at mx.core::UIComponent/set visible() at mx.containers::ViewStack/mx.containers:ViewStack::updateDisplayList () at mx.core::UIComponent/validateDisplayList() at mx.core::Container/validateDisplayList() at mx.managers::LayoutManager/::validateDisplayList() at mx.managers::LayoutManager/::doPhasedInstantiation () at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/::callLaterDispatcher2() at mx.core::UIComponent/::callLaterDispatcher() at flash.utils::Timer/flash.utils:Timer::_timerDispatch () at flash.utils::Timer/flash.utils:Timer::tick() -- Brendan Meutzner Stretch Media - RIA Adobe Flex Development [EMAIL PROTECTED] brendan.meutzner%40stretchmedia.ca http://www.stretchmedia.ca
Re: [flexcoders] Flex working directory
Check out the base attribute. http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_04157 On Jan 28, 2007, at 12:52 PM, Christoph Guse wrote: Hi List, I try to integrate FLEX 2.0 applications into the Liferay Portal. At a first glance this should not to difficult but as each of us knows the details are difficult ;-) Until now I tried to use FLEX applications which load their information from XML files. In the FLEX application there is a relative path from the MXML file to the resource files ( like XML files, Images etc. ). The standalone FLEX application works like a charm. Then I put the FLEX application into a JSR 168 portlet container by embedding the SWF file into the view JSP file of the portlet. The SWF file can be loaded but the working directory seems to be changed. All resource files can't be loaded. Is there a possibility to set a flashvar which tells the Flash Plugin which is the base folder from which it should load resource files? Regards, Christoph -- Christoph Guse Löhstraße 34 41747 Viersen Tel. / VoIP 0 21 62 / 50 24 066 Mobil 01 51 / 17 80 74 84
Re: [flexcoders] Flex working directory
Yeah, look at the base param of OBJECT/EMBED tag. By default, everything is loaded relative to html-wrapper (which hosts SWF). But you can change that by specifying the base path.. http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_12701 On 1/28/07, Christoph Guse [EMAIL PROTECTED] wrote: Hi List, I try to integrate FLEX 2.0 applications into the Liferay Portal. At a first glance this should not to difficult but as each of us knows the details are difficult ;-) Until now I tried to use FLEX applications which load their information from XML files. In the FLEX application there is a relative path from the MXML file to the resource files ( like XML files, Images etc. ). The standalone FLEX application works like a charm. Then I put the FLEX application into a JSR 168 portlet container by embedding the SWF file into the view JSP file of the portlet. The SWF file can be loaded but the working directory seems to be changed. All resource files can't be loaded. Is there a possibility to set a flashvar which tells the Flash Plugin which is the base folder from which it should load resource files? Regards, Christoph -- Christoph Guse Löhstraße 34 41747 Viersen Tel. / VoIP 0 21 62 / 50 24 066 Mobil 01 51 / 17 80 74 84
Re: [flexcoders] Crossdomain
Yup! That would always work, now you going through proxy. But what I suggested was different thing.. Doesn't matter, as long as you got it working and happy with the solution. -abdul On 1/28/07, Leonardo Sobral [EMAIL PROTECTED] wrote: Finally got this to work! here´s the solution: I stoped fighting with fp security sandbox and tried to make via coldfusion proxy. The example on Adobe website didnt work so I made some changes on the code... mx:Image id=img source=cfm/proxy.cfm?url= http://www.somedomain.com/image.jpg; / the proxy.cfm file: cfprocessingdirective suppressWhiteSpace = Yes cfhttp url=#URL.url# method=get/ cfcontent type=image/jpeg reset=Yes cfoutput#toString(cfhttp.filecontent.toByteArray())#/cfoutput /cfprocessingdirective Thanks a lot for your help! -- Leonardo Sobral [EMAIL PROTECTED] Adobe Certified Professional Adobe Certified Instructor On 1/28/07, Abdul Qabiz [EMAIL PROTECTED] wrote: There is Security Sandbox so you can not draw until you have right permissions, just having crossdomain.xml is not sufficient. You need to explictly set checkPolicyFile flag so that Flash Player 9 downloads the policy file (crossdomain.xml) and grants the access to your code, if it is allowed in policy file. I am not sure which API you are using to load images. If you are using Loader, then check for this. Loader.load (..) method's second param is instance of LoaderContext, this is where you can set checkPolicyFile=true. Read the docs here:- Loader.load () - http://livedocs.macromedia.com/flex/2/langref/flash/display/Loader.html#load () LoaderContext: http://livedocs.macromedia.com/flex/2/langref/flash/system/LoaderContext.html Check out these links:- http://missinghref.com/jdsblog/archive/2006/03/14/flash_8_cross_domain_bitmapdata_.aspx http://www.abdulqabiz.com/blog/archives/flash_and_actionscript/bitmapdatadraw.php -abdul On 1/28/07, Brendan Meutzner [EMAIL PROTECTED]bmeutzner%40gmail.com wrote: On which server, and where is your crossdomain located? Is the cineminha.com.br server a multi-hosting environment? Brendan On 1/27/07, Leonardo Sobral [EMAIL PROTECTED]leonardo.sobral%40gmail.com wrote: I´m trying to load an image from outsite of my domain and its giving me an error, the crossdomain is there, set to permit *... I get the same error online and from localhost. Any clue? SecurityError: Error #2122: Security sandbox violation: BitmapData.draw: http://localhost:8500/Store/bin/index.swf cannot access http://www.cineminha.com.br/AdvHTML_Upload/photos/poster_diamante.jpg . A policy file is required, but the checkPolicyFile flag was not set when this media was loaded. at flash.display::BitmapData/draw() at mx.effects.effectClasses::MaskEffectInstance/::getVisibleBounds() at mx.effects.effectClasses::MaskEffectInstance/::initMask() at mx.effects.effectClasses::MaskEffectInstance/startEffect() at mx.effects::Effect/play() at mx.effects::EffectManager$/::createAndPlayEffect () at mx.effects::EffectManager$/http://www.adobe.com/2006/flex/mx/internal::eventHandler () at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent () at mx.core::UIComponent/dispatchEvent() at mx.core::UIComponent/setVisible() at mx.core::UIComponent/set visible() at mx.containers::ViewStack/mx.containers:ViewStack::updateDisplayList() at mx.core::UIComponent/validateDisplayList() at mx.core::Container/validateDisplayList() at mx.managers::LayoutManager/::validateDisplayList() at mx.managers::LayoutManager/::doPhasedInstantiation () at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/::callLaterDispatcher2() at mx.core::UIComponent/::callLaterDispatcher() at flash.utils::Timer/flash.utils:Timer::_timerDispatch () at flash.utils::Timer/flash.utils:Timer::tick() -- Brendan Meutzner Stretch Media - RIA Adobe Flex Development [EMAIL PROTECTED] brendan.meutzner%40stretchmedia.ca http://www.stretchmedia.ca
Re: [flexcoders] Setting LinkBar button size?
LinkButton have their own styles, you might wanna check it out. Sorry, have not yet tried so not able to give you handy.. -abdul On 1/22/07, Russell Sprague [EMAIL PROTECTED] wrote: Well I did set the horizontalGap to 0, but there is still a 10px or so space in the buttons. I didn't see anything in the style of the link bar that controlled the buttons Abdul Qabiz wrote: I have never done that but I have feeling you can reduce the space around buttons using styles if LinkBar and LinkButton. And also setting horizontalGap of LinkBar to reduce the gap between individual buttons in LinkBar... You might want to try that? -abdul On 1/22/07, Russell Sprague [EMAIL PROTECTED] wrote: Is there a way to set the width of the of the buttons in the LinkBar? I am trying to create a navigation path,where a user can click anywhere in the path to go to that location. ex. Parent/child/child/child etc. I was thinking using the linkbar would be easier then creating something from scratch, but I can't find a way to make the button fit the text, so there isn't space between the text. Thanks Russ
[flexcoders] Could it really take so much code to color a row in a DataGrid..?
Hello, I'm sure I've missed it, but is there a straight forward way to color the background of a DataGrid row..? Thanks for the info, Paul
Re: [flexcoders] variable change event
You can dispatch event from your custom MXML component... I suggest, having setters/getters functions in your custom component. Whenever a property is set, dispatch appropriate event. Read docs more about dispatching event. -abdul On 1/25/07, paperbyolga [EMAIL PROTECTED] wrote: Hi, i need help with a change event listener. I want to simply fire off a call to a webservice when a variable changes. I have a combobox that fires a function that sets a variable that gets passed to a component. if the variable changes in the component, i want to fire a webservice to get new data... perhaps there is a simple way to do this... so i'm open, thought an event listener would do the trick, but i've looked at a few things and frankly... i'm lost. New to flex, so getting my head around client server versus web programming is a challenge. any examples, help or direction would be great. thanks in advance. code is below. Shane * main comp ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml; width=100% height=100% backgroundColor=#ff horizontalScrollPolicy=off verticalScrollPolicy=off initialize=locws.getStates.send(); xmlns:st=stat.* mx:Script ![CDATA[ import mx.controls.Alert; import mx.utils.ArrayUtil; import mx.events.TreeEvent; [Bindable] private var thisLocationType:int = 0; [Bindable] private var thisLocationCode:String = '00'; [Bindable] private var thisLocLabel:String = ''; private function changeState():void { if (statsHome.visible == false) { statsHome.visible = true; } if (locStates.selectedItem.LOC_CODE == '00') { currentState=''; } else { currentState='locstateselected'; vCountyRadio.selected=false; vMetroRadio.selected=false; } lbHist.text = 'History: '; thisLocLabel = locStates.selectedItem.LOC_NAME; csState.label = ' ' + locStates.selectedItem.LOC_NAME; thisLocationCode = locStates.selectedItem.LOC_CODE; thisLocationType = 0; csSubLoc.label = ''; csZipcode.label = ''; } private function clickLocType (loctype:int):void { currentState='locsublocselected'; thisLocationType = loctype; thisLocationCode = ''; if (loctype == 1) { locws.getCounties.send(); subLocations.dataProvider = theCountiesList; } else if (loctype == 2) { locws.getCities.send(); subLocations.dataProvider = theCitiesList; } } private function changeSubLocation():void { if (thisLocationType == 1) { thisLocationCode = locStates.selectedItem.LOC_CODE + subLocations.selectedItem.LOC_CODE; } else if (thisLocationType == 2) { thisLocationCode = subLocations.selectedItem.LOC_CODE; } if (thisLocationType != 0) { locws.getZipcodes.send(); thisLocLabel = subLocations.selectedItem.LOC_NAME; csSubLoc.label = ' ' + subLocations.selectedItem.LOC_NAME; currentState='zipstate'; csZipcode.label = ''; } } private function setLocation():void { thisLocationType = 4; thisLocationCode = zipcodes.selectedItem.LOC_CODE; thisLocLabel = zipcodes.selectedItem.LOC_NAME; csZipcode.label = ' ' + zipcodes.selectedItem.FULL_NAME; } private function error():void { Alert.show(Error getting data... refresh the browser to try again., Error); } ]] /mx:Script mx:WebService id=locws wsdl={parentApplication.webServiceRootUrl} useProxy=false showBusyCursor=true fault=error() mx:operation name=getStates / mx:operation name=getCounties mx:request statecode{locStates.selectedItem.LOC_CODE} /statecode /mx:request /mx:operation mx:operation name=getCities mx:request statecode{locStates.selectedItem.LOC_CODE} /statecode /mx:request /mx:operation mx:operation name=getZipcodes mx:request loctype{thisLocationType}/loctype loccode{thisLocationCode}/loccode /mx:request /mx:operation /mx:WebService mx:ArrayCollection id=theStatesList source={ArrayUtil.toArray(locws.getStates.lastResult)} / mx:ArrayCollection id=theCountiesList source={ArrayUtil.toArray(locws.getCounties.lastResult)} / mx:ArrayCollection id=theCitiesList source={ArrayUtil.toArray(locws.getCities.lastResult)} / mx:ArrayCollection id=theZipcodeList source={ArrayUtil.toArray(locws.getZipcodes.lastResult)} / mx:states mx:State name=locstateselected mx:AddChild relativeTo={hblocstates} position=lastChild mx:VBox mx:RadioButton label=View Counties fontWeight=bold id=vCountyRadio click=clickLocType (1);/ mx:RadioButton label=View Cities fontWeight=bold id=vMetroRadio click=clickLocType(2);/ /mx:VBox /mx:AddChild mx:AddChild relativeTo={statsHome} position=before mx:VBox id=breadcrumb width=100% height=22 mx:HBox width=100% verticalAlign=middle mx:Label id=lbHist fontWeight=bold / mx:LinkButton id=csState toolTip=Click to return to this view click=changeState() / mx:LinkButton id=csSubLoc toolTip=Click to return to this view click=changeSubLocation() / mx:LinkButton id=csZipcode enabled=false / /mx:HBox /mx:VBox /mx:AddChild /mx:State mx:State name=locsublocselected basedOn=locstateselected mx:AddChild relativeTo={hblocstates} position=lastChild mx:ComboBox id=subLocations color=#00 labelField=LOC_NAME prompt=Select Location
Re: [flexcoders] Flex applications look like Fisher-Price toys
and everyone I tell that the app I am working on will be skinned seems to reply. It looks clean and simple, I like it. horses for courses , but while KAI had some great tools, the interfaces were a little overkill :) Impudent1 LeapFrog Productions
Re: [flexcoders] Flex working directory
Hi Adbul, hi Jester, thanks for that hint, it works like a charm! Regards, Christoph Abdul Qabiz schrieb: Yeah, look at the base param of OBJECT/EMBED tag. By default, everything is loaded relative to html-wrapper (which hosts SWF). But you can change that by specifying the base path.. http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_12701 http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_12701 On 1/28/07, *Christoph Guse* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi List, I try to integrate FLEX 2.0 applications into the Liferay Portal. At a first glance this should not to difficult but as each of us knows the details are difficult ;-) Until now I tried to use FLEX applications which load their information from XML files. In the FLEX application there is a relative path from the MXML file to the resource files ( like XML files, Images etc. ). The standalone FLEX application works like a charm. Then I put the FLEX application into a JSR 168 portlet container by embedding the SWF file into the view JSP file of the portlet. The SWF file can be loaded but the working directory seems to be changed. All resource files can't be loaded. Is there a possibility to set a flashvar which tells the Flash Plugin which is the base folder from which it should load resource files? Regards, Christoph -- Christoph Guse Löhstraße 34 41747 Viersen Tel. / VoIP 0 21 62 / 50 24 066 Mobil 01 51 / 17 80 74 84 -- Christoph Guse Löhstraße 34 41747 Viersen Tel. / VoIP 0 21 62 / 50 24 066 Mobil 01 51 / 17 80 74 84
[flexcoders] Re: Help me find the Amazon book spider example
You liked to too - I absolutely loved it!!! http://amaznode.fladdict.net/ Jonathan --- In flexcoders@yahoogroups.com, oneproofdk [EMAIL PROTECTED] wrote: A few weeks ago (as far as I remember) I saw a cool Flex2 app, that would take a search string for a book title, retrieve data from Amazon and display books in a web-like setup, where the books are connected by wires, if I click on a book, it would retrieve data from Amazon on that book. All those bookcovers were floating around, allowing the user to drag in the web and all things would follow. I'd love to see some example code on how to do this - can anyone help me ? I tryed to post this yesterday - but it never showed up here - so sorry for the double posts if it should arrive twice. Thanks, Mark
[flexcoders] Re: Flex Data Management, Remoting, and Enterprise Integration
I apologize for the slow response, but I wanted to say Thanks. The flex.data.DataServiceTransactionis just what I needed. Now, to transparently monitor the changes made during a service call... Thanks again, Luke Pillow http://deepthoughts.orsomethinglikethat.com --- In flexcoders@yahoogroups.com, Jeff Vroom [EMAIL PROTECTED] wrote: Hi Luke, Take a look at the javadoc for the class: flex.data.DataServiceTransaction. This is an api you can use to tell FDMS about changes made to objects that did not originate from flex clients using the AS DataService object to initiate these changes. It assumes those changes have already been applied to the database - it only manages updating the clients with those changes. This is used by the flexcab sample and to some extent by the crm sample. So probably after your remote object calls which update the database, you need to add a few lines of code to use this api to let clients know about those changes. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Luke Pillow Sent: Monday, January 22, 2007 2:20 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex Data Management, Remoting, and Enterprise Integration My question/problem involves the use of Data Management Services in conjunction with Flex Remoting and/or other enterprise java services The following scenario is based on Mind The Gap: My First Hibernate Enabled Flex Application (http://blogs.adobe.com/mtg/2006/08/my_first_hibernate_enabled_fle.html http://blogs.adobe.com/mtg/2006/08/my_first_hibernate_enabled_fle.html ): Given: - A Hibernate persistent data managed Employee object (Employee.java, and Employee.as) with properties; id, firstname, and lastname. - An EmployeeService (.java) object that is being accessed via a Flex RemoteObject or other Java code. I am having no problems updating an Employee's properties via a Flex UI app and seeing those changes being pushed to all other flex clients that are viewing that Employee - Basic FDMS right? The problem I am having (and maybe it's by design), is when I invoke a remote method on EmployeeService that takes an Employee (FDMS managed) as a parameter and changes the name and saves the changes to the database via Hibernate. That name change (or any persisted value change) is not being pushed to any Flex clients - including the one that invoked the service - and is only visible upon forcing a data refresh from the Flex client. How can I force database changes being made through non-flex clients to be pushed to the flex clients via FDMS? Is there a way to notify FMDS that object/row with id=# was updated and the updates should be pushed to the clients? I would think that this would be a common problem since you wouldn't want to put your business logic in the client action script and instead move that logic to a back end/middle tier that would surely alter the object state while processing business logic. I've been looking at the HibernateAssember, HibernateManager, and HibernateType classes in hopes to gain some insight, but all that I found is that maybe any of the data changes made to an object needs to be done through a hibernate session that was created from the same syncSessionFactory that is built in HibernateManager using a modified Hibernate configuration that has the following property hibernate.current_session_context_class property set to flex.data.adapters.FlexHibernateSessionContext I would love for someone to tell me that I'm over complicating things and I should use fill_in_the_blank simple solution. Thanks in advance, Luke Pillow.
[flexcoders] Loader.load(URLRequest) - ByteArray ?
I feel like I must be missing something. I have a Loader object that I am loading image data to, sometimes as a URLRequest and sometimes as a ByteArray. It depends on if I am getting the data from an upload or from the database. How do I go about getting a ByteArray back out of the Loader object? I have seen many posts on Loader and ByteArray, but I don't see a solution, unless I am missing something obvious... Anyone? -Andy
[flexcoders] Flex 2 Survelice Camera Monitor
here is a demo of survelicne camera type thing i made , the tutorial will be psoted tonight or tommro . it will cover PngEnc,Remoting,Web Cam Classes http://www.g-unix.com/blog/index.cfm/2007/1/28/Flex-2-Surveillance-Camera--Coldfusion-and-Flex
RE: [flexcoders] Re: FABridge
Hi, There is a release of the Flex AJAX bridge scheduled in the next week. Check labs.adobe.com later this week. Regards, David Adobe From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of john_69_11 Sent: Friday, January 26, 2007 11:54 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: FABridge I was just wondering what the status for this next release was. If there wont be anything soon and I could get a little bit of direction of how to fix this problem I could do it myself, I've taken a look at the javascript but I get lost very quickly. Thanks, -John --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , David Mendels [EMAIL PROTECTED] wrote: Hi, expect a new build on labs very soon (within a week it is expected, but not guaranteed.) -David From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of john_69_11 Sent: Tuesday, January 09, 2007 11:38 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] FABridge Is anyone else out there using FABridge? I'm testing it out on Safari and getting js errors, has anyone else ran into this and possible solutions? The exception I get is: Value undefined (result of expression this.target.getRoot) is not object. FABridge.js, line 191 If I could get any help at all with this I would really apprechiate it. -John
Re: [flexcoders] Help me find the Amazon book spider example
Are you talking about the SpringGraph component? http://www.adobe.com/cfusion/exchange/index.cfm?view=sn610#view=sn611viewName=Flex%20Extensionloc=en_usauthorid=71967431page=0scrollPos=0subcatid=0snid=sn611itemnumber=11extid=1048510catid=0 Shan oneproofdk wrote: A few weeks ago (as far as I remember) I saw a cool Flex2 app, that would take a search string for a book title, retrieve data from Amazon and display books in a web-like setup, where the books are connected by wires, if I click on a book, it would retrieve data from Amazon on that book. All those bookcovers were floating around, allowing the user to drag in the web and all things would follow. I'd love to see some example code on how to do this - can anyone help me ? I tryed to post this yesterday - but it never showed up here - so sorry for the double posts if it should arrive twice. Thanks, Mark
Re: [flexcoders] Command-line compiler Java errors
Derek, You do need the Java SDK as per the Flex 2 SDK system requirements bellow: Flex 2 SDK Windows 2000, XP, or Server 2003, Java 1.4 (Sun, IBM, or BEA) or 1.5 (Sun) Mac OS X 10.4.x, Java 1.5 (as shipped from Apple) on PowerPC and Intel processor Redhat Enterprise Linux 3 or 4, Suse 10, Java 1.4 (Sun, IBM, or BEA) or 1.5 (Sun) Solaris 9, 10, Java 1.4 or 1.5 (Sun) Compilers only 512 MB of RAM , 1 GB recommended 200 MB of free disk space You can find the above information at: http://www.adobe.com/products/flex/productinfo/systemreqs/ Since you already have Flex Builder installed and working, it's probably just a matter of setting you environment 'path' to point to the right Java version. To check the Java version you are currently pointing to, try 'java -version' from the command line. I hope this helps, Wagner dos Anjos - Original Message From: Derek Vadneau [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Thursday, January 25, 2007 11:53:47 AM Subject: [flexcoders] Command-line compiler Java errors Hi all, I have Flex Builder 2 but I need to start using the command-line compilers to produce projects that are being integrated with a build system. However, when I try running from the command-line I get this: Exception in thread main java.lang.Unsupport edClassVersionEr ror: flex2/tools/ C ompiler (Unsupported major.minor version 48.0) at java.lang.ClassLoad er.defineClass0( Native Method) at java.lang.ClassLoad er.defineClass( Unknown Source) at java.security. SecureClassLoade r.defineClass( Unknown Source) at java.net.URLClassLo ader.defineClass (Unknown Source) at java.net.URLClassLo ader.access$ 100(Unknown Source) at java.net.URLClassLo ader$1.run( Unknown Source) at java.security. AccessController .doPrivileged( Native Method) at java.net.URLClassLo ader.findClass( Unknown Source) at java.lang.ClassLoad er.loadClass( Unknown Source) at sun.misc.Launcher$ AppClassLoader. loadClass( Unknown Source) at java.lang.ClassLoad er.loadClass( Unknown Source) at java.lang.ClassLoad er.loadClassInte rnal(Unknown Source) The above is what I get after running one of the samples included in the Flex SDK 2 directory. I tried my own projects with the same result. I'm not sure what's going on here. Looks like something about the version of JRE I have. Am I right in this assumption? If so, what is required for the Flex 2 SDK? I couldn't find anything about requiring JRE on the SDK pages on Adobe. -- Derek Vadneau !-- #ygrp-mlmsg {font-size:13px;font-family:arial,helvetica,clean,sans-serif;} #ygrp-mlmsg table {font-size:inherit;font:100%;} #ygrp-mlmsg select, input, textarea {font:99% arial,helvetica,clean,sans-serif;} #ygrp-mlmsg pre, code {font:115% monospace;} #ygrp-mlmsg * {line-height:1.22em;} #ygrp-text{ font-family:Georgia; } #ygrp-text p{ margin:0 0 1em 0; } #ygrp-tpmsgs{ font-family:Arial; clear:both; } #ygrp-vitnav{ padding-top:10px; font-family:Verdana; font-size:77%; margin:0; } #ygrp-vitnav a{ padding:0 1px; } #ygrp-actbar{ clear:both; margin:25px 0; white-space:nowrap; color:#666; text-align:right; } #ygrp-actbar .left{ float:left; white-space:nowrap; } .bld{font-weight:bold;} #ygrp-grft{ font-family:Verdana; font-size:77%; padding:15px 0; } #ygrp-ft{ font-family:verdana; font-size:77%; border-top:1px solid #666; padding:5px 0; } #ygrp-mlmsg #logo{ padding-bottom:10px; } #ygrp-vital{ background-color:#e0ecee; margin-bottom:20px; padding:2px 0 8px 8px; } #ygrp-vital #vithd{ font-size:77%; font-family:Verdana; font-weight:bold; color:#333; text-transform:uppercase; } #ygrp-vital ul{ padding:0; margin:2px 0; } #ygrp-vital ul li{ list-style-type:none; clear:both; border:1px solid #e0ecee; } #ygrp-vital ul li .ct{ font-weight:bold; color:#ff7900; float:right; width:2em; text-align:right; padding-right:.5em; } #ygrp-vital ul li .cat{ font-weight:bold; } #ygrp-vital a { text-decoration:none; } #ygrp-vital a:hover{ text-decoration:underline; } #ygrp-sponsor #hd{ color:#999; font-size:77%; } #ygrp-sponsor #ov{ padding:6px 13px; background-color:#e0ecee; margin-bottom:20px; } #ygrp-sponsor #ov ul{ padding:0 0 0 8px; margin:0; } #ygrp-sponsor #ov li{ list-style-type:square; padding:6px 0; font-size:77%; } #ygrp-sponsor #ov li a{ text-decoration:none; font-size:130%; } #ygrp-sponsor #nc { background-color:#eee; margin-bottom:20px; padding:0 8px; } #ygrp-sponsor .ad{ padding:8px 0; } #ygrp-sponsor .ad #hd1{ font-family:Arial; font-weight:bold; color:#628c2a; font-size:100%; line-height:122%; } #ygrp-sponsor .ad a{ text-decoration:none; } #ygrp-sponsor .ad a:hover{ text-decoration:underline; } #ygrp-sponsor .ad p{ margin:0; } o {font-size:0;} .MsoNormal { margin:0 0 0 0; } #ygrp-text tt{ font-size:120%; } blockquote{margin:0 0 0 4px;} .replbq {margin:4;} --
[flexcoders] How to vertically center the label of a ComboBox
Hello, our design includes an oversized ComboBox that is about twice as tall as the default component. Setting the height attribute is easy enough, but the label remains a fixed distance from the top rather than being vertically centered. I am assuming this is simply a styling property oversight and am hoping someone can point me in the right direction on how to correct this behavior. Thanks, Ben
Re: [flexcoders] Re: Is Flash a single thread application?
I can't find the document explaining this, but I've certainly seen it somewhere before (perhaps at a conference?)... the basics is that the Flash Player is definitely multi-threaded, its just the ActionScript code that's single threaded (probably what the original poster got the impression from). The Flash Player has a rendering thread, a networking thread (well, probably multiple networking threads like a web browser, one per connection), and the VM thread. Troy. On 1/23/07, parkerwhirlow [EMAIL PROTECTED] wrote: Events are not fired concurrently. They are fired in order of their listener priority. See the following documentation on addEventListener function http://livedocs.macromedia.com/flex/2/langref/flash/events/EventDispatcher.html#addEventListener () By default, priority is '0' for user added events, so they will fire in the order added. There's some constants defined in the EventPriority class that the framework uses when adding event listeners for things such as Bindings, Effects, etc. Hope this helps. PW --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Cameron Bahan [EMAIL PROTECTED] wrote: Flash does seems to be single-threaded. However, one should be careful as events are fired concurrently. I have run into a few issues regarding concurrency and shared data. So far the only solutions that I have heard is to write a custom locker class using a boolean lock. Has anyone else experienced this? How have you solved it? CS Bahan Lead Software Engineer On Jan 23, 2007, at 4:31 AM, saha.prasanta wrote: Hi, I've read in some forum that Flash is a single thread application. I tried to find some document supporting that statement, But I couldn't find any document by Adobe or Macromedia regarding that. Could you plase help me by forwarding the of such article. I need that as a proof for one of my project. Warm regards, Prasanta Saha, Flash Developer, Hyderabad, Indaia
[flexcoders] Re: How to convert XMLList Collection to an ArrayCollection ?
Ya I guss I will just loop. Thx, Sean. --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Hve you considered using XMLListCollection? It has all the benefits of a collection, retains the benefits of e4x expressions, and is easily created from XMLList: Var myDP:XMLListCollection = new XMLListCollection(xmlData.partsList.catalog); Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Schmalle Sent: Thursday, January 25, 2007 8:34 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: How to convert XMLList Collection to an ArrayCollection ? Hi, I don't think you can... In the help docs they have this example for each (var item in doc.p) { trace(item); } I would say you are going to have to bite the bullet and loop. ArrayCollection is just a wrapped array and I don't see any place where XMLList returns and array. It's like mixing apples and oranges. Although XMLList looks like an array it isn't. Peace, Mike On 1/25/07, Danko Kozar [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Have you tried: myDP = xmlData.partsList.catalog as ArrayCollection; ? --- In flexcoders@yahoogroups.com mailto:flexcoders% 40yahoogroups.com , helihobby helihobby@ wrote: Hello, I have XML data which comes back from a server via a custom socket. How can I convert that the to an ArrayCollection ? If I try: myDP = new ArrayCollection(); myDP = ArrayCollection(xmlData.partsList.catalog); I get a runtime error the XML List collection can not be converted to an array collection. I know I can do a for loop and re-build it but I was wondering if there is a quick qay to do it. I know the HTTPService can do it with the result inline tag which will convert the XML data to an Array Data provider but I am not using it. I am using Sockets. Thank you for all the help, Sean. -- Teoti Graphix http://www.teotigraphix.com http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.
Re: [flexcoders] Flex 3.0 - What happened to letting Flex 2 bed in?
I'm psyched about what I am hearing about the next iteration. They have stated that they aren't going to be making big architectural rewrites now, but focus on stability and smaller iterative versions which makes sense. Also, note; they are just begining to talk about it now, they are not releasing it now. If they announce it formally in the spring it won't be until fall or winter at the very least until it's released (if it is small) and next year if it's big. I doubt if that decision will be made until after they field ideas, but that's somewhere between a year and a half and two and a half years, which is a long time. I think that small releases every 6-9 months would also be great if they could manage that schedule wise. They did the right thing by spending 6 months fixing bugs and getting it to work on the mac, now they need to look forward again.There is still a lot of low hanging fruit that they can add, especially with flex builder, while having folk fix problems full time. They will still need some new features to attract folk to it, but if you want folk to work on it full time, there has to be a point where we give them more money for it and new features are the most traditional way to take the sting out of that. The reason I wanted to respond to this thread is that I think this feeling of it being too soon is born from the fact that they are discussing it so early and I want to make sure that the discussing it early policy isn't discouraged by the negative feelings. Why? Because in the past with flash development if you were developing a component set and about halfway done, the chances were good that there was already a version from the mothership about to come out and make the work unnecessary. You never knew what was being developed, so you never knew what to avoid doing yourself. The important thing is for us to tell them early what we would like and for them to let us know as much as possible as early as possible what they are acting on, so that other developers can know what Adobe isn't doing so that they know what niches are open for independent work. Just my thoughts -Cort
Re: [flexcoders] Re: How to convert XMLList Collection to an ArrayCollection ?
BTW, AS3 loops are VERY fast. So really it's just a couple more lines to your code. Peace, Mike On 1/25/07, helihobby [EMAIL PROTECTED] wrote: Ya I guss I will just loop. Thx, Sean. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Hve you considered using XMLListCollection? It has all the benefits of a collection, retains the benefits of e4x expressions, and is easily created from XMLList: Var myDP:XMLListCollection = new XMLListCollection(xmlData.partsList.catalog); Tracy From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of Michael Schmalle Sent: Thursday, January 25, 2007 8:34 AM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Re: How to convert XMLList Collection to an ArrayCollection ? Hi, I don't think you can... In the help docs they have this example for each (var item in doc.p) { trace(item); } I would say you are going to have to bite the bullet and loop. ArrayCollection is just a wrapped array and I don't see any place where XMLList returns and array. It's like mixing apples and oranges. Although XMLList looks like an array it isn't. Peace, Mike On 1/25/07, Danko Kozar [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Have you tried: myDP = xmlData.partsList.catalog as ArrayCollection; ? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto: flexcoders% flexcoders%25 40yahoogroups.com , helihobby helihobby@ wrote: Hello, I have XML data which comes back from a server via a custom socket. How can I convert that the to an ArrayCollection ? If I try: myDP = new ArrayCollection(); myDP = ArrayCollection(xmlData.partsList.catalog); I get a runtime error the XML List collection can not be converted to an array collection. I know I can do a for loop and re-build it but I was wondering if there is a quick qay to do it. I know the HTTPService can do it with the result inline tag which will convert the XML data to an Array Data provider but I am not using it. I am using Sockets. Thank you for all the help, Sean. -- Teoti Graphix http://www.teotigraphix.com http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com http://www.flex2components.com You can find more by solving the problem then by 'asking the question'. -- Teoti Graphix http://www.teotigraphix.com Blog - Flex2Components http://www.flex2components.com You can find more by solving the problem then by 'asking the question'.
[flexcoders] Help with Variable ItemRenderer
I am trying to create an MXML ItemRenderer that displays a different state depending on it's data. Its state does not change by any user interaction. For instance, if data.type = 'text', show the label state, else show the image state. Where can I set currentState so that each itemRenderer displays as it should? Is this even possible? All of my renderers always turn out one way or the other. I'm beginning to think I have to do this in ActionScript... or maybe a hack where I fire a function on creationComplete that changes the data.type to some other value and back again so that the binding fires?? Any help would be great. Thanks in advance.
[flexcoders] ArrayCollection Stack
I have a simple data grid that is tracking messages, when a message comes in addItem() adds it to the bottom of the list. What I need is more of a stack so that messages are added to the top. Is there a collection that behaves as a stack or do I need to emulate this by somehow adding new items to the top of the collection? Thanks, Mike
Re: [flexcoders] Download files
Thanks Joan, The scope tip did it for me :) I was doing a lot of error catching, but no errors occured. So this tip was very helpfull!
[flexcoders] Re: Cairngorm - Question on using ResultHandler
Hi, Thanks for the help. That worked and it called the next command which is what I wanted. In my result handler in the command that gets called next this works: public function result( data:Object ):void { var event:ResultEvent = data as ResultEvent model.employeeList = event.result[0]; } This does NOT work: I am just trying to find out why, and if the above is how most do this. public function result( data:Object ):void { var event:ResultEvent = data as ResultEvent model.employeeList = event.result } Thanks, -M --- In flexcoders@yahoogroups.com, Dimitrios Gianninas [EMAIL PROTECTED] wrote: You are doing things the right way. If after you login you want to do some more, look at the SequenceCommand. You would basically add a executeNextCommand() statement after your model.workflowState statement. Dimitrios Gianninas RIA Developer Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of malik_robinson Sent: Sunday, January 28, 2007 1:49 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Cairngorm - Question on using ResultHandler Hi, I have a question using Cairngorm and Commands. I am new to it but its making more sense to me each day at least it seems that way. I have the following in my LoginCommand.as public function result( data:Object ):void { var event:ResultEvent = data as ResultEvent; if (event.result.length 0) { model.workflowState = ModelLocator.VIEWING_HOMEPAGE; } else { model.login.statusMsg = Your login credentials are invalid, please try again.; } } 1. Is there anything wrong with the way I am doing the above? 2. I would like to call some other remote objects s! o I can populate some datagrids after the user has been authenticated and then load the home page of the app as I am doing above. -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or legally privileged information, which is solely for the use of the intended recipient. No privilege or other rights are waived by any unintended transmission or unauthorized retransmission of this message. If you are not the intended recipient of this message, or if you have received it in error, you should immediately stop reading this message and delete it and all attachments from your system. The reading, distribution, copying or other use of this message or its attachments by unintended recipients is unauthorized and may be unlawful. If you have received this e-mail in error, please notify the sender. AVIS IMPORTANT -- Ce message électronique et ses pièces jointes peuvent contenir des renseignements confidentiels, exclusifs ou légalement privilégiés destinés au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun privilège ou à aucun autre droit si le présent message a été transmis involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses pièces jointes, de votre système. La lecture, la distribution, la copie ou tout autre usage du présent message ou de ses pièces jointes par des personnes autres que le destinataire visé ne sont pas autorisés et pourraient être illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en aviser l'expéditeur.
[flexcoders] Any ways to put verticalAxis on the rightside only for a barchart?
Hi guys... I know there's a simple way to put a vertical axis on the right side as long as a columnchart is concerned... But for a bar chart, if you put a vertical axis on the right side, with a verticalAxisRenderer, mx:verticalAxisRenderer mx:AxisRenderer id=myVerticalAxisRenderer placement=right / /mx:verticalAxisRenderer I think that the chart series items should be starting just from the opposite side, which is from right to left.. Yet this is not what Flex chart components are giving... so any ideas to flip chart items horizontally? Thanks in advance...
[flexcoders] Re: ArrayCollection Stack
Hey Mike, If I am not mistaken I would just do addItemAt() and add it to 0. You could also do a sort on one of your fields(i.e. date Added), but the addItemAt() should be an easy fix. If this is not the solution u where looking for reply back and I will help you further. Thanks, Augie Marcello III Software Developer(RIA) www.augiemarcello.com --- In flexcoders@yahoogroups.com, m2281m2281 [EMAIL PROTECTED] wrote: I have a simple data grid that is tracking messages, when a message comes in addItem() adds it to the bottom of the list. What I need is more of a stack so that messages are added to the top. Is there a collection that behaves as a stack or do I need to emulate this by somehow adding new items to the top of the collection? Thanks, Mike
[flexcoders] Re: ArrayCollection Stack
Yes addItemAt(item, 0) is a fix in this case, I was just surprised when no searches turned up a stack solution. Thanks for the reply...
Re: [flexcoders] How to vertically center the label of a ComboBox
hello Ben: In ComboBox,it has a textInput compoent, you can set textInput's x, y, width and height. just like: textInput.setActualSize(..., ...); textInput.move(..., ...); 2007/1/27, ben.clinkinbeard [EMAIL PROTECTED]: Hello, our design includes an oversized ComboBox that is about twice as tall as the default component. Setting the height attribute is easy enough, but the label remains a fixed distance from the top rather than being vertically centered. I am assuming this is simply a styling property oversight and am hoping someone can point me in the right direction on how to correct this behavior. Thanks, Ben
[flexcoders] Flex Ant Tasks
Has anyone got this working? I keep getting the same error, Could not create task or type of type: mxmlc. I have followed the instructions to the letter. Regards, Bjorn
[flexcoders] Re: need help on showing line series based on list box selection (Flex Charts)
Hi Ely, please help, im going mad, trying to filter out the arraycollection, one item is fine, but more than 1 filter is a problem, please help with an example, not able to get more than one series! regards, --- In flexcoders@yahoogroups.com, arthurcoutinhoonline [EMAIL PROTECTED] wrote: Hi There, this is Arthur, im new to flex have created a small CHART app, where a user based on the selection from the list box can display the line series.. Im able to display a line series based on a user's selection of a list box item, but im facing problems in displaying multiple line series based on multiple LIST selection. For. eg. if u select item 1001 from the listbox select the above checkboxes like temperature etc. it shall show temperature for the Line Series (1001), but if u want to see the temperature for id 1001, 1002 1003, basically, in 3 different line series, its not coming, hence would appreciate any help in this. im posting the code xml file which u can try execute for reference
[flexcoders] Re: Loader.load(URLRequest) - ByteArray ?
Use a URLLoader, which gives you the ByteArray as the data property after it has been loaded. Doug --- In flexcoders@yahoogroups.com, Andrew D. Goodfellow [EMAIL PROTECTED] wrote: I feel like I must be missing something. I have a Loader object that I am loading image data to, sometimes as a URLRequest and sometimes as a ByteArray. It depends on if I am getting the data from an upload or from the database. How do I go about getting a ByteArray back out of the Loader object? I have seen many posts on Loader and ByteArray, but I don't see a solution, unless I am missing something obvious... Anyone? -Andy
[flexcoders] Re: Populate tree from specific XML Node
try to set your tree's showRoot=false usually when dealing with xml you have to do that. --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: First, to get the result event, do not use lastResult. That is intended for binding expressions only. Instead do: myXML = XML(event.result); trace(myXML.toXMLString()) THEN use e4x xml methods and properties to get the node you want for the root of your tree. See the docs, childNodes is not an XML property. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Misael Ferreira Sent: Wednesday, January 03, 2007 5:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Populate tree from specific XML Node Hi, I want to populate a tree from a specific node from a XML obtained via HTTPService. I have the following: [Bindable] public var myXML:XML; mx:script private function onResult(oEvent:ResultEvent):void { myXML = reqProblemas.lastResult.childNodes[2]; } /mx:script mx:HTTPService id=reqProblemas url=problemas/problemas.xml resultFormat=xml result=onResult(event) makeObjectsBindable=true useProxy=false showBusyCursor=true / mx:Tree x=10 y=140 width=505 dataProvider={treeProb} id=treeProblema/mx:Tree But this isnt working, the tree is populated with raw XML data, instead of the tree branches beginning from the third node, that is NODES: ?xml version=1.0 encoding=utf-8 ?tree id=tree options opt name=target value=_self/opt /options icons ico name=pnb value=http://localhost/marquise/componentes/js/tree/plusnb.gif http://localhost/marquise/componentes/js/tree/plusnb.gif /ico /icons nodes id=0 caption=Categorias url= ic= exp=true chk=false cststyle= target=null title=Categorias node id=806 caption=Aplicativos url= ic= exp=false chk=false cststyle= target=null title=Aplicativos node id=808 caption=Office url= ic= exp=false chk=false cststyle= target=null title=Office node id=809 caption=Excel url= ic= exp=false chk=false cststyle= target=null title=Excel /node node id=810 caption=PowerPoint url= ic= exp=false chk=false cststyle= target=null title=PowerPoint /node node id=811 caption=Word url= ic= exp=false chk=false cststyle= target=null title=Word /node /node node id=807 caption=Windows url= ic= exp=false chk=false cststyle= target=null title=Windows /node /node /nodes /tree
[flexcoders] Result from webservice?
Hi, I am using webservices to get data. I have made a simple webservice in Java which returns a simple Hello world and called it in flex in return I am not getting it by using result.target.toString(); I can display the result by using messaging as an XML Item. Please tell me is there any alternate or simple way to show the return value? Thanks, Sanjay
[flexcoders] Re: Could it really take so much code to color a row in a DataGrid..?
Hi Paul, You can color DataGrid Rows by using the following: DataGrid { alternatingItemColors: #00, #cc66cc; } Thanks, Sanjay --- In flexcoders@yahoogroups.com, paulwelling [EMAIL PROTECTED] wrote: Hello, I'm sure I've missed it, but is there a straight forward way to color the background of a DataGrid row..? Thanks for the info, Paul
[flexcoders] site-wide adjustments - is it even possible?
I have created a smooth scroll component that extends a Container class where I have overridden the scrollChildren() method. I came into a project late and the code base is rather large at this point. There are many many places in the code that needs this new component shoe-horned in. I have been asked to see if I can provide a site-wide adjustment to the scrolling functionality that will apply the smooth scrolling style without manually replacing every instance of the code that needs to be touched. I am pretty sure that there is not a way after investigating the framework and common sense, but I thought that I would ask this board anyway, is it possible? Is there a compiler setting?
Re: [flexcoders] site-wide adjustments - is it even possible?
In AS2/AS1, you used to be able to hack the prototype so all instances used a different method at runtime. mx.containers.Container.scrollChildren = mx.containers.Container.old; mx.containers.Container.scrollChildren = function() { // your stuff here }; Unfortunately, I think prototype is read-only in AS3. Can't you just replace the Container class that is in the frameworks directory with your own modified copy, compile a new SWC, and use that one instead of the main one? On Jan 29, 2007, at 2:29 AM, Paul Solomon wrote: I have created a smooth scroll component that extends a Container class where I have overridden the scrollChildren() method. I came into a project late and the code base is rather large at this point. There are many many places in the code that needs this new component shoe-horned in. I have been asked to see if I can provide a site-wide adjustment to the scrolling functionality that will apply the smooth scrolling style without manually replacing every instance of the code that needs to be touched. I am pretty sure that there is not a way after investigating the framework and common sense, but I thought that I would ask this board anyway, is it possible? Is there a compiler setting?