[flexcoders] Tree - how can I move some children of one branch to become children of another?

2009-09-28 Thread flexerciser
Hi I'm looking to develop a Tree component that will allow users to set where a document starts and begins based on pages. Some background on the data. A folder (root) contains at least one document (child). A document is comprised of pages (the pages are the children of the document).

[flexcoders] Activating another program from Flex?

2009-09-28 Thread agaboogaboo
I'm building a Flex GUI and need to start another program based on what they select, how would I do this? The other programs will be in Python and/or Java.

Re: [flexcoders] Custom icon in air installer

2009-09-28 Thread Sam Lai
You mean the icon in this dialog? http://blogs.adobe.com/simplicity/2009/07/revised_air_152_install_experi.html I don't think you can. The AIR install dialogs are fairly rigid in terms of customisation, presumably to keep the install experience uniform across the platform. 2009/9/26 Dave Cates

Re: [flexcoders] AIR + RSL Error #2035: URL Not Found

2009-09-28 Thread Tom Chiverton
On Wednesday 23 Sep 2009, reflexactions wrote: I created a new AIR project Test. Why are you using RSL for an AIR project anyway ? -- Helping to biannually aggregate architectures as part of the IT team of the year, '09 and '08 This email

Re: [flexcoders] Custom icon in air installer

2009-09-28 Thread Dave Cates
Almost...it¹s the second screen of the installer (the screen after the one you linked). Here¹s a screen grab: http://www.redemptionmedia.co.uk/images/air_install_grab.jpg We did this via Flash but I can¹t see how to do it with Flex. Thanks! From: Sam Lai samuel@gmail.com Reply-To:

[flexcoders] Re: AIR + RSL Error #2035: URL Not Found

2009-09-28 Thread reflexactions
Becuase the 'real' AIR app is actually a port of an existing production web based app that has been built as RSL's and about 200 Modules by our team over several years. The modules all have the adobe framework marked as an RSL and our own framework as external. We do a single build of the

RE: [flexcoders] Custom icon in air installer

2009-09-28 Thread Jim Hayes
That's just the standard application icon that you set in the app descriptor file, I believe. It normally works just fine for me in flex. Do you have no image there, or an incorrect one? (something to note, if you make a new application package with an updated icon and install it over the top of

[flexcoders] Re: Activating another program from Flex?

2009-09-28 Thread ag_rcuren
By default there is no way to do this kind of thing. This is because Adobe is very big on security, they don't want malicious flash programs out on the web as it could make them look bad. Even using Air you can not launch other programs. What you can do is use a different projector such as

[flexcoders] 2 way binding hslider with textbox value

2009-09-28 Thread Satish Chowdary
Hi Coders, I am having the problem with hslider 2-way binding in my issue.. as per the value of a slider my textboxes are updating.. but when i changed value in text box slider is not updating am using binding tag... here is my code mx:Binding source={parseInt(txtStart.text ) }

[flexcoders] Re: code for sudoku application

2009-09-28 Thread adrianresajones
--- In flexcoders@yahoogroups.com, venkatesh- venkat_spy...@... wrote: hello every one, i want code for sudoku application in flex...i will be glad if some one provides me the code...please help me.. There is plenty of code out there like this:

Re: [flexcoders] cleanup on exit

2009-09-28 Thread Mark Lapasa
You can try flash.events.Event.DEACTIVATE which comes out of Application a new problem arises if the user really shut down the flash player or just alt-tabbing [p e r c e p t i c o n] wrote: Hi all, Is there any way to do some cleanup just before an app exits? for example i've

[flexcoders] Trapped by a mouse over

2009-09-28 Thread gabriela.perry
Hi. Today at Flexdev*, a brazilian flex group, there was a message about the mouse_over event. The scenario is a canvas with an image inside. The code was: public function color_over(evt:Event):void{ evt.target.setStyle(backgroundColor,someColor); } public function

RE: [flexcoders] Any Stable Enough Flex 4 Nightly build around?

2009-09-28 Thread Peter DeHaan
Aldo, I'd download the latest nightly build from http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4 (currently 4.0.0.10608). If you're still seeing the layout issues in that build (or any other issues), please file a bug at http://bugs.adobe.com/flex/. Thanks, Peter From:

RE: [flexcoders] Trapped by a mouse over

2009-09-28 Thread Alex Harui
When you have a parent component with a child component, the parent component receives a mouseOver when the mouse enters the parent component and a mouseOut when the mouse enters the child component or in any other way leaves the parent component. If you listen for events on the child

[flexcoders] How to resize image to fill area and clip

2009-09-28 Thread Greg Hess
Hi All, I have a content area that I need to fill with a user supplied graphic. The graphic may be any aspect ratio and I want to scale the image to the content area and maintain aspect ratio however, instead of producing white space where the aspect ratio could not be achieved(Standard behavior

[flexcoders] Openx

2009-09-28 Thread fgnowfg
Anyone try this? I can't seem to get it to work w/ flex www.adobe.com/devnet/flex/articles/advertising_flex.html

[flexcoders] Re: Adsense

2009-09-28 Thread fgnowfg
--- In flexcoders@yahoogroups.com, Jeffry Houser j...@... wrote: +1 to Paul. Adobe is making a programming platform. Do you C++, C#, ASP.NET, or Java have native hooks to advertising networks? No, nor do I believe they should. Paul Andrews wrote: fgnowfg wrote: --- In

[flexcoders] Keep the Flex preloader showing until I tell it

2009-09-28 Thread dorkie dork from dorktown
Is there anyway to keep the default Flex preloader visible a bit longer while I do some necessary data fetching? I don't want to show 2 preloaders one after the other. dorkie wait for it dork from dorktown

[flexcoders] Calling Flex/AS3 callbacks from Javascript

2009-09-28 Thread christian.wiggert
Hi, I have a Javascript API, which should be usable with GWT and Flex. Using the FABridge it is really easy to call Javascript methods from AS3 and vice versa. But when I try to register a callback to an AS3 method in my Javascript API I get stuck. Here is a short code sample: public function

[flexcoders] How do I find the event that occurs directly after Event.RENDER

2009-09-28 Thread dorkie dork from dorktown
I need to know when my application has been completely rendered. I know there is a Event.RENDER event but that occurs before the Render frame. If there isn't an event that tells me that can I listen for the Render frame and then wait one frame and know for sure that the frame has been rendered?

[flexcoders] Simulate images loading piece by piece

2009-09-28 Thread dorkie dork from dorktown
Is there a way to show an image being loaded line by line like HTML images do? thanks, dorkie 2400 baud dork from dorktown

Re: [flexcoders] 2 way binding hslider with textbox value

2009-09-28 Thread Latha
Satish, I am not sure if by  leftBoundary, you meant leftBoundary.value But I hope the following code should work as expected. mx:Binding source={parseInt( txtStart. text ) } destination= leftBoundary.value / mx:Binding source={leftBoundary.value.toString( )} destination= txtStart. text/

[flexcoders] Re: Tree - how can I move some children of one branch to become children of anot

2009-09-28 Thread mrcaraion
Hi Try this: // main.mxml ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical mx:Script ![CDATA[ import mx.events.ListEvent; import com.nathan.descriptors.DocumentTreeDataDescriptor;

[flexcoders] flex on a cfm page

2009-09-28 Thread nstokes142
I am sure that this is so basic a question that I am almost embaressed to ask but here goes . . I have a site I have built with Coldfusion. The site is password protected and uses a cfm routine to grant access to the site. I want to add a flex app on this site. I want this app to be password

[flexcoders] Ant Task to Build Air Package

2009-09-28 Thread seanmcmonahan
I'm working on an Ant build script to build and package my Air application. So far it works pretty well except I cannot get the script to use the password for the signing certificate. ADT is invoked like this: java jar=${ADT.JAR} fork=true failonerror=true

Re: [flexcoders] Re: Adsense

2009-09-28 Thread Dan Pride
Why don't you just call adsense with Css on the html page and size the flex portion appropriately or doesn't that fit with the design? Easy hack but it works reall good Dan Pride From: fgnowfg fgno...@yahoo.com To: flexcoders@yahoogroups.com Sent: Sunday,

Re: [flexcoders] Re: Adsense

2009-09-28 Thread Jeffry Houser
+1 to Paul. is a slang way of saying I agree with his comments on the thread. ;) fgnowfg wrote: --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com, Jeffry Houser j...@... wrote: +1 to Paul. Adobe is making a programming platform. Do you C++, C#, ASP.NET, or Java

[flexcoders] How do I determing If I'm running an Air app vs. Flex app?

2009-09-28 Thread luvfotography
Hi, What's the simplest way to test (in actionscript) if I'm running Air vs. Flex? thanks,

RE: [flexcoders] flex on a cfm page

2009-09-28 Thread Jake Churchill
I do it all the time and yes, just password protect the CFM template and the server will protect your SWF. If you are being SUPER secure, you might want to code a login form for both or share sessions or something like that but in general, this is fine. Jake Churchill CF Webtools 11204

Re: [flexcoders] flex on a cfm page

2009-09-28 Thread Jeffry Houser
If people load the SWF directly, wouldn't that bypass any of the security mechanisms you are implementing in your CF code? http://www.myserver.com/Myswf.swf; will never load any CF code and will therefore never validate the users login credentials. [right?] It may not matter for your app,

[flexcoders] Change Application width and height at runtime

2009-09-28 Thread superabe superabe
Hi, I'd like to change the width and height of the top level Application object in my Flex app, at runtime. However the usual attempts to do this simple task do not seem to work. Binding does not work, changing width and height on any of the lifecycle events does not work Anybody know how to

RE: [flexcoders] Change Application width and height at runtime

2009-09-28 Thread Alex Harui
You have to use Javascript and ExternalInterface. The HTML Wrapper is in charge. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of superabe superabe Sent:

RE: [flexcoders] How do I determing If I'm running an Air app vs. Flex app?

2009-09-28 Thread Alex Harui
Flash.system.Security.sandboxType Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of luvfotography Sent: Monday, September 28, 2009 2:30 PM To:

RE: [flexcoders] How do I find the event that occurs directly after Event.RENDER

2009-09-28 Thread Alex Harui
enterFrame is the first even after the player has drawn/updated the screen. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of dorkie dork from dorktown Sent:

RE: [flexcoders] Change Application width and height at runtime

2009-09-28 Thread Jake Churchill
You have to also change the width and height of the embedded SWF. You are probably just changing the stage's width and height. To do this you have to call an external javascript function using ExternalInterface. It's a very simple task, just google that and you'll find a million examples.

[flexcoders] Re: Adsense

2009-09-28 Thread fgnowfg
--- In flexcoders@yahoogroups.com, Dan Pride danielpr...@... wrote: Why don't you just call adsense with Css on the html page and size the flex portion appropriately or doesn't that fit with the design? Easy hack but it works reall good Dan Pride I've tried that, but am not getting

Re: [flexcoders] flex on a cfm page

2009-09-28 Thread Muzak
If people load the SWF directly, wouldn't that bypass any of the security mechanisms you are implementing in your CF code? http://www.myserver.com/Myswf.swf; will never load any CF code and will therefore never validate the users login credentials. [right?] Not if you have an

Re: [flexcoders] flex on a cfm page

2009-09-28 Thread Jeffry Houser
I thought That the Application.cfm will only run if you request a cfm page unless you configure your server differently For a while I do seem to remember that swfs were somehow processed w/ CF, but I thought that was related to Flash Forms which were built in Flex 1.5; but I'm unclear

[flexcoders] Re: Adsense

2009-09-28 Thread fgnowfg
--- In flexcoders@yahoogroups.com, fgnowfg fgno...@... wrote: --- In flexcoders@yahoogroups.com, Dan Pride danielpride@ wrote: Why don't you just call adsense with Css on the html page and size the flex portion appropriately or doesn't that fit with the design? Easy hack but it works

[flexcoders] FileReference.save optional

2009-09-28 Thread markdemich
A lot of my customer base still uses Flash 9. Was trying to determine that if Flash 10 was loaded I would conditionally provide a feature in my app to save something to a file. I tried faking out the compiler by doing something like this. if (isFlash10) { var f:Object = new FileReference();

[flexcoders] Actionscript error : RangeError: Index '2' specified is out of bounds.

2009-09-28 Thread kpjj31
Would anybody be able to tell me why I am getting this actionscript error when looping through an arraycollection. attendeelist = new ArrayCollection(event.result.ATTENDEELIST as Array); length is 3 setting selectedindex based on profileid match var index:int =-1; for (var i:int = 0; 1

[flexcoders] Re: Tree - how can I move some children of one branch to become children of anot

2009-09-28 Thread flexerciser
Wow, what can I say Mr Caraion, you are a LEGEND. Thank you so much for taking the time to help me. I REALLY APPRECIATE IT! It pretty much worked out of the box - I just had to decrement values in the loop that moves the pages since deleting a page removes it from the parent's children

RE: [flexcoders] Actionscript error : RangeError: Index '2' specified is out of bounds.

2009-09-28 Thread Keith Reinfeld
Because 1 will always be less than attendeelist.length so i just keeps going up. Regards, Keith Reinfeld Home Page: http://keithreinfeld.home.comcast.net/ http://keithreinfeld.home.comcast.net From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of kpjj31

[flexcoders] KeyboardEvent.KEY_DOWN

2009-09-28 Thread markflex2007
The following code work fine ?xml version=1.0? !-- events/TrapAllKeys.mxml -- mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; creationComplete=initApp(); mx:Script![CDATA[ private function initApp():void { addEventListener(KeyboardEvent.KEY_DOWN, keyHandler);

[flexcoders] Re: Tree - how can I move some children of one branch to become children of anot

2009-09-28 Thread flexerciser
Apologies Mr Caraion - your original code DID work without any need for modification. I'm not sure why I thought it didn't!

[flexcoders] Re: Tree - how can I move some children of one branch to become children of anot

2009-09-28 Thread flexerciser
Wow, what can I say Mr Caraion, you are a LEGEND. Thank you so much for taking the time to help me. I REALLY APPRECIATE IT! I will be remoting to ColdFusion to get and set the data so I will investigate using an ArrayCollection instead of XML. I think I will need to use the Tree's

[flexcoders] Re: KeyboardEvent.KEY_DOWN

2009-09-28 Thread Anatol
It will work if you'll do one of two things: 1) in the initApp() you'll set programmatically focus on t1, like this: private function initApp():void { addEventListener(KeyboardEvent.KEY_DOWN, keyHandler); t1.setFocus(); } or 2)you'll listen to addedToStage event and add the keyboard event

[flexcoders] Re: Tree - how can I move some children of one branch to become children of anot

2009-09-28 Thread Anatol
Tree control is using internally an mx.controls.treeClasses.DefaultDataDescriptor object to get children for a node etc., I advise you to look at its getChildren() method implementation (flex is open source!). You'll need either to implement ITreeDataDescriptor interface or extend