Search the web
Sign In
New User? Sign Up
flexcoders · RIA Development with Adobe Flex
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 149550 - 149579 of 151040   Newest  |  < Newer  |  Older >  |  Oldest
Messages: Show Message Summaries   (Group by Topic) Sort by Date v  
#149579 From: "Andy" <andrewbuttaro@...>
Date: Mon Nov 9, 2009 10:58 pm
Subject: It's about time (zones)...
andrewbuttaro
Offline Offline
Send Email Send Email
 
Time zone support really seems pretty minimal in Flex/ActionScript.

I have had my share of trouble trying to work around limitations, but would
really like to see additional timezone support.

I know I am not alone from some of the blog entries out there... so I found
these related bugs that you may want to vote for.

https://bugs.adobe.com/jira/browse/FP-175
https://bugs.adobe.com/jira/browse/FP-1170

Hopefully if enough people take the time to point out how lacking this is, Adobe
will dedicate some time to improving this.

Thanks!
Andy

#149578 From: "mitchgrrt" <mitch_gart@...>
Date: Mon Nov 9, 2009 9:17 pm
Subject: Re: Does Flex support Client Side Digital Certificates
mitchgrrt
Offline Offline
Send Email Send Email
 
Did you ever find out more about this?


--- In flexcoders@yahoogroups.com, "Anthony DeBonis" <anthony@...> wrote:
>
> Does Flex support Client Side Digital Certificates?
>
> I have been asked this question several times each time I have a hard
> time finding and answer/proof.
>
> Has anyone implemented this and do you have a code that tests it out.
>
> If it's all https traffic I am sure the browser handles this fine but
> what if you're using Flex Data Services for AMF binary transfer or
> messaging with Flash/Flex support the client side certificate?
>

#149577 From: Jeffry Houser <jeff@...>
Date: Mon Nov 9, 2009 8:14 pm
Subject: Re: Advanced date/time Flex libraries
reboog711
Offline Offline
Send Email Send Email
 

 Check out the FlexOOP DateUtils library.

http://code.google.com/p/flexdateutils/
http://flexoop.com/2008/12/flexdateutils-overview/  
http://flexoop.com/tag/flexdateutils/
 

sasuke wrote:
 


Hi folks,

Are there any advanced date/time manipulation libraries out there which
provide operations similar to those offered by the
http://java.sun.com/j2se/1.5.0/docs/api/java/util/Calendar.html Calendar
class in Java? Using the AS Date class for basic operations like adding X
amount of days to the current date, adding X amount of hours to the current
time, calculating for leap year etc. requires a fair amount of code. Is
there any library out there which encapsulates this logic and provides a
programmer friendly API?

TIA,
sasuke
--
View this message in context: http://old.nabble.com/Advanced-date-time-Flex-libraries-tp26267557p26267557.html
Sent from the FlexCoders mailing list archive at Nabble.com.


-- Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711 | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust

#149576 From: Roman Protsiuk <roman.protsiuk@...>
Date: Mon Nov 9, 2009 7:19 pm
Subject: Re: Get Notified if a Remoting "Result" event listener function *doesn't get called?
roman_protsiuk
Offline Offline
Send Email Send Email
 
Hi Steve,

In the situation when there's no response from the server you'll eventually get request timeout fault. It's just the matter of how long is this timeout configured to be.

Roman Protsiuk
Software Engineer/Engineering Team Lead

http://under.in.ua

Kyiv, Ukraine (GMT+2)
mobile: +38 097 321 56 54 email: roman.protsiuk@... skype: roman.protsiuk
linkedin: http://www.linkedin.com/in/romanpv blogspot: http://roma-ch.blogspot.com
I

On Mon, Nov 9, 2009 at 8:48 PM, steveb805 <quantumcheesedog@...> wrote:
 

This sounds vague, but basically it's:

My Zendamf remoting object has a
fault="faultListener(event)", which has an Alert.show statement.

However, I noticed that when I'm on my laptop, and my Net connection is flakey, this happens:

I create a new Item that then gets added to my List object successfully, and the next step is to add to the database on the Server-end, so I call:
myRemote.addNewTask(tempTask);

But there's no feedback , and although I "see" the new Item in my List this only means the Client side succeeds, but the DB save silently fails without a Fault event.

I have a Result event set up, but the resultListener function never gets called.
It's not like I can do this: if (!succeeds) then display "fail", like
you can on a normal php/mysql app.

And I just want to avoid having to go the reverse logic route to resolve this: When the Result event gets called, do an Alert.show(). Don't want to have to click OK everytime it's successful. ;/

Just wondering how anyone else handles this,
Thanks,
Steve



#149575 From: Tom McNeer <tmcneer@...>
Date: Mon Nov 9, 2009 7:07 pm
Subject: Re: Advanced date/time Flex libraries
tmcneer
Offline Offline
Send Email Send Email
 
Hi,


On Mon, Nov 9, 2009 at 1:10 PM, San Jay <uzumaki.naruto.is@gmail.com> wrote:
Are there any advanced date/time manipulation libraries out there which provide operations similar to those offered by the Calendar class in Java?


You might take a look at this project - http://flexdateutils.riaforge.org/ - and see if it suits your needs.


--
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560

#149574 From: "steveb805" <quantumcheesedog@...>
Date: Mon Nov 9, 2009 6:48 pm
Subject: Get Notified if a Remoting "Result" event listener function *doesn't get called?
steveb805
Offline Offline
Send Email Send Email
 
This sounds vague, but basically it's:

My Zendamf remoting object has a
     fault="faultListener(event)", which has an Alert.show statement.

However, I noticed that when I'm on my laptop, and my Net connection is flakey,
this happens:

  I create a new Item that then gets added to my List object successfully, and
the next step is to add to the database on the Server-end, so I call:
      myRemote.addNewTask(tempTask);

But there's no feedback , and although I "see" the new Item in my List this only
means the Client side succeeds, but the DB save silently fails without a Fault
event.

I have a Result event set up, but the resultListener function never gets called.
It's not like I can do this:  if (!succeeds) then display "fail", like
you can on a normal php/mysql app.

And I just want to avoid having to go the reverse logic route to resolve this:
When the Result event gets called, do an Alert.show().  Don't want to have to
click OK everytime it's successful. ;/

Just wondering how anyone else handles this,
Thanks,
Steve

#149573 From: "vikash kumar" <vikash.kumar29@...>
Date: Mon Nov 9, 2009 2:34 pm
Subject: Unable to transcode Flash Symbol Using Ant in Flex
vikashkumar29
Offline Offline
Send Email Send Email
 
Hello FlexCoders

I am currently running into an issue where I have created a Library project 'OVUIFramework' containing assets which includes style.css and OVSkin.swf
Now I have added swc of this project into the main App 'OVApp' and used theme option of compiler to access the assest property like
In an action Script File I have used ;

[Embed(source="assets/Styles/OVSkin.swf",symbol="Logo")]
private var logo:Class;

assets folder being present in 'OVUIFramework' flex compiler does not give me any compile time or run-time error and work very fine
But when I try to compile project 'OVApp' with ant it give me error :

E:\project\\Codebase\App\src\com\atex\OV\Core\UI\OVUIMgr.as(70): col: 4: Error: unable to resolve 'assets/Styles/OVSkin.swf' for transcoding
[mxmlc] [Embed(source="assets/Styles/OVSkin.swf",symbol="Logo")]

Please Help me out.Thanks in advance

-Vikash Kumar




#149572 From: "stanlaur" <laurynas@...>
Date: Mon Nov 9, 2009 1:01 pm
Subject: Need clarifications about ArrayCollection and binding
stanlaur
Offline Offline
Send Email Send Email
 
Hi,

Question 1:

There is note in Adobe Flex 3 help
(http://livedocs.adobe.com/flex/3/html/help.html?content=databinding_4.html):

"Note: [..] the ArrayCollection class dispatches an event when the array or the
array elements change to trigger data binding. For example, a call to
ArrayCollection.addItem(), ArrayCollection.addItemAt(),
ArrayCollection.removeItem(), and ArrayCollection.removeItemAt() all trigger
data binding."

And there (in documentation) is example, where <mx:List> is used with
`ArrayCollection` as data provider, which should confirm this note.

But my experience shows, that it's invalid (or I misunderstand something). IMHO,
`ArrayCollection.addItem()` (and co.) doesn't trigger data binding (and it's
only triggered when reference changes). And <mx:List> handles manually it (it
registers event listener for CollectionEvent.COLLECTION_CHANGE when
`dataProvider` is set) - so it may appear like it was binding stuff.

Is this note wrong? Incomplete? Or maybe I misunderstood something?

Question 2 (and it complements question 1):

I have model class with property `list`:

   [Bindable]
   public var list:ArrayCollection;

I want to reconstruct internal (in MXML) list, when list in model changes
(reference changes, or item is added/removed). In MXML component I have
something like this:

   [Bindable]
   public var model:Model;

   /* this is called on `creationComplete` */
   private function initLocal():void
   {
	 model = new Model();
	 BindingUtils.bindSetter(constructList, this, ["model", "list"]);
   }

But `constructList` is called only once (in my case, only when reference
changes). As I understand, bindings doesn't work when adding/removing items and
I should manually listen for CollectionEvent.COLLECTION_CHANGE?

(third question/issue)

If I change `list` property in `Model` to manual binding:

[Bindable(event="listUpdated")]
public function get list():ArrayCollection
{
...
}

And when manually dispatching `listUpdated` events (when item is added/removed,
or list reference changes), then `BindUtils.bindSetter()` works as I expect -
`constructList` is called when item is added, etc.

Question: why this differs from default binding ([Bindable])? I assume, that
default bindings doesn't fire `propertyChange` event, when something is added to
ArrayCollection. Am I right?


Laurynas Stancikas

#149571 From: sasuke <uzumaki.naruto.is@...>
Date: Mon Nov 9, 2009 2:46 pm
Subject: Advanced date/time Flex libraries
uzumaki.naruto.is@...
Send Email Send Email
 
Hi folks,

Are there any advanced date/time manipulation libraries out there which
provide operations similar to those offered by the
http://java.sun.com/j2se/1.5.0/docs/api/java/util/Calendar.html Calendar
class in Java? Using the AS Date class for basic operations like adding X
amount of days to the current date, adding X amount of hours to the current
time, calculating for leap year etc. requires a fair amount of code. Is
there any library out there which encapsulates this logic and provides a
programmer friendly API?

TIA,
sasuke
--
View this message in context:
http://old.nabble.com/Advanced-date-time-Flex-libraries-tp26267557p26267557.html
Sent from the FlexCoders mailing list archive at Nabble.com.

#149570 From: San Jay <uzumaki.naruto.is@...>
Date: Mon Nov 9, 2009 6:10 pm
Subject: Advanced date/time Flex libraries
uzumaki.naruto.is@...
Send Email Send Email
 
HiHi folks,

Are there any advanced date/time manipulation libraries out there which provide operations similar to those offered by the Calendar class in Java? Using the AS Date class for basic operations like adding X amount of days to the current date, adding X amount of hours to the current time, calculating for leap year etc. requires a fair amount of code. Is there any library out there which encapsulates this logic and provides a programmer friendly API?

TIA,
sasuke

#149569 From: Shweta Sharrof <shweta.sharrof@...>
Date: Mon Nov 9, 2009 12:37 pm
Subject: Navigating from a Servlet to a flex page
shweta.sharrof@...
Send Email Send Email
 
Hi,
I am new to flex.
Can anybody please tell me as to how can i navigate from a servlet to a flex
page like we do in the jsp/servlet using RequestDispatcher.

Thanks in advance.
--
View this message in context:
http://old.nabble.com/Navigating-from-a-Servlet-to-a-flex-page-tp26265728p262657\
28.html
Sent from the FlexCoders mailing list archive at Nabble.com.

#149568 From: Shweta Sharrof <shweta.sharrof@...>
Date: Mon Nov 9, 2009 1:28 pm
Subject: Navigating from a Servlet to a flex page
shweta.sharrof@...
Send Email Send Email
 
Hi,
I am new to flex.
Can anybody please tell me as to how can i navigate from a servlet to a flex
page like we do in the jsp/servlet using RequestDispatcher.

Thanks in advance.
--
View this message in context:
http://old.nabble.com/Navigating-from-a-Servlet-to-a-flex-page-tp26266413p262664\
13.html
Sent from the FlexCoders mailing list archive at Nabble.com.

#149567 From: "handitan" <handi.tan@...>
Date: Mon Nov 9, 2009 6:19 pm
Subject: Adobe AIR 1.5.1: issue on opening encrypted DB
handitan
Offline Offline
Send Email Send Email
 
Hi all,


I got a sqlite DB that's encrypted with AES256 using sqlite3 command line tool:

sqlite3.exe -key test123Test test.db


I able to do this encryption because I bought the SEE license.


And I did test that the encryption does work, I could not view the DB content
directly using the DB Admin Tool I have but I could view the content using the
sqlite3 command line tool.

I believe the reason why my DB Admin Tool couldn't work because it doesn't have
the SEE license.


Anyway, I tried to open this with ADOBE AIR and I did make sure passing the
encryption key as part of the argument.

But what I got is an error msg:


Error message: Error #3125: Unable to open the database file.

Details: An encryption key cannot be specified when the database is not
encrypted.



So this brings me to this question:

- What kind of SQLite encryption does ADOBE AIR really supports?

- Does ADOBE have SEE license?


Please enlighten me.


Thx!

#149566 From: "jmerrill_2001" <jason.merrill@...>
Date: Mon Nov 9, 2009 6:07 pm
Subject: Re: LineChart not updating when DP changes
jmerrill_2001
Offline Offline
Send Email Send Email
 
>>try update manually using the id of the linechart (in the dp change event
handler) like...linechartid.dataProvider = dataprovider.

Huh?  If you see in my code, that's exactly what I'm doing and why I'm confused
the chart isn't changing even though the data is different.

#149565 From: Omotola Anjorin <shot2flow@...>
Date: Mon Nov 9, 2009 5:37 pm
Subject: Re: Re: LineChart not updating when DP changes
shot2flow
Offline Offline
Send Email Send Email
 
try update manually using the id of the linechart (in the dp change event handler) like...


linechartid.dataProvider = dataprovider.


From: jmerrill_2001 <jason.merrill@...>
To: flexcoders@yahoogroups.com
Sent: Mon, November 9, 2009 4:43:24 PM
Subject: [flexcoders] Re: LineChart not updating when DP changes

 

hmmmm... anyone?



#149564 From: Richard Rodseth <rrodseth@...>
Date: Mon Nov 9, 2009 5:18 pm
Subject: NumericStepper and change event
rcrodseth
Offline Offline
Send Email Send Email
 
Is there any way to get a NumericStepper to fire a change event on each keystroke?

I got a bug report that the form save button is not enabled until the stepper loses focus.

#149563 From: Kearney Buskirk <kearney@...>
Date: Mon Nov 9, 2009 4:09 pm
Subject: Re: Re: text from a form into an e-mail?
kearney_buskirk
Offline Offline
Send Email Send Email
 

On Nov 8, 2009, at 8:14 AM, Tracy Spratt wrote:



At the instance or global level of an mxml file, you can only initiate variables to simple values. “richTextInstance” does not yet exist when you are trying to access the text property value, thus the error.  Declare the variable as you are, but wait to initialize the value by using a ceeationComplete handler.
 
Now, mx:Form is just a layout container, and won’t process the field data for you in any special way.  You will need to get the value from each form item control individually, and build the string you want. (or, if the form changes update a model, use the model.)

Right, so what I had built thus far is:

private var mailMe:String = "mailto:kearney@...?subject=answers&body=";

private function sendEmail():void
{
navigateToURL(new URLRequest(mailMe + unNaturalText_1.text + unNaturalText_2.text),'_self');
}

It's working well now except that there's no separation between each text block from each TextInput instance in the email output. I'm trying to put each text block in its own paragraph. I've tried inserting \n and \r in various combinations with + and the .text instances. None of those thus far works to separate the text blocks into their own paragraphs. What am I missing?

Is there good reason to use a model for this situation?

Tracy, I appreciate your patience, persistence and teaching.

Kearney
 
 
Tracy Spratt,
Lariat Services, development services available




#149562 From: "Asa Williams" <asawilliams@...>
Date: Mon Nov 9, 2009 4:02 pm
Subject: External Style Sheet Naming and Structure Conventions
windsail05
Offline Offline
Send Email Send Email
 
I am creating an AIR/Flex application and wanted to know how to break up my
styles.  Right now I have everything in two files and quickly realized I needed
to break it up.  The normal web way of breaking them up doesnt seem to apply to
us.  Or does it?

What css file naming convention should I use and what should be included in each
one?

#149561 From: "jmerrill_2001" <jason.merrill@...>
Date: Mon Nov 9, 2009 3:43 pm
Subject: Re: LineChart not updating when DP changes
jmerrill_2001
Offline Offline
Send Email Send Email
 
hmmmm... anyone?

#149560 From: "Slackware" <selecters75@...>
Date: Mon Nov 9, 2009 2:29 pm
Subject: skinning the modal window in popupmanager
slackware2142
Offline Offline
Send Email Send Email
 
How can I do it? I want to change the skin in the panel that shows windows in
popupmanager.
I'm using Flash Builder 4 beta 2 and only mx controls (not spark)

TIA

#149559 From: "valdhor" <valdhorlists@...>
Date: Mon Nov 9, 2009 1:49 pm
Subject: [Spam] Re: Memory leak with Data Grid and Item Renderers
valdhor
Offline Offline
Send Email Send Email
 
Sorry, you are correct.

I believe you need to manipulate the columns array. This array holds an
AdvancedDataGridColumn reference for each column. Set this to a new array
containing the new columns.

--- In flexcoders@yahoogroups.com, Nick Middleweek <nick@...> wrote:
>
> Hi,
>
> There doesn't seem to be a removeAllChildren() method of the Advanced Data
> Grid.
>
> Also, when I test test the numChildren property it only gives me 4 but I've
> got a renderer (child) for each of the 9 columns over 20 rows = 180...
>
> I've just found a rendererArray which is an Array of Arrays for the
> renderers for each row/Column... I'm hoping I may be able to delete the
> 'children' this way? have you ever used this property?
>
> or perhaps there's another way to delete the 'children' of the Adv Data
> Grid?
>
>
> Thanks,
> Nick
>
>
>
>
> 2009/11/6 valdhor <valdhorlists@...>
>
> >
> >
> > I don't think you can do that. Item renderers are created automatically.
> >
> > If it were me, I would probably removeAllChildren from the datagrid and add
> > each column again. This should create new renderers as required.
> >
> >
> >
>

#149558 From: "valdhor" <valdhorlists@...>
Date: Mon Nov 9, 2009 1:32 pm
Subject: Re: custom context menu on ADG crashes IE and FF - advice please
valdhor
Offline Offline
Send Email Send Email
 
Can you post some sample code?

--- In flexcoders@yahoogroups.com, "MicC" <chigwell23@...> wrote:
>
> On a custom AdvancedDataGrid - did the standard thing to add a total footer -
I have a column where the item renderer puts a hyperlink/link button in the grid
cell. I attached a custom context menu to this link button with custom menu
item. Selecting this menu item shuts down IE or FireFox immediately. I have
removed the menu item listener so it does not try and go anywhere,but the
browser still shuts down when
>
> - right-click gridcell which is a link button to display context menu
> - select custon menu item - browser quits.
>
> Any advice on this one would be greatly appreciated. TIA,
>
> Mic.
>

#149557 From: Omotola Anjorin <shot2flow@...>
Date: Mon Nov 9, 2009 12:33 pm
Subject: Re: Passing values from popup window to MXML component
shot2flow
Offline Offline
Send Email Send Email
 
Yeah you can do what rohit said by adding a logout button at the same place and toggling the visiblity.

This way,

From you main application you can do something like this.

    if(loginWin. userInput. text=='funandlearning' && loginWin.passwordIn put.text= ='funandlearning')
                {
                    Alert.show("Login Successful");
                    loginWin.loginButton.visible = false
                    loginWin.logoutButton.visible = true
                }

You can also use the same button but play around the text property.

Cheers

From: Rohit Sharma <rohit.sharma1982@...>
To: flexcoders@yahoogroups.com
Sent: Mon, November 9, 2009 12:21:02 PM
Subject: Re: [flexcoders] Passing values from popup window to MXML component

 

  You can add a logout button at the same place as login button and toggle the visibilities of these buttons depending upon the
   state of your component.

  

