Flex :: Retrieve Cookies From The Cookie Space Used By AMF?

Sep 16, 2010

I have a flex app that uses AMF to talk to a Spring Java backend. How do I get the values of cookies that have been set by the server and are being sent back by AMF?

View 1 Replies


Similar Posts:


IDE :: How To Retrieve Session Cookie In Flash

May 13, 2009

How can I retrieve a session cookie inside Flash ?
($_SESSION['member'])
(I am using Flash 8 and ActionScript 2.0)

View 2 Replies

Flash :: Retrieve A Cookie From An HTTP Response In As3 Without Using Script?

Dec 1, 2010

My swf will potentially live on sites with embed codes that do not allow script access to the movie. I need to pull a cookie from response which is typically simple using javascript, but as the swf does not have access to script, javascript is not an option. Can I access cookies or the cookie header in the response? If that is not possible is there any access to the raw response, headers and all?

View 1 Replies

Flex :: Set Values In Cookie And Get Values From Cookie Not Using With Shared Object?

May 18, 2010

I need to save email-id in my login form through the cookies. if I use shared object I am able to save but my requirement is need to save in cookies. How can I save? I got sample code from net. Attaching that code `package com {

import flash.external.ExternalInterface;

/**
* The Cookie class provides a simple way to create or access
* cookies in the embedding HTML document of the application.

[Code].....

View 1 Replies

Flex :: How To Manage Cookies In Mx:HTML

Jun 3, 2011

I use AIR HTML component, and I need to delete cookies sometimes. I have to open IE and delete cookies there... Can I do it via AS code?

View 1 Replies

Flex :: Store Some Values In Browser Using Cookies?

Dec 10, 2009

I want to store some values in browser using cookies

but i don't do i do ?

View 2 Replies

Close Window Cookies Are Destroying In Flex?

May 25, 2010

I am using external interface to store cookies in client side of application. Like I have created a cookie in html and i am using those methods in flex using External Interface. I am saving a username in cookie when I re use cookie is displaying, I have deployed in server and i ran like http://localhost/[Path]/index.html.in this html I am embedded swf file and I have saved cookie in html JavaScript, now if I open this url cookie is saving if I open a new window what ever the cookies are a raised and it is loading from start. for cookies saving i am using this code in flex:`package Name{

[Code]...

View 1 Replies

Flex - Run Flex/BlazeDS Without Dropping A JSessionId Cookie?

Jul 20, 2011

The question says it. Does anybody know the answer to this? We're running into problems when 3rd-party cookies are disabled.

View 1 Replies

Flex :: How To Access Cookie

Aug 9, 2010

I made a blog widget in flex. I need manipulate cookie in my widget which is added to my user's blog. But under some circumstance, some blog hosts forbid accessing to javascript, so i can not access cookie in flex by externalInterface. Does anyone know how to access cookie in this context?

View 3 Replies

Ruby On Rails :: Handling Cookies With Flex For Authentication?

Mar 10, 2010

I'm using Flex 4(beta2) with Ruby on Rails 2.3.5 and using RubyAMF to transfer data back and forth between Flex and server. set up Authlogic on the Rails side for authentication. wasn't sure what's the best method to handle user sessions. I know this is done automatically with Rails by sending session id with cookie which Rails use to authenticate the user.What do you suggest the best way to do this with Flex?I thought of couple of options:1. Manually fetching the cookie from the browser and then figuring our a way to send that to the server with every request I send. 2. Handling sessions expiration and flow on Flex side by manually expiring the session

View 4 Replies

Flex - Do Flash And IE Play Nicely With HTTP Cookies?

Jul 14, 2011

We're developing a Flex-based component that's going to be hosted inside another company's product. Due to the nature of their hosting environment, the Flash movie will run in its own <iframe> tag.The Flex app calls out to our REST services via HTTPS, and authenticates with an HTTP cookie. This works beautifully in Chrome, Firefox, Safari... everything except IE. I compared requests from Chrome and IE using Fiddler, and noticed that they are identical, save for the HTTP Cookies. IE omits several, including the one used for authentication.

View 1 Replies

Java :: Maintain Last Cookie Value In Flex With Jsp?

May 31, 2010

my login form in flex when I login I have created a cookie in jsp like this name setValueCookie.jsp [code]through the httpservice value i am getting but if i open a new window or any new tab cookie value is not getting how can i solve this?

View 1 Replies

Flex :: Cookies Working In Flex But Not In Air

Dec 11, 2010

I've got a flex app which I'm porting to air, the two apps are identical except for the root tag being WindowedApplication rather than Application.The problem is that cookie/session based logins are working for the flex app in the browser but not for the air app. Reading the docs says that cookies are available for air and the URLRequest manageCookies is true by default.I've investigated further and it turns out cookies are working in Air and are used for all subsequent requests after the login, but the cookie does not survive a shutdown of the application and the user is required to login again when they restart.

View 2 Replies

AS3 :: Test Services With Cookie Based Sessions In Flex?

Jul 6, 2011

As the title indicates the question is in regards to the service layer of a flex application. Specifically in a test case class. To call the services the user must first authenticate through an html/CF based page. Once that's done and the authentication has occurred the user is directed to the html page with the flex application embedded in. Once authenticated the server side CF code writes a cookie to the users computer. This cookie is then read by the flex app and is required for the flex app to make calls to the CF services.

The question is: how should this be handled in a test case class for the service class in the flex app? The following steps need to basically take place: use some account data to hit the server and authenticate, the cookie then needs to be written (which it will already), then the test case needs to pick up the session id from the cookie and pass it to the service call within the test case. That just all seems like too much for a test case class.

So, how is this type of thing usually handled. From what I gather it's typical for web service calls to require a session id like this.

View 1 Replies

Flash :: Create Cookie Through Flex / Coldfusion That Is Readable By Another Template?

Feb 4, 2010

Inside a flex app, I have a user login. The login calls a ColdFusion function as a remote object which authenticates the user and, if applicable, returns their id and access level. This works fine, but now I'm at the point where I want to also create a cookie for another ColdFusion template (called from fileReference.upload()) to be able to access later. I have tried several different methods for creating the cookie -- cfcookie, creating a cookie with JavaScript inside the ColdFusion function, and creating the cookie with JavaScript with an external interface once the coldfusion function returns to the flex result handler. All of these have been tried with a plethora of options regarding expiration, path, and domain tags.

[Code]...

View 1 Replies

Flex :: Security - Blaze DS Not Passing OpenSSO Authentication Cookie?

Jun 15, 2010

I have a set of RESTful web services. These services are protected on a Glassfish server by OpenSSO. When I attempt to call the RESTful services directly from a browser, OpenSSO intercepts the request, then forwards the request to the REST service once the user's credentials are authenticated. OpenSSO utilizes a session cookie on subsequent requests (until the session is invalidated) . I'm sure this piece is working correctly.We'd like to call these services from a Flex client. In order to enable PUT and DELETE operations, we set up BlazeDS to proxy the RESTful requests from the flex client to the REST service. When security to the RESTful services is disabled, this piece works great.

Now we're trying to secure the entire application. We've placed the Flex SWF into a war and deploy to Glassfish. We've placed security around this resource and when a user attempts to download the SWF (through an HTML link in the war), OpenSSO intercepts the request, then forwards to the application on successful authorization (just like it does for the RESTful web services).The problem is - the RESTful calls made by the Flex application (via BlazeDS) are failing. OpenSSO seems to be intercepting these requests as well and again asking for the users credentials. It doesn't seem the authentication cookies are being passed to (or maybe by) the BlazeDS proxy.

View 1 Replies

Flex :: Air - Cookie - Storage - Remember A Simple Value Like Date When The App Was Last Opened

Feb 14, 2012

Does an AIR app built with Flex have something similar to a browser cookie? I want the app to remember a simple value, like date when the app was last opened. I'd rather not create a SQlite database just for this.

View 1 Replies

Flex :: Using E4x To Retrieve Xml From Flex Webservice Result Handler

Sep 2, 2009

I'm trying to use e4x to retrieve xml from the result event thrown when my Flex webservice is successful.

This is a snippet of the returned xml

<p430:getRoomsResponse xmlns:p430="http://impl.service.com">
<p430:getRoomReturn type="p888:Room" xmlns:p888="http://vo.room.com" xmlns="http://www.w3.org/2001/XMLSchema-instance"> <p888:roomName> ABC

[Code]....

The full xml contains approx 40 of these "ROOM" types containing roomname,size etc.

I want to create a collection containing a list of the 40 room objects based on the xml above.

How can I map the objects from my xml to an object using e4x?

The purpose is to display the objects in a datagrid

View 1 Replies

Php :: How To Retrieve Variable From Flex

Jul 12, 2011

an easy answer for 99% of you. I have a custom class 'Users()'. In PHP I have all the values being populated correctly. When I go to Flash Builder - and do the test function - All the data comes back properly. However, when I click a button and refer to the lastResult property of the CallResponder - it comes up NULL the first time, and then if the button is clicked a second time it will return the correct result. What step am I missing? I had the same problem with something simliar last night and am getting BEYOND frustrated - especially since I know it is some SMALL detail I'm overlooking.So just for clarification - lets say there is a button named button1So button1's click handler:1) Validates the text input properties2) Asks the server if that user and password match3) If they do - then I want it to grab all of that specific users info and put it into a User class. Again - when I test this function/method from within Flash Builder all the values come back as they should. It's just on the first button click they come back NULL...he second click they populate fine - I.E.-

