Re: [flexcoders] Filled Polygon
Hi! Thanks for the advice! If you look at the code a bit closer (I know it's a bit complex) You would see that the moveto is only done on the first point in the loop. I believe the code does follow you advice as this example will show. Suppose I have a 4 point array: point[0] { 1,1} point[1] { 2,2} point[2] { 3,1} point[3] { 1,1} The the code would run the following commands moveto (1,1) beginFill lineto(2,2) lineto(3,1) lineTo(1,1) endFill Which should draw a filled triangle, but all I get is the lines, no fill. -- Carolyn Re: Filled Polygon Posted by: "Adam Royle" <mailto:[EMAIL PROTECTED] Re%3A%20Filled%20Polygon>[EMAIL PROTECTED] Mon Apr 2, 2007 7:07 am (PST) Hi Carolyn, I would say that it's because you are calling graphics.moveTo and graphics.beginFill during your loop, whereas it should be graphics.lineTo Change your logic so that you do this (pseudo-code): clear lineStyle moveTo - (starting point) beginFill loop { lineTo - (each point) } moveTo - (optional end point) endFill Hope this helps. Cheers, Adam - Original Message - From: Carolyn Cole To: <mailto:flexcoders%40yahoogroups.com>flexcoders@yahoogroups.com Sent: Monday, April 02, 2007 11:52 PM Subject: [flexcoders] Filled Polygon Hello, For some reason I can not seem to get my polygon created by lineto to fill. The polygon gets drawn, but the fill never happens. Does anyone have any suggestions? The code I am using is bellow: recColor = 0xFF; transp=0.5; var graphics:Graphics = recShape.graphics; graphics.clear(); graphics.lineStyle(3,recColor,100); graphics.beginFill(recColor,transp); var lastPoint:Point = null; for(var i:int=1; i< points.length; i++){ var p1:Point = new Point() p1.x = points[i-1].x; p1.y = points[i-1].y; var p2:Point = new Point(); p2.x = points[i].x; p2.y = points[i].y; if (lastPoint == null){ graphics.moveTo(p1.x,p1.y); graphics.beginFill(recColor,transp); } graphics.lineTo(p2.x, p2.y); lastPoint = p2; } graphics.endFill(); Thanks! -- Carolyn
[flexcoders] Filled Polygon
Hello, For some reason I can not seem to get my polygon created by lineto to fill. The polygon gets drawn, but the fill never happens. Does anyone have any suggestions? The code I am using is bellow: recColor = 0xFF; transp=0.5; var graphics:Graphics = recShape.graphics; graphics.clear(); graphics.lineStyle(3,recColor,100); graphics.beginFill(recColor,transp); var lastPoint:Point = null; for(var i:int=1; i< points.length; i++){ var p1:Point = new Point() p1.x = points[i-1].x; p1.y = points[i-1].y; var p2:Point = new Point(); p2.x = points[i].x; p2.y = points[i].y; if (lastPoint == null){ graphics.moveTo(p1.x,p1.y); graphics.beginFill(recColor,transp); } graphics.lineTo(p2.x, p2.y); lastPoint = p2; } graphics.endFill(); Thanks! -- Carolyn
RE: [flexcoders] How to clear date field
I posted a question earlier to this list and the response that I got for 1.5 at least was to add a clear button next to the date field. When the clear was clicked you can set the text field like Peter suggested. It would be nice if there was an integrated way. Maybe 2.0 has a different way. At 08:52 AM 4/13/2006, you wrote: DateField has a text property, which you can set to an empty string. -Original Message- From: flexcoders@yahoogroups.com [ mailto:flexcoders@yahoogroups.com] On Behalf Of sandip_patil01 Sent: 13 April 2006 12:21 To: flexcoders@yahoogroups.com Subject: [flexcoders] How to clear date field Hi All, Can anybody tell me how to clear date field. I am using , tag. From this user can select whatever date he want to select. Suppose if user want to leave text box empty after selecting date.i.e.blank text box. How this can be achived ? Thanks, Sandip -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders " on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 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: Repeater and Web Services (Flex 2b1)
Hi! The difference between your code and mine was that I set a temp variable, made all the changes on the temp, and then assigned the temp to the bound variable. I don't know why, but assigning the changed temp variable seemed to react differently than changing the actual bound variable. I'm not sure why excecuteBindings did not work for you. It almost always worked for me. Are you sure you are getting data back from your service? -- Carolyn At 12:58 PM 3/8/2006, you wrote: Thanks for that. executeBindings() didn't work though, it just didn't seem to fire the event. :-( My original mail below has me doing: > > private function populateCategoryList(event : ResultEvent) : void > > { > > tabsDataProvider = new ArrayCollection(); > > var lResults : ArrayCollection = new > ArrayCollection(event.result); > > var lIndex:int; > > for (lIndex = 0; lIndex < lResults.length; lIndex++) > > { > > tabsDataProvider.addItem(lResults.getItemAt(lIndex)); > > } > > } which I think is the same as your other suggestion. This gives me a null error. Any more ideas appreciated, or is this a bug? ta, Tim. --- In flexcoders@yahoogroups.com, Carolyn Cole <[EMAIL PROTECTED]> wrote: > > Hi! > > I know this may not be the "right" way, but you can call > myCategories.executeBindings() > or > I found if I made a new Object added the data to that and then set the > bound object to that: > var tmpArray = new ArrayCollection(); > var lResults : ArrayCollection = new > ArrayCollection(event.result); > var lIndex:int; > for (lIndex = 0; lIndex < lResults.length; lIndex++) > { > tmpArray.addItem(lResults.getItemAt(lIndex)); > } > tabsDataProvider = tmpArray; > I'm not sure if the above will work some times it did, other times I had to > call executeBindings. > > -- Carolyn > > At 11:24 AM 3/8/2006, you wrote: > >Interesting. > > > >This code: > > > > tabsDataProvider = new ArrayCollection(event.result); > > var lCollectionEvent : CollectionEvent = new CollectionEvent(); > > lCollectionEvent.kind = CollectionEventKind.REFRESH; > > tabsDataProvider.dispatchEvent(lCollectionEvent); > > > >causes the same > > > >TypeError: Error #1009: null has no properties. > > at mx.core::Repeater/mx.core:Repeater::getIndexForFirstChild() > > at mx.core::Repeater/mx.core:Repeater::recreate() > > at mx.core::Repeater/mx.core:Repeater::execute() > > at mx.core::Repeater/mx.core:Repeater::sort() > > at mx.core::Repeater/mx.core:Repeater::collectionChangedHandler() > > > >as before. > > > >Tim. > > > >--- In flexcoders@yahoogroups.com, "Tim Sawyer" wrote: > > > > > > Good plan, but I think I need to be more specific with the event. I get > > > > > > Error: Repeater.collectionChangedHandler: unhandled collectionEvent > > > kind, 500 > > > at > > > > >mx.core::Repeater/mx.core:Repeater::collectionChangedHandler()[C:\dev\beta1\sdk\frameworks\mx\core\Repeater.as:1000] > > > at flash.events::EventDispatcher/dispatchEvent() > > > at > > > > >mx.collections::ListCollectionView/dispatchEvent()[C:\dev\beta1\sdk\frameworks\mx\collections\ListCollectionView.as:701] > > > at > > > > >components::DashBoardTabList/components:DashBoardTabList::populateCategoryList()[C:\dev\HEAD\PRODUCT\websites\MisDashboard\dev\components\DashBoardTabList.mxml:27] > > > at > > > > >()[C:\dev\HEAD\PRODUCT\websites\MisDashboard\dev\services\category\FetchCategoryList.as:24] > > > at flash.events::EventDispatcher/dispatchEvent() > > > at > > > > >mx.rpc::AbstractService/dispatchEvent()[C:\dev\enterprise_beta1\frameworks\mx\rpc\AbstractService.as:144] > > > at > > > > >mx.rpc::AbstractOperation/< http://www.macromedia.com/2005/flex/mx/internal::dispatchRpcEvent()[C:\dev\enterprise_beta1\frameworks\mx\rpc\AbstractOperation.as:162] > http://www.macromedia.com/2005/flex/mx/internal::dispatchRpcEvent()[C:\dev\enterprise_beta1\frameworks\mx\rpc\AbstractOperation.as:162 ] > > > at > > > > >mx.rpc::AbstractInvoker/< http://www.macromedia.com/2005/flex/mx/internal::resultHandler()[C:\dev\enterprise_beta1\frameworks\mx\rpc\AbstractInvoker.as:175] > http://www.macromedia.com/2005/flex/mx/internal::resultHandler()[C:\dev\enterprise_beta1\frameworks\mx\rpc\AbstractInvo
Re: [flexcoders] Re: Repeater and Web Services (Flex 2b1)
Hi! I know this may not be the "right" way, but you can call myCategories.executeBindings() or I found if I made a new Object added the data to that and then set the bound object to that: var tmpArray = new ArrayCollection(); var lResults : ArrayCollection = new ArrayCollection(event.result); var lIndex:int; for (lIndex = 0; lIndex < lResults.length; lIndex++) { tmpArray.addItem(lResults.getItemAt(lIndex)); } tabsDataProvider = tmpArray; I'm not sure if the above will work some times it did, other times I had to call executeBindings. -- Carolyn At 11:24 AM 3/8/2006, you wrote: Interesting. This code: tabsDataProvider = new ArrayCollection(event.result); var lCollectionEvent : CollectionEvent = new CollectionEvent(); lCollectionEvent.kind = CollectionEventKind.REFRESH; tabsDataProvider.dispatchEvent(lCollectionEvent); causes the same TypeError: Error #1009: null has no properties. at mx.core::Repeater/mx.core:Repeater::getIndexForFirstChild() at mx.core::Repeater/mx.core:Repeater::recreate() at mx.core::Repeater/mx.core:Repeater::execute() at mx.core::Repeater/mx.core:Repeater::sort() at mx.core::Repeater/mx.core:Repeater::collectionChangedHandler() as before. Tim. --- In flexcoders@yahoogroups.com, "Tim Sawyer" <[EMAIL PROTECTED]> wrote: > > Good plan, but I think I need to be more specific with the event. I get > > Error: Repeater.collectionChangedHandler: unhandled collectionEvent > kind, 500 > at > mx.core::Repeater/mx.core:Repeater::collectionChangedHandler()[C:\dev\beta1\sdk\frameworks\mx\core\Repeater.as:1000] > at flash.events::EventDispatcher/dispatchEvent() > at > mx.collections::ListCollectionView/dispatchEvent()[C:\dev\beta1\sdk\frameworks\mx\collections\ListCollectionView.as:701] > at > components::DashBoardTabList/components:DashBoardTabList::populateCategoryList()[C:\dev\HEAD\PRODUCT\websites\MisDashboard\dev\components\DashBoardTabList.mxml:27] > at > ()[C:\dev\HEAD\PRODUCT\websites\MisDashboard\dev\services\category\FetchCategoryList.as:24] > at flash.events::EventDispatcher/dispatchEvent() > at > mx.rpc::AbstractService/dispatchEvent()[C:\dev\enterprise_beta1\frameworks\mx\rpc\AbstractService.as:144] > at > mx.rpc::AbstractOperation/ http://www.macromedia.com/2005/flex/mx/internal::dispatchRpcEvent()[C:\dev\enterprise_beta1\frameworks\mx\rpc\AbstractOperation.as:162] > at > mx.rpc::AbstractInvoker/ http://www.macromedia.com/2005/flex/mx/internal::resultHandler()[C:\dev\enterprise_beta1\frameworks\mx\rpc\AbstractInvoker.as:175] > at flash.events::EventDispatcher/dispatchEvent() > at > mx.rpc::Producer/acknowledge()[C:\dev\enterprise_beta1\frameworks\mx\rpc\Producer.as:69] > at > C:\dev\enterprise_beta1\frameworks\libs\framework.swc(mx/validators/Validator)$132::DirectHTTPMessageResponder/completeHandler()[C:\dev\enterprise_beta1\frameworks\mx\messaging\channels\DirectHTTPChannel.as:277] > at flash.events::EventDispatcher/dispatchEvent() > at flash.net::URLLoader/flash.net:URLLoader::onComplete() > > Tim. > > --- In flexcoders@yahoogroups.com, "Geoffrey Williams" wrote: > > > > Try: > > > > tabsDataProvider = new ArrayCollection(event.result); > > tabsDataProvider.dispatchEvent (new CollectionEvent ()); > > > > -Original Message- > > From: flexcoders@yahoogroups.com [ mailto:flexcoders@yahoogroups.com] On > > Behalf Of Tim Sawyer > > Sent: Wednesday, March 08, 2006 7:25 AM > > To: flexcoders@yahoogroups.com > > Subject: [flexcoders] Repeater and Web Services (Flex 2b1) > > > > I'm having a problem trying to get a set of tabs generated from a web > > service. Full code for my component is pasted at the end of the > message. > > > > The problem is down to getting the results from the web service and > > getting the tabs to rebuild from that list. > > > > If I do: > > > > tabsDataProvider = new ArrayCollection(event.result); > > > > then the tabs aren't rebuilt, presumably because the Repeater doesn't > > notice the list has changed. > > > > If I add individual objects to the tabsDataProvider, which is an > > ArrayCollection, using a for loop (see code later) then the event does > > fire as expected and I get a runtime error: > > > > TypeError: Error #1009: null has no properties. > > at mx.core::Repeater/mx.core:Repeater::getIndexForFirstChild() > > at mx.core::Repeater/mx.core:Repeater::recreate() > > at mx.core::Repeater/mx.core:Repeater::execute() > > at mx.core::Repeater/mx.core:Repeater::collectionChangedHandler() > > at flash.events::EventDispatcher/dispatchEvent() > > at mx.collections::ListCollectionView/dispatchEvent() > > at > > > mx.collections::ListCollectionView/mx.collections:ListCollectionView::addIte > > msToView() > > at > > > mx.collections::ListCollectionView/mx.collections:List
Re: [flexcoders] Runtime Error #1068: void and * cannot be reconciled
Just a guess here... You defined the function as void. When you call the return statement with no value it probably gets the * type. You could define your function to have a return type you do not use, or drop the void return type. At 01:04 PM 2/24/2006, you wrote: Hi João, >> Isn't missing a { after the if( i==2 )? << In my understanding missed { will cause compilation error, but this code compiles w/o any problem and throws exception at runtime. Probably it's mxmlc or AS3 engine bug, similar code worked well with previous Flex 1.5/AS2. Anyway surrounding return statement with {} doesn't help, to fix this problem code has to be rewritten using if/else statements to prevent "return" usage. -- Thanks, Vadim. - Original Message - From: João Fernandes To: flexcoders@yahoogroups.com Sent: Friday, February 24, 2006 7:37 PM Subject: RE: [flexcoders] Runtime Error #1068: void and * cannot be reconciled Isn't missing a { after the if( i==2 )? João Fernandes Sistemas de Informação Programador Informático Cofina media Avenida João Crisóstomo, Nº 72 . 1069-043 Lisboa PORTUGAL Tel (+351) 213 185 200 . Fax (+351) 213 540 370 [EMAIL PROTECTED] From: flexcoders@yahoogroups.com [ mailto:flexcoders@yahoogroups.com] On Behalf Of Vadim Melnik Sent: sexta-feira, 24 de Fevereiro de 2006 17:33 To: flexcoders@yahoogroups.com Subject: [flexcoders] Runtime Error #1068: void and * cannot be reconciled Hi All, I've got runtime ActionScript error when "return" statement placed inside try/finally block. Small test case attached below, it reports me: VerifyError: Error #1068: void and * cannot be reconciled. Is it correct AS3 behaviour? http://www.macromedia.com/2005/mxml" xmlns="*" creationComplete="test1()"> -- Thanks, Vadim. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders " on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Webservice wsdl
Hello, I would like to use a variable to point the wsdl location of my web service, but I can not seem to get it to work. I have the following variable set in my action script section of my mxml: var wsdlLocation: String = " https://arl3469.arl.psu.edu:8443/uaim-webService/UAIMService.wsdl "; I then try to bind to it in my webservice definition: ... I get the following error: Could not load WSDL: 404 /flex/uaim/{wsdlLocation} Does anyone know of a way that I can use a variable to specify my wsdl location? -- Carolyn -- 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] Mozilla Load Issue
Hello, I found the answer to this. You need to set the width and height of the application tag to a fixed size. -- Carolyn At 08:48 AM 2/22/2006, Carolyn Cole wrote: Hello, I am currently trying to deploy my flex software on a Red Hat Linux machine. The code seems to deploy file, but when I browse to it the Mozilla window comes up showing only half of my app and the rest of the window is covered in gray. I am running Mozilla 1.4.2 on Red Hat Enterprise Linux 3. I have installed the Shockwaver Flash Plugin version 7.0 r61. Does anyone have any ideas? The flex app seems to work, but it looks really bad and is hard to use. Thanks! -- Carolyn -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders " on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Mozilla Load Issue
Hello, I am currently trying to deploy my flex software on a Red Hat Linux machine. The code seems to deploy file, but when I browse to it the Mozilla window comes up showing only half of my app and the rest of the window is covered in gray. I am running Mozilla 1.4.2 on Red Hat Enterprise Linux 3. I have installed the Shockwaver Flash Plugin version 7.0 r61. Does anyone have any ideas? The flex app seems to work, but it looks really bad and is hard to use. Thanks! -- Carolyn -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Binding refresh
You can try calling executeBindings() on the chart after you create the new dates. At 11:11 AM 2/16/2006, you wrote: Alright, I am sending a custom mxml component an array using: theDates={myDateArray} theDates are the displayNames for a chart and yet I can have them update. myDateArray is Bindable and Im literally destroying the array (myDateArray = new Array(5)) and setting new values and yet its not updating them at all in my custom component chart legend. Is there a way to force a binding to refresh no matter what? _ Jonathan Miranda Flexible Master of the Web "In the game of chess, it's important to never let your opponent see your pieces." -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders " on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Re: Problem with CheckRowRenderer
Hello, It is NEVER a good idea to send an E-mail directly to a person on a group list... The point of the list is to allow people to help if and when they have time. If you send it to a person directly they are not likely to have time immediately and/or have the expertise to help. That said, you really need to send out more information. I really do not understand what you are asking. Please post any additional information to the list. -- Carolyn At 07:21 AM 1/31/2006, you wrote: >Hi Carolyn, > >I just saw the message at flexcoders. i need help on implementaion of >Custom Tree. The problem is that if the checkboxes are first checked >and the node is closed, on opening it again it re-renders and displays >the default values. Could u kindly help me out? > >thanks in advance, > >babul -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] ChangeEvent
Hi Matt! Good thought, I tried that first, since the example show you doing it that way. Unfortunately I get the following error: There is no method with the name 'dispatchEvent'. Any other ides would be appreciated! -- Carolyn At 11:14 PM 1/25/2006, Matt Chotin wrote: Take out the dispatcher.dispatchEvent, just leave it as dispatchEvent. You don't need a dispatcher property at all. Matt -Original Message- From: flexcoders@yahoogroups.com [ mailto:flexcoders@yahoogroups.com] On Behalf Of Carolyn Cole Sent: Monday, January 23, 2006 6:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] ChangeEvent Hello! I am trying to get a change event working on a value object, but I just can not seem to get a change to occur. Does anyone have a working example using Chnage Event? Here is the code I have so far import mx.events.*; // ActionScript Document [ChangeEvent("configNameChanged")] class edu.psu.uaim.data.Configuration { public var currentConfig: XML; private var _configName: String = null; private var dispatcher:EventDispatcher; private static function staticConstructor():Boolean { EventDispatcher.initialize(Configuration.prototype); return true; } // Load an EventDispatcher private static var EventDispatcherDependency = EventDispatcher; private static var staticConstructed:Boolean = staticConstructor(); [ChangeEvent("configNameChanged")] public function get configName(): String { Echo.debug("Config Name Get"); if ((_configName == null) && (currentConfig!=null) && (currentConfig!=undefined)){ var node:XMLNode = lookup("configuration.configName"); _configName = node.firstChild.nodeValue; } return _configName; } public function set configName(name: String): Void { _configName = name; setText("configuration.configName", name); dispatcher.dispatchEvent({type:"configNameChanged"}); } } -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders " on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders 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] Event Handling with CreateChild() / addEventListener
Hello, I Believe it should be something like ourGroup.addEventListener("click", this); with a function defined as: function click() { } that does what you want to do. --Carolyn At 11:10 AM 1/25/2006, you wrote: Hi folks, I am creating a set of radio buttons and a radio button group in a function, along these lines: var ourgroup=cell2.createChild (mx.controls.RadioButtonGroup,"rgroup_" + i,{}); cell2.createChild(mx.controls.RadioButton,"b1_" + i, {label: '1',width: 25, groupName:"rgroup_" + i}); cell2.createChild(mx.controls.RadioButton,"b2_" + i, {label: '2',width: 25, groupName:"rgroup_" + i}); cell2.createChild(mx.controls.RadioButton,"b3_" + i, {label: '3',width: 25, groupName:"rgroup_" + i}); cell2.createChild(mx.controls.RadioButton,"b4_" + i, {label: '4',width: 25, groupName:"rgroup_" + i}); What is the best way to specify a change handler function for the radiobuttongroup? I cant seem to locate a good example of this. Thanks, Max -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders " on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] Clear DateField
Hello, I was wondering if there was a standard way to let a user clear a DateField once it has been set. If thought about just adding a clear button, but that seems a bit contrived. Thanks! -- Carolyn -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] ChangeEvent
Hello! I am trying to get a change event working on a value object, but I just can not seem to get a change to occur. Does anyone have a working example using Chnage Event? Here is the code I have so far import mx.events.*; // ActionScript Document [ChangeEvent("configNameChanged")] class edu.psu.uaim.data.Configuration { public var currentConfig: XML; private var _configName: String = null; private var dispatcher:EventDispatcher; private static function staticConstructor():Boolean { EventDispatcher.initialize(Configuration.prototype); return true; } // Load an EventDispatcher private static var EventDispatcherDependency = EventDispatcher; private static var staticConstructed:Boolean = staticConstructor(); [ChangeEvent("configNameChanged")] public function get configName(): String { Echo.debug("Config Name Get"); if ((_configName == null) && (currentConfig!=null) && (currentConfig!=undefined)){ var node:XMLNode = lookup("configuration.configName"); _configName = node.firstChild.nodeValue; } return _configName; } public function set configName(name: String): Void { _configName = name; setText("configuration.configName", name); dispatcher.dispatchEvent({type:"configNameChanged"}); } } -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Using the "mx:Repeater" tag -- S.O.S
Hello, I believe it should be: docThumb.currentItem.name -- Carolyn At 12:34 AM 1/18/2006, you wrote: Hi all, I'm facing issues while using the "Repeater" tag. I have a xml file named "562114560.xml" which defines my data as follows: 001.jpg 1 002.jpg 2 As u can see I need to use the "name" tag value & append it with the rest of the path so that the respective thumbnails generate within the repeater tag. The code written till now is as shown below: horizontalGap="20" marginRight="55" marginBottom="90" width="100%" height="100%" autoLayout="false" clipContent="false"> dataProvider="{pageSource.page}"> mouseOverEffect="docResize" mouseOutEffect="docDefault" mouseOver="popToTop(event.target)" mouseOut="restore(event.target)" borderColor="#99FF00" borderStyle="solid" borderThickness="1" id="docu"> As shown above, I'm stuck with what value to provide within the "source" attribute in the "Image" tag. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders " on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
RE: [flexcoders] rowRenderer
Matt, It Worked Like a charm Thanks! -- Carolyn At 11:11 PM 12/14/2005, you wrote: Shouldn't your super.setValue call be the first line of the method no matter what (above the if)? Also I'm not sure if it would make a difference to compare if (item != null) instead of if (item != undefined). Matt -Original Message- From: flexcoders@yahoogroups.com [ mailto:flexcoders@yahoogroups.com] On Behalf Of Carolyn Cole Sent: Wednesday, December 14, 2005 7:05 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] rowRenderer Hello, I am currently trying to implement the CheckRowRenderer and get it to actually work. I took the code from the tutorial and modified it to be able to show the open/close icon and the check box. I also added some code to destroy the check box in setValue if the item is undefined so you would not get the "extra" boxes on the screen before you rolled over them. Generally it seemed to work until I tried to modify the data being displayed in the Tree. Once the data is changed some of the old data still displays until it get scrolled off the screen. I am guessing I need to destroy the check box at another time, but I can't figure out when. I have attached the mxml and as that I am using. Any ideas would be appreciated. Thanks! -- Carolyn -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS Visit your group "flexcoders " on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
[flexcoders] rowRenderer
Hello, I am currently trying to implement the CheckRowRenderer and get it to actually work. I took the code from the tutorial and modified it to be able to show the open/close icon and the check box. I also added some code to destroy the check box in setValue if the item is undefined so you would not get the "extra" boxes on the screen before you rolled over them. Generally it seemed to work until I tried to modify the data being displayed in the Tree. Once the data is changed some of the old data still displays until it get scrolled off the screen. I am guessing I need to destroy the check box at another time, but I can't figure out when. I have attached the mxml and as that I am using. Any ideas would be appreciated. Thanks! -- Carolyn Yahoo! Groups Sponsor ~--> Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/2jUsvC/tzNLAA/TtwFAA/nhFolB/TM ~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ import mx.controls.treeclasses.TreeRow import mx.controls.CheckBox class CheckRowRenderer extends TreeRow { var _check : MovieClip; var initValue = 0; function createChildren() : Void { super.createChildren(); if (_check != undefined) { destroyObject("_check"); delete _check; } _check = createClassObject(CheckBox, "_check", 100); _check.addEventListener("click", this); this.addEventListener("unload",this); } function size() : Void { super.size(); super._x = super._x+10; _check.setSize(height-2, height-2); _check._y = (height - _check._height) / 2 _check._x = disclosure._x; disclosure._x = _check._x + _check._width + 2; nodeIcon._x = disclosure._x + disclosure._width + 2; cell._x = nodeIcon._x + nodeIcon._width + 2; } // Doing this so that the first time this drawn the size will be set correctly function draw():Void { super.draw(); size(); } // Doing this so that when a user scrolls over the check box the data will be sized correctly function setState(newState: String, transition: Boolean):Void { super.setState(newState, transition); size(); } // Doing this so that we can control how the check box is shown when the value is changed function setValue(item, state) { if (item != undefined) { super.setValue(item, state); if (_check== undefined) _check = createClassObject(CheckBox, "_check", 100); var mustRedraw:Boolean = (_check.selected != (item.attributes.checked=="true")); if (mustRedraw) _check.redraw(); size(); // This little loop reads in the preset values and then jumps out once // they are set. for(initValue; initValue<=0; initValue++){ _check.selected = (item.attributes.checked=="true"); } _root.initValue = 1; } else { destroyObject("_check"); delete _check; } } function click() { listOwner.editField(rowIndex, "checked", (_check.selected) ? "true" : "false"); } function unload() { destroyObject("_check"); delete _check; } } http://www.macromedia.com/2003/mxml"; xmlns="*" xmlns:uaimMap="edu.psu.uaim.map.*" > https://arl3469.arl.psu.edu:8443/uaim-webService/UAIMService.wsdl"; showBusyCursor="true"> {userID.text}{loginPassword.text} No-Dong Macromedia Flex Macromedia Dreamweaver Macromedia ColdFusion Macromedia Flash COMMINT Collection Time 15 Unknown 10 10