If you have access to Javascript, you can set the cookies like this.
ExternalInterface.call("function() { document.cookie = 'foo=bar;
expires=Mon, 15 Nov 2010 23:59:59 UTC; path=/'; }()");
navigateToURL(new URLRequest("somepage.php"));
Then in somepage, your data will be available in $_COOKIE;
I was trying a lot, but not knowing the correct English phrase (I am Dutch
:-)) to look for, I failed.
Recursion was the big helper here.
And no, the 10 minutes were not wasted!
You did a good deed!
THANK YOU!
regards,
Cor
-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.c
On 13/11/2010 16:44, Cor wrote:
OK, I think I figured it out.
function findIndex (psdArray:Array, psdButton:Object, psdLevel:uint):void {
for (var i:uint=0; i< psdArray[psdLevel].length; ++i){
var curBtn:uint = psdArray.indexOf(psdButton);
if(curBtn == -
On 13/11/2010 16:24, Cor wrote:
Thanks Paul,
Yes, but how would I "dive" through in depth arrays?
var nestedArrays:Array=[ 0, 1, 2, 3, [4,5,[7,8,[9,10],11]], 12];
arrayDescender(nestedArrays);
function arrayDescender(pArr:Array, pDepth:uint=0):void {
for (var i:uint=0; i< pArr.length; i
OK, I think I figured it out.
function findIndex (psdArray:Array, psdButton:Object, psdLevel:uint):void {
for (var i:uint=0; i< psdArray[psdLevel].length; ++i){
var curBtn:uint = psdArray.indexOf(psdButton);
if(curBtn == -1){
++psdLevel;
Thanks Paul,
Yes, but how would I "dive" through in depth arrays?
Regards
Cor
-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Paul Andrews
Sent: zaterdag 13 november 2010 17:14
To: Flash Coders List
Subj
On 13/11/2010 15:17, Cor wrote:
I am trying to create a menu with 5 levels deep submenus.
Sounds like a UI nightmare for the user.
My best guess is to do this with an array with a bunch of arrays in it,
which also contain arrays, etc.
And now I have to iterate through all the levels of the arra
Alexander Farber skriver:
My problem is, that I can't find the way to set HTTP cookies
through the navigateToURL() method. Please advise me
Normally it would be the same as any other http header, it's part of the
URLRequest class.
However, the cookie related headers are on the blacklist. Ado
I am trying to create a menu with 5 levels deep submenus.
My best guess is to do this with an array with a bunch of arrays in it,
which also contain arrays, etc.
And now I have to iterate through all the levels of the arrays.
So I need some example how to iterate regards the amount of arrays and i
Hello,
I have a small multiplayer Flash game in which you can
display a player profile by clicking at his or her avatar:
const PROFILE_URL:String = 'http://myserver/user.php?id=';
try {
navigateToURL(new URLRequest(PROFILE_URL+id), '_blank');
} catch(e:Error) {
}
This works well, but now I'd l
10 matches
Mail list logo