Re: [flexcoders] Datagrid Password Column?
Did you try the 'itemEditor' property, instead of 'itemRenderer'? If memory serves, the row will toggle between your textinput and the default text renderer, when you use the editor setup. -Scott On Tue, Jun 10, 2008 at 6:27 PM, Dennis Falling [EMAIL PROTECTED] wrote: I have an editable DataGrid that displays usernames and masked passwords (). To hide the password, I'm just using an inline item renderer: mx:DataGridColumn dataField=password headerText=Password editorDataField=text rendererIsEditor=true mx:itemRenderer mx:Component mx:TextInput displayAsPassword=true borderStyle=none/ /mx:Component /mx:itemRenderer /mx:DataGridColumn This works exactly how I want it to, with very little code...except it doesn't look too hot when that row is selected: the TextInput always has a solid white background whether it's selected or not. Is there an easy way to tell it to make it not show a background except when selected (appear like the default item editor)? I've listened to the various edit events but can't figure out a clean way of doing this. Thanks! -- : : ) Scott Helping your grandma on the interweb at: http://blog.criticalpile.com
[flexcoders] Global / application level error handling
Does anyone know if this is possible in flex? By the look of this JIRA item, it is not currently supported: http://bugs.adobe.com/jira/browse/ASC-3139 Our company is looking at setting up server-side logging, and this would be a valuable addition! I see that most web-application languages appear to support this capability, but I'm guessing it's because there's a top-level 'container' that is capable of spawning off multiple threads of execution, which can be handled individually - as opposed to the flash player, which does not. -- : : ) Scott Helping your grandma on the interweb at: http://blog.criticalpile.com
[flexcoders] Re: Global / application level error handling
Sorry, found feature request in Adobe JIRA: https://bugs.adobe.com/jira/browse/SDK-11423 Good one to vote for. I can see how this would be show-stopper for some looking at adopting this tech. -Scott On Mon, Jun 2, 2008 at 5:33 PM, sLangeberg [EMAIL PROTECTED] wrote: Does anyone know if this is possible in flex? By the look of this JIRA item, it is not currently supported: http://bugs.adobe.com/jira/browse/ASC-3139 Our company is looking at setting up server-side logging, and this would be a valuable addition! I see that most web-application languages appear to support this capability, but I'm guessing it's because there's a top-level 'container' that is capable of spawning off multiple threads of execution, which can be handled individually - as opposed to the flash player, which does not. -- : : ) Scott Helping your grandma on the interweb at: http://blog.criticalpile.com -- : : ) Scott Helping your grandma on the interweb at: http://blog.criticalpile.com
[flexcoders] Adobe Weblogs site malfunctioning!
Trying to view page: http://weblogs.macromedia.com/pmartin/archives/2006/06/flexunit_ant.cfm Is serving up the CFM source, rather than parsing!! However, weblogs.macromedia.com redirects to an adobe.feeds site, which has no contact info, that I see... -- : : ) Scott Helping your grandma on the interweb at: http://blog.criticalpile.com
[flexcoders] Re: Actionscript: Copy an Object or Dictionary
You want a for..in loop, NOT for...each: var newDict:Dictionary = new Dictionary(); var item:Object; //don't think you want Class type, here.. for (item in myDictionary) { //now perform the deep copy... //for which you may need to have the class def... newDict[item] = ObjectUtil.copy(myDictionary[item]); } see: http://livedocs.adobe.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1880.html Basically, for-in: keys. for-each: values - Scott On Nov 30, 2007 9:30 AM, polestar11 [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, ben.clinkinbeard [EMAIL PROTECTED] wrote: it only copies over object values, not exact values. Huh? @Tom How would one bind the keys to the new dictionary children? var newDict:Dictionary = new Dictionary(); var item:Class for each(item in myDictionary) { newDict[?] = item; } @ben If I have an object containing types (in my case a collection of Class types referenced by a key string). Using the ObjectProxy.copy(), the new object will contain child objects with the same keys as the original, but the child types are Object types, not Class types.
Re: [flexcoders] Simple game question with Flex
You can embed either an entire swf, or linked assets from its library: [Embed( '/assets/icon_lib_f9.swf#arrow_rt_wt' )] public static var arrow_rt_wt : Class; Where '#arrow...' is a linked asset with the file.swf. -Scott On Dec 8, 2007 4:23 AM, pirzadaz_ali [EMAIL PROTECTED] wrote: Hi, I have board and pieces in PNG format (images) set in Flash 8 (downloaded trial version of Flash CS3 pro) . Now instead of using flash I want to use Flex (as developer in other languages) to code AS files to move my pieces etc. So basically I want to use Flash to set up my board with images and Flex to code the behavior of game somehow calling the pieces etc from Flash SWF file which has board and pieces? any suggestion will be helpful Thanks
[flexcoders] TweenEffect does NOT trigger bindings(?)
I am using the Flex Scheduling Framework in FlexLib, and notice that the AnimateProperty (a TweenEffect) class does not trigger binding on the property that it animates. In this case, it is the 'xPosition' property that is animated. When changing this property in code, your bindings will fire. However, when using the animate, it does not: var e : AnimateProperty = new AnimateProperty( this ); e.property = xPosition; e.fromValue = owner.horizontalScrollPosition; e.toValue = position - owner.xOffset; e.duration = owner.getStyle( moveDuration ); e.easingFunction = owner.getStyle( moveEasingFunction ) as Function; e.play(); Why / how exactly is that? Anyone? Bueller? : : ) Scott
[flexcoders] Flex Bug: ComboBox shows IBeam cursor and text is selectable by default
I found a bug in the Adobe bug tracker. It says it's only in Flex Moxie Beta: ComboBox shows IBeam cursor and text is selectable by default: http://bugs.adobe.com/jira/browse/SDK-12032?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel However, I am experiencing the exact same behavior in 2.0.1. Here's my sdk desc: flex-sdk-description nameFlex 2.0.1 Hotfix 2/name version2.0.1/version build166910/build /flex-sdk-description : : ) Scott
Re: [flexcoders] Access dragImage within dragDrop event?
Ok, so I'm trying to track where to place an item, based on the dragProxy thumbnail that gets displayed while dragging. However, when I store a reference to this item, the (x,y) values come in as 0! DragManager.doDrag(dragInitiator, ds, event, dragProxy ); model.currDragProxy = dragProxy; model.currDragProxy.addEventListener(MouseEvent.MOUSE_MOVE, function():void { model.log.debug( ... currDrgPrxy.loc: +model.currDragProxy.x + , +model.currDragProxy.y ); }); Anyone have good approach to managing precision drag drop? I just want an item to show up at the exact location as the thumbnail that gets dragged by DragManger! -Scott On 5/7/07, Manish Jethani [EMAIL PROTECTED] wrote: On 5/7/07, slangeberg [EMAIL PROTECTED] slangeberg%40gmail.com wrote: Here's the handler to capture the 'dragDrop' event: private function onDragDrop(event:DragEvent):void {...} Is there any way to access the dragImage from that DragEvent? I think you'll have to just hold a reference to your dragImage and access it later in the handler. -- : : ) Scott
Re: [flexcoders] Re: Staging an AS3 for Flash 8?
I believe that is what http://www.kongregate.com/ is doing with some AS3 content (search for understanding games). When I looked up that article, the page has a disclaimer that says that Flash player 9 is required. This doesn't mean they couldn't do what you're saying, but I don't know of any method aside from IFrames, JScript, etc. I hate to tell you, but working under those constraints will require you to use flash 8, since you have no control over the site, and do not want users to see a blank control when they don't have flash 9. I want it to load a Flash 8 movie that determines that the user has flash 9, and then load the AS3 version. You said yourself that you know that flash 8 can't load flash 9 content, so I'm not sure how you would plan to do this. Sorry I don't have any help, but my past experience has been that you need to support the older environment. I would love to be proved wrong, though! -Scott On 5/8/07, jnbeck86 [EMAIL PROTECTED] wrote: Hey thanks for the reply Scott! I understand that I can't play AS3 content in Flash 8. In the situation of a user only having Flash 8, they would see the Flash 8 / AS2 content. However, what if the user has Flash Player 9? I want it to load a Flash 8 movie that determines that the user has flash 9, and then load the AS3 version. I believe that is what http://www.kongregate.com/ is doing with some AS3 content (search for understanding games). Could someone point me in the right direction of how to accomplish this, I'm hitting a wall. Thanks! Nate -- : : ) Scott
Re: [flexcoders] Access dragImage within dragDrop event?
I guess that would be easy enough! ;) Hey man, thanks for replying to my message. I could have sworn people weren't even seeing my posts on this board, any more! -Scott On 5/7/07, Manish Jethani [EMAIL PROTECTED] wrote: On 5/7/07, slangeberg [EMAIL PROTECTED] slangeberg%40gmail.com wrote: Here's the handler to capture the 'dragDrop' event: private function onDragDrop(event:DragEvent):void {...} Is there any way to access the dragImage from that DragEvent? I think you'll have to just hold a reference to your dragImage and access it later in the handler. -- : : ) Scott
Re: [flexcoders] Require urgent help
'Meter'? Are you talking about a gauge on an instrument panel? Have you looked at the charting components? -Scott On 5/10/07, Rajesh Deshmukh [EMAIL PROTECTED] wrote: Hi All, I am new to this group. I have a small problem which I need to resolve as soon as possible. I am working for one project where I need to implement the Meter in an application for Flex. It's like I am having some dynamic data (which changes on the user interaction). I am having a meter init which is like we have for our vehicles. It changes as per the user interaction. I am confused over it about how to implement it. Whether I can do it in Flex? If yes how can I do that? Or will I have to take help for some other applications. Please help me as soon as possible. Waiting for your replies… Regards, Rajesh Deshmukh -- : : ) Scott
[flexcoders] Access dragImage within dragDrop event?
Here's the code I used to initiate the drag - Thumbnail is just a component with an image and metadeta: var dragProxy:Thumbnail = new Thumbnail(); // Call the DragManager doDrag() method to start the drag. // For information on this method, see // the Initiating the drag section. DragManager.doDrag(dragInitiator, ds, event, dragProxy); Here's the handler to capture the 'dragDrop' event: private function onDragDrop(event:DragEvent):void {...} Is there any way to access the dragImage from that DragEvent? I want to create an item at the exact location of the thumbnail that's visible when performing drag/drop. So, I would like to access the drag proxy created by the DragManager within the dragDrop event (unless I need to do it differently!). : : ) Scott
[flexcoders] Possible to access dragImage within a DragEvent?
I want to access the thumbnail created in drag/drop operations, to create an item exactly where you see this thumbnail on stage. I initiate drag/drop here, where Thumbnail is basically a component with an Image and metadata. I want to be able to access the Thumbnail that is created and dragged around: var dragProxy:Thumbnail = new Thumbnail(); DragManager.doDrag(dragInitiator, ds, event, dragProxy); So here's where I capture the 'dragDrop' event: private function onDragDrop(event:DragEvent):void {...} Is there any way to access the dragImage from this DragEvent? Better way to do this? Thanks, : : ) Scott
Re: [flexcoders] Staging an AS3 for Flash 8?
Sorry Nate, You can't run an AS3/VM2 (Flash 9) .swf under the AS2/VM1 player (Flash 8). Same as you can't run a flash 7 movie in the flash 6 player. RE: I can't use getURL on myspace due to the new FP9 security features. Flash 9 uses URLLoader, and not getURL(). I'm afraid I don't have any advice for you, because I use the auto-updater supplied with SWFObject, but that requires javascript... Anyone know if you can run a flash 9 movie in the flash 8 player with limited functionality? Thanks, -Scott On 5/7/07, jnbeck86 [EMAIL PROTECTED] wrote: I have a flash embed that gets hotlinked on many of the social networks (MySpace, Bebo, Friendster, etc...). I want to port my flash application to AS3 to benefit from the new features it entails. However, my analytics report that only 86% of my users are using Flash Player 9. I want to keep my current Flash 8 version of my player as a Legacy version. What I'm trying is a swf that can load EITHER of the two versions based on the version of Flash Player. I have an AS2 version (with a note telling the user they should upgrade FP), and an AS3 version. Here's the problems that I'm running into: 1) I can't seem to get an AS3 swf to run underneath a Flash 8 published app. Using attachMovie or a loader. 2) I cannot use any javascript as my flash piece is being embedded on servers that I don't have access to. 3) I can't use getURL on myspace due to the new FP9 security features. I could have sworn I've seen this done before. I'll send cookies :D -- : : ) Scott
Re: [flexcoders] flex passing values
Simplest approach is to have one .mxml file that contains two other components, such as Input.mxml and Output.mxml. I tend to follow the Cairngorm approach, even if just by using a Singleton ModelLocator, which allows you to store values such as _searchString - input by user - globally. Input.mxml would set _searchString and Output.mxml can be notified, when change occurs there. - Scott On 5/7/07, Kulsum Arif [EMAIL PROTECTED] wrote: I am new to flex and want to design a search page: Basically once user gives his input, the search page should go away and teh results should appear. I tried doing 2 mxml files for this and passing values as query string params. The 2 page setup works but I am not able to pass values as query strings. Homepage.mxml is the page with the search input. on click of a button here the control should go to SearchByTitle.mxml. Here is the code snippet. public function SearchByTitle():void { navigateToURL(new URLRequest(SearchByTitle.html? search='+txtTitleSearch.text+'), '_self'); } How do I read the value in SearchByTitle mxml ? I have also been reading that a flex application should have only one application file and the rest should be components. I would greatly appreciate a quick response. Thanks, Kulsum -- : : ) Scott
Re: [flexcoders] DataGrid column header - wordWrap - but not break whole words
I did fumble around a bit with the header renderer, and that is probably the ultimate way to go. However, I was able to come up with a pretty low-tech solution, for the time being: http://blog.criticalpile.com/?p=13 -Scott On 4/27/07, Manish Jethani [EMAIL PROTECTED] wrote: On 4/28/07, slangeberg [EMAIL PROTECTED] slangeberg%40gmail.com wrote: Any one come up with a strategy so that labels in the DataGrid column headers (or elsewhere) can wrap, but not be broken in the midde of a word? That's the behaviour of the built-in TextField object and I don't think anything can be done about it. You could maybe write your own header renderer and write the word-wrapping logic yourself (and truncate words that are longer than the available width). -- : : ) Scott
Re: [flexcoders] Re: Will Microsoft's new Silverlight Player Kill our beloved Flex ?
If you ever watch the developer videos on Channel 9, you'll see that many MS devs have macbooks (or whatever they're called) sitting on their desks! -Scott On 4/29/07, dorkie dork from dorktown [EMAIL PROTECTED] wrote: the problem with microsoft is they live in a bubble. they live in their own little world where only windows exists. well, at the college i visit half the people have macs. i am in a college coffee / study shop with about 150 people and half have macs. this all changed when the mac books came out last year. long time windows users switched. my roomate uses a mac and loves it. not everyone uses windows. i dont' trust their cross compatible promises either. what if they do make version on mac. anyone remember ie on mac? they need to prove they have changed the way they do things (and think) before i would ever trust them. since i'm ranting, it seems, that users opinions don't matter. all they need to do is listen to their users and i do not get that from them. vista is an example of them living in a bubble. so as the web changes i do not think silverlight will progress when they do not listen to the users. On 4/29/07, simonjpalmer [EMAIL PROTECTED] wrote: Does C# kill Java? Does IE kill Firefox? Does SQLServer kill Oracle? Does Windows kill UNIX? Will Silverlight kill Flex? From my 20 odd years of software development, during which time the Microsoft hegemony has been at its apogee, none of the above are true. In fact if you want a really scalable enterprise platform you would choose the right hand side of the list above rather than the left. Where Microsoft win hands down is in Office Applications and desktop operating systems. Excel is quite possibly the best piece of desktop software ever written (Word being the worst) and long may it reign as such. Windows is crap, but it's more than good enough for your average user and most Microsoft desktop products are actually pretty good (c'mon, be generous). I regret deeply that the rest of the world doesn't have a house full of beautiful, stable, simple Macs like I do, but the reality is that they don't as Jason points out. Instead the three or four computers the normal person interacts with in their daily lives are almost exclusively running Windows (even the ATM machines and tills at the supermarket). Not a pleasant truth, but a truth nonetheless. If you are looking for broad adoption and commercial success as a software company you start with Windows. The wonderful reality, however, is that the software industry, like all others in the history of human endeavour, thrives on competition and there is space for more than one company/product/offering to survive. Adobe are not going to be Microsoft. THANK GOD! They have and in my opinion will always have, a distinct and separate offering. If they can't retain that differentiation then they don't deserve to remain in business and the market will take care of them. So this is a bit of a silly thread as far as I am concerned. The answer for me is clearly No for all the same reasons that Microsoft haven't killed any of the other things on the list at the top. They might try, but I think they should be more worried about Google and web based desktop software than Adobe and the flash player. Simon --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Bjorn Schultheiss [EMAIL PROTECTED] wrote: Hey Jason, Even if 90% of internet's users are running Windows, how many millions aren't.. If you can deploy applications that is guaranteed to only be used by Windows users, well good luck to you. Here we target creatives in the advertising industry and I don't have that luxury. Regards, Bjorn Schultheiss Senior Developer  Personalised Communication Power Level 2, 31 Coventry St. South Melbourne 3205, VIC Australia T: +61 3 9674 7400 F: +61 3 9645 9160 W: http://www.qdc.net.au ((This transmission is confidential and intended solely for the person or organization to whom it is addressed. It may contain privileged and confidential information. If you are not the intended recipient, you should not copy, distribute or take any action in reliance on it. If you believe you received this transmission in error, please notify the sender.---)) One person wrote: Everybody uses Windows, almost all the workstations are windows. Macs have IE working OK. Another responded: Think again. Think again? What kind of an argument is that? People keep brining up certain technlogies not working on Mac OS or Linux as a bad thing. Personally, I've never bought into the, that technology does not support obscure browser X or non-Windows operating system Y and therefore is doomed to fail argument. As much as I wish it were not true, Microsoft is one example of a company who has time and again developed solutions for Windows only and been
Re: [flexcoders] Re: Bug in Flex while setting DataGridColumn.width programatically?
Manfred, can you post a link to this fix? Thanks, -Scott On 17 Apr 2007 07:31:29 -0700, manfred.maierhofer [EMAIL PROTECTED] wrote: After recompiling a few times it works properly. I spend a whole day to fix this issue. Thanks a lot for your hint, Mane -- : : ) Scott
Re: [flexcoders] DataGrid column header - wordWrap - but not break whole words
Is there any reason why you can't set the headerRenderer in AS3? I'm getting the following error (and this is just pointing at the 'default' class - I want to extend it): var col:DataGridColumn = new DataGridColumn(); col.headerRenderer = IFactory(DataGridItemRenderer); --- TypeError: Error #1034: Type Coercion failed: cannot convert dii.controls.dataGridClasses::HeaderRenderer$ to mx.core.IFactory. at com.dii.modelPro.view::GridFactory$/getColumns() at com.dii.modelPro.view::GridFactory$/getGrid() at com.dii.modelPro.view.projectDetails::DetailItem/::render() at MethodInfo-4641() at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/::callLaterDispatcher2() at mx.core::UIComponent/::callLaterDispatcher() -Scott On 4/27/07, Manish Jethani [EMAIL PROTECTED] wrote: On 4/28/07, slangeberg [EMAIL PROTECTED] slangeberg%40gmail.com wrote: Any one come up with a strategy so that labels in the DataGrid column headers (or elsewhere) can wrap, but not be broken in the midde of a word? That's the behaviour of the built-in TextField object and I don't think anything can be done about it. You could maybe write your own header renderer and write the word-wrapping logic yourself (and truncate words that are longer than the available width). -- : : ) Scott
Re: [flexcoders] DataGrid column header - wordWrap - but not break whole words
Ok, disregard. Fix should be: col.headerRenderer = new ClassFactory( HeaderRenderer ); As found here: http://www.returnundefined.com/tags/as3/ -Scott On 4/30/07, slangeberg [EMAIL PROTECTED] wrote: Is there any reason why you can't set the headerRenderer in AS3? I'm getting the following error (and this is just pointing at the 'default' class - I want to extend it): var col:DataGridColumn = new DataGridColumn(); col.headerRenderer = IFactory(DataGridItemRenderer); --- TypeError: Error #1034: Type Coercion failed: cannot convert dii.controls.dataGridClasses::HeaderRenderer$ to mx.core.IFactory . at com.dii.modelPro.view::GridFactory$/getColumns() at com.dii.modelPro.view::GridFactory$/getGrid() at com.dii.modelPro.view.projectDetails::DetailItem/::render() at MethodInfo-4641() at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/::callLaterDispatcher2() at mx.core::UIComponent/::callLaterDispatcher() -Scott On 4/27/07, Manish Jethani [EMAIL PROTECTED] wrote: On 4/28/07, slangeberg [EMAIL PROTECTED] slangeberg%40gmail.com wrote: Any one come up with a strategy so that labels in the DataGrid column headers (or elsewhere) can wrap, but not be broken in the midde of a word? That's the behaviour of the built-in TextField object and I don't think anything can be done about it. You could maybe write your own header renderer and write the word-wrapping logic yourself (and truncate words that are longer than the available width). -- : : ) Scott -- : : ) Scott
[flexcoders] DataGrid column header - wordWrap - but not break whole words
Any one come up with a strategy so that labels in the DataGrid column headers (or elsewhere) can wrap, but not be broken in the midde of a word? EX: Actual Response NOT: Actual Respons e Thanks, : : ) Scott
Re: [flexcoders] Re: Mapping xml objects to custom classes? [new subject]
Right now, my problem is using XML as a dataprovider in DataGrids. The sorting is really messed up, when you use xml. I've tried using plain objects containing the same values as the XML, and sorting works perfectly. It looks like this is due to the comparison functionality seeing each row as XML and probably having no good way to compare two. Then again, I'm not sure why it works better with Objects, other than the parameters all being strings. Yet, numeric sort still works fine, even with the string values! So, anyone have any good approaches to making the data sortable using XML(?), or do I just map to plain Objects, (which is what I'm going to do, in the next hour!). Eventually Paul, I will probably be interested in mapping XML to classes, when setting up real ValueObjects for server transfer. My employer really likes POX! -Scott On 06 Apr 2007 20:01:55 -0700, Paul DeCoursey [EMAIL PROTECTED] wrote: Not yet, but this is something I've been thinking a lot about. I've started working on some proof of concept code. What are your specific requirements? Perhaps I could start work on this project with your help. Paul --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, slangeberg [EMAIL PROTECTED] wrote: Anyone know of any AS3 systems for mapping XML to custom classes, such as this Castor? Seems like a cool idea (and I could use it right now ;) : http://www.castor.org/xml-framework.html -Scott -- Forwarded message -- From: slangeberg [EMAIL PROTECTED] Date: Apr 6, 2007 4:21 PM Subject: Java Castor - AS3 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Anyone know of any AS3 systems for mapping XML to custom classes, such as this Castor? Seems like a cool idea (and I could use it right now ;) : http://www.castor.org/xml-framework.html : : ) Scott -- : : ) Scott -- : : ) Scott
[flexcoders] Java Castor - AS3
Anyone know of any AS3 systems for mapping XML to custom classes, such as this Castor? Seems like a cool idea (and I could use it right now ;) : http://www.castor.org/xml-framework.html : : ) Scott
[flexcoders] Mapping xml objects to custom classes? [new subject]
Anyone know of any AS3 systems for mapping XML to custom classes, such as this Castor? Seems like a cool idea (and I could use it right now ;) : http://www.castor.org/xml-framework.html -Scott -- Forwarded message -- From: slangeberg [EMAIL PROTECTED] Date: Apr 6, 2007 4:21 PM Subject: Java Castor - AS3 To: flexcoders@yahoogroups.com Anyone know of any AS3 systems for mapping XML to custom classes, such as this Castor? Seems like a cool idea (and I could use it right now ;) : http://www.castor.org/xml-framework.html : : ) Scott -- : : ) Scott
Re: [flexcoders] VBox, constraint based layout not clipping content
The trick I just used for this is to set maxHeight on the 'scrolling' container. Will allow dynamic height add, to point, before scrolls kick in. -Scott On 3/9/07, scott_flex [EMAIL PROTECTED] wrote: Any particualar reason why a Vbox won't correctly clip content and show scrollbars when the object is using constraint based layout positioning? I'm adding up to 50 child objects to the vbox and want the scrollbars to appear so the user can scroll to see them all. If i set the height, and width everything works as expected, so i've manually tapped into the resize event on my parent canvas and manually set the height and width to get the effect of a constraint based layout. Doesn't seem like i should have to do this. If i used the top,left,right,bottom properties, my VBox just expands its size to include all child objects added... which then forces the scroll bars on it's parent container, not what i want. Maybe i'm doing something wrong... -- : : ) Scott
Re: [flexcoders] What's your average amount of memory usage in Eclipse?
Yeah, mine is regularly that high (~300MB) or even more. I set my limit to the exact same (768MB), and it's been running much better! So, no crashes, here. You may want to look at all your installed plug-ins. They don't always play nice. I had most problems with a PHP plug-in, but it may have just been a combination of them! -Scott On 29 Mar 2007 08:08:26 -0700, Brian Holmes [EMAIL PROTECTED] wrote: I'm using the FB plugin and have had crashes occurring in Eclipse regularly over the last few days, With weird erros about not being able to open workspaces and what nots. I upped my memory to 768m in eclipse.ini and was wondering what other people's javaw.exe is running at in memory usage? Mine's been hovering around 300mb and it just seems wrong. b. -- *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. *** -- : : ) Scott
Re: [flexcoders] What's your average amount of memory usage in Eclipse?
-vmargs -Xms256m -Xmx768m On 3/29/07, dorkie dork from dorktown [EMAIL PROTECTED] wrote: can you guys post your eclipse ini or just the line of code that you changed? i have a couple of different memory values i'm not sure which to change. On 29 Mar 2007 09:40:46 -0700, slangeberg [EMAIL PROTECTED] wrote: Yeah, mine is regularly that high (~300MB) or even more. I set my limit to the exact same (768MB), and it's been running much better! So, no crashes, here. You may want to look at all your installed plug-ins. They don't always play nice. I had most problems with a PHP plug-in, but it may have just been a combination of them! -Scott On 29 Mar 2007 08:08:26 -0700, Brian Holmes [EMAIL PROTECTED] wrote: I'm using the FB plugin and have had crashes occurring in Eclipse regularly over the last few days, With weird erros about not being able to open workspaces and what nots. I upped my memory to 768m in eclipse.ini and was wondering what other people's javaw.exe is running at in memory usage? Mine's been hovering around 300mb and it just seems wrong. b. -- *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. *** -- : : ) Scott -- : : ) Scott
Re: [flexcoders] What's your average amount of memory usage in Eclipse?
I posted eclipse.ini from the eclipse folder. Not sure if/how you can change these for a FlexBuilder (not plug-in) install. -Scott On 29 Mar 2007 11:43:46 -0700, dorkie dork from dorktown [EMAIL PROTECTED] wrote: forgot to mention, this file is FlexBuilder.ini in the C:\Program Files\Adobe\Flex Builder 2 directory. not sure what that minheap deal is or does. On 3/29/07, dorkie dork from dorktown [EMAIL PROTECTED] wrote: thats odd. i must have changed it at some point in the past. -vmargs -Xms256M -Xmx768M -XX:MinHeapFreeRatio=20 @*Dimitrios - i agree. i had to do this when i was working with java environment and flex builder plugin. took down the number of crashes completely. * On 29 Mar 2007 11:38:25 -0700, slangeberg [EMAIL PROTECTED] wrote: -vmargs -Xms256m -Xmx768m On 3/29/07, dorkie dork from dorktown [EMAIL PROTECTED] wrote: can you guys post your eclipse ini or just the line of code that you changed? i have a couple of different memory values i'm not sure which to change. On 29 Mar 2007 09:40:46 -0700, slangeberg [EMAIL PROTECTED] wrote: Yeah, mine is regularly that high (~300MB) or even more. I set my limit to the exact same (768MB), and it's been running much better! So, no crashes, here. You may want to look at all your installed plug-ins. They don't always play nice. I had most problems with a PHP plug-in, but it may have just been a combination of them! -Scott On 29 Mar 2007 08:08:26 -0700, Brian Holmes [EMAIL PROTECTED] wrote: I'm using the FB plugin and have had crashes occurring in Eclipse regularly over the last few days, With weird erros about not being able to open workspaces and what nots. I upped my memory to 768m in eclipse.ini and was wondering what other people's javaw.exe is running at in memory usage? Mine's been hovering around 300mb and it just seems wrong. b. -- *** The information in this e-mail is confidential and intended solely for the individual or entity to whom it is addressed. If you have received this e-mail in error please notify the sender by return e-mail delete this e-mail and refrain from any disclosure or action based on the information. *** -- : : ) Scott -- : : ) Scott -- : : ) Scott
Re: [flexcoders] Data binding will not be able to detect changes... ?
It's because the .default node is not bindable (it's an anonymous element of an xml object). Doesn't the warning mention something about not implementing the IEventDispatchable (or other!) interface? What is the best practice for this? I know you could point a bindable property to that node itself, but may not be what you're looking for, such as: [Bindable] var default: ObjectProxy; //this should get picked up by bindings default = DALocationsXML.default; -Scott On 27 Mar 2007 06:45:50 -0700, Greg Morphis [EMAIL PROTECTED] wrote: I've got an XML List with information something like: locations default location address1=123 Street locationid=1234 ... / /default I have it declared in my Model as an XMLLIst: public var DALocationsXML:XMLList; and in one of my views, I'm trying to load the data into a List.. dataProvider={MyModel.getInstance().DALocationsXML.default} I don't have an error but I have a warning telling me Data binding will not be able to detect changes to XMLList default, need an XML instance. How can I knock this warning out? -- : : ) Scott
Re: [flexcoders] Registration point woes
I've started adapting Schall's code, and am getting close (view source): http://criticalpile.com/lab/DynamicRegistration/DynRegMain.html However, I just noticed that my alignment seems to be off, if you enter arbitrary numbers, rather than using the arrows on the number steppers! Also, I'd like to design this to use some kind of proxy, so you can still utilize the flex framework effects such as Move and Rotate. Any ideas / improvements accepted, as I haven't had time to look at it lately! -Scott On 3/26/07, Merrill, Jason [EMAIL PROTECTED] wrote: You could adapt this for use: http://www.darronschall.com/weblog/archives/54.cfm Jason Merrill Bank of America GTO Learning Leadership Development eTools Multimedia Team -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Daniel Holth *Sent:* Sunday, March 25, 2007 7:29 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Registration point woes I'm developing my first Flex component, and I'm having some trouble with registration points and images. I'm loading data from flickr, and have a custom class that extends mx:Image. I'm trying to create a rollOver effect that will increase the size of the clip from its CENTER, but right now the registration point is the top left... I've dealt with this issues in Flash, but I can't seem to figure out a way to do it in Flex. I tried changing my custom component to be a canvas, and adjust the position of the image by width/2 and height/2 but then it only shows a quarter of the Image. Could someone help me out on how to get Images/components to scale or register from their actual center, not the top left? Thanks! -DC http://blog.dcholth.com aim: zotropix -- : : ) Scott
Re: [flexcoders] Re: Caching problem
You don't experience this with IE? This has followed me no matter where I've worked, what server I'm dealing with! What am I doing wrong here (other than using IE)? -Scott On 26 Mar 2007 01:59:50 -0700, Tom Chiverton [EMAIL PROTECTED] wrote: On Friday 23 Mar 2007, slangeberg wrote: Hmm, i've had this experience on both Apache IIS. I'm not talking about a server cahce, I believe this is browser related. Upload SWF to server, and do not see change in browser till cache is cleared. No one else experiences this? We don't, no. Maybe your web server is sending funny headers, or your web browser has odd settings. -- Tom Chiverton Helping to augmentatively harness synergistic systems On: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- : : ) Scott
Re: [flexcoders] Re: Caching problem
went away after I reset IE to check every time far a new file Ah yes, that's right. I used to do that, but it doesn't gaurantee that my users have the same settings. Hence, my dilemma! Thanks, -Scott On 26 Mar 2007 07:15:48 -0700, Paul DeCoursey [EMAIL PROTECTED] wrote: I used to have this issue, but I found it went away after I reset IE to check every time far a new file. It also made a big difference to make sure that the server was sending the correct caching headers. Check the HEAD on a request to determine if it is sending the correct expires header. I only do this for development. Production environments should be able to run without problems if there are browsers caching things. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, slangeberg [EMAIL PROTECTED] wrote: You don't experience this with IE? This has followed me no matter where I've worked, what server I'm dealing with! What am I doing wrong here (other than using IE)? -Scott On 26 Mar 2007 01:59:50 -0700, Tom Chiverton [EMAIL PROTECTED] wrote: On Friday 23 Mar 2007, slangeberg wrote: Hmm, i've had this experience on both Apache IIS. I'm not talking about a server cahce, I believe this is browser related. Upload SWF to server, and do not see change in browser till cache is cleared. No one else experiences this? We don't, no. Maybe your web server is sending funny headers, or your web browser has odd settings. -- Tom Chiverton Helping to augmentatively harness synergistic systems On: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- : : ) Scott -- : : ) Scott
Re: [flexcoders] If im using the same code twice, should i re-use?
-*will it be ok to create a class that just handle the service? Not just ok, but great! *does it really worth considering we are using the code just 2 times? *why? Just wait till you need to modify anything about that service, like the URL. Who wants to track down multiple instances that could just live in one place? Ounce of prevention = Pound of cure! -Scott On 25 Mar 2007 16:07:21 -0700, Yaison Alcantara [EMAIL PROTECTED] wrote: Hi coders, This is a newbie question, finding its way to The enlightenment of Best-Practices and Re-use. Consider this case: Custom Component A --+ mx:Script ![CDATA[ //...logic for comp A private function getRecords():void{ var params:Object = new Object(); params.method = 'company.getRecords'; params.table = 'Employees'; srv.send(params); } ]] /mx:Script mx:HTTPService id=srv url=http://company.com/dbmanager// //components for comp A... -+ | | |-*will it be ok to create a class that just handle the service? *does it really worth considering we are using the code just 2 times? *why? |-*when should I re-use? | | Custom Component B --+ mx:Script ![CDATA[ //...logic for comp B private function getRecords():void{ var params:Object = new Object(); params.method = 'company.getRecords'; params.table = 'Employees'; srv.send(params); } ]] /mx:Script mx:HTTPService id=srv url=http://company.com/dbmanager// //components for comp B... -+ that was all i hope you get the main idea. any tips, guidance, etc.. will be graceful. thanks yaison. -- : : ) Scott
[flexcoders] Re: Caching problem
Much better approach! Now, my question is, what do people do to prevent caching of swf files themselves? Here's the setup: I'm deploying a business app, and want all users to see the update to the SWF. However, I don't want to tell everyone to clear their cache. Should I just pass a version number to the swf request, to update to that point, ie - point to: $vers = 1.0.2; $path = /flash/myMovie.swf?vers= . $vers; object file=$path...etc. Is there a best practice for this kind of thing? I'm also curious how this will apply to Module development in Flex. How do I make sure that people have current modules, without blasting their cache, every time? Thanks, -Scott On 3/14/07, Thomas Fowler [EMAIL PROTECTED] wrote: I'm sure someone has already mentioned this but you could always append the date in milliseconds to the query string as well. Like so: var date : Date = new Date(); url:String = resource + ?d= + date.UTC(); - Original Message - From: slangeberg [EMAIL PROTECTED] To: flexcoders@yahoogroups.com; Flashcoders mailing list flashcoders@chattyfig.figleaf.com Sent: Wednesday, March 14, 2007 10:52 AM Subject: [Flashcoders] Re: [flexcoders] Re: Caching problem That'll work with any cache-busting you need to do. I use it in testing, to un-cache the swf file itself, when viewed on server. Ie: send rand var in url and if it's present, pass it in to swf call (swfobject + php, here): var so = new SWFObject( ProductBuilder.swf?rand=?=$rand?, product_builder, 100%, 100%, 9, #FF); Saves me the 'pain' of going through some menu to clear browser's cache, not to mention losing your browser's cache, in order to update one element! -Scott On 14 Mar 2007 08:44:42 -0700, Alex [EMAIL PROTECTED] wrote: Wow! O_O' Works flawlessly!! :-D Many thanks for that trick dude! --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, slangeberg [EMAIL PROTECTED] wrote: With Flash, I've learned to do the lo-tech method of attaching random numbers to the path. Simple, but it's been effective!: url:String = resource + ?rand= + Math.floor(Math.random() * 10); -Scott On 14 Mar 2007 08:07:52 -0700, Alex [EMAIL PROTECTED] wrote: Hi there! I have an xml file that needs to be loaded eventually using a URLRequest. I'm trying to avoid loading a cached file using these headers: urlRequest.requestHeaders.push(new URLRequestHeader(Cache- Control, no-cache, no-store, max-age=0, must-revalidate)); urlRequest.requestHeaders.push(new URLRequestHeader (Expires, Fri, 30 Oct 1998 14:19:41 GMT)); urlRequest.requestHeaders.push(new URLRequestHeader (Pragma, no-cache)); It works ok in firefox and IE6.0.2900 , but I still obtain a cached file in IE6.0.3790+ and IE7. Do I need to add any more headers? or what's the problem here? Thanks in advance -- : : ) Scott -- : : ) Scott ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- : : ) Scott -- : : ) Scott
Re: [flexcoders] OS X Dock implemented in Flex
Doug used Ely Greenfield's(?) fish-eye to great effect: http://dougmccune.com/blog/2007/03/02/ -Scott On 3/23/07, Janis Radins [EMAIL PROTECTED] wrote: Thats funny, I just created my version of the very same thing :) http://www.mediaverk.lv/trash/macMv0.5 2007/3/23, Allen Riddle [EMAIL PROTECTED]: Hey everyone, my coworker created an OS X dock in Flex for our use in our application. He just posted it on his web site. If enough people dig it, he's going to post the code so everyone can partake. Check it out. http://www.timothyhuertas.com *Allen Riddle* Sofware Development x3217 -- : : ) Scott
Re: [flexcoders] Compiling themes / modules / CSS using Flex Builder?
Modules are compiled by creating a module, and adding it to the project's Application list. I'm assuming you're referring to the Module tag in v2.0.1. -Scott On 23 Mar 2007 05:57:04 -0700, Bryan Clover [EMAIL PROTECTED] wrote: Hi All, I have been able to use the command-line compilers to compile themes, modules, etc. But, I was wondering if there's a way to do this within Flex Builder? I've read through the Flex documentation, but I can't seem to find any detailed information on how to do this. Am I missing something? Is it even possible? If so, can anyone point me to a step-by-step example? Thanks in advance, =BC= -- : : ) Scott
Re: [flexcoders] Re: Caching problem
=X3oDMTJka283MDRnBF9TAzk3MzU5NzE0BF9wAzUEZ3JwSWQDMTIyODYxNjcEZ3Jwc3BJZAMxNzA1MDA3MjA3BHNlYwNzbG1vZARzdGltZQMxMTczODg0ODcy?t=msk=Software+development+companyw1=Software+development+toolw2=Software+developmentw3=Software+development+servicesw4=Home+design+softwarew5=Software+development+companyc=5s=152g=2.sig=v7C6JKvvBLf0I6WC1FPTvA Cool Websites Know a good site?http://us.ard.yahoo.com/SIG=12jpbt4mt/M=493064.10322723.10977639.9706567/D=groups/S=1705007207:NC/Y=YAHOO/EXP=1173892072/A=4438988/R=0/SIG=111nufaaj/*http://www.bix.com/contest/4746 Share and vote on Bix.com http://bix.com/! New business? Get new customers.http://us.ard.yahoo.com/SIG=12i5bi2ht/M=493064.9803227.10510220.8674578/D=groups/S=1705007207:NC/Y=YAHOO/EXP=1173892072/A=3848640/R=0/SIG=131an6mds/*http://searchmarketing.yahoo.com/arp/srchv2.php?o=US2002cmp=Yahooctv=Groups1s=Ys2=s3=b=50 List your web site in Yahoo! Search. Yahoo! Groups Start a grouphttp://groups.yahoo.com/start;_ylc=X3oDMTJwZWY5M2o0BF9TAzk3MzU5NzE0BF9wAzMEZ3JwSWQDMTIyODYxNjcEZ3Jwc3BJZAMxNzA1MDA3MjA3BHNlYwNuY21vZARzbGsDZ3JvdXBzMgRzdGltZQMxMTczODg0ODcy in 3 easy steps. Connect with others. . On 23 Mar 2007 08:49:04 -0700, Tom Chiverton [EMAIL PROTECTED] wrote: On Friday 23 Mar 2007, slangeberg wrote: Now, my question is, what do people do to prevent caching of swf files themselves? We use a web server / accelerator that isn't broken :-) Seriously - if you change a file on disk, and your web server serves up the now non-existant file, you have big problems. -- Tom Chiverton Helping to dramatically consolidate out-of-the-box platforms On: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- : : ) Scott
Re: [flexcoders] FDS + stand-alone .swf files?
Awesome. Thanks for the heads-up! -Scott On 21 Mar 2007 13:11:00 -0700, Peter Farland [EMAIL PROTECTED] wrote: Not true, you can compile using the Flex SDK with the -services command line switch to point to an FDS services-config.xml file. -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *slangeberg *Sent:* Tuesday, February 27, 2007 4:49 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] FDS + stand-alone .swf files? Just read an old article from Forta ( CF + flex 2 ) where he mentions that using FDS in Flex 2 will still require the server to publish the swf. Is this true, or can you use locally compiled / stand-alone .SWF files with FDS? Thanks, : : ) Scott -- : : ) Scott
Re: [flexcoders] Runtime Memory Problems
Only after I hit a saturation point (Around 2.5Meg) would it Garbage Collect. My machine has 2Gig of Ram. You're worried about a Flex app using 2.5MB memory? That's nearly nothing. I've seen apps use upwards of 100M, and that's still not much compared to 2GB. If you look at the articles online and perhaps posts within this list, you'll see that there are indeed thresholds within the player, to kick in garbage collection, but in this instance, i don't see the issue.(?) -Scott On 15 Mar 2007 08:41:48 -0700, One Person [EMAIL PROTECTED] wrote: Description: We are creating a web-app built with Flex 2. This app uses some very large image files (From around 256K to over 600K) We have an image viewer section of our Flex app that will allow the user to move from one image to another. I was noticing that with our app in IE7 that memory useage would climb each time we grabbed a new image but even after letting it set for several minutes the memory usage would not go down. It was acting as if Garbage Collection was not getting called. So I added all kinds of code to make sure that we were letting go of the previous images to allow Garbage Collection to work. After 3 days of trying to track down the problem I decided to create a smaller Flex app that only used our image viewer control to limit the number of variables in the problem. After a few hours I still could not figure out the problem so I replace our image view with a standard mx:Image tag. The problem still existed after doing this. Having take our code out of the picutre I decided to compare results in FireFox. FireFox would Garbage Collect fairly quickly and the problem did not seem to exist using my test Flex app in FireFox. From what I can tell, IE7 and Flash (version 9.0.28.0) do not seem to work well at allowing Garbage Collection to work. I have the same version of Flash installed in FireFox 2.0.0.2 and there does not seem to be any problem there. The code below is what I used in my mxml file. To test it you will need to point to some kind of large images that you have access to. The images that I was using are on an internal network and so are unavailable to anyone on the outside. ?xml version=1.0 encoding=utf-8? mx:Application layout=absolute xmlns:mx=http://www.adobe.com/2006/mxml; initialize=init() mx:Script ![CDATA[ public var urls:Array = new Array(); public var index:int = 0; [Bindable] public var tempUrl:String; private function init() : void { urls.push( http://10.7.2.8/07026/07026_00115.jpg; ); urls.push( http://10.7.2.8/07026/07026_00116.jpg; ); urls.push( http://10.7.2.8/07026/07026_00117.jpg; ); urls.push( http://10.7.2.8/07026/07026_00118.jpg; ); urls.push( http://10.7.2.8/07026/07026_00119.jpg; ); urls.push( http://10.7.2.8/07751/07751_00473.jpg; ); urls.push( http://10.7.2.8/07751/07751_00474.jpg; ); urls.push( http://10.7.2.8/07751/07751_00475.jpg; ); urls.push( http://10.7.2.8/07751/07751_00476.jpg; ); urls.push( http://10.7.2.8/07751/07751_00477.jpg; ); urls.push( http://10.7.2.8/07751/07751_00478.jpg; ); urls.push( http://10.7.2.8/07751/07751_00479.jpg; ); urls.push( http://10.7.2.8/42401/42401_.JPG; ); urls.push( http://10.7.2.8/42401/42401_0002.JPG; ); urls.push( http://10.7.2.8/42401/42401_0003.JPG; ); urls.push( http://10.7.2.8/42401/42401_0004.JPG; ); urls.push( http://10.7.2.8/42401/42401_0005.JPG; ); urls.push( http://10.7.2.8/42401/42401_0006.JPG; ); urls.push( http://10.7.2.8/42401/42401_0007.JPG; ); urls.push( http://10.7.2.8/42401/42401_0008.JPG; ); index = 0; setCurrentIndex(); } private function setCurrentIndex() : void { img.source = urls[index]; } private function previous_Click() : void { if( --index 0 ) { index = urls.length-1; } setCurrentIndex(); } private function next_Click() : void { if( ++index = urls.length ) { index = 0; } setCurrentIndex(); } ]] /mx:Script mx:Grid width=100% height=100% mx:GridRow width=100% height=30 mx:GridItem width=100% height=100% mx:Button label=lt; click=previous_Click()/ mx:Button label=gt; click=next_Click()/ /mx:GridItem /mx:GridRow mx:GridRow width=100% height=100% mx:GridItem width=100% height=100% mx:Image id=img source={tempUrl} width=100% height=100%/ /mx:GridItem /mx:GridRow /mx:Grid /mx:Application I can't find a way to post my images so I hope this description is good enough. In IE7 the memory would climb each time I would move to the next image. On the left of this graph I loaded several images and then let IE7 sit. After a few minutes, and memory staying where it was, I continued click next to load images. Only after I hit a saturation point (Around 2.5Meg) would it Garbage Collect. My machine has 2Gig of Ram. The next rise in the graph is where I kept loading images over and over until the memory usage was about the same as just before the garbage collection happened the previous time. I let that sit for a while and then tried to load one more image. That caused the garbage collection to happen. The next
Re: [flexcoders] Determining the idle state of a flex application
Could use the built-in idle event: http://livedocs.adobe.com/flex/2/langref/mx/managers/SystemManager.html#event:idle -Scott On 3/3/07, Rick Root [EMAIL PROTECTED] wrote: Does anyone have any suggestions for monitoring idleness of a Flex application? The way my app works, pretty much any request to the server will renew a cookie for another 30 minutes.. so I could just have flex make a generic request every 10 minutes or so to avoid idling out, but I don't want to do that. What I'd like to do is perform that request - say every 5 minutes - if there has been any kind of activity in the flex app.. keyboard or mouse activity.. that way the server session stays active, and then if the user has been idle for more than 20 minutes (no keyboard or mouse activity) to actually blank the flex app window and pop up a login window, forcing the user to reauthenticate. I'm just not entirely sure of the best way to go about this. Rick -- I'm not certified, but I have been told that I'm certifiable... Visit http://www.opensourcecf.com today! -- : : ) Scott
Re: [flexcoders] Caching problem
With Flash, I've learned to do the lo-tech method of attaching random numbers to the path. Simple, but it's been effective!: url:String = resource + ?rand= + Math.floor(Math.random() * 10); -Scott On 14 Mar 2007 08:07:52 -0700, Alex [EMAIL PROTECTED] wrote: Hi there! I have an xml file that needs to be loaded eventually using a URLRequest. I'm trying to avoid loading a cached file using these headers: urlRequest.requestHeaders.push(new URLRequestHeader(Cache- Control, no-cache, no-store, max-age=0, must-revalidate)); urlRequest.requestHeaders.push(new URLRequestHeader (Expires, Fri, 30 Oct 1998 14:19:41 GMT)); urlRequest.requestHeaders.push(new URLRequestHeader (Pragma, no-cache)); It works ok in firefox and IE6.0.2900, but I still obtain a cached file in IE6.0.3790+ and IE7. Do I need to add any more headers? or what's the problem here? Thanks in advance -- : : ) Scott
Re: [flexcoders] Form Handling?
I think the Form docs show an example of binding the inputs to a Model, but you could substitute another object/class in its place. -Scott On 14 Mar 2007 07:54:00 -0700, Brian Dunphy [EMAIL PROTECTED] wrote: Not a native feature built in to Flex I don't think, however one way to accomplish this would be to loop through each of the children of the Form (referenced by id), and then loop through each of the children of the that child, see if they are of type TextInput, TextArea, ComboBox, CheckBox, RadioButton, etc -- and then store the id/value of that child in an ArrayCollection for sending later. Does that sound like what you're after? Brian On 3/14/07, Kevin [EMAIL PROTECTED] lists%40kevinmerritt.com wrote: When handling form submission. Is there a way to grab all the fields wrapped in a specific Form tag and send them as an object to a function much like a GET or POST works in HTML. a form example: mx:Form id=userForm mx:FormItem label=Login ID required=true mx:TextInput id=username width=100 restrict=^ / /mx:FormItem mx:FormItem label=User Name required=true mx:TextInput id=firstname width=75 mx:TextInput id=lastname width=75 / /mx:FormItem /mx:Form mx:ControlBar mx:ButtonBar id=adduser dataProvider={buttonlist} itemClick=clickHandler(event);/ /mx:ControlBar can I grab all the values of the submission in as userForm.values (or something like that) OR do I have to get each one individually as username.text firstname.text lastname.text ...blah, blah... thanks, Kevin -- Brian Dunphy -- : : ) Scott
Re: [flexcoders] standalone exe
Double-click your .SWF. - Select 'File' menu - Select 'Create Projector...' -Scott On 14 Mar 2007 09:36:03 -0700, Chad Gray [EMAIL PROTECTED] wrote: Can flex apps be run as a standalone flash executables? This way no browser is needed. -- : : ) Scott
Re: [flexcoders] Re: Caching problem
That'll work with any cache-busting you need to do. I use it in testing, to un-cache the swf file itself, when viewed on server. Ie: send rand var in url and if it's present, pass it in to swf call (swfobject + php, here): var so = new SWFObject( ProductBuilder.swf?rand=?=$rand?, product_builder, 100%, 100%, 9, #FF); Saves me the 'pain' of going through some menu to clear browser's cache, not to mention losing your browser's cache, in order to update one element! -Scott On 14 Mar 2007 08:44:42 -0700, Alex [EMAIL PROTECTED] wrote: Wow! O_O' Works flawlessly!! :-D Many thanks for that trick dude! --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, slangeberg [EMAIL PROTECTED] wrote: With Flash, I've learned to do the lo-tech method of attaching random numbers to the path. Simple, but it's been effective!: url:String = resource + ?rand= + Math.floor(Math.random() * 10); -Scott On 14 Mar 2007 08:07:52 -0700, Alex [EMAIL PROTECTED] wrote: Hi there! I have an xml file that needs to be loaded eventually using a URLRequest. I'm trying to avoid loading a cached file using these headers: urlRequest.requestHeaders.push(new URLRequestHeader(Cache- Control, no-cache, no-store, max-age=0, must-revalidate)); urlRequest.requestHeaders.push(new URLRequestHeader (Expires, Fri, 30 Oct 1998 14:19:41 GMT)); urlRequest.requestHeaders.push(new URLRequestHeader (Pragma, no-cache)); It works ok in firefox and IE6.0.2900, but I still obtain a cached file in IE6.0.3790+ and IE7. Do I need to add any more headers? or what's the problem here? Thanks in advance -- : : ) Scott -- : : ) Scott
Re: [flexcoders] Web Services: Nearing Wit's End
Give me your url and the calls your trying to make. I'll see if i can set up a sample for you! Oh yeah, service capture is indeed awesome. 30 day trial will be enough to convince you to pay the $30. It's been worth closer to $1-2K in savings of lost time debugging server transfers, for me! Best part it picks up Remoting connections and is only one I know of. However, the Xray Connector is probably a viable free alternative. You'll need to search for the AS3 XRayLog code, as I don't know where I got it. Interface: http://osflash.org/xray?s=xray http://www.rockonflash.com/xray/flex/Xray.html -Scott On 10 Mar 2007 01:12:57 -0800, Shibli Zaman [EMAIL PROTECTED] wrote: I've followed every single tutorial on consuming Web Services in Flex and not a single one works with anything other than simple demo web services available on the net. I've followed all the different methods documented and followed each and every step in detail. Now, I'm at the point that I am appealing for someone to take a look at my WSDL file and tell me what I am doing wrong. If you're interested in helping me out please let me know. Thanks. --Shibli -- : : ) Scott
Re: [flexcoders] Re: Problems with The E4X approach to XML processing
I think in the docs, these should be returning XMLList, technically. Not sure if it evals to XML in typeof(). -Scott On 3/5/07, greg h [EMAIL PROTECTED] wrote: Hi Allen, Glad to be of help. btw ... you wrote: it seems like that the return type is ArrayCollection or XMLList(I'm not sure) I did some tests using the ActionScript typeOf() operator and all values returned from the E4x operators are showing as typeOf XML. For example, I popped the following into the MXML from my last post: mx:TextArea text={typeof(blockXML.block[0])} / I did a few more statements than just the one above, and regardless of the nodeKind(), typeOf() consistently returned XML. Best regards, g -- : : ) Scott
Re: [flexcoders] Re: cairngorm strategy question
Actually, SoundManager doesn't seem to fit MVC. You have no view and no user input, correct? Why not just use a Command (or whatever patterns fit) structure without worrying too much about Cairngorm..? Cairngorm's great and all, but it is intended to manage large applications with many views, in the end. Looking back at your orig. post, looks like Command/Event structure may be just fine, but that also doesn't mean you need to use the CairngormCommand (if such exists). maybe what you really want is a state machine that fires some events (probably). That state machine could very well sit in your model and fire events. Or not! You might want to take a look at the concept of CRC's ( http://en.wikipedia.org/wiki/Class-Responsibility-Collaboration_card) as a starting point. In the end, KISS works! -Scott On 05 Mar 2007 19:15:18 -0800, hank williams [EMAIL PROTECTED] wrote: Thanks guys, I still dont know what I am going to do, but it is very helpful to hear the arguments. Sometimes it is really helpful just to get other peoples views. Obviously this is a bit of a gray area and there is no *wrong* answer here, which is why nuance and opinion are quite helpful. Regards, Hank On 3/5/07, JWOpitz [EMAIL PROTECTED] jwopitz%40gmail.com wrote: I should probably clarify a few things. If you have MVC, and I had to qualify a SoundManager class as one of those, I would probably see it first as a command class. Manager type classes generally are of this nature anyway. But that can easily be argued to say Sound is also a view type nature too and there is enough supporting information to be so. Maybe this is more about personal preference as I can see both sides. As to why I don't like the Model doing command-ish like things is that again it is not its responsibility. Now that is not too say that it can't dispatch events. In fact when you have a [Bindable] class, it automatically dispatches propertyChange events. So that is perfectly acceptable in my book. In fact if you look in the flex2 reference material and search metadata, it explains how this works internally and how you can do it manually. I do not, however, like methods in the Model aside from getters/setters. Many of the developers on my team, however do like to stick methods (not getters/setters) in the model. I don't like it and advocate against it. For instance we have a customizable dataGrid where users can add various column types with specific data. I suggested having a command-type class build columns for it. However, my teammates wanted to have a method in the model. For what reasons I do not now. All I know is that although I love democracy in terms of politics, I cannot stand it in application development. Sorry for that. Just a rant and rave for a sec. Back to the point though, to maintain consistency with the MVC framework, some sort of ColumnManager would be appropriate and would be in the command family. I am not any kind of MVC purist and occasionaly bend the rules or do something questionable with regards to what we have been discussing. But when developers start deviating dramatically from the core purposes of what a model is, what a command is, what a view is, then I will raise an eyebrow and possibly a stink. Again my 2 cents. Hope it helps in your decision making. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Troy Gilbert [EMAIL PROTECTED] wrote: Coming from a game development background, I always consider sound to be apart of the view. Generally, I consider anything directly consumed by the user to be view while internal state that has meaning independent of the view is the model. So, while your sound player does maintain state (the currently playing sound, the current position in the sound being played), you need to answer for yourself whether that state is on par with (to use a trivial example) the contacts in an address book or the position of a scroll bar on a text box. If the sounds are used to convey information about state, then it sounds to me they're more like scrollbars. If the sounds *are* your state that you're concerned with (like an audio editing application), then they should be in the model. Another way to judge it: if you were going to persist the current state of your application to disk, would you worry about persisting the state related to sound? Or to put it another way: if I was forced to manipulate the data in your application through an API instead of a UI, do I care about the sounds or are they only there for the pleasure of the human audience? Troy. On 3/5/07, hank williams [EMAIL PROTECTED] wrote: Thanks, Make a SoundManager Singleton class that extends the EventDispatcher. That way if you make use of the basic Flex events, you can then have the soundManager instance assign its event handlers. This is the way the code currently works. As for using the
Re: [flexcoders] Re: Dynamically creating item IDs
Believe you need to pass the event object: mx:TextInput preinitialize=assignID(event)/ But, that's a pretty good idea! -Scott On 3/2/07, bhaq1972 [EMAIL PROTECTED] wrote: maybe your trying to do something like this mx:TextInput preinitialize=assignID()/ private function assignID(event:FlexEvent):void { //read your xml file and get id var sID:String = assign your id from your xml file here; //assign this textinput's id event.currentTarget.id = sID; } --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Andrew Trice [EMAIL PROTECTED] wrote: What do you mean? That statement very vague. Can you create variables dynamically... yes. Can you use reflection and introspection into classes... yes. Can you create UI components at runtime... yes. Can flex compete with ajax... absolutely. _ Andrew Trice Cynergy Systems, Inc. http://www.cynergysystems.com Blog: http://www.cynergysystems.com/blogs/page/andrewtrice Email: [EMAIL PROTECTED] Office: 866-CYNERGY From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of Clint Tredway Sent: Thursday, March 01, 2007 4:19 PM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: Re: [flexcoders] Re: Dynamically creating item IDs what do you mean by 'id' On 3/1/07, thetexaspsycho2003 [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto: flexcoders% flexcoders%25 40yahoogroups.com , thetexaspsycho2003 thetexaspsycho2003@ wrote: Is there a way to dynamically create an item's ID? For example pulling it in from a XML file? I guess from the lack of replies there is no way of doing this. If so, this is very disappointing. The ability to create IDs on-the-fly is very helpful in other technologies, such as AJAX. -- http://indeegrumpee.spaces.live.com/ http://indeegrumpee.spaces.live.com/ -- : : ) Scott
Re: [flexcoders] Apollo Book: Apollo for Adobe Flex Developers Pocket Guide
Oh yeah, did he say: limited to 2g As in a 2GB POST limit? That doesn't seem like much of a limit. I may question the logic of posting a 2G file! If that's not the current limit, what is? Tom, what's the current method you're referring to, for 'sending' files to server? -Scott On 3/2/07, Tom Chiverton [EMAIL PROTECTED] wrote: On Thursday 01 Mar 2007, Impudent1 wrote: So am I to take this that Apollo will not let me deal with a remote filesystem? If I cannot read/write files from a workstation to a server, or deal with a remote data connection, Apollo suddenly seems really useless for my app :( You can always send the file to the server, same as you can now from Flex. -- Tom Chiverton Helping to augmentatively disintermediate low-risk design-patterns On: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at St James's Court Brown Street Manchester M2 2JF. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law Society. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 8008. For more information about Halliwells LLP visit www.halliwells.com. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- : : ) Scott
Re: [flexcoders] Circular Binding
What is the effect of this code? Were you able to do simple binding that way to both items? -Scott On 3/1/07, raz_gilad [EMAIL PROTECTED] wrote: Hi Does anyone knows how Circular Binding works? I've used the follwing action script code and I've expected it to go into endless loop - but it did not. Any idea why ? BindingUtils.bindProperty(item,Threshold,txtin,text); BindingUtils.bindProperty(txtin,text,item,Threshold); Thanks Raz -- : : ) Scott
Re: [flexcoders] Can Flex really compete with AJAX?
You can do this in AS3: var b:Button = new Button(); b.id = myid + 2; trace( b.id: +b.id ); However, i'm guessing he means in the mxml, which i've experienced myself. Hence you cannot do: Button id={'myid'+1} / -Scott On 3/1/07, Nick Collins [EMAIL PROTECTED] wrote: What do you mean by dynamic id? I mean, you can pretty easily loop through a list of items in an XML file and assign one of their values as the id of the dynamically created object. Heck, I do this all the time with Actionscript 2 to create menus and such from an XML file. On 3/1/07, thetexaspsycho2003 [EMAIL PROTECTED] wrote: I mean, creating something as simple as a dynamic ID is crucial in creating truly dynamic content. -- : : ) Scott
Re: [flexcoders] Apollo Book: Apollo for Adobe Flex Developers Pocket Guide
Uh, you're still going to have 'at least' all those capabilities (talking to networked service) already existing in Flex.. What kind of functionality / library / language are you comparing this to? -Scott On 3/1/07, Impudent1 [EMAIL PROTECTED] wrote: Just taking a quick look and this concerns me: Apollo provides a file I/O API that lets applications read and write files and directories on the user's computer... The Flex framework for Apollo includes components for working with files and directories, but these are graphical components for navigating the file system and selecting files and directories. They do not pro- vide direct access to the more fundamental file I/O operations Apollo will eventually provide a complete security model for managing access to local resources, such as the file system... So am I to take this that Apollo will not let me deal with a remote filesystem? If I cannot read/write files from a workstation to a server, or deal with a remote data connection, Apollo suddenly seems really useless for my app :( -- 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 -- : : ) Scott
Re: [flexcoders] Apollo Book: Apollo for Adobe Flex Developers Pocket Guide
Binary sockets, for one.. Any other ideas out there? -Scott On 3/1/07, Impudent1 [EMAIL PROTECTED] wrote: slangeberg wrote: Uh, you're still going to have 'at least' all those capabilities (talking to networked service) already existing in Flex.. What kind of functionality / library / language are you comparing this to? Well I still have not seen how this will dovetail into the offline/online ability shown in say the ebay desktop app. If it can for example hold a users file uploads in the local cache and then on connect it will relogin/sync to the database and upload. And in doing this are we going to be limited to sending files to a remote server ala http post type commands with php etc and limited to 2g because of it and sandbox issues? From the text it seemed that all the flex apollo components would give is file selection and nav, not anything to do with user permissions, finding size of a dir , appending to files, changing attribs etc. Impudent1 LeapFrog Productions -- : : ) Scott
[flexcoders] scaling + ( localToGlobal and globalToLocal ) = Working??
I am trying to port Darron Schall's implementation of the DynamicRegistration for Flex 2 (haven't seen a way to set registration points in Flex 2). I have rotations working fine on dynamic registration points, but it's not working with scaling (scaleX, so far). So, does Flex 2 still take scaling into account when computing localToGlobal and globalToLocal (as Flash 8 appears to have)? Such as: var b:Point = new Point( xreg, yreg ); b = target.localToGlobal(a); b = target.parent.globalToLocal(a); full method: public function set scaleX(value:Number):void { trace( \n ** set scaleX( + value ); var a:Point = new Point( xreg, yreg ); a = target.localToGlobal(a); a = target.parent.globalToLocal(a); trace( a: +a ); target.scaleX = value; var b:Point = new Point( xreg, yreg ); b = target.localToGlobal(a); b = target.parent.globalToLocal(a); trace( b: +b ); trace( pos before : +target.x + , + target.y ); target.x -= b.x - a.x; target.y -= b.y - a.y; trace( pos after : +target.x + , + target.y ); } : : ) Scott
[flexcoders] FDS + stand-alone .swf files?
Just read an old article from Forta ( CF + flex 2 ) where he mentions that using FDS in Flex 2 will still require the server to publish the swf. Is this true, or can you use locally compiled / stand-alone .SWF files with FDS? Thanks, : : ) Scott
Re: [flexcoders] Re: Best way for editing massive amounts of data?
What's your main concern with this issue? Simplicity? Performance? What are you going for? Worried that someone may lose their data half-way through, or something? You could do a sort of proxy where you store the user's data locally, then upload the entire thing on submit. Then, you're preserving their entry, if they accidentally leave the page, or something. I would say no way to double-clicking fields to edit... Perhaps breaking up the procedure into sub-panels, ala an Accordian or TabNavigator? I'm more worried with usability in these kinds of things. -Scott On 2/24/07, gotgoose09 [EMAIL PROTECTED] wrote: I guess no one here has had this problem before? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, gotgoose09 [EMAIL PROTECTED] wrote: I'm web-enabling by using Flex 2 a project that has many fields for each record in the database. A typical UI screen has upwards of 35 fields in it. This application has to be easy to use. e.g. explained over the telephone to customers who use it. I was thinking that one way to make editing fields consistent would be to have the user double click the data field, popping up a window with the right kind of input to edit the data, whether it is a TextInput, TextArea, DateField, etc. Then, if the user presses the submit button, the data would be saved to the database, but if the user presses the cancel button, the data would not be saved and they would return to the large form. Does anyone have experience in this type of application? Anyone have their own opinion on the matter? Thanks in advance! :) -- : : ) Scott
Re: [flexcoders] Finding out when an arraycollection in my model is set
You can use simple binding, via {} brackets. MyComp dataProvider={model.library} / Or, you can use the ChangeWatcher: ChangeWatcher.watch( model, library, onLibraryChange ); function onLibraryChange(){ /*do stuff*/ } -Scott On 2/24/07, Webdevotion [EMAIL PROTECTED] wrote: Hello, How can I now when my arraycollection in my modellocator is filled with items ? I tried using collectionEvent.collection_change, but it does not fire when setting my AC like this in my command, after the remoting result handler: model.library = new ArrayCollection(data.result); What is the correct way ? ( I'm using Cairngorm ) -- : : ) Scott
[flexcoders] Image scaling / smoothing
Not sure if I've seen a solution to this on-list, so here's one I was pointed to, that works swimmingly!: http://blog.739saintlouis.com/2007/02/05/scaling-an-image-with-smoothing/ : : ) Scott
Re: [flexcoders] Java to Flex shifting ! Major Hurdles!!! (Shud I say Roadblocks! )
Hey everyone, I know there exists an article/whitepaper from Adobe outlining the new AS3 VM2(?), but I can't find it. Anyone know where that is? I think it would be helpful for this gentleman's situation. Thanks, -Scott On 2/22/07, ravi kumar gummadi [EMAIL PROTECTED] wrote: Hi, I am basically a Java guy, recently into Flex. It may be due to the sudden paradigm shift from serial programming ( incl Threads) to Event Based Programming, that I find many features totally new and surprising. I read in a article that Flash/Flex is based on AMPED (Asymmetric-Multi Process Event Driven) Architecture. In this kind of architecture , We have a single thread dispatching the events and the control gets transferred between the Events and the main thread. ( These are my vague conclusions from what I have read and understood, Correct me if I am wrong! ) So if the event dispatched doesn't have a IO/Network operation, the control reaches back to the EventDispatcher only after the eventhandler method is totally complete. But if our eventhandling mechanism has a huge data crunching operation , doesn't that freeze the client? 1. Lets say I have 2 things to be done, Doing a animation and some huge data operation simultaneously! In Java, what we usually do is spawn a new thread for doing the animation (or) doing the data operation! This takes care of the scenario. Now in Flex, We dispatch events, Lets say, OperateDataEvent and AnimateEvent, both of them have some handlers (ODEHandler, AEHandler respectively). Now when we do something like this, dispatchEvent(new OperateDataEvent()) and dispatchEvent(new AnimateEvent()) How does the control flow?? Does this fully complete the DataOperationEvent first and then return to animateEvent ! Since its a single thread model, I guess it should be done so! But then it doesnt sound logical for any matured programming languge to cripple an application from doing another task and make it wait. 2. Second thing is, How does the Timer/setInterval actually function in the Flex architecture, Is it a separate 'thread' ( Oops!this Java hangover is not gonna leave me ! ) Is it advisable to have big operations inside the timerHandler which may result in periodic glitches in the application. 3 Can anyone give a good resource of the AVM structure and design and how it differs from JVM! Thanks in advance Cheers, Ravi Kumar G PartyGaming Plc. www.partygaming.com What is right is right, even if no one is doing it. What is wrong is wrong, even if everyone is doing it. -- Never miss an email again! Yahoo! Toolbarhttp://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/features/mail/alerts you the instant new Mail arrives.Check it out. -- : : ) Scott
Re: [flexcoders] Java to Flex shifting ! Major Hurdles!!! (Shud I say Roadblocks! )
Ok, here it is. Right on my desktop, wouldn't you know!: (not it, but worth looking) http://www.adobe.com/devnet/actionscript/articles/actionscript3_overview.html (this is it!) http://www.onflex.org/ACDS/AS3TuningInsideAVM2JIT.pdf =Scott On 2/22/07, slangeberg [EMAIL PROTECTED] wrote: Hey everyone, I know there exists an article/whitepaper from Adobe outlining the new AS3 VM2(?), but I can't find it. Anyone know where that is? I think it would be helpful for this gentleman's situation. Thanks, -Scott On 2/22/07, ravi kumar gummadi [EMAIL PROTECTED] wrote: Hi, I am basically a Java guy, recently into Flex. It may be due to the sudden paradigm shift from serial programming ( incl Threads) to Event Based Programming, that I find many features totally new and surprising. I read in a article that Flash/Flex is based on AMPED (Asymmetric-Multi Process Event Driven) Architecture. In this kind of architecture , We have a single thread dispatching the events and the control gets transferred between the Events and the main thread. ( These are my vague conclusions from what I have read and understood, Correct me if I am wrong! ) So if the event dispatched doesn't have a IO/Network operation, the control reaches back to the EventDispatcher only after the eventhandler method is totally complete. But if our eventhandling mechanism has a huge data crunching operation , doesn't that freeze the client? 1. Lets say I have 2 things to be done, Doing a animation and some huge data operation simultaneously! In Java, what we usually do is spawn a new thread for doing the animation (or) doing the data operation! This takes care of the scenario. Now in Flex, We dispatch events, Lets say, OperateDataEvent and AnimateEvent, both of them have some handlers (ODEHandler, AEHandler respectively). Now when we do something like this, dispatchEvent(new OperateDataEvent()) and dispatchEvent(new AnimateEvent()) How does the control flow?? Does this fully complete the DataOperationEvent first and then return to animateEvent ! Since its a single thread model, I guess it should be done so! But then it doesnt sound logical for any matured programming languge to cripple an application from doing another task and make it wait. 2. Second thing is, How does the Timer/setInterval actually function in the Flex architecture, Is it a separate 'thread' ( Oops!this Java hangover is not gonna leave me ! ) Is it advisable to have big operations inside the timerHandler which may result in periodic glitches in the application. 3 Can anyone give a good resource of the AVM structure and design and how it differs from JVM! Thanks in advance Cheers, Ravi Kumar G PartyGaming Plc. www.partygaming.com What is right is right, even if no one is doing it. What is wrong is wrong, even if everyone is doing it. -- Never miss an email again! Yahoo! Toolbar http://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/features/mail/alerts you the instant new Mail arrives.Check it out. -- : : ) Scott -- : : ) Scott
Re: [flexcoders] Can't we access MovieClips contained in embedded SWF's?
Yeah, sorry. I'm not 100%, but you should be able to reference your loaded movie by that class type (your document class), from within Flex. I believe another gentleman referred to that, in this thread. Hold on, I did it, with a loader... I'll try to attach code. The proxy is just a design idea, meaning you define an interface to your movie in your class, instead of referencing elements within the movie from Flex. Then, the only thing that will break your flash / flex connection is to break that interface. For instance, your map(?) class could have functions like: showPlat( id:Object ); where the class implementation can decide what to do with the call, instead of having your flex app nose through the contents. That's a good design practice to get into: 'Always code to interfaces, not implementations.' Ok, so here's one of those do as I say, deals.. Also, my implementation may be a bit different here, than what we were talking about. This was a quick fix to enable custom loading logic, for the default Flex 2 application loading bar. In this case, I'm actually assigning the class under the 'linkage' option of my library clip (progress bar) to point to: com.tc.view.preload.ProgressBarSymbol, and publishing in Flash 9. Then, when you instantiate the class in Flex 2, you'll get a direct link. In your case, i would suggest a document class, for the entire movie. //I just used this class to enable me to access a loading bar quick. If this was going to //scale / change, I would have defined public methods to update this view. //I swear!! package com.tc.view.preload { import flash.display.*; import flash.text.TextField; [Embed(source=/library.swf, symbol= com.tc.view.preload.ProgressBarSymbol)] public class ProgressBarSymbol extends Sprite { public var progress_bar:MovieClip; public var loading_text:TextField; } } //And instantiated in Flex 2 by using: var bar:ProgressBarSymbol = new ProgressBarSymbol(); this.addChild( bar ); Hope this gives ideas, not confusion! -Scott On 2/16/07, Mike Anderson [EMAIL PROTECTED] wrote: Hello Scott (in particular) :) You mentioned a Proxy - what you do mean by this exactly? Is this supposed to be some custom class that I write? If so, what is supposed to be contained within it? I did read up on the Document Object, and I am now doing my Flash 9 FLA files with a custom Document Class, representing the Root Timeline. I am pretty sure I did it right, since I am getting no compile errors. But my question is, is the AS3 Class File I used for the Document Object, strictly used for the FLA file? Or is this also used inside of Flex Builder, after I bring the external SWF file in? This is where I am getting a little confused. All the articles I find on this topic, covers the Flash side of things - and they never take that next step, and tell you how to reference it inside of Flex. If you have anything else on this topic, I'd really be grateful for your help. Thanks, Mike -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *slangeberg *Sent:* Wednesday, February 14, 2007 10:53 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Can't we access MovieClips contained in embedded SWF's? If you are using Flash 9, you can use a document class (I believe) at the root level and have Flex reference it by that. Your document class would set up an API, so you don't have to peer into the movie itself. Basically a proxy. Sorry I don't have the implementation in front of me, but I believe it's possible. So, if previous code was correct, could do something like: var platProxy:YourProxy = platObject.getChildByName('instancename') as YourProxy platProxy.hideAll(); platProxy.showByID( {id:'plat_xxx'} ); Just an idea! -Scott On 2/14/07, Mike Anderson [EMAIL PROTECTED] wrote: Oh man, you are kidding me! See, this particular SWF is a Plat Overview of a subdivision - and there are 140 Lots, each individually defined as a unique MovieClip. So, if I need access to each MovieClip programmatically, I will have to define 140 variables? Now that would be a bummer :-( Could you clarify on that? Thank you for the information nevertheless - I was actually going to try the getChild method next, so that saves me some time. Mike -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Matt Wicks *Sent:* Wednesday, February 14, 2007 10:18 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Can't we access MovieClips contained in embedded SWF's? You need to get the object as a display object var xxx:MovieClip = platObject.getChildByName('instancename') as MovieClip Matt On 14 Feb 2007, at 16:13, Mike Anderson wrote: Hello all, I have a Flash Player 9, AS3 version of a SWF that I am bringing into Flex, using the SWFLoader Component. Once I bring the SWF in, I am creating a MovieClip
Re: [flexcoders] Can't we access MovieClips contained in embedded SWF's?
Mike, I tried setting up a document class for Flash 9, but when you place named items on stage, you get this error: ReferenceError: Error #1056: Cannot create property square_mc on com.cpile.flextoflash.FlexToFlashMain. at flash.display::Sprite/flash.display:Sprite::constructChildren() at flash.display::Sprite$iinit() at flash.display::MovieClip$iinit() at com.cpile.flextoflash::FlexToFlashMain$iinit() Adobe guys, is this correct? My understanding from looking around is that with the document class in Flash 9, you can only add items to the stage through code. That seems to negate a lot of the advantage of using a graphical interface... ok, so you could have a clip in your library that has the stage set up... hmmm that may do it! I'll write back when I have something. Otherwise, what i have sent is an effective way to access items on the stage. -Scott On 2/16/07, slangeberg [EMAIL PROTECTED] wrote: Yeah, sorry. I'm not 100%, but you should be able to reference your loaded movie by that class type (your document class), from within Flex. I believe another gentleman referred to that, in this thread. Hold on, I did it, with a loader... I'll try to attach code. The proxy is just a design idea, meaning you define an interface to your movie in your class, instead of referencing elements within the movie from Flex. Then, the only thing that will break your flash / flex connection is to break that interface. For instance, your map(?) class could have functions like: showPlat( id:Object ); where the class implementation can decide what to do with the call, instead of having your flex app nose through the contents. That's a good design practice to get into: 'Always code to interfaces, not implementations.' Ok, so here's one of those do as I say, deals.. Also, my implementation may be a bit different here, than what we were talking about. This was a quick fix to enable custom loading logic, for the default Flex 2 application loading bar. In this case, I'm actually assigning the class under the 'linkage' option of my library clip (progress bar) to point to: com.tc.view.preload.ProgressBarSymbol, and publishing in Flash 9. Then, when you instantiate the class in Flex 2, you'll get a direct link. In your case, i would suggest a document class, for the entire movie. //I just used this class to enable me to access a loading bar quick. If this was going to //scale / change, I would have defined public methods to update this view. //I swear!! package com.tc.view.preload { import flash.display.*; import flash.text.TextField; [Embed(source=/library.swf, symbol= com.tc.view.preload.ProgressBarSymbol)] public class ProgressBarSymbol extends Sprite { public var progress_bar:MovieClip; public var loading_text:TextField; } } //And instantiated in Flex 2 by using: var bar:ProgressBarSymbol = new ProgressBarSymbol(); this.addChild( bar ); Hope this gives ideas, not confusion! -Scott On 2/16/07, Mike Anderson [EMAIL PROTECTED] wrote: Hello Scott (in particular) :) You mentioned a Proxy - what you do mean by this exactly? Is this supposed to be some custom class that I write? If so, what is supposed to be contained within it? I did read up on the Document Object, and I am now doing my Flash 9 FLA files with a custom Document Class, representing the Root Timeline. I am pretty sure I did it right, since I am getting no compile errors. But my question is, is the AS3 Class File I used for the Document Object, strictly used for the FLA file? Or is this also used inside of Flex Builder, after I bring the external SWF file in? This is where I am getting a little confused. All the articles I find on this topic, covers the Flash side of things - and they never take that next step, and tell you how to reference it inside of Flex. If you have anything else on this topic, I'd really be grateful for your help. Thanks, Mike -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *slangeberg *Sent:* Wednesday, February 14, 2007 10:53 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Can't we access MovieClips contained in embedded SWF's? If you are using Flash 9, you can use a document class (I believe) at the root level and have Flex reference it by that. Your document class would set up an API, so you don't have to peer into the movie itself. Basically a proxy. Sorry I don't have the implementation in front of me, but I believe it's possible. So, if previous code was correct, could do something like: var platProxy:YourProxy = platObject.getChildByName('instancename') as YourProxy platProxy.hideAll(); platProxy.showByID( {id:'plat_xxx'} ); Just an idea! -Scott On 2/14/07, Mike Anderson [EMAIL PROTECTED] wrote: Oh man, you are kidding me! See, this particular SWF is a Plat Overview of a subdivision - and there are 140 Lots, each
[flexcoders] Flash 9 - Flex 2 interface (previously): Can't we access MovieClips contained in embedded SWF's?
Any Adobe or other people who have some resources out there for interfacing Flash 9 - Flex 2 apps? This seems to be a critical area, as Flash 9 IDE release looms.. Here's some interesting info on using Flash 9, but still not a solution to the Flex interface. http://www.adobe.com/devnet/flash/articles/flash9_as3_preview.html -Scott On 2/16/07, slangeberg [EMAIL PROTECTED] wrote: Mike, I tried setting up a document class for Flash 9, but when you place named items on stage, you get this error: ReferenceError: Error #1056: Cannot create property square_mc on com.cpile.flextoflash.FlexToFlashMain . at flash.display::Sprite/flash.display:Sprite::constructChildren() at flash.display::Sprite$iinit() at flash.display::MovieClip$iinit() at com.cpile.flextoflash::FlexToFlashMain$iinit() Adobe guys, is this correct? My understanding from looking around is that with the document class in Flash 9, you can only add items to the stage through code. That seems to negate a lot of the advantage of using a graphical interface... ok, so you could have a clip in your library that has the stage set up... hmmm that may do it! I'll write back when I have something. Otherwise, what i have sent is an effective way to access items on the stage. -Scott On 2/16/07, slangeberg [EMAIL PROTECTED] wrote: Yeah, sorry. I'm not 100%, but you should be able to reference your loaded movie by that class type (your document class), from within Flex. I believe another gentleman referred to that, in this thread. Hold on, I did it, with a loader... I'll try to attach code. The proxy is just a design idea, meaning you define an interface to your movie in your class, instead of referencing elements within the movie from Flex. Then, the only thing that will break your flash / flex connection is to break that interface. For instance, your map(?) class could have functions like: showPlat( id:Object ); where the class implementation can decide what to do with the call, instead of having your flex app nose through the contents. That's a good design practice to get into: 'Always code to interfaces, not implementations.' Ok, so here's one of those do as I say, deals.. Also, my implementation may be a bit different here, than what we were talking about. This was a quick fix to enable custom loading logic, for the default Flex 2 application loading bar. In this case, I'm actually assigning the class under the 'linkage' option of my library clip (progress bar) to point to: com.tc.view.preload.ProgressBarSymbol, and publishing in Flash 9. Then, when you instantiate the class in Flex 2, you'll get a direct link. In your case, i would suggest a document class, for the entire movie. //I just used this class to enable me to access a loading bar quick. If this was going to //scale / change, I would have defined public methods to update this view. //I swear!! package com.tc.view.preload { import flash.display.*; import flash.text.TextField; [Embed(source=/library.swf, symbol= com.tc.view.preload.ProgressBarSymbol)] public class ProgressBarSymbol extends Sprite { public var progress_bar:MovieClip; public var loading_text:TextField; } } //And instantiated in Flex 2 by using: var bar:ProgressBarSymbol = new ProgressBarSymbol(); this.addChild( bar ); Hope this gives ideas, not confusion! -Scott On 2/16/07, Mike Anderson [EMAIL PROTECTED] wrote: Hello Scott (in particular) :) You mentioned a Proxy - what you do mean by this exactly? Is this supposed to be some custom class that I write? If so, what is supposed to be contained within it? I did read up on the Document Object, and I am now doing my Flash 9 FLA files with a custom Document Class, representing the Root Timeline. I am pretty sure I did it right, since I am getting no compile errors. But my question is, is the AS3 Class File I used for the Document Object, strictly used for the FLA file? Or is this also used inside of Flex Builder, after I bring the external SWF file in? This is where I am getting a little confused. All the articles I find on this topic, covers the Flash side of things - and they never take that next step, and tell you how to reference it inside of Flex. If you have anything else on this topic, I'd really be grateful for your help. Thanks, Mike -- *From:* flexcoders@yahoogroups.com [mailto:flexcoders@ yahoogroups.com] *On Behalf Of *slangeberg *Sent:* Wednesday, February 14, 2007 10:53 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Can't we access MovieClips contained in embedded SWF's? If you are using Flash 9, you can use a document class (I believe) at the root level and have Flex reference it by that. Your document class would set up an API, so you don't have to peer into the movie itself. Basically a proxy. Sorry I don't have
Re: [flexcoders] svn and flex not getting along
I'm not entirely tracking you, but my approach is to only include those items in the /bin that are not already under source-control within the regular project (com, assets, etc.). Then, when I add items (like PHP) into the bin that I do want, I add them to source-control. I just don't include anything else. Also, it kind of sounds like you have the _svn (.svn) files in source control? I wouldn't include those, either.. I think what's happening is you're adding entire directories at a time to source control. This will drag along those _svn and everything else, if they're already set up. I only add selected items (class files, etc. - shift-select, if necessary) to source control and don't have these collisions. -Scott On 2/15/07, Grant Davies [EMAIL PROTECTED] wrote: Hi Scott, I have to include the bin folder since we have a lot of php in there, I've stopped source controlling the html-template folder, but it appears that flex is copying stuff from my project folder into the bin folder still my project folder is _svn /com /.project /html-template /main.mxml etc.. and flex appears to copy into my bin folder com so of course SVN gets confused since I have another com folder from my dev folder copied into my bin folder with its _svn folder intact... so I need to completely remove the _svn folder from my root dev folder so its not source controlled and flex won't mess with it ? Grant ... *› b l u e t u b e i n t e r a c t i v e.* .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) › [EMAIL PROTECTED] › http://www.bluetube.com/bti › A Tribal Chicken Designs Affiliate http://www.tribalchicken.com/ -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *slangeberg *Sent:* Tuesday, February 13, 2007 2:18 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] svn and flex not getting along You have html-template in version control? I don't include that or any of the eclipse/flex files (.project, etc.) - and no problems, here. I also don't include the /bin folder, until I create custom files, such as index.html, js, css (html), etc... -Scott On 2/13/07, Grant Davies [EMAIL PROTECTED] wrote: Sorry for the double post but I hijacked by accident.. I figured out my issue is svn and flex based on this post : http://chattyfig.figleaf.com/pipermail/flashcoders/2006-September/172588.html http://chattyfig.figleaf.com/pipermail/flashcoders/2006-September/172588.html somehow a stale main.swf got into our html-template folder and then was copied into our bin folder and all hell breaks loose, has there been a fix yet for flex so it ignores svn folders when copyng ? a quick google search didn't reveal much.. Cheers, Grant ... *› b l u e t u b e i n t e r a c t i v e.* .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) › [EMAIL PROTECTED] › http://www.bluetube.com/btihttp://www.bluetube.com/bti › A Tribal Chicken Designs Affiliate http://www.tribalchicken.com/ -- : : ) Scott -- : : ) Scott attachment: small.jpg attachment: small.jpg
Re: [flexcoders] svn and flex not getting along
Also, there is a SVN plug-in (Subclipse - Tigris.org) for eclipse that I highly recommend. Seems to work much more cleanly than TortoiseSVN, which I use in Explorer, but have a lot of conflicts, corruptions, etc. Probably user error, but the eclipse plugin doesn't give me nearly as much grief! -Scott On 2/15/07, slangeberg [EMAIL PROTECTED] wrote: I'm not entirely tracking you, but my approach is to only include those items in the /bin that are not already under source-control within the regular project (com, assets, etc.). Then, when I add items (like PHP) into the bin that I do want, I add them to source-control. I just don't include anything else. Also, it kind of sounds like you have the _svn (.svn) files in source control? I wouldn't include those, either.. I think what's happening is you're adding entire directories at a time to source control. This will drag along those _svn and everything else, if they're already set up. I only add selected items (class files, etc. - shift-select, if necessary) to source control and don't have these collisions. -Scott On 2/15/07, Grant Davies [EMAIL PROTECTED] wrote: Hi Scott, I have to include the bin folder since we have a lot of php in there, I've stopped source controlling the html-template folder, but it appears that flex is copying stuff from my project folder into the bin folder still my project folder is _svn /com /.project /html-template /main.mxml etc.. and flex appears to copy into my bin folder com so of course SVN gets confused since I have another com folder from my dev folder copied into my bin folder with its _svn folder intact... so I need to completely remove the _svn folder from my root dev folder so its not source controlled and flex won't mess with it ? Grant ... *› b l u e t u b e i n t e r a c t i v e.* .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) › [EMAIL PROTECTED] › http://www.bluetube.com/bti › A Tribal Chicken Designs Affiliate http://www.tribalchicken.com/ -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *slangeberg *Sent:* Tuesday, February 13, 2007 2:18 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] svn and flex not getting along You have html-template in version control? I don't include that or any of the eclipse/flex files (.project, etc.) - and no problems, here. I also don't include the /bin folder, until I create custom files, such as index.html, js, css (html), etc... -Scott On 2/13/07, Grant Davies [EMAIL PROTECTED] wrote: Sorry for the double post but I hijacked by accident.. I figured out my issue is svn and flex based on this post : http://chattyfig.figleaf.com/pipermail/flashcoders/2006-September/172588.htmlhttp://chattyfig .figleaf.com/pipermail/flashcoders/2006-September/172588.html somehow a stale main.swf got into our html-template folder and then was copied into our bin folder and all hell breaks loose, has there been a fix yet for flex so it ignores svn folders when copyng ? a quick google search didn't reveal much.. Cheers, Grant ... *› b l u e t u b e i n t e r a c t i v e.* .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) › [EMAIL PROTECTED] › http://www.bluetube.com/btihttp://www.bluetube.com/bti › A Tribal Chicken Designs Affiliate http://www.tribalchicken.com/ -- : : ) Scott -- : : ) Scott -- : : ) Scott attachment: small.jpg attachment: small.jpg
Re: [flexcoders] Re: Cairngorm: ArrayCollection(ValuObject)-Event on changing data?
Main docs: http://livedocs.macromedia.com/flex/2/ Meta-tags: http://livedocs.macromedia.com/flex/2/docs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=1652.html -Scott On 2/14/07, martywolf11 [EMAIL PROTECTED] wrote: i dont know whats so funny, but whatever. so it seems the [ArrayElementType(cairngorm.vo.FriendVO)] line doesnt do any good? i just took that line from an example, because i am pretty new to cairngorm and all that stuff. by the way, which docs are you referring to? do you mean the docs according event handling? thanks for the help, greetz marty --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, slangeberg [EMAIL PROTECTED] wrote: Dang, You got me excited with: [ArrayElementType(cairngorm.vo.FriendVO)] public var friends:ArrayCollection; But, according to the docs, this only applies to type: Array. I tried it and compiler does not appear to pick up on this restriction, for ArrayCollection (I tried adding item not of type in [ArrayElementType()] and it threw no errors). -Scott On 2/14/07, martywolf11 [EMAIL PROTECTED] wrote: hello, In my ModelLocator class i defined an ArrayCollection: [Bindable] [ArrayElementType(cairngorm.vo.FriendVO)] public var friends:ArrayCollection; storying the FriendVO object works perfectly, but now i want an event to fire up whenever i add a new FriendVO object, delete it or change it. i just tried to use the following command for that: MyModelLocator.getInstance().friends.addEventListener( CollectionEvent.COLLECTION_CHANGE,createFriendsList); which should invoke the method createFriendsList() private function createFriendsList():void { Alert.show(create friendslist); } but it is never called, not even when i do MyModelLocator.getInstance().friends = new ArrayCollection(); can anybody tell me what i am doing wrong? i really would appreciate any info. thanks, marty -- : : ) Scott -- : : ) Scott
Re: [flexcoders] Can't we access MovieClips contained in embedded SWF's?
Cool new feature of Flash Professional 9 ActionScript 3 Preview: Document Class. Install Flash 9 Preview, create a new document, and in the Properties Panel, you'll see a new field, Document Class. You can enter the name of an AS3 class here, as long as it's in your class path, and it will serve as the main class of your swf. The class you uses must extend MovieClip or Sprite (or something else that extends one of those). src: http://www.bit-101.com/blog/?p=820 also: http://www.google.com/search?q=flash+9+document+classie=utf-8oe=utf-8rls=org.mozilla:en-US:officialclient=firefox-a Very easy to set up. From Flash 9: New document - File -Publish Settings - Flash (tab) - AS version - Settings (button) - Document Class: Enter full class definition (w package) pointing to your class that extends Sprite or MovieClip (i believe). This class becomes your main interface to movie. -Scott On 2/15/07, Mike Anderson [EMAIL PROTECTED] wrote: Hey guys, Could you elaborate more on the Document Class, or maybe post some code snippets demonstrating how this all works? I am really not familiar with that whole topic, but it sounds like this is what I am looking for. Thanks in advance for your help, Mike -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *slangeberg *Sent:* Wednesday, February 14, 2007 10:53 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Can't we access MovieClips contained in embedded SWF's? If you are using Flash 9, you can use a document class (I believe) at the root level and have Flex reference it by that. Your document class would set up an API, so you don't have to peer into the movie itself. Basically a proxy. Sorry I don't have the implementation in front of me, but I believe it's possible. So, if previous code was correct, could do something like: var platProxy:YourProxy = platObject.getChildByName('instancename') as YourProxy platProxy.hideAll(); platProxy.showByID( {id:'plat_xxx'} ); Just an idea! -Scott On 2/14/07, Mike Anderson [EMAIL PROTECTED] wrote: Oh man, you are kidding me! See, this particular SWF is a Plat Overview of a subdivision - and there are 140 Lots, each individually defined as a unique MovieClip. So, if I need access to each MovieClip programmatically, I will have to define 140 variables? Now that would be a bummer :-( Could you clarify on that? Thank you for the information nevertheless - I was actually going to try the getChild method next, so that saves me some time. Mike -- *From:* flexcoders@yahoogroups.com [mailto: [EMAIL PROTECTED] *On Behalf Of *Matt Wicks *Sent:* Wednesday, February 14, 2007 10:18 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Can't we access MovieClips contained in embedded SWF's? You need to get the object as a display object var xxx:MovieClip = platObject.getChildByName('instancename') as MovieClip Matt On 14 Feb 2007, at 16:13, Mike Anderson wrote: Hello all, I have a Flash Player 9, AS3 version of a SWF that I am bringing into Flex, using the SWFLoader Component. Once I bring the SWF in, I am creating a MovieClip variable and assigning to it, the SWFLoader.content. Here is a quick code example: var platObject:MovieClip = mySWFLoader.content; So once that assignment is made, you can execute certain built-in methods available to any Flash Movie - for example: platObject.play ( ); platObject.loaderIn fo.[etc] And so on... That is all well and good - but what about MovieClips that reside in the Root Timeline? In this particular SWF File, I have a MovieClip called platMovieClip - and I am trying to access it's properties and methods from within Flex. For example, I'd like to toggle the visibility, so I tried this code: platObject.platMovi eClip._visible = false; When I try this command, I get an error that says the property platMovieClip is unknown or something to that effect... If we can't access the assets that reside in SWF Files, then what is the whole point of all this? Or maybe there is something that I am overlooking - but as far as I can tell, the platObject should represent the SWF... Could any of you shed some light on this topic for me? This functionality is VERY important to the success of my website launch. Thanks in advance, Mike -- : : ) Scott -- : : ) Scott
Re: [flexcoders] Can't we access MovieClips contained in embedded SWF's?
I haven't done much experimentation. I think when I used it, I created variables on the class that just pointed to items named the same on stage, so i think you could access those, if declared public. Please let us know what you find! +=Scott On 2/15/07, Mike Anderson [EMAIL PROTECTED] wrote: A, wonderful! Okay, with all that said, if I create a custom class, extending lets say a MovieClip, in any other situation I would have to declare all of my MovieClips contained within the main Movie, as Public Variables if I hoped to control them programmatically correct? You know, just like creating custom classes within Flex, and in order to access the Controls residing in the MXML file, you have to create Public Variables with the same names, and cast them as their proper types (i.e.. Button, Slider, TitleWindow, etc.) If I am wrong on this, could you correct me? :-) And if so, it would be because of all these declared Variables, that would cause them to be exposed allow me to access them from within Flex correct? Since we are using AS3 across the board, will Flex then have native access to all the Objects contained within the SWF File? What I'd love to do, is use Flex Effects and Transitions to control how the MovieClips that reside on the SWF, behave and interact in the main application. In the meantime, I will read up as much as I can on this topic - thanks again for pointing me in the right direction. Mike -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *slangeberg *Sent:* Thursday, February 15, 2007 11:58 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Can't we access MovieClips contained in embedded SWF's? Cool new feature of Flash Professional 9 ActionScript 3 Preview: Document Class. Install Flash 9 Preview, create a new document, and in the Properties Panel, you'll see a new field, Document Class. You can enter the name of an AS3 class here, as long as it's in your class path, and it will serve as the main class of your swf. The class you uses must extend MovieClip or Sprite (or something else that extends one of those). src: http://www.bit-101.com/blog/?p=820 also: http://www.google.com/search?q=flash+9+document+classie=utf-8oe=utf-8rls=org.mozilla:en-US:officialclient=firefox-a Very easy to set up. From Flash 9: New document - File -Publish Settings - Flash (tab) - AS version - Settings (button) - Document Class: Enter full class definition (w package) pointing to your class that extends Sprite or MovieClip (i believe). This class becomes your main interface to movie. -Scott On 2/15/07, Mike Anderson [EMAIL PROTECTED] wrote: Hey guys, Could you elaborate more on the Document Class, or maybe post some code snippets demonstrating how this all works? I am really not familiar with that whole topic, but it sounds like this is what I am looking for. Thanks in advance for your help, Mike -- *From:* flexcoders@yahoogroups.com [mailto:flexcoders@ yahoogroups.com] *On Behalf Of *slangeberg *Sent:* Wednesday, February 14, 2007 10:53 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Can't we access MovieClips contained in embedded SWF's? If you are using Flash 9, you can use a document class (I believe) at the root level and have Flex reference it by that. Your document class would set up an API, so you don't have to peer into the movie itself. Basically a proxy. Sorry I don't have the implementation in front of me, but I believe it's possible. So, if previous code was correct, could do something like: var platProxy:YourProxy = platObject.getChildByName('instancename') as YourProxy platProxy.hideAll(); platProxy.showByID( {id:'plat_xxx'} ); Just an idea! -Scott On 2/14/07, Mike Anderson [EMAIL PROTECTED] wrote: Oh man, you are kidding me! See, this particular SWF is a Plat Overview of a subdivision - and there are 140 Lots, each individually defined as a unique MovieClip. So, if I need access to each MovieClip programmatically, I will have to define 140 variables? Now that would be a bummer :-( Could you clarify on that? Thank you for the information nevertheless - I was actually going to try the getChild method next, so that saves me some time. Mike -- *From:* flexcoders@yahoogroups.com [mailto: [EMAIL PROTECTED] *On Behalf Of *Matt Wicks *Sent:* Wednesday, February 14, 2007 10:18 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Can't we access MovieClips contained in embedded SWF's? You need to get the object as a display object var xxx:MovieClip = platObject.getChildByName('instancename') as MovieClip Matt On 14 Feb 2007, at 16:13, Mike Anderson wrote: Hello all, I have a Flash Player 9, AS3 version of a SWF that I am bringing into Flex, using the SWFLoader Component. Once I bring the SWF
Re: [flexcoders] getting a warning with a repeater
Throw a cast in each one: personID={YourClassThatHasPersonIDAndOtherDesiredProperties( employee.currentItem).PersonID} It's giving you that warning because 'employee.currentItem' is a POO (plain ol' Object). I'm doing the same thing on current project, and instead of setting all those properties, my component in the repeater has a VO that it binds to, internally, so I do something like: mx:Repeater id=employee dataProvider={directReportCollection} v:employeeElement itemVO={ItemVO(employee.currentIndex)} ... / /mx:Repeater As long as directReportCollection is collection of ItemVO's (or whatever), you're golden. Then, your empEl can get all those properties off ItemVO, which has a nice, tidy interface defined... ;) Scott On 2/15/07, shelleybrowning [EMAIL PROTECTED] wrote: Hello, I have an application that uses the repeater to create multiple instances of a custom mxml component (employeeElement). mx:Repeater id=employee dataProvider={directReportCollection} v:employeeElement itemNum={employee.currentIndex} hasDirectReports={employee.currentItem.Manager} employeeName={employee.currentItem.FullName} jobTitle={employee.currentItem.JobTitle} personID={employee.currentItem.PersonID} personUUID={employee.currentItem.PersonUUID} numDirectReports={numDirectReports} asgUUID={employee.currentItem.asgUUID} dakDB={dakDB} isDirectReport=true goDownHeirarchy=goDownHeirarchy(event)/ /mx:Repeater The dataProvider for the repeater is directReportCollection which is an ArrayCollection that has been declared as bindable. I'm getting the following warning when the code runs. The employeeElements are rendered. But I don't like not undertanding why the warning is being posted. Or want this to come back and bite me later... Here is the warning: warning: unable to bind to property 'PersonUUID' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'FullName' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'Manager' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'PersonID' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'asgUUID' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'JobTitle' on class 'Object' (class is not an IEventDispatcher) repeating for each instance of the component within the repeater. I double/triple checked that everything was declared as bindable within the custom component as well as the collection array. I imported IEventDispatcher into the custom component, but that didn't do anything. Any suggestions? PS: using Flex 2.0.1 and this code is within a module. Thanks, Shelley Browning Intermountain Healthcare -- : : ) Scott
Re: [flexcoders] Re: getting a warning with a repeater
Ha, now that you mention it, I am getting a warning on one of my repeaters. It's a binding warning, but not same as yours... -Scott On 2/15/07, shelleybrowning [EMAIL PROTECTED] wrote: Scott, I was writting a lenthly response as to different things I've tried and still getting the warning. I decided to try an example from the docs by Adobe. I get a 'warning' from their example as well. It seems that warning is just stating that the data is bound to the repater and not the object within the repeater. The following example returns: warning: unable to bind to property 'name' on class 'Object' (class is not an IEventDispatcher) ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; viewSourceURL=src/RepeaterStatic2/index.html width=285 height=185 !-- This is a static data model but you could just as easily bind to dynamically loaded data. -- mx:ArrayCollection id=productsAC mx:Object name=Whirlygig price=5 freeship=false/ mx:Object name=Tilty Thingy price=15 freeship=true/ mx:Object name=Really Big Blocks price=25 freeship=true/ /mx:ArrayCollection mx:Panel title=Repeater: emulating a for..in loop paddingBottom=10 paddingLeft=10 paddingRight=10 paddingTop=10 mx:Repeater id=productsRepeater dataProvider={productsAC} mx:RadioButton id=buttonsArray label={productsRepeater.currentItem.name} / /mx:Repeater /mx:Panel /mx:Application I'm going to move on for now... thanks for the response! Shelley --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, slangeberg [EMAIL PROTECTED] wrote: Throw a cast in each one: personID={YourClassThatHasPersonIDAndOtherDesiredProperties( employee.currentItem).PersonID} It's giving you that warning because 'employee.currentItem' is a POO (plain ol' Object). I'm doing the same thing on current project, and instead of setting all those properties, my component in the repeater has a VO that it binds to, internally, so I do something like: mx:Repeater id=employee dataProvider={directReportCollection} v:employeeElement itemVO={ItemVO(employee.currentIndex)} ... / /mx:Repeater As long as directReportCollection is collection of ItemVO's (or whatever), you're golden. Then, your empEl can get all those properties off ItemVO, which has a nice, tidy interface defined... ;) Scott On 2/15/07, shelleybrowning [EMAIL PROTECTED] wrote: Hello, I have an application that uses the repeater to create multiple instances of a custom mxml component (employeeElement). mx:Repeater id=employee dataProvider={directReportCollection} v:employeeElement itemNum={employee.currentIndex} hasDirectReports={employee.currentItem.Manager} employeeName={employee.currentItem.FullName} jobTitle={employee.currentItem.JobTitle} personID={employee.currentItem.PersonID} personUUID={employee.currentItem.PersonUUID} numDirectReports={numDirectReports} asgUUID={employee.currentItem.asgUUID} dakDB={dakDB} isDirectReport=true goDownHeirarchy=goDownHeirarchy(event)/ /mx:Repeater The dataProvider for the repeater is directReportCollection which is an ArrayCollection that has been declared as bindable. I'm getting the following warning when the code runs. The employeeElements are rendered. But I don't like not undertanding why the warning is being posted. Or want this to come back and bite me later... Here is the warning: warning: unable to bind to property 'PersonUUID' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'FullName' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'Manager' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'PersonID' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'asgUUID' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'JobTitle' on class 'Object' (class is not an IEventDispatcher) repeating for each instance of the component within the repeater. I double/triple checked that everything was declared as bindable within the custom component as well as the collection array. I imported IEventDispatcher into the custom component, but that didn't do anything. Any suggestions? PS: using Flex 2.0.1 and this code is within a module. Thanks, Shelley Browning Intermountain Healthcare -- : : ) Scott -- : : ) Scott
Re: [flexcoders] Can't we access MovieClips contained in embedded SWF's?
If you are using Flash 9, you can use a document class (I believe) at the root level and have Flex reference it by that. Your document class would set up an API, so you don't have to peer into the movie itself. Basically a proxy. Sorry I don't have the implementation in front of me, but I believe it's possible. So, if previous code was correct, could do something like: var platProxy:YourProxy = platObject.getChildByName('instancename') as YourProxy platProxy.hideAll(); platProxy.showByID( {id:'plat_xxx'} ); Just an idea! -Scott On 2/14/07, Mike Anderson [EMAIL PROTECTED] wrote: Oh man, you are kidding me! See, this particular SWF is a Plat Overview of a subdivision - and there are 140 Lots, each individually defined as a unique MovieClip. So, if I need access to each MovieClip programmatically, I will have to define 140 variables? Now that would be a bummer :-( Could you clarify on that? Thank you for the information nevertheless - I was actually going to try the getChild method next, so that saves me some time. Mike -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *Matt Wicks *Sent:* Wednesday, February 14, 2007 10:18 AM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Can't we access MovieClips contained in embedded SWF's? You need to get the object as a display object var xxx:MovieClip = platObject.getChildByName('instancename') as MovieClip Matt On 14 Feb 2007, at 16:13, Mike Anderson wrote: Hello all, I have a Flash Player 9, AS3 version of a SWF that I am bringing into Flex, using the SWFLoader Component. Once I bring the SWF in, I am creating a MovieClip variable and assigning to it, the SWFLoader.content. Here is a quick code example: var platObject:MovieClip = mySWFLoader.content; So once that assignment is made, you can execute certain built-in methods available to any Flash Movie - for example: platObject.play(); platObject.loaderInfo.[etc] And so on... That is all well and good - but what about MovieClips that reside in the Root Timeline? In this particular SWF File, I have a MovieClip called platMovieClip - and I am trying to access it's properties and methods from within Flex. For example, I'd like to toggle the visibility, so I tried this code: platObject.platMovieClip._visible = false; When I try this command, I get an error that says the property platMovieClip is unknown or something to that effect... If we can't access the assets that reside in SWF Files, then what is the whole point of all this? Or maybe there is something that I am overlooking - but as far as I can tell, the platObject should represent the SWF... Could any of you shed some light on this topic for me? This functionality is VERY important to the success of my website launch. Thanks in advance, Mike -- : : ) Scott
Re: [flexcoders] Cairngorm: ArrayCollection(ValuObject)-Event on changing data?
Dang, You got me excited with: [ArrayElementType(cairngorm.vo.FriendVO)] public var friends:ArrayCollection; But, according to the docs, this only applies to type: Array. I tried it and compiler does not appear to pick up on this restriction, for ArrayCollection (I tried adding item not of type in [ArrayElementType()] and it threw no errors). -Scott On 2/14/07, martywolf11 [EMAIL PROTECTED] wrote: hello, In my ModelLocator class i defined an ArrayCollection: [Bindable] [ArrayElementType(cairngorm.vo.FriendVO)] public var friends:ArrayCollection; storying the FriendVO object works perfectly, but now i want an event to fire up whenever i add a new FriendVO object, delete it or change it. i just tried to use the following command for that: MyModelLocator.getInstance().friends.addEventListener( CollectionEvent.COLLECTION_CHANGE,createFriendsList); which should invoke the method createFriendsList() private function createFriendsList():void { Alert.show(create friendslist); } but it is never called, not even when i do MyModelLocator.getInstance().friends = new ArrayCollection(); can anybody tell me what i am doing wrong? i really would appreciate any info. thanks, marty -- : : ) Scott
Re: [flexcoders] svn and flex not getting along
You have html-template in version control? I don't include that or any of the eclipse/flex files (.project, etc.) - and no problems, here. I also don't include the /bin folder, until I create custom files, such as index.html, js, css (html), etc... -Scott On 2/13/07, Grant Davies [EMAIL PROTECTED] wrote: Sorry for the double post but I hijacked by accident.. I figured out my issue is svn and flex based on this post : http://chattyfig.figleaf.com/pipermail/flashcoders/2006-September/172588.html somehow a stale main.swf got into our html-template folder and then was copied into our bin folder and all hell breaks loose, has there been a fix yet for flex so it ignores svn folders when copyng ? a quick google search didn't reveal much.. Cheers, Grant ... *› b l u e t u b e i n t e r a c t i v e.* .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) › [EMAIL PROTECTED] › http://www.bluetube.com/bti › A Tribal Chicken Designs Affiliate http://www.tribalchicken.com/ -- : : ) Scott attachment: small.jpg
Re: [flexcoders] coords on dragged object
Take a look at DragEvent... -Scott On 2/12/07, Douglas Knudsen [EMAIL PROTECTED] wrote: ok, I have a List populated from a AC of objects. I have drag+drop setup to drag one of the items from the list and drop it onto a VBox contained view. I need to get the x-coord relative to the object being dropped. Anyone have a idea? in 1.5 I used a undocumented piece DragManager[_dragProxy] to get it, of course that bit me in the backside now, eh? I used this to get the mouse coord relative to the dragged object, combined with the mouse coord relative to the stage I can get the x-coord of the object dropped. Diggning through the docs so far, I can't seem to find this. -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? -- : : ) Scott
Re: [flexcoders] Any tips on how to do enable only vertical Sprite Drag and Drop ?
This example is Canvas, but... dragRule is vertical bar beneath the 'dragger' handle. mx:VRule id=dragRule x=182 y=64 height=315/ mx:Canvas id=dragger width=10 height=20 x={ dragRule.x-dragger.width/2 } y=62 mouseDown={ dragger.startDrag( false, new Rectangle( dragRule.x-dragger.width/2, dragRule.y, dragRule.width, dragRule.height-dragger.height ) ); } mouseUp=dragger.stopDrag() - Scott On 2/10/07, helihobby [EMAIL PROTECTED] wrote: Hello, Can anyone post a top on how to to enable only vertical Sprite Drag and Drop ? In other words, when the user drags a sprite, he can only drag it vertically accross the stage and not in any other direction ... !!! Thanks for the help, Sean. -- : : ) Scott
Re: [flexcoders] Scroll Position
May not be precise, but it should be something like: var myPos:uint = 250; myCan.verticalScrollPosition = myPos; -S On 2/10/07, jmfillman [EMAIL PROTECTED] wrote: I have canvas whose content scrolls verticaly about 3 pages. However, I don't want this to always start at the top, but is dependant on the user. The question is, how do I set the vertical scroll position to something other than the top, while still allowing the user to scroll up or down as needed? -- : : ) Scott
Re: [flexcoders] Flex 2 + Wiimote + PaperVision 3D = good times
No, if you read his articles, or watch the right movie (can't remember!) you'll see he wrote a socket server (C++?) that communicates with the Wii. Then, flash hooks up with a binary socket and reads from that. -Scott On 2/9/07, Kevin Newman [EMAIL PROTECTED] wrote: slangeberg wrote: By way of bytearray.org http://bytearray.org: http://blog.je2050.de/2007/02/02/wiiflash-and-papervision3d/ : : ) Scott I must have missed it. Does the Wii support Flash Player 9 now? Kevin N. -- : : ) Scott
Re: [flexcoders] Re: any interest in an alternative to QTP to automate Flex apps?
Brian, I am very interested in in a testing library like you speak of, and was wondering what you thought of Matt's reply? Does your current system utilize mx.automation and/or are you considering leveraging this? Thanks, -Scott On 2/7/07, Matt Chotin [EMAIL PROTECTED] wrote: I am not looking to derail any interest in you guys building alternatives, but would like to point out that the Flex team did a large amount of work to enable the kind of functionality you're looking for (minus the tool). Check out the mx.automation packages and you'll see the infrastructure that is in place to solve problems like using semantic events instead of x/y coordinates, etc. Admittedly, this is the portion that we consider the more interesting IP rather than the plugin that enables QTP to leverage this functionality (and what you need to pay to use). If you have FDS or are willing to invest money in the APIs even if not in QTP itself, I'd encourage you to build on top of this system. Interest from other vendors is increasing as well and I hope that we'll see offerings in addition to QTP in the future (they will be built using this framework). As I stated previously we will continue to examine licensing options for things like the automation package, but do not expect any changes in the short term. Matt -- *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On Behalf Of *brian.knorr *Sent:* Wednesday, February 07, 2007 4:02 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Re: any interest in an alternative to QTP to automate Flex apps? I took a look at imacros...my only concern is that it uses WINCLICK to automate flash apps. This means everything is x/y coordinate based. We want to interact with the actual ui components, finding them by their properties or type. For example here is a short snippet of a simple test we are using...I added the comments in order to explain what is going on: //find the first ComboBox in the app var comboBoxOperator:ComboBoxOperator = flexOperator.find(ComboBox) as ComboBoxOperator; //select the option with the specified label //upon user selection the app fires an event that sets a label component with the text 'You selected: X' comboBoxOperator.select(MasterCard); //find the label with the specified properties and assert the correct selection was made assertEquals(You selected: MasterCard,LabelOperator(flexOperator.find({id:myLabel})).text); Thoughts? --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Allen Riddle [EMAIL PROTECTED] wrote: I've posted on here before about this topic. I think this is something that lacks in the Flex community. Just curious if you or your company have looked at a product called imacros. I downloaded the demo and it was pretty decent. It's a lot cheaper than QTP. It also lets you script out tests. I've also wondered if it was possible to get Ruby's Watir tool to work with Flex, that would be my first choice if so. Cool suggestion, we'd use it. From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of Simeon Bateman Sent: Wednesday, February 07, 2007 3:56 PM To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Subject: Re: [flexcoders] any interest in an alternative to QTP to automate Flex apps? I am interested in this. I had been playing with the thought of using the FA Bridge to allow you to use Selenium to test your applications. Then you could use the Firefox plugin to record our actions and test the movie. Not sure how feasible it is but even that would start with having a testing framework in flex to tie into. simeon On 2/7/07, brian.knorr [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Automating functional tests is critical to the way we develop software at my company. And there are two big things that stop us from using QTP. 1) It's record and playback - we want to write test scripts 2) It costs a lot of money - we want a tool that is free and community driven At my company we are writing several applications in Flex2 and are building out an as3 library that allows us to write test scripts in as3 to drive the Flex ui as if the user was interacting with it. If you are familiar with the Java Swing testing tool called Jemmy, it's very similar in design. Is there any interest out there for a tool like this? I am about to create a sourceforge project, but first wanted to get a feel for the need. Thanks, Brian -- : : ) Scott
[flexcoders] Flex 2 + Wiimote + PaperVision 3D = good times
By way of bytearray.org: http://blog.je2050.de/2007/02/02/wiiflash-and-papervision3d/ : : ) Scott
Re: [flexcoders] Connection from Flex Builder 2.0 to VSS
I scoff at standalone flexbuilder, unless you're not a programmer! Not sure why you wouldn't want to be able to extend your IDE. Kind of like the original FF vs. IE conflict. The only con I've found is when you get any kind of collisions between plug-ins. Not common, and the ones that gave me problems, I was able to remove, because I wasn't using them (php eclipse?). -Scott On 2/6/07, Shannon Hicks [EMAIL PROTECTED] wrote: I have had no cons so far... The pros seem to be that other Eclipse plugins work. Shan Raz Gilad wrote: I've tried and v2.0.1 does not solve the problem. Any idea on the pros / cons of the moving towards FB plugin. - Original Message From: Shannon Hicks [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Sunday, February 4, 2007 6:27:40 PM Subject: Re: [flexcoders] Connection from Flex Builder 2.0 to VSS I never got 2.0 working with the VSS plugin. I had to install Eclipse, the VSS plugin and the FB 2.0 plugin. This might be fixed in 2.0.1, but I never tried it, being satisfied with the FB plugin. Shan raz_gilad wrote: Hi Did anyone succeed in connecting the flex builder to Visual source safe? Is the usual Eclipse plug-in org.vssplugin_ 1.6.1 works in this environment? How? Thanks -- Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travelhttp://travel.yahoo.com/hotelsearchpage;_ylc=X3oDMTFtaTIzNXVjBF9TAzk3NDA3NTg5BF9zAzI3MTk0ODEEcG9zAzIEc2VjA21haWx0YWdsaW5lBHNsawNxMS0wNw--to find your fit. -- : : ) Scott
Re: [flexcoders] Intellectual property or licensing of posted/blogged work
That's an awesome topic and I'd love to hear more about it. My current understanding is that any published work comes under copyright protection, and that would necessitate permission from the author before incorporation into a commercial work, if there is no explicit licensing info provided. -Scott On 2/6/07, engkee [EMAIL PROTECTED] wrote: I have to commend you all for posting a lot of wonderful components and extensions to Flex... eg. Ely's calendar, Doug and Jason's tab navigator extensions, Ben and Trey's reflection effect, Alex's distortion effect, just to name a few. Unfortunately, in these day and age, I would have to ask... am I allowed to incorporate those wonderful works in commercial products? Am I even allowed to look at the source code, if I work for a company producing commercial software, without violating some IP issues. Most of them are not explicitly associated with any specific licensing terms. Sure would be nice if there could be some standard practice of associating these works with a common license, eg. the Creative Commons (http://creativecommons.org/licenses/by/2.5/) Maybe there already is some presumed license or disclaimer for published works. If so, please send a pointer. Just a thought. -Engkee -- : : ) Scott
Re: [flexcoders] Intellectual property or licensing of posted/blogged work
If no license is specified, then I would assume they are in the public domain and are available for free use. I would suspect that's a dangerous assumption. I realize that if you're posting code on a blog, than you can expect someone to probably copy it, but in a court, I understand that any original work belongs to the creator and to use it without permission violates their copyrights. Look at it as me posting a beautiful photo on my blog. That doesn't give people free use to take and resell it. If you followed that through, I would be able to say that anything I find on the internet (without some copyright notice) I can use any way I see fit. Check it out: In the United States http://en.wikipedia.org/wiki/United_States, copyright has been made automatic (in the style of the Berne Convention) since March 1 http://en.wikipedia.org/wiki/March_1, 1989http://en.wikipedia.org/wiki/1989, which has had the effect of making it appear to be more like a property right. Thus, as with property, a copyright need not be granted or obtained through official registration with any government office. Once an idea has been reduced to tangible form, for example by securing it in a fixed medium (such as a drawing, sheet music, photograph, a videotape or a letter), the copyright holder is entitled to enforce his or her exclusive rights. However, while a copyright need not be officially registered for the copyright owner to begin exercising his exclusive rights src: http://en.wikipedia.org/wiki/Copyright#United_States_copyright_law -Scott On 2/6/07, Jeffry Houser [EMAIL PROTECTED] wrote: If no license is specified, then I would assume they are in the public domain and are available for free use. At 03:31 PM 2/6/2007, you wrote: I have to commend you all for posting a lot of wonderful components and extensions to Flex... eg. Ely's calendar, Doug and Jason's tab navigator extensions, Ben and Trey's reflection effect, Alex's distortion effect, just to name a few. Unfortunately, in these day and age, I would have to ask... am I allowed to incorporate those wonderful works in commercial products? Am I even allowed to look at the source code, if I work for a company producing commercial software, without violating some IP issues. Most of them are not explicitly associated with any specific licensing terms. Sure would be nice if there could be some standard practice of associating these works with a common license, eg. the Creative Commons ( http://creativecommons.org/licenses/by/2.5/) Maybe there already is some presumed license or disclaimer for published works. If so, please send a pointer. Just a thought. -Engkee -- Jeffry Houser, Software Developer, Writer, Songwriter, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com Connecticut Macromedia User Group: http://www.ctmug.com -- : : ) Scott
Re: [flexcoders] why doesn't this flex app load?
I got it to work in FF once. Only after viewing with IE tab in FF! However, couldn't recreate, again. -Scott On 2/5/07, Pan Troglodytes [EMAIL PROTECTED] wrote: In a related thread, I uploading a test Flex app to a free web host I found. Well, I noticed something tangential to the original discussion that has me curious. When I go to this site in Firefox, it often doesn't load the Flex app. http://three.fsphost.com/flex2/pngbug/PNGBug.html In IE it works every time. Buy in FF, it will just sit there at the teal screen that usually says loading. I have confirmed that it's not just FF on my machine, either. I've tested in FF 1.5 and 2. Can anyone tell why it's doing this? If it's an issue that can happen with this ISP, it's an issue that can happen with others. Is it something wrong with the way their webserver is handling out the data or something? I never have a problem opening the app locally using FF. And I can get it to load SOMETIMES in FF if I hit back then forward and reload or go to another page and hit back and reload. So that seems to point to more of a client issue. But the same app works fine all the time on other servers. I'm pretty stumped. -- Jason -- : : ) Scott
Re: [flexcoders] Re: Apollo features
Sorry if i missed first half of thread, but isn't the point to create desktop apps - whether online or not? You should see a significant performance increase, if your app is resource intensive, and you will gain access to the filesystem, without using sketchy third-party systems or .NET wrappers. Yes I said sketchy. Simply because my experience with anything but .NET wrappers has indeed been 'sketchy', sometimes at best. However, one problem I see is that Apollo isn't planned to be a replacement for these wrappers, when deploying to a CD. I'm hoping to see some work-arounds for this in the future, or perhaps never working with CD-based apps ever again! -Scott On 2/5/07, Jeffry Houser [EMAIL PROTECTED] wrote: I'll just throw this out there. One of my clams (somewhere in this thread) was The only time you aren't connected is in an airplane. Every airport I've been in recently has had wi-fi. I assume this is becoming standard. I think Adobe is shelling out a lot of effort just for the sake of providing people the ability to work in an airplane. There must be something else to it that I do not yet see. At 11:46 AM 2/5/2007, you wrote: At one point about 2 years ago, i was asked to develop a simple CF app that helped managers write some 'weekly status reports' that were rolled up to upper management and then some of those items were rolled up even further up the tree etc. it died a miserable death after a while because many of the managers complained that they wrote their status while traveling - sitting on planes, in airports etc when they had no connectivity... so yes, in my mind there are plenty of applications for offline storage of data and uploading when connected. Mitch --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Jeffry Houser [EMAIL PROTECTED] wrote: At 11:10 AM 2/4/2007, you wrote: Many users are still disconnected. Nomad users are still common place. Most sales people are getting out o the road in order to create opportunities as opposed to staying in the office. Few rural areas are 100% covered by high speed (wifi,gprs,gsm,3G) access. The concept of disconnected apps is becoming more and more intriguing for business and the demands for such apps more and more numerous. I can't fathom needing an Internet connection while driving. Nor can I imagine going to a client / potential client who doesn't have Internet Access. Is it really that common? The prospect of using an embedded db like sqlite(open source, cross platform dll) to store data, Apollo being able to natively exploit that data directly on the client when disconnected, and update the central data store when connected; is one simple but enormous opportunity. Apollo offers an embedded DB? I haven't heard that yet. I'm seriously hoping that Apollo is not just for partially disconnected applications. I still don't get it, though. I'm open to hearing the ideas. Of course, I still think such a conversation would be better off on the Apollo Coders list. -- Jeffry Houser, Software Developer, Writer, Songwriter, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com Connecticut Macromedia User Group: http://www.ctmug.com -- Jeffry Houser, Software Developer, Writer, Songwriter, Recording Engineer AIM: Reboog711 | Phone: 1-203-379-0773 -- My Company: http://www.dot-com-it.com My Podcast: http://www.theflexshow.com My Blog: http://www.jeffryhouser.com Connecticut Macromedia User Group: http://www.ctmug.com -- : : ) Scott
Re: [flexcoders] MouseUpSomewhere event, whence hast thou gone?
I'd first try adding the listener to the stage of the item, else you can place listener on the application itself.. something in ballpark of (sorry if not exact spelling, objects, etc): myHBox.stage.addEventListener( MouseEvent.MOUSE_UP, onMsUp ); -Scott On 2/5/07, Douglas Knudsen [EMAIL PROTECTED] wrote: I'm converting a Flex 1.5 app to 2.0. Under 1.5 I used a event on a HBox called MouseUpSomewhere. Seems this is no more in 2.0. Any ideas what it is now called? Or maybe another way to get this same functionality to work? I can't use mouseOut. I need a event that fires when the user releases the mouse button whilst over a different component. -- Douglas Knudsen http://www.cubicleman.com this is my signature, like it? -- : : ) Scott
Re: [flexcoders] File I/O Error - Error #2038
Check the coldfusion server's admin page. There probably is a setting on production server limiting file upload size. -Scott On 11/6/06, kristian_wright2002 [EMAIL PROTECTED] wrote: I've seen a few posts on this error but none of them seem to solve my issue. I'm trying to upload some files via a FileReference object, with a CF backend. The CFC works fine with smaller files (eg under 300k), but with files over this size, sometimes it works, sometimes it doesn't. When it doesn't work, I get the following I/O Error: IOErrorEvent type=ioError bubbles=false cancelable=false eventPhase=2 text=Error #2038: File I/O Error. URL: my URL The server side script is working, as I can try and upload a smaller file, and it works. But when I'm getting the I/O error, the app stops before it even reaches the CFC. I've set a Progress listener to the FileUpload object, and it seems to just slow down and eventually stop, throwing the I/O error before file upload has reacherd the total bytes of the file. Does anyone know what might be going on here? Thanks, K. -- : : ) Scott
Re: [flexcoders] IE 7 Vista
IE7 currently runs the Flash 9 plugin, so not sure why this wouldn't apply to Vista, as well. -Scott On 11/30/06, Jack Caldwell [EMAIL PROTECTED] wrote: A few questions for the experts. My questions below are the result of what issues, if any, a typical end-user of Flex 2.0 applications will have. These are consumer end-users, not end-users within a controlled environment where an IT person can set up there PC. In other words, the average Joe or Jane PC user. First . . . . Is Flex 2.o be compatible with IE 7? If it is not at this time, does any one have a timeline of when it will be? Second . . . . Will Flex 2.0 be compatible with MS Vista? Again, if not is there a projected timeline. Flex 2.0.1 may be addressing these, but either I missed it or it has not posted. As I recall, currently, Flex 2.0.1 is expected 1st quarter 2007. Right ? Thanks, *Jack* -- : : ) Scott
Re: [flexcoders] My flex app's content on google search
Check out this article on 'progressive enhancement': http://www.adobe.com/devnet/flash/articles/progressive_enhancement.html Basically, your content is on the page, whether flash is present or not. -Scott On 11/30/06, mrinal wadhwa [EMAIL PROTECTED] wrote: Hi All, I know that something similar has been discussed here before but I am new to Flex and need some more clarity. I am making my personal website in Flex (just so that I could learn flex) , the website will have my blog and my picture gallery now here's what I want to do: 1. Google should index all my blog posts 2. When some one searches for some content that is present on my site he/she should get a link that takes him or her to the exact content and not to my applications home Thank you all for your help, Mrinal -- : : ) Scott
Re: [flexcoders] Re: My flex app's content on google search
No, your page needs to generate the content, which is imported to Flash at runtime. Sorry if the original link didn't cover the entire gamut. This may have a better overview: http://blog.deconcept.com/2006/02/27/using-alternate-content-flash/ -Scott On 11/30/06, mrinal.wadhwa [EMAIL PROTECTED] wrote: Hmm .. progressive development .. that's ok for the static content on my website but .. my goal here is to get the content of my blog indexed .. I was planning to keep this content in an xml and make it visible on the flex site using HTTPService .. I cant update the html page every time I update my blog. :? Thank you for the help, Mrinal --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, slangeberg [EMAIL PROTECTED] wrote: Check out this article on 'progressive enhancement': http://www.adobe.com/devnet/flash/articles/progressive_enhancement.html Basically, your content is on the page, whether flash is present or not. -Scott On 11/30/06, mrinal wadhwa [EMAIL PROTECTED] wrote: Hi All, I know that something similar has been discussed here before but I am new to Flex and need some more clarity. I am making my personal website in Flex (just so that I could learn flex) , the website will have my blog and my picture gallery now here's what I want to do: 1. Google should index all my blog posts 2. When some one searches for some content that is present on my site he/she should get a link that takes him or her to the exact content and not to my applications home Thank you all for your help, Mrinal -- : : ) Scott -- : : ) Scott
Re: [flexcoders] Re: My flex app's content on google search
The search engines have looked inside static SWF for quite some time You'd have to tell me how that was done. There is a pertinent comment at the second site that I agree with, at this time: (Rich media and advanced interactive features are never going to be indexed conventionally anyway, so Flash is and always has been superb for embedding such things into sites) -Scott On 11/30/06, mrinal.wadhwa [EMAIL PROTECTED] wrote: Thank you Scott and JD ... Can you guys please present a comparison of the 2 different approaches that both of you are suggesting? Thank you, Mrinal --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, slangeberg [EMAIL PROTECTED] wrote: No, your page needs to generate the content, which is imported to Flash at runtime. Sorry if the original link didn't cover the entire gamut. This may have a better overview: http://blog.deconcept.com/2006/02/27/using-alternate-content-flash/ -Scott On 11/30/06, mrinal.wadhwa [EMAIL PROTECTED] wrote: Hmm .. progressive development .. that's ok for the static content on my website but .. my goal here is to get the content of my blog indexed .. I was planning to keep this content in an xml and make it visible on the flex site using HTTPService .. I cant update the html page every time I update my blog. :? Thank you for the help, Mrinal --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders%40yahoogroups.com, slangeberg slangeberg@ wrote: Check out this article on 'progressive enhancement': http://www.adobe.com/devnet/flash/articles/progressive_enhancement.html Basically, your content is on the page, whether flash is present or not. -Scott On 11/30/06, mrinal wadhwa mrinal.wadhwa@ wrote: Hi All, I know that something similar has been discussed here before but I am new to Flex and need some more clarity. I am making my personal website in Flex (just so that I could learn flex) , the website will have my blog and my picture gallery now here's what I want to do: 1. Google should index all my blog posts 2. When some one searches for some content that is present on my site he/she should get a link that takes him or her to the exact content and not to my applications home Thank you all for your help, Mrinal -- : : ) Scott -- : : ) Scott -- : : ) Scott
Re: [flexcoders] Binding to a custom method: possible?
In this case, your function is not referencing anything Bindable. Something like this may work, but please clarify - if this is not what you're looking for: [Bindable] private var bindableProp:String; private function isEnabled( s:String ):Boolean { ... } mx:ComboBox id=cb enabled={isEnabled( bindableProp )}/ On 11/28/06, ben.clinkinbeard [EMAIL PROTECTED] wrote: There was a similar question asked here recently but my needs are different so I am starting a new thread. My needs are as follows: I have a ComboBox whose enabled state needs to be determined by several factors, thus the need for a custom method. The problem is that this doesn't seem to work, no matter how I try it. Am I missing something or is this just not possible (meaning I have to set a property and bind to that)? Fake sample code below: [Bindable] private function isEnabled():Boolean { if(conditionA) { if(conditionB) { return true; } else { return false; } } } mx:ComboBox id=cb enabled={isEnabled()}/ Thanks, Ben -- : : ) Scott
Re: [flexcoders] Flex implementation of Conway's the Game of Life
It seems to work pretty well. It would be cool if your app had selections for some of the starting configs, like gliders, etc. as found at: http://en.wikipedia.org/wiki/Conway's_Game_of_Life -Scott On 11/24/06, zzwi89 [EMAIL PROTECTED] wrote: Over the holiday weekend I put together a Flex-based implementation of Conway's the Game of Life. If you aren't familiar with it, just click some cells on and then press the start button. They'll either come to life or die off. You can also change the number of cells in the grid or the color they're displayed with. Find it here: http://seanrea.net/life/ I'd love to hear your feedback as well. -- : : ) Scott
Re: [flexcoders] Looping creating objects, how do you do this: var myRadio[b+i]:RadioButton = new RadioButton();
Not sure what your requirements are, but I usually just track dynamic objects in an array:** var radioButtons:Array = new Array(); for ( var i:int = 0; inumBtns; i++ ) { var rb:RadioButton = new RadioButton(); rb.property = value; . . radioButtons.push( rb ); } On 11/17/06, dj [EMAIL PROTECTED] wrote: I know I've posted this already. Sorry, just trying to get this populated in Actionscript, so I thought I'd post again since I've been kind of stuck on this point here. Thanks, Patrick -- : : ) Scott
[flexcoders] MXML - Problem embedding FLA symbol
I'm trying to import a swf symbol into Flex 2. However, the following code works great in AS3 project, but NOT in an MXML project: [Embed(source=../Art.swf, symbol=car_blue)] private var CarBlue:Class; private function init():void { var car_blue:Sprite = new CarBlue(); addChild( car_blue ); } I get the following runtime error: TypeError: Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to mx.core.UIComponent. at FlexDerby/::init() at FlexDerby/___Application1_creationComplete() at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction () at flash.events::EventDispatcher/dispatchEvent() at mx.core::UIComponent/set initialized() at mx.managers::LayoutManager/::doPhasedInstantiation() at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/::callLaterDispatcher2() at mx.core::UIComponent/::callLaterDispatcher() : : ) Scott
[flexcoders] Google code search
Not sure how many have seen this yet, but I'd be intrigued to see what kinds of good stuff people might turn up. As it is, I'm not even real sure where to start!: http://news.zdnet.com/2100-3513_22-6122819.html?part=rsstag=feedsubj=zdnn : : ) Scott __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] Flash 8 - Custom databinding
I'm adapting Cairgorm 0.99 for Flash 8. I want to set up databinding on my ModelLocator, to update a view, and I'm wondering if anyone has done anything like this before?Currently, my model is emitting a 'change' event when properties are changed through getter / setters. I'm guessing I could set this up using MM's DataBinding component, to listen for the change, however, I'm wondering if there's a better way, that only gets triggered when the specific variable I want changes? : : ) Scott __._,_.___ -- 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 Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
[flexcoders] FlexCoders woes
Everyone,I have the solution for your flexcoders problems (too many emails).In Gmail, go to Settings - Filters - Create New Filter:- Place ' flexcoders@yahoogroups.com' in the 'to' field.- select 'Next Step'- check: Skip the inbox (Archive it)Apply the label: New label... - Flex, FlexCoders (whatever you want). [Here, you can star them, or whatever else you want. Labeling and archiving is enough for me.] Next to 'Create Filter' button, check 'Also apply filter to x conversations below', to apply to old messages.- Create Filter Now, you'll be able to browse FlexCoders messages at your leisure, by simply selecting the label from the menu on the left. The number in parentheses is how many unread messages there are. Good luck,: : ) Scott __._,_.___ -- 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. __,_._,___
Re: [flexcoders] Re: WebService Call
So when you point your browser to: http://localhost:9126/SOAP you are seeing the WSDL definition? Scott On 7/28/06, richmcgillicuddy [EMAIL PROTECTED] wrote: Thanks for the pointers, they are really helpful. I have my own appserver and can tell that the flex application calls it, tries toretrieve the wsdl file and then in flex it tells me that there is anXML parsing error in the wsdl file. It this point, I am leaning towards using simple XML since I can generate that if needed. Otherthan download and testing SOAP wsdl validators and making sure it isstandard, i think the only other option is the straight XML.Rich --- In flexcoders@yahoogroups.com, slangeberg [EMAIL PROTECTED] wrote: Yeah, Try something more like (I'm not sure what your 'FlexData' object was supposed to refer to... ): mx:..sometag mx:WebService id=wsTest wsdl=http://localhost:9126/SOAP fault={trace(-1);} result={trace(1);}/ /mx:...sometag On 7/26/06, richmcgillicuddy [EMAIL PROTECTED] wrote: I have a simple web service calling a SOAP web service on my local machine. The call looks like: mx:WebService id=wsTest wsdl=http://localhost:9126/SOAP load=wsTest.FlexData.getData() fault=trace(-1); / It seems to hang waiting for localhost and if I let it wait long enough, it will give me the following error: ReferenceError: Error #1069: Property getData not found on mx.rpc.soap.mxml.Operation and there is no default value. at Step2/__wsTest_load() ... On the Web Server side, I am looking for client connects from flash and do not seem to get even the client connect. Any ideas? Is there anything that looks odd with the WebService statement? Rich -- : : ) Scott -- : : ) Scott __._,_.___ -- 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. __,_._,___
Re: [flexcoders] WebService Call
Yeah, Try something more like (I'm not sure what your 'FlexData' object was supposed to refer to... ): mx:..sometag > mx:WebService id=wsTest wsdl=http://localhost:9126/SOAP fault={trace(-1);} result={trace(1);}/ /mx:...sometag On 7/26/06, richmcgillicuddy [EMAIL PROTECTED] wrote: I have a simple web service calling a SOAP web service on my localmachine. The call looks like:mx:WebService id=wsTestwsdl= http://localhost:9126/SOAPload=wsTest.FlexData.getData()fault=trace(-1); /It seems to hang waiting for localhost and if I let it wait longenough, it will give me the following error: ReferenceError: Error #1069: Property getData not found onmx.rpc.soap.mxml.Operation and there is no default value.at Step2/__wsTest_load()...On the Web Server side, I am looking for client connects from flash and do not seem to get even the client connect. Any ideas?Is there anything that looks odd with the WebService statement?Rich -- : : ) Scott __._,_.___ -- 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. __,_._,___