[flexcoders] Re: Icons on TabBar or ToggleButton Bar
Phil, I made a Flex/Apollo theme that has a part that does what I think you're looking for. Check it out: http://www.scalenine.com/themes/messenger/messenger.html As a side note I'm thinking about starting a mailing list dedicated to UI customization stuff. The group I started can be seen here: http://tech.groups.yahoo.com/group/FlexApolloUI/ And you can read more about it here: http://scalenine.com/blog/2007/03/19/a-flexapollo-ui-focused-mailing-list/ Juan scalenine.com --- In flexcoders@yahoogroups.com, Phil Chung [EMAIL PROTECTED] wrote: You should use the icon property of the containers in your ViewStack (in your example, Canvas). That should do the trick. If you wanted, you can also set the iconField property of your ToggleButtonBar or TabBar to use a custom property value (instead of icon). Phil -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Behalf Of forrestmaready Sent: Monday, March 19, 2007 8:58 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Icons on TabBar or ToggleButton Bar Could someone let me know how they've succesfully populated the tabs on a TabBar or the buttons on a ToggleButtonBar with icons? I've tried putting the styleName tag on everything to no avail. Thanks! ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=horizontal width=470 height=100 horizontalAlign=center verticalAlign=middle mx:Style .myIcon { upSkin: Embed(assets/upIcon.jpg); overSkin: Embed(assets/overIcon.jpg); downSkin: Embed(assets/downIcon.jpg); } /mx:Style mx:ToggleButtonBar dataProvider=viewstack1 width=223 height=44/ mx:ViewStack id=viewstack1 width=18 height=24 selectedIndex=1 styleName=myIcon mx:Canvas label=Fred width=100% height=100% /mx:Canvas mx:Canvas label=Fred1 width=100% height=100% /mx:Canvas mx:Canvas label=Fred2 width=100% height=100% /mx:Canvas /mx:ViewStack /mx:Application
[flexcoders] FDS 2 becomes LDS 2.5 | See labs.adobe.com
from Ben Forta's blog: Flex Data Services Update On Labshttp://www.forta.com/blog/index.cfm/2007/3/20/Flex-Data-Services-Update-On-Labs Newly posted to Labs is Flex Data Services 2.5, now known as LiveCycle Data Services. http://labs.adobe.com/technologies/livecycle_dataservices2_5/ For complete list of features for LiveCycle Data Services 2.5: http://labs.adobe.com/technologies/livecycle_dataservices2_5/releasenotes.html#features -- - - - So is the product nickname now LDS or LcDS or LCDS? Though the new product name is up on labs I have yet to see the CS3 element chart symbol for its branding.
Re: [flexcoders] FDS 2 becomes LDS 2.5 | See labs.adobe.com
It's known as LCDS. Also be aware that Flex Builder won't compile with the new SDK without updating some libs. João Fernandes
[flexcoders] arrayCollection.removeItem does not work ??? --bug ??
hi all; i'm using cairngorm and many data bindings from my model to views. the problem is that; i cannot remove items from dataProvider; actually i delete but they come back !!! the procedure is as it should be; i have an object commander that finds the object index from the arraycollection of Model; then removes it using the arrayCollection.removeItemAt(); function. but it is not being deleted. (actually it is being deleted; i mean the values are deleted; but the object stays in the arrayCollection; so it's length does not decrease) i added an event listener to the arrayCollection's collectionChange event and what i saw was really strange. i trace the length in the event listener and; it first decreases the length than a second event call comes and the length again increases. any help? any hope ? thanks.. yigit 8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut. http://tools.search.yahoo.com/shortcuts/#news
Re: [flexcoders] Help: test EventDispatcher speed please
You sound a bit sarcastic here ;) Be welcome anyway ! So lemme explain further: that's not a problem of speed here, that's a problem with mac player. On mac EventDispatcher.dispatchEvent is 4x slower than my custom EventDispatcher. On Pc EventDispatcher.dispatchEvent is faster than my custom EventDispatcher. It's a bit embarrasing coz I thought EventDispatcher was a native class, so how it could execute events dispatch 4x slower than my custom class (with statements inside the dispatch process) on mac? And last but not least, EventDispatcher is the top of the graphical hierarchy, so if it runs like 4 or 5X slower on mac, it sounds really annoying. Hope It sounds more clear now. francis Le 20 mars 07 à 17:31, Tom Chiverton a écrit : On Tuesday 20 Mar 2007, Francis Bourre wrote: On Mac, EventDispatcher is slow: ... On Pc, EventDispatcher is faster. So you've discovered that different hardware, on a different O/S, runs the same code at different speeds ? Wow. -- Tom Chiverton Helping to continually coordinate attention-grabbing communities On: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. Yahoo! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/hOt0.A/lOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com Yahoo! Groups Links
[flexcoders] Working with ads (DART) in flex ? How can you possibly do that ?
If someone finds a solution to this one, i'll pay him strawberries ! Is there a way of doing a js document.write in Flex ? Explanantion : Today i have a website with DART tags like this one : script !-- document.write('script language=JavaScript src=http://ad.fr.doubleclick.net/adj/ts.psycho.com/homepage/index/sky;kw=x;tile=5;sz=160x320;ord='+jsDartRandom+'?/script'); //-- /script Tomorrow my website is gonna be a full flex application. How do i implement my DART into my Flex app ? Looks like i cannot, because the source is not necessarly the swf or gif, but can be a redirect, that is another js calling another js, and so on. So is there a way flex can deal with this ? I think this is gonna become a very big problem if we cannot deal with ads in flex apps... Using an iFrame to display ads doesn't work as some ads may have to expand over the app on rollover. Working with divs won't work as there is no way of knowing the size of the ad returned by DART, and thus no way of allowing the corresponding space in our flex app... I'm stuck !! Jean-Luc.
[flexcoders] Developing Rich Clients, Source Code?
Hi all, I had the pleasure of picking up the book, Developing Rich Clients with Macromedia Flex, by our community brethren Steven Webster and Alistair McLeod. At first I was hesitant to pick it up because of the fact it was Flex 1.5 and I am a Flex 2 convert. But, I HIGHLY recommend it to anyone who wants to get a ground running start on their development. Would anyone know where I can find the source code for this book? Originally it was available on the iteration::two website. But that site has been reporting an Apache server error for a while. Does anyone have it that could be kind enough to post it here so that I could use it along with my studies? Thanks -Kenny/LIR
[flexcoders] ColumnChart x-axis
Hi guys, Is following possible : Let's say I have a columnChart with two columns. One with value 700 and one with value 800. Now, the x-axis is value 0 (projected on y-axis), and the columns are 700 and 800 high. Now I would like to have the x- axis represent 600 (projected on y-axis), so it would seem you have one column of 200 and one of 100. The labels on the y-axis need to start at 600 (where it used to be 0). thx Lieven Cardoen
Re: [flexcoders] Help: test EventDispatcher speed please
Really strange, and annoying, and, maybe i guess the flash player 9 is still on a early version with strange and buggy things( there is some annoying bugs i discovered http://www.rgenerat.org/iileyblog/). I think EventDispatcher is a really native class too so it can have very different speed on different platform, Adobe should have ideas to improve, or they just don't kown the speed difference so not have chance to optimize it yet(Or this is just the real truth)? Can you post the EventBroadcaster source then we may can get more infomation, Francis? -- iiley AsWing http://www.aswing.org Personal http://www.iiley.com
[flexcoders] Re: Help - Flex application no longer works!
Thanks for your help Alex. First of all, I tried adding a DateFormatter to a class which is shared by all my applications and it worked! So as you say this suggests a linker dependency issue but I have no idea where the issue suddenly came from. I have not experimented with RSLs, modules or library projects (yet) so all of the application SWFs in my project should include everything they need and not depend on anything else. My project is structured as follows (I've simplified the names to make things easier to explain): - Source Path Folder 1 (some common code I wrote) - Source Path Folder 2 (some common code from 3rd parties) - Main.mxml - App1.mxml . . - App4.mxml The App1..App4 applications are loaded in SWFLoaders by the Main app when they are needed. They all make use of many classes in the source path folders. My DateRenderer, which uses the DateFormatter, lives beneath Source Path Folder 1 and is used by App4.mxml. It is when App4.mxml is loaded at runtime that I get the resource bundle error. As suggested I created a link report for App4.mxml (when it wasn't working). I've not looked at link reports before but it contains the following section which suggests (to me) that DateFormatter and its resource bundles *should* be linked in: script name=C:\Program Files\Adobe\Flex Builder 2\Flex SDK 2 \frameworks\libs\framework.swc(mx/formatters/DateFormatter) mod=1159976667000 size=4167 def id=mx.formatters:DateFormatter / pre id=mx.formatters:Formatter / dep id=mx.core:mx_internal / dep id=mx.formatters:DateBase / dep id=mx.resources:ResourceBundle / dep id=Date / dep id=flash.system:ApplicationDomain / dep id=AS3 / dep id=Math / dep id=mx.formatters:StringFormatter / dep id=SharedResources_properties / /script Then a bit further down it shows my DateRenderer with DateFormatter as a dependency: script name=C:\Dev\Flex\CommonCode1 \util\renderers\DateRenderer.mxml mod=1174410196890 size=2000 def id=util.renderers:DateRenderer / pre id=mx.controls:Label / dep id=mx.formatters:DateFormatter / dep id=Date / dep id=mx.events:FlexEvent / dep id=AS3 / /script Is this wrong somehow? When a dummy DateFormatter is added to the common class then the link report for App4.mxml contains a second script section which lists DateFormatter as a dependency. Any ideas? I've even tried reinstalling Flex Builder and recreating the project but I still get the same error! This is so frustrating because everything worked fine up until yesterday lunchtime... Regards, Nick. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Add a DateFormatter to the main app. If that solves the problem then you have a linker dependency issue. If you are using modules, rsls or otherwise using -extern options you might be excluding the locale data somehow. -link-report is helpful in these situations.
[flexcoders] Resize issue with custom control
Hi there, I have a custom control which inherits from Panel. There are 3 such controls placed on a canvas. I want to click on a control and resize it. I am trying to do something lke this example http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.\ htm?context=LiveDocs_Partsfile=0940.html http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp\ .htm?context=LiveDocs_Partsfile=0940.html All works fine when I use Panels. But if I use my custom control, the control doesnt resize, instead the canvas containing all these 3 controls resizes!!! Does anyone have any idea how can I set this right? Thanks Deepa.
[flexcoders] urlloader and status codes
I know that more methods are now allowed in urlloader, do we now have access to more status codes? -- http://www.eribium.org | http://juggernaut.rubyforge.org | http://www.aireofs.com | Skype: oldmanorhouse
[flexcoders] Re: Event Dispatching through more than one component
OK, I understood the other responses, but not this one. Agreed that I tried setting bubbles to true in my customEvent, and then each event instance, and the dispatched event did not pass through embedded windows. But I've never used systemManager, nor do I entirely understand bubbling. Can you forward me to an example or doc explaining this? And does this somewhat move away from loosely-coupled components (which I'm trying real hard to achieve!). Thanks, - Chris --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: Each popup is parented by the systemManager so it won't bubble from one popup to the next. However, each popup can listen to the systemManager for the event to bubble to it, or listen in capture phase so you don't have to use bubbling.
[flexcoders] Re: Security error accessing url
Hi; The discussion about the security access on a web service contains a lot of responses and solutions. But I don't find any explanations about the question number 1: why we have no access problem when we test our application in the Flex Builder environment, and then we receive a lot of security access problem when the application run on clients ? So, what is the difference between the Flash application running in Flex Builder and this Flash running out of this environment ? Is that means that in Flex Builder the Flash application doesn't access the famous crossdomain.xml ?! I think that this diffrence between the development and the client environment is a great problem for Flex devloppers ! It means that if our application runs on our computer, we have no garanty that it's ok for clients !
Re: [flexcoders] arrayCollection.removeItem does not work ??? --bug ??
here is my delete code : //Task_1_def is the name of the class. private function doDel(task_1_def:Task_1_def):void{ var ind:Number=0; for each (var item:Object in ModelDSI.getInstance().task_1_defs){ if(task_1_def.root_id == item.root_id) { trace(silmeyi buldum: +ind); break; } ind++; } trace(onceki boy:+String(ModelDSI.getInstance().task_1_defs.length)); ModelDSI.getInstance().task_1_defs.removeItemAt(ind); trace(sonraki boy:+String(ModelDSI.getInstance().task_1_defs.length)); trace('task_1_def silindi'); } - Original Message From: Yiðit Boyar [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Wednesday, March 21, 2007 10:47:30 AM Subject: [flexcoders] arrayCollection.removeItem does not work ??? --bug ?? hi all; i'm using cairngorm and many data bindings from my model to views. the problem is that; i cannot remove items from dataProvider; actually i delete but they come back !!! the procedure is as it should be; i have an object commander that finds the object index from the arraycollection of Model; then removes it using the arrayCollection. removeItemAt( ); function. but it is not being deleted. (actually it is being deleted; i mean the values are deleted; but the object stays in the arrayCollection; so it's length does not decrease) i added an event listener to the arrayCollection' s collectionChange event and what i saw was really strange. i trace the length in the event listener and; it first decreases the length than a second event call comes and the length again increases. any help? any hope ? thanks.. yigit Don't pick lemons. See all the new 2007 cars at Yahoo! Autos. !-- #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;} -- Get your own web address. Have a HUGE year through Yahoo! Small Business. http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
[flexcoders] Reminder: Indy Flex User Group
To anyone in the Indianapolis area. This is a reminder about our Flex User Group meeting tonight at 6:30pm. I will be presenting: Here are the details: http://blog.everythingflex.com/2007/03/16/indyflex-user-group-tuesday-320/ Hope to see you there. P.S.: If there is time, maybe I can show off some Apollo stuff. :-) Rich
[flexcoders] LiveCycle Data Services 2.5 - Using dynamically referenced queue destinations
Our application currently uses a large number of queue destinations. We create the destinations in the messaging-config.xml file and compile our app against the FDS configuration files (and then upload to the J2EE container). There are 100+ queue destinations defined in messaging-config.xml currently. Our Java backend creates these queues in ActiveMQ or JBoss (using the same queue destinations as configured in messaging-config.xml) and pumps data in to them. I've read through the beta documentation and there is a section on Configuring components with a bootstrap service. Do we need to create a class that creates/exposes these queue destinations to the Flex app, or can we just attach Flex consumers to queue destinations and the new LCDS libraries will do the work for us? Any input you might have would be appreciated. Thanks, Brian
[flexcoders] Re: Calendar Component
AJay, I'd recommend you check out the calendar component by Ely Greenfield at the following website. http://www.quietlyscheming.com/blog/2006/10/17/looking-for-a-flex-calendar-this-might-whet-your-appetite/ William --- In flexcoders@yahoogroups.com, Ajay K [EMAIL PROTECTED] wrote: Hi I am new for flex Can anyone guide me to build a custom calendar where in i need all the existing functionalities of DateChooser and i want to give the current week a different color Regards Ajay K - Finding fabulous fares is fun. Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains.
[flexcoders] Re: silly question about using src folder
Yes... you set the projects main source folder to src. I highly recommend it. --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: I was just playing with Ely's Calendar, which uses the src subfolder to hold source. Using Flex Builder, I was unable to make this work. I recall reading that runnable applications must be in the root of the FB project, and in fact, this was the only way I could get the Calendar to work. Is is possible to use a subfolder for source under Flex Builder? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Thursday, March 15, 2007 12:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: silly question about using src folder Other than the main application, I put all my project code in com.mycompany.projects.ProjectName.somePackage, etc. I use the projects package so I can easily merge project-specific code into my overall code library if needed. Ben --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Paul DeCoursey paul@ wrote: I use src or source, I had many issues when I dumped sources in the root. Mostly issues with recursive copies and subversion. I use source for library and flex only projects. If the project is mixed with server side logic then I use src/flex then all my source files are in one location, but split out by language. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Manuel Saint-Victor diamondtearz@ wrote: Are mpost people using a separate src folder instead of just dumping src code into the main project folder?
[flexcoders] Compile on server vs in FlexBuilder and DistortionEffects
I was trying to setup a project to test using DistortionEffects ( http://weblogs.macromedia.com/auhlmann/archives/DistortionEffects_Flex_2_0_1.zip) I was only able to get this to work using the option to compile on the server rather than within FlexBuilder. Has anyone else tried this same sample, and run into the same thing? Also, if it compiles on the server is that only the first time when the project is deployed? thanks, Sean
Fwd: [flexcoders] Help: test EventDispatcher speed please
You sound a bit sarcastic here ;) Be welcome anyway ! So lemme explain further: that's not a problem of speed here, that's a problem with mac player. On mac EventDispatcher.dispatchEvent is 4x slower than my custom EventDispatcher. On Pc EventDispatcher.dispatchEvent is faster than my custom EventDispatcher. It's a bit embarrasing coz I thought EventDispatcher was a native class, so how it could execute events dispatch 4x slower than my custom class (with statements inside the dispatch process) on mac? And last but not least, EventDispatcher is the top of the graphical hierarchy, so if it runs like 4 or 5X slower on mac, it sounds really annoying. Hope It sounds more clear now. francis Le 20 mars 07 à 17:31, Tom Chiverton a écrit : On Tuesday 20 Mar 2007, Francis Bourre wrote: On Mac, EventDispatcher is slow: ... On Pc, EventDispatcher is faster. So you've discovered that different hardware, on a different O/S, runs the same code at different speeds ? Wow. -- Tom Chiverton Helping to continually coordinate attention-grabbing communities On: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. Yahoo! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/hOt0.A/lOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/ flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com Yahoo! Groups Links
[flexcoders] Looking for Flex expert (project-based or full-time based in San Francisco)
Hi, I'm looking for a Flex guru who could help us build an interactive charting application. To give you a sense of the type of functionality we are looking to build, Google Finance charts are a pretty good rough proxy: http://finance.google.com/finance?q=goog We have room on our team for someone full-time if there's a good match, and would also be open to working together on a project basis if you prefer the freelance route. We're in San Francisco and looking for someone to work with ASAP! Email me for more details -- Thanks, Mike
[flexcoders] Migration from 1.5 to 2.0
Hi, I am getting following error when migrating from 1.5 to 2.0. Don't know how to parse element http://www.adobe.com/2006/mxml:Script;. It is not a known type or a property of mx.core.Application. I have changed the name space in mxml and in flex-config.xml from http://www.macromedia.com/2003/mxml to http://www.adobe.com/2006/mxml. I can't understand as to why its not picking up mx:Script tag in my mxml.Do i need to do any thing else..Pls help..
[flexcoders] Coercion failed ArrayCollection with Objects inside Object AMFPHP 1.9
Hi All, With AMFPHP 1.9 I am trying to return an Object containing some vars and an ArrayCollection. Inside this ArrayCollection there are other Objects. But I can't get this to work in Flex. For example: Flex class package com.app.classes { import mx.collections.ArrayCollection; [RemoteClass (alias=com.app.classes.RemoteClass)] public class MyClass { public var id: Number; public var list: ArrayCollection; } } package com.app.classes { [RemoteClass (alias=com.app.classes.RemoteClassObj)] public class MyClassObj { public var id: Number; public var name: String; } } PHP class class MyClass { var $id; var $list; } class MyClassObj { var $id; var $name; } function getData() { $data = new MyClass; $data-id = 1; $data-list = array(); $data-list[0] = new MyClassObj; $data-list[0]-id = 2; $data-list[0]-name = myName; return $data; } When I return this to Flex, the MyClass is filled ok. By the list coercion fails. Any idea to solve this problem? Thank you. - Need Mail bonding? Go to the Yahoo! Mail QA for great tips from Yahoo! Answers users.
[flexcoders] Nesting Complex Remote Objects
I have two Value Objects: a simple VO and a VO that contains the first VO in it. For example: --- SimpleVO --- ... [RemoteClass(alias=test.SimpleVO)] public class SimpleVO { public var id:int; public var data:String; } === SimpleVO === --- ComplexVO --- ... [RemoteClass(alias=test.ComplexVO)] public class ComplexVO { public var id:int; public var simple:SimpleVO; public var otherdata:String; ... } === ComplexVO === I'm successfully using a RemoteObject to retrieve the ComplexVO from my server and I can read the id and otherdata, etc. properties of the ComplexVO, but I'm getting empty data when trying to read the properties of the SimpleVO inside of the ComplexVO. My DAO class isn't doing anything tricky. Is there something else I need to be doing in order for the serialization back to my ActionScript classes to work properly?
[flexcoders] Social Gaming startup looking for AS3 Engineer, Redwood City, CA
You'll own Bunchball's next generation product and be focused primarily on the user-facing components. You'll be crafting a small, powerful client application in ActionScript 3, and you'll be pair programming working through the initial build with the development team that created ASUnit. And when we're ready to jump to Apollo, it's all you. This is cutting edge work, my friend, so break out your hard hat. You'll also work on the interactive web applications/sites that support these new initiatives. Requirements: * Experience with object-oriented framework and design * Experience connecting to back-end services * Experience writing user-facing code * Ability to write clean, coherent code * Ability to understand and master new technologies quickly * Thrive on developing innovative ideas and executing them * Strong communication skills and a willingness to learn and to teach Bunchball is the leading provider of social gaming services. We're bringing multi-player casual gaming to social networks, communities, and web sites of all sizes. We're small, but quite successful. We have an incredibly talented team, drawn from places like IDEO, Apple, Oracle, Disney Imagineering, and Capital Entertainment Group. And we have some amazing advisors from companies including Flickr, Six Apart, IMVU, Tickle, and Halcyon Worlds. We're building a team of 10x people people who can run fast, think creatively, and go deep in one area but contribute everywhere. We care less about your years of experience and more about what you can do and why you love to do it. You'll have lots of responsibility, interesting challenges, and a significant impact. And fun; don't forget fun! We have funding from Granite Ventures and Adobe Ventures. We're building a fast company, we're disrupting a large, growing market, we're signing paying customers, and we're assembling a great team. This is your chance to be part of it, to say you were there at the beginning. We offer competitive salary, equity and benefits. Contact Information: Send resumes, portfolios, links to blogs, websites, etc. to [EMAIL PROTECTED]
RE: [flexcoders] first impressions
Hi Clint, thanks for the response. I watch the silvafug training yesterday and i started with session 3 and I probably should have started with 1. http://www.silvafug.org/ They got into all of this event stuff and custom components. It seems very OO if you want to really start making some powerful applications. I have built my first app that talks to one of my CFC's via web service. It took me a while and some reading of the adobe help files to figure what to place in click and how .lastResult works. mx:WebService id=myWebservice wsdl=http://demo.dev/test.cfc?wsdl; useProxy=false mx:operation name=echoString mx:request input {login.text} /input /mx:request /mx:operation /mx:WebService mx:Button x=141 y=280 label=Button click=myWebservice.echoString.send() / mx:TextArea id=source width=356 height=201 text={myWebservice.echoString.lastResult} x=10 y=10/ mx:TextInput x=101 y=229 id=login/ If I have time today I want to start replacing one section of our CF based ERP system with a Flex/Apollo. It is how our employees clock in and out. They also log into jobs and log out with different labor types. I have to build the CFC first, but if I get stuck I will post here on the list. Thanks! Chad From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Clint Tredway Sent: Tuesday, March 20, 2007 10:11 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] first impressions Honestly, to get started you dont need to know OO. You need to understand how Flex works. Its event based. Your code needs to respond to events that are triggered, ie button clicks, results being returned from the server, etc. I would be happy to help you get going as I use Flex/CF/SQL Server everyday. On 20 Mar 2007 18:50:54 -0700, Chad Gray [EMAIL PROTECTED] wrote: Im a CF guy and mainly a spaghetti coding CF guy. CF gave me, the non OO guy, the ability to write very complex programs that manipulated data in very complex ways since SQL is an easy language to learn and everything was very linear. Now my applications are hard to maintain, but easy to read and follows such a simple logic that any html guy could probably understand. They also deliver what the customer wants, and delivering what the customer wants is of course the number one objective. I step into Flex and the demo's make it look easy, but I try to start writing my own apps in flex and I am lost. Nothing is familiar like it is in CF where things start at the top of the page and work their way down then lead from point A to B. Maybe it is an old dog learning new tricks syndrome Can someone link me to good training on OO? I think this is the place that I need help. I need the basic... super basic lead into OO. Should I concentrate on java based training? -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] first impressions
I am not sure how your system is setup, but if you can, use Remoting instead of webservices... remoting is much much faster and IMO, easier to work with. On 3/21/07, Chad Gray [EMAIL PROTECTED] wrote: Hi Clint, thanks for the response. I watch the silvafug training yesterday and i started with session 3 and I probably should have started with 1. http://www.silvafug.org/ They got into all of this event stuff and custom components. It seems very OO if you want to really start making some powerful applications. I have built my first app that talks to one of my CFC's via web service. It took me a while and some reading of the adobe help files to figure what to place in click and how .lastResult works. mx:WebService id=myWebservice wsdl=http://demo.dev/test.cfc?wsdl; useProxy=false mx:operation name=echoString mx:request input {login.text} /input /mx:request /mx:operation /mx:WebService mx:Button x=141 y=280 label=Button click= myWebservice.echoString.send() / mx:TextArea id=source** width=356 height=201 text={ myWebservice.echoString.lastResult} x=10 y=10/ mx:TextInput x=101** y=229 id=login/ If I have time today I want to start replacing one section of our CF based ERP system with a Flex/Apollo. It is how our employees clock in and out. They also log into jobs and log out with different labor types. I have to build the CFC first, but if I get stuck I will post here on the list. Thanks! Chad -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Clint Tredway *Sent:* Tuesday, March 20, 2007 10:11 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] first impressions Honestly, to get started you dont need to know OO. You need to understand how Flex works. Its event based. Your code needs to respond to events that are triggered, ie button clicks, results being returned from the server, etc. I would be happy to help you get going as I use Flex/CF/SQL Server everyday. On 20 Mar 2007 18:50:54 -0700, *Chad** Gray* [EMAIL PROTECTED] wrote: Im a CF guy and mainly a spaghetti coding CF guy. CF gave me, the non OO guy, the ability to write very complex programs that manipulated data in very complex ways since SQL is an easy language to learn and everything was very linear. Now my applications are hard to maintain, but easy to read and follows such a simple logic that any html guy could probably understand. They also deliver what the customer wants, and delivering what the customer wants is of course the number one objective. I step into Flex and the demo's make it look easy, but I try to start writing my own apps in flex and I am lost. Nothing is familiar like it is in CF where things start at the top of the page and work their way down then lead from point A to B. Maybe it is an old dog learning new tricks syndrome Can someone link me to good training on OO? I think this is the place that I need help. I need the basic... super basic lead into OO. Should I concentrate on java based training? -- http://indeegrumpee.spaces.live.com/ -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] first impressions
HI John, First let me say that the CF extensions are not required to use Flex CF together. Secondly, I am not a Mac user so all I can do is show you code on how to use Flex Cf together. I will write a tutorial and send it to you later today. On 3/21/07, John Barrett [EMAIL PROTECTED] wrote: Hi Clint, I was wondering if I can ask for help too. I am also a CF guy, but for the life of me I can't seem to figure out how to integrate ColdFusion (with MySQL) and Flex together. I have read the the CF extension makes this easy in flex builder, which I hope then when I get it tomorrow this becomes true.I use the Mac,and I have tried in the past with help from this list to get ColdFusion Flex to talk to each other, but was not able to. I found out in the past that the CF extensions are not included in the mac version of flex builder, but I hope that it is now. I have a relaxed school schedule this term, and I thought that I would try again. I was wondering if you could offer a flex newbie some thought on this. Thanks so much, John - Original Message From: Clint Tredway [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, March 20, 2007 4:13:28 PM Subject: Re: [flexcoders] first impressions Honestly, to get started you dont need to know OO. You need to understand how Flex works. Its event based. Your code needs to respond to events that are triggered, ie button clicks, results being returned from the server, etc. I would be happy to help you get going as I use Flex/CF/SQL Server everyday. On 20 Mar 2007 18:50:54 -0700, Chad Gray [EMAIL PROTECTED] com[EMAIL PROTECTED] wrote: Im a CF guy and mainly a spaghetti coding CF guy. CF gave me, the non OO guy, the ability to write very complex programs that manipulated data in very complex ways since SQL is an easy language to learn and everything was very linear. Now my applications are hard to maintain, but easy to read and follows such a simple logic that any html guy could probably understand. They also deliver what the customer wants, and delivering what the customer wants is of course the number one objective. I step into Flex and the demo's make it look easy, but I try to start writing my own apps in flex and I am lost. Nothing is familiar like it is in CF where things start at the top of the page and work their way down then lead from point A to B. Maybe it is an old dog learning new tricks syndrome Can someone link me to good training on OO? I think this is the place that I need help. I need the basic... super basic lead into OO. Should I concentrate on java based training? -- http://indeegrumpee .spaces.live. com/http://indeegrumpee.spaces.live.com/ -- Don't get soaked. Take a quick peek at the forecast with theYahoo! Search weather shortcut. -- http://indeegrumpee.spaces.live.com/
[flexcoders] Re: WebService Fault Handling - Flash Player 9 Update
How are sockets implemented then? Also I have never seen the Flash Player include the browsers cookies in requests. This has been a big complaint of mine for a very long time. They only way I could get a session shared with the browser was to pass in the session id using External Interfaces. And why can't you give us a workaround? Like a stack we can include in our projects that isn't part of the player. This issue almost made Flex/Flash irrelevant to my current project. I had to fight for weeks to be able to use it. In the end I made some false promises that I had hoped adobe would get it fixed soon. If I had the time and resources I'd fix it myself. --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: Well, the Player uses the browser's network stack so that it can be in sync with what the browser is doing (cookies) as well as reduce the amount of code we have to include in the runtime (size is critical as you know). In Apollo we need to use the system network layer so we actually hope to have more access to the information you're looking for, but for the plugins we rely on the browser. Were we to write our own network layer in AS we would lose the browser integration that is often important. Matt From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul DeCoursey Sent: Tuesday, March 20, 2007 10:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: WebService Fault Handling - Flash Player 9 Update I find it hard to believe that we can create our own implementation that would support this using sockets but the built in method requires browser vendor help. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Matt Chotin mchotin@ wrote: Unfortunately we cannot fix this without support from the browser vendors. We are in discussions with them to try to have the right information accessible to plugins in some of their next versions. Matt From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of paulwelling Sent: Tuesday, March 20, 2007 8:59 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] WebService Fault Handling - Flash Player 9 Update Hello, I just examined the latest FP9 Update Fixed Issues web page, and see no mention of the WebService Fault Handling Issue (fault body not passed to player) that has been discussed many times here... This is a really big issue for people not using a proxy, and I'm surprised that more of us haven't asked Adobe for this to be a priority fix, or at least come up with a real work around. Can someone tell me when this will be addressed..? Thanks, Paul
RE: [flexcoders] FDS 2 becomes LDS 2.5 | See labs.adobe.com
Note that updates to the Flex SDK and FlexBuilder will soon be available to support LCDS 2.5 (which is still in Beta). From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of João Fernandes Sent: Wednesday, March 21, 2007 4:08 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] FDS 2 becomes LDS 2.5 | See labs.adobe.com It's known as LCDS. Also be aware that Flex Builder won't compile with the new SDK without updating some libs. João Fernandes
[flexcoders] Re: first impressions
Flash Remoting? I have not played with that in CF, but i will read the docs and see what that is about. I will convert my below test into a Flash Remoting service instead of a web service. Will i need to start a new project in Eclipse and select the flash remoting option? Or can i take my current project and just change the way i connect to the service? Thanks! Chad --- In flexcoders@yahoogroups.com, Clint Tredway [EMAIL PROTECTED] wrote: I am not sure how your system is setup, but if you can, use Remoting instead of webservices... remoting is much much faster and IMO, easier to work with. On 3/21/07, Chad Gray [EMAIL PROTECTED] wrote: Hi Clint, thanks for the response. I watch the silvafug training yesterday and i started with session 3 and I probably should have started with 1. http://www.silvafug.org/ They got into all of this event stuff and custom components. It seems very OO if you want to really start making some powerful applications. I have built my first app that talks to one of my CFC's via web service. It took me a while and some reading of the adobe help files to figure what to place in click and how .lastResult works. mx:WebService id=myWebservice wsdl=http://demo.dev/test.cfc?wsdl; useProxy=false mx:operation name=echoString mx:request input {login.text} /input /mx:request /mx:operation /mx:WebService mx:Button x=141 y=280 label=Button click= myWebservice.echoString.send() / mx:TextArea id=source** width=356 height=201 text={ myWebservice.echoString.lastResult} x=10 y=10/ mx:TextInput x=101** y=229 id=login/ If I have time today I want to start replacing one section of our CF based ERP system with a Flex/Apollo. It is how our employees clock in and out. They also log into jobs and log out with different labor types. I have to build the CFC first, but if I get stuck I will post here on the list. Thanks! Chad -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Clint Tredway *Sent:* Tuesday, March 20, 2007 10:11 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] first impressions Honestly, to get started you dont need to know OO. You need to understand how Flex works. Its event based. Your code needs to respond to events that are triggered, ie button clicks, results being returned from the server, etc. I would be happy to help you get going as I use Flex/CF/SQL Server everyday. On 20 Mar 2007 18:50:54 -0700, *Chad** Gray* [EMAIL PROTECTED] wrote: Im a CF guy and mainly a spaghetti coding CF guy. CF gave me, the non OO guy, the ability to write very complex programs that manipulated data in very complex ways since SQL is an easy language to learn and everything was very linear. Now my applications are hard to maintain, but easy to read and follows such a simple logic that any html guy could probably understand. They also deliver what the customer wants, and delivering what the customer wants is of course the number one objective. I step into Flex and the demo's make it look easy, but I try to start writing my own apps in flex and I am lost. Nothing is familiar like it is in CF where things start at the top of the page and work their way down then lead from point A to B. Maybe it is an old dog learning new tricks syndrome Can someone link me to good training on OO? I think this is the place that I need help. I need the basic... super basic lead into OO. Should I concentrate on java based training? -- http://indeegrumpee.spaces.live.com/ -- http://indeegrumpee.spaces.live.com/
Re: [flexcoders] Nesting Complex Remote Objects
in AMFPHP 1.9 you need to include the $_explicitType variable with every VO object you send from the server. Not sure how this works in other languages, but you may want to look into it. - Kevin On Mar 21, 2007, at 9:42 AM, aicfan4 wrote: I have two Value Objects: a simple VO and a VO that contains the first VO in it. For example: --- SimpleVO --- ... [RemoteClass(alias=test.SimpleVO)] public class SimpleVO { public var id:int; public var data:String; } === SimpleVO === --- ComplexVO --- ... [RemoteClass(alias=test.ComplexVO)] public class ComplexVO { public var id:int; public var simple:SimpleVO; public var otherdata:String; ... } === ComplexVO === I'm successfully using a RemoteObject to retrieve the ComplexVO from my server and I can read the id and otherdata, etc. properties of the ComplexVO, but I'm getting empty data when trying to read the properties of the SimpleVO inside of the ComplexVO. My DAO class isn't doing anything tricky. Is there something else I need to be doing in order for the serialization back to my ActionScript classes to work properly?
Re: [flexcoders] Coercion failed ArrayCollection with Objects inside Object AMFPHP 1.9
you may need to use this meta tag to let Flex know what is in the ArrayCollection [ArrayElementType(com.app.classes.MyClassObj)] //(I am not sure if that is YOUR correct path in Flex??) public var list: ArrayCollection; I hope that does the trick. I have gotten it to work in AMFPHP 1.9. - Kevin On Mar 21, 2007, at 9:42 AM, Thomas Huijzer wrote: Hi All, With AMFPHP 1.9 I am trying to return an Object containing some vars and an ArrayCollection. Inside this ArrayCollection there are other Objects. But I can't get this to work in Flex. For example: Flex class package com.app.classes { import mx.collections.ArrayCollection; [RemoteClass (alias=com.app.classes.RemoteClass)] public class MyClass { public var id: Number; public var list: ArrayCollection; } } package com.app.classes { [RemoteClass (alias=com.app.classes.RemoteClassObj)] public class MyClassObj { public var id: Number; public var name: String; } } PHP class class MyClass { var $id; var $list; } class MyClassObj { var $id; var $name; } function getData() { $data = new MyClass; $data-id = 1; $data-list = array(); $data-list[0] = new MyClassObj; $data-list[0]-id = 2; $data-list[0]-name = myName; return $data; } When I return this to Flex, the MyClass is filled ok. By the list coercion fails. Any idea to solve this problem? Thank you. Need Mail bonding? Go to the Yahoo! Mail QA for great tips from Yahoo! Answers users.
[flexcoders] Eclipse internal web browser and FB
How to get FB debug to launch in the internal web browser in Eclipse and not FF/IE? Possible? Why would I want this? We are having issues with the debugger on IE. Issue is we have a CF based login and the Debug launches a new IE session each time its used, not reusing a current IE window, thereby breaking the debug session. Oh, and IE is the standard in my company :( -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it?
Re: [flexcoders] Re: first impressions
you can add a comand line argument to use remoting.. or you can recreate the project in Eclipse. On 21 Mar 2007 06:59:44 -0700, rchadgray [EMAIL PROTECTED] wrote: Flash Remoting? I have not played with that in CF, but i will read the docs and see what that is about. I will convert my below test into a Flash Remoting service instead of a web service. Will i need to start a new project in Eclipse and select the flash remoting option? Or can i take my current project and just change the way i connect to the service? Thanks! Chad --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Clint Tredway [EMAIL PROTECTED] wrote: I am not sure how your system is setup, but if you can, use Remoting instead of webservices... remoting is much much faster and IMO, easier to work with. On 3/21/07, Chad Gray [EMAIL PROTECTED] wrote: Hi Clint, thanks for the response. I watch the silvafug training yesterday and i started with session 3 and I probably should have started with 1. http://www.silvafug.org/ They got into all of this event stuff and custom components. It seems very OO if you want to really start making some powerful applications. I have built my first app that talks to one of my CFC's via web service. It took me a while and some reading of the adobe help files to figure what to place in click and how .lastResult works. mx:WebService id=myWebservice wsdl=http://demo.dev/test.cfc?wsdl; useProxy=false mx:operation name=echoString mx:request input {login.text} /input /mx:request /mx:operation /mx:WebService mx:Button x=141 y=280 label=Button click= myWebservice.echoString.send() / mx:TextArea id=source** width=356 height=201 text={ myWebservice.echoString.lastResult} x=10 y=10/ mx:TextInput x=101** y=229 id=login/ If I have time today I want to start replacing one section of our CF based ERP system with a Flex/Apollo. It is how our employees clock in and out. They also log into jobs and log out with different labor types. I have to build the CFC first, but if I get stuck I will post here on the list. Thanks! Chad -- *From:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] *On Behalf Of *Clint Tredway *Sent:* Tuesday, March 20, 2007 10:11 PM *To:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com *Subject:* Re: [flexcoders] first impressions Honestly, to get started you dont need to know OO. You need to understand how Flex works. Its event based. Your code needs to respond to events that are triggered, ie button clicks, results being returned from the server, etc. I would be happy to help you get going as I use Flex/CF/SQL Server everyday. On 20 Mar 2007 18:50:54 -0700, *Chad** Gray* [EMAIL PROTECTED] wrote: Im a CF guy and mainly a spaghetti coding CF guy. CF gave me, the non OO guy, the ability to write very complex programs that manipulated data in very complex ways since SQL is an easy language to learn and everything was very linear. Now my applications are hard to maintain, but easy to read and follows such a simple logic that any html guy could probably understand. They also deliver what the customer wants, and delivering what the customer wants is of course the number one objective. I step into Flex and the demo's make it look easy, but I try to start writing my own apps in flex and I am lost. Nothing is familiar like it is in CF where things start at the top of the page and work their way down then lead from point A to B. Maybe it is an old dog learning new tricks syndrome Can someone link me to good training on OO? I think this is the place that I need help. I need the basic... super basic lead into OO. Should I concentrate on java based training? -- http://indeegrumpee.spaces.live.com/ -- http://indeegrumpee.spaces.live.com/ -- http://indeegrumpee.spaces.live.com/
[flexcoders] Re: Nesting Complex Remote Objects
Sorry that I forgot to specify I'm using a Java backend. --- In flexcoders@yahoogroups.com, Kevin [EMAIL PROTECTED] wrote: in AMFPHP 1.9 you need to include the $_explicitType variable with every VO object you send from the server. Not sure how this works in other languages, but you may want to look into it. - Kevin On Mar 21, 2007, at 9:42 AM, aicfan4 wrote: I have two Value Objects: a simple VO and a VO that contains the first VO in it. For example: --- SimpleVO --- ... [RemoteClass(alias=test.SimpleVO)] public class SimpleVO { public var id:int; public var data:String; } === SimpleVO === --- ComplexVO --- ... [RemoteClass(alias=test.ComplexVO)] public class ComplexVO { public var id:int; public var simple:SimpleVO; public var otherdata:String; ... } === ComplexVO === I'm successfully using a RemoteObject to retrieve the ComplexVO from my server and I can read the id and otherdata, etc. properties of the ComplexVO, but I'm getting empty data when trying to read the properties of the SimpleVO inside of the ComplexVO. My DAO class isn't doing anything tricky. Is there something else I need to be doing in order for the serialization back to my ActionScript classes to work properly?
[flexcoders] Re: Coercion failed ArrayCollection with Objects inside Object AMFPHP 1.9
Kevin, thank you for your response. Unfortunately it doesn't work. It also seems that this META is only used for Array's. So I am not sure it will work in my case. Thomas --- In flexcoders@yahoogroups.com, Kevin [EMAIL PROTECTED] wrote: you may need to use this meta tag to let Flex know what is in the ArrayCollection [ArrayElementType(com.app.classes.MyClassObj)] //(I am not sure if that is YOUR correct path in Flex??) public var list: ArrayCollection; I hope that does the trick. I have gotten it to work in AMFPHP 1.9. - Kevin On Mar 21, 2007, at 9:42 AM, Thomas Huijzer wrote: Hi All, With AMFPHP 1.9 I am trying to return an Object containing some vars and an ArrayCollection. Inside this ArrayCollection there are other Objects. But I can't get this to work in Flex. For example: Flex class package com.app.classes { import mx.collections.ArrayCollection; [RemoteClass (alias=com.app.classes.RemoteClass)] public class MyClass { public var id: Number; public var list: ArrayCollection; } } package com.app.classes { [RemoteClass (alias=com.app.classes.RemoteClassObj)] public class MyClassObj { public var id: Number; public var name: String; } } PHP class class MyClass { var $id; var $list; } class MyClassObj { var $id; var $name; } function getData() { $data = new MyClass; $data-id = 1; $data-list = array(); $data-list[0] = new MyClassObj; $data-list[0]-id = 2; $data-list[0]-name = myName; return $data; } When I return this to Flex, the MyClass is filled ok. By the list coercion fails. Any idea to solve this problem? Thank you. Need Mail bonding? Go to the Yahoo! Mail QA for great tips from Yahoo! Answers users.
[flexcoders] Full Screen Mode bug with TextInput
Hi, I notice there's a problem with TextInput fields when in Full Screen Mode... you can't enter any text into the field. At least that's what happens here ;-) Anyone got a workaround for this at all ? Is this a problem that Adobe are aware of, or does this need to be reported ? Jamie.
[flexcoders] SWF using HTTPS to an SSL Translator Proxy to communicate to FDS via HTTP
We have a client that translates all incoming HTTPS requests to HTTP for internal services to get a performance boost. How can we have a secure SWF communicating over HTTPS that needs to leverage it's FDS counterpart that's accessed by HTTP (through the SSL translator) if the SWF is compiled on the server with FDS and thinks it's endpoints and channels need to be secure? Has anyone extended the AMFEndpoints / Channel FDS Java classes to allow a secure SWF to communicate to an unsecure FDS app? Thanks, -riley
Re: [flexcoders] FDS 2 becomes LDS 2.5 | See labs.adobe.com
Does LCDS and the FlexBuilder update allow for more indirect configuration of things like the web-app config location, or the channel locations? We've had a really hard time configuring things so we can build a single binary on our build server, and test that same binary in our dev, QA, staging and production environments. Without the ability to certify a build through staged environments, Flex will have a difficult time rolling out in large organizations with serious software development processes in place. regards, Christian. On Mar 21, 2007, at 9:54 AM, Peter Farland wrote: Note that updates to the Flex SDK and FlexBuilder will soon be available to support LCDS 2.5 (which is still in Beta). . christian gruber + [EMAIL PROTECTED] + bus 905.640.1119 + mob 416.998.6023 process coach and architect + ISRAFIL CONSULTING SERVICES
[flexcoders] Module issue
Hi everybody, i'm facing a real funny problem with modules and moduleLoader, i hope it's not my fault anyway... If i create a normal flex project with fBuilder, i'm able to use modules in a lot of different ways (as mxml, as as in a function etc..)... but if i try to use them in my fds application (created with fds eclipse plugin) i can't use modules. The compile-time error message is always the same: Could not resolve mx:ModuleLoader to a component implementation I tried a lot of solutions, paying attention to import all the classes etc...but nothing change. I will appreciate everykind of help. TIA Fabio
Re: [flexcoders] Working with ads (DART) in flex ? How can you possibly do that ?
The ad networks are going to need to provide a native Flash solution sooner rather than later, particularly with the growing number of Flash RIAs (in particular games). Mochi Ads provides one solution for games, but its nothing compared to a TextLinks, DoubleClick or GoogleAds. In other words, there is no solution beyond what you mentioned. The ad networks simply depend on functionality that isn't present inside of Flash. Troy. On 21 Mar 2007 03:20:57 -0700, Jean-Luc ESSER [EMAIL PROTECTED] wrote: If someone finds a solution to this one, i'll pay him strawberries ! Is there a way of doing a js document.write in Flex ? Explanantion : Today i have a website with DART tags like this one : script !-- document.write('script language=JavaScript src= http://ad.fr.doubleclick.net/adj/ts.psycho.com/homepage/index/sky;kw=x;tile=5;sz=160x320;ord= '+jsDartRandom+'?/script'); //-- /script Tomorrow my website is gonna be a full flex application. How do i implement my DART into my Flex app ? Looks like i cannot, because the source is not necessarly the swf or gif, but can be a redirect, that is another js calling another js, and so on. So is there a way flex can deal with this ? I think this is gonna become a very big problem if we cannot deal with ads in flex apps... Using an iFrame to display ads doesn't work as some ads may have to expand over the app on rollover. Working with divs won't work as there is no way of knowing the size of the ad returned by DART, and thus no way of allowing the corresponding space in our flex app... I'm stuck !! Jean-Luc.
Re: [flexcoders] Full Screen Mode bug with TextInput
It's not a bug, it's a feature. A security feature. When in full-screen, the Flash Player absorbs all keyboard events for itself, thus only the mouse is useful (no keyboard input of any kind). Yeah, sucks, don't it? Oh well... Troy. On 21 Mar 2007 07:33:10 -0700, jamiebadman [EMAIL PROTECTED] wrote: Hi, I notice there's a problem with TextInput fields when in Full Screen Mode... you can't enter any text into the field. At least that's what happens here ;-) Anyone got a workaround for this at all ? Is this a problem that Adobe are aware of, or does this need to be reported ? Jamie.
[flexcoders] Re: Coercion failed ArrayCollection with Objects inside Object AMFPHP 1.9
I don't see an $_explicitType variable in your PHP code. You need to add the following to you PHP classes. var $_explicitType = com.app.classes.RemoteClass; var $_explicitType = com.app.classes.RemoteClassObj; Michael --- In flexcoders@yahoogroups.com, Thomas Huijzer [EMAIL PROTECTED] wrote: Hi All, With AMFPHP 1.9 I am trying to return an Object containing some vars and an ArrayCollection. Inside this ArrayCollection there are other Objects. But I can't get this to work in Flex. For example: Flex class package com.app.classes { import mx.collections.ArrayCollection; [RemoteClass (alias=com.app.classes.RemoteClass)] public class MyClass { public var id: Number; public var list: ArrayCollection; } } package com.app.classes { [RemoteClass (alias=com.app.classes.RemoteClassObj)] public class MyClassObj { public var id: Number; public var name: String; } } PHP class class MyClass { var $id; var $list; } class MyClassObj { var $id; var $name; } function getData() { $data = new MyClass; $data-id = 1; $data-list = array(); $data-list[0] = new MyClassObj; $data-list[0]-id = 2; $data-list[0]-name = myName; return $data; } When I return this to Flex, the MyClass is filled ok. By the list coercion fails. Any idea to solve this problem? Thank you. - Need Mail bonding? Go to the Yahoo! Mail QA for great tips from Yahoo! Answers users.
[flexcoders] Re: Can validation prevent text input entry?
Anyone? --- In flexcoders@yahoogroups.com, Lex [EMAIL PROTECTED] wrote: Thanks for the response! Precisely how does one listen for ITEM_EDIT_END? (extremely new to flex) If I do mx:TextInput textInput=validateData(event) with a private function validateData( event:TextEvent ):void{ } where my validator has ID cv, how do I trigger validation, and then check the result, to finally call event.preventDefault() if the shit hits the fan? Thanks for your help. The docs in this dept are incredibly lacking.. Alex - Original Message - From: Alex Harui To: flexcoders@yahoogroups.com Sent: Wednesday, March 21, 2007 1:12 AM Subject: RE: [flexcoders] Can validation prevent text input entry? No, validation is not blocking. It is just that the itemEditor is going away. What most folks do is check validation on ITEM_EDIT_END and prevent the change to the dataprovider by calling preventDefault(). You can also catch ITEM_EDIT_BEGINNING and return the editor to the bad cell if the user is tabbing or clicking another cell, but if the user clicks outside you can't really restore focus to the cell. If you want to get really fancy then your itemRenderers will color differently if they are invalid. -Alex -- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Lex Sent: Tuesday, March 20, 2007 9:59 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Can validation prevent text input entry? Hi there, I have a TextInput type that I am using as an itemEditor in a DataGrid. I'm trying to prevent users from entering anything but 'dollar' amounts. I have the class below, but it doesn't work as expected... I can edit the grid cell, enter a letter, and then exit the grid without warning. It's only when I click on the grid to edit it a second time, that the red halo with the 'invalid input' flag appears. Help appreciated. ?xml version=1.0 encoding=utf-8? mx:TextInput focusOut=validateData(); xmlns:mx=http://www.adobe.com/2006/mxml; width=100% height=100% implements=mx.core.IFactory mx:Script ![CDATA[ import mx.events.ValidationResultEvent; import mx.controls.dataGridClasses.DataGridColumn; public var dataField:String; private var rowData:Object; [ Bindable]private var contentValue:String; public function newInstance():*{ return new GenericDollarFormatItemEditor(); } private function validateData():void{ cv.validate(); } override public function set data(value:Object):void { if( value != null ){ rowData = value; if( !(value is DataGridColumn) dataField != null ){ contentValue = value[dataField]; this.text = value[dataField]; } } } ]] /mx:Script mx:CurrencyValidator id=cv source={this} listener={this} property=text alignSymbol=left / /mx:TextInput
[flexcoders] Re: LiveCycle Data Services 2.5 - Using dynamically referenced queue destination
Hi Brian, BootstrapServices in LCDS 2.5 are special services used to create Services, Destinations, and Adapters without needing any configuration files. This is what you need to do: 1- Create a class that extends AbstractBootstrapService. 2- In that class, implement initialize() method. In this method, you'll create your destinations using the LCDS Server APIs. 3- Register your class with LCDS by referencing it in the services section of services-config.xml: service class=my.company.MyBootstrapService1 id=bootstrap1/ Next time, LCDS starts up, it'll call the initialize method of MyBootstrapService1 where you create your destinations and these destinations will be available to your app. There will be BootstrapService examples in resources/config/bootstrapservices once LCDS is final. -Mete --- In flexcoders@yahoogroups.com, klumikaze [EMAIL PROTECTED] wrote: Our application currently uses a large number of queue destinations. We create the destinations in the messaging-config.xml file and compile our app against the FDS configuration files (and then upload to the J2EE container). There are 100+ queue destinations defined in messaging-config.xml currently. Our Java backend creates these queues in ActiveMQ or JBoss (using the same queue destinations as configured in messaging-config.xml) and pumps data in to them. I've read through the beta documentation and there is a section on Configuring components with a bootstrap service. Do we need to create a class that creates/exposes these queue destinations to the Flex app, or can we just attach Flex consumers to queue destinations and the new LCDS libraries will do the work for us? Any input you might have would be appreciated. Thanks, Brian
[flexcoders] Re: SWF using HTTPS to an SSL Translator Proxy to communicate to FDS via HTTP
Pete: Thanks for your response, and my team will dive into this, but we're looking for an immediate solution for 2.0.1. Also, does this impl for 2.5 work for AMF endpoints as well, or just HTTP services? Thanks, -riley --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: In LCDS 2.5 (nee FDS 2.5) you can now configure the following situation: channel-definition id=my-secure-http class=mx.messaging.channels.SecureHTTPChannel endpoint uri=https://{server.name}:{server.port}/{context.root}/messagebroker/ht tpsecure https://{server.name}:{server.port}/{context.root}/messagebroker/httpse cure class=flex.messaging.endpoints.HTTPEndpoint/ /channel-definition The HTTPEndpoint on the server will now not complain if it is contacted via HTTP or HTTPS. Have a go at LCDS 2.5 Beta 2, which was just made available on labs. http://labs.adobe.com/technologies/livecycle_dataservices2_5/ Regards, Pete From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of brian_m_riley Sent: Wednesday, March 21, 2007 10:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] SWF using HTTPS to an SSL Translator Proxy to communicate to FDS via HTTP We have a client that translates all incoming HTTPS requests to HTTP for internal services to get a performance boost. How can we have a secure SWF communicating over HTTPS that needs to leverage it's FDS counterpart that's accessed by HTTP (through the SSL translator) if the SWF is compiled on the server with FDS and thinks it's endpoints and channels need to be secure? Has anyone extended the AMFEndpoints / Channel FDS Java classes to allow a secure SWF to communicate to an unsecure FDS app? Thanks, -riley
[flexcoders] copying bitmap data
I have a canvas in my layout and the application allows dragging and dropping items into the canvas. I need to be able to grab a bitmap of the canvas when the user is finished, so I can display the drawing on another panel, and in the FlexPrintJob function. I've tried using this code, initiated from a button: private function myDrawing():void{ var myBitmapData:BitmapData = new BitmapData(530, 445); myBitmapData.draw(myWorkspace1); var bmp:Bitmap = new Bitmap(myBitmapData); showDrawing.addChild(bmp); //this isn't working } myWorkspace1 is the ID of the canvas where everything is dropped. I have a canvas with the ID=showDrawing that I'd like the bitmap to appear in. Anyone know what I need to add to the above function to get that done? Dave
[flexcoders] flash remoting
I am reading up on doing flash remoting in CF. I have CF 7.0.2 installed on a windows machine running through IIS. In the CF administrator Flex and Flash remoting is turned on. When you make a new project in eclipse the default for Root Url contains a port 8500 if i remember right. Does Flash remoting run over a special port or is it just 80? I could not find anything in the CF Admin to set the port so i am guessing that it just uses 80. I cant find any flex code examples of connecting to flash remoting. Can someone post something or point me in a direction? When creating a new project in eclipse that uses flash remoting it asks for a root folder to your CF server. Our development CF server is on another box on the network (and i really dont want to install CF on my computer). Do i need to make a share on the development server so i can enter \\BENDER\CFusionMX7\wwwroot\ into the field? Any help is appreciated, and if i over looked this information/code examples in the help files let me know and i will read them. thanks in advance!
RE: [flexcoders] Re: SWF using HTTPS to an SSL Translator Proxy to communicate to FDS via HTTP
Sorry, yes, that will work for any HTTP-based channel, including the AMFChannel, which posts AMF binary over HTTP. e.g. channel-definition id=my-secure-amf class=mx.messaging.channels.SecureAMFChannel endpoint uri=https://{server.name}:{server.port}/{context.root}/messagebroker/am fsecure https://{server.name}:{server.port}/{context.root}/messagebroker/amfsec ure class=flex.messaging.endpoints.AMFEndpoint/ /channel-definition I'll contact you directly regarding 2.0.1. Pete From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of brian_m_riley Sent: Wednesday, March 21, 2007 11:11 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: SWF using HTTPS to an SSL Translator Proxy to communicate to FDS via HTTP Pete: Thanks for your response, and my team will dive into this, but we're looking for an immediate solution for 2.0.1. Also, does this impl for 2.5 work for AMF endpoints as well, or just HTTP services? Thanks, -riley --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Peter Farland [EMAIL PROTECTED] wrote: In LCDS 2.5 (nee FDS 2.5) you can now configure the following situation: channel-definition id=my-secure-http class=mx.messaging.channels.SecureHTTPChannel endpoint uri=https://{server.name}:{server.port}/{context.root}/messagebroker/ht tpsecure https://{server.name}:{server.port}/{context.root}/messagebroker/httpse cure class=flex.messaging.endpoints.HTTPEndpoint/ /channel-definition The HTTPEndpoint on the server will now not complain if it is contacted via HTTP or HTTPS. Have a go at LCDS 2.5 Beta 2, which was just made available on labs. http://labs.adobe.com/technologies/livecycle_dataservices2_5/ http://labs.adobe.com/technologies/livecycle_dataservices2_5/ Regards, Pete From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of brian_m_riley Sent: Wednesday, March 21, 2007 10:37 AM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] SWF using HTTPS to an SSL Translator Proxy to communicate to FDS via HTTP We have a client that translates all incoming HTTPS requests to HTTP for internal services to get a performance boost. How can we have a secure SWF communicating over HTTPS that needs to leverage it's FDS counterpart that's accessed by HTTP (through the SSL translator) if the SWF is compiled on the server with FDS and thinks it's endpoints and channels need to be secure? Has anyone extended the AMFEndpoints / Channel FDS Java classes to allow a secure SWF to communicate to an unsecure FDS app? Thanks, -riley
RE: [flexcoders] SWF using HTTPS to an SSL Translator Proxy to communicate to FDS via HTTP
In LCDS 2.5 (nee FDS 2.5) you can now configure the following situation: channel-definition id=my-secure-http class=mx.messaging.channels.SecureHTTPChannel endpoint uri=https://{server.name}:{server.port}/{context.root}/messagebroker/ht tpsecure https://{server.name}:{server.port}/{context.root}/messagebroker/httpse cure class=flex.messaging.endpoints.HTTPEndpoint/ /channel-definition The HTTPEndpoint on the server will now not complain if it is contacted via HTTP or HTTPS. Have a go at LCDS 2.5 Beta 2, which was just made available on labs. http://labs.adobe.com/technologies/livecycle_dataservices2_5/ Regards, Pete From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of brian_m_riley Sent: Wednesday, March 21, 2007 10:37 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] SWF using HTTPS to an SSL Translator Proxy to communicate to FDS via HTTP We have a client that translates all incoming HTTPS requests to HTTP for internal services to get a performance boost. How can we have a secure SWF communicating over HTTPS that needs to leverage it's FDS counterpart that's accessed by HTTP (through the SSL translator) if the SWF is compiled on the server with FDS and thinks it's endpoints and channels need to be secure? Has anyone extended the AMFEndpoints / Channel FDS Java classes to allow a secure SWF to communicate to an unsecure FDS app? Thanks, -riley
Re: [flexcoders] flash remoting
the share should work. Remoting works on the same port as the cf server is on. So if CF is tied to IIS and IIS is running on port 80, then so is CF, so is Remoting. You can change the URL to point to your dev server. I run CF locally then move my files to a server when its ready to test. I will give you some sample code here in a min. On 21 Mar 2007 08:19:09 -0700, rchadgray [EMAIL PROTECTED] wrote: I am reading up on doing flash remoting in CF. I have CF 7.0.2 installed on a windows machine running through IIS. In the CF administrator Flex and Flash remoting is turned on. When you make a new project in eclipse the default for Root Url contains a port 8500 if i remember right. Does Flash remoting run over a special port or is it just 80? I could not find anything in the CF Admin to set the port so i am guessing that it just uses 80. I cant find any flex code examples of connecting to flash remoting. Can someone post something or point me in a direction? When creating a new project in eclipse that uses flash remoting it asks for a root folder to your CF server. Our development CF server is on another box on the network (and i really dont want to install CF on my computer). Do i need to make a share on the development server so i can enter \\BENDER\CFusionMX7\wwwroot\ into the field? Any help is appreciated, and if i over looked this information/code examples in the help files let me know and i will read them. thanks in advance! -- http://indeegrumpee.spaces.live.com/
[flexcoders] Key Events not raised from Modules
I have an app that contains modules in a viewstack. The containing application defines a keyboard event listener that detects certain keystrokes. When an object that is in the main application has the focus, the listener triggers as expected. However, when a module has focus, the listener is not triggered, indicating that the module is not raising the event to the parent application. Is this just the way it is, or am I missing something? Thanks, shaun
[flexcoders] Re: Coercion failed ArrayCollection with Objects inside Object AMFPHP 1.9
Whoops, I didn't write this down, but I got this in my code, so it should not be the problem. In fact, all PHP Objects return as Flex Objects, except for Array's. They are not translated to ArrayCollections. So the ArrayCollections in my Flex Objects remain empty. --- In flexcoders@yahoogroups.com, michael_ramirez44 [EMAIL PROTECTED] wrote: I don't see an $_explicitType variable in your PHP code. You need to add the following to you PHP classes. var $_explicitType = com.app.classes.RemoteClass; var $_explicitType = com.app.classes.RemoteClassObj; Michael --- In flexcoders@yahoogroups.com, Thomas Huijzer thuijzer@ wrote: Hi All, With AMFPHP 1.9 I am trying to return an Object containing some vars and an ArrayCollection. Inside this ArrayCollection there are other Objects. But I can't get this to work in Flex. For example: Flex class package com.app.classes { import mx.collections.ArrayCollection; [RemoteClass (alias=com.app.classes.RemoteClass)] public class MyClass { public var id: Number; public var list: ArrayCollection; } } package com.app.classes { [RemoteClass (alias=com.app.classes.RemoteClassObj)] public class MyClassObj { public var id: Number; public var name: String; } } PHP class class MyClass { var $id; var $list; } class MyClassObj { var $id; var $name; } function getData() { $data = new MyClass; $data-id = 1; $data-list = array(); $data-list[0] = new MyClassObj; $data-list[0]-id = 2; $data-list[0]-name = myName; return $data; } When I return this to Flex, the MyClass is filled ok. By the list coercion fails. Any idea to solve this problem? Thank you. - Need Mail bonding? Go to the Yahoo! Mail QA for great tips from Yahoo! Answers users.
[flexcoders] Re: Working with ads (DART) in flex ? How can you possibly do that ?
I don't see the ad networks providing such a solution... It would mean, because of the redirects from one network to the other, that every single network makes this move. I think the move has to come from adobe, in a way or another. Adobe ? Jean-Luc ESSER Leader of the French Flex User Group (flexeurs.org) --- In flexcoders@yahoogroups.com, Troy Gilbert [EMAIL PROTECTED] wrote: The ad networks are going to need to provide a native Flash solution sooner rather than later, particularly with the growing number of Flash RIAs (in particular games). Mochi Ads provides one solution for games, but its nothing compared to a TextLinks, DoubleClick or GoogleAds. In other words, there is no solution beyond what you mentioned. The ad networks simply depend on functionality that isn't present inside of Flash. Troy. On 21 Mar 2007 03:20:57 -0700, Jean-Luc ESSER [EMAIL PROTECTED] wrote: If someone finds a solution to this one, i'll pay him strawberries ! Is there a way of doing a js document.write in Flex ? Explanantion : Today i have a website with DART tags like this one : script !-- document.write('script language=JavaScript src= http://ad.fr.doubleclick.net/adj/ts.psycho.com/homepage/index/sky;kw=x;tile=5;sz=160x320;ord= '+jsDartRandom+'?/script'); //-- /script Tomorrow my website is gonna be a full flex application. How do i implement my DART into my Flex app ? Looks like i cannot, because the source is not necessarly the swf or gif, but can be a redirect, that is another js calling another js, and so on. So is there a way flex can deal with this ? I think this is gonna become a very big problem if we cannot deal with ads in flex apps... Using an iFrame to display ads doesn't work as some ads may have to expand over the app on rollover. Working with divs won't work as there is no way of knowing the size of the ad returned by DART, and thus no way of allowing the corresponding space in our flex app... I'm stuck !! Jean-Luc.
[flexcoders] Re: LiveCycle Data Services 2.5 - Using dynamically referenced queue destination
Mete, Thanks for your help! Just looking through your reply and the documentation and wanted to clarify what I am trying to do: The Java backend currently creates a queue dynamically upon request (in this case, when I a launch a certain component in the frontend), and returns the queue name back to the Flex frontend (i.e. as a String of 'q001') after messages have been placed in it. Is the process you describe intended to allow the Flex frontend to see/use that queue that was created without messaging-config.xml? Do I need to call the initialize() method of that custom class to setup the new queue destination on FDS? Any chance you have an early sample Java class that we could see? Thanks again, Brian --- In flexcoders@yahoogroups.com, meteatamel [EMAIL PROTECTED] wrote: Hi Brian, BootstrapServices in LCDS 2.5 are special services used to create Services, Destinations, and Adapters without needing any configuration files. This is what you need to do: 1- Create a class that extends AbstractBootstrapService. 2- In that class, implement initialize() method. In this method, you'll create your destinations using the LCDS Server APIs. 3- Register your class with LCDS by referencing it in the services section of services-config.xml: service class=my.company.MyBootstrapService1 id=bootstrap1/ Next time, LCDS starts up, it'll call the initialize method of MyBootstrapService1 where you create your destinations and these destinations will be available to your app. There will be BootstrapService examples in resources/config/bootstrapservices once LCDS is final. -Mete --- In flexcoders@yahoogroups.com, klumikaze briandunphy@ wrote: Our application currently uses a large number of queue destinations. We create the destinations in the messaging-config.xml file and compile our app against the FDS configuration files (and then upload to the J2EE container). There are 100+ queue destinations defined in messaging-config.xml currently. Our Java backend creates these queues in ActiveMQ or JBoss (using the same queue destinations as configured in messaging-config.xml) and pumps data in to them. I've read through the beta documentation and there is a section on Configuring components with a bootstrap service. Do we need to create a class that creates/exposes these queue destinations to the Flex app, or can we just attach Flex consumers to queue destinations and the new LCDS libraries will do the work for us? Any input you might have would be appreciated. Thanks, Brian
[flexcoders] Re: Developing Rich Clients, Source Code?
Maybe you can email Steve or Alistar directly and ask them. I've found that they are normally pretty responsive to emails. Also, their previous book Reality J2EE is fantastic as well. It is a little bit older and focuses on build Flash (prior to Flex) UIs with J2EE on the backend, but the book is fanatastic because it doubles as a development planning handbook. They cover things like client interviews, iterative development and spike spolutions which are a great way to work! Highly recommended! - Bill --- In flexcoders@yahoogroups.com, lostinrecursion [EMAIL PROTECTED] wrote: Hi all, I had the pleasure of picking up the book, Developing Rich Clients with Macromedia Flex, by our community brethren Steven Webster and Alistair McLeod. At first I was hesitant to pick it up because of the fact it was Flex 1.5 and I am a Flex 2 convert. But, I HIGHLY recommend it to anyone who wants to get a ground running start on their development. Would anyone know where I can find the source code for this book? Originally it was available on the iteration::two website. But that site has been reporting an Apache server error for a while. Does anyone have it that could be kind enough to post it here so that I could use it along with my studies? Thanks -Kenny/LIR
[flexcoders] Re: Working with ads (DART) in flex ? How can you possibly do that ?
Perhaps you should be talking with Doubleclick, it looks like they have a Flash in Flash solution for DART. http://www.doubleclick.com/us/products/dart_motif_for_flash_in_flash/ I'm not at all familiar with it though, just trying to be helpful. I've never really worked with ads before, I have a deep disdain for them... but I'm sure someday I'll have to give in to it. --- In flexcoders@yahoogroups.com, Jean-Luc ESSER [EMAIL PROTECTED] wrote: If someone finds a solution to this one, i'll pay him strawberries ! Is there a way of doing a js document.write in Flex ? Explanantion : Today i have a website with DART tags like this one : script !-- document.write('script language=JavaScript src=http://ad.fr.doubleclick.net/adj/ts.psycho.com/homepage/index/sky;kw=x;tile=5;sz=160x320;ord='+jsDartRandom+'?/script'); //-- /script Tomorrow my website is gonna be a full flex application. How do i implement my DART into my Flex app ? Looks like i cannot, because the source is not necessarly the swf or gif, but can be a redirect, that is another js calling another js, and so on. So is there a way flex can deal with this ? I think this is gonna become a very big problem if we cannot deal with ads in flex apps... Using an iFrame to display ads doesn't work as some ads may have to expand over the app on rollover. Working with divs won't work as there is no way of knowing the size of the ad returned by DART, and thus no way of allowing the corresponding space in our flex app... I'm stuck !! Jean-Luc.
RE: [flexcoders] FDS 2 becomes LDS 2.5 | See labs.adobe.com
What sorts of things change between your dev, qa, staging and production environments? Debugging levels? Ports? WAR context roots? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Christian Gruber Sent: Wednesday, March 21, 2007 10:52 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] FDS 2 becomes LDS 2.5 | See labs.adobe.com Does LCDS and the FlexBuilder update allow for more indirect configuration of things like the web-app config location, or the channel locations? We've had a really hard time configuring things so we can build a single binary on our build server, and test that same binary in our dev, QA, staging and production environments. Without the ability to certify a build through staged environments, Flex will have a difficult time rolling out in large organizations with serious software development processes in place. regards, Christian. On Mar 21, 2007, at 9:54 AM, Peter Farland wrote: Note that updates to the Flex SDK and FlexBuilder will soon be available to support LCDS 2.5 (which is still in Beta). . http://geo.yahoo.com/serv?s=97359714/grpId=12286167/grpspId=1705007207/ msgId=68655/stime=1174485256/nc1=4438988/nc2=3848644/nc3=3 christian gruber + [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] + bus 905.640.1119 + mob 416.998.6023 process coach and architect + ISRAFIL CONSULTING SERVICES
Re: [flexcoders] Migration from 1.5 to 2.0
On Wednesday 21 Mar 2007, deravi2000 wrote: Don't know how to parse element http://www.adobe.com/2006/mxml:Script;. It is not a known type or a property of mx.core.Application. Please post the the line of code throwing the error, or the whole file if it doesn't get that far. Probably a typo in the xmlns:mx=... on the base tag. -- Tom Chiverton Helping to advantageously implement cross-media customers On: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Working with ads (DART) in flex ? How can you possibly do that ?
Thanks for your help, but it looks like this solution is for publishers, so they can develop content that will integrate into flash environments. But the problem remains for the one who just needs to integrate a campain in a flex environment. And the problem remains if you deal with redirects, that is ads from different ad networks. Jean-Luc ESSER --- In flexcoders@yahoogroups.com, Paul DeCoursey [EMAIL PROTECTED] wrote: Perhaps you should be talking with Doubleclick, it looks like they have a Flash in Flash solution for DART. http://www.doubleclick.com/us/products/dart_motif_for_flash_in_flash/ I'm not at all familiar with it though, just trying to be helpful. I've never really worked with ads before, I have a deep disdain for them... but I'm sure someday I'll have to give in to it. --- In flexcoders@yahoogroups.com, Jean-Luc ESSER flex@ wrote: If someone finds a solution to this one, i'll pay him strawberries ! Is there a way of doing a js document.write in Flex ? Explanantion : Today i have a website with DART tags like this one : script !-- document.write('script language=JavaScript src=http://ad.fr.doubleclick.net/adj/ts.psycho.com/homepage/index/sky;kw=x;tile=5;sz=160x320;ord='+jsDartRandom+'?/script'); //-- /script Tomorrow my website is gonna be a full flex application. How do i implement my DART into my Flex app ? Looks like i cannot, because the source is not necessarly the swf or gif, but can be a redirect, that is another js calling another js, and so on. So is there a way flex can deal with this ? I think this is gonna become a very big problem if we cannot deal with ads in flex apps... Using an iFrame to display ads doesn't work as some ads may have to expand over the app on rollover. Working with divs won't work as there is no way of knowing the size of the ad returned by DART, and thus no way of allowing the corresponding space in our flex app... I'm stuck !! Jean-Luc.
[flexcoders] Re: Working with ads (DART) in flex ? How can you possibly do that ?
I still think you need to talk to the ad service, perhaps they have something that isn't obvious to us. But... Do you have an example of the ads that you are trying to work with? I'd like to help you solve this because I know I will run into the same problem eventually. paul --- In flexcoders@yahoogroups.com, Jean-Luc ESSER [EMAIL PROTECTED] wrote: Thanks for your help, but it looks like this solution is for publishers, so they can develop content that will integrate into flash environments. But the problem remains for the one who just needs to integrate a campain in a flex environment. And the problem remains if you deal with redirects, that is ads from different ad networks. Jean-Luc ESSER --- In flexcoders@yahoogroups.com, Paul DeCoursey paul@ wrote: Perhaps you should be talking with Doubleclick, it looks like they have a Flash in Flash solution for DART. http://www.doubleclick.com/us/products/dart_motif_for_flash_in_flash/ I'm not at all familiar with it though, just trying to be helpful. I've never really worked with ads before, I have a deep disdain for them... but I'm sure someday I'll have to give in to it. --- In flexcoders@yahoogroups.com, Jean-Luc ESSER flex@ wrote: If someone finds a solution to this one, i'll pay him strawberries ! Is there a way of doing a js document.write in Flex ? Explanantion : Today i have a website with DART tags like this one : script !-- document.write('script language=JavaScript src=http://ad.fr.doubleclick.net/adj/ts.psycho.com/homepage/index/sky;kw=x;tile=5;sz=160x320;ord='+jsDartRandom+'?/script'); //-- /script Tomorrow my website is gonna be a full flex application. How do i implement my DART into my Flex app ? Looks like i cannot, because the source is not necessarly the swf or gif, but can be a redirect, that is another js calling another js, and so on. So is there a way flex can deal with this ? I think this is gonna become a very big problem if we cannot deal with ads in flex apps... Using an iFrame to display ads doesn't work as some ads may have to expand over the app on rollover. Working with divs won't work as there is no way of knowing the size of the ad returned by DART, and thus no way of allowing the corresponding space in our flex app... I'm stuck !! Jean-Luc.
[flexcoders] Re: Working with ads (DART) in flex ? How can you possibly do that ?
Also, you are a publisher, am I wrong? --- In flexcoders@yahoogroups.com, Jean-Luc ESSER [EMAIL PROTECTED] wrote: Thanks for your help, but it looks like this solution is for publishers, so they can develop content that will integrate into flash environments. But the problem remains for the one who just needs to integrate a campain in a flex environment. And the problem remains if you deal with redirects, that is ads from different ad networks. Jean-Luc ESSER --- In flexcoders@yahoogroups.com, Paul DeCoursey paul@ wrote: Perhaps you should be talking with Doubleclick, it looks like they have a Flash in Flash solution for DART. http://www.doubleclick.com/us/products/dart_motif_for_flash_in_flash/ I'm not at all familiar with it though, just trying to be helpful. I've never really worked with ads before, I have a deep disdain for them... but I'm sure someday I'll have to give in to it. --- In flexcoders@yahoogroups.com, Jean-Luc ESSER flex@ wrote: If someone finds a solution to this one, i'll pay him strawberries ! Is there a way of doing a js document.write in Flex ? Explanantion : Today i have a website with DART tags like this one : script !-- document.write('script language=JavaScript src=http://ad.fr.doubleclick.net/adj/ts.psycho.com/homepage/index/sky;kw=x;tile=5;sz=160x320;ord='+jsDartRandom+'?/script'); //-- /script Tomorrow my website is gonna be a full flex application. How do i implement my DART into my Flex app ? Looks like i cannot, because the source is not necessarly the swf or gif, but can be a redirect, that is another js calling another js, and so on. So is there a way flex can deal with this ? I think this is gonna become a very big problem if we cannot deal with ads in flex apps... Using an iFrame to display ads doesn't work as some ads may have to expand over the app on rollover. Working with divs won't work as there is no way of knowing the size of the ad returned by DART, and thus no way of allowing the corresponding space in our flex app... I'm stuck !! Jean-Luc.
Re: [flexcoders] FDS 2 becomes LDS 2.5 | See labs.adobe.com
Several things, including ports, server names. Not often context roots, but certainly debugging levels. The way we worked around it was to declare end-points in our mxml which over-rode the channels' end-points. This is ok, but it is a bit of a config hack, since we couldn't configure from flexvars or server-supplied configuration properties or anything. But regardless, we're still in the position where if we have a developer on one computer create a project, that project has to have knowledge of a web-app project. It can't resolve the target flex- config or messaging stuff relatively, or from an eclipse variable. So either all developers have to have an identical setup (not possible in our environment) or we have to have developers constantly accidentally checking-in FB project settings and overwriting them as they point the FB to their local webapp location. I'm not entirely clear on why an FB project even needs this. The config files should be supplied, of course, but Flex Builder is being needlessly picky about the structure of things. Since the command- line app can hit against an arbitrary flex-config.xml, why shouldn't the FB? regards, christian. On Mar 21, 2007, at 10:59 AM, Peter Farland wrote: What sorts of things change between your dev, qa, staging and production environments? Debugging levels? Ports? WAR context roots? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Christian Gruber Sent: Wednesday, March 21, 2007 10:52 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] FDS 2 becomes LDS 2.5 | See labs.adobe.com Does LCDS and the FlexBuilder update allow for more indirect configuration of things like the web-app config location, or the channel locations? We've had a really hard time configuring things so we can build a single binary on our build server, and test that same binary in our dev, QA, staging and production environments. Without the ability to certify a build through staged environments, Flex will have a difficult time rolling out in large organizations with serious software development processes in place. regards, Christian. On Mar 21, 2007, at 9:54 AM, Peter Farland wrote: Note that updates to the Flex SDK and FlexBuilder will soon be available to support LCDS 2.5 (which is still in Beta). . christian gruber + [EMAIL PROTECTED] + bus 905.640.1119 + mob 416.998.6023 process coach and architect + ISRAFIL CONSULTING SERVICES christian gruber + [EMAIL PROTECTED] + bus 905.640.1119 + mob 416.998.6023 process coach and architect + ISRAFIL CONSULTING SERVICES
Re: [flexcoders] Help: test EventDispatcher speed please
hello iiley , sure, you can get it at : http://www.tweenpix.net/EventBroadcaster.as I saw your bug report about visible property on your blog few time ago, and it sounds like a big problem too. francis Le 21 mars 07 à 11:44, iiley a écrit : Really strange, and annoying, and, maybe i guess the flash player 9 is still on a early version with strange and buggy things( there is some annoying bugs i discoveredhttp://www.rgenerat.org/iileyblog/ ). I think EventDispatcher is a really native class too so it can have very different speed on different platform, Adobe should have ideas to improve, or they just don't kown the speed difference so not have chance to optimize it yet(Or this is just the real truth)? Can you post the EventBroadcaster source then we may can get more infomation, Francis? -- iiley AsWing http://www.aswing.org Personal http://www.iiley.com
[flexcoders] Re: Full Screen Mode bug with TextInput
Wow! It's a 'feature' that's transformed 'Full Screen Mode' from being really, really useful to totally, utterly useless for a lot of Flex apps! Features like that make bugs look good ;-) Thanks for the info, in any case, Troy. Jamie. --- In flexcoders@yahoogroups.com, Troy Gilbert [EMAIL PROTECTED] wrote: It's not a bug, it's a feature. A security feature. When in full- screen, the Flash Player absorbs all keyboard events for itself, thus only the mouse is useful (no keyboard input of any kind). Yeah, sucks, don't it? Oh well... Troy. On 21 Mar 2007 07:33:10 -0700, jamiebadman [EMAIL PROTECTED] wrote: Hi, I notice there's a problem with TextInput fields when in Full Screen Mode... you can't enter any text into the field. At least that's what happens here ;-) Anyone got a workaround for this at all ? Is this a problem that Adobe are aware of, or does this need to be reported ? Jamie.
Re: [flexcoders] copying bitmap data
Yeah, the problem is that the Canvas container only allows children that implement IUIComponent. It would have been real nice if Adobe had provided a raw container that did no layout of its children (but implemented IUIComponent itself), but they didn't. Fortunately, Grant Skinner has provided just such a container... DisplayObjectWrapper. Check out his blog or Google for it. If you wrap your Bitmap with the DisplayObjectWrapper first you'll then be able to add it (or rather, the DisplayObjectWrapper) to the canvas. Troy. On 21 Mar 2007 08:18:46 -0700, tosadavemgr [EMAIL PROTECTED] wrote: I have a canvas in my layout and the application allows dragging and dropping items into the canvas. I need to be able to grab a bitmap of the canvas when the user is finished, so I can display the drawing on another panel, and in the FlexPrintJob function. I've tried using this code, initiated from a button: private function myDrawing():void{ var myBitmapData:BitmapData = new BitmapData(530, 445); myBitmapData.draw(myWorkspace1); var bmp:Bitmap = new Bitmap(myBitmapData); showDrawing.addChild(bmp); //this isn't working } myWorkspace1 is the ID of the canvas where everything is dropped. I have a canvas with the ID=showDrawing that I'd like the bitmap to appear in. Anyone know what I need to add to the above function to get that done? Dave
RE: [flexcoders] Re: silly question about using src folder
Yes, that's the way I build all my projects. If you specify a the root source folder in the project properties, it can be different from the project root. What you can't do is put an application in a sub folder beneath the root source folder. Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Tuesday, March 20, 2007 7:16 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: silly question about using src folder I was just playing with Ely's Calendar, which uses the src subfolder to hold source. Using Flex Builder, I was unable to make this work. I recall reading that runnable applications must be in the root of the FB project, and in fact, this was the only way I could get the Calendar to work. Is is possible to use a subfolder for source under Flex Builder? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard Sent: Thursday, March 15, 2007 12:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: silly question about using src folder Other than the main application, I put all my project code in com.mycompany.projects.ProjectName.somePackage, etc. I use the projects package so I can easily merge project-specific code into my overall code library if needed. Ben --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Paul DeCoursey [EMAIL PROTECTED] wrote: I use src or source, I had many issues when I dumped sources in the root. Mostly issues with recursive copies and subversion. I use source for library and flex only projects. If the project is mixed with server side logic then I use src/flex then all my source files are in one location, but split out by language. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Manuel Saint-Victor diamondtearz@ wrote: Are mpost people using a separate src folder instead of just dumping src code into the main project folder?
Re: [flexcoders] FDS 2 becomes LDS 2.5 | See labs.adobe.com
fyi ... Steven Webster has posted on his blog a very thoughtful piece about Flex's evolution from FDS 2 to LCDS 2.5, including what it means for Apollo. You can find Steven's post here: http://weblogs.macromedia.com/swebster/archives/2007/03/on_labs_the_art.cfm g
Re: [flexcoders] FDS 2 becomes LDS 2.5 | See labs.adobe.com
Not sure if it helps you Christian, but seems to be working for us. We have the endpoint as a variable in the model and when the application starts up it just assigns the endpoint based on the current url of the swf var url:String=mx.core.Application.application.url; if (url.indexOf(someDevSite.com:8080/myApp) else if (url.indexOf(http://localhost or file:// or whatever)) etc etc.. mx:RemoteObject endpoint={model.endpoint}/ This as include allows us to compile once and work from local testing, dev server, staging server, and production without having to recompile or check for configs in FlexBuilder. If theres an easier way or something cleaner, I'd be interested to hear On 3/21/07, Christian Gruber [EMAIL PROTECTED] wrote: Several things, including ports, server names. Not often context roots, but certainly debugging levels. The way we worked around it was to declare end-points in our mxml which over-rode the channels' end-points. This is ok, but it is a bit of a config hack, since we couldn't configure from flexvars or server-supplied configuration properties or anything. But regardless, we're still in the position where if we have a developer on one computer create a project, that project has to have knowledge of a web-app project. It can't resolve the target flex-config or messaging stuff relatively, or from an eclipse variable. So either all developers have to have an identical setup (not possible in our environment) or we have to have developers constantly accidentally checking-in FB project settings and overwriting them as they point the FB to their local webapp location. I'm not entirely clear on why an FB project even needs this. The config files should be supplied, of course, but Flex Builder is being needlessly picky about the structure of things. Since the command-line app can hit against an arbitrary flex-config.xml, why shouldn't the FB? regards, christian. On Mar 21, 2007, at 10:59 AM, Peter Farland wrote: What sorts of things change between your dev, qa, staging and production environments? Debugging levels? Ports? WAR context roots? -- *From:* flexcoders@yahoogroups.com [mailto:flexcoders flexcoders@ yahoogroups.com] *On Behalf Of *Christian Gruber *Sent:* Wednesday, March 21, 2007 10:52 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] FDS 2 becomes LDS 2.5 | See labs.adobe.com Does LCDS and the FlexBuilder update allow for more indirect configuration of things like the web-app config location, or the channel locations? We've had a really hard time configuring things so we can build a single binary on our build server, and test that same binary in our dev, QA, staging and production environments. Without the ability to certify a build through staged environments, Flex will have a difficult time rolling out in large organizations with serious software development processes in place. regards, Christian. On Mar 21, 2007, at 9:54 AM, Peter Farland wrote: Note that updates to the Flex SDK and FlexBuilder will soon be available to support LCDS 2.5 (which is still in Beta). . *christian gruber + [EMAIL PROTECTED] **+ bus 905.640.1119 + mob 416.998.6023* *process coach and architect + **IS**RAFIL CONSULTING SERVICES * *christian gruber + [EMAIL PROTECTED] **+ bus 905.640.1119 + mob 416.998.6023* *process coach and architect + **IS**RAFIL CONSULTING SERVICES *
Re: [flexcoders] copying bitmap data
I made a similar app, I didnt know about DisplayObjectWrapper, I'm just using a Canvas (the api shows it allows DisplayObject for addChild method, yes?) but try changing your line: var bmp:Bitmap = new Bitmap(myBitmapData); to: var bmp:Bitmap = new Bitmap(myBitmapData.clone()); Thats the only thing that looks different from my code On 3/21/07, Troy Gilbert [EMAIL PROTECTED] wrote: Yeah, the problem is that the Canvas container only allows children that implement IUIComponent. It would have been real nice if Adobe had provided a raw container that did no layout of its children (but implemented IUIComponent itself), but they didn't. Fortunately, Grant Skinner has provided just such a container... DisplayObjectWrapper. Check out his blog or Google for it. If you wrap your Bitmap with the DisplayObjectWrapper first you'll then be able to add it (or rather, the DisplayObjectWrapper) to the canvas. Troy. On 21 Mar 2007 08:18:46 -0700, tosadavemgr [EMAIL PROTECTED] wrote: I have a canvas in my layout and the application allows dragging and dropping items into the canvas. I need to be able to grab a bitmap of the canvas when the user is finished, so I can display the drawing on another panel, and in the FlexPrintJob function. I've tried using this code, initiated from a button: private function myDrawing():void{ var myBitmapData:BitmapData = new BitmapData(530, 445); myBitmapData.draw(myWorkspace1); var bmp:Bitmap = new Bitmap(myBitmapData); showDrawing.addChild(bmp); //this isn't working } myWorkspace1 is the ID of the canvas where everything is dropped. I have a canvas with the ID=showDrawing that I'd like the bitmap to appear in. Anyone know what I need to add to the above function to get that done? Dave
RE: [flexcoders] Re: silly question about using src folder
I do not know this as a certainty, but I suspect when FB installs, it puts itself in a trusted sandbox/folder. The trusted sandbox allows access to both local and network assets. Search the livedocs for security sandbox for more detail on that. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul DeCoursey Sent: Wednesday, March 21, 2007 8:39 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: silly question about using src folder Yes... you set the projects main source folder to src. I highly recommend it. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt [EMAIL PROTECTED] wrote: I was just playing with Ely's Calendar, which uses the src subfolder to hold source. Using Flex Builder, I was unable to make this work. I recall reading that runnable applications must be in the root of the FB project, and in fact, this was the only way I could get the Calendar to work. Is is possible to use a subfolder for source under Flex Builder? Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of ben.clinkinbeard Sent: Thursday, March 15, 2007 12:36 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: silly question about using src folder Other than the main application, I put all my project code in com.mycompany.projects.ProjectName.somePackage, etc. I use the projects package so I can easily merge project-specific code into my overall code library if needed. Ben --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Paul DeCoursey paul@ wrote: I use src or source, I had many issues when I dumped sources in the root. Mostly issues with recursive copies and subversion. I use source for library and flex only projects. If the project is mixed with server side logic then I use src/flex then all my source files are in one location, but split out by language. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Manuel Saint-Victor diamondtearz@ wrote: Are mpost people using a separate src folder instead of just dumping src code into the main project folder?
RE: [flexcoders] Re: silly question about using src folder
Well, I tried that several times, but obviously I did something incorrectly. I'll try again. What benefits do you see, other than avoiding the issues with subversion that you mentioned? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul DeCoursey Sent: Wednesday, March 21, 2007 8:39 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: silly question about using src folder Yes... you set the projects main source folder to src. I highly recommend it. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt [EMAIL PROTECTED] wrote: I was just playing with Ely's Calendar, which uses the src subfolder to hold source. Using Flex Builder, I was unable to make this work. I recall reading that runnable applications must be in the root of the FB project, and in fact, this was the only way I could get the Calendar to work. Is is possible to use a subfolder for source under Flex Builder? Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of ben.clinkinbeard Sent: Thursday, March 15, 2007 12:36 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: silly question about using src folder Other than the main application, I put all my project code in com.mycompany.projects.ProjectName.somePackage, etc. I use the projects package so I can easily merge project-specific code into my overall code library if needed. Ben --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Paul DeCoursey paul@ wrote: I use src or source, I had many issues when I dumped sources in the root. Mostly issues with recursive copies and subversion. I use source for library and flex only projects. If the project is mixed with server side logic then I use src/flex then all my source files are in one location, but split out by language. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Manuel Saint-Victor diamondtearz@ wrote: Are mpost people using a separate src folder instead of just dumping src code into the main project folder?
[flexcoders] PopUp Returning NULL
I am having some trouble with a popup window. Here is the popup code: private function changePassword() : void { var pwWindow:IFlexDisplayObject = PopUpManager.createPopUp (this, WinChangePassword, true); } if I call it from a Link Button I get a Can't Access Property of Null Object... error. mx:LinkButton id=chpw label=change pw click=changePassword();/ However, when I call it from the ObserveValue Component I am using, it works fine. ac:ObserveValue id=pwchange source={model.changePw} value={1} handler={changePassword} / Also, when i check the debugger in both cases it shows pwWindow = null. (I am not sure what it is supposed to be.) Thanks for the suggestions. - Kevin
RE: [flexcoders] Migration from 1.5 to 2.0
Create a new file for 2.0.1, verify it compiles ok, then paste in the contents of the 1.5 file. If it works, compare to see what is different from the one you are working on. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of deravi2000 Sent: Wednesday, March 21, 2007 7:58 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Migration from 1.5 to 2.0 Hi, I am getting following error when migrating from 1.5 to 2.0. Don't know how to parse element http://www.adobe.com/2006/mxml:Script http://www.adobe.com/2006/mxml:Script . It is not a known type or a property of mx.core.Application. I have changed the name space in mxml and in flex-config.xml from http://www.macromedia.com/2003/mxml http://www.macromedia.com/2003/mxml to http://www.adobe.com/2006/mxml. http://www.adobe.com/2006/mxml. I can't understand as to why its not picking up mx:Script tag in my mxml.Do i need to do any thing else..Pls help..
[flexcoders] Re: silly question about using src folder
Another minor benefit is that the project is better organized. Your destination folder then does not reside in the source folder. Project settings are not in the source folder. And you can setup locales easier. I also do this because this is what I'm used to. For example when you create a Java project in Eclipse or Netbeans or WSAD or whatever, the project creates src folders for all the source. Many IDE's now add more abstraction by putting java sources into a src/java folder. As well as creating src/conf or src/config folders and in some cases src/resources. I have for some projects created the src/flex folder for flex projects, but thinking about that now I'm thinking src/as might be a better location. Anyway I'm rambeling and repeating myself. --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: Well, I tried that several times, but obviously I did something incorrectly. I'll try again. What benefits do you see, other than avoiding the issues with subversion that you mentioned? Tracy _
RE: [flexcoders] Re: silly question about using src folder
Oops, I replied to the wrong thread. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt Sent: Wednesday, March 21, 2007 1:02 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Re: silly question about using src folder I do not know this as a certainty, but I suspect when FB installs, it puts itself in a trusted sandbox/folder. The trusted sandbox allows access to both local and network assets. Search the livedocs for security sandbox for more detail on that. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul DeCoursey Sent: Wednesday, March 21, 2007 8:39 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: silly question about using src folder Yes... you set the projects main source folder to src. I highly recommend it. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt [EMAIL PROTECTED] wrote: I was just playing with Ely's Calendar, which uses the src subfolder to hold source. Using Flex Builder, I was unable to make this work. I recall reading that runnable applications must be in the root of the FB project, and in fact, this was the only way I could get the Calendar to work. Is is possible to use a subfolder for source under Flex Builder? Tracy From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of ben.clinkinbeard Sent: Thursday, March 15, 2007 12:36 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Re: silly question about using src folder Other than the main application, I put all my project code in com.mycompany.projects.ProjectName.somePackage, etc. I use the projects package so I can easily merge project-specific code into my overall code library if needed. Ben --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Paul DeCoursey paul@ wrote: I use src or source, I had many issues when I dumped sources in the root. Mostly issues with recursive copies and subversion. I use source for library and flex only projects. If the project is mixed with server side logic then I use src/flex then all my source files are in one location, but split out by language. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com mailto:flexcoders%40yahoogroups.com , Manuel Saint-Victor diamondtearz@ wrote: Are mpost people using a separate src folder instead of just dumping src code into the main project folder?
RE: [flexcoders] copying bitmap data
I got around this by having an image that loads an embedded gif (just a grey square). You can then access Image.container.bitmap.bitmapdata Giles Roadnight From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rick Schmitty Sent: 21 March 2007 17:00 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] copying bitmap data I made a similar app, I didnt know about DisplayObjectWrapper, I'm just using a Canvas (the api shows it allows DisplayObject for addChild method, yes?) but try changing your line: var bmp:Bitmap = new Bitmap(myBitmapData); to: var bmp:Bitmap = new Bitmap(myBitmapData.clone()); Thats the only thing that looks different from my code On 3/21/07, Troy Gilbert [EMAIL PROTECTED] wrote: Yeah, the problem is that the Canvas container only allows children that implement IUIComponent. It would have been real nice if Adobe had provided a raw container that did no layout of its children (but implemented IUIComponent itself), but they didn't. Fortunately, Grant Skinner has provided just such a container... DisplayObjectWrapper. Check out his blog or Google for it. If you wrap your Bitmap with the DisplayObjectWrapper first you'll then be able to add it (or rather, the DisplayObjectWrapper) to the canvas. Troy. On 21 Mar 2007 08:18:46 -0700, tosadavemgr [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I have a canvas in my layout and the application allows dragging and dropping items into the canvas. I need to be able to grab a bitmap of the canvas when the user is finished, so I can display the drawing on another panel, and in the FlexPrintJob function. I've tried using this code, initiated from a button: private function myDrawing():void{ var myBitmapData:BitmapData = new BitmapData(530, 445); myBitmapData.draw(myWorkspace1); var bmp:Bitmap = new Bitmap(myBitmapData); showDrawing.addChild(bmp); //this isn't working } myWorkspace1 is the ID of the canvas where everything is dropped. I have a canvas with the ID=showDrawing that I'd like the bitmap to appear in. Anyone know what I need to add to the above function to get that done? Dave
[flexcoders] Flex Scheduling Framework Recurrent events
Does anyone know what is Flex Scheduling Framework support for recurring events ? For example if I have event that should happen every Tuesday 10:00 - 12:00, every second week, can I schedule it in the framework ? Thanks in advance. Regards, Dima Gutzeit.
RE: [flexcoders] copying bitmap data
[DefaultProperty(content)] class RawContainer extends UIComponent { private var _content:Array = []; public function set content(value:Array):void { _content = value; for(var i:int = 0;i_content.length;i++) { addChildAt(_content[i],i); } while(numChildren _content.length) removeChildAt(_content.length); } public function get content():Array { return _content } } Ely. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Troy Gilbert Sent: Wednesday, March 21, 2007 9:42 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] copying bitmap data Yeah, the problem is that the Canvas container only allows children that implement IUIComponent. It would have been real nice if Adobe had provided a raw container that did no layout of its children (but implemented IUIComponent itself), but they didn't. Fortunately, Grant Skinner has provided just such a container... DisplayObjectWrapper. Check out his blog or Google for it. If you wrap your Bitmap with the DisplayObjectWrapper first you'll then be able to add it (or rather, the DisplayObjectWrapper) to the canvas. Troy. On 21 Mar 2007 08:18:46 -0700, tosadavemgr [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I have a canvas in my layout and the application allows dragging and dropping items into the canvas. I need to be able to grab a bitmap of the canvas when the user is finished, so I can display the drawing on another panel, and in the FlexPrintJob function. I've tried using this code, initiated from a button: private function myDrawing():void{ var myBitmapData:BitmapData = new BitmapData(530, 445); myBitmapData.draw(myWorkspace1); var bmp:Bitmap = new Bitmap(myBitmapData); showDrawing.addChild(bmp); //this isn't working } myWorkspace1 is the ID of the canvas where everything is dropped. I have a canvas with the ID=showDrawing that I'd like the bitmap to appear in. Anyone know what I need to add to the above function to get that done? Dave
RE: [flexcoders] Re: Security error accessing url
I do not know this as a certainty, but I suspect when FB installs, it puts itself in a trusted sandbox/folder. The trusted sandbox allows access to both local and network assets. Search the livedocs for security sandbox for more detail on that. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Barbieux Sent: Wednesday, March 21, 2007 6:48 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Security error accessing url Hi; The discussion about the security access on a web service contains a lot of responses and solutions. But I don't find any explanations about the question number 1: why we have no access problem when we test our application in the Flex Builder environment, and then we receive a lot of security access problem when the application run on clients ? So, what is the difference between the Flash application running in Flex Builder and this Flash running out of this environment ? Is that means that in Flex Builder the Flash application doesn't access the famous crossdomain.xml ?! I think that this diffrence between the development and the client environment is a great problem for Flex devloppers ! It means that if our application runs on our computer, we have no garanty that it's ok for clients !
RE: [flexcoders] ColumnChart x-axis
You can manually set the minimum of the horizontal axis to whatever you want. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Lieven Cardoen Sent: Wednesday, March 21, 2007 3:45 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ColumnChart x-axis Hi guys, Is following possible : Let's say I have a columnChart with two columns. One with value 700 and one with value 800. Now, the x-axis is value 0 (projected on y-axis), and the columns are 700 and 800 high. Now I would like to have the x- axis represent 600 (projected on y-axis), so it would seem you have one column of 200 and one of 100. The labels on the y-axis need to start at 600 (where it used to be 0). thx Lieven Cardoen
Re: [flexcoders] Re: Coercion failed ArrayCollection with Objects inside Object AMFPHP 1.9
I am guessing it must be something basic we are overlooking. I have numerous nested VOs and ArrayCollection's of VO's that get returned from PHP with no problem. As long as both the RemoteClass tag AND the $_explicitType variable are exactly the same and both point to the server location where the VO lives, then everything seems to map correctly. Here are the things I would check: 1) your remote class explicit type tags. 2) are you casting the return from php correctly in Flex (ie var myAC:ArrayCollection = new ArrayCollection(data.result as Array) ) 3) Are your class properties named exactly the same (although this seems to not throw and error even when they aren't exact???) Check those and see if any of them solve your problem. otherwise post your handler code so that we can see how you are handling the results. - Kevin On Mar 21, 2007, at 10:29 AM, thuijzer wrote: Kevin, thank you for your response. Unfortunately it doesn't work. It also seems that this META is only used for Array's. So I am not sure it will work in my case. Thomas --- In flexcoders@yahoogroups.com, Kevin [EMAIL PROTECTED] wrote: you may need to use this meta tag to let Flex know what is in the ArrayCollection [ArrayElementType(com.app.classes.MyClassObj)] //(I am not sure if that is YOUR correct path in Flex??) public var list: ArrayCollection; I hope that does the trick. I have gotten it to work in AMFPHP 1.9. - Kevin On Mar 21, 2007, at 9:42 AM, Thomas Huijzer wrote: Hi All, With AMFPHP 1.9 I am trying to return an Object containing some vars and an ArrayCollection. Inside this ArrayCollection there are other Objects. But I can't get this to work in Flex. For example: Flex class package com.app.classes { import mx.collections.ArrayCollection; [RemoteClass (alias=com.app.classes.RemoteClass)] public class MyClass { public var id: Number; public var list: ArrayCollection; } } package com.app.classes { [RemoteClass (alias=com.app.classes.RemoteClassObj)] public class MyClassObj { public var id: Number; public var name: String; } } PHP class class MyClass { var $id; var $list; } class MyClassObj { var $id; var $name; } function getData() { $data = new MyClass; $data-id = 1; $data-list = array(); $data-list[0] = new MyClassObj; $data-list[0]-id = 2; $data-list[0]-name = myName; return $data; } When I return this to Flex, the MyClass is filled ok. By the list coercion fails. Any idea to solve this problem? Thank you. Need Mail bonding? Go to the Yahoo! Mail QA for great tips from Yahoo! Answers users.
[flexcoders] Re: Coercion failed ArrayCollection with Objects inside Object AMFPHP 1.9
Does your PHP array contain more then one item when your testing? Michael Ramirez --- In flexcoders@yahoogroups.com, thuijzer [EMAIL PROTECTED] wrote: Whoops, I didn't write this down, but I got this in my code, so it should not be the problem. In fact, all PHP Objects return as Flex Objects, except for Array's. They are not translated to ArrayCollections. So the ArrayCollections in my Flex Objects remain empty. --- In flexcoders@yahoogroups.com, michael_ramirez44 michael_ramirez44@ wrote: I don't see an $_explicitType variable in your PHP code. You need to add the following to you PHP classes. var $_explicitType = com.app.classes.RemoteClass; var $_explicitType = com.app.classes.RemoteClassObj; Michael --- In flexcoders@yahoogroups.com, Thomas Huijzer thuijzer@ wrote: Hi All, With AMFPHP 1.9 I am trying to return an Object containing some vars and an ArrayCollection. Inside this ArrayCollection there are other Objects. But I can't get this to work in Flex. For example: Flex class package com.app.classes { import mx.collections.ArrayCollection; [RemoteClass (alias=com.app.classes.RemoteClass)] public class MyClass { public var id: Number; public var list: ArrayCollection; } } package com.app.classes { [RemoteClass (alias=com.app.classes.RemoteClassObj)] public class MyClassObj { public var id: Number; public var name: String; } } PHP class class MyClass { var $id; var $list; } class MyClassObj { var $id; var $name; } function getData() { $data = new MyClass; $data-id = 1; $data-list = array(); $data-list[0] = new MyClassObj; $data-list[0]-id = 2; $data-list[0]-name = myName; return $data; } When I return this to Flex, the MyClass is filled ok. By the list coercion fails. Any idea to solve this problem? Thank you. - Need Mail bonding? Go to the Yahoo! Mail QA for great tips from Yahoo! Answers users.
[flexcoders] How do I get the ControlBar to show at the top of my Panel?
I want my Panel control to have a ControlBar link componet that appears at the top of the Panel instead of the bottom. Basically I want my Panel control to have a Application type menu.
[flexcoders] Re: Working with ads (DART) in flex ? How can you possibly do that ?
I know nothing about DART at the moment, so if this doesnt help please excuse my ignorance. I checked the crossdomain for the url you sent, it looks like its wide open. see: http://ad.fr.doubleclick.net/crossdomain.xml There shouldnt be any security restrictions with regard to loading content from this domain. Given that, if this integration fails with flex I know you can write something in flash that does what you want and then import that to your application. Is there something special about the DART SDK? (e.g. It's JavaScript) Shannon --- In flexcoders@yahoogroups.com, Jean-Luc ESSER [EMAIL PROTECTED] wrote: Thanks for your help, but it looks like this solution is for publishers, so they can develop content that will integrate into flash environments. But the problem remains for the one who just needs to integrate a campain in a flex environment. And the problem remains if you deal with redirects, that is ads from different ad networks. Jean-Luc ESSER --- In flexcoders@yahoogroups.com, Paul DeCoursey paul@ wrote: Perhaps you should be talking with Doubleclick, it looks like they have a Flash in Flash solution for DART. http://www.doubleclick.com/us/products/dart_motif_for_flash_in_flash/ I'm not at all familiar with it though, just trying to be helpful. I've never really worked with ads before, I have a deep disdain for them... but I'm sure someday I'll have to give in to it. --- In flexcoders@yahoogroups.com, Jean-Luc ESSER flex@ wrote: If someone finds a solution to this one, i'll pay him strawberries ! Is there a way of doing a js document.write in Flex ? Explanantion : Today i have a website with DART tags like this one : script !-- document.write('script language=JavaScript src=http://ad.fr.doubleclick.net/adj/ts.psycho.com/homepage/index/sky ;kw=x;tile=5;sz=160x320;ord='+jsDartRandom+'?/script'); //-- /script Tomorrow my website is gonna be a full flex application. How do i implement my DART into my Flex app ? Looks like i cannot, because the source is not necessarly the swf or gif, but can be a redirect, that is another js calling another js, and so on. So is there a way flex can deal with this ? I think this is gonna become a very big problem if we cannot deal with ads in flex apps... Using an iFrame to display ads doesn't work as some ads may have to expand over the app on rollover. Working with divs won't work as there is no way of knowing the size of the ad returned by DART, and thus no way of allowing the corresponding space in our flex app... I'm stuck !! Jean-Luc.
[flexcoders] Re: How do I get the ControlBar to show at the top of my Panel?
The first thing i would do is make sure that your mx:ControlBar mxml tag is NOT the last mxml tag in your component. Have you tried making it the first? That's what i'm doing on one of my panels where i do want a Control bar of buttons at the top of my popup Panel window. --Scott --- In flexcoders@yahoogroups.com, michael_ramirez44 [EMAIL PROTECTED] wrote: I want my Panel control to have a ControlBar link componet that appears at the top of the Panel instead of the bottom. Basically I want my Panel control to have a Application type menu.
[flexcoders] Re: Working with ads (DART) in flex ? How can you possibly do that ?
Sorry I get it now. I read about DART, this is a js call. In Flash: var dartData = {x:X,y:Y,z:Z}; flash.external.ExternalInterface.call(myDartWriterFunc,dartData) in Javascript: script !-- function myDartWriterFunc(dartData){ // parse dartData if applicable document.write('script language=JavaScript src=http://ad.fr.doubleclick.net/adj/ts.psycho.com/homepage/index/sky ;kw=x;tile\=5;sz=160x320;ord='+jsDartRandom+'?/script'); } //-- /script
RE: [flexcoders] PopUp Returning NULL
Are these things in modules? If so, you might have the shared code problem. What's the full text of the error? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Sent: Wednesday, March 21, 2007 10:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] PopUp Returning NULL I am having some trouble with a popup window. Here is the popup code: private function changePassword() : void { var pwWindow:IFlexDisplayObject = PopUpManager.createPopUp(this, WinChangePassword, true); } if I call it from a Link Button I get a Can't Access Property of Null Object... error. mx:LinkButton id=chpw label=change pw click=changePassword();/ However, when I call it from the ObserveValue Component I am using, it works fine. ac:ObserveValue id=pwchange source={model.changePw} value={1} handler={changePassword} / Also, when i check the debugger in both cases it shows pwWindow = null. (I am not sure what it is supposed to be.) Thanks for the suggestions. - Kevin
RE: [flexcoders] Module issue
Check your lib-path to make sure the framework.swc is the right one. If you end up with a 2.0 instead of 2.0.1 it won't know about moduleloader. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of fabio_sebastiano Sent: Wednesday, March 21, 2007 7:50 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Module issue Hi everybody, i'm facing a real funny problem with modules and moduleLoader, i hope it's not my fault anyway... If i create a normal flex project with fBuilder, i'm able to use modules in a lot of different ways (as mxml, as as in a function etc..)... but if i try to use them in my fds application (created with fds eclipse plugin) i can't use modules. The compile-time error message is always the same: Could not resolve mx:ModuleLoader to a component implementation I tried a lot of solutions, paying attention to import all the classes etc...but nothing change. I will appreciate everykind of help. TIA Fabio
RE: [flexcoders] Re: Can validation prevent text input entry?
ITEM_EDIT_END is dispatched from DataGrid mx:DataGrid id=dg itemEditEnd=itemEditEndHandler(event) / private function itemEditEndHandler(event):void { if (!dataIsValid(dg.itemEditorInstance.text)) event.preventDefault(); } From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alex Sent: Wednesday, March 21, 2007 7:52 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Can validation prevent text input entry? Anyone? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Lex [EMAIL PROTECTED] wrote: Thanks for the response! Precisely how does one listen for ITEM_EDIT_END? (extremely new to flex) If I do mx:TextInput textInput=validateData(event) with a private function validateData( event:TextEvent ):void{ } where my validator has ID cv, how do I trigger validation, and then check the result, to finally call event.preventDefault() if the shit hits the fan? Thanks for your help. The docs in this dept are incredibly lacking.. Alex - Original Message - From: Alex Harui To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Wednesday, March 21, 2007 1:12 AM Subject: RE: [flexcoders] Can validation prevent text input entry? No, validation is not blocking. It is just that the itemEditor is going away. What most folks do is check validation on ITEM_EDIT_END and prevent the change to the dataprovider by calling preventDefault(). You can also catch ITEM_EDIT_BEGINNING and return the editor to the bad cell if the user is tabbing or clicking another cell, but if the user clicks outside you can't really restore focus to the cell. If you want to get really fancy then your itemRenderers will color differently if they are invalid. -Alex -- From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ] On Behalf Of Lex Sent: Tuesday, March 20, 2007 9:59 PM To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Subject: [flexcoders] Can validation prevent text input entry? Hi there, I have a TextInput type that I am using as an itemEditor in a DataGrid. I'm trying to prevent users from entering anything but 'dollar' amounts. I have the class below, but it doesn't work as expected... I can edit the grid cell, enter a letter, and then exit the grid without warning. It's only when I click on the grid to edit it a second time, that the red halo with the 'invalid input' flag appears. Help appreciated. ?xml version=1.0 encoding=utf-8? mx:TextInput focusOut=validateData(); xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml width=100% height=100% implements=mx.core.IFactory mx:Script ![CDATA[ import mx.events.ValidationResultEvent; import mx.controls.dataGridClasses.DataGridColumn; public var dataField:String; private var rowData:Object; [ Bindable]private var contentValue:String; public function newInstance():*{ return new GenericDollarFormatItemEditor(); } private function validateData():void{ cv.validate(); } override public function set data(value:Object):void { if( value != null ){ rowData = value; if( !(value is DataGridColumn) dataField != null ){ contentValue = value[dataField]; this.text = value[dataField]; } } } ]] /mx:Script mx:CurrencyValidator id=cv source={this} listener={this} property=text alignSymbol=left / /mx:TextInput
Re: [flexcoders] PopUp Returning NULL
I am not using modules and I also tried to comment out the ObserveValue tag to see that was causing a problem. Here is the error message. I am not sure how to read these things to help me! Thanks, Kevin TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.managers::PopUpManagerImpl/::findPopupInfoByOwner() at mx.managers::PopUpManagerImpl/removePopUp() at mx.managers::PopUpManager$/removePopUp() at com.onefoot.dbocl.view.admin::WinChangePassword/::closePopUp() at Function/http://adobe.com/AS3/2006/builtin::call() at com.adobe.ac::ObserveValue/com.adobe.ac:ObserveValue::callHandler() at com.adobe.ac::ObserveValue/set handler() at MethodInfo-1976() at Function/http://adobe.com/AS3/2006/builtin::call() at mx.binding::Binding/::innerExecute() at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.binding::Binding/mx.binding:Binding::wrapFunctionCall() at mx.binding::Binding/execute() at _com_onefoot_dbocl_view_admin_WinChangePasswordWatcherSetupUtil/ setup() at com.onefoot.dbocl.view.admin::WinChangePassword/initialize() at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/ internal::childAdded() at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/ internal::rawChildren_addChildAt() at mx.managers::SystemManager/addChild() at mx.managers::PopUpManagerImpl/addPopUp() at mx.managers::PopUpManagerImpl/createPopUp() at mx.managers::PopUpManager$/createPopUp() at dboclhome/::changePassword() at dboclhome/__chpw_click() On Mar 21, 2007, at 2:02 PM, Alex Harui wrote: Are these things in modules? If so, you might have the shared code problem. What’s the full text of the error? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Sent: Wednesday, March 21, 2007 10:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] PopUp Returning NULL I am having some trouble with a popup window. Here is the popup code: private function changePassword() : void { var pwWindow:IFlexDisplayObject = PopUpManager.createPopUp (this, WinChangePassword, true); } if I call it from a Link Button I get a Can't Access Property of Null Object... error. mx:LinkButton id=chpw label=change pw click=changePassword();/ However, when I call it from the ObserveValue Component I am using, it works fine. ac:ObserveValue id=pwchange source={model.changePw} value={1} handler={changePassword} / Also, when i check the debugger in both cases it shows pwWindow = null. (I am not sure what it is supposed to be.) Thanks for the suggestions. - Kevin
Re: [flexcoders] flash remoting
Ok, I did a blog on this. The example is very simple. http://grumpee.instantspot.com/blog/ I also have a zip file I can email of the code. I couldn't attach it to my blog. On 3/21/07, Clint Tredway [EMAIL PROTECTED] wrote: the share should work. Remoting works on the same port as the cf server is on. So if CF is tied to IIS and IIS is running on port 80, then so is CF, so is Remoting. You can change the URL to point to your dev server. I run CF locally then move my files to a server when its ready to test. I will give you some sample code here in a min. On 21 Mar 2007 08:19:09 -0700, rchadgray [EMAIL PROTECTED] wrote: I am reading up on doing flash remoting in CF. I have CF 7.0.2 installed on a windows machine running through IIS. In the CF administrator Flex and Flash remoting is turned on. When you make a new project in eclipse the default for Root Url contains a port 8500 if i remember right. Does Flash remoting run over a special port or is it just 80? I could not find anything in the CF Admin to set the port so i am guessing that it just uses 80. I cant find any flex code examples of connecting to flash remoting. Can someone post something or point me in a direction? When creating a new project in eclipse that uses flash remoting it asks for a root folder to your CF server. Our development CF server is on another box on the network (and i really dont want to install CF on my computer). Do i need to make a share on the development server so i can enter \\BENDER\CFusionMX7\wwwroot\ into the field? Any help is appreciated, and if i over looked this information/code examples in the help files let me know and i will read them. thanks in advance! -- http://indeegrumpee.spaces.live.com/ -- http://indeegrumpee.spaces.live.com/
[flexcoders] barset with type=100% tooltip issue
Hi Ely, i created a bar chart with barset type to 100% and the tooltip doesn't display the right values. it is displaying the percentage value as the bar value instead of showing the actual bar value.. for the below example: tooltip for USA is like, USA 57.3529411 (57.4%) total: 68 where i am expectign USA 39 (57.4%) total: 68 when i use type=stacked, it displays the right value of the bar tooltip. Is it a bug in flex? any workaround for this?? thanks -Siva ?xml version=1.0? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Script![CDATA[ import mx.charts.BarChart; import mx.charts.series.BarSet; import mx.charts.series.BarSeries; import mx.collections.ArrayCollection; [Bindable] private var model1:ArrayCollection = new ArrayCollection( [ { Country: USA, Gold: 35, Silver:39, Bronze: 29 }, { Country: China, Gold: 32, Silver:17, Bronze: 14 }, { Country: Russia, Gold: 27, Silver:27, Bronze: 38 } ]); ]]/mx:Script mx:Panel title=Mixed Sets Chart Created in MXML id=panel1 mx:BarChart id=myChart width=100% height=100% dataProvider={model1} showDataTips=true mx:verticalAxis mx:CategoryAxis categoryField=Country/ /mx:verticalAxis mx:series mx:BarSet type=clustered mx:BarSeries xField=Gold/ mx:BarSet type=100% mx:BarSeries xField=Silver/ mx:BarSeries xField=Bronze/ /mx:BarSet /mx:BarSet /mx:series /mx:BarChart /mx:Panel /mx:Application
[flexcoders] Re: Security error accessing url
The problem with forcing this security in the IDE is that I want to debug my application without uploading my application to the secure production environment. Maybe I am a third party company creating a widget for a company with some web services. I want to be able to build the application without any security restrictions and then give it to my client to install on their servers later. What you can do: If you want to check for these kinds of restrictions and develop this way, you can install a web server*** and publish to your tomcat directory. 1. Install and run tomcat*** 2. Setup your Flex Build Path: Right click your project, from the menu select Properties then choose Flex Build Path A. Set Output folder to c:\tomcat\webapps\ROOT\yourapp B. Set Output folder URL to http://localhost/yourapp/ If these restrictions were in place then most developers would have to go through those steps PLUS the following to get around the issue: 1. add a fake domain to the crossdomain of the server (which may be inaccessible. 2. add the fakedomain to your host file and point it to your application 127.0.0.1 fakedomain.com So if your question is why does this work this way? I think the answer is pretty straight forward, it would take a great deal of effort to develop anything using the Flex/Flash IDE. I hope this is helpful(?) ***(There are a plethora of quick drag and drop installations that include Tomcat two off the top of my head are EasyPHP (google easyphp) and also 30 minute Flex Test Drive for JavaDevelopers (Conreats.org) You basically install these or unzip them to c:\tomcat and they pretty much install themselves.) --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: I do not know this as a certainty, but I suspect when FB installs, it puts itself in a trusted sandbox/folder. The trusted sandbox allows access to both local and network assets. Search the livedocs for security sandbox for more detail on that. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Paul Barbieux Sent: Wednesday, March 21, 2007 6:48 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Security error accessing url Hi; The discussion about the security access on a web service contains a lot of responses and solutions. But I don't find any explanations about the question number 1: why we have no access problem when we test our application in the Flex Builder environment, and then we receive a lot of security access problem when the application run on clients ? So, what is the difference between the Flash application running in Flex Builder and this Flash running out of this environment ? Is that means that in Flex Builder the Flash application doesn't access the famous crossdomain.xml ?! I think that this diffrence between the development and the client environment is a great problem for Flex devloppers ! It means that if our application runs on our computer, we have no garanty that it's ok for clients !
RE: [flexcoders] Re: Help - Flex application no longer works!
I think there are issues with resources in loaded apps. The apps can end up looking at the main app for their resources instead of their own app. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Nick Durnell Sent: Wednesday, March 21, 2007 4:08 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Help - Flex application no longer works! Thanks for your help Alex. First of all, I tried adding a DateFormatter to a class which is shared by all my applications and it worked! So as you say this suggests a linker dependency issue but I have no idea where the issue suddenly came from. I have not experimented with RSLs, modules or library projects (yet) so all of the application SWFs in my project should include everything they need and not depend on anything else. My project is structured as follows (I've simplified the names to make things easier to explain): - Source Path Folder 1 (some common code I wrote) - Source Path Folder 2 (some common code from 3rd parties) - Main.mxml - App1.mxml . . - App4.mxml The App1..App4 applications are loaded in SWFLoaders by the Main app when they are needed. They all make use of many classes in the source path folders. My DateRenderer, which uses the DateFormatter, lives beneath Source Path Folder 1 and is used by App4.mxml. It is when App4.mxml is loaded at runtime that I get the resource bundle error. As suggested I created a link report for App4.mxml (when it wasn't working). I've not looked at link reports before but it contains the following section which suggests (to me) that DateFormatter and its resource bundles *should* be linked in: script name=C:\Program Files\Adobe\Flex Builder 2\Flex SDK 2 \frameworks\libs\framework.swc(mx/formatters/DateFormatter) mod=1159976667000 size=4167 def id=mx.formatters:DateFormatter / pre id=mx.formatters:Formatter / dep id=mx.core:mx_internal / dep id=mx.formatters:DateBase / dep id=mx.resources:ResourceBundle / dep id=Date / dep id=flash.system:ApplicationDomain / dep id=AS3 / dep id=Math / dep id=mx.formatters:StringFormatter / dep id=SharedResources_properties / /script Then a bit further down it shows my DateRenderer with DateFormatter as a dependency: script name=C:\Dev\Flex\CommonCode1 \util\renderers\DateRenderer.mxml mod=1174410196890 size=2000 def id=util.renderers:DateRenderer / pre id=mx.controls:Label / dep id=mx.formatters:DateFormatter / dep id=Date / dep id=mx.events:FlexEvent / dep id=AS3 / /script Is this wrong somehow? When a dummy DateFormatter is added to the common class then the link report for App4.mxml contains a second script section which lists DateFormatter as a dependency. Any ideas? I've even tried reinstalling Flex Builder and recreating the project but I still get the same error! This is so frustrating because everything worked fine up until yesterday lunchtime... Regards, Nick. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: Add a DateFormatter to the main app. If that solves the problem then you have a linker dependency issue. If you are using modules, rsls or otherwise using -extern options you might be excluding the locale data somehow. -link-report is helpful in these situations.
RE: [flexcoders] Re: Event Dispatching through more than one component
The top of the display list is the stage. The stage always has one child (the root) which in Flex apps is a SystemManager. The app and all popups are children of the systemManager. Stage - SystemManager - Application PopUp1 PopUp2 The event model in Flash/Flex is based on the DOM event model http://www.w3.org/TR/DOM-Level-3-Events/events.html If you search for bubbling and capture in our docs you'll find easier to read descriptions. But basically, when PopUp2 dispatches an non-bubbling event, the stage first dispatches the event in capture phase, then the SystemManager in capture phase, then PopUp2 as a regular event. If the event was a bubbling event, the same would happen, but then SystemManager would dispatch it again in bubbling phase and finally the Stage in bubbling phase. addEventListener has a parameter as to whether you want to listen in capture phase or not. Events have a constructor parameter as to whether the event bubbles or not. Capture phase basically allows containers to supervise and block events going to their children. Bubble phase serves as notification that the child dispatched an event. In theory this makes the Popups even more loosely coupled from each other than the other suggestions. Each Popup simply dispatches events. Other code can capture all events coming from popups (yes, it has to know what the event name is). Popups can listen to other popups without having to watch for their creation and destruction since you are going to addEventListener on systemManager instead of the actual popups. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of qnotemedia Sent: Wednesday, March 21, 2007 4:44 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Event Dispatching through more than one component OK, I understood the other responses, but not this one. Agreed that I tried setting bubbles to true in my customEvent, and then each event instance, and the dispatched event did not pass through embedded windows. But I've never used systemManager, nor do I entirely understand bubbling. Can you forward me to an example or doc explaining this? And does this somewhat move away from loosely-coupled components (which I'm trying real hard to achieve!). Thanks, - Chris --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: Each popup is parented by the systemManager so it won't bubble from one popup to the next. However, each popup can listen to the systemManager for the event to bubble to it, or listen in capture phase so you don't have to use bubbling.
RE: [flexcoders] Re: Cant unload module .swf if it contains a ViewStack?? please help
Did you set it on the app or the Viewstack? You might have to set it just before you try to unload it. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Russell Munro Sent: Tuesday, March 20, 2007 11:50 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Cant unload module .swf if it contains a ViewStack?? please help damn, but Thanks Alex. historyManagementEnabled=false had no effect. Does anyone else have any work arrounds? --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Alex Harui [EMAIL PROTECTED] wrote: Sorry, this is a known issue. You can try turning off historyManagementEnabled.
[flexcoders] QTP Testing (Flex Automation) - FormHeading ommitted
In case anyone else needs it: I wanted to do a checkpoint on a heading contained in a Flex Form but FormHeading was not defined in the TEAFlex.xml file so I added it to the custom file (attached) it should probably be added in the standard distribution. I have to say that the Flex Automation capabilities are VERY well done. Please thank who ever is responsible. The instructions on how to get it setup are a little confusing though. A sample compiled swf that you can test against to see if it's working would be a great addition to the distribution. --Sean Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. http://tools.search.yahoo.com/toolbar/features/mail/TypeInformation xsi:noNamespaceSchemaLocation=ClassesDefintions.xsd Priority=0 PackageName=TEA Load=true id=Flex xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; ClassInfo Name=FlexFormHeading GenericTypeID=flexFormHeading Extends=FlexObject SupportsTabularData=false DescriptionFlexFormHeading/Description Implementation Class=mx.containers.FormHeading/ TypeInfo Operation Name=Click PropertyType=Method ExposureLevel=CommonUsed Implementation Class=flash.events::MouseEvent Type=click/ Argument Name=ctrlKey IsMandatory=true DefaultValue=false Type VariantType=Boolean/ DescriptionTrue if the user held the Control key down when clicking on the container. Otherwise false./Description /Argument Argument Name=altKey IsMandatory=true DefaultValue=false Type VariantType=Boolean/ DescriptionTrue if the user held the Alt key down when clicking on the container. Otherwise false./Description /Argument Argument Name=shiftKey IsMandatory=true DefaultValue=false Type VariantType=Boolean/ DescriptionTrue if the user held the Shift key down when clicking on the container. Otherwise false./Description /Argument /Operation /TypeInfo Properties Property Name=alpha ForVerification=true Type VariantType=VT_R8/ DescriptionThe level of transparency for this object. The range of valid values is 0 (completely transparent) to 1 (completely opaque)./Description /Property Property Name=automationClassName ForDescription=true Type VariantType=String/ DescriptionThe class name as it is known in QTP. For example, FlexButton./Description /Property Property Name=automationIndex ForDescription=true Type VariantType=String/ DescriptionThe object's index relative to its parent./Description /Property Property Name=automationName ForDescription=true Type VariantType=String/ DescriptionThe name used by the automation system to identify an object./Description /Property Property Name=className ForDescription=true Type VariantType=String/ DescriptionThe fully-qualified path in the Flex class library; for example, mx.controls.Button./Description /Property Property Name=color ForVerification=true Type VariantType=String Codec=color/ DescriptionText color of a component label. The default value is 0x0B333C./Description /Property Property Name=currentState ForVerification=true Type VariantType=String/ DescriptionThe current state of the object./Description /Property Property Name=disabledColor ForVerification=true Type VariantType=String Codec=color/ DescriptionColor of the component if it is disabled. The default value is 0xAAB3B3./Description /Property Property Name=enabled ForVerification=true Type VariantType=Boolean/ DescriptionIndicates whether the user can interact with the specified object./Description /Property Property Name=errorColor ForVerification=true Type VariantType=String Codec=color/ DescriptionColor of the error text./Description /Property Property Name=errorString ForVerification=true Type VariantType=String/ DescriptionText that will be displayed in case of a validation error./Description /Property Property Name=focusEnabled ForVerification=true Type VariantType=Boolean/ DescriptionIndicates whether the object can receive focus when clicked on./Description /Property Property Name=fontFamily ForVerification=true Type VariantType=String/ DescriptionName of the font to use. Any font family name can be used. The default value is Verdana./Description /Property Property Name=fontSize ForVerification=true Type VariantType=VT_R8/ DescriptionHeight of the text in pixels. The default value is 10./Description /Property Property Name=fontStyle ForVerification=true Type VariantType=String/ DescriptionWhether the text is oblique or not. Valid values