Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 28th, 2003, 10:16 AM
frederico frederico is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 4 frederico User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Passing PHP vars to flash

Hello All,

I need to pass securely some PHP session variables to a Flash movie.
Does anybody know how to achieve this ??

(PS. I don't want to insert any code in the object tag or any extra code in the url)

thx

Reply With Quote
  #2  
Old August 28th, 2003, 03:05 PM
Cyanide Cyanide is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 17 Cyanide User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 17 sec
Reputation Power: 0
Use PHP's urlencode() function. For example.

<?php

$myVariable = "this is some text to load into flash";

echo "myVar=" . urlencode($myVariable);

?>

This will output something like:

myVar=this+is+some+text+to+load+into+flash


Then you load that php script into Flash using loadVariables or LoadVars if you have FlashMX. Then call the variable myVar in Flash.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Passing PHP vars to flash


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway