[flexcoders] Question on Flex Script Execution + Alert.show

2009-08-26 Thread Angelo Anolin
Hi FlexCoders,

This has puzzled me a bit..

I have the following scripts in my application:

private var myAlert:int;

private function testFunction(evt:Event):void
{
  Alert.show('do you want to proceed', 'Title', Alert.YES | Alert.NO, null, 
alertHandler, null, Alert.YES);

  if(myAlert == 1)
  {
// Do Something here
  }
  else
  {
// Do other thing here
  }
}

Private function alertHandler(evt:CloseEvent)
{
  if(evt.Detail == Alert.YES)
  {
myAlert = 1;
  }
  else
  {
myAlert = -1;
  }
}

Now, what puzzles me is that the script after the Alert.show is triggered, the 
scripts following it are also triggered.

Is there a way to ensure that the script following the Alert.show alert box 
would only be executed after the Yes or No buttons has been pressed?

I won't be able to move the scripts after the Alert.show script to the 
alertHandler event since there are some objects being set / modified prior to 
the alert being called.

Inputs highly appreciated.

Thanks.


  

Re: [flexcoders] Flex Function and Web Service ResultHandler Question

2009-08-26 Thread Angelo Anolin
Hi Tracy,

Thanks for the input.

How can I then pass some objects and variables to the ResultHandler which I 
have made some modifications prior to calling the web service operation?

Would my last resort be on declaring variables and objects that would be 
visible across the whole application?

Thanks and regards,

Angelo





From: Tracy Spratt tr...@nts3rd.com
To: flexcoders@yahoogroups.com
Sent: Wednesday, 26 August, 2009 12:53:31
Subject: RE: [flexcoders] Flex Function and Web Service ResultHandler Question

  
You will have to initiate your “further
operations” from the result
handler.  There is no other way.
 
Tracy Spratt,
Lariat Services, development services
available


 
From:flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On 
Behalf Of Angelo Anolin
Sent: Tuesday, August 25, 2009
9:54 PM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Flex
Function and Web Service ResultHandler Question
 
  
Hi FlexCoders,
 
Needing your input on the following:
 
I have created a function for the dragevent of a
list.
 
Code is as follows:
 
private function myFunction(evt: DragEvent) :void
{
 var nameID:String = 'Angelo';
 
 // Call a webservice operation here
 ws.GetStatus( nameID);
 
 Alert.show(String( _xmlGetStatus) , 'myFunction' );
 
 // I need to use the _xmlGetStatus here...
 // But the _xmlGetStatus is NULL?
 // Although in the Result Handler, it is not NULL.
}
 
private function getStatusResultHand ler(event: ResultEvent)
:void
{
 _xmlGetStatus = XML(event.result) ;
 Alert.show(String( _xmlGetStatus) , 'getStatusResultHan dler');
}
 
The result handler for the GetStatus web service
operation populates an XML variable which I declared on top of the script (i.e.
private var _xmlGetStatus: XML;).
 
When I run my application, myFunction executes but
the alert that is shown first is the one in the function myFunction, instead of
the one in the result handler.
 
I need to use the values in the XML variable
_xmlGetStatus for further operations in function myFunction, but then the value
is not populated right away.
 
Any way to handle this?
 
Thanks and regards,
Angelo
 
   


  

[flexcoders] Find Actual Width After Setting Percent Width

2009-08-26 Thread jmfillman
I have a canvas container with=100%. When the user clicks a button, the 
container is set to percentWidth=20, and I need to immediately know the new 
width so that I can properly re-size elements in the container to match the new 
width.

From what I can tell, the LayoutManager doesn't get to measuring the new width 
of the container right away. If the user clicks the button again, the 
LayoutManager has done it's thing and has set the width value of the canvas.

So the question is, how do I get the new width of the canvas as soon as I set 
percentWidth=20?



Re: [flexcoders] Add mxml component to NativeApplication instance

2009-08-26 Thread Jeroen Beckers
Great, thx!

?xml version=1.0 encoding=utf-8?
mx:Window xmlns:mx=http://www.adobe.com/2006/mxml; width=400
height=300
mx:Button x=178 y=138 label=Button/
/mx:Window


public function init():void
{

var newWindow:Window = new CanvasTest();
newWindow.open(true);

}

And no more CanvasWindow class.

On Wed, Aug 26, 2009 at 7:22 AM, Alex Harui aha...@adobe.com wrote:



  Flex component have to be parented by a SystemManager or another Flex
 Component.  Use Window and put your canvas in there.



 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 *thedauntless_ff
 *Sent:* Tuesday, August 25, 2009 5:34 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Add mxml component to NativeApplication instance





 Hi,

 Situation:
 I've simplified my problem to just a few lines of AS  mxml (see below).
 What I'm trying to do is easy: Create a custom NativeWindow instance that
 has an mxml component as it's child.

 Problem:
 I can't get the component to show and it 'disappears' for some reason.

 Code:

 package
 {
 import flash.display.NativeWindow;
 import flash.display.NativeWindowInitOptions;
 import flash.display.NativeWindowSystemChrome;

 public class CanvasWindow extends NativeWindow
 {
 public function CanvasWindow()
 {
 var options:NativeWindowInitOptions = new NativeWindowInitOptions();
 options.systemChrome = NativeWindowSystemChrome.STANDARD;
 options.transparent = false;
 super(options);

 var ct:CanvasTest = new CanvasTest();
 trace(ct =  + ct);
 this.stage.addChild(ct);
 trace(ct = + ct);
 }

 }
 }

 

 ?xml version=1.0 encoding=utf-8?
 mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; width=400
 height=300
 mx:Button x=178 y=138 label=Button/
 /mx:Canvas
 
 ?xml version=1.0 encoding=utf-8?
 mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute creationComplete=init()
 mx:Script
 ![CDATA[
 import mx.core.Window;

 public function init():void
 {

 var newWindow:NativeWindow = new CanvasWindow();
 newWindow.activate();

 }
 ]]
 /mx:Script
 /mx:WindowedApplication

 As you can see I've added two traces. The first traces my CanvasTest
 instance, while the second one traces null. The component is also not
 displayed.

 I couldn't find a lot of information about this, and what I did find was
 about an alpha about Apollo (hacked together).

 So, what's going wrong here?

 Thanks for reading!

   



[flexcoders] Re: SharedObject - do I need to stop it flushing at app exit?

2009-08-26 Thread chigwell23
Hi Tracy, that is when I assign the values - when the Save Prefs button is 
clicked. However, when the app quits, Flex autoflushes again, and the user 
might have changed some of the params but does not want them as Prefs. It 
seems that this autoflush remembers where the values came from e.g.

soDrctrDash.data.ddParamsVO.vpID = drctrDashParamsVO.vpID;
soDrctrDash.data.ddParamsVO.rvpID = drctrDashParamsVO.rvpID;
soDrctrDash.data.ddParamsVO.divID = drctrDashParamsVO.divID;

and overwrites the saved user prefs with whatever the most recent values are. I 
have never had this happen before and wonder if it is anything to do with

flash.net.registerClassAlias(soDrctrDash.DrctrDashParamsVO, 
DrctrDashParamsVO);
soDrctrDash = SharedObject.getLocal(drctrDash);

TIA,

Mic.

--- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote:

 Don't assign values to the so until the user clicks the save prefs.
 
  
 
 Tracy Spratt,
 
 Lariat Services, development services available
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
 Behalf Of chigwell23
 Sent: Wednesday, August 26, 2009 12:25 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] SharedObject - do I need to stop it flushing at app
 exit?
 
  
 
   
 
 Multiple dropdowns are used to configure stored procedure parameters to load
 a dashboard view. A Save Preferences button saves the current
 configuration to a local SO. The user can then change the parameters and
 load different dashboard views . problem is that when the app quits it
 autoflushes the latest parms and overwrites what the user saved. I looked
 for a way of stopping the autoflush at app quit but could not find one. TIA,
 
 Mic.





Re: [flexcoders] Air bundle strips Mac executable permissions

2009-08-26 Thread Tom Chiverton
On Tuesday 25 Aug 2009, Wesley Acheson wrote:
 It sounds like a bug with the nochump library.

Well, it seems 'nochump' (what ever that is) just doesn't re-apply the saved 
permissions info, but that's neither here or there really to the OP's issue.

-- 
Helping to dynamically lead content as part of the IT team of the year, '09 
and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

Re: [flexcoders] Will Flex Builder be updated with 3.4 SDK release?

2009-08-26 Thread Tom Chiverton
http://feedproxy.google.com/~r/flexteam/~3/N5sOTl8SLUE/flex_sdk_34_released_and_secur.html

-- 
Helping to heterogeneously deploy ubiquitous fifth-generation visionary 
e-business as part of the IT team of the year, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

[flexcoders] Grouping issue on Advanced DataGrid

2009-08-26 Thread Nick Middleweek
Hello,

I've got an advanced datagrid with 5 columns, The number_Group column has
data like this...

1-10
1-10
11-20
11-20
11-20
21-30
21-30
21-30
41-50
101-110


When I apply Grouping, it works as expected but the 101-110 group is
displayed before the 11-20 group.

I've tried to set groupingField.numeric = true but that screws it up even
more... because 11-20 isn't a number I'm guessing.

Does anyone know a way around this? I could change the number_Group column
to this...

1
1
11
11
21
41
101

and groupingField.numeric = true should work but I need the Grouping display
to show 1-10, 11-20. Perhaps I can intercept this and modify it?


Thanks,
Nick


[flexcoders] Re: Grouping issue on Advanced DataGrid

2009-08-26 Thread Nick Middleweek
Answer = use GroupingField.groupingFunction :-)

Does anyone know what the groupingObjectFunction does? What is the returned
Object for?


Thanks,
Nick



2009/8/26 Nick Middleweek n...@middleweek.co.uk

 Hello,

 I've got an advanced datagrid with 5 columns, The number_Group column has
 data like this...

 1-10
 1-10
 11-20
 11-20
 11-20
 21-30
 21-30
 21-30
 41-50
 101-110


 When I apply Grouping, it works as expected but the 101-110 group is
 displayed before the 11-20 group.

 I've tried to set groupingField.numeric = true but that screws it up even
 more... because 11-20 isn't a number I'm guessing.

 Does anyone know a way around this? I could change the number_Group column
 to this...

 1
 1
 11
 11
 21
 41
 101

 and groupingField.numeric = true should work but I need the Grouping
 display to show 1-10, 11-20. Perhaps I can intercept this and modify it?


 Thanks,
 Nick




[flexcoders] 'sans_nom_3.swc' does not have a recognized extension

2009-08-26 Thread lolveley
hello,

I have already send this message but there's no answer, so I try a new time, 
it's oimportant for me but I can't find any help in forums nor tutorials.
I am a beginner into flex, and in Flash, so I ask you to tolerate me!
here is my problem: I want to study the use of flash components into flex. So I 
first created a symbol in flash, put one instance of this symbol in a FLA file, 
and , then I exported it for flex by clicking the right item in flash.
Then, I ran flex, I entered the .swc in the library path of my new project, and 
I entered this code:

  package {

  import flash.display.MovieClip;

  import flash.display.Sprite;


  public class pont_flash_flex_2 extends Sprite

  {

  public function pont_flash_flex_2()

  {

  [Embed(source='sans_nom_3.swc',symbol='occu_mon_symbole')]

  var ClasseSymbole:Class;


  var ma_classe:MovieClip=new ClasseSymbole();

  addChild(ma_classe);

  }

  }

  }

Here is the error message:


  'sans_nom_3.swc' does not have a recognized extension, and a mimeType was not 
provided pont_flash_flex_2/src pont_flash_flex_2.as line 9 1251140352156 15


and:


  Unable to transcode sans_nom_3.swc. pont_flash_flex_2/src 
pont_flash_flex_2.as line 9 1251140352156 16


Here is my question: is this code right?

