[flexcoders] Re: LCDS - adding a new Item using createItem()
I had the same problem and I ended with the following solution: Add an event listener on your collection like this: groups.addEventListener(CollectionEvent.COLLECTION_CHANGE, onDataChanged); In the onDataChanged function, look if the 'kind' property of the event is CollectionEventKind.UPDATE. Then you can find the id with something like that: if (ev.items.length 0) { var pce:PropertyChangeEvent = ev.items[0] as PropertyChangeEvent; var id:Number = pce.currentTarget.id; } Hope it helps, Benjamin. --- In flexcoders@yahoogroups.com, Besite - Bart b...@... wrote: Hello, In my Data Management Service I create a new User-object using the createItem() function : ds.createItem(new User(Jeff)); var token:AsyncToken = ds.commit(); token.kind = create; When the commit is sent, the new User is persisted to the server... In my database an autoincrement id is generated, but the object returned to the Flex client has still an id equal to 0. How do I know the unique id of the created User-object on the client-side ? I need this unique id to do some remote calls as soon as it is created on the server... Any help is welcome ! Kind regards Bart
[flexcoders] [LCDS] Doesn't work with two 'in clause' ?
I am using the SQL assembler in LCDS 2.6. I have a fill with two 'in clause' that causes a SQL error: index out of range. If my fill is: SELECT * FROM statDetails WHERE destination_ip in (#destinations#) it works If my fill is: SELECT * FROM statDetails WHERE source_ip in (#sources#) it works But if my fill is: SELECT * FROM statDetails WHERE destination_ip in (#destinations#) AND source_ip in (#sources#) it makes a fault and the sql error is: index 13 out of range (note that my arrays each have 11 elements) I tried the query directly in the sql server and it works so I think it is a problem with LCDS. Does anybody know what's going on? Benjamin.
[flexcoders] Re: Runaway series effect on line chart
Yes, I encountered this. It was with BarSet and stacked series, like in this example: mx:series mx:BarSet type=clustered mx:BarSeries xField=revenue displayName=Revenue/ mx:BarSet type=stacked mx:BarSeries xField=costs displayName=Recurring Costs/ mx:BarSeries xField=oneTime displayName=One-Time Costs/ /mx:BarSet /mx:BarSet /mx:series I only could get rid of this problem by doing separate charts or by removing the effect. It looks like a bug in the charts but I never had time to post a bug. Benjamin. --- In flexcoders@yahoogroups.com, Richard Rodseth rrods...@... wrote: I added a SeriesInterpolate effect to a column chart. Spiffy! However, when I added showData/hideData effects to one series of a line chart, they run constantly like an oscilloscope. Has anyone else encountered this?
[flexcoders] Re: Flex 3: ChartLabel.as - parent is null (to Adobe)
I am also a victim! This bug was first reported 6 months ago and it is still there. It is marked as deferred, but deferred doesn't mean forgot, Adobe. Please do something about it, I don't wish other people losing one day like I did over an old bug (and which seem simple to correct). Benjamin. --- In flexcoders@yahoogroups.com, Rico Leuthold [EMAIL PROTECTED] wrote: Yep ... most likely you stumbled over this bug ... https://bugs.adobe.com/jira/browse/FLEXDMV-1695 Use the workaround with not setting initially ... works for me ... On 02.04.2008, at 17:40, adtrantravis wrote: When adding a chart to a canvas component, sometimes I recieve the following error. The parent value of the ChartLabel is null, and that causes the error stated below. Anyone had a similar experience? TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.charts.chartClasses::ChartLabel/updateDisplayList() [C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\ chartClasses\ChartLabel.as:262] at mx.core::UIComponent/validateDisplayList() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as :6214] at mx.managers::LayoutManager/validateDisplayList() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutMana ger.as:602] at mx.managers::LayoutManager/doPhasedInstantiation() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutMana ger.as:657] at Function/http://adobe.com/AS3/2006/builtin::apply() at mx.core::UIComponent/callLaterDispatcher2() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as :8460] at mx.core::UIComponent/callLaterDispatcher() [E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as :8403]
[flexcoders] Re: [Solved] [LCDS] Using where in in the SQL assembler
Hi William, You are right, it works perfectly as you wrote it. I guess I overthought it while it is simple and easy. Thank you for your help, Benjamin. P.S.: as a side note, the in clause will only work from LCDS 2.6. --- In flexcoders@yahoogroups.com, kwbillchan [EMAIL PROTECTED] wrote: Hi Benjamin, I also tried select * from employee where lastname in (123) directly on database console. I got an empty result instead of sql error William --- In flexcoders@yahoogroups.com, kwbillchan wchan@ wrote: Hi Benjamin, I tried the in clause statement without any problem. Here are what I did fill namegetSomeEmployees/name sql select id as id, firstname as firstname, lastname as lastname, phonenumber as phonenumber from employee where id in (#ids#) and phonenumber like concat(#areacode#,'%') /sql /fill fill namegetSomeEmployeesWithSameLastName/name sql select id as id, firstname as firstname, lastname as lastname, phonenumber as phonenumber from employee where lastname in (#lastNames#) /sql /fill fill using number array: var ids: Array = [1,3,5,7,9]; var token: AsyncToken = ds.fill (people, getSomeEmployees, {ids:ids,areacode:617}); fill using String array: var lastnames: Array = [Cattel]; var token: AsyncToken = ds.fill (people, getSomeEmployeesWithSameLastName, {lastNames:lastnames}); William --- In flexcoders@yahoogroups.com, benjidudu benjamin.durin@ wrote: I am unsuccesfully trying using a SELECT index_id, vpn_id FROM circuit WHERE index_id in ('123', '234') sql statement with LCDS' SQL assembler. In my data-management-config.xml, I configured the sql as SELECT index_id, vpn_id FROM circuit WHERE index_id in (#list#). And in Flex, I tried sending 'list' as an Array, a String (with and without quotes) but without success. It always return an empty set but does not return a fault. Does anybody know how I should code this? Thanks, Benjamin.
[flexcoders] [LCDS] Using where in in the SQL assembler
I am unsuccesfully trying using a SELECT index_id, vpn_id FROM circuit WHERE index_id in ('123', '234') sql statement with LCDS' SQL assembler. In my data-management-config.xml, I configured the sql as SELECT index_id, vpn_id FROM circuit WHERE index_id in (#list#). And in Flex, I tried sending 'list' as an Array, a String (with and without quotes) but without success. It always return an empty set but does not return a fault. Does anybody know how I should code this? Thanks, Benjamin.
[flexcoders] Re: state and country dropdown boxes
http://aralbalkan.com/1351 --- In flexcoders@yahoogroups.com, Scott [EMAIL PROTECTED] wrote: Does anyone have/care to share a premade country/state/province dropboxes? I can find a state list, but where does one find an accurate (at least to this day anyway...) country list? Thanks! Scott
[flexcoders] Re: LCDS 2.6 Streaming endpoint problem
I encountered the same error. Where did you file the bug, I can't find it but I would like to vote for it? --- In flexcoders@yahoogroups.com, João Fernandes [EMAIL PROTECTED] wrote: bug #367 BTW, this only happens when trying to commit changes, performing fills works as expected (using streaming Channel) but once I try to use ds.commit([item],true) it throws that error.
[flexcoders] Re: (OT) need a US state selector component
http://www.ilog.com/products/ilogelixir/ --- In flexcoders@yahoogroups.com, Aaron Miller [EMAIL PROTECTED] wrote: Anyone know of a good US state selector component where you can pick a state from the map, or set a 'selected' state problematically? I found a few but they were all geared to be embedded into an html page and written for Flash 7 or 8. I need a good one I can drop into my Flex project and talk back and forth to it. If I was going to pay for something like this, I wanted to make sure it's gravy first. Any suggestions? Thanks! ~Aaron
[flexcoders] Re: AS3 and Flex, AIR API Posters
Registering is not enough. When you register, you have to check a box saying you want the posters or click a link (don't remember exactly). Then you have to fill in your address specifically for the posters. Benjamin. --- In flexcoders@yahoogroups.com, Paul Andrews [EMAIL PROTECTED] wrote: - Original Message - From: Tom Chiverton [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, July 15, 2008 12:38 PM Subject: Re: [flexcoders] AS3 and Flex, AIR API Posters On Monday 14 Jul 2008, hworke wrote: will you be able to get us some of the API posters for Flex 3 and Air and AS3? Everyone who buys Builder v3 can register it online to be sent one, iirc. -- Tom Chiverton If anyone has done this - please let me know. I've registered Flex Builder 3 and nada.. Paul
[flexcoders] LCDS: java.util.Date is not a supported type
I have a strange error with LCDS 2.5.1 I am using Microsoft Sql Server 2005 Express with Microsoft SQL Server 2005 JDBC Driver 1.2 When I do an update with the SQL assembler, I have the following error: 06/06 07:35:08 user [Flex] SQL Assembler jdbc exception on operation=update-item error=com.microsoft.sqlserver.jdbc.SQLServerException: The Java type java.util.Date is not a supported type. at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(Unknown Source) at com.microsoft.sqlserver.jdbc.AppDTVImpl$SetValueOp.executeDefault(Unknown Source) at com.microsoft.sqlserver.jdbc.DTV.executeOp(Unknown Source) at com.microsoft.sqlserver.jdbc.AppDTVImpl.setValue(Unknown Source) at com.microsoft.sqlserver.jdbc.DTV.setValue(Unknown Source) at com.microsoft.sqlserver.jdbc.Parameter.setValue(Unknown Source) at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.setObject(Unknown Source) at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.setObject(Unknown Source) at flex.data.assemblers.SQLAssembler.setSQLParameters(SQLAssembler.java:1342) at flex.data.assemblers.SQLAssembler.updateItem(SQLAssembler.java:1206) at flex.data.adapters.JavaAdapter.doUpdateItem(JavaAdapter.java:1659) at flex.data.adapters.JavaAdapter.invokeAssemblerSync(JavaAdapter.java:1545) at flex.data.adapters.JavaAdapter.invokeBatchOperation(JavaAdapter.java:1410) at flex.data.adapters.JavaAdapter.invoke(JavaAdapter.java:545) at flex.messaging.services.MessageService.serviceMessage(MessageService.java:252) at flex.data.DataService.sendBatchToAdapter(DataService.java:1213) at flex.data.DataService.serviceTransactedMessage(DataService.java:737) at flex.data.DataService.serviceMessage(DataService.java:429) at flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1165) at flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:757) at flex.messaging.endpoints.rtmp.AbstractRTMPServer.dispatchMessage(AbstractRTMPServer.java:888) at flex.messaging.endpoints.rtmp.NIORTMPConnection$RTMPReader.run(NIORTMPConnection.java:424) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690) at java.lang.Thread.run(Unknown Source) Any ideas what I am doing wrong? If that can help, this is the vo I use: package com.janusmediasoft.ctcsp.model.vo { [Managed] [RemoteClass] public class AccountVO { public var acc_no:String = ; public var acc_name:String = ; public var status:Boolean = false; public var email:String = ; public var tel:String = ; public var mobile:String = ; public var group_id:Number; public var vpn_id:String = ; public var start_d:Date; public var stop_d:Date; public var reset: Boolean = false; public var apply:String = ; public var apply_d:Date; public var prog_allow_all:Boolean = false; public var cir_allow_all:Boolean = false; public var stype_allow_all:Boolean = false; } } Thanks, Benjamin
[flexcoders] Re: Unable to Display Hindi
I never had success in editing properties files in Flex Builder. It always screw up the Chinese characters. So now I always edit them in Notepad, saving as UTF8, and it works. What you can try is, copy and paste your text in Notepad. Delete your appStrings.properties file. In Notepad, save your file as appStrings.properties using UTF8 encoding. See if that works. Benjamin Durin. --- In flexcoders@yahoogroups.com, tanarijay [EMAIL PROTECTED] wrote: I am creating an application that displays in a few character sets: English, French, Hindi. I am using resource bundles (name/value pairs in UTF-8 encoded text files named appStrings.properties) and Flex 3 to create my application. I am using the resource manager to retrieve the strings: e.g. mx:TabNavigator id=mainTabControl width=100% height=100% view:CustomView label={resourceManager.getString('appStrings', 'customViewString')}/ /mx:TabNavigator Additionally, I use the following code to set the locale of choice in my app: mx:Script ![CDATA[ [Bindable] private var locales:Array = [ en_CA , fr_CA, hi_IN ]; private function localeComboBox_initializeHandler(event:Event):void { localeComboBox.selectedIndex = locales.indexOf(resourceManager.localeChain[0]); } private function localeComboBox_changeHandler(event:Event):void { resourceManager.localeChain = [ localeComboBox.selectedItem ]; } ]] /mx:Script mx:HBox width=100% height=100% mx:Label text=Langauge:/ mx:ComboBox id=localeComboBox dataProvider={locales} initialize=localeComboBox_initializeHandler(event) change=localeComboBox_changeHandler(event)/ /mx:HBox The problem is that English French characters display correctly, but Hindi characters do not. They show up as a a series of squares. Has anyone encountered this before? Does anyone have an idea what the problem is?
[flexcoders] Re: Cairngorm 2 + Modules: A Proposal
Jeff, you should post this on the Cairngorm group here: http://tech.groups.yahoo.com/group/cairngorm-devel/ You can be sure the Cairngorm creators are reading this one. Regards, Benjamin --- In flexcoders@yahoogroups.com, digitalchckn [EMAIL PROTECTED] wrote: Evening all, Since Flex 2.0.1, one question I've seen buzzing this list and other blogs is how the Flex 2.0.1 modules API can be made to work with the Cairngorm 2 micro-architecture. This has been a burning question for myself as well and while I've read several short messages about how it might be done, I have yet to see any actual code. So, I've been working for a short while on a sensible design which can utilize the new mx.modules API with Cairngorm in a fashion which maintains the elegance of both constructs. For the interested few, I have detailed some of the problems across a series of blog posts as well as a proposed solution at http://blog.digitalmaelstrom.net. At the end of the last post, I have also made the source code available for a proof-of-concept extension framework, an example application, and example module. While the concept isn't feature complete and certainly not a full Cairngorm application, it should illustrate my approach. Direct links to each of the posts are at the end of this message. My hope is to reach other expertise who might extend or improve the concept and provide constructive criticisms. Please feel free to comment on the posts themselves and certainly on this list. It would be nice to see this grow toward a more complete concept or even influence the later design of Cairngorm itself. If any of the Cairngorm developers themselves are listening, I would love to hear their input as well. Good Flexing to you all. -- Jeff Hall Technology Consultant Digital Maelstrom LLC Email/XMPP: [EMAIL PROTECTED] Links - http://blog.digitalmaelstrom.net/2007/04/cairngorm-modules-trouble.html http://blog.digitalmaelstrom.net/2007/04/cairngorm-modules-resolved.html http://blog.digitalmaelstrom.net/2007/04/cairngorm-modules-modellocator.html http://blog.digitalmaelstrom.net/2007/04/cairngorm-modules-frontcontroller.html http://blog.digitalmaelstrom.net/2007/04/cairngorm-modules-viewlocator.html http://blog.digitalmaelstrom.net/2007/04/cairngorm-modules-zenith.html
[flexcoders] Re: How to create a fault in FDS?
Tom and Jeff, thank you very much. It works without a glitch. Is this documented somewhere? I looked for it for a while without finding it. This brings me to the FDS documentation. I think the Flex documentation is very well done and detailed. But the FDS documentation is quite the opposite. It seems to me there is only the minimum we need to know and everything is scattered in the Flex documentation. I would personally prefer a separate doc with detailed explanations on the Java side. Benjamin. --- In flexcoders@yahoogroups.com, Jeff Vroom [EMAIL PROTECTED] wrote: You can just throw a RuntimeException from your fill method (or whatever server side method that FDS is calling). That turns into a fault event on the client. If you are using FDS's LoginCommand interface, you can just have your login method return a Principal that does not support the roles defined by the security constraints you attach to your destination's configuration. This is a declarative approach when you simply need to ensure a user has a given role when performing an operation. Jeff From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of benjidudu Sent: Wednesday, January 31, 2007 3:23 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] How to create a fault in FDS? I have a fill which is called with a parameter. The user login is passed and I check the login in the DAO. What I would like is to create a fault event to return to Flex if the login does not pass my checks. Is there a way to do this? Benjamin.
[flexcoders] How to create a fault in FDS?
I have a fill which is called with a parameter. The user login is passed and I check the login in the DAO. What I would like is to create a fault event to return to Flex if the login does not pass my checks. Is there a way to do this? Benjamin.
[flexcoders] Re: DataService with admin
I think I get it now. I should make two destinations, one for the admin with read and write functions and one for the clients with read-only functions (fill). Am I on the right path? --- In flexcoders@yahoogroups.com, benjidudu [EMAIL PROTECTED] wrote: I am doing two applications accessing the same data: client and admin. The client can see data coming from the dataservice but not modify it. The admin can modify the data and the clients see the modifications in real time through the dataservice. It works well as long as nobody hacks a client to be able to modify the data. Then Hell will break loose! So I'd like to use the J2EE security. I think I understand how to do it in Tomcat but I don't see in FDS how to give different authorizations for the admin and client. Because they share the same dataservice, so they should have the same role, right? So how can I give different rights to different users within the same dataservice ? Or do I have the wrong approach ? Benjamin.
[flexcoders] DataService with admin
I am doing two applications accessing the same data: client and admin. The client can see data coming from the dataservice but not modify it. The admin can modify the data and the clients see the modifications in real time through the dataservice. It works well as long as nobody hacks a client to be able to modify the data. Then Hell will break loose! So I'd like to use the J2EE security. I think I understand how to do it in Tomcat but I don't see in FDS how to give different authorizations for the admin and client. Because they share the same dataservice, so they should have the same role, right? So how can I give different rights to different users within the same dataservice ? Or do I have the wrong approach ? Benjamin.
[flexcoders] Re: Scrolling without a scrollbar
You can skin the scrollbars. So replace the track and thumb with a transparent MovieClip and you will only see the arrows. See here for more details about skinning: http://www.adobe.com/devnet/flex/articles/flex_skins.html Benjamin. --- In flexcoders@yahoogroups.com, Lachlan Cotter [EMAIL PROTECTED] wrote: If you don't have a track and a thumb, I wouldn't really call it scrolling. Perhaps what you're really after might more accurately be called 'paging'. If you think of it in those terms, does the problem become easier to grasp? Cheers, Lach On 06/12/2006, at 8:18 AM, graysonpierce wrote: We have a requirement for a scrollable container that displays right and left arrows (when necessary) but not the track and the thumb. To be more exact something similar to when you open up a bunch of tabs in Firefox and at the point that it can't make the tabs any smaller it displays the right and left icons. Anyone have anything that might be a head-start? Don't really want to get into measuring individual components (mostly buttons), etc. to write it myself. TIA.
[flexcoders] Re: FDS on the desktop?
Perfect, it works like a charm. Thanks for the help, Benjamin. P.S.: embedded SWFs can access both local files and remote networks, seems they are a little special. --- In flexcoders@yahoogroups.com, Peter Farland [EMAIL PROTECTED] wrote: SWFs by default can either choose to access the file system or the remote network (e.g. requests made for data via HTTP), but not both. Flex compilers produce swfs that elect to use the network by default. Apart from that, there's no reason why you can't run a SWF from the desktop (the .mxml - .swf conversion via FDS Webtier compiler is a development time convenience). Some things to consider though... if you're using Flex Builder or the mxml command line compiler you'll probably need to provide the command line argument -services to point to the /WEB-INF/flex/services-config.xml file so that it can compile in the channel definitions for you (assuming you are not creating your own ChannelSets programmatically or you are using the DataService API). Also, you will need to edit each relevant channel-definition endpoint defined in services-config.xml file so that a fully qualified URL is defined - i.e. you can't rely on the {server.name}, {server.port} or {context.root} tokens for portability. Pete From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of benjidudu Sent: Monday, December 04, 2006 2:23 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] FDS on the desktop? Hi, I am doing a desktop application with an embedded swf. I'd like using FDS but all I read is about mxml or swf files in the server along FDS. Is it possible using FDS with swf files not on the FDS server? If yes, how do you do that? Thanks, Benjamin.
[flexcoders] FDS on the desktop?
Hi, I am doing a desktop application with an embedded swf. I'd like using FDS but all I read is about mxml or swf files in the server along FDS. Is it possible using FDS with swf files not on the FDS server? If yes, how do you do that? Thanks, Benjamin.
[flexcoders] Re: Volume trouble with VideoDisplay
Thanks Rick, I finally got it working. I added this function: private function changeVolume():void { pubs.volume += 0.01; pubs.volume -= 0.01; } I tried pubs.volume=pubs.volume but that doesn't work. You have to really change the value. And I added this to the VideoDisplay: ready=changeVolume() This way it does the trick, sticking to the volume set by the user. For me it is a bug in the VideoDisplay component. Benjamin. --- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote: I don't know what's happening there, but I can offer some possible quick and dirty workarounds: 1. Set volumeControl minimum attribute to 0.001 instead of 0. You might still be able to hear it though, you'd have to try it. 2. At beginning of each flv, if pubs.volume==0, set pubs.volume=0 again programmatically. Oh, I see you're already doing that. OK, then, try setting it to some other value (0.1) and then immediately back to 0, or add a really short time delay. (Adding a short time delay has fixed a few such issues for me when an event doesn't seem to fire as advertised and I don't have time to figure out what I did wrong) Sorry none of these are good answers, but they might get you going if you're in a time cruch. (if they even work) Rick -Original Message- From: benjidudu [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 26, 2006 2:39 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Volume trouble with VideoDisplay Hi there, I have a VideoDisplay which plays a list of flv. As soon as a clip is finished playing, it plays the next one. This part works fine. I added a volume control using a HSlider component. This also works fine. When I slide the slider (oh yeah), the volume changes accordingly. But this is the strange part. If I change the volume to 0 while a clip is playing, the next clip volume will automatically return to 0.75 (default value). So I thought after each clip has started playing, I should set the volume to what the slider is set. But the problem is the VideoDisplay volume doesn't change when the next clip is played. I traced its volume property, and even if it is set to 0 (and the trace shows 0), I can HEAR the volume come back to 0.75 at each next song. Does anybody know what's happening here ? The VideoDisplay component: mx:VideoDisplay id=pubs height=150 width=100% autoPlay=true complete=showNextPub(new TimerEvent(TimerEvent.TIMER)) ready=pubs.volume = volumeControl.value / 100; / The HSlider component: mx:HSlider id=volumeControl width=80% x=35 liveDragging=true minimum=0 maximum=100 dataTipFormatFunction=volumeTipFormatter labelStyleName=time labelOffset=0 labels=['0%', '50%', '100%'] snapInterval=1 value={pubs.volume*100} change=pubs.volume=event.value/100 / Thanks, Benjamin. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Volume trouble with VideoDisplay
Hi there, I have a VideoDisplay which plays a list of flv. As soon as a clip is finished playing, it plays the next one. This part works fine. I added a volume control using a HSlider component. This also works fine. When I slide the slider (oh yeah), the volume changes accordingly. But this is the strange part. If I change the volume to 0 while a clip is playing, the next clip volume will automatically return to 0.75 (default value). So I thought after each clip has started playing, I should set the volume to what the slider is set. But the problem is the VideoDisplay volume doesn't change when the next clip is played. I traced its volume property, and even if it is set to 0 (and the trace shows 0), I can HEAR the volume come back to 0.75 at each next song. Does anybody know what's happening here ? The VideoDisplay component: mx:VideoDisplay id=pubs height=150 width=100% autoPlay=true complete=showNextPub(new TimerEvent(TimerEvent.TIMER)) ready=pubs.volume = volumeControl.value / 100; / The HSlider component: mx:HSlider id=volumeControl width=80% x=35 liveDragging=true minimum=0 maximum=100 dataTipFormatFunction=volumeTipFormatter labelStyleName=time labelOffset=0 labels=['0%', '50%', '100%'] snapInterval=1 value={pubs.volume*100} change=pubs.volume=event.value/100 / Thanks, Benjamin. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/