[flexcoders] Re: Cairngorm 2.1 AMFPHP 1.9
Another gotcha that comes up is the destination names are case sensitive. Confirm they are the same case in the MXML code and the services config. You say, posted earlier has services-config.xml calling amfphp19- services-config.xml... Try using a services-config.xml file that defines all the endpoints, destinations, and channels in one file and see if that helps. An example application connecting to multiple backend's (AMFPHP 1.2 and AMFPHP 1.9) can be found here: http://api.renaun.com/flex2/posts/CairngormStoreMultipleBackend/CairngormStoreMultipleBackend.zip Renaun --- In flexcoders@yahoogroups.com, roadchief [EMAIL PROTECTED] wrote: I don't know if this is related or not - but if you are using the services-config.xml file (as defined in your response below) to define the channels and endpoints, etc., then you need to have '-services services-config.xml' in the Flex compiler additional compiler arguments. Just a thought - Chief --- In flexcoders@yahoogroups.com, mapper2255 mapper2255@ wrote: --- In flexcoders@yahoogroups.com, ericbichara ericbichara@ wrote: Hi, your config script looks fine to me, give us an example of your service.mxlm file, maybe youre calling the service inccorectly? Here is an example of mine: ?xml version=1.0 encoding=utf-8? cairngorm:ServiceLocator xmlns:mx=http://www.adobe.com/2006/mxml; xmlns:cairngorm=com.adobe.cairngorm.business.* mx:RemoteObject id=LoginService destination=amfphp source=Login showBusyCursor=true/ /cairngorm:ServiceLocator and script: ?xml version=1.0 encoding=UTF-8? services-config services service id=amfphp-flashremoting-service class=flex.messaging.services.RemotingService messageTypes=flex.messaging.messages.RemotingMessage destination id=amfphp channels channel ref=my-amfphp/ /channels properties source*/source /properties /destination /service /services channels channel-definition id=my-amfphp class=mx.messaging.channels.AMFChannel endpoint uri=http://localhost/amfphp/gateway.php; class=flex.messaging.endpoints.AMFEndpoint/ /channel-definition /channels /services-config --- In flexcoders@yahoogroups.com, mapper2255 mapper2255@ wrote: Hello, Have been trying all day to get CairngromStore running and keep getting this error: theMessagingError message='Unknown destination 'AMFPHP1_9'.' Using xampp/php 5. Have searched a long time for the answer with no help. Ran across this thread: http://www.mail- archive.com/flexcoders@yahoogroups.com/msg49480.html. So I am using: ?xml version=1.0 encoding=UTF-8? services-config services service id=amfphp-flashremoting-service class=flex.messaging.services.RemotingService messageTypes=flex.messaging.messages.RemotingMessage destination id=AMFPHP1_9 channels channel ref=my-amfphp19/ /channels properties source*/source /properties /destination /service /services channels channel-definition id=my-amfphp19 class=mx.messaging.channels.AMFChannel endpoint uri=http://localhost/amfphp1_9/gateway.php; class=flex.messaging.endpoints.AMFEndpoint/ /channel-definition /channels /services-config Have set up and have running amfphp 1.9. Any suggestions? I know it is something simple. Thanks. This the main.mxml. Just trying to duplicate work so I have less to concern myself with as I get this up for the first time: ?xml version=1.0 encoding=utf-8? !-- Copyright 2006 Renaun Erickson (http://renaun.com) Add this to the compiler arguments list: -services amfphp19-services-config.xml -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical creationComplete=doLogin() viewSourceURL=amfphp1_9 !-- mx:RemoteObject id=myservice source=tutorials.PersonService destination=amfphp fault=faultHandler(event) showBusyCursor=true mx:method name=getList result=getListHandler(event) fault=faultHandler(event) / /mx:RemoteObject -- mx:RemoteObject id=roTestService destination=amfphp1_9 source=amfphp1_9ServiceClases.MyTestService result=Alert.show( event.result + '', 'Result
[flexcoders] Re: AMFPHP explicitType error
I have an example of a Cairngorm Store Flex application connects to multiple backends. You can find it here: http://api.renaun.com/flex2/posts/CairngormStoreMultipleBackend/ Two of the backends are AMFPHP 1.2 (AMF0 using RemoteObjectAMF0) and AMFPHP 1.9 (AMF3). Both examples returned typed ProductVO objects. As for the nested VO's... I can't remember how AMFPHP handles it. If the objects are mapped correctly I believe AMFPHP will type them correctly. Something I might have to look into... Renaun Source for the above link can be found at: http://api.renaun.com/flex2/posts/CairngormStoreMultipleBackend/CairngormStoreMultipleBackend.zip --- In flexcoders@yahoogroups.com, Mike Crowe [EMAIL PROTECTED] wrote: Interesting. I'm also using the renaun AMF0 templates. I wonder if that could be the problem. Have you moved to any AMF3 setups? --- In flexcoders@yahoogroups.com, Kevin lists@ wrote: wow. this seems like a lot of work to just map a VO object. Makes me wonder if it is worth it. What's the point of mapping the objects if you have to do the conversion manually anyway? What is weird is that in another command, I have an array of VO's being returned from PHP which all map correctly using the $_explicitType variable. However, when i simply return only one VO object from PHP, then I get the error. I'll keep looking into this... Thanks, Kevin On Feb 10, 2007, at 8:15 AM, Mike Crowe wrote: Kevin, I'm in the same boat. I had to initialize my VO object in the constructor. So, in your getUserInfo(), you would do (using my VO): var teamData:TeamVO = new TeamVO(data.result); and in your VO: public function TeamVO(toSet:Object=null) { registerClassAlias(com.mikecrowe.all.vo.TeamVO, TeamVO); _uuid = UIDUtil.createUID(); if ( toSet ) { try { uuid = toSet.uuid; } catch ( e:Error ) { trace(Error setting uuid: +e); } try { id = toSet.id; } catch ( e:Error ) { trace(Error setting id: +e); } try { created_by = toSet.created_by; } catch ( e:Error ) { trace(Error setting created_by: +e); } try { created_on = parseDate(toSet.created_on); } catch ( e:Error ) { trace(Error setting created_on: +e); } try { updated_by = toSet.updated_by; } catch ( e:Error ) { trace(Error setting updated_by: +e); } try { updated_on = parseDate(toSet.updated_on); } catch ( e:Error ) { trace(Error setting updated_on: +e); } try { parent_id = toSet.parent_id; } catch ( e:Error ) { trace(Error setting parent_id: +e); } try { contact_id = toSet.contact_id; } catch ( e:Error ) { trace(Error setting contact_id: +e); } try { cat_id = toSet.cat_id; } catch ( e:Error ) { trace(Error setting cat_id: +e); } try { team_is_global = toSet.team_is_global; } catch ( e:Error ) { trace(Error setting team_is_global: +e); } try { team_organizat_personal = toSet.team_organizat_personal; } catch ( e:Error ) { trace(Error setting team_organizat_personal: +e); } try { team_abbreviation = toSet.team_abbreviation; } catch ( e:Error ) { trace(Error setting team_abbreviation: +e); } try { team_name = toSet.team_name; } catch ( e:Error ) { trace(Error setting team_name: +e); } try { team_emails = toSet.team_emails; } catch ( e:Error ) { trace(Error setting team_emails: +e); } } } Note: The individual try{} statements are important. I had it around all the assignments before, and it ends up not initializing. Additionally, I'm working on a templating system that creates all the VO objects, PHP objects, and a basic CRUD interface. It's crude now, but working for me. If you want to chat about it, IM me at mikecrowe (yahoo) or mike(a)mikeandkellycrowe(d)com (msn). Mike --- In flexcoders@yahoogroups.com, Kevin lists@ wrote: I am still having some problems using explicitType with PHP Flex. I am trying to send a basic Object back from PHP to flex and have it map to a VO. I think I have it all set up correctly, but I continue to get an error: IN FLEX VO UserDataVO.as [RemoteClass(com.onefoot.dbocl.services.vo.users.UserDataVO)] IN PHP VO UserDataVO.php var $_explicitType = com.onefoot.dbocl.services.vo.users.UserDataVO; SEND FROM PHP public function getUserInfo(){ /* retrieve session variables from server */ $User = new UserDataVO(); $User-fullName = Test User; $User-firstName = Test; $User-lastName = User; return $User; } RECEIVE IN FLEX from getUserInfo() call public function result(data:Object):void { var userData:UserDataVO = data.result; } ERROR Type Coercion failed: cannot convert mx.utils::[EMAIL PROTECTED] to com.onefoot.dbocl.vo.users.UserDataVO. Thanks for the help! - Kevin
[flexcoders] Re: amfphp + codeigniter
In regards to the Flickr question. You can go Flex straight to Flickr. I did a quick mashup a while back, its up on the flex cookbook site. You can find it here: http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetailspostId=1441productId=2 Renaun --- In flexcoders@yahoogroups.com, joshua gatcke [EMAIL PROTECTED] wrote: Has anyone ever created a Flex + PHP project using AMFPHP + Codeigniter? I have been trying to integrate the two with no luck. Or maybe I shouldn't integrate the two, the question then becomes: does anyone know how to consume webservices from external sources with amfphp? what I mean is, right now, with amfphp I have to point my remoteobject tag to amfphp/gateway.php sending the method I want to use etc. What if I wanted to use the remote object tag to access flickr? would I have to call the flickr webservice from an amfphp service and return the results to flex with amfphp, or is there a way to go from flex - flickr using amfphp? If the latter is possible, then I can just create xml-rpc web services in CI and serve them to flex. I am trying to create a flex application that people can download and install on their servers / host. That is why we are using PHP. I find it incredibly limiting to use mx:httpservices with rest style data exchange for my entire application, that is why I am trying to use amfphp. Do a lot of you guys use flex + php? if so, what sort of development approach do you take? THanks in advance for any help suggestions.
[flexcoders] Re: Flex 2 Compilation problem
Getting a little out of my scope. Make sure the WEB-INF folder has the flex folder with the proper config files thats about all else I can think of. I use Tomcat and am pretty sure JBoss is fine, but there is always quirks. good luck, Renaun --- In flexcoders@yahoogroups.com, sanjaypmg [EMAIL PROTECTED] wrote: Hi Renaun, I have defined it correctly in remote-config.xml because its working fine when I directly open my flex file as: http://localhost:8080/flexnjspproject/flexapplication.mxml. and thereafter I use this compiled SWF, It works fine. Is it not the issue of JBoss version or the java version supported by flex? I am using JBoss 4.0. Pls help me. Thanks. SS --- In flexcoders@yahoogroups.com, Renaun Erickson renaun@ wrote: Whats does your services-config.xml file look like? Does it have the SOME_RO destination defined? Is the channel and endpoint used by the destination correct? Renaun --- In flexcoders@yahoogroups.com, sanjaypmg sanjaypmg@ wrote: Hi, I am facing a strange problem while compling flex mxml file. I code and compile my mxml file in flex builder thereafter when I place that SWF in my project's folder and open my JSP file which contains my SWF, It show some RO error, SOME_RO destination not found. If I put mxml in my project folder and put the followin URL in browser: http://localhost:8080/flexnjspproject/flexapplication.mxml It also make SWF in the same folder where MXML lies. thereafter when I call the JSP, It works fine without any error. I couldnt make out wht could be the reason behind it. Can anyone tell me abt this? I am using JBOSS. Thanks, SS
[flexcoders] Re: Flex 2 Compilation problem
Whats does your services-config.xml file look like? Does it have the SOME_RO destination defined? Is the channel and endpoint used by the destination correct? Renaun --- In flexcoders@yahoogroups.com, sanjaypmg [EMAIL PROTECTED] wrote: Hi, I am facing a strange problem while compling flex mxml file. I code and compile my mxml file in flex builder thereafter when I place that SWF in my project's folder and open my JSP file which contains my SWF, It show some RO error, SOME_RO destination not found. If I put mxml in my project folder and put the followin URL in browser: http://localhost:8080/flexnjspproject/flexapplication.mxml It also make SWF in the same folder where MXML lies. thereafter when I call the JSP, It works fine without any error. I couldnt make out wht could be the reason behind it. Can anyone tell me abt this? I am using JBOSS. Thanks, SS
[flexcoders] Re: Amfphp with AMF3 support: testers wanted
Jamie, The RemoteObject (client side) found in my example is the same code used for Cairngorm or non-Cairngorm applications. Flex 2.0 and AMF3 (not sure where the requirement comes from, probably AMF3) requires that you have a destination defined. For Java adapters you can not use the source attribute and must explicitly set it in the configuration file. By default FDS is setup to have the main config file be services-config.xml which includes other files, here is an example. services service-include file-path=remoting-config.xml / service-include file-path=proxy-config.xml / service-include file-path=messaging-config.xml / service-include file-path=data-management-config.xml / /services The default ColdFusion Adapter which is setup by ColdFusion MX 7.0.2 defines a destination named ColdFusion and with a source=* which allows the developer to set the source attribute on the RemoteObject. The defualt endpoint is also setup to: channels channel-definition id=my-cfamf class=mx.messaging.channels.AMFChannel endpoint uri=http://{server.name}:{server.port}/flex2gateway/; class=flex.messaging.endpoints.AMFEndpoint/ properties polling-enabledfalse/polling-enabled serialization instantiate-typesfalse/instantiate-types /serialization /properties /channel-definition /channels For other technologies supporting AMF3 it depends on how they are implemented. But since they are custom adapters they are pretty much open and do not have any restrictions and following ColdFusion's config setup works for SabreAMF, WebORB for PHP, and AMFPHP 1.9. You can find examples of all three on my blog. But the particular AMFPHP 1.9 example shows that the config file doesn't even need to be called services-config.xml. I setup the Flex project and point the -services compiler argument to amfphp19-services-config.xml file. In side this file I setup a basic destination and the most import part setup the endpoint. ?xml version=1.0 encoding=UTF-8? services-config services service id=sabreamf-flashremoting-service class=flex.messaging.services.RemotingService messageTypes=flex.messaging.messages.RemotingMessage destination id=AMFPHP1_9 channels channel ref=my-amfphp19/ /channels properties source*/source /properties /destination /service /services channels channel-definition id=my-amfphp19 class=mx.messaging.channels.AMFChannel endpoint uri=http://{server.name}:{server.port}/amfphp1_9/gateway.php; class=flex.messaging.endpoints.AMFEndpoint/ /channel-definition /channels /services-config Now you have to have the destination but the endpoint is optional. So you with the above configuration file link into the compiler through -services argument you can have RemoteObject code like: mx:RemoteObject id=roTestService destination=AMFPHP1_9 source=MyTestService result=Alert.show( event.result + '', 'Result' ) fault=Alert.show( event.fault.faultString , 'Error' ) mx:method name=testMethod / /mx:RemoteObject Note: for FDS default setup you will want to add the services destination and channel configuration code to the remoting-config.xml. I just updated my CairngormStore Multiple Backend example and have put it live on my blog. You can find the live running example at: http://api.renaun.com/flex2/posts/CairngormStoreMultipleBackend/ It demonstrates how to connect to different backends, ColdFusion, AMFPHP (AMF0 using my RemoteObjectAMF0), AMFPHP 1.9 (AMF3), and WebServices. You can get the source at: http://api.renaun.com/flex2/posts/CairngormStoreMultipleBackend/CairngormStoreMultipleBackend.zip Hope that helps, Renaun PS: I just noticed your other post I'll post directly to you code in bit. --- In flexcoders@yahoogroups.com, Jamie O [EMAIL PROTECTED] wrote: Hello, I am able to do a stand-alone .mxml project using the samples you have provided and connect well to my php methods / backend database. The issue I have is when trying to deploy this as part of a Flex Data Services / Cairngorm app I can't get the remote object to allow compile or usage without error. Anyone have a cairngorm / FDS scope example for using AMFPHP 1.9? If I do the closest equivelent of adding the relevant contents of your services-config.mxml to the already created one for FDS I get a Destination 'AMFPHPDestination' must specify at least one adapter error message when starting the server (Tomcat 5.5) If I do a purely-client side entry of the endpoint in the services.mxml instantiation I get other
[flexcoders] Re: Amfphp with AMF3 support: testers wanted
Jamie, You can try putting the the adapter in the remoting-config.xml. Leave the channel in the services-config.xml. ColdFusion's default remoting services-config.xml puts them all in one file, and thats what I end up doing for my non FDS stuff. One thing I did notice in terms of the Cairngorm stuff is the line of code that says: service = ServiceLocator.getInstance().getService(AMFPHPDestination) should read: service = ServiceLocator.getInstance().getService(roAMFPHPService) Hope that helps, Renaun --- In flexcoders@yahoogroups.com, Jamie O [EMAIL PROTECTED] wrote: For the stand-alone basic .mxml I used a copy of the basic example Renaud gave - with a different URL for the gateway which is located on a separate server. For the cairngorm / FDS version, here are the changes I made to the default FDS .xml files 1) In services-config.xml, add the service to the services section beneath the 4 service include path links add the service: services service-include file-path=remoting-config.xml / service-include file-path=proxy-config.xml / service-include file-path=messaging-config.xml / service-include file-path=data-management-config.xml / service id=amfphp-service class=flex.messaging.services.RemotingService messageTypes=flex.messaging.messages.RemotingMessage destination id=AMFPHPDestination channels channel ref=my-amfphp/ /channels properties source*/source /properties /destination /service /services 2) In services-config.xml, Add to the channels section add the following channel: channel-definition id=my-amfphp class=mx.messaging.channels.AMFChannel endpoint uri=http://externalURLaddress/amfphp/gateway.php; class=flex.messaging.endpoints.AMFEndpoint/ /channel-definition 3) Here's the services.mxml remote object: cairngorm:ServiceLocator xmlns:cairngorm=com.adobe.cairngorm.business.* xmlns:mx=http://www.adobe.com/2006/mxml; mx:RemoteObject id=roAMFPHPService destination=AMFPHPDestination source=AccountService showBusyCursor=true mx:method name=checkLogin / /mx:RemoteObject /cairngorm:ServiceLocator 4) And the relevant parts of the login delegate which calls: import mx.rpc.events.FaultEvent; import mx.rpc.events.ResultEvent; import mx.rpc.remoting.RemoteObject; public class LoginDelegate { protected var service:RemoteObject; protected var responder:Responder; public function LoginDelegate(p_responder:Responder) { trace(LoginDelegate::constructor); responder = p_responder; service = ServiceLocator.getInstance().getService(AMFPHPDestination) as RemoteObject; } public function CheckLogin():void { trace(LoginDelegate::CheckLogin function - + p_AttemptedUser.UserID); service.addEventListener(ResultEvent.RESULT, CheckLogin_onResult); service.addEventListener(FaultEvent.FAULT, CheckLogin_onFault); service.checkLogin(UsernameTest, PasswordTest); } protected function CheckLogin_onResult(event:ResultEvent):void { trace(LoginDelegate::CheckLogin_onResult - Output); trace(event.result); responder.onResult(new ResultEvent(ResultEvent.RESULT, false, true, event.result)); service.removeEventListener(ResultEvent.RESULT, CheckLogin_onResult); service.removeEventListener(FaultEvent.FAULT, CheckLogin_onFault); } And I receive the error Destination 'AMFPHPDestination' must specify at least one adapter. The php service isn't anything special, just give username / pass, validate in query to the mySQL DB and return a specific data element if valid. I know from ServiceCapture and the other version that I don't have an issue on that side. Much thanks! Jamie --- In flexcoders@yahoogroups.com, Patrick Mineault patrick.mineault@ wrote: Could you post the services_config.xml file you have? Patrick 2006/12/18, Jamie O jamie.oastler@: Hello, I am able to do a stand-alone .mxml project using the samples you have provided and connect well to my php methods / backend database. The issue I have is when trying to deploy this as part of a Flex Data Services / Cairngorm app I can't get the remote object to allow compile or usage without error. Anyone have a cairngorm / FDS scope example for using AMFPHP 1.9? If I do the closest equivelent of adding the relevant contents of your services-config.mxml to the already created one for FDS I get a Destination 'AMFPHPDestination' must specify at least one adapter error message when starting the server (Tomcat 5.5) If I do a purely-client side entry of the
[flexcoders] Re: Amfphp with AMF3 support: testers wanted
I also think the services config format is a bit cryptic, at the least lacking clear documentation on all the adapter/channel configuration options. Renaun --- In flexcoders@yahoogroups.com, Patrick Mineault [EMAIL PROTECTED] wrote: Dang. I really don't know what to tell you man, it looks like everything is in order. Unfortunately the services config file format is little documented and uses new meanings for old terms which makes it completely cryptic and unreadable, IMHO. Patrick
[flexcoders] Re: Nearly-Off-Topic: Flex Apps on PDAs?
No PDA's support the Flash Player 9, required by Flex 2, at this time. Renaun --- In flexcoders@yahoogroups.com, Pablo Apanasionek [EMAIL PROTECTED] wrote: Last night I was planning my incoming self xmas gift and I found myself wondering about PDA support for Flex-Built Apps. Is there any PDA-browser/plugin that supports FP9/AS3? Pablo Gustavo Apanasionek
[flexcoders] Re: Amfphp with AMF3 support: testers wanted
Patrick, Nice! I have taken the code and created some quick examples. They can be found here: http://renaun.com/flex2/posts/AMFPHP1_9Example.html http://renaun.com/flex2/posts/AMFPHP1_9ComplexExample.html Notes: You can get the source by right clicking on the examples. It was written for PHP5 (there is some small quirks for PHP4). I'll post on the stuff later, back to playing with it. Renaun http://renaun.com/blog/ --- In flexcoders@yahoogroups.com, Patrick Mineault [EMAIL PROTECTED] wrote: Hi all, I've finally gotten around to add AMF3 support to amfphp, so you can finally use Flex 2's RemoteObject with it. To test the new features, I've created a new Service Browser in Flex 2 which allows you to introspect services and test methods on the fly. I need people to test out the new AMF3 support. New/changed features: - $this-methodTable is DEAD. All methods in /services are now considered remotely accessible, unless you set them to protected or private (PHP5) or start the method name with an (_), in which case it will throw an error. If you want to get a description of a method and it's arguments without looking at the class itself, add JavaDoc to the method and you should see it in the new Service Browser. - _authenticate is dead, as a side-effect of the removal of the methodTable. You can secure methods by creating a special function called beforeFilter($methodName) in your class and return false to stop a method from being executed. (the _ and the beforeFilter are the conventions used by CakePHP, so I figured I'd use those instead of rolling my own). - Circular references in AMF0 and AMF3 should now work. Class mapping code has been ported to the AMF3 code also. To use remote class mapping, use registerClassAlias or the [RemoteClass] metadata tag, then read the instructions in advancedsettings.php - Returning a mysql_query will now return either an Array or an ArrayCollection depending on the setting in gateway.php. Other database types are currently unsupported in AMF3 mode (they will be supported as soon as I am sure the AMF3 code is perfect). - You can send ByteArray, ArrayCollection and ObjectProxy instances as arguments to remote methods. You will receive the result as a string, as the inner array and as the inner object, respectively. Currently there is no way to send back these types to Flash, but there will be in the next version. - /browser now brings up the brand spanking new Flex 2-based service browser. You can test methods directly through it. If the method returns an array or arraycollection, the browser will attempt to show it in a datagrid (sweet). Please feel free to modify servicebrowser.mxml (it's very spaghetti-code-ish, but it works). You will need the Adobe corelib to compile (google for the link) Limitations/things to keep in mind: - MySql works but not other databases - You can use a JSON string for arguments in the service browser. However you must wrap object keys in quotes (a limitation of Adobe corelib). - Paged recordsets don't work anymore - Only tested in PHP5. PHP4 might show issues with circular references. - Calling two methods on a remoteObject one after the other (during the same frame) might not work. - Charles and ServiceCapture have some issues with AMF3 handling. You might see strings which seem out of place in your output while it works fine in Flash. I will notify the people involved. You might want to set PRODUCTION_SERVER to true in gateway.php if this is a recurrent problem, in the meantime. - If you need to send to Flash a class and want it to be mapped to a class in a package, you need to add a key to the class called _explicitType with a value of com.mypackage.TheClass and use registerClassAlias or [RemoteClass] as usual ( a limitation of php not supporting packages) All that being said, I need testers. Please download it here: http://5etdemi.com/uploads/amfphp-1.9.alpha.zip (although it states it is amfphp 1.9, there will be no amfphp 1.9. amfphp 2.0 will be amfphp 1.9 + JSON and possibly XML-RPC) If you run into any issues, please either: - Create a minimal test case which shows the reproducible bug, then send it to me. - In gateway.php, uncomment $gateway-logIncomingMessages and logOutgoingMessages, create an in and an out folder and run it again. Then send the log files (*.amf) to me. Please send the feedback to pm AT 5etdemi DOT com. I am confident it should be pretty stable, as most of the new code is lifted from Fluorine, but you never know. Once I am 100% sure the amf 3 code is bulletproof I will release another version with some publicity on the blog and the homepage (currently keeping the new code low-profile). Thanks, Patrick
[flexcoders] Re: Amfphp with AMF3 support: testers wanted
Patrick, The examples I created were done quick and are used as my initial test apps for AMF0/3 backends. They are very basic and do not mean to show any particular method of doing something. There are a lot of different ways of creating, calling and handling events with RemoteObject's. The in the servicebrowser.mxml you use two of the ways, AS and MXML. flash.net.registerClassAlias is left over import code, its not needed. As for the ArrayUtil.toArray(). Some times the event.result does not come back as a proper Array and to make sure the ArrayCollection is passed an Array I use the ArrayUtil.toArray(), I had some binding and and Run Time errors for certain cases. I use this quick example across multiple backends of AMF0/3 implementations. Renaun --- In flexcoders@yahoogroups.com, Patrick Mineault [EMAIL PROTECTED] wrote: Nice stuff Renaun! A couple things: in the mx:RemoteObject tag you could declare an mx:method and have result and fault bound to the method and not to the service itself. Why are you using ArrayUtil.toArray in the complex example? Finally, in the BookVO class you don't need to import flash.net.registerClassAlias, [RemoteClass] does the job by itself. Patrick 2006/12/12, Renaun Erickson [EMAIL PROTECTED]: Patrick, Nice! I have taken the code and created some quick examples. They can be found here: http://renaun.com/flex2/posts/AMFPHP1_9Example.html http://renaun.com/flex2/posts/AMFPHP1_9ComplexExample.html Notes: You can get the source by right clicking on the examples. It was written for PHP5 (there is some small quirks for PHP4). I'll post on the stuff later, back to playing with it. Renaun http://renaun.com/blog/ --- In flexcoders@yahoogroups.com, Patrick Mineault patrick.mineault@ wrote: Hi all, I've finally gotten around to add AMF3 support to amfphp, so you can finally use Flex 2's RemoteObject with it. To test the new features, I've created a new Service Browser in Flex 2 which allows you to introspect services and test methods on the fly. I need people to test out the new AMF3 support. New/changed features: - $this-methodTable is DEAD. All methods in /services are now considered remotely accessible, unless you set them to protected or private (PHP5) or start the method name with an (_), in which case it will throw an error. If you want to get a description of a method and it's arguments without looking at the class itself, add JavaDoc to the method and you should see it in the new Service Browser. - _authenticate is dead, as a side-effect of the removal of the methodTable. You can secure methods by creating a special function called beforeFilter($methodName) in your class and return false to stop a method from being executed. (the _ and the beforeFilter are the conventions used by CakePHP, so I figured I'd use those instead of rolling my own). - Circular references in AMF0 and AMF3 should now work. Class mapping code has been ported to the AMF3 code also. To use remote class mapping, use registerClassAlias or the [RemoteClass] metadata tag, then read the instructions in advancedsettings.php - Returning a mysql_query will now return either an Array or an ArrayCollection depending on the setting in gateway.php. Other database types are currently unsupported in AMF3 mode (they will be supported as soon as I am sure the AMF3 code is perfect). - You can send ByteArray, ArrayCollection and ObjectProxy instances as arguments to remote methods. You will receive the result as a string, as the inner array and as the inner object, respectively. Currently there is no way to send back these types to Flash, but there will be in the next version. - /browser now brings up the brand spanking new Flex 2-based service browser. You can test methods directly through it. If the method returns an array or arraycollection, the browser will attempt to show it in a datagrid (sweet). Please feel free to modify servicebrowser.mxml (it's very spaghetti-code-ish, but it works). You will need the Adobe corelib to compile (google for the link) Limitations/things to keep in mind: - MySql works but not other databases - You can use a JSON string for arguments in the service browser. However you must wrap object keys in quotes (a limitation of Adobe corelib). - Paged recordsets don't work anymore - Only tested in PHP5. PHP4 might show issues with circular references. - Calling two methods on a remoteObject one after the other (during the same frame) might not work. - Charles and ServiceCapture have some issues with AMF3 handling. You might see strings which seem out of place in your output while it works fine in Flash. I will notify the people involved. You might want to set PRODUCTION_SERVER
[flexcoders] Re: openning a web page in flex app
You'll find a IFrame.mxml file in source of the Flex Search Mashup I just did. You'll want to get the html out of the example page as it has the JS to manipulate the IFrame. http://renaun.com/blog/2006/11/16/156/ Renaun http://renaun.com/ --- In flexcoders@yahoogroups.com, ria team [EMAIL PROTECTED] wrote: Hi I am trying to open url in flex component but i could not made it using flex control I have used IFrame(html control) to solve this problem . I want to know is there is any control in flex which is help me in opening the url in it. Amey - Check out the all-new Yahoo! Mail beta - Fire up a more powerful email and get things done faster.
[flexcoders] Re: mx.rpc.remoting.mxml.RemoteObject source code?
They do not give us everything, this is one of those cases. Is there anything in particular that you are trying to do with that class? Renaun http://renaun.com/blog/ --- In flexcoders@yahoogroups.com, Douglas McCarroll [EMAIL PROTECTED] wrote: Hi All, Does anyone know if the source code for mx.rpc.remoting.mxml.RemoteObject is available? And if so, where to find it? Doesn't seem to be in \Flex SDK 2\frameworks\mx\. TIA! Douglas McCarroll -- 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: AMFPHP / Cairngorm / _explicitType Problem
It is very possible to use Cairngorm AMFPHP and VO's. I have a RemoteObjectAMF0 component that helps facilitate Flex 2 and AMF0 connections. Along with the component is a Cairngorm 2.1 Store example with AMFPHP backend. http://renaun.com/blog/flex-components/remoteobjectamf0/ Renaun http://renaun.com/blog/ --- In flexcoders@yahoogroups.com, ichgehe [EMAIL PROTECTED] wrote: I am now quite comfortable with Cairngorm but have a last Problem. I would like to use the services I have already written in AMFPHP and now after changing to Cairngorm I have a problem. Now my main question is: Is it possible not to use the VO Objects on the PHP side? Because I am currently running out of time rewriting the AMF services. I tried just to add a key to the DB $row trying to define _explicitType ... conversion seems to work, but then the error is following (debugger does not even start up): NetStatusEvent unverarbeitet. level=error, code=NetConnection.Call.BadVersion What I am looking for is a cairngorm compatible AMFPHP code, where I do not need to create VOs, because the VOs in Flex have the same Column names... Any ideas? -- 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: MAX examples
It is also located in the the Conference Guide you receive in your MAX 2006 Conference bag. There is about 50% of the Slides up and not many code examples up, at least when I checked the other day. Hopefully we'll see more go up. Renaun http://renaun.com/blog/ --- In flexcoders@yahoogroups.com, Shannon Hicks [EMAIL PROTECTED] wrote: Quote: The login/password were emailed to you, and are different than your registration login/password. :) It was in an email with the subject MAX 2006 Final Registration Confirmation. Got mine on 10/19 Shan _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rich Tretola Sent: Monday, October 30, 2006 10:18 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] MAX examples Ok, so I can still get into the Max Scheduler, but the same username/password is not working at HYPERLINK http://www.adobe.com/events/max/attendees/; \nhttp://www.adobe.-com/events/-max/attendees/ Is anyone else having trouble getting in? Rich On 10/30/06, Shannon Hicks HYPERLINK mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Most of the sample codes are on the MAX presentation library: HYPERLINK http://www.adobe.com/events/max/attendees/; \nhttp://www.adobe.-com/events/-max/attendees/ The login/password were emailed to you, and are different than your registration login/password. Shan _ From: HYPERLINK mailto:flexcoders@yahoogroups.com; [EMAIL PROTECTED] [mailto:HYPERLINK mailto:flexcoders@yahoogroups.com; [EMAIL PROTECTED] On Behalf Of Jonathan Miranda Sent: Sunday, October 29, 2006 4:37 PM To: HYPERLINK mailto:flexcoders@yahoogroups.com; [EMAIL PROTECTED] Subject: [flexcoders] MAX examples Anyone seen if instructors/-Adobe has posted their examples from MAX? Like Sho's flexTunes or Ely's picture shelf? -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.17/505 - Release Date: 10/27/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.17/505 - Release Date: 10/27/2006 -- Rich Tretola mx:EverythingFlex/ HYPERLINK http://www.EverythingFlex.comhttp://www.Everythi-ngFlex.com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.17/505 - Release Date: 10/27/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.408 / Virus Database: 268.13.17/505 - Release Date: 10/27/2006 -- 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: VO Mapping, some basic questions
Julian, Thanks for clarifying. _explicitType is an AMFPHP only implementation. AMFPHP uses it to type the return value and then actually deletes the reference of _explicitType right off the object. For the AS3 side the BookVO looks like this: package com.renaun.samples.login.vo { import com.adobe.cairngorm.vo.ValueObject; import flash.net.registerClassAlias; [RemoteClass(alias=com.renaun.samples.login.vo.BookVO)] [Bindable] public class BookVO implements ValueObject { public var name : String; public var bookid : String; public var publishdate : String; public var createddate : Date; } } The source for all the snippets I have posted are at http://renaun.com/blog/flex-components/remoteobjectamf0/ Hope that helps, Renaun http://renaun.com/blog/ --- In flexcoders@yahoogroups.com, Julian Sander [EMAIL PROTECTED] wrote: It seems like we are speaking right past eachother :) It is not the server side of the equation I am missing. In the AMF0 payload the parameter _explicitType is passed. In AS2 I use Object.registerClass to map the class writen as a String in _explicitType (ie com.renaun.samples.login.vo.BookVO ) to a AS2 Class found at com.renaun.samples.login.vo.BookVO. What I want to know is if the parameter _explicitType works in Flex as well? Cheers, Julian Julian Sander BurbacherstraÃe 58 53129 Bonn t/f +49 228 21 27 15 m +49 172 250 6524 http://abstractfactory.de  On 17.10.2006, at 00:06, Renaun Erickson wrote: AMFPHP's _explicitType implementation is used to define it however you want. So for my example of the BookVO, the php VO would look like: class BookVO { public $_explicitType = com.renaun.samples.login.vo.BookVO; public $name; public $bookid; public $publishdate; public $createddate; } And the PHP service class is: include ../vo/BookVO.php; class Login { function Login() { $this-methodTable = array( checkLogin = array( description = Simple Login, access = remote, arguments = array () ) ); // Initialize db connection } function checkLogin() { $arr = array(); $book = new BookVO(); $book-name = Adobe Flex 2: Training from the Source; $book-bookid = 032142316X; $book-publishdate = date( F j, Y, g:i a, mktime(0, 0, 0, 8, 31, 2006) ); $arr[] = $book; $book = new BookVO(); $book-name = ActionScript 3.0 Cookbook : Solutions and Examples for Flash Developers; $book-bookid = 0596526954; $book-publishdate = date( F j, Y, g:i a, mktime(0, 0, 0, 9, 1, 2006) ); $arr[] = $book; $book = new BookVO(); $book-name = Programming Flex 2 : The Comprehensive Guide to Creating Rich Media Applications with Adobe Flex; $book-bookid = 059652689X; $book-publishdate = date( F j, Y, g:i a, mktime(0, 0, 0, 11, 1, 2006) ); $arr[] = $book; return $arr; } } Renaun --- In flexcoders@yahoogroups.com, Julian Sander dr.swank@ wrote: Hi Renaun, thanx for the responce! I have gotten this far as well. What I am not clear on is what is being passed int eh responce from the server to Flex that makes the alias work? Is it still the _explicitType property or is there something else? cheers, Julian Julian Sander Burbacherstraße 58 53129 Bonn t/f +49 228 21 27 15 m +49 172 250 6524 http://sander-is.com  On 16.10.2006, at 21:24, Renaun Erickson wrote: AMFPHP uses _excplicitType or advancedmappings.php to make mapping easier. With PHP 5 there is some class introspection code that makes it possible to find the object mapping automacitally. Both SabreAMF and WebORB for PHP supports the auto object mapping. As FDS and Coldfusion connectivity is based on Java it also is very capable of class introspection and auto mapping. Basically the mapping as nothing to do with Flex. Now in regards to your question about Flex side of the VO mapping. Here is a sample AS VO file I use in my WebORB for PHP example. package com.renaun.samples.login.vo { import flash.net.registerClassAlias; [RemoteClass(alias=com.renaun.samples.login.vo.BookVO)] [Bindable] public class BookVO { public var name : String; public var bookid : String; public var publishdate : String; public var createddate : Date; } } You can even type the objects in ArrayCollections by this code: [Bindable] [ArrayElementType(com.renaun.samples.vo.BookVO)] private var books:ArrayCollection; Renaun --- In flexcoders@yahoogroups.com, dr.swank dr.swank@ wrote: Hi List, I am working with CakePHP 1.2, CakeAMFPHP, and Flex2 SDK to develop a fairly complex community portal. I can't say too much due to client restrictions
[flexcoders] Re: Not Receiving Flexcoder Posts
Yahoo's mail can be flaky, I started using a RSS reader to get better access to all the posts. RSS Feed URL: http://rss.groups.yahoo.com/group/flexcoders/rss Renaun http://renaun.com/blog/ --- In flexcoders@yahoogroups.com, jwc_wensan [EMAIL PROTECTED] wrote: Moderator: I have not received any flexcoder posts since Sat. I have reverified my Yahoo Groups email address several times. Everything seems to be OK, yet I still do not get any posts. Can you assist? Or direct me to someone who can? This continues to happen at least once a month. Thanks, Jack -- 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: VO Mapping, some basic questions
Straight from the AMFPHP code. AMFSerializer.php (line ~346) if(isset($d-_explicitType)) { $classname = $d-_explicitType; unset($d-_explicitType); } AMFPHP uses it on the Serialization side to set the classname and then unset's the value. Renaun --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: Nope, AMFPHP must internally be doing this work for you (isn't it the one that actually produces the AMF binary for the response and not your code?). Pete From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Julian Sander Sent: Tuesday, October 17, 2006 11:35 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: VO Mapping, some basic questions Hi Peter, thanx for your insite. It reafirms what I though was happening. None the less, I am curious how the mechanism works now. In AmfPHP there is a wrapper that will convert a simple array to a RecordSet called Arrayf. Among other things it passes the _explicitType property back. I assume that AS 2, or the flash player then reads that and casts the data to an instance of RecordSet. It must be this way as I have never written any parsing engines for returned data using AmfPHP. Should I assume that the Flash 9 player does this as well, or more specificaly that the Flash VM for AS3 does this? I get the feeling as if there is some very basic block of info I am missing cheers, Julian Julian Sander BurbacherstraÃe 58 53129 Bonn t/f +49 228 21 27 15 m +49 172 250 6524 http://sander-is.com On 17.10.2006, at 17:10, Peter Farland wrote: Julian, remember that the client deserialization of AMF responses is controlled by native code in the Flash Player - unless there is specific handling code written in ActionScript to preprocess the result before it is returned to you, the presence of _explicitType would not cause a typed object to be created on the client automatically. I haven't seen the PHP code, but I would imagine that the presence of an _explicitType property causes the serialized AMF object to the include extra information for the class name in the binary definition of the object... it is only through this mechanism that the native code in the Flash Player will create a typed object for a registered class on deserializing a response. Flex is built on top of ActionScript so it too relies on the native deserialization behavior of the Flash Player. The _explicitType property must be a way for PHP to allow untyped PHP objects be returned as typed ActionScript objects (or perhaps also an alias mechanism for those that possess type information already?). Either way this is a copy of the _remoteClass property mechanism from Flex 1.0/Flex 1.5 (though note this approach was abandonded in Flex 2.0). From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Julian Sander Sent: Tuesday, October 17, 2006 3:41 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: VO Mapping, some basic questions It seems like we are speaking right past eachother :)? It is not the server side of the equation I am missing.? In the AMF0 payload the parameter _explicitType is passed.? In AS2 I use Object.registerClass to map the class writen as a String in _explicitType (ie com.renaun.samples.login.vo.BookVO ) to a AS2 Class found at?com.renaun.samples.login.vo.BookVO.? What I want to know is if the parameter _explicitType works in Flex as well? Cheers, Julian Julian Sander Burbacherstra58ߥ 53129 Bonn t/f ? ? +49 228 21 27 15 m? ? ? +49 172 250 6524 http://abstractfactory.de http://abstractfactory.de/ 438570115 On 17.10.2006, at 00:06, Renaun Erickson wrote: AMFPHP's _explicitType implementation is used to define it however you want. So for my example of the BookVO, the php VO would look like: class BookVO { public $_explicitType = com.renaun.samples.login.vo.BookVO; public $name; public $bookid; public $publishdate; public $createddate; } And the PHP service class is: include ../vo/BookVO.php; class Login { function Login() { $this-methodTable = array( checkLogin = array( description = Simple Login, access = remote, arguments = array () ) ); // Initialize db connection } function checkLogin() { $arr = array(); $book = new BookVO(); $book-name = Adobe Flex 2: Training from the Source; $book-bookid = 032142316X; $book-publishdate = date( F j, Y, g:i a, mktime(0, 0, 0, 8, 31
[flexcoders] Re: VO Mapping, some basic questions
AMFPHP uses _excplicitType or advancedmappings.php to make mapping easier. With PHP 5 there is some class introspection code that makes it possible to find the object mapping automacitally. Both SabreAMF and WebORB for PHP supports the auto object mapping. As FDS and Coldfusion connectivity is based on Java it also is very capable of class introspection and auto mapping. Basically the mapping as nothing to do with Flex. Now in regards to your question about Flex side of the VO mapping. Here is a sample AS VO file I use in my WebORB for PHP example. package com.renaun.samples.login.vo { import flash.net.registerClassAlias; [RemoteClass(alias=com.renaun.samples.login.vo.BookVO)] [Bindable] public class BookVO { public var name : String; public var bookid : String; public var publishdate : String; public var createddate : Date; } } You can even type the objects in ArrayCollections by this code: [Bindable] [ArrayElementType(com.renaun.samples.vo.BookVO)] private var books:ArrayCollection; Renaun --- In flexcoders@yahoogroups.com, dr.swank [EMAIL PROTECTED] wrote: Hi List, I am working with CakePHP 1.2, CakeAMFPHP, and Flex2 SDK to develop a fairly complex community portal. I can't say too much due to client restrictions, so I will ask my questions is a very broad way.. :) I know that, in AMFPHP for AMF0 there was a var sent back to Flash called _excplicitType which, when used with Object.registerClass() would map the reurned value object to the appropriate class. I had all that working, so how it runs is not a problem. My issue comes up with AMF0 anf Flex2: 1. what is/are the flag/flags that Flex looks for to map returned objects to their counterparts inside the FLex App? 2. Is Cairngorn the better way to deal with this issue? For those who are not familiar with CakePHP, it is a Data Modeling Framework ( well, among other things) which returns Models and assosiated values. So if a User had many Ariticles, then Cake would retun a User object which would contain a Article object containing all the articles for the User. Any hint, tips, etc would be greatly appritiated, cheers, Julian (aka drSwank) -- 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: FDS/PHP/AMFPHP
The PHP RIA SDK by Adobe can be found at: http://code.google.com/p/adobe-php-sdk/ (news) http://devzone.zend.com/node/view/id/1010 PHP RIA SDK is a project started by Mike Potter, which is intended to enable PHP developers to build solutions with Adobe RIA technologies quickly. WebORB for PHP has very good documentation and examples. I have a few examples with source code of AMFPHP (with and without Cairngorm), SabreAMF, and WebORB for PHP on my blog. Here's the links: http://renaun.com/blog/2006/09/23/103/ http://renaun.com/blog/2006/09/01/93/ http://renaun.com/blog/2006/07/25/70/ Renaun http://renaun.com/blog/ --- In flexcoders@yahoogroups.com, jmfillman [EMAIL PROTECTED] wrote: Thank you for the links! My RIA shouldn't ever need more than 1 CPU so the FDS Express seems like it could be what I want, but the one article I did find, that I posted in the original message, was pretty short on details, and doesn't work for me for some reason. Any better tutorials and examples of using FDS? My RIA will eventually be a commercial app in the $1500-$2000 range per site, but WebORB Professional, at $800 a CPU, will be too expensive. I can get AMF0 with AMFPHP, assuming I can ever get it working, so it really comes down to FDS, AMFPHP, or WebORB Standard Edition. Which one is easier from a beginners standpoint, and where can I find working examples with great documentation? Source files would be nice too? Or maybe you've got a simple one I could look at? Jason --- In flexcoders@yahoogroups.com, Renaun Erickson renaun@ wrote: No PHP packages support the full functionality of Flex data access features, which Flex Data Services server provides. Part of Flex data access is RPC serivces, which includes Remoting. When it first came out, before Flex, it was called Flash MX Remoting. In Flex remoting is done by the RemoteObject component using Action Message Format (AMF). With Flex 2 AMF3 was introduced a newer AMF format. There are a couple PHP projects support AMF0/3 a break down is below. AMFPHP supports AMF0, uses PHP4 and has been around for a long time. SabreAMF (http://osflash.org/sabreamf) - supports AMF0/AMF3 and uses PHP5. This is a generic server that can be extend for many uses. This is under a BSD license. WebORB for PHP (http://themidnightcoders.com/weborb/php/index.htm) - supports AMF0/AMF3 and uses PHP5. Highly structure to act like a FDS server setup. This is part of a large suite of tools and is under a GPL license. Both SabreAMF and WebORB for PHP has plans for support more Flex data access features, which FDS typifies. I believe WebORB for PHP's roadmap is geared for a sooner release. You can find examples of how to use Flex to connect to AMF0 servers and also how to connect to SabreAMF and WebORB for PHP on my blog at http://renaun.com/. Hope that helps, Renaun http://renaun.com/ --- In flexcoders@yahoogroups.com, jmfillman jmfillman@ wrote: I've tried all these tutorials, and can't get any of them to work. The PHP (http://www.adobe.com/devnet/flex/articles/flex2_php.html) article runs without errors but doesn't load data from the database or submit it, the AMFPHP (http://www.adobe.com/devnet/flex/articles/flex2_amfphp.html) example generates errors in Flex 2.0. I'm assuming it's a difference between the Beta and final release. The only FDS example I've found (http://blogs.adobe.com/mtg/2006/08/my_first_hibernate_enabled_fle.ht ml) proved no better. I get a lengthy error that others have received, but the author hasn't posted fixes that work for me. Probably has to do with me more than these posts, but are there working and better documented examples out there? I'd love to use FDS with PHP and MySQL, but I don't find anything useful that gives detailed steps for a beginner in configuring and then querying and adding/updating from Flex 2.0. It's be nice if someone created a wizard for FDS like they did for ColdFusion! -- 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: VO Mapping, some basic questions
AMFPHP's _explicitType implementation is used to define it however you want. So for my example of the BookVO, the php VO would look like: class BookVO { public $_explicitType = com.renaun.samples.login.vo.BookVO; public $name; public $bookid; public $publishdate; public $createddate; } And the PHP service class is: include ../vo/BookVO.php; class Login { function Login() { $this-methodTable = array( checkLogin = array( description = Simple Login, access = remote, arguments = array () ) ); // Initialize db connection } function checkLogin() { $arr = array(); $book = new BookVO(); $book-name = Adobe Flex 2: Training from the Source; $book-bookid = 032142316X; $book-publishdate = date( F j, Y, g:i a, mktime(0, 0, 0, 8, 31, 2006) ); $arr[] = $book; $book = new BookVO(); $book-name = ActionScript 3.0 Cookbook : Solutions and Examples for Flash Developers; $book-bookid = 0596526954; $book-publishdate = date( F j, Y, g:i a, mktime(0, 0, 0, 9, 1, 2006) ); $arr[] = $book; $book = new BookVO(); $book-name = Programming Flex 2 : The Comprehensive Guide to Creating Rich Media Applications with Adobe Flex; $book-bookid = 059652689X; $book-publishdate = date( F j, Y, g:i a, mktime(0, 0, 0, 11, 1, 2006) ); $arr[] = $book; return $arr; } } Renaun --- In flexcoders@yahoogroups.com, Julian Sander [EMAIL PROTECTED] wrote: Hi Renaun, thanx for the responce! I have gotten this far as well. What I am not clear on is what is being passed int eh responce from the server to Flex that makes the alias work? Is it still the _explicitType property or is there something else? cheers, Julian Julian Sander BurbacherstraÃe 58 53129 Bonn t/f +49 228 21 27 15 m +49 172 250 6524 http://sander-is.com  On 16.10.2006, at 21:24, Renaun Erickson wrote: AMFPHP uses _excplicitType or advancedmappings.php to make mapping easier. With PHP 5 there is some class introspection code that makes it possible to find the object mapping automacitally. Both SabreAMF and WebORB for PHP supports the auto object mapping. As FDS and Coldfusion connectivity is based on Java it also is very capable of class introspection and auto mapping. Basically the mapping as nothing to do with Flex. Now in regards to your question about Flex side of the VO mapping. Here is a sample AS VO file I use in my WebORB for PHP example. package com.renaun.samples.login.vo { import flash.net.registerClassAlias; [RemoteClass(alias=com.renaun.samples.login.vo.BookVO)] [Bindable] public class BookVO { public var name : String; public var bookid : String; public var publishdate : String; public var createddate : Date; } } You can even type the objects in ArrayCollections by this code: [Bindable] [ArrayElementType(com.renaun.samples.vo.BookVO)] private var books:ArrayCollection; Renaun --- In flexcoders@yahoogroups.com, dr.swank dr.swank@ wrote: Hi List, I am working with CakePHP 1.2, CakeAMFPHP, and Flex2 SDK to develop a fairly complex community portal. I can't say too much due to client restrictions, so I will ask my questions is a very broad way.. :) I know that, in AMFPHP for AMF0 there was a var sent back to Flash called _excplicitType which, when used with Object.registerClass() would map the reurned value object to the appropriate class. I had all that working, so how it runs is not a problem. My issue comes up with AMF0 anf Flex2: 1. what is/are the flag/flags that Flex looks for to map returned objects to their counterparts inside the FLex App? 2. Is Cairngorn the better way to deal with this issue? For those who are not familiar with CakePHP, it is a Data Modeling Framework ( well, among other things) which returns Models and assosiated values. So if a User had many Ariticles, then Cake would retun a User object which would contain a Article object containing all the articles for the User. Any hint, tips, etc would be greatly appritiated, cheers, Julian (aka drSwank) -- 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
[flexcoders] Re: FDS/PHP/AMFPHP
No PHP packages support the full functionality of Flex data access features, which Flex Data Services server provides. Part of Flex data access is RPC serivces, which includes Remoting. When it first came out, before Flex, it was called Flash MX Remoting. In Flex remoting is done by the RemoteObject component using Action Message Format (AMF). With Flex 2 AMF3 was introduced a newer AMF format. There are a couple PHP projects support AMF0/3 a break down is below. AMFPHP supports AMF0, uses PHP4 and has been around for a long time. SabreAMF (http://osflash.org/sabreamf) - supports AMF0/AMF3 and uses PHP5. This is a generic server that can be extend for many uses. This is under a BSD license. WebORB for PHP (http://themidnightcoders.com/weborb/php/index.htm) - supports AMF0/AMF3 and uses PHP5. Highly structure to act like a FDS server setup. This is part of a large suite of tools and is under a GPL license. Both SabreAMF and WebORB for PHP has plans for support more Flex data access features, which FDS typifies. I believe WebORB for PHP's roadmap is geared for a sooner release. You can find examples of how to use Flex to connect to AMF0 servers and also how to connect to SabreAMF and WebORB for PHP on my blog at http://renaun.com/. Hope that helps, Renaun http://renaun.com/ --- In flexcoders@yahoogroups.com, jmfillman [EMAIL PROTECTED] wrote: I've tried all these tutorials, and can't get any of them to work. The PHP(http://www.adobe.com/devnet/flex/articles/flex2_php.html) article runs without errors but doesn't load data from the database or submit it, the AMFPHP (http://www.adobe.com/devnet/flex/articles/flex2_amfphp.html) example generates errors in Flex 2.0. I'm assuming it's a difference between the Beta and final release. The only FDS example I've found (http://blogs.adobe.com/mtg/2006/08/my_first_hibernate_enabled_fle.ht ml) proved no better. I get a lengthy error that others have received, but the author hasn't posted fixes that work for me. Probably has to do with me more than these posts, but are there working and better documented examples out there? I'd love to use FDS with PHP and MySQL, but I don't find anything useful that gives detailed steps for a beginner in configuring and then querying and adding/updating from Flex 2.0. It's be nice if someone created a wizard for FDS like they did for ColdFusion! -- 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: FDS/PHP/AMFPHP
Mark, Thanks for the clarification. I remember reading about the editions somewhere now, and to put it together I assume you are refering to the edition breakdown at: http://themidnightcoders.com/licensing/ Where PHP will have these editions: WebORB Open Source Edition - free WebORB Professional Edition - $799 / CPU WebORB Enterprise Edition - TBA WebORB is a solid project that is barely a couple months old, should continue to see some good stuff from the midnightcoders as they roll out the Professional and Enterprise editions of the WebORB suite. Renaun --- In flexcoders@yahoogroups.com, Mark Piller [EMAIL PROTECTED] wrote: Let me clarify that WebORB for PHP is available under BOTH GPL and a commercial license. If GPL requirements do not suit your needs, you can always license WebORB for PHP commercially. Thanks, Mark --- In flexcoders@yahoogroups.com, Renaun Erickson renaun@ wrote: No PHP packages support the full functionality of Flex data access features, which Flex Data Services server provides. Part of Flex data access is RPC serivces, which includes Remoting. When it first came out, before Flex, it was called Flash MX Remoting. In Flex remoting is done by the RemoteObject component using Action Message Format (AMF). With Flex 2 AMF3 was introduced a newer AMF format. There are a couple PHP projects support AMF0/3 a break down is below. AMFPHP supports AMF0, uses PHP4 and has been around for a long time. SabreAMF (http://osflash.org/sabreamf) - supports AMF0/AMF3 and uses PHP5. This is a generic server that can be extend for many uses. This is under a BSD license. WebORB for PHP (http://themidnightcoders.com/weborb/php/index.htm) - supports AMF0/AMF3 and uses PHP5. Highly structure to act like a FDS server setup. This is part of a large suite of tools and is under a GPL license. Both SabreAMF and WebORB for PHP has plans for support more Flex data access features, which FDS typifies. I believe WebORB for PHP's roadmap is geared for a sooner release. You can find examples of how to use Flex to connect to AMF0 servers and also how to connect to SabreAMF and WebORB for PHP on my blog at http://renaun.com/. Hope that helps, Renaun http://renaun.com/ --- In flexcoders@yahoogroups.com, jmfillman jmfillman@ wrote: I've tried all these tutorials, and can't get any of them to work. The PHP(http://www.adobe.com/devnet/flex/articles/flex2_php.html) article runs without errors but doesn't load data from the database or submit it, the AMFPHP (http://www.adobe.com/devnet/flex/articles/flex2_amfphp.html) example generates errors in Flex 2.0. I'm assuming it's a difference between the Beta and final release. The only FDS example I've found (http://blogs.adobe.com/mtg/2006/08/my_first_hibernate_enabled_fle.ht ml) proved no better. I get a lengthy error that others have received, but the author hasn't posted fixes that work for me. Probably has to do with me more than these posts, but are there working and better documented examples out there? I'd love to use FDS with PHP and MySQL, but I don't find anything useful that gives detailed steps for a beginner in configuring and then querying and adding/updating from Flex 2.0. It's be nice if someone created a wizard for FDS like they did for ColdFusion! -- 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: FDS/PHP/AMFPHP
Mark, Your right again, I just came across it when the PHP release was made. I should have been more explicit, all the better to educate people new to it like me... Renaun --- In flexcoders@yahoogroups.com, Mark Piller [EMAIL PROTECTED] wrote: Renaun, Yes, that's the pricing breakdown I am referring to. As for WebORB being a couple months old, that's not entirely accurate. The product has been around for more than three years. It used to be knows as FlashORB. Flex integration in WebORB is as young as Flex 2. Thanks, Mark --- In flexcoders@yahoogroups.com, Renaun Erickson renaun@ wrote: Mark, Thanks for the clarification. I remember reading about the editions somewhere now, and to put it together I assume you are refering to the edition breakdown at: http://themidnightcoders.com/licensing/ Where PHP will have these editions: WebORB Open Source Edition - free WebORB Professional Edition - $799 / CPU WebORB Enterprise Edition - TBA WebORB is a solid project that is barely a couple months old, should continue to see some good stuff from the midnightcoders as they roll out the Professional and Enterprise editions of the WebORB suite. Renaun --- In flexcoders@yahoogroups.com, Mark Piller mark@ wrote: Let me clarify that WebORB for PHP is available under BOTH GPL and a commercial license. If GPL requirements do not suit your needs, you can always license WebORB for PHP commercially. Thanks, Mark --- In flexcoders@yahoogroups.com, Renaun Erickson renaun@ wrote: No PHP packages support the full functionality of Flex data access features, which Flex Data Services server provides. Part of Flex data access is RPC serivces, which includes Remoting. When it first came out, before Flex, it was called Flash MX Remoting. In Flex remoting is done by the RemoteObject component using Action Message Format (AMF). With Flex 2 AMF3 was introduced a newer AMF format. There are a couple PHP projects support AMF0/3 a break down is below. AMFPHP supports AMF0, uses PHP4 and has been around for a long time. SabreAMF (http://osflash.org/sabreamf) - supports AMF0/AMF3 and uses PHP5. This is a generic server that can be extend for many uses. This is under a BSD license. WebORB for PHP (http://themidnightcoders.com/weborb/php/index.htm) - supports AMF0/AMF3 and uses PHP5. Highly structure to act like a FDS server setup. This is part of a large suite of tools and is under a GPL license. Both SabreAMF and WebORB for PHP has plans for support more Flex data access features, which FDS typifies. I believe WebORB for PHP's roadmap is geared for a sooner release. You can find examples of how to use Flex to connect to AMF0 servers and also how to connect to SabreAMF and WebORB for PHP on my blog at http://renaun.com/. Hope that helps, Renaun http://renaun.com/ --- In flexcoders@yahoogroups.com, jmfillman jmfillman@ wrote: I've tried all these tutorials, and can't get any of them to work. The PHP(http://www.adobe.com/devnet/flex/articles/flex2_php.html) article runs without errors but doesn't load data from the database or submit it, the AMFPHP (http://www.adobe.com/devnet/flex/articles/flex2_amfphp.html) example generates errors in Flex 2.0. I'm assuming it's a difference between the Beta and final release. The only FDS example I've found (http://blogs.adobe.com/mtg/2006/08/my_first_hibernate_enabled_fle.ht ml) proved no better. I get a lengthy error that others have received, but the author hasn't posted fixes that work for me. Probably has to do with me more than these posts, but are there working and better documented examples out there? I'd love to use FDS with PHP and MySQL, but I don't find anything useful that gives detailed steps for a beginner in configuring and then querying and adding/updating from Flex 2.0. It's be nice if someone created a wizard for FDS like they did for ColdFusion! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex 2 limitations vs. raw Flash 8 Prof?
A big one for me is Developer workflow. Try sharing FLA's between a couple of developers. Using MXML and AS with CVS/SVN you can get tons of work done with out working about who has the latest file. Granted you could do this with Flash 8 professional and external AS files but that is also messy in its own right. Renaun --- In flexcoders@yahoogroups.com, Kirk Marple [EMAIL PROTECTED] wrote: we're looking to move our ASP.NET based application suite to Flash, and have been investigating the use of Flex 2 vs. just straight Flash 8 Pro. can anyone provide any feedback on what limitations you've seen when developing an RIA in Flex 2 vs. just straight Flash 8? we're trying to evaluate the pros/cons on going one way vs another. specifically, we like the Flex 2 layout capabilities and the ability to easily deal with XML and REST web services, but we seem to be constrained by the lack of scripted animations (from what i've heard) and ability to have a cinematic look/feel compared to Flash 8. also, it's video-heavy application and need the ability to do dynamic video assembly and playback. thanks for any input! Kirk -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~ Kirk Marple Chief Software Architect, VP of Engineering Agnostic Media, Inc. e: [EMAIL PROTECTED] w: www.agnostic-media.com http://www.agnostic-media.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: mx:Form examples.
I create a AdvancedForm component to help with some of the typical uses of Forms. http://renaun.com/blog/flex-components/comp-advancedform Renaun --- In flexcoders@yahoogroups.com, aaron smith [EMAIL PROTECTED] wrote: Does anyone know of any place that has some Form usage examples, with validators and what not word! -- 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: Posting patched versions of framework code to this list?
Anatole I see your point about Adobe and open source. I would prefer it closed with the ability to modified more than making it fully open source. There are good and bad reasons for both ways. In the components I have created quite often I learn and take bits of pieces from the source of the Flex framework and have had great success (even with private variable quirks). I think what we have now is a big step to what we had before and will get more and more open as time goes on. Renaun --- In flexcoders@yahoogroups.com, Anatole Tartakovsky [EMAIL PROTECTED] wrote: Renaun, I don't think Louis changes can be placed in extension layer as they would involve access to private methods and variables. I think his question is if Adobe foresee making Flex framework open source project administered by Adobe and is looking for repository/approval process. I also believe ( from reading the license in the past - can be wrong - did not talk to lawyers) that working in mx. packages is not allowed - so in the past any changes of that sort required us to recreate significant part of Flex stack. Addressing this issue via open source project would greatly simplify life of the people doing routine changes to framework and needing those changes to be present. The only other alternative I can see is to replicating Flex objects in open source project and making sure they are synchronized with the releases of Flex. However, it might lead to significant market fragmentation as well as break of existing libraries that are working within mx packages like Mercury. I would really like to hear Adobe position on Louis offer. Thank you, Anatole Tartakovsky http://www.faratasystems.com On 9/16/06, Renaun Erickson [EMAIL PROTECTED] wrote: You can always extend the class, make your own component and post it on Flex Exchange on Adobe.com http://adobe.com/. Renaun --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Louis Ryan louiscryan@ wrote: I have modified the DataGrid class to allow columns to be locked on the right. I posted this as an enhancement request to Adobe but its not so easy to include alot of text in their suggestion area so I didnt include the sample code I had for this. Is it OK to post modified versions of the Flex framework code here? If not is there a better way to send suggested code/patches to Adobe for review? Thanks Louis Ryan -- 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: Huge memory usage in Flex Builder 2 (release version)
This is typical of Java applications that are constantly consuming new chunks of memory. As the mxmlc compiler is constantly allocating new memory and using it, the total allocated memory goes up. You can try using different JVM's as the Java HotSpot has some improvements with certian versions. You can do some performance configuration by giving Flex Builder a larger upper limit of memory allocation (-Xmx, and the start up one -Xms). Renaun --- In flexcoders@yahoogroups.com, RBullotta [EMAIL PROTECTED] wrote: In a not-so-big Flex application, I'm noticing that FB is often consuming 500MB+ of RAM. Seems something is amiss... -- 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: Posting patched versions of framework code to this list?
You can always extend the class, make your own component and post it on Flex Exchange on Adobe.com. Renaun --- In flexcoders@yahoogroups.com, Louis Ryan [EMAIL PROTECTED] wrote: I have modified the DataGrid class to allow columns to be locked on the right. I posted this as an enhancement request to Adobe but its not so easy to include alot of text in their suggestion area so I didnt include the sample code I had for this. Is it OK to post modified versions of the Flex framework code here? If not is there a better way to send suggested code/patches to Adobe for review? Thanks Louis Ryan -- 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: WebORB for PHP with Flex
You can find my comments on WebORB for PHP here http://renaun.com/blog/2006/09/06/94/ Also I did some stuff on SabreAMF another project: http://renaun.com/blog/2006/09/01/93/ As far as WebORB, they have a good foundation and solid package. There is an issue with the services-config.xml and how I use RemoteObjects but hopefully that will be worked out. It has to do with the RemoteObject source attribute and using a ColdFusionAdapter styled destination configuration where you set the source attribute in the config file to *. Renaun --- In flexcoders@yahoogroups.com, Pete Capra [EMAIL PROTECTED] wrote: Hi there, I've just started using WebORB for PHP with Flex to enable Flash Remoting to PHP functions. So far I've found it's pretty neat. Has anyone else come across WebORB? I'd just like to know what people think about it.. Any comments or criticism? Thanks, Pete Pete Capra Information Systems Coordinator Capra Ryan Online Learning p. (617) 3208 9455 m. 0411 043 305 f. (617) 3208 9855 a. PO Box 1744 Springwood Q 4127 www.capraryan.com [EMAIL PROTECTED] -- 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: mxml escape character??
Use amp;amp; Renaun --- In flexcoders@yahoogroups.com, Chad Callahan [EMAIL PROTECTED] wrote: I need to include the { and } characters inside of an mxml tag's argument value but mxml reads the { and } as bindable. Is there a way to escape the { and } characters within the quotes? CHAD CALLAHAN PROGRAMMER T8DESIGN.COM | P 319.266.7574 - x195 | 877.T8IDEAS | F 888.290.4675 This e-mail, including attachments, is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential, and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, and then please delete it. Thank you. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex with FMS (something like Breeze...)
My Flex 2 and FMS example can be found here: http://renaun.com/blog/2006/08/22/87/ Renaun --- In flexcoders@yahoogroups.com, Michael Ritchie [EMAIL PROTECTED] wrote: I recently updated Adobe's FCS Text Chat example to work with Flex 2 and FMS, you can find my post and example here: http://thanksmister.com/?p=26 The problem with the Adobe examples are that they are outdated and some of the code to update them is not easy to find. I wanted an updated and working example that worked with Flex 2 final release. - mr --- In flexcoders@yahoogroups.com, brownd_92 david@ wrote: Hi there, Does anyone know of an instance where flex is being used in conjunction with Media server? I am looking to do something that I can upload a .swf presentation then click through the presentation (like you would powerpoint) and everyone else see and hear what Im doing Cheers David -- 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: amfphp-AS class mapping issue
I just modified the RemoteObjectAMF0 example to test the single Object return typing issue. It seems to have no problem. If you have my examples from the download (make sure you have the latest) change the PHP file Login.php as describe below: In checkLogin function change return $arr; to return $book;, we now have it return just a typed object BookVO. Then in the mxml file RemoteObjectAMFOSample.mxml file change: [Bindable] private var books:ArrayCollection; private function resultHandler( event:ResultEvent ):void { books = new ArrayCollection( ArrayUtil.toArray( event.result ) ); } To [Bindable] private var books:ArrayCollection; [Bindable] private var book:BookVO; private function resultHandler( event:ResultEvent ):void { books = new ArrayCollection( ArrayUtil.toArray( event.result ) ); book = BookVO( event.result ); } Add a label at the bottom for testing: mx:Label text={ book.name } / You'll see that there is now error thrown in the resultHandler like you are experiencing. So it must be something with the code, try breaking the problem down to see if you can find where the issue is. Note with AMFPHP you can use the advancedsettings.php or you can put $_explicitType in your PHP objects to force specific object typing. You do not need to set the return type in the methodTable but it will not hurt to do so, as well its easier to read. Renaun --- In flexcoders@yahoogroups.com, Oriol Gual [EMAIL PROTECTED] wrote: Ok then, have you set your return type in your method table? It also has to be the fully qualified name. 2006/9/1, joangarnetdotcom [EMAIL PROTECTED]: Hi, thanx for you repy. I did set $gateway-setBaseCustomMappingsPath() to point to the classpath where my PHP classes are. All PHP classes are matching exactly the same package path as my AS classes (just to make things easier). I did not set $incoming nor $outgoing in advancedsettings.php as, if I understood well, this is not necessary if you set $_explicitTtpe with the class' fully qualified name in the PHP class. Please tell me if I'm wrong or if you think there's some more light on this. Cheers! Joan --- In flexcoders@yahoogroups.com, Oriol Gual oriol.gual@ wrote: Have you changed your advancedsettings.php to correctly map your classes? 2006/8/31, joangarnetdotcom jgarnet@: Hi, I'm in a Flex2 app. I can't manage to map a php return value to the right AS type... In my service method I have this return statement: return new Result( true, new Status() ); In Result.php I have public $_explicitType = org.bestiario.website.Result; In Status.php I have public $_explicitType = org.bestiario.website.Status; I also have the corresponding Result.as and Status.as classes on the Flex side. In my HTTP debugger (Charles) I can see the AMF packet coming with correct types as you can see here: http://www.joangarnet.com/_otras/charles.gif But when the callback executes and I do: public function onResult( event:* = null ):void { var res:Result = Result(event.result); } I get the following exception: TypeError: Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to org.bestiario.website.Result. Any ideas?? Cheers! P.S. I'm using Renaun's RemoteObjectAMF0 class to call amfphp services. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex Builder 2, getting slower as code grows
Your choice of Java VM, its version and its arguments play a big roll in how your Flex Builder (Eclipse) and Flex compiler will perform. Renaun --- In flexcoders@yahoogroups.com, Douglas Knudsen [EMAIL PROTECTED] wrote: some things that may help: http://bugs.sakaiproject.org/confluence/display/ARW/Eclipse+Performance+Tuning+Tips http://java.about.com/od/eclipseplatform/a/perform_tips.htm YMMV of course. Also note, close all projects not in use. Closing doesn't delete anything, kind of a 'out of site out of mind' thing. DK On 8/29/06, tddclare [EMAIL PROTECTED] wrote: I've seen similar things with much smaller file sizes that are developed continuously or run over and over again (a.k.a. developed). Shutting down Builder and the browser that the app has been launched in repeatedly (we're using the Eclipse plugin and firefox, but whatever) seems to help out. We've had to reboot a few times when ig got really bad. It almost seems like a memory leak on our part. You hit some unknown threshold, and suddenly your... typing ... appears ... one ... l .. e ... t ... t ... e ... r (sorry) at a time. Can't wait for the mac version... Processor thing is weird... -- TC --- In flexcoders@yahoogroups.com, j_sevlie jsevlie@ wrote: Is there some kind of coding limitation on how much Flex Builder can handle before it gets completely unusable? I'm currently working on a rather complicated project that's sitting at about 1,700 lines of code, and the code editor in Flex Builder is getting painfully slow to work with. If I just start typing anything I can watch my CPU spike to 100% and sit there until I'm done typing. I still need to use Design mode because it's *awesome* for lining everything up. Is this a case where I'm just going to have to find a way to break everything up into smaller components? About 70% of the 1,700 lines is all Actionscript. I've got a P4 with 2 GB of RAM and Flex Builder will routinely consume 400-600MB of memory while I'm working. Thanks, Jacob -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Coldfusion Flex Beginner
Have your ColdFusion WebService return an Array of Structs. In you Flex code on the result event handler for the WebService operation take the event.result and will a line like this create your ArrayCollection. myArrayCollection = event.result as ArrayCollection; Then bind the myArrayCollection to the dataProvider of the DataGrid. Roughly something like: mx:WebService id=wsSomeService wsdl=http://localhost:8500/com/renaun/SomeService.cfc?wsdl; useProxy=false showBusyCursor=true mx:operation name=getItems result=dpItems = event.result as ArrayCollection;/ /mx:WebService mx:DataGrid dataProvider={ dpItems } / Renaun --- In flexcoders@yahoogroups.com, Dale Fraser [EMAIL PROTECTED] wrote: Hi, I'm a real beginner, and know CF inside out. So I want to use Flex 2. I've read a bit online and got a webservice call working displaying the current time from a cfc. Now I have a cfc generated using the wizard which is a database related one, not sure what to do from here. I seems to generate an array of objects, and each object defines a row in the table, this all makes sense. But how do get this into a flex data grid. I assume I need to loop over the array and populate the data grid using an Action Script function. Conceptually simple, but I'm hoping people can explain the best way to do this and perhaps post a simple sample that takes a table into a data grid. PS: I'd rather not use the full generate wizards available, I'd rather learn how to do it line by line on the Flex side. Regards Dale Fraser http://dale.fraser.id.au/ http://dale.fraser.id.au -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Blitz XRay
Thanks, that is what I thought, just got confused with the talk of Flex connector. Any plans for a AS3 connnector? --- In flexcoders@yahoogroups.com, John Grden [EMAIL PROTECTED] wrote: Sorry, it doesn't support AS3 yet. 1.6 connector is for AS2 applications only. The Xray interface that communicates with that connector is a Flex2 application however. On 8/24/06, Renaun Erickson [EMAIL PROTECTED] wrote: Would be less confusing if the OSFlash site stated it supported AS3. How do you put the connector directly into a Flex2 application? Do you have the SWC or AS source code for the connector? Thanks for the info, --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, John Grden neoriley@ wrote: Yes, click on the link for the 1.6 version: http://mirror1.cvsdude.com/trac/osflash/xray/browser/downloads/connector/xray_conn_1.6.mxp?format=raw On 8/24/06, Renaun Erickson renaun@ wrote: The connectors link shows: Connectors (8.11.2006) * Latest component package for AS2 (xray_conn_1.6.mxp) * Latest component package for AS1 (xray_component_as1.mxp) * Connector-only package for MTASC, SFWMill, etc. * Connector Only Tutorial (Tutorial in French) Is there a AS3 connector? -- [ JPG ] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Blitz XRay
--- In flexcoders@yahoogroups.com, John Grden [EMAIL PROTECTED] wrote: LOL yep! man, lately, that's all I've been hearing about...guess I should get on it ;) On 8/25/06, Renaun Erickson [EMAIL PROTECTED] wrote: Lol, good luck :) Thanks, that is what I thought, just got confused with the talk of Flex connector. Any plans for a AS3 connnector? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, John Grden neoriley@ wrote: Sorry, it doesn't support AS3 yet. 1.6 connector is for AS2 applications only. The Xray interface that communicates with that connector is a Flex2 application however. On 8/24/06, Renaun Erickson renaun@ wrote: Would be less confusing if the OSFlash site stated it supported AS3. How do you put the connector directly into a Flex2 application? Do you have the SWC or AS source code for the connector? Thanks for the info, --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com, John Grden neoriley@ wrote: Yes, click on the link for the 1.6 version: http://mirror1.cvsdude.com/trac/osflash/xray/browser/downloads/connector/xray_conn_1.6.mxp?format=raw On 8/24/06, Renaun Erickson renaun@ wrote: The connectors link shows: Connectors (8.11.2006) * Latest component package for AS2 (xray_conn_1.6.mxp) * Latest component package for AS1 (xray_component_as1.mxp) * Connector-only package for MTASC, SFWMill, etc. * Connector Only Tutorial (Tutorial in French) Is there a AS3 connector? -- [ JPG ] -- [ JPG ] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Blitz XRay
The connectors link shows: Connectors (8.11.2006) * Latest component package for AS2 (xray_conn_1.6.mxp) * Latest component package for AS1 (xray_component_as1.mxp) * Connector-only package for MTASC, SFWMill, etc. * Connector Only Tutorial (Tutorial in French) Is there a AS3 connector? --- In flexcoders@yahoogroups.com, John Grden [EMAIL PROTECTED] wrote: http://www.osflash.org/xray#connectors_8.11.2006 Let mek now if you have any questions JPG On 8/24/06, Chad Callahan [EMAIL PROTECTED] wrote: I was looking at http://osflash.org/xray for the XRay connector for Flex2 but couldn't find any downloads or links to it. If anyone knows where to download the connector for Flex2, please email me a link. Thanks CHAD CALLAHAN PROGRAMMER T8DESIGN.COM | P 319.266.7574 - x195 | 877.T8IDEAS | F 888.290.4675 This e-mail, including attachments, is covered by the Electronic Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential, and may be legally privileged. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, or copying of this communication is strictly prohibited. Please reply to the sender that you have received the message in error, and then please delete it. Thank you. -- -- [ JPG ] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Blitz XRay
Would be less confusing if the OSFlash site stated it supported AS3. How do you put the connector directly into a Flex2 application? Do you have the SWC or AS source code for the connector? Thanks for the info, --- In flexcoders@yahoogroups.com, John Grden [EMAIL PROTECTED] wrote: Yes, click on the link for the 1.6 version: http://mirror1.cvsdude.com/trac/osflash/xray/browser/downloads/connector/xray_conn_1.6.mxp?format=raw On 8/24/06, Renaun Erickson [EMAIL PROTECTED] wrote: The connectors link shows: Connectors (8.11.2006) * Latest component package for AS2 (xray_conn_1.6.mxp) * Latest component package for AS1 (xray_component_as1.mxp) * Connector-only package for MTASC, SFWMill, etc. * Connector Only Tutorial (Tutorial in French) Is there a AS3 connector? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: AMFPHP: Mapping date objects between PHP and Flex
Oriol, My example is a little misleading, I will have to update it. The issue at hand is a limitation of PHP. You have to handle the manual conversion your self and your method below is a perfect fit. As far as the 1000 issue it is related to Flash date. Flash dates are mapped to Unix timestamps multiplied by 1000; in addition, no timezone information is available in these dates, which can cause errors especially if you are using the DateChooser component. Renaun --- In flexcoders@yahoogroups.com, Oriol Gual [EMAIL PROTECTED] wrote: Hi, I had the same problem, I always got a Coercion error, and my solution was to implement the getter and setter for the date var: private var _date : Date; public function get date():Date { return _date; } public function set date(value:*):void { _date = new Date(value); } I'm also using unix timestamps to send the values, but I've noticed a weird behaivour: Went sending dates to Flex, I have to multiply the timestampy by 1000, and when receiveing from Flex, divide it also by 1000. If not, the date is not the same. Anyone knows why? Oriol. 2006/8/21, Marcelo de Moraes Serpa [EMAIL PROTECTED]: Hmm.. I haven´t ran the login sample app. For dates, I always used unix timestamps and converted the timestamp to string on the server before returning it to flash. For my purposes it always worked well as I never had to do any date math on the client side. Take a look at this page: http://www.amfphp.org/docs/datatypes.html and note the DateWrapper class... maybe it could solve your problem? Marcelo. On 8/21/06, Stefan Schmalhaus [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Marcelo de Moraes Serpa celoserpa@ wrote: If you´re using RemoteObjectAMF0, just take a look at the samples Renaun provides. Yes, I'm using Renaun's RemoteObjectAMF0. But in the sample he provides the date mapping doesn't work either. The published date column is empty! http://renaun.com/blog/2006/07/26/71/ Take a look at comment #23! -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: AMFPHP: Mapping date objects between PHP and Flex
Ask the people that created Flash (the Date class), maybe they have a good reason for it. Renaun --- In flexcoders@yahoogroups.com, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote: And why dates are multiplied by 1000? That´s a good question :) Marcelo. On 8/21/06, Oriol Gual [EMAIL PROTECTED] wrote: And why dates are multiplied by 1000? 2006/8/21, Renaun Erickson [EMAIL PROTECTED]: Oriol, My example is a little misleading, I will have to update it. The issue at hand is a limitation of PHP. You have to handle the manual conversion your self and your method below is a perfect fit. As far as the 1000 issue it is related to Flash date. Flash dates are mapped to Unix timestamps multiplied by 1000; in addition, no timezone information is available in these dates, which can cause errors especially if you are using the DateChooser component. Renaun --- In flexcoders@yahoogroups.com, Oriol Gual oriol.gual@ wrote: Hi, I had the same problem, I always got a Coercion error, and my solution was to implement the getter and setter for the date var: private var _date : Date; public function get date():Date { return _date; } public function set date(value:*):void { _date = new Date(value); } I'm also using unix timestamps to send the values, but I've noticed a weird behaivour: Went sending dates to Flex, I have to multiply the timestampy by 1000, and when receiveing from Flex, divide it also by 1000. If not, the date is not the same. Anyone knows why? Oriol. 2006/8/21, Marcelo de Moraes Serpa celoserpa@: Hmm.. I haven´t ran the login sample app. For dates, I always used unix timestamps and converted the timestamp to string on the server before returning it to flash. For my purposes it always worked well as I never had to do any date math on the client side. Take a look at this page: http://www.amfphp.org/docs/datatypes.html and note the DateWrapper class... maybe it could solve your problem? Marcelo. On 8/21/06, Stefan Schmalhaus stefan@ wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Marcelo de Moraes Serpa celoserpa@ wrote: If you´re using RemoteObjectAMF0, just take a look at the samples Renaun provides. Yes, I'm using Renaun's RemoteObjectAMF0. But in the sample he provides the date mapping doesn't work either. The published date column is empty! http://renaun.com/blog/2006/07/26/71/ Take a look at comment #23! -- 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 http://groups.yahoo.com/group/flexcoders/ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Want to create paint application
Jesse Warden has some example of drawing in Flex2/AS3 on his blog: http://www.jessewarden.com/archives/2005/10/as3_chronicles.html There's not going to be an example just like MS but the idea of painting in Flash is pretty standard you just have to put all the pieces together and spend the time to make it work. --- In flexcoders@yahoogroups.com, jeremyrichman [EMAIL PROTECTED] wrote: I want to create a Flex 2 application that is similar to a standard paint application (e.g. the old MS Paint program), allowing placement of circles, rectangles, text, borders, color-fill, etc. with the usual palette of tools. I'm a brand newbie at Flex 2 and was hoping someone might have already done something like this so I could look at their work and learn from that. Does anyone or know of something like this? Jeremy -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: MediaPlayback for Flex 2
Name change VideoDisplay now. http://livedocs.macromedia.com/flex/2/langref/mx/controls/VideoDisplay.html --- In flexcoders@yahoogroups.com, Bruno Martins [EMAIL PROTECTED] wrote: Any one know where I can find it? Tks.. -- Bruno Gustavo Martins Office: (11)3443-9527 experience everywhere http://www.dclick.com.br/blog -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Schema files for mxmlc and compc config files
Have you tried: mxmlc -help list mxmlc -help advanced mxmlc -help syntax mxmlc -help aliases mxmlc -help details You can find alot of information from the executables themselves. Renaun --- In flexcoders@yahoogroups.com, Lance Linder [EMAIL PROTECTED] wrote: Anyone know where I could get schema files for the config files for both the mxmlc and compc compilers? As I do more and more build scripts for Flex2 apps these schema files sure would help! Thanks, Lance -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [Junk E-Mail - MED] [flexcoders] Binding array to repeater
To use ArrayCollection it will look like this: import mx.collections.ArrayCollection; [Bindable] public var arrMdta:ArrayCollection; private function init():void { var myArray:Array = new Array(); for(var i:Number = 1; i 100; i++) { var filePath:String = assets/image; if(i.toString().length == 1) filePath += 00; if(i.toString().length == 2) filePath += 0; filePath += i.toString() + .jpg; myArray.push(new Mdta(filePath)); } arrMdta = new ArrayCollection( myArray ); } Renaun --- In flexcoders@yahoogroups.com, Jonas Windey [EMAIL PROTECTED] wrote: Hmm, nope. This is what I tried import mx.collections.ArrayCollection; [Bindable] public var arrMdta:Array = new Array(); private function init():void { for(var i:Number = 1; i 100; i++) { var filePath:String = assets/image; if(i.toString().length == 1) filePath += 00; if(i.toString().length == 2) filePath += 0; filePath += i.toString() + .jpg; arrMdta.push(new Mdta(filePath)); } } And in mxml mx:ArrayCollection id=acGallery source={arrMdta} / Repeater: mx:Repeater id=rptGallery dataProvider={acGallery} ui:thumb imagePath={rptGallery.currentItem.fileName} / /mx:Repeater No luck, now I don't have any items. _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Shannon Hicks Sent: donderdag 3 augustus 2006 16:02 To: flexcoders@yahoogroups.com Subject: RE: [Junk E-Mail - MED] [flexcoders] Binding array to repeater Close... that's the point of binding to an ArrayCollection... make arrMdta into an ArrayCollection instead, and it'll work great. Shan _ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jonas Windey Sent: Thursday, August 03, 2006 8:42 AM To: flexcoders@yahoogroups.com Subject: [Junk E-Mail - MED] [flexcoders] Binding array to repeater Hi, I have a repeater with a thumbnail in it. Code: mx:Repeater id=rptGallery dataProvider={arrMdta} ui:thumb imagePath={Mdta(rptGallery.currentItem).fileName} / /mx:Repeater In my script I have [Bindable] public var arrMdta:Array = [new Mdta(assets/image001.jpg)]; So far so good, I see my image (inside my thumb component there's an mx:image, nothing fancy Now the harder part, I try to bind the repeater to the array (as I'm doing here, but when I change my array, it doesn't get updated automatically. In my applicationComplete, I call function init(); private function init():void { for(var i:Number = 1; i 100; i++) { var filePath:String = assets/image; if(i.toString().length == 1) filePath += 00; // just because images have filenames image001.jpg, etc if(i.toString().length == 2) filePath += 0; filePath += i.toString() + .jpg; arrMdta.push(new Mdta(filePath)); } } This doesn't work, only when I put the following line: rptGallery.dataProvider = arrMdta; Why is it only working if I re-force the dataProvider? I thought that was the point of binding my data? Thanks for any help, Jonas Jonas Windey Web Developer T. +32 3 216 86 47 Pixco Interactive Division T. +32 3 216 86 40 F. +32 3 216 86 49 http://www.pixco. http://www.pixco.com com -- No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.10.5/406 - Release Date: 8/2/2006 -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.10.5/406 - Release Date: 8/2/2006 __ NOD32 1.1690 (20060803) Information __ This message was checked by NOD32 antivirus system. http://www.eset.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/ * 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: Array parameters fail with Webservices
Get a HTTP traffic sniffer like ServiceCapture and see how the request is going out. It looks to be an issue on the WebService side or you are making a call to an invalid WSDL or WebService file. You need to look into the WebService side of things. Renaun --- In flexcoders@yahoogroups.com, kaleb_pederson [EMAIL PROTECTED] wrote: Thanks for the suggestion. I tried: // variation five ws.sendStrings(One,Two,Three); // variation six ws.sendStrings(new Array(One,Two,Three)); Both of the above result in the exact same empty SOAP message being generated. Any other ideas? Given the number of variations that I have tried, I'm beginning to wonder if this is a bug? Thanks for the help. --Kaleb --- In flexcoders@yahoogroups.com, Renaun Erickson renaun@ wrote: Try: ws.sendStrings(One,Two,Three); Which should make the call with 3 distinct parameters. Renaun --- In flexcoders@yahoogroups.com, kaleb_pederson kibab@ wrote: I'm using a webservice that requires that an array of strings be passed to one function. Each method that I have tried to send array parameters fails. By fails, I mean the request is successfully sent to the server but the parameter list is empty and thus the response isn't valid for the request that I'm attempting to make. Here are the variations that I have tried: ws = new mx.rpc.soap.mxml.WebService(); ws.loadWSDL(http://192.168.1.108:8080/stockquotes/stock_quote?wsdl;); // waits for loadWSDL to finish // variation one var op:Object = ws.getOperation(sendStrings); op.arguments = new Array(One,Two,Three); op.send(); // variation two ws.sendStrings.arguments = new Array(One,Two,Three); ws.sendStrings.send(); // variation three ws.sendStrings.send(new Array(One,Two,Three)); // variation four ws.sendStrings.send(One,Two,Three); The request that's made looks like the following (less formatting): ?xml version=1.0 encoding=utf-8? SOAP-ENV:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; SOAP-ENV:Body ns1:sendStrings xmlns:ns1=http://server.webservices.tutorials.wakaleo.com/; / /SOAP-ENV:Body /SOAP-ENV:Envelope The response that comes back looks like the following: ?xml version=1.0 ? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:ns1=http://server.webservices.tutorials.wakaleo.com/; soapenv:Header xmlns:wsa=http://www.w3.org/2005/08/addressing; /soapenv:Header soapenv:Body ns1:sendStringsResponse/ns1:sendStringsResponse /soapenv:Body /soapenv:Envelope The XSD shows the following input specification: xs:complexType name=sendStrings xs:sequence xs:element name=arg0 type=xs:string maxOccurs=unbounded minOccurs=0/ /xs:sequence /xs:complexType I also tried using MXML without any success. See the following for details: http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=585threadid=1176598#4215452 Any thoughts? Am I missing something obvious? I can give you more information, including the complete WSDL, so please let me know if there is anything else that would be useful. Thanks. --Kaleb -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: How to streaming video with VideoDisplay component?
To do live streaming you need a FMS server. Technically the FLV by it self is a progressive streaming format. Just use VideoDisplay and set the source attribute with a url to the FLV be it on a normal server or on a FMS server over rtmp. Renaun --- In flexcoders@yahoogroups.com, user_abcxyz [EMAIL PROTECTED] wrote: Can you give me an example? Thank you -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: reset forms
I wrote an AdvancedForm component that might help. http://renaun.com/blog/flex-components/comp-advancedform Renaun --- In flexcoders@yahoogroups.com, arnold_charming [EMAIL PROTECTED] wrote: Hi! How to reset input forms when a user returns to a screen where he has already been? By default all previous typed text is shown in input boxes. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Cairngorm: Managing Application State
The main thing here is if you use Views with ViewHelpers you should have those as separate views and not use mx:States. States in my preception are more for UI changes within a view then what the switching containers or larger sets of UI. Now this is not to say you can use the States for changing containers like that of the ViewStack, it just seems its not the purpose of it. From the livedocs: The State class defines a view state, a particular view of a component. For example, a product thumbnail could have two view states; a base view state with minimal information, and a rich view state with additional information. More reading: http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=0923.html#321190 Renaun --- In flexcoders@yahoogroups.com, christophers1228 [EMAIL PROTECTED] wrote: Thanks for the input. Maybe I've been misunderstanding the way to use them from the beginning. ( very possible ) Let me give a better example, to make sure i'm not way out in left field. This is a typical way I manage the state. viewstack selectedIndex={ModelLocator.workflowState} view:Something view:SomethingElse view:AnotherThing /viewstack Model: public static var workflowState:Number = 0; public static var VIEWING_SOMETHING:Number = 0; public static var VIEWING_SOMETHING_ELSE:Number = 1; public static var VIEWING_ANOTHER_THING:Number = 2; Inside of a view: mx:Button click=ModelLocator.workflowState = ModelLocator.VIEWING_SOMETHING / it seems like this should accomplish the same thing: mx:States mx:State name=Something mx:AddChild position=lastChild view:Something id=somethingView / /mx:AddChild /mx:State mx:State name=SomethingElse mx:AddChild position=lastChild view:SomethingElse id=somethingElseView / /mx:AddChild /mx:State mx:State name=AnotherThing mx:AddChild position=lastChild view:AnotherThing id=anotherThingView / /mx:AddChild /mx:State /mx:States Inside of a view: mx:Button click=this.setCurrentState('SomethingElse')/ I have noticed in messing around with it, that maybe you could bind the current state to the model and change from a number to a string. sorry for the long post, just trying to learn something :) Thanks, Chris --- In flexcoders@yahoogroups.com, Renaun Erickson renaun@ wrote: The states as used in Cairngorm will not correlate with the mx:states in Flex 2. The serve different purposes. Well let me step back and say, this is how I feel about it. Flex 2 states are good for view/control states where Cairngorm workflow states are just that work/process flow. Thats not to say you can't have an attribute on the Cairngorm model to facilitate something you are trying to do with mx:states Renaun --- In flexcoders@yahoogroups.com, christophers1228 chris.sharon@ wrote: Hello, I've been using cairngorm for about a year now (flex 1.5) and I just started some projects using flex 2. (I have to admit I've been using and still trying to understand at the same time :) ) I was just wondering, how do the new view states in flex2 fit in with managing the state in the model. i.e. ModelLocator.workflowState = ModelLocator.VIEWING_SOMETHING; vs. mx:State name=ViewingSomething I just got to the point were I was pretty comfortable with the flow of cairngorm (it's taught me alot about architecture) I'm just wondering how to fit some of the new features of flex2 in. Any ideas? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Serverside FLV conversion?
On2 Flix Engine http://www.on2.com/developer/flix-engine-sdk/ There are other transcoding services or boxes that people sale. I think ffmpeg is also used to encode FLV its open source but will take some configuration to make it work as you want. Renaun --- In flexcoders@yahoogroups.com, Rick Schmitty [EMAIL PROTECTED] wrote: Are there any tools out there that will let users submit mpeg/avi/wmv through a form and have a server component convert into flv for use with Flex apps? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Array parameters fail with Webservices
Try: ws.sendStrings(One,Two,Three); Which should make the call with 3 distinct parameters. Renaun --- In flexcoders@yahoogroups.com, kaleb_pederson [EMAIL PROTECTED] wrote: I'm using a webservice that requires that an array of strings be passed to one function. Each method that I have tried to send array parameters fails. By fails, I mean the request is successfully sent to the server but the parameter list is empty and thus the response isn't valid for the request that I'm attempting to make. Here are the variations that I have tried: ws = new mx.rpc.soap.mxml.WebService(); ws.loadWSDL(http://192.168.1.108:8080/stockquotes/stock_quote?wsdl;); // waits for loadWSDL to finish // variation one var op:Object = ws.getOperation(sendStrings); op.arguments = new Array(One,Two,Three); op.send(); // variation two ws.sendStrings.arguments = new Array(One,Two,Three); ws.sendStrings.send(); // variation three ws.sendStrings.send(new Array(One,Two,Three)); // variation four ws.sendStrings.send(One,Two,Three); The request that's made looks like the following (less formatting): ?xml version=1.0 encoding=utf-8? SOAP-ENV:Envelope xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; SOAP-ENV:Body ns1:sendStrings xmlns:ns1=http://server.webservices.tutorials.wakaleo.com/; / /SOAP-ENV:Body /SOAP-ENV:Envelope The response that comes back looks like the following: ?xml version=1.0 ? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:ns1=http://server.webservices.tutorials.wakaleo.com/; soapenv:Header xmlns:wsa=http://www.w3.org/2005/08/addressing; /soapenv:Header soapenv:Body ns1:sendStringsResponse/ns1:sendStringsResponse /soapenv:Body /soapenv:Envelope The XSD shows the following input specification: xs:complexType name=sendStrings xs:sequence xs:element name=arg0 type=xs:string maxOccurs=unbounded minOccurs=0/ /xs:sequence /xs:complexType I also tried using MXML without any success. See the following for details: http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=585threadid=1176598#4215452 Any thoughts? Am I missing something obvious? I can give you more information, including the complete WSDL, so please let me know if there is anything else that would be useful. Thanks. --Kaleb -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: [Flex 2/Flex Builder 2] Viewing Source for certain files fails
I do know not all the classes are in the source. You can find the source files (at least with a standard install of the standalone Flex Builder 2 on windows) here: C:\Program Files\Adobe\Flex Builder 2\Flex SDK 2\frameworks\source I did find mx.containers.utilityClasses.CanvasLayout.as so I am not sure why it does not show up. Renaun --- In flexcoders@yahoogroups.com, astgtciv [EMAIL PROTECTED] wrote: I love the source view feature in Flex Builder 2 (click on a class name, hit F3, and you are looking at the source). This is probably because I got used to it during my Eclipse/Java days... ;) It seems, however, that at least for some classes this feature does not work. E.g., it works perfectly well for mx.containers.Canvas, but not for mx.containers.utilityClasses.CanvasLayout. The file is there, the source is attached, I can (of course) open the file separately. But the F3-Source View doesn't work for it... any reason? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Cairngorm user interaction best practices
I believe either will work. Book are tied to the datagrid through selectedItem or selectedIndex. More than not if you are going to want a reference to the selected item of a collection outside of the encapsulated View/ViewHelper you would add another attribute to the model and set the selected object there. That way the view does the setting of the selected item that might be bound to some arbitrary place in the app. You do not want to try and manipulate the selectedItem directly through the DataGrid so if you are just reading it doesn't matter, but if you are changing the data you will want to use the Collection API to manipulate the data. Hope that helps, Renaun --- In flexcoders@yahoogroups.com, Mike Britton [EMAIL PROTECTED] wrote: I have a problem that's slowly eating away my soul. I've returned a value object and populated a DataGrid. Now, suppose I want to access the value when the user clicks on the grid. In terms of best practices and assuming a public member of the value object is an ArrayCollection called books, should I access the value through the grid itself (i.e. myDataGrid.selectedItem.bookID) or from the model: var myCollection:ArrayCollection = new ArrayCollection(); myCollection = model.books; var myValue:String = myCollection.getItemAt(myDataGrid.selectedIndex).name; lblBook.text = myValue; In AS2 I would have used the grid's data property, but in Flex2/Cairngorm my instinct is to avoid this. Thanks in Advance, Mike Britton -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Cairngorm: Managing Application State
The states as used in Cairngorm will not correlate with the mx:states in Flex 2. The serve different purposes. Well let me step back and say, this is how I feel about it. Flex 2 states are good for view/control states where Cairngorm workflow states are just that work/process flow. Thats not to say you can't have an attribute on the Cairngorm model to facilitate something you are trying to do with mx:states Renaun --- In flexcoders@yahoogroups.com, christophers1228 [EMAIL PROTECTED] wrote: Hello, I've been using cairngorm for about a year now (flex 1.5) and I just started some projects using flex 2. (I have to admit I've been using and still trying to understand at the same time :) ) I was just wondering, how do the new view states in flex2 fit in with managing the state in the model. i.e. ModelLocator.workflowState = ModelLocator.VIEWING_SOMETHING; vs. mx:State name=ViewingSomething I just got to the point were I was pretty comfortable with the flow of cairngorm (it's taught me alot about architecture) I'm just wondering how to fit some of the new features of flex2 in. Any ideas? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Not getting code hinting for Cairngorm types
Seems to work for me. For example, in a the script tag of an applicaiton tag I typed in: var fc:FrontController = new FrontController(); fc. When I hit CTRL-Space at the fc. I get the code hinting, you'll addCommand in the code hinting which is a public method on the FrontController. Renaun http://renaun.com --- In flexcoders@yahoogroups.com, jrjazzman23 [EMAIL PROTECTED] wrote: We're not getting code hinting for Cairngorm types in FB2. I'm only referencing the swc file. Do we need the source in order to get code hinting? thanks -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: rotation on mx:Text?
It worked for me, I tried the rotation attribute and the Rotate effect. ?xml version=1.0 encoding=utf-8? !-- Simple example to demonstrate the Rotate effect. -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; initialize=Font.registerFont(arial_font); mx:Script ![CDATA[ import flash.text.Font; [Embed(assets/ARIAL.TTF, fontName=MyArial)] public var arial_font:Class; [Bindable] public var angle:int=0; private function rotateImage():void { rotate.end(); angle += 45; rotate.play(); } ]] /mx:Script mx:Rotate id=rotate angleFrom={angle-45} angleTo={angle} target={myVB}/ mx:Panel title=Rotate Effect Example horizontalAlign=center width=75% height=75% layout=horizontal paddingTop=5 paddingLeft=10 paddingRight=10 paddingBottom=5 mx:VBox id=myVB width=50% horizontalAlign=center mx:Label text=Nokia 9930 fontFamily=MyArial fontSize=14 rotation=90/ mx:Image id=img source=@Embed(source='images/arrowBlue.png')/ /mx:VBox mx:Text width=50% color=blue text=Click the button to rotate the image 45 degrees. Use an embedded font when applying the Rotate effect to text./ mx:ControlBar mx:Button label=Rotate 45 Degrees click=rotateImage();/ /mx:ControlBar /mx:Panel /mx:Application Renaun http://renaun.com --- In flexcoders@yahoogroups.com, Shannon Hicks [EMAIL PROTECTED] wrote: I can't seem to get rotation to work properly for mx:Text (or any other object that has text in it, including containers with text objects in them). I have followed Adobe's advice, and embedded a font. That allows me to rotate text 0-90 degrees clockwise, but anything over 90 degrees, or anything counter-clockwise makes the text disappear. Here's some code: mx:Script ![CDATA[ [Embed(systemFont='Arial', fontName='myArial', mimeType='application/x-font')] public var arial:Class; ]] /mx:Script mx:Label text={fishHead.currentItem.fishName} fontFamily=myArial rotation=90/ Any suggestions? Shan -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.394 / Virus Database: 268.10.4/402 - Release Date: 7/27/2006 -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex AMFPHP and VOs
Stefan, The RemoteObjectAMF0 source and sample code have just been updated to reflect the latest Cairngorm, which you can get off the labs.adobe.com site. Have fun, Renaun --- In flexcoders@yahoogroups.com, Stefan Schmalhaus [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Renaun Erickson renaun@ wrote: I have updated the RemoteObjectAMF0 examples to demonstrate it working with out the error. Thank you very much. I successfully tested your example. Just two things: 1. Since you use the old org.nevis namespace for the Cairngorm package I assume this is an older Cairngorm version. I tried to replace your Cairngorm package with the current com.adobe Cairngorm implementation but then your example stopped working (although I added getRPCService() to the Cairngorm ServiceLocator). 2. Another thing that confused me was the fact that the VOs reside in two different places: org.nevis.cairngorm.samples.login.vo.LoginVO.as com.renaun.samples.vo.BookVO.as I guess these are typical complaints from a newbie. ;-) So no offense here. I'm grateful that you share your knowledge with us! Stefan -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Google Analytics and Flex
Yes Rogerio, if they have javascript to record specific analytic moments in time, you should be able to do that with Flex-Javascript normal interaction. I was thinking other way where you would read results into Flex. Where do I get an invite for the US, anyone know? Renaun --- In flexcoders@yahoogroups.com, Rogerio Gonzalez [EMAIL PROTECTED] wrote: In portuguese is not need invitation... only a register that will be aproved a week later. I was studing the analytics, and is pretty easy to do it. Maybe web can adapt the history system to do it for itself. But in resume, you rave do execute an javascript function on the actions you wana log. Rogerio On 7/25/06, Renaun Erickson [EMAIL PROTECTED] wrote: Google Analytics is by invitation only right now. So its kind of hard to review it. Also from the Help page. === Is there a Google Analytics API? Urchin does not currently provide an API to access the reporting data. However, we do offer export functionality for single reports in the following formats: * Tab separated (Text) * XML * Excel (CSV) This feature allows you to easily import report data into your favorite spreadsheet application or to process the data otherwise. https://adwords.google.com/support/bin/answer.py?answer=27257topic=8133 You would have to export it manually and then use some WebService on the backend to deliver it to Flex. Renaun --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Corey whoop76@ wrote: Does anyone have an example of how to hook Google Analytics into a Flex Application. I am interested in using Google Analytics to track the sales on a Flex application. Thanks, COREY -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex AMFPHP and VOs
Yes, this was original a beta package. I will change everything over to work with the latest release Cairngorm2 and make the sample more logical in how it is organized. Renaun --- In flexcoders@yahoogroups.com, Stefan Schmalhaus [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Renaun Erickson renaun@ wrote: I have updated the RemoteObjectAMF0 examples to demonstrate it working with out the error. Thank you very much. I successfully tested your example. Just two things: 1. Since you use the old org.nevis namespace for the Cairngorm package I assume this is an older Cairngorm version. I tried to replace your Cairngorm package with the current com.adobe Cairngorm implementation but then your example stopped working (although I added getRPCService() to the Cairngorm ServiceLocator). 2. Another thing that confused me was the fact that the VOs reside in two different places: org.nevis.cairngorm.samples.login.vo.LoginVO.as com.renaun.samples.vo.BookVO.as I guess these are typical complaints from a newbie. ;-) So no offense here. I'm grateful that you share your knowledge with us! Stefan Yahoo! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/WktRrD/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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex AMFPHP and VOs
I have updated the RemoteObjectAMF0 with samples of how to do the AMFPHP and VO's. Example Using Cairngorm: http://www.renaun.com/flex2/CairngormAMFPHPExample/CairngormAMFPHPExample2.html Example With Out Using Cairngorm: http://www.renaun.com/flex2/CairngormAMFPHPExample/RemoteObjectAMF0Sample.html You can find the source here: http://www.renaun.com/flex2/CairngormAMFPHPExample/srcview/ Thanks Robert for the partial code. Renaun Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/SktRrD/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Cairngorm AMFPHP - List of VO Instances
You can take 2 approaches on the Array of VO's. First approach is to create the array of VO's in PHP instead of passing back a PHP resultset. The other option is to put the returned PHP resultset through a Factory AS object and create teh Array of VO's on the Flex/AS side. You can pass Array of Typed PHP objects from PHP to Flex through AMFPHP which might be you best bet. It's somewhat personal perference and just how you want to make it consistent (ie: All Factory logic in PHP or AS). Renaun --- In flexcoders@yahoogroups.com, Stefan Schmalhaus [EMAIL PROTECTED] wrote: I have two very basic questions regarding lists of VOs in Cairngorm. I'm using AMFPHP to retreive data from a MySQL database. A usual method looks like this (PHP): - function getUsers() { $query = SELECT uid,username,password,email FROM users; $result = mysql_query($query); while ($row = mysql_fetch_object($result)) { $arrayOfUsers[] = $row; } return($arrayOfUsers); } - Everything works fine, the data is stored as an array in the ModelLocator (model.users), and I use DataBinding to populate a DataGrid. But I learned from Steven Webster's excellent 6-part article series that it is good practice to store information as VOs or as a list of VOs (in his example it's the list of the product's in a customer's shopping cart). Question 1: How do I convert my array into a list of VOs? Or is my array already a list of VOs? Question 2: Let's say I want to use the same array (model.users) as a dataProvider for a ComboBox component somewhere else in the application. I can set up DataBinding for the ComboBox like I did with the DataGrid. But the ComboBox needs a data and a label field. I can set the label field to username with the labelField property, but how do I set the data field? I want the uid field from my SQL query to be the data field in the ComboBox. - Or am I supposed to use an SQL statement like this SELECT uid,uid AS data,username, password, email FROM users? Thanks in advance. Stefan Schmalhaus Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/SktRrD/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: SWF Volume
If you are using the mx.controls.VideoDisplay you would use: var myVideo:VideoDisplay = new VideoDisplay(); myVideo.source = some.flv; myVideo.volume = 50; myVideo.play(); or mx:VideoDisplay id=myVid height=158 width=211 source=assets/phone.flv autoPlay=false volume=50/ Renaun --- In flexcoders@yahoogroups.com, franto [EMAIL PROTECTED] wrote: I have problem to set volume on streamed FLV from net... does someone know how can i do that? Thank for your help Franto On 7/21/06, flexnewbie06 [EMAIL PROTECTED] wrote: I did see that example, but got confused because the sound in my swf is included in the swf not seperate. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, JesterXL jesterxl@ wrote: Bottom of the page there is an example: http://livedocs.macromedia.com/flex/2/langref/flash/media/SoundTransfo rm.html - Original Message - From: flexnewbie06 flexnewbie06@ To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Sent: Friday, July 21, 2006 9:08 AM Subject: [flexcoders] SWF Volume Can anyone point me the direction on how to control the volume in my swf, loaded with swfloader? Would I use SoundTransform class? Any suggestions are always appreciated! thanks Jenn -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%http://www.mail-archive.com/flexcoders%25 40yahoogroups.com Yahoo! Groups Links -- - Franto http://blog.franto.com http://www.flashcoders.sk -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Cairngorm AMFPHP - List of VO Instances
A simple way to do in the Flex/AS side is in the VO with a static function. So for a UserVO factory you would have something like this. public static function CreateUserVO( results:Array ):Array { var newArray:Array = new Array(); for( var i:int = 0; i results.length; i++ ) { var obj:UserVO = new UserVO(); obj.name = results[ i ]; etc newArray[ i ] = obj; } return newArray; } This is quick but there its a simple Factory approach. Renaun --- In flexcoders@yahoogroups.com, Stefan Schmalhaus [EMAIL PROTECTED] wrote: It's somewhat personal perference and just how you want to make it consistent (ie: All Factory logic in PHP or AS). Ok, so this basically means if I do it all on the PHP side I have to set up a PHP VO class for each VO that exists on the Flex/AS side. If I want to do it on the Flex/AS side, where would the factory logic fit in with the Cairngorm framework? Is it part of the Command Class (while or before the model is updated)? Stefan Yahoo! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/WktRrD/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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex AMFPHP and VOs
I have updated the RemoteObjectAMF0 examples to demonstrate it working with out the error. The problem was that I was using the old registerClass method instead of the proper [RemoteClass(alias=com.renaun.samples.vo.BookVO)] in the BookVO.as. You can get the updated source off my blog. And a big thanks to Andi for that code tip. Renaun --- In flexcoders@yahoogroups.com, Oriol Gual [EMAIL PROTECTED] wrote: First of all, I'd like to thank you all. I tried Renaun's example, and with ServiceCapture, it is returning an array of BookVO. At this point everything seems OK. But when you receive this array, if you do something like this: var testBook : BookVO = new BookVO; testBook = BookVO(ModelLocator.getInstance().books[0]); It will fail, because the objects inside the array collection aren't BookVO's, they are Objects: TypeError: Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] com.renaun.samples.vo.BookVO. And the same happens with your example Andi. Then, my question is, can anyone do this without the coercion error, and, without extra functions to map it? Thanks, Oriol. 2006/7/25, Renaun Erickson [EMAIL PROTECTED]: I have updated the RemoteObjectAMF0 with samples of how to do the AMFPHP and VO's. Example Using Cairngorm: http://www.renaun.com/flex2/CairngormAMFPHPExample/CairngormAMFPHPExample2.html Example With Out Using Cairngorm: http://www.renaun.com/flex2/CairngormAMFPHPExample/RemoteObjectAMF0Sample.html You can find the source here: http://www.renaun.com/flex2/CairngormAMFPHPExample/srcview/ Thanks Robert for the partial code. Renaun -- 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 Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/TktRrD/gOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex AMFPHP and VOs
Andi, The Cairngorm 2 that is packaged in it was from their second 2 release, and I had to add the getRPCService myself also. I need to go back and include just the SWC or have people download it separate. As for the AbstractService and namespace usage, it is a more cleaner approach and I'll incorporate it. To tell you the truth haven't had much time to use the RemoteObjectAMF0, it was a class I wrote months ago back in beta and things where not solidified back then. Again thanks for all the updates and I'll incorporate them into the source, Please pass along any examples of the usage of the RemoteObjectAMF0, I am interested in how it is being used. Renaun --- In flexcoders@yahoogroups.com, Andrea Varga [EMAIL PROTECTED] wrote: Hi You're right, it works perfect! Sorry about the other comment. I'm kinda surprised and happy, is this the same that you sent to me? Thanks Oriol. Yes, the code is exactly the same, I have just added that Label to show you that the casting works. Also, it would be great to know what differences are between yours and Renaun's, because one's working and the other not (at least for me). What changes have you done? I think the main idea is the same. Although, I don't know if he is using the advanceddsettings.php or not (it's not in the source), I couldn't make it work without setting the $outgoing array. As we are here, Renaun, I'd like to make an observation on the RemoteObjectAMF0? First of all, I would be dead without it, it's grate stuff. Many thanks for sharing. I had to change it a little bit, because in the way it was, it's not perfectly compatible with Cairngorm, you have to change the ServiceLocator.as, and add the getRPCService() method. That's because ServiceLocator's getService() returns an AbstractService but RemoteObjectAMF0 inherits Proxy. That's why I made RemoteObjectAMF0 to inherit from AbstractService (which inherits Proxy) and I had to add this line too, to get rid of some errors: use namespace flash_proxy; This way no Cairgorm code needs to be changed. I thought you might be interested in this. Or is there a good reason why you haven't used it in this way, and I'm missing something? Andi Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/SktRrD/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex AMFPHP and VOs
Yes, I have my examples working locally with PHP 5.1.1 and on my renaun.com server under PHP 4.3.x. You'll have to change the BookVO.php file to use var instead of public. You can read my post about it on my blog at http://renaun.com/blog/2006/07/25/70/. Renaun --- In flexcoders@yahoogroups.com, Stefan Schmalhaus [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Andrea Varga andi@ wrote: That works too http://www.narancs.net/flex/ClassMappingExample/ClassMappingExample.html (view source enabled) Does it work with PHP4? Stefan -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Google Analytics and Flex
Google Analytics is by invitation only right now. So its kind of hard to review it. Also from the Help page. === Is there a Google Analytics API? Urchin does not currently provide an API to access the reporting data. However, we do offer export functionality for single reports in the following formats: * Tab separated (Text) * XML * Excel (CSV) This feature allows you to easily import report data into your favorite spreadsheet application or to process the data otherwise. https://adwords.google.com/support/bin/answer.py?answer=27257topic=8133 You would have to export it manually and then use some WebService on the backend to deliver it to Flex. Renaun --- In flexcoders@yahoogroups.com, Corey [EMAIL PROTECTED] wrote: Does anyone have an example of how to hook Google Analytics into a Flex Application. I am interested in using Google Analytics to track the sales on a Flex application. Thanks, COREY -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Camera.getCamera(name:String) does not work and crashes the player
If I understand you right, you are having problems with var camera:Camera = Camera.getCamera(); for any camera? or is your issue you are trying to dynamic selected a camera? Ok, first var camera:Camera = Camera.getCamera(); works in Flex 2 for me. You can check by going to my application that uses the Camera here, http://renaun.com/flex2/BarcodeReader/BarcodeReader.html If this page crashes for you, then you know its something with your system/configuration/flash player... If it doesn't crash then it could your code. If you are trying to access camera's dynamically I am not aware of the functionality to do this. I always right-click and go into camera settings and change it manually. Good luck, Renaun --- In flexcoders@yahoogroups.com, m88e24 [EMAIL PROTECTED] wrote: Player version r15 (installed by the Flex builder install) Flex 2 final Win XP Pro SP2 (up to date) I may have multiple cameras connected to my PC and want to select the camera to use. I show a list of available cameras and uses the name to get a Camera instance. This always returned null. So I tried retrieving the default camera without an argument then use the name of that Camera instance to retrieve the same Camera instance by name. Thus to check if the fault is in the argument or the getCamera() method. This results in a player crash taking down the browser also. Very bad. var camera:Camera = Camera.getCamera(); camera = Camera.getCamera(camera.name); Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: mysql amfphp flex2 login
As for custom component exchange you find the Flex Exchnage on Adobe's site. http://www.adobe.com/cfusion/exchange/index.cfm#view=sn610 Other links: http://flex.org http://cflex.net Here is example Login code using Cairngorm, CustomRemoteAMF0 class and AMFPHP. http://renaun.com/blog/2006/06/30/54/ Enjoy, Renaun --- In flexcoders@yahoogroups.com, Impudent1 [EMAIL PROTECTED] wrote: Just to save time reinventing the wheel here. Has anyone created a multiuser amfphp service link to flex? I just need a portable multiuser login setup that I can later connect to a backend admin to control users/groups etc. Since I am sure this is not exactly new territory, I thought I would see if anyone had already knocked together something and wouldn't mind sharing :) If not, when I get something going I will post. Curious, is there a custom component website up yet? I know with after effects it was nice to put stuff up on AEnhancers and get feedback on your stuff or see what others have done. tia Impudent1 LeapFrog Productions Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Explorer-like drag drop tree
If you are using XML as the dataProvider, you should be able to put isBranch=true into the XML and it will force it to be a Branch. If you are using nested Objects and ArrayCollections as your dataProvider, you have to set the children attribute to new Array() to get it to work as a branch. Renaun --- In flexcoders@yahoogroups.com, Jonas Windey [EMAIL PROTECTED] wrote: I'm trying to create a folder-manager in flex that allows a user to move, create and delete folders. The folderstructure gets sent to the client in xml format, like this: root folder label=ftproot folder label=subfolder1 / folder label=subfolder2 / /folder folder label=ftproot2 / /root Etc. This is all working well, I get a treeview, and with some custom icons it looks exactly like the explorer in windows. The problem arrives when folders are seen as leafs instead of nodes (like every deepest folder for instance, is seen as a leaf) To enable true drag drop, every node, also the leafs, should act as a node. In explorer for instance, if you drag a folder on another folder, it is automatically seen as a subfolder. Since Flex doesn't allow items to be dragged onto a leaf, I'm having a problem here. Once every folder is on the root node for instance, it's impossible to move any folder onto another folder. Anyone with a suggestion? I suppose I'll have to create a custom itemrenderer and force every item so it 'thinks' it has childnodes, but maybe someone could give me a good direction here. Thanks Yahoo! Groups Sponsor ~-- Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex for CBT/Distance Learning
Adobe Success Story (Flex 1.5 and ColdFusion) Global Training Technologies Excerpt: Using Flex, the development team can easily tailor content to any industry. For one project, the team created a custom application for the furniture industry by rebranding an existing application. http://www.adobe.com/cfusion/showcase/index.cfm?event=casestudydetailcasestudyid=104632 --- In flexcoders@yahoogroups.com, Joel Provinsal [EMAIL PROTECTED] wrote: Hi flexcoders, I had a quick question. Most of the discussion revolving around Flex seems to be geared towards e-commerce solutions. How suited would the Flex solution be for distance learning, computer-based training? Is Flex only for charts, graphs, tables, and the consumer experience? As I look at it, it seems like it would be very well suited for CBT delivery. We are currently using a flash/HTML solution, and I feel that Flex would provide a solid framework for developing (and delivering) content in a timely manner. Can you help by providing me with solid reasoning, resources, tutorials, examples, or any other material that might halp in this research? Thank you, Joel Yahoo! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/XISQkA/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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Would Flex 2.0 RemoteObject work with Flex 1.5 AMFGateway?
You have two things here. Are you just implementing AMF with Java or ColdFusion? Are you using the Flex1.5 proxy? Flex1.5 it self doesn't do AMF per say, but it provide a proxy method so you could whitelist your RemoteObjects in the flex-config.xml. I do know if you are not using the proxy and want to connection to AMF0 type AMF gateways you need to use the NetConnection directly. AMF0 in Flex2 http://renaun.com/flex2/ (Custom RemoteObjectAMF0) http://www.code4net.com/archives/000119.html Renaun --- In flexcoders@yahoogroups.com, Dmitry Miller [EMAIL PROTECTED] wrote: Hello, I have full commercial licence for Flex 1.5. Now we are migrating to Flex 2.0 and I 've been wondering if my new implementation would work with existing AMFGateway for Flex 1.5? Thanks Yahoo! Groups Sponsor ~-- See what's inside the new Yahoo! Groups email. http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Would Flex 2.0 RemoteObject work with Flex 1.5 AMFGateway?
No, you'll want to use the new method of defining channels and destinations through flex-enterprise.xml. Sorry can't much more than that. Renaun --- In flexcoders@yahoogroups.com, Dmitry Miller [EMAIL PROTECTED] wrote: I am using Java. I was whitelisting my services before, so, I guess I was using a proxy. So, my question is the following - if I put flashgateway.jar into WEB-INF/lib directory of my Flex 2.0 web app, would I be able to use RemoteObjects with that? Thanks, --- Dmitry --- In flexcoders@yahoogroups.com, Renaun Erickson renaun@ wrote: You have two things here. Are you just implementing AMF with Java or ColdFusion? Are you using the Flex1.5 proxy? Flex1.5 it self doesn't do AMF per say, but it provide a proxy method so you could whitelist your RemoteObjects in the flex-config.xml. I do know if you are not using the proxy and want to connection to AMF0 type AMF gateways you need to use the NetConnection directly. AMF0 in Flex2 http://renaun.com/flex2/ (Custom RemoteObjectAMF0) http://www.code4net.com/archives/000119.html Renaun --- In flexcoders@yahoogroups.com, Dmitry Miller goblin77@ wrote: Hello, I have full commercial licence for Flex 1.5. Now we are migrating to Flex 2.0 and I 've been wondering if my new implementation would work with existing AMFGateway for Flex 1.5? Thanks Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Tree and allowMultipleSelection functionality not working
This is with Flex 2 released version. Will someone please run the code below and tell me if the allowMultipleSelection=true works for you? It should allow you to select multiple items in the Tree, at least this is what I get from all the documentation? ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute mx:Script ![CDATA[ import mx.collections.ArrayCollection; private var dp:Array = ([ {label:First, data:1}, {label:Second, data:2}, {label:Third, data:3}, {label:Fourth, data:4}, ]); ]] /mx:Script mx:Tree id=firstList dataProvider={ new ArrayCollection( dp ) } allowMultipleSelection=true height=100% width=300/ /mx:Application Yahoo! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/XISQkA/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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Flash Player 9 is here!!!
You can download Flash Player 9 now1 http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlashpromoid=BIOW Go to www.adobe.com and click on the Download Flash Player icon. Yippeee --- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: What is your timezone, 4pm is probably wrong :-) We are on track for releasing very very very soon. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bobchyko Sent: Tuesday, June 27, 2006 12:40 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex 2 released tomorrow --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jeremy Rottman rottmanList@ wrote: I was carousing the interweb and I found a post on g-unix. Has anyone else heard these rumors about flex 2 being released tomorrow? I for one would be extremely delighted to see the hard work of adobe/mm come to fruition. I'm pretty sure it is going to be released today at 4pm (at least that is what my sources tell me). Just tried to post this a few minutes ago but it didn't go through. Yahoo! Groups Sponsor ~-- Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex2 :: The time has come to ... Push the Button :: Released
I can get the FDS and Flex_SDK2.zip but not the Builder yet... It crazy to see all these posts saying its here but its no where to be downloaded. Renaun --- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: PS Might take a couple minutes for them to get their site tunned, but it's here! :) Maybe more like PS Might take a couple hours for them to get their site tunned, but it's here! On 6/28/06, Michael Schmalle [EMAIL PROTECTED] wrote: Hello all! Good day at Adobe, Flex 2 is finally out of beta and a full fledged adult SDK! I have some pretty good info on the release; http://www.flex2components.com/f2cblog/2006/06/28/flex2-the-time-has-come-to-push-the-button-released/ Happy trails and lets get this thing implemented! PS Might take a couple minutes for them to get their site tunned, but it's here! Peace, Mike -- What goes up, does come down. Yahoo! Groups Sponsor ~-- Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Can Flex record audio locally?
Yes Red5 is a open source version of FMS. You could do something with it. But it would require running it as a server or making it a standalone install (basically a server running on the client, possible but not to feasible). --- In flexcoders@yahoogroups.com, judah [EMAIL PROTECTED] wrote: Does Red 5 fit anywhere into this picture? http://www.osflash.org/red5 Judah Carlos Rovira wrote: AFAIK, with Flex 2 you can only transfer data and not video/audio through RTMP. If you want other capabilities like streaming video/audio, you still need FMS2...it's normal because in other way FMS2 would not have too much sense if Flex 2 could do anything ;) On 6/26/06, *Jeremy Lu* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I've been wanting this for several years now (probably right after I quit using Director) and the answer is still a firm *NO*. But may be Apollo can bring some new possibilities ? Jeremy. On 6/26/06, *Andrew Trice* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I've looked into this same idea pretty extensively, and I have not been able to come up with a solution (without the use of Flash Media Server). My thoughts are that there has got to be a way to extend the NetStream class to get access to the actual data stream from the microphone object. Unfortunately, there is nothing in the API that gives you the slightest hint of how to do this. _ **Andrew Trice** Cynergy Systems, Inc. http://www.cynergysystems.com http://www.cynergysystems.com Blog: http://www.cynergysystems.com/roller/page/andrewtrice Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] Office: 866-CYNERGY *From:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com] *On Behalf Of *Mike Potter *Sent:* Monday, June 26, 2006 11:25 AM *To:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com *Subject:* [flexcoders] Can Flex record audio locally? Hi all: Drupal is looking to create a project that will allow users to record audio locally and then upload that audio to the server. Does Flex allow developers to record audio to shared object and store it locally? I think the answer to this is no and that developers need Flash Media Server to record video and audio, but I just want to make sure. Thanks, Mike -- ::| Carlos Rovira ::| http://www.carlosrovira.com -- Always bear in mind that your own resolution to succeed is more important than any one thing. You can have anything you want - if you want it badly enough. You can be anything you want to be, do anything you set out to accomplish if you hold to that desire with singleness of purpose. - Abraham Lincoln Yahoo! Groups Sponsor ~-- Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Background Gradient??
Gradient colors in Flex's CSS are done like this: header-colors:#636B73,#F4F5F7; But if you give background-color multiple color values it nulls the value. I tried with no luck, background-colors:#636B73,#F4F5F7; --- In flexcoders@yahoogroups.com, Erich Cervantez [EMAIL PROTECTED] wrote: Howdy folks, quick noob question: working in Flex 1.5, and I'd like to have a 2-color gradient for the background color (rather than the default gray, or some other solid color). I think I understand that you can have a backgroundImage attribute or a backgroundColor attribute but not both. And the fillColors attribute will assist in tinting the background color (or image?). Hmm, anyway, I can't get a gradient going.anyone know of a trick or am I forced to create a background image anyway? E Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: titleBar in TitleWindow (Panel) class
In the layoutChrome function add this line: imgButton.setActualSize( imgButton.getExplicitOrMeasuredWidth(), imgButton.getExplicitOrMeasuredHeight() ); Renaun --- In flexcoders@yahoogroups.com, Jim Robson [EMAIL PROTECTED] wrote: When subclassing the TitleWindow class, shouldn't it be possible to add a child to the titleBar UIComponent? Within the Panel class definition, children are added to the titleBar using the addChild method. However, when I attempt to do so in a subclass, the child does not display. Does anyone know why this is? Am I missing something (code below)? package com.eyestreet.widgets { import mx.containers.TitleWindow; import mx.controls.Image; import flash.display.DisplayObject; public class TitleWindowResizeable extends TitleWindow { [Embed(source=button-resize.png, mimeType=image/png)] private var clsButton:Class; private var imgButton:Image; private var dspButton:DisplayObject; public function TitleWindowResizeable(){ super(); imgButton = new Image(); imgButton.source = clsButton; } override protected function createChildren():void { super.createChildren(); //This does not display: dspButton = titleBar.addChild(imgButton); /* The following would display, but the image * gets trimmed by the panel's frame: * dspButton = titleBar.addChild(imgButton); */ } override protected function layoutChrome(unscaledWidth:Number, unscaledHeight:Number):void { super.layoutChrome(unscaledWidth, unscaledHeight); dspButton.x = unscaledWidth-30; dspButton.y = unscaledHeight-30; } } } Yahoo! Groups Sponsor ~-- Yahoo! Groups gets a make over. See the new email design. http://us.click.yahoo.com/XISQkA/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 * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: titleBar in TitleWindow (Panel) class
2 answers better than none. Yeah lag is fun, Renaun --- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: Ha, here a perfect example of lag. That is what I said about 15 minutes ago ;-) Peace, Mike On 6/16/06, Renaun Erickson [EMAIL PROTECTED] wrote: In the layoutChrome function add this line: imgButton.setActualSize( imgButton.getExplicitOrMeasuredWidth(), imgButton.getExplicitOrMeasuredHeight() ); Renaun --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Jim Robson jim.robson@ wrote: When subclassing the TitleWindow class, shouldn't it be possible to add a child to the titleBar UIComponent? Within the Panel class definition, children are added to the titleBar using the addChild method. However, when I attempt to do so in a subclass, the child does not display. Does anyone know why this is? Am I missing something (code below)? package com.eyestreet.widgets { import mx.containers.TitleWindow; import mx.controls.Image; import flash.display.DisplayObject; public class TitleWindowResizeable extends TitleWindow { [Embed(source=button-resize.png, mimeType=image/png)] private var clsButton:Class; private var imgButton:Image; private var dspButton:DisplayObject; public function TitleWindowResizeable(){ super(); imgButton = new Image(); imgButton.source = clsButton; } override protected function createChildren():void { super.createChildren(); //This does not display: dspButton = titleBar.addChild(imgButton); /* The following would display, but the image * gets trimmed by the panel's frame: * dspButton = titleBar.addChild(imgButton); */ } override protected function layoutChrome(unscaledWidth:Number, unscaledHeight:Number):void { super.layoutChrome(unscaledWidth, unscaledHeight); dspButton.x = unscaledWidth-30; dspButton.y = unscaledHeight-30; } } } -- What goes up, does come down. Yahoo! Groups Sponsor ~-- Something is new at Yahoo! Groups. Check out the enhanced email design. http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: How to draw different Flex Controls/Containers at runtime?
Things to consider when doing runtime component creation. If you use addChild method your SWF size will include all the components that you might want to create regardless if you use them or not. You can create RSL's so the components are downloaded once and shared across your SWF applications. The other way is to have multiple SWF's and load them in through SWFLoader. The downfall here is the SWF's could contain duplicate classes, unless you use RSL's. If your use is probably going to use a majority of your runtime components and the file is not large addChild is a perfect way to go. Renaun --- In flexcoders@yahoogroups.com, Jawad Anwar [EMAIL PROTECTED] wrote: Hi Flexcoders, I am migrating JSP Front end into Flex and simply it creates different html controls at runtime based on my java bean. Now I know one way is to use embedded mxml tags in my JSP but I am wondering if there is something better then this. Can an Action Script render my Flex controls/containers at runtime? For e.g.: If 1st object type = Checkbox use Flex mx:CheckBox If 2nd object type= Text use Flex mx:ComboBox and so on This is a high-traffic site with some 30+ objects on one page and using embedded mxml does not sound feasible to me. Any help would be greatly appreciated. Kind regards. Jawad Anwar RIA Developer, Yahoo! Groups Sponsor ~-- Everything you need is one click away. Make Yahoo! your home page now. http://us.click.yahoo.com/AHchtC/4FxNAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex 1/5 : still fail to lock input...
Here is some test code I created: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml; xmlns=* mx:Script ![CDATA[ import mx.managers.CursorManager; import mx.core.UIObject; var inputBlocker; function setBlockingCursor() { // Create an empty UIObject popup that blocks user input CursorManager.setBusyCursor(); inputBlocker = popupWindow(UIObject); } function removeBlockingCursor() { // Remove our blocking popup inputBlocker.deletePopUp(); CursorManager.removeBusyCursor(); } ]] /mx:Script mx:Button click=setBlockingCursor() label=Create Popup / mx:Button click=removeBlockingCursor() label=Delete Popup / mx:TextInput / /mx:Application Is this what you expect to happen. If so it might want to check the parent of the Popup and see if that has something to do with it. As the example above is creating the popup on the Application root it for sure will block input. Renaun --- In flexcoders@yahoogroups.com, Antoine Malpel [EMAIL PROTECTED] wrote: Again I ask this because I really didn't find the solution var inputBlocker; function setBlockingCursor() { // Create an empty UIObject popup that blocks user input CursorManager.setBusyCursor(); inputBlocker = popupWindow(UIObject); } function removeBlockingCursor() { // Remove our blocking popup inputBlocker.deletePopUp(); CursorManager.removeBusyCursor(); } this example come from the sample explorer of Flex 1.5... it works well from it but I can't get working on my Application I also tried with myRootCanvas.enabled = false but no :( why ? I mainly use this when I want to create a popup please I really need a working script for that Yahoo! Groups Sponsor ~-- Home is just a click away. Make Yahoo! your home page now. http://us.click.yahoo.com/DHchtC/3FxNAA/yQLSAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: Flex 1.5 - Embedbed image problem, when using multiple Flex SWFs
Thats what I got too, it which means it has a valid value but nothing shows up. And this is where I am not understanding what Flex is doing, if the value it correct and it still doesn't show up in the Image component something else is going on. Renaun --- In flexcoders@yahoogroups.com, Andriy Panas [EMAIL PROTECTED] wrote: Hello Renaun, Have you tried to output to Alert window or logging console the value of the variable parentApplication.myImage? Very interesting results :) I got __Resources.654702660.green.gif, what got you? ;) mx:Image source={ parentApplication.myImage } / -- Best regards, Andriy mailto:[EMAIL PROTECTED] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Flex 1.5 - Embedbed image problem, when using multiple Flex SWFs
Andriy, Thanks for the post, Linking assets from libraries is also available in Flex 1.5, but I want to link specific assets at Runtime and not a whole library. @Embed('myLibrary.swf#myLinkage') I'll take a look at the library feature. http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/js/html/wwhelp.htm?href=""> http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/js/html/wwhelp.htm?href=""> http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/js/html/wwhelp.htm?href=""> Renaun --- In flexcoders@yahoogroups.com, Andriy Panas [EMAIL PROTECTED] wrote: Hello Renaun, Just fYI, in Flex 2 it should be easy to achieve what do you want to have in Flex 1.5. See example of Chafic Kazoun's method posted at Peter Elst blog: http://www.peterelst.com/blog/2005/11/19/spark-europe-chafic-kazoun/ mx:Image source={ parentApplication.myImage } / -- Best regards, Andriy mailto:[EMAIL PROTECTED] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Flex 1.5 - Embedbed image problem, when using multiple Flex SWFs
My thing is I want to have many different SWF's with assets of their own. If I put them all in RSL it would make a RSL with a large size when I will only use one or two. The structure is more like this: swfA - has asset myImage = imageA.gif swfB - has asset myImage = imageB.gif swfC - has asset myImage = imageC.gif swfD - has asset myImage = imageD.gif swfE - has asset myImage = imageE.gif swfF - has asset myImage = imageF.gif swfG - has asset myImage = imageG.gif ... swfZ - has asset myImage = imageZ.gif swfUI - uses asset myImage swfA - swfZ are first application swf's that all load swfUI If I put imageA.gif-imageZ.gif into a RSL and used it with swfUI. I would have a very large RSL an only want to use on image per instance. Hope that makes sense, it just doesn't make sense that a loaded swf can not access assets (it can access data and methods) of the swf that loaded it. Adobe Flex developer out there that can explain if this is just how Flex1.5 works? Renaun --- In flexcoders@yahoogroups.com, Andriy Panas [EMAIL PROTECTED] wrote: Hello Renaun, Wednesday, May 31, 2006, 5:45:06 PM, you wrote: And this is where I am not understanding what Flex is doing, if the value it correct and it still doesn't show up in the Image component something else is going on. Let's then use RSL in Flex 1.5 whenever you want to share any assets ( including JPGs!) between multiple mx:Appplication level apps. http://www.brajeshwar.com/archives/2005/05/flex-15-an-introduction/ ID __Resources.654702660.green.gif is not usable, read - image cannot be located. -- Best regards, Andriy mailto:[EMAIL PROTECTED] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Flex 1.5 : change the loaded swf framerate
In Flex or Flash, a loaded SWF takes on the FrameRate of the parent SWF. In flex you can set the framerate value for the main application with framerate attribute in the mx:Application tag. Renaun --- In flexcoders@yahoogroups.com, Antoine Malpel [EMAIL PROTECTED] wrote: I don't understand how to use a given framerate for an imported SWF (Loader) because the swf I use should run at 7 frames per second but it just seems to run very faster ... It seems there is no way to force that via code from flash, what about Flex ? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Clarification on Flex Derby Rules
You can submit one entry per category, therefore you can have 6 submissions. I asked the same question to the derby email and that was their response. Renaun --- In flexcoders@yahoogroups.com, Harris Reynolds [EMAIL PROTECTED] wrote: Quick question regarding the rules of the Derby contest; the rules state, Limit one (1) submission per participant per category. I interpret this to mean that one person could submit *two* entries if each entry was submitted for a different category. Is this correct? Or should it read Limit one (1) submission per participant PERIOD.? Thanks for any clarification. ~harris -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Flex 1.5 - Embedbed image problem, when using multiple Flex SWFs
I have 2 Flex applications. The first application (swf1) loads the other application (swf2). swf1 has an embedded image inside it, when I try and access the embeded image in swf2 nothing happens. The best way to explain it is with some sample code (source can be found here - http://renaun.com/flex1_5/s2.zip): swf1: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml xmlns=* mx:Script ![CDATA[ // Logo Asset(s) [Embed(source=green.gif)] var myImage:String; private function doneLoading():Void { } ]] /mx:Script mx:Loader id=BaseContainer source=swf2.mxml.swf width=100 height=100 scaleContent=false maintainAspectRatio=false complete=doneLoading() borderColor=0xFF borderThickness=2 borderStyle=solid/ mx:Image source={ myImage } borderColor=0xFF/ /mx:Application swf2: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.macromedia.com/2003/mxml xmlns=* mx:Image source={ parentApplication.myImage } / mx:Image source={ parentApplication.myImage } / mx:Image source={ parentApplication.myImage } / mx:Image source={ parentApplication.myImage } / mx:Image source={ parentApplication.myImage } / /mx:Application I am looking for an example of this working or somebody to tell its just the way it is??? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: swf (loadMovie) from an external swf deosn't work ?
in Flex 1.5, you use the Loader to load SWF's at runtime. Things too look out for: 1. Do not use Flash MX components in the SWF's that will be loaded. There are conflicts with Flex. 2. To access a loaded SWF, you use myLoader.content.someFunctionOnLoadedSWF() (mx:Loader id=myLoader /) 3. Use the Flash property _lockroot = true on your loaded SWF's if the use of _root is preset in the SWF. 4. Beware of domain security issues Well thats what I can remember from off the top of my head. Renaun --- In flexcoders@yahoogroups.com, Antoine Malpel [EMAIL PROTECTED] wrote: Does it mean I can't do such a thing using Flex 1.5 (I see some message here talking about SWFOBJECT with Flex 2beta) ? Could someone tell me the exacr limitations of swf's integrations on a Flex ? - I use a mx.Image, I also tried with mx.Loader, source=file and sourc=Embed('file') what's the real difference between both object relating to swf files ? - It's not possible to hide, show, implement function (like btn.release = function(){} from Flex ? (this is for another issue) - I can't load images (there are swf in fact) from the swf ? If not what is the good to integrate my swf ? reCode it all from Flex ? Any help and / or tutorials' links will be grantly appreciated... Antoine Malpel a écrit : Well Flex I useverion 1.5 of Flex as Flex 2.0 is still beta ;) Xavi Beumala a écrit : Which flex version are you running? X. On 5/23/06, *Antoine Malpel* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I use a swf in a popup in my application, everything's fine about interactity except that swfs that should be loaded in this swf are not loaded from flex application like they are when I play the swf in flash player. Flex doesn't support such a thing ? Yahoo! Groups Sponsor -- 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 http://groups.yahoo.com/group/flexcoders/ mailto:[EMAIL PROTECTED] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=lvQjSRfQDfWudJSe1lLjHw Software design and development http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ http://groups.yahoo.com/gads?t=msk=Software+design+and+developmentw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=1pMBCdo3DsJbuU9AEmO1oQ Macromedia flex http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw http://groups.yahoo.com/gads?t=msk=Macromedia+flexw1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=OO6nPIrz7_EpZI36cYzBjw Software development best practice http://groups.yahoo.com/gads?t=msk=Software+development+best+practicew1=Web+site+design+developmentw2=Computer+software+developmentw3=Software+design+and+developmentw4=Macromedia+flexw5=Software+development+best+practicec=5s=166.sig=f89quyyulIDsnABLD6IXIw
[flexcoders] Using Loader to load multiple mx:Application SWF (Flex 1.5)
I have read and re-read all the posts on breaking up a big application into smaller chunks either using the Loader method or createChild. createChild works well to delay creation of objects but the actually SWF size is not smaller as the classes are compiled into the application. The Loader loads stuff on runtime but you get longer load times because of overlapping of common classes (each loaded SWF is a Flex app with the main component being the Application class). My question I have is in regards to the Loader and loading other mx:Application flex SWFs. When I try to do this, I can not get the loader swf's to stay dyanmic 100% widht and height. I want the loaded application SWF to fill up the container it was loaded in. It has to do with something when it reaches 500 width and 375 height, some defaults in the Application class. I found some methods of hacking the width and height to work somewhat reasonably, but in the end it doesn't seem right. I know the Flex Exampler Explorer is a good example of loading different Application SWF into a container but none of them do 100% width/height. First, do people really use Loader to load multiple Flex mini-applications? and if so how do you address the 100% width/height issue? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Using Loader to load multiple mx:Application SWF (Flex 1.5)
Yes the RSL can keep the files sizes down, do you put all the Flex classes in the RSL too? As for SWFloader, I am actually asking about Flex 1.5 and mx:Loader. But the livedocs says Loader as the percentWidth/Height. I'll give it a try, I guess my question would be, doesn't width=100% set the percentWidth? Thanks for the response, more to test. Renaun --- In flexcoders@yahoogroups.com, Anatole Tartakovsky [EMAIL PROTECTED] wrote: Renaun, You can avoid doubles in SWF size if you use RSLs and mark them external for loadable modules. We have developed flexlets that were under 20K. As far as screen sizing we had to do this: mx:SWFLoader width=100% height=100% trustContent=true id=loader autoLoad=true init=loader.percentWidth=99;loader.percentWidth=100/ did not have problems with height. Not pretty, but I am postoning looking into SWFLoader till final release as it has been moving target in the past. HTH, Anatole - Original Message - From: Renaun Erickson To: flexcoders@yahoogroups.com Sent: Tuesday, May 23, 2006 1:51 PM Subject: [flexcoders] Using Loader to load multiple mx:Application SWF (Flex 1.5) I have read and re-read all the posts on breaking up a big application into smaller chunks either using the Loader method or createChild. createChild works well to delay creation of objects but the actually SWF size is not smaller as the classes are compiled into the application. The Loader loads stuff on runtime but you get longer load times because of overlapping of common classes (each loaded SWF is a Flex app with the main component being the Application class). My question I have is in regards to the Loader and loading other mx:Application flex SWFs. When I try to do this, I can not get the loader swf's to stay dyanmic 100% widht and height. I want the loaded application SWF to fill up the container it was loaded in. It has to do with something when it reaches 500 width and 375 height, some defaults in the Application class. I found some methods of hacking the width and height to work somewhat reasonably, but in the end it doesn't seem right. I know the Flex Exampler Explorer is a good example of loading different Application SWF into a container but none of them do 100% width/height. First, do people really use Loader to load multiple Flex mini-applications? and if so how do you address the 100% width/height issue? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice -- YAHOO! GROUPS LINKS a.. Visit your group flexcoders on the web. b.. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Using Loader to load multiple mx:Application SWF (Flex 1.5)
Well, the percentWidth and percentHeight on Flex 1.5 Loader class are read only. http://livedocs.macromedia.com/flex/15/asdocs_en/ Hmmm still have the issue. --- In flexcoders@yahoogroups.com, Anatole Tartakovsky [EMAIL PROTECTED] wrote: Renaun, You can avoid doubles in SWF size if you use RSLs and mark them external for loadable modules. We have developed flexlets that were under 20K. As far as screen sizing we had to do this: mx:SWFLoader width=100% height=100% trustContent=true id=loader autoLoad=true init=loader.percentWidth=99;loader.percentWidth=100/ did not have problems with height. Not pretty, but I am postoning looking into SWFLoader till final release as it has been moving target in the past. HTH, Anatole - Original Message - From: Renaun Erickson To: flexcoders@yahoogroups.com Sent: Tuesday, May 23, 2006 1:51 PM Subject: [flexcoders] Using Loader to load multiple mx:Application SWF (Flex 1.5) I have read and re-read all the posts on breaking up a big application into smaller chunks either using the Loader method or createChild. createChild works well to delay creation of objects but the actually SWF size is not smaller as the classes are compiled into the application. The Loader loads stuff on runtime but you get longer load times because of overlapping of common classes (each loaded SWF is a Flex app with the main component being the Application class). My question I have is in regards to the Loader and loading other mx:Application flex SWFs. When I try to do this, I can not get the loader swf's to stay dyanmic 100% widht and height. I want the loaded application SWF to fill up the container it was loaded in. It has to do with something when it reaches 500 width and 375 height, some defaults in the Application class. I found some methods of hacking the width and height to work somewhat reasonably, but in the end it doesn't seem right. I know the Flex Exampler Explorer is a good example of loading different Application SWF into a container but none of them do 100% width/height. First, do people really use Loader to load multiple Flex mini-applications? and if so how do you address the 100% width/height issue? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice -- YAHOO! GROUPS LINKS a.. Visit your group flexcoders on the web. b.. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Using Loader to load multiple mx:Application SWF (Flex 1.5)
Its some what hard to explain, so I made a screen capture video of it. You can view it here: http://www.renaun.com/flex1_5/FlexLoaderAppResize.html Here is a link to the sample code that I am messing with: http://www.renaun.com/rsl_example.zip App2 in the sample code is the one I have been messing with a lot. It works alright, but if you load the Flex app while the browser is at about 300 width 300 height and then start to resize the application it goes weird at a certain width and height. Renaun --- In flexcoders@yahoogroups.com, Joan Tan [EMAIL PROTECTED] wrote: Yes, setting width=100% in Flex 1.5 should work. Its equivalent to setting percentWidth in Flex 2.0. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Renaun Erickson Sent: Tuesday, May 23, 2006 11:35 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Using Loader to load multiple mx:Application SWF (Flex 1.5) Yes the RSL can keep the files sizes down, do you put all the Flex classes in the RSL too? As for SWFloader, I am actually asking about Flex 1.5 and mx:Loader. But the livedocs says Loader as the percentWidth/Height. I'll give it a try, I guess my question would be, doesn't width=100% set the percentWidth? Thanks for the response, more to test. Renaun --- In flexcoders@yahoogroups.com, Anatole Tartakovsky anatolet@ wrote: Renaun, You can avoid doubles in SWF size if you use RSLs and mark them external for loadable modules. We have developed flexlets that were under 20K. As far as screen sizing we had to do this: mx:SWFLoader width=100% height=100% trustContent=true id=loader autoLoad=true init=loader.percentWidth=99;loader.percentWidth=100/ did not have problems with height. Not pretty, but I am postoning looking into SWFLoader till final release as it has been moving target in the past. HTH, Anatole - Original Message - From: Renaun Erickson To: flexcoders@yahoogroups.com Sent: Tuesday, May 23, 2006 1:51 PM Subject: [flexcoders] Using Loader to load multiple mx:Application SWF (Flex 1.5) I have read and re-read all the posts on breaking up a big application into smaller chunks either using the Loader method or createChild. createChild works well to delay creation of objects but the actually SWF size is not smaller as the classes are compiled into the application. The Loader loads stuff on runtime but you get longer load times because of overlapping of common classes (each loaded SWF is a Flex app with the main component being the Application class). My question I have is in regards to the Loader and loading other mx:Application flex SWFs. When I try to do this, I can not get the loader swf's to stay dyanmic 100% widht and height. I want the loaded application SWF to fill up the container it was loaded in. It has to do with something when it reaches 500 width and 375 height, some defaults in the Application class. I found some methods of hacking the width and height to work somewhat reasonably, but in the end it doesn't seem right. I know the Flex Exampler Explorer is a good example of loading different Application SWF into a container but none of them do 100% width/height. First, do people really use Loader to load multiple Flex mini-applications? and if so how do you address the 100% width/height issue? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice -- YAHOO! GROUPS LINKS a.. Visit your group flexcoders on the web. b.. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development http://groups.yahoo.com/gads?t=msk=Web+site+design+developmentw1=Web+ site+design+developmentw2=Computer+software+developmentw3=Software+des ign+and+developmentw4=Macromedia+flexw5=Software+development+best+prac ticec=5s=166.sig=L-4QTvxB_quFDtMyhrQaHQ Computer software development http://groups.yahoo.com/gads?t=msk=Computer+software+developmentw1=We b+site+design+developmentw2=Computer+software+developmentw3=Software+d esign+and+developmentw4=Macromedia+flexw5=Software
[flexcoders] Re: Using Loader to load multiple mx:Application SWF (Flex 1.5)
Doug (and Andrew), Thanks for posting the info, its just want I was looking for. It makes sense now too. This really should be put into the Application class by default, they have similiar stuff already for other functions. Thanks again, Renaun --- In flexcoders@yahoogroups.com, Doug Lowder [EMAIL PROTECTED] wrote: Oh, and credit for this goes to Andrew Spaulding. Here's the original link: http://www.flexdaddy.info/2005/02/21/sizing-apps-within-the-loader-contr\ ol/ http://www.flexdaddy.info/2005/02/21/sizing-apps-within-the-loader-cont\ rol/ --- In flexcoders@yahoogroups.com, Doug Lowder douglowder@ wrote: Hi Renaun, Insert the following into your loaded mxml applications (the ones set as the content for your Loader control), and they will properly resize. Regards, Doug mx:Script ![CDATA[ function getPreferredHeight() { return _parent? _parent.layoutHeight : super.getPreferredHeight(); } function getPreferredWidth() { return _parent? _parent.layoutWidth : super.getPreferredWidth(); } ]] /mx:Script --- In flexcoders@yahoogroups.com, Renaun Erickson renaun@ wrote: I have read and re-read all the posts on breaking up a big application into smaller chunks either using the Loader method or createChild. createChild works well to delay creation of objects but the actually SWF size is not smaller as the classes are compiled into the application. The Loader loads stuff on runtime but you get longer load times because of overlapping of common classes (each loaded SWF is a Flex app with the main component being the Application class). My question I have is in regards to the Loader and loading other mx:Application flex SWFs. When I try to do this, I can not get the loader swf's to stay dyanmic 100% widht and height. I want the loaded application SWF to fill up the container it was loaded in. It has to do with something when it reaches 500 width and 375 height, some defaults in the Application class. I found some methods of hacking the width and height to work somewhat reasonably, but in the end it doesn't seem right. I know the Flex Exampler Explorer is a good example of loading different Application SWF into a container but none of them do 100% width/height. First, do people really use Loader to load multiple Flex mini-applications? and if so how do you address the 100% width/height issue? -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Amazon ECS SOAP requests via mx:request tags [FB2b3]
There are some old posts on the board about this. Basically there is a conflict with the WebService flex classes and the Request parameters required by Amazon. The WebService flex classes overrides any Request parameter you set and therefore you get the error. The only want around it would be to create a new WebService class that doesn't conflict with the Request variable. links to old posts: http://groups.yahoo.com/group/flexcoders/message/34246 http://www.cflex.net/flexcoders.cfm?Message=msg25454.html http://groups.yahoo.com/group/flexcoders/message/34866 Renaun --- In flexcoders@yahoogroups.com, Peter Blazejewicz [EMAIL PROTECTED] wrote: Hello everyone, I've already used amazon ECS with REST operations without any issue in flex, when i'm trying to send soap request I always get errors (usually AWS. MissingParameters) from service , most probably because sending soap body tags with wrong namespace (?), maybe someone already tried amazon ecs with soap and can sheed some light on that, sample code: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml width=100% height=100% !-- webservice -- mx:WebService id=amazonECS wsdl=http://webservices.amazon.com/AWSECommerceService/ AWSECommerceService.wsdl useProxy=false showBusyCursor=true mx:operation name=ItemSearch resultFormat=e4x mx:request xmlns:m=http://webservices.amazon.com/ AWSECommerceService/2005-03-23 m:ItemSearch m:SubscriptionId0525E2PQ81DD7ZTWTK82/ m:SubscriptionId m:Request m:ResponseGroupItemAttributes/ m:ResponseGroup m:ResponseGroupItemIds/m: ResponseGroup m:KeywordsFlex RIA/m:Keywords m:SearchIndexBooks/m: SearchIndex /m:Request /m:ItemSearch /mx:request /mx:operation /mx:WebService !-- view -- mx:TextArea id=txtResult width=100% height=100% text ={amazonECS.ItemSearch.lastResult}/ mx:Button label=send click=amazonECS.ItemSearch.send()/ /mx:Application docs: http://docs.amazonwebservices.com/AWSEcommerceService/2005-03-23/ index.html thanks in advance, regards, Peter Blazejewicz -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Using amf0 in f2b3
X, Thanks for sharing your code updates. I have also created a component that provides AMF0 functionality with Flex2. You can find it here: Custom RemoteObjectAMF0 http://www.renaun.com/flex2/ I was caught up on a part of the implementation but your code help me figure out how to pass along the ...args parameter into the method call. I have made the updates to the RemoteObjectAMF0 and the source has been uploaded for download. Thanks again, Renaun --- In flexcoders@yahoogroups.com, hank williams [EMAIL PROTECTED] wrote: Thanks. This is very much needed and appreciated. Regards Hank On 5/18/06, Xavi Beumala [EMAIL PROTECTED] wrote: Hi there, I've thought some of you would also be interested on this topic, so I've published a lass which allows you to work with amf0 through f2b3. You can get it at http://www.code4net.com/archives/000119.html Hope it helps X. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Cairngorm ServiceLocator and AMFPHP
Andi, Stefan, I just updated the code to Flex2 Beta3. You can see my post about it here. http://renaun.com/blog/?p=31 Renaun --- In flexcoders@yahoogroups.com, Andrea Varga [EMAIL PROTECTED] wrote: Hi Stefan You might want to look at this: http://renaun.com/blog/?p=25 Andi stefan_schmalhaus wrote: I'd like to add an AMFPHP-based service to my Cairngorm ServiceLocator. The example from Mike Potter's Flex/AMFPHP tutorial works really well (for those who haven't tried it yet here's the URL to the tutorial: http://labs.adobe.com/wiki/index.php/Flex_Framework:tutorials:flex2_AMFPHP), but I don't know how to get it to work in a Cairngorm environment. In the tutorial an additional AS class (RemotingConnection) is set up that extends NetConnection. How do I combine this with the usual syntax for a adding a new service to the Cg ServiceLocator, e.g.: mx:HTTPService id=dummyDelegate url=""> result=event.call.resultHandler( event ) fault=event.call.faultHandler( event ) showBusyCursor=true useProxy=false / Is this possible at all? Thanks in advance. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Cairngorm ServiceLocator and AMFPHP
Heck, I impressed myself creating the RemoteObjectAMF0. There is still some code I wish I new how to do. It works nice in a Cairngorm setup. Its actually a general AMF0 RemoteObject so it can work with ColdFusion (/flashservices/gateway), AMFPHP, OpenAMF etc... I believe we will be waiting for a while before AMF3 stuff works it self out. With the ColdFusion/Flex connectivity and the FDS its not worth it for Adobe to further develop on the older AMF format. AMF3 offers so much more than AMF0, but in the end people will want Open Source avenues to use instead of buying ColdFusion or FDS. Only time will tell, Renaun --- In flexcoders@yahoogroups.com, stefan_schmalhaus [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com, Renaun Erickson renaun@ wrote: I just updated the code to Flex2 Beta3. You can see my post about it here. Renaun, Thanks for taking the effort to make it work in F2B3. I have to admit that I do not understand how you did it, but I'm quite impressed. ;-) The code in the com.multispan.rpc package is rather cryptic to me. And as you mention yourself, it's more of an experiment than a stable solution. So I guess it's better to wait until we have a final version of Flex and an AMF3-compatible version of AMFPHP. Stefan -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: f2 b3 Sound busted ?
The night Beta 3 came out, I tried out an application I wrote in Beta 2 and the sound didn't work. I messed around with the application again today and it works just fine. My code is just like you mentioned (like the livedocs). I have cleared my cache since the first test not sure if that has something to do with it. Well it plays so that should give you hope. Renaun --- In flexcoders@yahoogroups.com, arpit mathur [EMAIL PROTECTED] wrote: Is it something I am doing wrong ? The sound class completely doesnt work for me anymore. I can see the sound loading but it doesnt play. The beta 3 sound example at http://livedocs.macromedia.com/labs/1/flex20beta3/langref//flash/media/Sound.html is not working for me. - Original Message From: Simeon Bateman [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, May 9, 2006 10:33:41 AM Subject: Re: [flexcoders] cf flex intergration Hey John, I posted on my blog about how I use ANT to compile flex 2.0 scripts for my mac. I also have a post about setting up so remoting works here: http://www.simb.net/blog/index.cfm/2006/3/1/Compiling-Mystic-Compatible-SWFs-with-Ant If you have any questions about getting that set up feel free to post them here or on the flexcf.net forums. Good Luck, simeon On 5/9/06, JB [EMAIL PROTECTED] wrote: Hi, Does anybody know of any examples explaining coldfusion flex intergration? I was just able to download Mystic on the Mac, but I am pretty lost on how to intergrate the two. Thank you very much for any help, John __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service . -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group flexcoders on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: iteration::two namespace
There is a Cairngorm 2 beta version for the Flex 2 Beta 2+ out there. Look over the list for the link. Renaun --- In flexcoders@yahoogroups.com, Darren Houle [EMAIL PROTECTED] wrote: I'm gathering all the public Caringorm examples I can for study, so I downloaded the BlogReader.zip from EverythingFlex.com and created a new project in F2B2. It's Cg.99 so the first thing it did was barf over the http://www.macromedia.com/2003/mxml mx namespace which I corrected with http://www.adobe.com/2006/mxml Then it fretted over not being able to resolve Link to a component implementation, so I changed it to LinkButton. Now that error is gone, but now it's complaining that it can't resolve cairngorm:ServiceLocator to a component implementation, apparently because of the http://www.iterationtwo.com/cairngorm namespace path in the Services.mxml file. Does this path need to be updated with something newer like the mx namespace path did, or are there darker things afoot here? Thanks, Darren -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.