Solved

Flash 8 session to php

Posted on 2006-11-02
1
208 Views
Last Modified: 2012-05-05
URGENT
within my flash object i have buttons to change the language which is used for the site

how do i get my button to alter the php's current session variable $session['lang'];

Thanks in advance
0
Comment
Question by:Robinsonx6
1 Comment
 
LVL 11

Accepted Solution

by:
ch2 earned 500 total points
ID: 17857333
To pass the session to flash 8, i'd use FlashVars:

            <param name="FlashVars" value="lang=$session['lang']">
            <embed FlashVars="lang=$session['lang']"</embed>

From here in Flash 8 you have set the variable _root.lang

To pass it to php use the next script in your button:

getURL('yourfile.php','_SELF','GET');

From here in php you have $_GET['lang']

in your php write something like this;

$session['lang'] = isset($_GET['lang']) ? $_GET['lang'] : $session['lang'];
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now