On Mon, Nov 9, 2009 at 9:58 AM, Funand Learning <funandlearning3@ yahoo.com> wrote:
 

Hello All,

I was trying to create a login Page. The page has one main MXML application file with couple of MXML components. The First component contains the following:

Component1.mxml:

<?xml version="1.0" encoding="utf-8"?>

    width="60%" height="261">

    <mx:Script>
        <![CDATA[
            import mx.managers. PopUpManager;
            import mx.controls. Alert;
            import components.LoginPop Up;
            import mx.events.CloseEven t;
           
            public var loginWin:LoginPopUp ;
           
            private function loginHandler( ):void {
                loginWin = new LoginPopUp() ;
                loginWin.addEventLi stener(CloseEven t.CLOSE,closeHan dler);
                PopUpManager. addPopUp( loginWin, this,true) ;
                PopUpManager. centerPopUp( loginWin) ;
           
            }
           
            public function closeHandler( event:CloseEvent ):void
            {
                PopUpManager. removePopUp( loginWin) ;
               
            }
           
       
                public function checkCredentials( ):void{
               
                if(loginWin. userInput. text=='funandlearning' && loginWin.passwordIn put.text= ='funandlearning')
                {
                    Alert.show("Login Successful");
                   
                }
                else
                {
                    Alert.show("Login Failed");
                }
            }
           
       
        ]]>
    </mx:Script>


   
    <mx:HBox width="90%" height="55" borderColor="#F85023" id="headerButtons"
        borderStyle="outset" horizontalAlign="left" verticalAlign="middle"
        backgroundColor="#938480">
        <mx:Spacer width="10%"/>
        <mx:Button id="loginMain" label="Login" click="loginHandler( )"/>
        <mx:Button id="logout" label="LogOut" />   
    </mx:HBox>
   
    <mx:HBox width="100%" height="82%">
        <mx:HBox width="25%" height="82%" borderStyle="outset" borderColor="#F85023">
        </mx:HBox>
        <mx:HBox width="65%" height="82%" borderColor="#F85023" borderStyle="outset">
        </mx:HBox>
    </mx:HBox>
</mx:VBox>

component2.mxml has the following code for the popup

<?xml version="1.0" encoding="utf-8"?>

                xmlns:main="components.*" layout="vertical"
          title="Please login" showCloseButton="true">
   
    <!-- defined state to toggle between register and login -->
    <mx:states>
        <mx:State name="Register" basedOn="">
            <mx:AddChild relativeTo="{loginForm}"
                         position="lastChild" creationPolicy="all">
                <mx:FormItem label="Email">
                    <mx:TextInput id="email"/>
                </mx:FormItem>
            </mx:AddChild>
           
            <mx:SetProperty target="{loginButton}" name="label" value="Register"/>
            <mx:RemoveChild target="{registerLink}"/>
           
            <mx:AddChild relativeTo="{linkSpacer}" position="before">
                <mx:LinkButton label="Return to Login" click="currentState='';this.title='Please Login'"/>
            </mx:AddChild>           
        </mx:State>
    </mx:states>
    <mx:Script>
        <![CDATA[
            import mx.events.CloseEven t;
            import mx.managers. PopUpManager;
            import mx.controls. Alert;
           
       
        ]]>
    </mx:Script>
    <mx:Form id="loginForm">
        <mx:FormItem label="Username:">
            <mx:TextInput id="userInput"/>
        </mx:FormItem>
        <mx:FormItem label="Password:">
            <mx:TextInput id="passwordInput" displayAsPassword="true"/>
        </mx:FormItem>
   
    </mx:Form>
    <mx:ControlBar>
         <mx:LinkButton
            label="Need to Register?" id="registerLink"
            click="currentState='Register';this.title='Register'"
        />
        <mx:Spacer width="100%" id="linkSpacer"/>
        <mx:Button label="Login" id="loginButton" click="checkCredentials( )"/>
        <mx:Button label="Cancel" click="PopUpManager. removePopUp( this)"/>
    </mx:ControlBar>
   
</mx:TitleWindow>

I need help in knowing how to change the login button in component1.mxml to logout button when the login functionaility from the popuup window is successful

Thanks.




#149556 From: Abhiken <abhgup@...>
Date: Wed Nov 4, 2009 12:58 pm
Subject: How to configure flex app in HTTPS load balanced environment where app servers serve http requests
abhgup
Offline Offline
Send Email Send Email
 
Hi,


I have developed the dashboard in my application using flex 3.0. For this I
have used JSP wrapper around the flex application. My application runs on
JBoss application server. For communication between flex app and my
application I am using LCDS. HTTPService component is being used to receive
data from the server. Channel definitions are given in service-config.xml
for secure amf and secure http channels. In my proxy-config.xml I have
defined Channels and destinations.

In my development environment both secure and non secure mode were working
fine.


Now in my test environment I have deployed it behind the hardware load
balancer(which accepts secure requests only and if the request is not secure
it redirects it to secure url).



So the load balancer only accepts HTTPS URLS and after that the request is
converted into HTTP and sent to web/app servers



I am getting following exception



06:06:13,521 INFO  [STDOUT] [LCDS][ERROR] Exception when invoking service
'proxy-service': flex.messaging.services.http
.proxy.ProxyException: Error sending request.
sun.security.validator.ValidatorException: PKIX path building failed: sun
.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target
   incomingMessage: Flex Message (flex.messaging.messages.HTTPMessage)
     method = GET
     url = http://10.4.10.224:80/kr/servlet/DashboardServlet
     headers = {DSEndpoint=my-secure-http,
DSId=A96D29E3-9B09-8156-DE28-257F324A283F}
     clientId = A96D2A56-5A0D-4442-1E1B-4F62ACA8F33B
     destination = dashboardService
     messageId = 3E568EBD-2239-9A43-8D2D-B9B934E8F10B
     timestamp = 1257246373114
     timeToLive = 0
     body = {source=default}
     hdr(DSEndpoint) = my-secure-http
     hdr(DSId) = A96D29E3-9B09-8156-DE28-257F324A283F
   Exception: flex.messaging.services.http.proxy.ProxyException: Error
sending request. sun.security.validator.Validator
Exception: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find
valid certification path to requested target
         at
flex.messaging.services.http.proxy.RequestFilter.sendRequest(RequestFilter.java
:493)
         at
flex.messaging.services.http.proxy.RequestFilter.invoke(RequestFilter.java:84)
         at
flex.messaging.services.http.proxy.SecurityFilter.invoke(SecurityFilter.java:63
)
         at
flex.messaging.services.http.proxy.ResponseFilter.invoke(ResponseFilter.java:68
)
         at
flex.messaging.services.http.proxy.ProxyContextFilter.invoke(ProxyContextFilter
.java:58)
         at
flex.messaging.services.http.proxy.AccessFilter.invoke(AccessFilter.java:59)
         at
flex.messaging.services.http.proxy.ErrorFilter.invoke(ErrorFilter.java:44)
         at
flex.messaging.services.http.HTTPProxyAdapter.invoke(HTTPProxyAdapter.java:543)
         at
flex.messaging.services.HTTPProxyService.invokeHttp(HTTPProxyService.java:353)
         at
flex.messaging.services.HTTPProxyService.serviceMessage(HTTPProxyService.java:1
81)
         at
flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1503)
         at
flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:
884)
         at
flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilter.jav
a:121)
         at
flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:44)
         at
flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter.java:
67)
         at
flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.jav
a:146)
         at
flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:278)
         at
flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java:322)
--
View this message in context:
http://old.nabble.com/How-to-configure-flex-app-in-HTTPS-load-balanced-environme\
nt-where-app-servers-serve-http-requests-tp26195876p26195876.html
Sent from the FlexCoders mailing list archive at Nabble.com.

#149555 From: "Quantum" <quantumcheesedog@...>
Date: Sun Oct 25, 2009 11:08 pm
Subject: RE: Detect if any of the Items on a List are Selected - thought it would be easier.
steveb805
Offline Offline
Send Email Send Email
 
Oh yeah, just get the count of one of these arrays. I guess that would be better than what I'm doing :)
Thanks


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Fotis Chatzinikos
Sent: Sunday, October 25, 2009 3:46 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Detect if any of the Items on a List are Selected - thought it would be easier.

 

you can use the list's properties (arrays of indices, or items):

            selectedItems
            selectedIndices


On Sun, Oct 25, 2009 at 7:19 PM, steveb805 <quantumcheesedog@gmail.com> wrote:
 


The only property I could find, from the Flex docs, that tells you whether your List control has anything selected is: isItemSelected().

And this takes a parameter that refers to a specific item. So before my Delete button handler, I check if any item is selected with the following:

private function deleteHandler() {

var bDoesNotHasFocus: Boolean = true;
var len:Number = projectList.dataProvider.length;

for (var i:int = 0; i <= len - 1; i++) {
if (projectList.isItemSelected(projectList.dataProvider[i]))
{
bDoesNotHasFocus = false;
}
}
if (bDoesNotHasFocus)
return;

// the code to delete

}

Is there a better way, anyone?
Thanks,
Steve




--
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
Fotis.Chatzinikos@gmail.com,


#149554 From: Rohit Sharma <rohit.sharma1982@...>
Date: Mon Nov 9, 2009 11:21 am
Subject: Re: Passing values from popup window to MXML component
rohit_sharma...
Offline Offline
Send Email Send Email
 
  You can add a logout button at the same place as login button and toggle the visibilities of these buttons depending upon the
   state of your component.

  

On Mon, Nov 9, 2009 at 9:58 AM, Funand Learning <funandlearning3@...> wrote:
 

Hello All,

I was trying to create a login Page. The page has one main MXML application file with couple of MXML components. The First component contains the following:

Component1.mxml:

<?xml version="1.0" encoding="utf-8"?>

    width="60%" height="261">

    <mx:Script>
        <![CDATA[
            import mx.managers.PopUpManager;
            import mx.controls.Alert;
            import components.LoginPopUp;
            import mx.events.CloseEvent;
           
            public var loginWin:LoginPopUp;
           
            private function loginHandler():void {
                loginWin = new LoginPopUp();
                loginWin.addEventListener(CloseEvent.CLOSE,closeHandler);
                PopUpManager.addPopUp(loginWin,this,true);
                PopUpManager.centerPopUp(loginWin);
           
            }
           
            public function closeHandler(event:CloseEvent):void
            {
                PopUpManager.removePopUp(loginWin);
               
            }
           
       
                public function checkCredentials():void{
               
                if(loginWin.userInput.text=='funandlearning' && loginWin.passwordInput.text=='funandlearning')
                {
                    Alert.show("Login Successful");
                   
                }
                else
                {
                    Alert.show("Login Failed");
                }
            }
           
       
        ]]>
    </mx:Script>


   
    <mx:HBox width="90%" height="55" borderColor="#F85023" id="headerButtons"
        borderStyle="outset" horizontalAlign="left" verticalAlign="middle"
        backgroundColor="#938480">
        <mx:Spacer width="10%"/>
        <mx:Button id="loginMain" label="Login" click="loginHandler()"/>
        <mx:Button id="logout" label="LogOut" />   
    </mx:HBox>
   
    <mx:HBox width="100%" height="82%">
        <mx:HBox width="25%" height="82%" borderStyle="outset" borderColor="#F85023">
        </mx:HBox>
        <mx:HBox width="65%" height="82%" borderColor="#F85023" borderStyle="outset">
        </mx:HBox>
    </mx:HBox>
</mx:VBox>

component2.mxml has the following code for the popup

<?xml version="1.0" encoding="utf-8"?>

                xmlns:main="components.*" layout="vertical"
          title="Please login" showCloseButton="true">
   
    <!-- defined state to toggle between register and login -->
    <mx:states>
        <mx:State name="Register" basedOn="">
            <mx:AddChild relativeTo="{loginForm}"
                         position="lastChild" creationPolicy="all">
                <mx:FormItem label="Email">
                    <mx:TextInput id="email"/>
                </mx:FormItem>
            </mx:AddChild>
           
            <mx:SetProperty target="{loginButton}" name="label" value="Register"/>
            <mx:RemoveChild target="{registerLink}"/>
           
            <mx:AddChild relativeTo="{linkSpacer}" position="before">
                <mx:LinkButton label="Return to Login" click="currentState='';this.title='Please Login'"/>
            </mx:AddChild>           
        </mx:State>
    </mx:states>
    <mx:Script>
        <![CDATA[
            import mx.events.CloseEvent;
            import mx.managers.PopUpManager;
            import mx.controls.Alert;
           
       
        ]]>
    </mx:Script>
    <mx:Form id="loginForm">
        <mx:FormItem label="Username:">
            <mx:TextInput id="userInput"/>
        </mx:FormItem>
        <mx:FormItem label="Password:">
            <mx:TextInput id="passwordInput" displayAsPassword="true"/>
        </mx:FormItem>
   
    </mx:Form>
    <mx:ControlBar>
         <mx:LinkButton
            label="Need to Register?" id="registerLink"
            click="currentState='Register';this.title='Register'"
        />
        <mx:Spacer width="100%" id="linkSpacer"/>
        <mx:Button label="Login" id="loginButton" click="checkCredentials()"/>
        <mx:Button label="Cancel" click="PopUpManager.removePopUp(this)"/>
    </mx:ControlBar>
   
</mx:TitleWindow>

I need help in knowing how to change the login button in component1.mxml to logout button when the login functionaility from the popuup window is successful

Thanks.



#149553 From: Funand Learning <funandlearning3@...>
Date: Mon Nov 9, 2009 4:28 am
Subject: Passing values from popup window to MXML component
funandlearning3
Offline Offline
Send Email Send Email
 
Hello All,

I was trying to create a login Page. The page has one main MXML application file with couple of MXML components. The First component contains the following:

Component1.mxml:

<?xml version="1.0" encoding="utf-8"?>

    width="60%" height="261">

    <mx:Script>
        <![CDATA[
            import mx.managers.PopUpManager;
            import mx.controls.Alert;
            import components.LoginPopUp;
            import mx.events.CloseEvent;
           
            public var loginWin:LoginPopUp;
           
            private function loginHandler():void {
                loginWin = new LoginPopUp();
                loginWin.addEventListener(CloseEvent.CLOSE,closeHandler);
                PopUpManager.addPopUp(loginWin,this,true);
                PopUpManager.centerPopUp(loginWin);
           
            }
           
            public function closeHandler(event:CloseEvent):void
            {
                PopUpManager.removePopUp(loginWin);
               
            }
           
       
                public function checkCredentials():void{
               
                if(loginWin.userInput.text=='funandlearning' && loginWin.passwordInput.text=='funandlearning')
                {
                    Alert.show("Login Successful");
                   
                }
                else
                {
                    Alert.show("Login Failed");
                }
            }
           
       
        ]]>
    </mx:Script>


   
    <mx:HBox width="90%" height="55" borderColor="#F85023" id="headerButtons"
        borderStyle="outset" horizontalAlign="left" verticalAlign="middle"
        backgroundColor="#938480">
        <mx:Spacer width="10%"/>
        <mx:Button id="loginMain" label="Login" click="loginHandler()"/>
        <mx:Button id="logout" label="LogOut" />   
    </mx:HBox>
   
    <mx:HBox width="100%" height="82%">
        <mx:HBox width="25%" height="82%" borderStyle="outset" borderColor="#F85023">
        </mx:HBox>
        <mx:HBox width="65%" height="82%" borderColor="#F85023" borderStyle="outset">
        </mx:HBox>
    </mx:HBox>
</mx:VBox>

component2.mxml has the following code for the popup

<?xml version="1.0" encoding="utf-8"?>

                xmlns:main="components.*" layout="vertical"
          title="Please login" showCloseButton="true">
   
    <!-- defined state to toggle between register and login -->
    <mx:states>
        <mx:State name="Register" basedOn="">
            <mx:AddChild relativeTo="{loginForm}"
                         position="lastChild" creationPolicy="all">
                <mx:FormItem label="Email">
                    <mx:TextInput id="email"/>
                </mx:FormItem>
            </mx:AddChild>
           
            <mx:SetProperty target="{loginButton}" name="label" value="Register"/>
            <mx:RemoveChild target="{registerLink}"/>
           
            <mx:AddChild relativeTo="{linkSpacer}" position="before">
                <mx:LinkButton label="Return to Login" click="currentState='';this.title='Please Login'"/>
            </mx:AddChild>           
        </mx:State>
    </mx:states>
    <mx:Script>
        <![CDATA[
            import mx.events.CloseEvent;
            import mx.managers.PopUpManager;
            import mx.controls.Alert;
           
       
        ]]>
    </mx:Script>
    <mx:Form id="loginForm">
        <mx:FormItem label="Username:">
            <mx:TextInput id="userInput"/>
        </mx:FormItem>
        <mx:FormItem label="Password:">
            <mx:TextInput id="passwordInput" displayAsPassword="true"/>
        </mx:FormItem>
   
    </mx:Form>
    <mx:ControlBar>
         <mx:LinkButton
            label="Need to Register?" id="registerLink"
            click="currentState='Register';this.title='Register'"
        />
        <mx:Spacer width="100%" id="linkSpacer"/>
        <mx:Button label="Login" id="loginButton" click="checkCredentials()"/>
        <mx:Button label="Cancel" click="PopUpManager.removePopUp(this)"/>
    </mx:ControlBar>
   
</mx:TitleWindow>

I need help in knowing how to change the login button in component1.mxml to logout button when the login functionaility from the popuup window is successful

Thanks.


#149552 From: Nick Middleweek <nick@...>
Date: Mon Nov 9, 2009 10:52 am
Subject: Re: [Spam] Re: Memory leak with Data Grid and Item Renderers
nmiddleweek
Offline Offline
Send Email Send Email
 
Hi,

There doesn't seem to be a removeAllChildren() method of the Advanced Data Grid.

Also, when I test test the numChildren property it only gives me 4 but I've got a renderer (child) for each of the 9 columns over 20 rows = 180...

I've just found a rendererArray which is an Array of Arrays for the renderers for each row/Column... I'm hoping I may be able to delete the 'children' this way? have you ever used this property?

or perhaps there's another way to delete the 'children' of the Adv Data Grid?


Thanks,
Nick




2009/11/6 valdhor <valdhorlists@...>
 

I don't think you can do that. Item renderers are created automatically.

If it were me, I would probably removeAllChildren from the datagrid and add each column again. This should create new renderers as required.





#149551 From: "MicC" <chigwell23@...>
Date: Mon Nov 9, 2009 9:39 am
Subject: custom context menu on ADG crashes IE and FF - advice please
chigwell23
Offline Offline
Send Email Send Email
 
On a custom AdvancedDataGrid - did the standard thing to add a total footer - I
have a column where the item renderer puts a hyperlink/link button in the grid
cell. I attached a custom context menu to this link button with custom menu
item. Selecting this menu item shuts down IE or FireFox immediately. I have
removed the menu item listener so it does not try and go anywhere,but the
browser still shuts down when

- right-click gridcell which is a link button to display context menu
- select custon menu item - browser quits.

Any advice on this one would be greatly appreciated. TIA,

Mic.

#149550 From: Sébastien Tromp <sebastien.tromp@...>
Date: Sun Nov 8, 2009 8:39 pm
Subject: Re: Re: Mac-like icon brower library
sebastien.tromp
Offline Offline
Send Email Send Email
 
For info, here is an open-source Tsunami / Dock menu:

http://www.quietlyscheming.com/blog/components/fisheye-component/

2009/11/8 Sébastien Tromp <sebastien.tromp@...>
Thanks a lot, exactly what I was looking for.

2009/11/8 Shanimal <yahoo_flexcoders@...>

 

You are looking for a "Tsunami".

http://www.google.com/#hl=en&source=hp&q=as3+tsunami+effect&aq=1&aqi=g2&oq=as3+Tsunami&fp=f856a575d939ef4



--- In flexcoders@yahoogroups.com, Sébastien Tromp <sebastien.tromp@...> wrote:
>
> Hello,
>
> Some time ago, I stumbled across a library that defined a container that had
> behavior similar to the bottom taskbar on Macintoshesµ. You know, when all
> the icons are aligned, and when you mouse over one of them it gets
> magnified, and the other icons are repositioned. I lost the bookmark when I
> had to reformat my computer, and cannot managed to find it again.
>
> Would anyone know about this?
>
> Regards,
> --
> Sébastien
>




Messages 149550 - 149579 of 151040   Newest  |  < Newer  |  Older >  |  Oldest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help