[flexcoders] Re: How to set the endpoint address in Coldfusion side?

2009-02-12 Thread Michael VanDaniker
The flex2gateway is defined in the services-config.xml file found in your_cf_install_path/wwwroot/WEB_INF/flex/ Depending on how you set up your flex project, this file will be used during compilation so your remote objects will know what 'destination=ColdFusion' actually means. After you edit

Re: [flexcoders]Architect an image gallery transition effect - design suggestions

2009-02-11 Thread Michael VanDaniker
Why not have two Image components, one on top of the other? As the user brings up on image you can fade one out and fade the other in. --- In flexcoders@yahoogroups.com, dorkie dork from dorktown dorkiedorkfromdorkt...@... wrote: I'm trying to create an image gallery component and I need some

[flexcoders] Re: How to test flash apps in the normal (non-debug) player with the debug player in installed?

2009-01-12 Thread Michael VanDaniker
Check out the Flash Switcher Firefox extension. --- In flexcoders@yahoogroups.com, tom s tcs2...@... wrote: Hi All, I have the flash debug player installed for FireFox and IE. What is the best way to test flash apps in the normal (non-debug) player on the *same machine*? (I don't have

[flexcoders] Re: Best practices for using custom service type with Cairngorm ServiceLocator

2008-12-22 Thread Michael VanDaniker
Frankly, using the ServiceLocator in the first place is far from a best practice. In the past, I've done this to initialize my remote objects: var ro:RemoteObject = RemoteObject(ServiceLocator.getInstance().getRemoteObject(ro)); ro.endpoint = myEndpoint; ro.source = mySource; You can do

[flexcoders] Re: Auto-scrolling of selectable Text controls

2008-12-15 Thread Michael VanDaniker
I've run into this before. It appears to be a bug with leading. If you set it to zero, this won't happen, but the lines of text will be a little too close together. You can probably monkey patch it. --- In flexcoders@yahoogroups.com, Michael Prescott michael.r.presc...@... wrote: If you have a

[flexcoders] Re: Why no initial FlexEvent.SHOW event dispatched?

2008-12-02 Thread Michael VanDaniker
When a UIComponent is set to visible for the first time by the LayoutManager, the SHOW event is suppressed. The CREATION_COMPLETE event fired immediately after that call to setVisible, so you should be able to achieve whatever effect you're going for by registering the same function to listen for

[flexcoders] Re: check compiler configurations in runtime

2008-11-24 Thread Michael VanDaniker
The stack trace trick works well. I've written a little class that automates the check. http://michaelvandaniker.com/blog/2008/11/25/how-to-check-debug-swf/ --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: If the app has debug info in it, the text in an

[flexcoders] Re: extends, 2 questions

2008-11-19 Thread Michael VanDaniker
Just create the package structure for mx.core in your source folder and copy UIComponent to that directory. The compiler will use that UIComponent instead of the one in the SDK, so if you change the base class there everything should work as you expect. You'll need to grab Version.as as well

[flexcoders] Re: May I save BitmapAsset instance to database?

2008-11-19 Thread Michael VanDaniker
--- In flexcoders@yahoogroups.com, Michael VanDaniker michael@ wrote: Your question is a bit vague, but I'll try and be of some help. You can use the ImageSnapshot class to get the ByteArray the backs your image. Then you can store those bytes in a database and pull them up later. If you're

[flexcoders] Re: May I save BitmapAsset instance to database?

2008-11-18 Thread Michael VanDaniker
Your question is a bit vague, but I'll try and be of some help. You can use the ImageSnapshot class to get the ByteArray the backs your image. Then you can store those bytes in a database and pull them up later. If you're building an AIR application and saving the image to a local database

[flexcoders] Re: creating a class - question extending

2008-11-18 Thread Michael VanDaniker
Image, like all UIComponents, has a zero argument constructor. Unless your imageWithData knows what its username is going to be without any outside info, it wouldn't make sense to do much of anything with the username in the constructor. If you're going to be instantiating your images in

[flexcoders] Re: Use the Hslider to control the image

2008-11-09 Thread Michael VanDaniker
displayObjectA can by masked by displayObjectB with the assignment displayObjectA.mask = displayObjectB; This will cause only the portions of displayObjectA that are under displayObjectB to show through. Also, you won't actually see any of displayObjectB. There is an example in the docs that

[flexcoders] Re: sortCompareFunction - First the number's then the null's

2008-11-05 Thread Michael VanDaniker
Use this as the sortCompareFunction on your column: public function compareValues(a:Object, b:Object):int { if(a == null b == null) return 0; if(a == null) return 1; if(b == null) return -1; if(a b)

[flexcoders] Re: UM Extension

2008-11-04 Thread Michael VanDaniker
All you have to do is extend the right classes :) Your event class should extend UMEvent. UMEvent has a callbacks property, and within that Callbacks object you'll specify the functions you want called when your delegate finishes (successfully or otherwise). Like so: private function

[flexcoders] Re: Can anyone help me?

2008-10-24 Thread Michael VanDaniker
very much for your response.But i am not aware of this dataFunction.Can you provide me with an example.The link you sent is just showing the signature of the method. Thanks in Advance, Poornima From: Michael VanDaniker [EMAIL PROTECTED] To: flexcoders

[flexcoders] Re: Cairngorm and AyncToken Error

2008-10-23 Thread Michael VanDaniker
I would guess that something is wrong with the line of code where you actually make the call to the RemoteObject. Maybe you're doing something like var token:AsyncToken = remoteObject.call; instead of var token:AsyncToken = remoteObject.call(); Can you post some of the code around your call?

[flexcoders] Re: Can anyone help me?

2008-10-23 Thread Michael VanDaniker
Since you're plotting dates you'll want to use a DateTimeAxis, but you need to make sure that your chart is actually getting Dates. In your current setup DateTimeAxis is trying to create Dates using the Date.parse method, but the format isn't one that the method can handle. That's why you're

[flexcoders] Re: using components

2008-10-21 Thread Michael VanDaniker
You can access your top-level application anywhere in your code via Application.application. To call the method named myMethod, you would use the statement Application.application.myMethod(). You can easily add event listeners on sub-components if you give the components id's. Taking your

[flexcoders] Re: drawing a rectangle with a cutout

2008-10-11 Thread Michael VanDaniker
You could create separate sprites for each rectangle and apply the smaller one as a mask to whatever content is meant to show through the window. --- In flexcoders@yahoogroups.com, Christoph Leva [EMAIL PROTECTED] wrote: Hi all, I am trying to cut a smaller rectangle (name: cutout) out of a

[flexcoders] Re: Accordion control question

2008-10-03 Thread Michael VanDaniker
You'll want to check out the WindowShade component in flexlib --- In flexcoders@yahoogroups.com, burttram [EMAIL PROTECTED] wrote: Is there any way to prevent and accordion control item from opening, so that the header will just act as a button? I'm currently trying to use an accordion

[flexcoders] Re: Gradient that is vertical and horizontal!

2008-09-23 Thread Michael VanDaniker
If 45 degree fill doesn't work out, you can implement bilinear interpolation. http://en.wikipedia.org/wiki/Bilinear_interpolation --- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote: s/45 degree radient fill/45 degree gradient fill/ -Josh On Wed, Sep 24, 2008 at 9:46

[flexcoders] Re: How to line up

2008-08-23 Thread Michael VanDaniker
You're going to have to be a bit more specific before we can help you. What things aren't looking good? How does sizing things with percentage values play into your problem? Anything that subclasses UIComponent can be sized with percentages. Flash Player is designed to display things

[flexcoders] Re: how to search an arraycollection

2008-08-13 Thread Michael VanDaniker
If your collection is sorted by timestamp a binary search would be faster. --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: You'll have to loop through yourself and keep track of the minimum difference From:

[flexcoders] Re: how to search an arraycollection

2008-08-13 Thread Michael VanDaniker
the closest value to the timestamp i am searching for. --- In flexcoders@yahoogroups.com, Michael VanDaniker michael@ wrote: If your collection is sorted by timestamp a binary search would be faster. --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: You'll have

[flexcoders] Re: deprecated horizontalAxisRenderer

2008-08-09 Thread Michael VanDaniker
/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] Michael VanDaniker wrote: Certainly! mx:ColumnChart

[flexcoders] Re: deprecated horizontalAxisRenderer

2008-08-08 Thread Michael VanDaniker
You have to tell your AxisRenderer which axis it should render by setting the axis property. --- In flexcoders@yahoogroups.com, coder3 [EMAIL PROTECTED] wrote: Hi All, i have flex2 code, and now shows warnings in flex 3 for example, mx:CartesianChart :::

[flexcoders] Re: deprecated horizontalAxisRenderer

2008-08-08 Thread Michael VanDaniker
in the documentation for AxisRenderer: http://livedocs.adobe.com/flex/3/langref/mx/charts/AxisRenderer.html#includeExamplesSummary --- In flexcoders@yahoogroups.com, coder3 [EMAIL PROTECTED] wrote: not sure how to do it. is there an example? thanks Michael VanDaniker wrote

[flexcoders] Re: simple arraycollection question

2008-08-06 Thread Michael VanDaniker
I haven't run this code, but I don't see why it wouldn't work: this.source = event.result.source; I personally prefer looping through the returned collection and translating the raw objects into instances of a class I've defined. This allows for compile-time checking on anything you want to do

[flexcoders] Re: simple arraycollection question

2008-08-06 Thread Michael VanDaniker
there somewhere? --- In flexcoders@yahoogroups.com, Michael VanDaniker michael@ wrote: I haven't run this code, but I don't see why it wouldn't work: this.source = event.result.source; I personally prefer looping through the returned collection and translating the raw objects

[flexcoders] Re: Remove Child

2008-08-04 Thread Michael VanDaniker
My guess is that you have something like this... mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Canvas id=canvas mx:LinkButton id=aboutMeLink /mx:Canvas /mx:Application If that's the case, the aboutMeLink is a child of canvas and you'll need to call

[flexcoders] Re: filtering a flex datagrid using a slider with two thumbs

2008-08-04 Thread Michael VanDaniker
You'll want to listen for the change event on the slider. In the event handler you can do something like this... collection.filterFunction = filterByPriceRange; collection.refresh(); Then you'll want your filterByPriceRange function to return true if the price of the given object is between the

[flexcoders] Re: filtering a flex datagrid using a slider with two thumbs

2008-08-04 Thread Michael VanDaniker
flexexamples is a great site for fully functioning code snippets. In the example here http://blog.flexexamples.com/2008/03/12/using-a-combobox-to-filter-items-in-a-datagrid-in-flex/ you'll want to swap out the CheckBox for a HSlider, obviously. Then you can call toggleFilter() when the slider

Re: {Disarmed} RE: [flexcoders] mxml components

2008-07-29 Thread Michael VanDaniker
Are these the same instance or unique instances with in each of the class instances themselves (mainclass/class3)? MainClass.mxml: mx:script ![CDATA{ Import com.myapp.models.LoginClass; ... .. And Class3.mxml mx:script ![CDATA{

[flexcoders] Re: mxml components

2008-07-29 Thread Michael VanDaniker
] wrote: The import class; is what creates the instance? So in other words, if I use the import thisfile.mxml in each of my other files, each one is creating another instance of the thisfile.mxml? From: flexcoders@yahoogroups.com on behalf of Michael

[flexcoders] Re: Flex localization

2008-07-28 Thread Michael VanDaniker
You can use Capabilities.language to get the local language. You don't have to bundle your resources directly into the application. You can use resource modules to externalize the bundles into separate swfs and load the required one at runtime based on the user's language. The documentation on

[flexcoders] Re: Flex Inspiration and ideas

2008-07-28 Thread Michael VanDaniker
For full applications, the showcase on Flex.org http://flex.org/showcase http://flex.org/showcase is worth a look. On a lower level, the custom components in the flexbox http://flexbox.mrinalwadhwa.com/ could serve for some inspiration as well. Happy coding, -Michael --- In

[flexcoders] Re: Timer memory leak

2008-07-25 Thread Michael VanDaniker
Have you tried using setTimeout instead of listening on Timer events? --- In flexcoders@yahoogroups.com, steve.baney [EMAIL PROTECTED] wrote: Howdy all! I've got a memory leak issue with my problem. I just added a third party countdown timer component to my project. I've narrowed down the

[flexcoders] Re: parallel coordinates component with Flex3

2008-07-23 Thread Michael VanDaniker
I recently worked on a project for an info viz course, and one of my group mates built a parallel coordinates plot. I've been blogging about the different visualizations we developed, and I was about to write up the pcp. It'll be a while until I get around to it though. One word of warning:

[flexcoders] Re: parallel coordinates component with Flex3

2008-07-23 Thread Michael VanDaniker
, brian.staats [EMAIL PROTECTED] wrote: Thanks Michael, Can you share your info viz blog? Id be interested in the other visualizations. --- In flexcoders@yahoogroups.com, Michael VanDaniker michael@ wrote: I recently worked on a project for an info viz course, and one of my group mates built

[flexcoders] Re: Getting error when trying to get id of label when adding evt listener

2008-07-23 Thread Michael VanDaniker
You want to look at the event's currentTarget instead of target. From the documentation for MouseEvent: target = The InteractiveObject instance under the pointing device. The target is not always the object in the display list that registered the event listener. Use the currentTarget property to

[flexcoders] Re: Invisible elements taking up space

2008-07-15 Thread Michael VanDaniker
You want to set includeInLayout to false --- In flexcoders@yahoogroups.com, whatabrain [EMAIL PROTECTED] wrote: When I hide an object using the visibility attribute, it still takes up space in the document. I know that in css, you can use the display style to fix this. How do you do it in

[flexcoders] Re: Faster: Canvas Object move VS Graphics clear/redraw

2008-07-15 Thread Michael VanDaniker
This feels like comparing apple and oranges. Can you provide a bit more information about the complexity of your graphics calls and how you're able to consider them as replacements to move operations? The little test I just ran seems to show that graphics operations are faster than calls to

[flexcoders] Re: Animati a HSlider

2008-07-14 Thread Michael VanDaniker
You can tween the value property between your start and end values. For a tweening engine I recommend Tweener or TweenLite. --- In flexcoders@yahoogroups.com, Andreas Santoro [EMAIL PROTECTED] wrote: Hi, i try to animate a mx:HSlider. I wannt the slider to move smoothly to his new value.

[flexcoders] Re: Passing objects to components

2008-07-13 Thread Michael VanDaniker
You've declared that the instance obj should be bindable, but that doesn't make the properties on the class Object bindable. What you can do is create a class for the object you want to pass your custom component and add the bindable metadata tag to the properties you want to bind on. You can

[flexcoders] Re: How would you make a heat map?

2008-07-13 Thread Michael VanDaniker
I realize this is a fairly old thread, but it ended without much resolution. If there is anyone out there still interested in drawing heat maps, I have an implementation that might be worth checking out. http://michaelvandaniker.com/blog/2008/07/06/how-to-make-heat-maps-in-flex/ --- In

[flexcoders] Re: PopUpMenu Button item click....

2008-07-13 Thread Michael VanDaniker
PopUpMenuButton forwards event from it's internal Menu object. Menu only dispatches an itemClick event when the user clicks on a leaf node. You can monkey patch Menu to fire off events when an internal node is clicked by changing the mouseUpHander. By removing the check on isBranch from the line

[flexcoders] Re: XML is NULL immediatelly following service call, but does appear valid in textarea

2008-07-13 Thread Michael VanDaniker
You're on the right track. Remoting calls are done asynchronously, so code that depends on the result of an HTTPService can't be placed immediately after the remoting call. The data will not have loaded before those lines are executed. The HTTPService's result attribute defines an event handler