Alert.show(currentUser.userFirstName); (First Click - NULL)
Alert.show(currentUser.userFirstName); (Second click - "Jack")

View 1 Replies

Flex :: Retrieve Information From Sql Database

Sep 30, 2009

I use flex and php to retrieve information from my sql database. What i have been doing is formatting the result from the database query into xml and then putting the result into an arraycollection. It all works fine except one of my database fields contains a lot of text that website users enter and as xml doesn't like tags like <> so I leave it un formatted but I would like to format it. Would I be better using flashvars or text than xml? Or is there another way?

View 3 Replies

Flex :: Retrieve Flashvar From It Using Mxml?

Nov 24, 2009

Is it possible to retrieve flashvar parameter in mxml code and if so how? Up to now i have been using Application.application.parameter.name to get what i need.

View 2 Replies

Flex :: Retrieve The Variable Which Getting Through UrlRequest

Feb 16, 2010

I am sending userID through urlRequest like below code,

[Code]...

now when new window is opening in that new swf is opening(new project) that is also in flex only.there i need to retrive userID when initailizing only how can i retrive?

View 2 Replies

Flex :: Retrieve CSV Data From A Web Server?

May 18, 2010

I am trying to retrieve a stock quote from Yahoo! finance using Flex. I currently have it set so that it will pull the quote like I want, but it opens it in a new file. However, I want to store the CSV data in a variable so that I can use it in my program.

