Re: [flexcoders] Flex Module System ( Different programmers working on a single Project)
What about communication between different modules? *Fahim Akhter* |* Software Design Engineer | White Rabbit Inc* | +92.321.5307672 | akhter.fa...@gmail.com | http://apps.facebook.com/feline-frenzy/ Signature powered by WiseStamp http://www.wisestamp.com/email-install On Thu, Mar 4, 2010 at 10:54 AM, Alex Harui aha...@adobe.com wrote: Just build different SWFs with the classes you need and use Loader to load them. On 3/3/10 3:25 AM, akhter.fahim akhter.fa...@gmail.com wrote: Hi, I was looking into flex's modular approach where you create one main project and then say 5 smaller modules(projects) on which different people work on different things. But when the main project is compiled all smaller modules are compiled with it. Similarly, one module can use the class of another module. I found the adobe documentation for such a approach in flex. But I need the same approach to work for AS3 , I'm using FlexBuilder. Any Ideas? Fahim. -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Flex Module System ( Different programmers working on a single Project)
and I do not want to copy things manually, sometimes you forget to copy and someone is sitting ducks with an old copy. *Fahim Akhter* |* Software Design Engineer | White Rabbit Inc* | +92.321.5307672 | akhter.fa...@gmail.com | http://apps.facebook.com/feline-frenzy/ Signature powered by WiseStamp http://www.wisestamp.com/email-install On Thu, Mar 4, 2010 at 3:06 PM, Fahim Akhter akhter.fa...@gmail.com wrote: What about communication between different modules? *Fahim Akhter* |* Software Design Engineer | White Rabbit Inc* | +92.321.5307672 | akhter.fa...@gmail.com | http://apps.facebook.com/feline-frenzy/ Signature powered by WiseStamp http://www.wisestamp.com/email-install On Thu, Mar 4, 2010 at 10:54 AM, Alex Harui aha...@adobe.com wrote: Just build different SWFs with the classes you need and use Loader to load them. On 3/3/10 3:25 AM, akhter.fahim akhter.fa...@gmail.com wrote: Hi, I was looking into flex's modular approach where you create one main project and then say 5 smaller modules(projects) on which different people work on different things. But when the main project is compiled all smaller modules are compiled with it. Similarly, one module can use the class of another module. I found the adobe documentation for such a approach in flex. But I need the same approach to work for AS3 , I'm using FlexBuilder. Any Ideas? Fahim. -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
Re: [flexcoders] Progress bar in place over a component?
Yes depending on your panel's layout you can add the progress bar as the topmost component (if layout is absolute) or add it as an 'overlay' by adding the progress bar on the panel's rawChildren: myPanel.rawChildren.addChild(myProgressBar) ; On Thu, Mar 4, 2010 at 2:45 AM, Raymond Brown silenttr...@yahoo.com wrote: Is it possible to have several components inside a panel and as one of the components does something in the background can you place a progress bar over the component itself - NOT the whole page ?
RE: [flexcoders] Flex Module System ( Different programmers working on a single Project)
Use PureMVC Framework (Multicore edition) with Fabrication. Rizal Indonesia From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui Sent: Thursday, March 04, 2010 12:54 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex Module System ( Different programmers working on a single Project) Just build different SWFs with the classes you need and use Loader to load them. On 3/3/10 3:25 AM, akhter.fahim akhter.fa...@gmail.com wrote: Hi, I was looking into flex's modular approach where you create one main project and then say 5 smaller modules(projects) on which different people work on different things. But when the main project is compiled all smaller modules are compiled with it. Similarly, one module can use the class of another module. I found the adobe documentation for such a approach in flex. But I need the same approach to work for AS3 , I'm using FlexBuilder. Any Ideas? Fahim. -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui __ Information from ESET Smart Security, version of virus signature database 4913 (20100303) __ The message was checked by ESET Smart Security. http://www.eset.com
[flexcoders] VideoDisplay - video is playing, but without audio
I use VideoDisplay to play videos in my Flex app. The videos are hosted in our local web server. The size of the video is around 10MB to 30MB. I need to play 60 to 80 videos throughout the app. The videos are playing fine, but the audio is missing after playing some videos - not reproducible all the time, but if that happens, all audio stops playing till the end of the app. What could be the issue? any idea? Thanks, Joy
Re: [flexcoders] Trouble with ProgressBar and manual updates.
what happens when you go the other way around... meaning that the add is done before and progress bar update is sent to calllater? On Wed, Mar 3, 2010 at 11:56 PM, Christopher McArthur cmcart...@riotgames.com wrote: callLater is a great suggestion, thank you. Unfortunately, was not helpful in this case. Even delaying the adds by a callLater does not allow the progressBar to update visually. *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Peeyush Tuli *Sent:* Tuesday, March 02, 2010 10:18 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Trouble with ProgressBar and manual updates. it might be that all the processing is too much to be displayed in the same frame. So this might help you http://jimmyflex.blogspot.com/2007/11/dont-forget-power-of-calllater.html ~Peeyush http://www.mds.asia http://jimmyflex.blogspot.com/2007/11/dont-forget-power-of-calllater.html On Wed, Mar 3, 2010 at 6:53 AM, Christopher McArthur cmcart...@riotgames.com wrote: Using Flex3 in AIR standalone application. I have a ton of children I need to add to a Canvas dynamically. When I do this, it takes a long time. So I wanted to display a loading bar to the user. I create a Timer, and every time the timer ticks, I update the loadingBar and I add the child. I also update a textField with the loading progress as a debug tool. What I find is that the textField _always_ updates correctly in realtime, but USUALLY the progress bar does NOT update at all until the entire sequence is finished. If I make the tick time long enough, then the progress bar works, but this time seems very dependent on performance of the individual machine. My question is, how do I know what the lowest possible tick time I can use to make the progress bar update correctly is? Why does it work with the Text field just fine? Or is there a better pattern I could be using to do this correctly? As you can see from the code, I tried some things like updateAfterEvent and invalidateDisplayList to see if I could get it to update faster, but those did not work (unless I set the tick time high). code here: *private* *var* pendingElementsToAdd:Array; *private* *var* totalElementstoAdd:int; *private* *static* *const* TIME_BETWEEN_ADDS:Number = 20; *private* *function* addElements(newElements:Array):*void* { * this*.pendingElementsToAdd = newElements; *this*.totalElementstoAdd = *this*.pendingElementsToAdd.length; var newEventTimer:Timer = *new* Timer(TIME_BETWEEN_ADDS, newElements.length); newEventTimer.addEventListener(TimerEvent.TIMER, onTimerAddNewElement); newEventTimer.addEventListener(TimerEvent.TIMER_COMPLETE, finishAddingElements); newEventTimer.start(); } *private* *function* onTimerAddNewElement(event:TimerEvent):*void* { *this*.loadingBar.setProgress(*this*.totalElementstoAdd - *this*.pendingElementsToAdd.length, *this*.totalElementstoAdd); *this*.loadingText.text = *Elements To Load: * + *this *.pendingElementsToAdd.length; event.updateAfterEvent(); *this*.loadingBar.invalidateDisplayList(); *this*.addChild(*this*.pendingElementsToAdd.pop()); }
[flexcoders] Re: Flex Module System ( Different programmers working on a single Project)
Create an interface that all modules as well as the main application implement. http://livedocs.adobe.com/flex/3/html/help.html?content=04_OO_Programming_10.html http://livedocs.adobe.com/flex/3/html/help.html?content=mxmlcomponents_advanced_5.html --- In flexcoders@yahoogroups.com, Fahim Akhter akhter.fa...@... wrote: and I do not want to copy things manually, sometimes you forget to copy and someone is sitting ducks with an old copy. *Fahim Akhter* |* Software Design Engineer | White Rabbit Inc* | +92.321.5307672 | akhter.fa...@... | http://apps.facebook.com/feline-frenzy/ Signature powered by WiseStamp http://www.wisestamp.com/email-install On Thu, Mar 4, 2010 at 3:06 PM, Fahim Akhter akhter.fa...@... wrote: What about communication between different modules? *Fahim Akhter* |* Software Design Engineer | White Rabbit Inc* | +92.321.5307672 | akhter.fa...@... | http://apps.facebook.com/feline-frenzy/ Signature powered by WiseStamp http://www.wisestamp.com/email-install On Thu, Mar 4, 2010 at 10:54 AM, Alex Harui aha...@... wrote: Just build different SWFs with the classes you need and use Loader to load them. On 3/3/10 3:25 AM, akhter.fahim akhter.fa...@... wrote: Hi, I was looking into flex's modular approach where you create one main project and then say 5 smaller modules(projects) on which different people work on different things. But when the main project is compiled all smaller modules are compiled with it. Similarly, one module can use the class of another module. I found the adobe documentation for such a approach in flex. But I need the same approach to work for AS3 , I'm using FlexBuilder. Any Ideas? Fahim. -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] My Flex app seems to have stopped working in Firefox after installing latest Windows security patches
This morning I installed several Windows XP and IE security patches (list below). The Flex app I've been developing, which uses HTTPService to get JSON-formatted results from a webservice, seems to have stopped working in Firefox 3.6 (yet it still works in IE and in Opera). 2010-03-0408:39:42:234 900 70Agent * Updates to install = 4 2010-03-0408:39:42:625 900 70Agent * Title = Security Update for Windows XP (KB972270) 2010-03-0408:39:42:625 900 70Agent * Title = Update for Microsoft Silverlight (KB979202) 2010-03-0408:39:42:625 900 70Agent * Title = Update for Windows XP (KB955759) 2010-03-0408:39:42:625 900 70Agent * Title = Cumulative Security Update for Internet Explorer 8 for Windows XP (KB978207) Anyone else having similar problems? Thanks Tim Romano
[flexcoders] Question about currentTarget and Event:Listener
How can I have the button responding when it is clicked with the message : you clicked me I tried but it but it does not work. import mx.controls.Alert; public function createHandlers(e:Event):void { b1.addEventListener(MouseEvent.CLICK, submitForm); b2.addEventListener(MouseEvent.CLICK, submitForm); } private function submitForm(e:Event):void { // Handle event here. Alert.show(Current Target: + e.currentTarget.id); Alert.show( You clicked me); } ]]/mx:Script mx:Button id=b1 label=Click Me/ mx:Button id=b2 label=Click Me, Too/ /mx:Application
[flexcoders] Re: Hierarchy in OLAPDataGrid
Duh...never mind...had that extra addSet stuck in there. Removed that and it's working. Just didn't know how many folks were using that OLAPDataGrid. --- In flexcoders@yahoogroups.com, rojoe615 headj...@... wrote: (Hopefully this will make sense...) I'm using the OLAPDataGrid to display metrics for selected products over time. I can get the time dimension working properly, but I want the rows to have metric then the product beneath that. Something like: SALES - Product A - Value, Value, etc. - Product B - Value, Value, etc. on the rows. But instead I get : (All) Product A - SUM Product B - SUM SALES (no header text) Value, Value SALES (no header text) Value, Value Strangely enough all of the numbers are correct, but I lose the row header for Product (where I have no header text. My OLAPASchema looks like: mx:OLAPCube id=cubeResults complete=cubeCompleteHandler(event); mx:OLAPDimension name=TimeDim mx:OLAPAttribute name=Timeline dataField=Timeline/ /mx:OLAPDimension mx:OLAPDimension name=MetricDim mx:OLAPAttribute name=Metric dataField=MetricType/ mx:OLAPAttribute name=Product dataField=ProductName / mx:OLAPHierarchy name=Metric-Product hasAll=true mx:OLAPLevel attributeName=Metric/ mx:OLAPLevel attributeName=Product/ /mx:OLAPHierarchy /mx:OLAPDimension mx:OLAPMeasure name=Units dataField=MetricValue/ And then on the data result I do : --SNIPPET -- metricSet.addElements( cube.findDimension(MetricDim).findAttribute(Metric).children); typeSet.addElements(cube.findDimension(MetricDim).findAttribute(Product).members); rowQueryAxis.addSet(typeSet); rowQueryAxis.addSet(metricSet.crossJoin(typeSet)); -- END SNIPPET -- Does anyone have insight into how to get the hierarchy to display properly?
Re: [flexcoders] Scrolling datagrid mixes up all the values...???
Thanks Alex! Found working samples here: http://blogs.adobe.com/aharui/item_renderers/ -David From: Alex Harui aha...@adobe.com To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Sent: Thu, March 4, 2010 12:54:42 AM Subject: Re: [flexcoders] Scrolling datagrid mixes up all the values...??? If you are using a custom renderer, see past threads on recycling renderers. On 3/3/10 10:07 AM, MonkeyIsland sailorsea21@ yahoo.com wrote: Hello everyone, I'm having an issue with a datagrid. The dataprovider for my datagrid is an arrayCollection of objects (objectParentVO) . My objectParentVO has 2 properties: public var id : int; public var children : ArrayCollection; //objectChildVO' s My objectChildVO has 5 properties: public var id: int; public var name : String; public var code : String; public var isActive : Boolean; public var isDeleted : Boolean; The columns for my datagrid are not mapped to my objectParentVO but to my objectChildVO and they are dynamically added by actionscript. When I fill my datagrid's dataprovider, everything displays right but once I scroll, all the values get mixed up and I can't tell which object is which... The funny thing is that the currect objects are always in the same place only the display values get mixed up... Can anyone understand why and how this is happening??? Thanks! -David -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs. adobe.com/ aharui __ Connect with friends from any web browser - no download required. Try the new Yahoo! Canada Messenger for the Web BETA at http://ca.messenger.yahoo.com/webmessengerpromo.php
[flexcoders] My APP momentarily freezes I pass through my A.C. and create my objects.
Hello everyone, I'm having an issue updating my progress bar, it only displays 100% once completed. I've tried timers, callLaters, and anything else I could have thought of but then realized that my progress bar never updates because my app momentarily freezes as I pass through my ArrayCollection and create my objects... Is there a way to prevent my app from freezing? Thanks :) -David
Re: [flexcoders] My APP momentarily freezes I pass through my A.C. and create my objects.
Is it a very large arraycollection? Flex/flash is single threaded... no animation/screen updates while code is running in a loop for example... break up processing of your data either by using calllater every x iterations or using a timer... On Thu, Mar 4, 2010 at 5:59 PM, MonkeyIsland sailorse...@yahoo.com wrote: Hello everyone, I'm having an issue updating my progress bar, it only displays 100% once completed. I've tried timers, callLaters, and anything else I could have thought of but then realized that my progress bar never updates because my app momentarily freezes as I pass through my ArrayCollection and create my objects... Is there a way to prevent my app from freezing? Thanks :) -David -- Fotis Chatzinikos, Ph.D. Founder, LivinData Technologies www.styledropper.com fotis.chatzini...@gmail.com,
RE: [flexcoders] My APP momentarily freezes I pass through my A.C. and create my objects.
If you see my recent posts, I just had this exact same problem, check out the post I just made, if you need more details let me know, i can post the code I used. Since flash is singlethreaded, you can NOT have a progress bar update in a loop. If you want to update a progress bar while you do work, you need to do a little bit of the work, wait a bit, do a little more, wait a bit, etc. Unfortunately, with the flex progress bar component you seem to have wait quite a while for it to update, so I ended up going with a custom one. -Original Message- From: flexcoders@yahoogroups.com on behalf of MonkeyIsland Sent: Thu 3/4/2010 7:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] My APP momentarily freezes I pass through my A.C. and create my objects. Hello everyone, I'm having an issue updating my progress bar, it only displays 100% once completed. I've tried timers, callLaters, and anything else I could have thought of but then realized that my progress bar never updates because my app momentarily freezes as I pass through my ArrayCollection and create my objects... Is there a way to prevent my app from freezing? Thanks :) -David
RE: [flexcoders] Trouble with ProgressBar and manual updates.
Unfortunately, same problem with callLater in either pattern. I was able to solve my issue though, and I did so like this: -I created my own simple custom component. -It has one property percentComplete, when this property is set it updates the property and calls invalidateDisplayList(). -It ovverides updateDisplayList and uses the drawing API to draw a progress bar there based on percentComplete. And at the end of updateDisplayList It calls dispatchEvent. -In my code, instead of listening for a timer, I listen for that event on my custom progress bar. Every time I hear the event, I addChild and update the percentComplete. This works perfectly. Listening for ENTER_FRAME, EXIT_FRAME, RENDER, etc did not work, so I had to add the custom event. -Christopher -Original Message- From: flexcoders@yahoogroups.com on behalf of Peeyush Tuli Sent: Thu 3/4/2010 5:27 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Trouble with ProgressBar and manual updates. what happens when you go the other way around... meaning that the add is done before and progress bar update is sent to calllater? On Wed, Mar 3, 2010 at 11:56 PM, Christopher McArthur cmcart...@riotgames.com wrote: callLater is a great suggestion, thank you. Unfortunately, was not helpful in this case. Even delaying the adds by a callLater does not allow the progressBar to update visually. *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *Peeyush Tuli *Sent:* Tuesday, March 02, 2010 10:18 PM *To:* flexcoders@yahoogroups.com *Subject:* Re: [flexcoders] Trouble with ProgressBar and manual updates. it might be that all the processing is too much to be displayed in the same frame. So this might help you http://jimmyflex.blogspot.com/2007/11/dont-forget-power-of-calllater.html ~Peeyush http://www.mds.asia http://jimmyflex.blogspot.com/2007/11/dont-forget-power-of-calllater.html On Wed, Mar 3, 2010 at 6:53 AM, Christopher McArthur cmcart...@riotgames.com wrote: Using Flex3 in AIR standalone application. I have a ton of children I need to add to a Canvas dynamically. When I do this, it takes a long time. So I wanted to display a loading bar to the user. I create a Timer, and every time the timer ticks, I update the loadingBar and I add the child. I also update a textField with the loading progress as a debug tool. What I find is that the textField _always_ updates correctly in realtime, but USUALLY the progress bar does NOT update at all until the entire sequence is finished. If I make the tick time long enough, then the progress bar works, but this time seems very dependent on performance of the individual machine. My question is, how do I know what the lowest possible tick time I can use to make the progress bar update correctly is? Why does it work with the Text field just fine? Or is there a better pattern I could be using to do this correctly? As you can see from the code, I tried some things like updateAfterEvent and invalidateDisplayList to see if I could get it to update faster, but those did not work (unless I set the tick time high). code here: *private* *var* pendingElementsToAdd:Array; *private* *var* totalElementstoAdd:int; *private* *static* *const* TIME_BETWEEN_ADDS:Number = 20; *private* *function* addElements(newElements:Array):*void* { * this*.pendingElementsToAdd = newElements; *this*.totalElementstoAdd = *this*.pendingElementsToAdd.length; var newEventTimer:Timer = *new* Timer(TIME_BETWEEN_ADDS, newElements.length); newEventTimer.addEventListener(TimerEvent.TIMER, onTimerAddNewElement); newEventTimer.addEventListener(TimerEvent.TIMER_COMPLETE, finishAddingElements); newEventTimer.start(); } *private* *function* onTimerAddNewElement(event:TimerEvent):*void* { *this*.loadingBar.setProgress(*this*.totalElementstoAdd - *this*.pendingElementsToAdd.length, *this*.totalElementstoAdd); *this*.loadingText.text = *Elements To Load: * + *this *.pendingElementsToAdd.length; event.updateAfterEvent(); *this*.loadingBar.invalidateDisplayList(); *this*.addChild(*this*.pendingElementsToAdd.pop()); }
[flexcoders] Re: Question about currentTarget and Event:Listener
It would appear as if you never call createHandlers. Try this version... ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=createHandlers(event) mx:Script ![CDATA[ import mx.controls.Alert; public function createHandlers(e:Event):void { b1.addEventListener(MouseEvent.CLICK, submitForm); b2.addEventListener(MouseEvent.CLICK, submitForm); } private function submitForm(e:Event):void { // Handle event here. Alert.show(Current Target: + e.currentTarget.id); Alert.show( You clicked me); } ]]/mx:Script mx:HBox width=100% mx:Button id=b1 label=Click Me/ mx:Button id=b2 label=Click Me, Too/ /mx:HBox /mx:Application --- In flexcoders@yahoogroups.com, fred44455 fred44...@... wrote: How can I have the button responding when it is clicked with the message : you clicked me I tried but it but it does not work. import mx.controls.Alert; public function createHandlers(e:Event):void { b1.addEventListener(MouseEvent.CLICK, submitForm); b2.addEventListener(MouseEvent.CLICK, submitForm); } private function submitForm(e:Event):void { // Handle event here. Alert.show(Current Target: + e.currentTarget.id); Alert.show( You clicked me); } ]]/mx:Script mx:Button id=b1 label=Click Me/ mx:Button id=b2 label=Click Me, Too/ /mx:Application
[flexcoders] advice on making secure calls with BLAZEDS
Hi, I'm looking for a more secure way to send data than using a POST. So, I've been looking into BLAZEDS which seems to be a good option. The issue I have is the client site is HTTP and not HTTPS/SSL. So, I cant really retrieve a user name password from the server to then authenticate with. So I guess the next best thing is getting a session or token from the server and then passing it back to a servlet which at least authenticates the request is coming from the app.. Any suggestions on a more secure approach appreciated. cheers, Matt
[flexcoders] help - code assist stopped working
I apologize. This is probably more of an Adobe Support issue, but since I'm using beta 2 of FB4, I wasn't sure what kind of support is currently available. Anyway, I was working on a project yesterday and all of a sudden my code assist stopped working in .as files. Still seems to work fine in .mxml files, so not sure what's going on. Has anyone run into this? Is there anything I can do? The error I receive is: Content Assist did not complete normally. Please see the log for more information. java.lang.NullPointerException I haven't checked the log because I have no idea where it can be found. Running on a Mac, btw. I suppose my next step is to simply reinstall the product if I can't find another fix. Thanks, Chris -- Chris Sheffield Read Naturally, Inc. www.readnaturally.com
Re: [flexcoders] Re: Flex Module System ( Different programmers working on a single Project)
Isn't that mxml? I have a pure as3 project without MXML *Fahim Akhter* |* Software Design Engineer | White Rabbit Inc* | +92.321.5307672 | akhter.fa...@gmail.com | http://apps.facebook.com/feline-frenzy/ Signature powered by WiseStamp http://www.wisestamp.com/email-install On Thu, Mar 4, 2010 at 7:55 PM, valdhor valdhorli...@embarqmail.com wrote: Create an interface that all modules as well as the main application implement. http://livedocs.adobe.com/flex/3/html/help.html?content=04_OO_Programming_10.html http://livedocs.adobe.com/flex/3/html/help.html?content=mxmlcomponents_advanced_5.html --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Fahim Akhter akhter.fa...@... wrote: and I do not want to copy things manually, sometimes you forget to copy and someone is sitting ducks with an old copy. *Fahim Akhter* |* Software Design Engineer | White Rabbit Inc* | +92.321.5307672 | akhter.fa...@... | http://apps.facebook.com/feline-frenzy/ Signature powered by WiseStamp http://www.wisestamp.com/email-install On Thu, Mar 4, 2010 at 3:06 PM, Fahim Akhter akhter.fa...@... wrote: What about communication between different modules? *Fahim Akhter* |* Software Design Engineer | White Rabbit Inc* | +92.321.5307672 | akhter.fa...@... | http://apps.facebook.com/feline-frenzy/ Signature powered by WiseStamp http://www.wisestamp.com/email-install On Thu, Mar 4, 2010 at 10:54 AM, Alex Harui aha...@... wrote: Just build different SWFs with the classes you need and use Loader to load them. On 3/3/10 3:25 AM, akhter.fahim akhter.fa...@... wrote: Hi, I was looking into flex's modular approach where you create one main project and then say 5 smaller modules(projects) on which different people work on different things. But when the main project is compiled all smaller modules are compiled with it. Similarly, one module can use the class of another module. I found the adobe documentation for such a approach in flex. But I need the same approach to work for AS3 , I'm using FlexBuilder. Any Ideas? Fahim. -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Re: Flex Module System ( Different programmers working on a single Project)
Interfaces are pure ActionScript Classes. --- In flexcoders@yahoogroups.com, Fahim Akhter akhter.fa...@... wrote: Isn't that mxml? I have a pure as3 project without MXML *Fahim Akhter* |* Software Design Engineer | White Rabbit Inc* | +92.321.5307672 | akhter.fa...@... | http://apps.facebook.com/feline-frenzy/ Signature powered by WiseStamp http://www.wisestamp.com/email-install On Thu, Mar 4, 2010 at 7:55 PM, valdhor valdhorli...@... wrote: Create an interface that all modules as well as the main application implement. http://livedocs.adobe.com/flex/3/html/help.html?content=04_OO_Programming_10.html http://livedocs.adobe.com/flex/3/html/help.html?content=mxmlcomponents_advanced_5.html --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Fahim Akhter akhter.fahim@ wrote: and I do not want to copy things manually, sometimes you forget to copy and someone is sitting ducks with an old copy. *Fahim Akhter* |* Software Design Engineer | White Rabbit Inc* | +92.321.5307672 | akhter.fahim@ | http://apps.facebook.com/feline-frenzy/ Signature powered by WiseStamp http://www.wisestamp.com/email-install On Thu, Mar 4, 2010 at 3:06 PM, Fahim Akhter akhter.fahim@ wrote: What about communication between different modules? *Fahim Akhter* |* Software Design Engineer | White Rabbit Inc* | +92.321.5307672 | akhter.fahim@ | http://apps.facebook.com/feline-frenzy/ Signature powered by WiseStamp http://www.wisestamp.com/email-install On Thu, Mar 4, 2010 at 10:54 AM, Alex Harui aharui@ wrote: Just build different SWFs with the classes you need and use Loader to load them. On 3/3/10 3:25 AM, akhter.fahim akhter.fahim@ wrote: Hi, I was looking into flex's modular approach where you create one main project and then say 5 smaller modules(projects) on which different people work on different things. But when the main project is compiled all smaller modules are compiled with it. Similarly, one module can use the class of another module. I found the adobe documentation for such a approach in flex. But I need the same approach to work for AS3 , I'm using FlexBuilder. Any Ideas? Fahim. -- Alex Harui Flex SDK Team Adobe System, Inc. http://blogs.adobe.com/aharui
[flexcoders] Changing channel endpoint url
Can you change the the endpoint url to point somewhere besides .../messagebroker/amf? I'd like to have two amf destination, one pointing to server X(a local server), and the other to server Y(a remote server). It seems like I should be able to create two channel-definitions pointing to different urls, but it's not working. I tried creating the two using urls like: endpoint uri=http://{server.name}:{server.port}/{context.root}/messagebroker/amf; .../ endpoint uri=http://10.10.10.10:8080/messagebroker/amf; .../ Upon server startup, I was getting an error stating that messagebroker/amf was already being used. So I thought, OK, I'll change my url path on the local server. I tried changing it to http://{server.name}:{server.port}/{context.root}/XXXmessagebroker/amf;, and updated my web.xml to have: servlet-mapping servlet-nameMessageBrokerServlet/servlet-name url-pattern/XXXmessagebroker/*/url-pattern /servlet-mapping This didn't work as none of my AMF calls to the local server are working even though it looks like the endpoint was created successfully, and I can even navigate to that url in a browser without error. Any ideas? Thanks, GT
[flexcoders] Re: Changing channel endpoint url
Nevermind. It magically started to work. --- In flexcoders@yahoogroups.com, gtb104 gtb...@... wrote: Can you change the the endpoint url to point somewhere besides .../messagebroker/amf? I'd like to have two amf destination, one pointing to server X(a local server), and the other to server Y(a remote server). It seems like I should be able to create two channel-definitions pointing to different urls, but it's not working. I tried creating the two using urls like: endpoint uri=http://{server.name}:{server.port}/{context.root}/messagebroker/amf; .../ endpoint uri=http://10.10.10.10:8080/messagebroker/amf; .../ Upon server startup, I was getting an error stating that messagebroker/amf was already being used. So I thought, OK, I'll change my url path on the local server. I tried changing it to http://{server.name}:{server.port}/{context.root}/XXXmessagebroker/amf;, and updated my web.xml to have: servlet-mapping servlet-nameMessageBrokerServlet/servlet-name url-pattern/XXXmessagebroker/*/url-pattern /servlet-mapping This didn't work as none of my AMF calls to the local server are working even though it looks like the endpoint was created successfully, and I can even navigate to that url in a browser without error. Any ideas? Thanks, GT
Re: [flexcoders] Re: Updating renderer properties
I know this is an old thread, but for those who come across this in the future, this is a great article that sums up the problem and solutions quite well: http://www.adobe.com/devnet/flex/articles/itemrenderers_pt3_02.html Aaron On Fri, Jan 8, 2010 at 10:47 PM, Aaron Hardy aaronius...@gmail.com wrote: Thanks for sharing your thoughts and examples. In my case I decided to pass in a model with a property into the renderers. The model is passed into the renderer by specifying it as a property value in the renderer class factory. The model doesn't ever get replaced after that, but the property inside the model does. I can't say any solution really strikes my fancy, but this seemed to be the most appropriate. Again, thanks for the discussion. Aaron On Fri, Jan 8, 2010 at 9:07 AM, valdhor valdhorli...@embarqmail.comwrote: I set up a quick test bed based on your original post and using a static variable in the renderer(s) and it worked rather well. It may not be what you are after but I will post the example here for others that may want to use this. Application: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical width=700 mx:Script ![CDATA[ import mx.collections.ArrayCollection; import Renderers.CityRenderer; import Renderers.CompanyRenderer; [Bindable] public var initDG:ArrayCollection = new ArrayCollection([ {Company: 'Acme', Contact: 'Bob Jones', Phone: '413-555-1212', City: 'Boston', State: 'MA'}, {Company: 'Allied', Contact: 'Jane Smith', Phone: '617-555-3434', City: 'SanFrancisco', State: 'CA'}, {Company: 'Acme', Contact: 'Bob Jones', Phone: '413-555-1212', City: 'Boston', State: 'MA'}, {Company: 'Allied', Contact: 'Jane Smith', Phone: '617-555-3434', City: 'SanFrancisco', State: 'CA'}, {Company: 'Acme', Contact: 'Bob Jones', Phone: '413-555-1212', City: 'Boston', State: 'MA'}, {Company: 'Allied', Contact: 'Jane Smith', Phone: '617-555-3434', City: 'SanFrancisco', State: 'CA'}, {Company: 'Acme', Contact: 'Bob Jones', Phone: '413-555-1212', City: 'Boston', State: 'MA'}, {Company: 'Allied', Contact: 'Jane Smith', Phone: '617-555-3434', City: 'SanFrancisco', State: 'CA'}, {Company: 'Acme', Contact: 'Bob Jones', Phone: '413-555-1212', City: 'Boston', State: 'MA'}, ]); private function setColors():void { CityRenderer.textColor = #FF; CompanyRenderer.textColor = #FF; initDG.refresh(); } private function resetColors():void { CityRenderer.textColor = #00; CompanyRenderer.textColor = #00; initDG.refresh(); } ]] /mx:Script mx:DataGrid id=myGrid rowHeight=22 dataProvider={initDG} rowCount={initDG.length} mx:columns mx:DataGridColumn dataField=Company itemRenderer=Renderers.CompanyRenderer/ mx:DataGridColumn dataField=Contact/ mx:DataGridColumn dataField=Phone/ mx:DataGridColumn dataField=City width=150 itemRenderer=Renderers.CityRenderer/ /mx:columns /mx:DataGrid mx:HBox mx:Button label=Set Colors click=setColors()/ mx:Button label=Reset Colors click=resetColors()/ /mx:HBox /mx:Application CityRenderer.as: package Renderers { import mx.controls.*; import mx.controls.dataGridClasses.DataGridListData; public class CityRenderer extends Text { public static var textColor:String = #00; public function CityRenderer() { super(); } override public function set data(value:Object):void { super.data = value; if(value != null) { text = value[DataGridListData(listData).dataField]; } } override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void { super.updateDisplayList(unscaledWidth, unscaledHeight); setStyle(color, CityRenderer.textColor); } } } CompanyRenderer.as: package Renderers { import mx.controls.*; import mx.controls.dataGridClasses.DataGridListData; public class CompanyRenderer extends Text { public static var textColor:String = #00; public function CompanyRenderer() { super(); } override public function set data(value:Object):void { super.data = value; if(value != null) { text = value[DataGridListData(listData).dataField]; } } override protected function
Re: [flexcoders] VideoDisplay - video is playing, but without audio
One of our projects has suffered from a similar issue. We're streaming audio from Flash Media Server, and sometimes the audio will cut out - we still get cue points embedded in the audio, the NetStream object doesn't register any errors, and the rest of the app acts like the audio ends at the right time. We also have a recording aspect to our project, and when the audio cuts out, sometimes it will cut back in after we record something. We've really only noticed this problem when running the app on Windows 7 -- and it's more prevalent when the computer is connected via wireless. Have you noticed any similar patterns in your app? -Brian On Wed, Mar 3, 2010 at 10:30 PM, joyh2002 joyh2...@yahoo.com wrote: I use VideoDisplay to play videos in my Flex app. The videos are hosted in our local web server. The size of the video is around 10MB to 30MB. I need to play 60 to 80 videos throughout the app. The videos are playing fine, but the audio is missing after playing some videos - not reproducible all the time, but if that happens, all audio stops playing till the end of the app. What could be the issue? any idea? Thanks, Joy
Re: [flexcoders] help - code assist stopped working
Are you using FB as an Eclipse plugin? If so, you should be able to get the error log by going to Window-Show View-Other, then picking Error Log from the list. -Brian On Thu, Mar 4, 2010 at 11:55 AM, Chris Sheffield cmsheffi...@gmail.comwrote: I apologize. This is probably more of an Adobe Support issue, but since I'm using beta 2 of FB4, I wasn't sure what kind of support is currently available. Anyway, I was working on a project yesterday and all of a sudden my code assist stopped working in .as files. Still seems to work fine in .mxml files, so not sure what's going on. Has anyone run into this? Is there anything I can do? The error I receive is: Content Assist did not complete normally. Please see the log for more information. java.lang.NullPointerException I haven't checked the log because I have no idea where it can be found. Running on a Mac, btw. I suppose my next step is to simply reinstall the product if I can't find another fix. Thanks, Chris -- Chris Sheffield Read Naturally, Inc. www.readnaturally.com
[flexcoders] Simple search for AdvancedDataGrid
Hi, This is my first post to the group...looking forward to learning and helping!!! I need to have a very simple single row match search for my datagrid, which was very easy to implement by looping through the datagrid's Array until I found a match, then setting the datagrid's index and scroll to that index value. This highlights the selected row. All is well. However, this doesn't work when I use the AdvancedDataGrid's (adg) Grouping function. The index no longer matches, even if I do adg.expandAll() first, and also row that is selected does not highlight. I've seen some very, very complex, heavyweight adg search functions that accomodate partial matches and multiple matching rows. Can anyone point me in the right direction ? Thanks!
[flexcoders] Need effect for ViewStack w/o changing the view
Hi all, I have a viewstack like this: mx:ViewStack mx:Canvas id=view1 hideEffect={fadeOut} showEffect={fadeIn} / mx:Canvas id=view2 hideEffect={fadeOut} showEffect={fadeIn} / /mx:ViewStack The hideEffect and showEffect is triggered when I switch the views. How do I make the same effect when I change the contect of view1 (without changing the view from view2 to view1)? I'm already on view1, I change the content of view1, and need the same effect to signal the user that there are changes to the content. I don't want to create a new view. Thanks, Joy
[flexcoders] Have you checked out FDT 3.5, now supporting MXML ?
It's not over... if you buy FDT 3.5 now you will get FDT4 upgrade for free ! http://www.fdt.powerflasher.com/developer-tools/fdt-3/whats-new/
RE: [flexcoders] Need effect for ViewStack w/o changing the view
when the content changes you can call fadeIn.play([view1]); if you want to make it fade out, then fade back in, make a new sequence effect that contains two fade effects. then call it like above. -Original Message- From: flexcoders@yahoogroups.com on behalf of joyh2002 Sent: Thu 3/4/2010 2:09 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Need effect for ViewStack w/o changing the view Hi all, I have a viewstack like this: mx:ViewStack mx:Canvas id=view1 hideEffect={fadeOut} showEffect={fadeIn} / mx:Canvas id=view2 hideEffect={fadeOut} showEffect={fadeIn} / /mx:ViewStack The hideEffect and showEffect is triggered when I switch the views. How do I make the same effect when I change the contect of view1 (without changing the view from view2 to view1)? I'm already on view1, I change the content of view1, and need the same effect to signal the user that there are changes to the content. I don't want to create a new view. Thanks, Joy
Re: [flexcoders] help - code assist stopped working
Did you by any chance upgraded to a newer release than beta 2? C From: Chris Sheffield cmsheffi...@gmail.com To: flexcoders@yahoogroups.com Sent: Thu, March 4, 2010 7:55:03 PM Subject: [flexcoders] help - code assist stopped working I apologize. This is probably more of an Adobe Support issue, but since I'm using beta 2 of FB4, I wasn't sure what kind of support is currently available. Anyway, I was working on a project yesterday and all of a sudden my code assist stopped working in .as files. Still seems to work fine in .mxml files, so not sure what's going on. Has anyone run into this? Is there anything I can do? The error I receive is: Content Assist did not complete normally. Please see the log for more information. java.lang.NullPoint erException I haven't checked the log because I have no idea where it can be found. Running on a Mac, btw. I suppose my next step is to simply reinstall the product if I can't find another fix. Thanks, Chris -- Chris Sheffield Read Naturally, Inc. www.readnaturally. com
[flexcoders] Debugging in Flex Builder and using ant build scripts
Hello, I am curious if it's possible to easily combine the use of ant build scripts and debugging (breakpoints etc.) in Flex Builder. I have written a nice build script and now I wouldlike to be able to hit F9 (Run Debug) to start debugging my application with the swf generated in the build script. Does anyone happen to have experience with this? If so, could you share? Thanks in advance, Weyert