in this case, the error comes from the flash part (creation of the symbol, 
maybe its occurence's name).

thank you,



lolveley.



Re: [flexcoders] Stay tuned for series of posts on flex

2009-08-26 Thread Jorge Hernández
Ehi Thanks for it!

2009/8/25 jaibeer_malik jaibeer_ma...@yahoo.com



 Hi All,

 Just to share the links, stay tuned for the series of posts on flex.

 http://jaibeermalik.wordpress.com/category/tech-stuff/flex/

 This covers Cairngorm (MVC), SpringActionscript (IOC), few Cairngorm
 extensions, view notifications strategy, data transfer strategy and client
 side security implementation.

 Stay tuned and feel free to comment and share your experiences.

 Thanks,
 -Jai

 




-- 
Jorge Hernández Martínez
Electro-Acoustic  Telecommunication Engineer
+34 605 132572


[flexcoders] regression in Flex 3.4: SDK-21780

2009-08-26 Thread srnm
http://bugs.adobe.com/jira/browse/SDK-21780

I'm seeing the NPE in our own application too and have reverted to 3.3.

Does anyone know of a workaround?

thanks!



Re: [Spam] Re: [flexcoders] Will Flex Builder be updated with 3.4 SDK release?

2009-08-26 Thread Nick Middleweek
Hi,

How do I determine what version of the SDK I'm using?


Thanks,
Nick




2009/8/26 Tom Chiverton tom.chiver...@halliwells.com




 http://feedproxy.google.com/~r/flexteam/~3/N5sOTl8SLUE/flex_sdk_34_released_and_secur.htmlhttp://feedproxy.google.com/%7Er/flexteam/%7E3/N5sOTl8SLUE/flex_sdk_34_released_and_secur.html

 --
 Helping to heterogeneously deploy ubiquitous fifth-generation visionary
 e-business as part of the IT team of the year, '09 and '08

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England and
 Wales under registered number OC307980 whose registered office address is at
 Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list
 of members is available for inspection at the registered office together
 with a list of those non members who are referred to as partners. We use the
 word ?partner? to refer to a member of the LLP, or an employee or consultant
 with equivalent standing and qualifications. Regulated by the Solicitors
 Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged. If you are not the addressee you
 must not read it and must not use any information contained in nor copy it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents. If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.Halliwells.com.
  



Re: [Spam] Re: [flexcoders] Will Flex Builder be updated with 3.4 SDK release?

2009-08-26 Thread Tom Chiverton
On Wednesday 26 Aug 2009, Nick Middleweek wrote:
 How do I determine what version of the SDK I'm using?

Surprised you couldn't guess this one:
# /opt/flex/bin/mxmlc -version
Version 3.3.0 build 4852

-- 
Helping to greatly optimize cutting-edge technologies as part of the IT team 
of the year, '09 and '08



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. Regulated by the Solicitors Regulation 
Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

Re: [flexcoders] Flex Function and Web Service ResultHandler Question

2009-08-26 Thread Angelo Anolin
Hi Tracy,

You mentioned that this is the only way...

But doesn't this kind of programming limits what the developer could actually 
do?

I mean for example, you have coded in the dragDrop event of a list control.  In 
the said event, you need to get some data through a web service.  The whole 
operation is dependent on the event handler for the dragdrop.  If you would 
only be allowed to process the operations further in the result handler of the 
web service, how could you then utilize the event which was the parameter in 
your dragdrop event?

I think this question also goes the same for the Alert.show function where the 
result handler deviates from the function/event with which it was executed.  If 
the continuation of execution would be on the Alert handler, it would be quite 
tedious on the part of the developer to be able to gather the 
variables/objects/handlers from the original function/event.

I am pretty sure Adobe / Flex team has thought about this but I may be doing 
things wrong.  So I would appreciate everyone's input.  I am in a bind right 
now cause this limitation(?) hampers me from being a lot more productive with 
Flex.

Thanks.

Angelo





From: Tracy Spratt tr...@nts3rd.com
To: flexcoders@yahoogroups.com
Sent: Wednesday, 26 August, 2009 12:55:18
Subject: RE: [flexcoders] Flex Function and Web Service ResultHandler Question

  
You will have to initiate your “further
operations” from the result
handler.  There is no other way.
 
Tracy Spratt,
Lariat Services, development services
available


 
From:flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On 
Behalf Of Angelo Anolin
Sent: Tuesday, August 25, 2009
9:54 PM
To: flexcod...@yahoogro ups.com
Subject: [flexcoders] Flex
Function and Web Service ResultHandler Question
 
  
Hi FlexCoders,
 
Needing your input on the following:
 
I have created a function for the dragevent of a
list.
 
Code is as follows:
 
private function myFunction(evt: DragEvent) :void
{
 var nameID:String = 'Angelo';
 
 // Call a webservice operation here
 ws.GetStatus( nameID);
 
 Alert.show(String( _xmlGetStatus) , 'myFunction' );
 
 // I need to use the _xmlGetStatus here...
 // But the _xmlGetStatus is NULL?
 // Although in the Result Handler, it is not NULL.
}
 
private function getStatusResultHand ler(event: ResultEvent)
:void
{
 _xmlGetStatus = XML(event.result) ;
 Alert.show(String( _xmlGetStatus) , 'getStatusResultHan dler');
}
 
The result handler for the GetStatus web service
operation populates an XML variable which I declared on top of the script (i.e.
private var _xmlGetStatus: XML;).
 
When I run my application, myFunction executes but
the alert that is shown first is the one in the function myFunction, instead of
the one in the result handler.
 
I need to use the values in the XML variable
_xmlGetStatus for further operations in function myFunction, but then the value
is not populated right away.
 
Any way to handle this?
 
Thanks and regards,
Angelo
 
   


  

[flexcoders] Re: Find Actual Width After Setting Percent Width

2009-08-26 Thread valdhor
What does canvas.measuredWidth give when the user clicks the button?


--- In flexcoders@yahoogroups.com, jmfillman jmfill...@... wrote:

 I have a canvas container with=100%. When the user clicks a button, the 
 container is set to percentWidth=20, and I need to immediately know the new 
 width so that I can properly re-size elements in the container to match the 
 new width.
 
 From what I can tell, the LayoutManager doesn't get to measuring the new 
 width of the container right away. If the user clicks the button again, the 
 LayoutManager has done it's thing and has set the width value of the canvas.
 
 So the question is, how do I get the new width of the canvas as soon as I set 
 percentWidth=20?





Re: [Spam] Re: [Spam] Re: [flexcoders] Will Flex Builder be updated with 3.4 SDK release?

2009-08-26 Thread Nick Middleweek
Hi Tom,

Thanks for your reply but what does this mean:* # /opt/flex/bin/mxmlc
-version*


Cheers,
Nick



2009/8/26 Tom Chiverton tom.chiver...@halliwells.com



 On Wednesday 26 Aug 2009, Nick Middleweek wrote:
  How do I determine what version of the SDK I'm using?

 Surprised you couldn't guess this one:
 # /opt/flex/bin/mxmlc -version
 Version 3.3.0 build 4852




[flexcoders] Re: how to wait for one event to finish?

2009-08-26 Thread nathanleewei
public class MessageEventBus extends EventListener {
public static getInstance(): MessageEventBus {

}
}
//
public class ParentApplication {
var messageEventBus:MessageEventBus = MessageEventBus.getInstance();
public ParentApplication {
   
}

public function onHttpServiceResult(event:ResultEvent):void {
//...
//...
messageEventBus.dispatchEvent(new Event(ParentApplicationFinish));
}
}


//
public class AModule {
var messageEventBus:MessageEventBus = MessageEventBus.getInstance();
public ParentApplication {
   messageEventBus.addEventListener(ParentApplicationFinish, 
onParentApplicationFinish);
}
public function onParentApplicationFinish(event.Event):void {
//do what you want.
}
}



--- In flexcoders@yahoogroups.com, coder3 rrhu...@... wrote:

 
 Hi
 
 I have a module, that needs to wait for the parentApplication to finish the
 httpservice so that it can get the data and do some stuff.
 
 so the httpservice has a result handling function, 
 
 how can the module know when to get the result? i guess i need to use
 eventlistener, how?
 
 thanks!
 c
 
 
 -- 
 View this message in context: 
 http://www.nabble.com/how-to-wait-for-one-event-to-finish--tp25067200p25067200.html
 Sent from the FlexCoders mailing list archive at Nabble.com.





[flexcoders] Re: Find Actual Width After Setting Percent Width

2009-08-26 Thread nathanleewei
this.addEventListener(FlexEvent.CREATION_COMPLETE, onCreationComplete);

public function onCreationComplete(event:FlexEvent):void {
ChangeWatcher.watch(this,width, showWidth);
}

public function showWidth(e:Event):void {
Alert.show(this.width);
}


--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:

 What does canvas.measuredWidth give when the user clicks the button?
 
 
 --- In flexcoders@yahoogroups.com, jmfillman jmfillman@ wrote:
 
  I have a canvas container with=100%. When the user clicks a button, the 
  container is set to percentWidth=20, and I need to immediately know the new 
  width so that I can properly re-size elements in the container to match the 
  new width.
  
  From what I can tell, the LayoutManager doesn't get to measuring the new 
  width of the container right away. If the user clicks the button again, the 
  LayoutManager has done it's thing and has set the width value of the canvas.
  
  So the question is, how do I get the new width of the canvas as soon as I 
  set percentWidth=20?
 





[flexcoders] An Array of Class Objects???

2009-08-26 Thread Eric Dunn
Hello peeps, 

I am need of some assistance.. I am trying to define a complex object within a 
couple of classes. I am trying to build a data structure like: 
devices 
deviceType 
MAC 
port 
port 
port 
/ MAC 
MAC 
port 
/ MAC 
MAC 
port 
port 
/ MAC 
/deviceType 
deviceType 
MAC 
port 
/ MAC 
MAC 
port 
port 
/ MAC 
MAC 
port 
port 
/ MAC 
/deviceType 
/devices 

I have 3 classes defined: 

deviceClass 
modelName:string 
macList: ArrayCollection = new ArrayCollection 

macClass 
macID:string 
portList:portClass 

portClass 
portList:array 

Question: How do I define the macList in the deviceClass to be an array of 
macClass Objects. 

I know how to add the objects into the array as I am building the collection, 
but have no clue on how restrict them to deviceClass objects.. 

thanks, 

Eric W Dunn 
Adaption Technologies 
281-465-3326 
ed...@adpt-tech.com 


[flexcoders] Re: Find Actual Width After Setting Percent Width

2009-08-26 Thread jmfillman
If you trace the width and measuredWidth immediately after setting the 
percentWidth, both width and measuredWidth show the original width instead of 
the updated width.


--- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote:

 What does canvas.measuredWidth give when the user clicks the button?
 
 
 --- In flexcoders@yahoogroups.com, jmfillman jmfillman@ wrote:
 
  I have a canvas container with=100%. When the user clicks a button, the 
  container is set to percentWidth=20, and I need to immediately know the new 
  width so that I can properly re-size elements in the container to match the 
  new width.
  
  From what I can tell, the LayoutManager doesn't get to measuring the new 
  width of the container right away. If the user clicks the button again, the 
  LayoutManager has done it's thing and has set the width value of the canvas.
  
  So the question is, how do I get the new width of the canvas as soon as I 
  set percentWidth=20?
 





[flexcoders] Client side images

2009-08-26 Thread creativepragmatic
Hello Everyone,

I am developing an application that includes JPG and TIFF image size 
validation.  The backend is done is done in PHP.  I am wondering if there is 
anyway to validate the minimum width and height of those images in Flex or if 
they have to be uploaded to PHP and validated there.

Thank you in advance for any assistance,

Orville



Re: [flexcoders] Re: Find Actual Width After Setting Percent Width

2009-08-26 Thread Beau Scott
You'll need to invalidate the component's parent's size and revalidate it
before your target's size is computed:

?xml version=1.0 encoding=utf-8?
mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml;
layout=vertical
mx:Script
![CDATA[
import mx.core.UIComponent;
private function clicked():void
{
trace(bar.width);
bar.percentWidth = bar.percentWidth == 100 ? 50 : 100;
UIComponent(bar.parent).invalidateSize();
UIComponent(bar.parent).validateNow();
trace(bar.width);
}
]]
/mx:Script
mx:Box id=foo width=100% height=50 borderColor=red
borderThickness=1 borderStyle=solid
mx:Box id=bar width=100% height=100% borderColor=blue
borderThickness=1 borderStyle=solid /
/mx:Box
mx:Button click=clicked() label=click me /
/mx:WindowedApplication


Run that and click the button to see the trace output.


HTH,

Beau




On Wed, Aug 26, 2009 at 10:04 AM, jmfillman jmfill...@verizon.net wrote:



 If you trace the width and measuredWidth immediately after setting the
 percentWidth, both width and measuredWidth show the original width instead
 of the updated width.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 valdhor valdhorli...@... wrote:
 
  What does canvas.measuredWidth give when the user clicks the button?
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 jmfillman jmfillman@ wrote:
  
   I have a canvas container with=100%. When the user clicks a button,
 the container is set to percentWidth=20, and I need to immediately know the
 new width so that I can properly re-size elements in the container to match
 the new width.
  
   From what I can tell, the LayoutManager doesn't get to measuring the
 new width of the container right away. If the user clicks the button again,
 the LayoutManager has done it's thing and has set the width value of the
 canvas.
  
   So the question is, how do I get the new width of the canvas as soon as
 I set percentWidth=20?
  
 

  




-- 
Beau D. Scott
Software Engineer


Re: [Spam] Re: [Spam] Re: [flexcoders] Will Flex Builder be updated with 3.4 SDK release?

2009-08-26 Thread Richard Rodseth
Nick

He's using the command line and invoking the MXML compiler with the -version
option. In FlexBuilder, you can right-click on a project, and choose
Properties, then choose Flex Compiler.

On Wed, Aug 26, 2009 at 7:44 AM, Nick Middleweek n...@middleweek.co.ukwrote:



 Hi Tom,

 Thanks for your reply but what does this mean:* # /opt/flex/bin/mxmlc
 -version*


 Cheers,
 Nick



 2009/8/26 Tom Chiverton tom.chiver...@halliwells.com



 On Wednesday 26 Aug 2009, Nick Middleweek wrote:
  How do I determine what version of the SDK I'm using?

 Surprised you couldn't guess this one:
 # /opt/flex/bin/mxmlc -version
 Version 3.3.0 build 4852


  



Re: [flexcoders] Question on Flex Script Execution + Alert.show

2009-08-26 Thread Beau Scott
Alert.show is async, so move the code after Alert.show to the alertHandler
method after your if/else block that's already in there.

Beau



On Wed, Aug 26, 2009 at 12:03 AM, Angelo Anolin angelo_ano...@yahoo.comwrote:



 Hi FlexCoders,

 This has puzzled me a bit..

 I have the following scripts in my application:

 private var myAlert:int;

 private function testFunction(evt:Event):void
 {
   Alert.show('do you want to proceed', 'Title', Alert.YES | Alert.NO, null,
 alertHandler, null, Alert.YES);

   if(myAlert == 1)
   {
 // Do Something here
   }
   else
   {
 // Do other thing here
   }
 }

 Private function alertHandler(evt:CloseEvent)
 {
   if(evt.Detail == Alert.YES)
   {
 myAlert = 1;
   }
   else
   {
 myAlert = -1;
   }
 }

 Now, what puzzles me is that the script after the Alert.show is triggered,
 the scripts following it are also triggered.

 Is there a way to ensure that the script following the Alert.show alert box
 would only be executed after the Yes or No buttons has been pressed?

 I won't be able to move the scripts after the Alert.show script to the
 alertHandler event since there are some objects being set / modified prior
 to the alert being called.

 Inputs highly appreciated.

 Thanks.


  




-- 
Beau D. Scott
Software Engineer


[flexcoders] input date include today?

2009-08-26 Thread markflex2007
Hi

I use the following and I can select date from tomorrow.

mx:DateField  disabledRanges={[{rangeEnd: new Date()}]} /.

But I also want to select date include today.

Do you have a idea how to do this.Thanks


Mark



[flexcoders] Re: MessageBroker problem when creating dynamic destinations

2009-08-26 Thread mike_slinn
Aurelio,

I cover this in detail in my book Flex Data Services, Hibernate and Eclipse 
(http://www.slinnbooks.com/books/serverSide), with complete working code 
examples.

Mike

 I've been trying to create dynamic on-the-fly destinations




Re: [Spam] Re: [Spam] Re: [Spam] Re: [flexcoders] Will Flex Builder be updatedwith 3.4 SDK release?

2009-08-26 Thread Nick Middleweek
ok , thanks...


2009/8/26 Richard Rodseth rrods...@gmail.com



 Nick

 He's using the command line and invoking the MXML compiler with the
 -version option. In FlexBuilder, you can right-click on a project, and
 choose Properties, then choose Flex Compiler.


 On Wed, Aug 26, 2009 at 7:44 AM, Nick Middleweek n...@middleweek.co.ukwrote:



 Hi Tom,

 Thanks for your reply but what does this mean:* # /opt/flex/bin/mxmlc
 -version*


 Cheers,
 Nick



 2009/8/26 Tom Chiverton tom.chiver...@halliwells.com



 On Wednesday 26 Aug 2009, Nick Middleweek wrote:
  How do I determine what version of the SDK I'm using?

 Surprised you couldn't guess this one:
 # /opt/flex/bin/mxmlc -version
 Version 3.3.0 build 4852



  



Re: [Spam] Re: [Spam] Re: [flexcoders] Will Flex Builder be updated with 3.4 SDK release?

2009-08-26 Thread Paul Hastings
Nick Middleweek wrote:
 Thanks for your reply but what does this mean:* # /opt/flex/bin/mxmlc 
 -version*

it means tom lives in cave  writes his code by banging together two rocks 
while 
fighting off cave bears ;-)


Re: [flexcoders] input date include today?

2009-08-26 Thread Beau Scott
Set your range to end yesterday?

mx:DateField disabledRanges={[{rangeEnd: new Date(new Date().getTime() -
8640)}]} /

8640 = 1 day in ms.

Beau


On Wed, Aug 26, 2009 at 10:40 AM, markflex2007 markflex2...@yahoo.comwrote:



 Hi

 I use the following and I can select date from tomorrow.

 mx:DateField disabledRanges={[{rangeEnd: new Date()}]} /.

 But I also want to select date include today.

 Do you have a idea how to do this.Thanks

 Mark

  




-- 
Beau D. Scott
Software Engineer


RE: [flexcoders] An Array of Class Objects???

2009-08-26 Thread Gordon Smith
Array and ArrayCollection do not enforce any kind of type checking on their 
elements… each element can be anything.

If you need strongly-typed elements, use Vector:

macList:Vector.deviceClass

BTW, the convention is to start class names with a capital letter.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Eric Dunn
Sent: Wednesday, August 26, 2009 8:49 AM
To: flexcoders
Subject: [flexcoders] An Array of Class Objects???


Hello peeps,

I am need of some assistance.. I am trying to define a complex object within a 
couple of classes. I am trying to build a data structure like:
   devices
  deviceType
  MAC
   port
   port
   port
  / MAC
  MAC
   port
 / MAC
  MAC
   port
   port
 / MAC
  /deviceType
  deviceType
  MAC
   port
  / MAC
  MAC
   port
   port
 / MAC
  MAC
   port
   port
 / MAC
  /deviceType
  /devices

I have 3 classes defined:

deviceClass
modelName:string
macList: ArrayCollection = new ArrayCollection

macClass
  macID:string
  portList:portClass

portClass
  portList:array

Question: How do I define the macList in the deviceClass to be an array of 
macClass Objects.

I know how to add the objects into the array as I am building the collection, 
but have no clue on how restrict them to deviceClass objects..

thanks,

Eric W Dunn
Adaption Technologies
281-465-3326
ed...@adpt-tech.com



[flexcoders] Re: Find Actual Width After Setting Percent Width

2009-08-26 Thread jmfillman
The code below should demonstrate the issue more specifically.

What you get when the clicked() function is called, shows that there is a 
slight delay in getting the width of the container. You'll note that the trace 
statement returns the original width as does the txtWidth field.

You will note, however, that if you bind to the width of the container, you do 
get the correct width of the canvas. What I infer from this is that there is a 
delay in FlashPlayer/Air in having the width value set.

If, however, you use the previous example, posted Beau, this works, presumably 
because the item you are re-sizing is within a container and the LayoutManager 
deals with nested items first, as I recall.

Why the validateNow() function doesn't complete before moving on to the other 
two elements in the clicked() function, wasn't what I expected. This is 
probably a speed thing in the function so as to not hold up other items while 
the item is being validated???

?xml version=1.0 encoding=utf-8?
mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=absolute creationComplete=init(); initialize=maximize(); 
verticalScrollPolicy=off horizontalScrollPolicy=off
mx:Script
![CDATA[

private function clicked():void
{
foo.percentWidth = 50;
foo.invalidateSize();
foo.validateNow();
txtWidth.text = foo.width.toString();
trace (foo.width);
}
]]
/mx:Script
mx:HBox height=24 top=0 left=0 right=0
mx:Button click=clicked() label=click me/ 
/mx:HBox
mx:Canvas id=foo width=100% left=182 top=63 bottom=0 
borderColor=red borderThickness=1 borderStyle=solid

/mx:Canvas

mx:Text x=0 y=32 width=76 id=txtWidth/
mx:Text x=0 y=60 text={foo.width} width=76/
/mx:WindowedApplication

--- In flexcoders@yahoogroups.com, Beau Scott beau.sc...@... wrote:

 You'll need to invalidate the component's parent's size and revalidate it
 before your target's size is computed:
 
 ?xml version=1.0 encoding=utf-8?
 mx:WindowedApplication xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=vertical
 mx:Script
 ![CDATA[
 import mx.core.UIComponent;
 private function clicked():void
 {
 trace(bar.width);
 bar.percentWidth = bar.percentWidth == 100 ? 50 : 100;
 UIComponent(bar.parent).invalidateSize();
 UIComponent(bar.parent).validateNow();
 trace(bar.width);
 }
 ]]
 /mx:Script
 mx:Box id=foo width=100% height=50 borderColor=red
 borderThickness=1 borderStyle=solid
 mx:Box id=bar width=100% height=100% borderColor=blue
 borderThickness=1 borderStyle=solid /
 /mx:Box
 mx:Button click=clicked() label=click me /
 /mx:WindowedApplication
 
 
 Run that and click the button to see the trace output.
 
 
 HTH,
 
 Beau
 
 
 
 
 On Wed, Aug 26, 2009 at 10:04 AM, jmfillman jmfill...@... wrote:
 
 
 
  If you trace the width and measuredWidth immediately after setting the
  percentWidth, both width and measuredWidth show the original width instead
  of the updated width.
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
  valdhor valdhorlists@ wrote:
  
   What does canvas.measuredWidth give when the user clicks the button?
  
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
  jmfillman jmfillman@ wrote:
   
I have a canvas container with=100%. When the user clicks a button,
  the container is set to percentWidth=20, and I need to immediately know the
  new width so that I can properly re-size elements in the container to match
  the new width.
   
From what I can tell, the LayoutManager doesn't get to measuring the
  new width of the container right away. If the user clicks the button again,
  the LayoutManager has done it's thing and has set the width value of the
  canvas.
   
So the question is, how do I get the new width of the canvas as soon as
  I set percentWidth=20?
   
  
 
   
 
 
 
 
 -- 
 Beau D. Scott
 Software Engineer





[flexcoders] Data Grid ShowHeaders property problem

2009-08-26 Thread Satish Chowdary
Hi All,

i am trying to disable datagrid column headers so i use showheader property
but it gives the following Error.
it throws following Error
Error #1010: A term is undefined and has no properties.

Any Idea to resolve this

 
Thanks inAdvacne
Satish
సతీష్



  See the Web#39;s breaking stories, chosen by people like you. Check out 
Yahoo! Buzz. http://in.buzz.yahoo.com/

[flexcoders] Re: Data Grid ShowHeaders property problem

2009-08-26 Thread turbo_vb

Hi Satish,

You can use headerHeight=0; to hide the DataGrid headers.

-TH

--- In flexcoders@yahoogroups.com, Satish Chowdary chinnu_...@...
wrote:

 Hi All,

 i am trying to disable datagrid column headers so i use showheader
property
 but it gives the following Error.
 it throws following Error
 Error #1010: A term is undefined and has no properties.

 Any Idea to resolve this


 Thanks inAdvacne
 Satish
 సతీష్



 See the Web#39;s breaking stories, chosen by people like you. Check
out Yahoo! Buzz. http://in.buzz.yahoo.com/






RE: [flexcoders] regression in Flex 3.4: SDK-21780

2009-08-26 Thread Alex Harui
I updated the bug with a simple failure case.  Not sure if you're in the same 
boat or not.  Then I added a workaround for that scenario.  Not sure if will 
apply to you.

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 srnm
Sent: Tuesday, August 25, 2009 5:34 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] regression in Flex 3.4: SDK-21780



http://bugs.adobe.com/jira/browse/SDK-21780

I'm seeing the NPE in our own application too and have reverted to 3.3.

Does anyone know of a workaround?

thanks!



[flexcoders] Re: Will Flex Builder be updated with 3.4 SDK release?

2009-08-26 Thread tntomek
--- In flexcoders@yahoogroups.com, tntomek tnto...@... wrote:

 Also will DMV be updated with 3.4 as well?
 
 It would be really nice to have native Eclipse 3.5 installer.
 
 Looking forward to the updated reliability (fingers crossed) in 3.4 SDK


Thx for link but no mention of DMV or Eclipse 3.5 support. Since Fx4 has been 
pushed to 2010 it would seem odd not to include a FB update in over a year if 
even just to make the installer happy. Any idea is 3.4 will be the last update 
to 3.x?



[flexcoders] Password Protection in Flex

2009-08-26 Thread AJC2357
Hello, 

I am new to flex but am immensely enjoying the charting/dashboard capabilities. 
 

As I begin to put sensitive data together for certain clients, I am wondering 
if there is a way to password protect the swf output.

For instance, I would like to send a link to a client with their requested 
business-intell dashboard.  When he/she opens this link, I want the first 
screen of the swf file to ask for a password.  Once the password it entered 
correctly, the dashboard becomes functional.

Any code suggestions or links to relevant examples? Thanks in advance,

Alex




[flexcoders] Re: PDF-ActionScript communication in AIR app

2009-08-26 Thread inudor
just realized this solution is not valid since I can only add the required 
scripts when creating the PDF document with AlivePDF, but I'm not able to load 
existing PDF's and modify them... 
Maybe with some Java-PDF library and Merapi? If anyone has any advice...  
  
thanks, 
  
Marc Baiges Camprubí



--- In flexcoders@yahoogroups.com, inudor mar...@... wrote:

 looks exactly as what I was looking for... can't wait to try it!!!
 thanks!
 
 Marc Baiges Camprubí
 
 
 --- In flexcoders@yahoogroups.com, b_productiv2000 b_productiv2000@ wrote:
 
  I've found this article today : http://gonzalo.huerta.cl/?p=13
  
  inudor a écrit :
   No ideas I guess...
   
   and maybe something like manipulating the PDF file when the users loads 
   it, like injecting those handler functions that should be added by Adobe 
   Acrobat? 
   Do you know if this would be possible with any ActionScript PDF library?
   
   thanks in advances,
   
   Marc Baiges Camprubí
   
   --- In flexcoders@yahoogroups.com, inudor marcbc@ wrote:
   Hi all,
  
   I'm trying to create an AIR application where an important feature must 
   be loading PDF documents, rendering them in an HTML component, and 
   navigating the PDF document pages as the user interacts with the AIR 
   application. 
  
   For example, imagine 2 PDF documents rendered in the AIR app, and 
   browsing pages in first PDF would result into the second PDF changing 
   pages too.
  
   Is there any way to listen/trigger those kind of events to a PDF in a 
   HTML component in AIR? 
  
   I saw this article 
   http://www.adobe.com/devnet/air/ajax/quickstart/scripting_pdf.html , but 
   I understand you have to create the PDF documents with special handling 
   functions for javascript communication, and I can't assume this for my 
   application, as I want the user to be able to use any PDF file he/she 
   wants.
  
   thanks,
  
   Marc Baiges Camprubí
 





Re: [flexcoders] Question on Flex Script Execution + Alert.show

2009-08-26 Thread Angelo Anolin
But I need to use the evt parameter in the testFunction, depending on what the 
user has selected in the alert.show function.

How would I reference the same from the alertHandler?

I need your help. I think my understanding of the code execution in Flex is 
different from the norm.

By the way, here's a quick example:


?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxmllayout=vertical; 
creationComplete=creationCompleteHandler();
mx:Script
![CDATA[
import mx.controls.Alert;
import mx.events.DragEvent;
import mx.events.CloseEvent;

private var _alertVal:int;

private function creationCompleteHandler():void 
{
srclist.dataProvider = ['Angel', 'Bart', 'Calvin', 'Dante', 
'Erich', 'Fox', 'Gale', 'Helen'];
destlist.dataProvider = [];
}

private function destlist_dragDropHandler(evt:DragEvent):void
{
_alertVal = 0;
Alert.show('Proceed', 'Title', Alert.YES | Alert.NO, null, 
handleAlert, null, Alert.YES);

if(_alertVal == -1)
{
evt.preventDefault();
// but the above is not triggered since the code jumps 
already to the next line!!!

}
Alert.show(String(_alertVal), 'This Should Be Triggered 
After the Alert!!');
}

private function handleAlert(evt:CloseEvent):void 
{
if (evt.detail == Alert.YES)
{
_alertVal = 1;
}
else
{
_alertVal = -1;
}
}
]]
/mx:Script

mx:Panel title=Select Names layout=horizontal
mx:VBox width=50%
mx:Label text=Names/
mx:List 
id=srclist width=100% height=400 
allowMultipleSelection=false
dragEnabled=true

/
/mx:VBox
mx:VBox width=50%
mx:Label text=People Selected/
!-- Drop target --
mx:List  
id=destlist width=100% height=400 
dropEnabled=true
dragDrop=destlist_dragDropHandler(event)
/
/mx:VBox
/mx:Panel
/mx:Application

Thanks and regards,

Angelo






From: Beau Scott beau.sc...@gmail.com
To: flexcoders@yahoogroups.com
Sent: Thursday, 27 August, 2009 0:32:02
Subject: Re: [flexcoders] Question on Flex Script Execution + Alert.show

  
Alert.show is async, so move the code after Alert.show to the alertHandler 
method after your if/else block that's already in there.

Beau




On Wed, Aug 26, 2009 at 12:03 AM, Angelo Anolin angelo_anolin@ yahoo.com 
wrote:

  
Hi FlexCoders,

This has puzzled me a bit..

I have the following scripts in my application:

private var myAlert:int;

private function testFunction( evt:Event) :void
{
  Alert.show('do you want to proceed', 'Title', Alert.YES | Alert.NO, null, 
 alertHandler, null, Alert.YES);

  if(myAlert == 1)
  {
// Do Something here
  }
  else
  {
// Do other thing here
  }
}

Private function alertHandler( evt:CloseEvent)
{
  if(evt.Detail == Alert.YES)
  {
myAlert = 1;
  }
  else
  {
myAlert = -1;
  }
}

Now, what puzzles me is that the script after the
 Alert.show is triggered, the scripts following it are also triggered.

Is there a way to ensure that the script following the Alert.show alert box 
would only be executed after the Yes or No buttons has been pressed?

I won't be able to move the scripts after the Alert.show script to the 
alertHandler event since there are some objects being set / modified prior to 
the alert being called.

Inputs highly appreciated.

Thanks.





-- 
Beau D. Scott
Software Engineer

   


  

Re: [Spam] [flexcoders] Question on Flex Script Execution + Alert.show

2009-08-26 Thread Nick Middleweek
I'm not sure if this technique is frowned upon but...


You could have a new private var boolAlertContinue:Boolean = false;

In your alertHandler function, you would set it to true... boolAlertContinue
= true;

And after the Alert.show and before the if(myAlert == 1) you need to do a do
while loop...

do {
  //Not sure if there's a 'dummy' command to prevent CPU hog so we'll
just check the time...
  var dtmNow:Date = new Date();
}
while (boolAlertContinue);


or you could probably initialise your myAlert:int = null and in the do ...
while loop check for (myAlert != null)


Cheers,
Nick




2009/8/26 Angelo Anolin angelo_ano...@yahoo.com



 Hi FlexCoders,

 This has puzzled me a bit..

 I have the following scripts in my application:

 private var myAlert:int;

 private function testFunction(evt:Event):void
 {
   Alert.show('do you want to proceed', 'Title', Alert.YES | Alert.NO, null,
 alertHandler, null, Alert.YES);

   if(myAlert == 1)
   {
 // Do Something here
   }
   else
   {
 // Do other thing here
   }
 }

 Private function alertHandler(evt:CloseEvent)
 {
   if(evt.Detail == Alert.YES)
   {
 myAlert = 1;
   }
   else
   {
 myAlert = -1;
   }
 }

 Now, what puzzles me is that the script after the Alert.show is triggered,
 the scripts following it are also triggered.

 Is there a way to ensure that the script following the Alert.show alert box
 would only be executed after the Yes or No buttons has been pressed?

 I won't be able to move the scripts after the Alert.show script to the
 alertHandler event since there are some objects being set / modified prior
 to the alert being called.

 Inputs highly appreciated.

 Thanks.




Re: [flexcoders] Re: Will Flex Builder be updated with 3.4 SDK release?

2009-08-26 Thread Matt Chotin
We are not releasing an updated Flex Builder, but the DMV download is available 
from http://www.adobe.com/cfusion/entitlement/index.cfm?e=flex3sdk

FB3 unfortunately won't support 3.5 since they broke something on us last 
minute, you'll need to use the FB4 beta for that.

Matt


On 8/26/09 3:12 PM, tntomek tnto...@yahoo.com wrote:





--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , 
tntomek tnto...@... wrote:

 Also will DMV be updated with 3.4 as well?

 It would be really nice to have native Eclipse 3.5 installer.

 Looking forward to the updated reliability (fingers crossed) in 3.4 SDK


Thx for link but no mention of DMV or Eclipse 3.5 support. Since Fx4 has been 
pushed to 2010 it would seem odd not to include a FB update in over a year if 
even just to make the installer happy. Any idea is 3.4 will be the last update 
to 3.x?







[flexcoders] Re: regression in Flex 3.4: SDK-21780

2009-08-26 Thread srnm
Thanks for the workaround.

It appears to work for us too and we're back to building with v3.4.

Thx




[flexcoders] Re: Air bundle strips Mac executable permissions

2009-08-26 Thread christofink
Thanks everyone for giving me some feedback.
I'll try nochump again and see if I can hack it into place.

Cheers,

--- In flexcoders@yahoogroups.com, Tom Chiverton tom.chiver...@... wrote:

 On Tuesday 25 Aug 2009, Wesley Acheson wrote:
  It sounds like a bug with the nochump library.
 
 Well, it seems 'nochump' (what ever that is) just doesn't re-apply the saved 
 permissions info, but that's neither here or there really to the OP's issue.