How do I do this?

Here is the code that I am using right now:

navigateToURL(new URLRequest("http://download.finance.yahoo.com/d/quotes.csv?s=aapl&f=l1"),"_self");

View 3 Replies

FLEX :: Can't Retrieve XML From Event.result

Nov 20, 2010

I'm trying to feed data from SQL database to FLEX, using php script in the middle. I see the data in body of message in the Network Monitor and in "Variable" window during debug, but i cant retrieve them to XML.

Below (event.message.toString())

(mx.messaging.messages::AcknowledgeMessage)#0
body = "<?xml version="1.0" encoding="UTF-8"?>
<articles>
<node><id>2</id>

[Code]....

View 4 Replies

Flex :: Osx - Cannot Retrieve The Browser URL For Mac OS Users

Jul 20, 2011

I'm developing a very simple flex application on Windows 7 64 Bits.It retrieves the user url and then show it:

public var bm:IBrowserManager;
protected function button1_clickHandler(event:MouseEvent):void{
bm= BrowserManager.getInstance();
bm.init();
Alert.show("Your URL is : " + bm.url);
}

On my Windows 64 Bits machine (Chrome, FF), it works fine and returns the URL.But, when I run my project on a Mac OS X machine (Safari, Chrome, FF) : it shows:

Alert.show(Your URL is : Null);

I think that it cannot retrieve the browser instance or cannot init the browser manager.

View 1 Replies

Media Server :: How To Retrieve Fms Bandwidth Into Flex

Apr 7, 2010

How to retrieve fms bandwidth into flex?

View 2 Replies

Flex :: Retrieve Swf Metadata Within Actionscript Of Project?

Sep 14, 2009

I know that it is possible to add swf metadata to the compile command as a command option, but I can't find any documentation on how to access these metadata within the actionscript during runtime. We're trying to add a version number to the swf during compile time and then somewhere in our app we would retrieve it during runtime, here is the command example to add the description metadata.

mxmlc -description "version 1.2.3"

I know the swf metadata is used by search engines and other utilities to gather information about the SWF file, but surely you should be able to retrieve them in the actionscript during runtime?

View 1 Replies

Flex :: Retrieve Body Of A HTTP 403 With Flash?

Dec 15, 2009

I've got a simple YouTube API client put together, written in Flex, that uses a plain ol' URLRequest object to handle Google's "ClientLogin" authentication scheme. Everything works perfectly, except for one case: when Google responds with a 403 and a response body indicating that I should prompt the user for additional information (specifically, a CAPTCHA request).

The problem I'm having is that in this case, I need to be able to retrieve the body of the 403 response, as the body contains information Google expects me to use to assemble the CAPTCHA (e.g., an image URL, etc.). It looks like Flash fails to populate the URLLoader's data property when it encounters a 403 (which is where the response body would normally show up), so I can't tell the difference between a "403: Login Failed" and a "403: Login Succeeded, but We Want a CAPTCHA".

As a backup, I figured I'd have a look at as3crypto's TLSSocket code, but I haven't been able to make any of that stuff work with Google (or even one of my own SSL certs, for that matter).

Is it possible to access the body ofa 403 response with Flash (and if so, how)? And if not,Does anyone have personal experience with a suitable workaround?

View 1 Replies

Flex :: Retrieve The Sum Of Items From A Sharepoint List?

Aug 26, 2010

Is there any way to get the sum of items based on some filters from sharepoint list? I was trying to access the GetListItems method. But this returns all the items in the list. That makes the data heavy. My requirement is to get only the sum of items. For example items created in a specific year.I am trying to populate a chart in flex from the sharepoint list. Accessing all the items and then calculating the sum in flex will not work always where the list contains more items.

View 1 Replies

Java :: Retrieve A Client's Hostname Using Flex?

Nov 3, 2010

I am building a Flex application which communicates with a Java server using BlazeDS.

What would be the best way to go about making the server aware of the client's hostname?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved