473,226 Members | 1,625 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,226 software developers and data experts.

php vars to flash

anfetienne
424 256MB
how can i post my $random_digit var to flash so that it can be used within flash actionscript?
Mar 10 '09 #1
6 1542
TheServant
1,168 Expert 1GB
Don't really use flash so can't help, but PHP can only output text, so you would need something like:
Expand|Select|Wrap|Line Numbers
  1. [flash]"random_var = <?php echo( $random_digit ); ?> "[/flash]
Mar 11 '09 #2
Markus
6,050 Expert 4TB
@TheServant
You're correct, but PHP is not run within flash. You have to pass the variable to the SWF file though flashvars - or something like. Flash is great :D Try it out.
Mar 11 '09 #3
anfetienne
424 256MB
lol i know php is not run in flash.....i know how to get my flash variables to php.....ive made plenty of contact forms, my fav being one that sends a receipt of what was entered into the form to the user.

but going from php to flash is harder than flash to php and as I am a newbie at programming php outside of contact forms and mysql databases i wouldn't know where to start lol

i appreciate all your help guys......thanks
Mar 11 '09 #4
Markus
6,050 Expert 4TB
So, as a conclusion (so I don't have to merge the thread from the flash forum - yawn):
PHP will not directly interact with flash, nor can it be used within flash. You can however output from PHP into a variable, be it <param>, etc., and have flash read that.
Thread on how to pass the vars here.
Mar 11 '09 #5
TheServant
1,168 Expert 1GB
lol, I was thinking that, but wan't sure cos I never use it... It is next on my list once I have OOP done ;)
Mar 11 '09 #6
Markus
6,050 Expert 4TB
@TheServant
It's a long and dubious road, OOP. I'd say I'm about 3/4 way to understanding it and being able to use it consistently. That's enough off-topic for now :D
Mar 11 '09 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Drisco | last post by:
Hello, I realy need help,Searched the NG for a days with no vail. Sorry for the long script. I am trying to get a variable from php to flash. I have the following code in php <a...
3
by: jitu78 | last post by:
Hi, I want to pass some variable into flash on runtime. See this link, http://www.globtier.com/portfolio/in...?cat=webdesign If somebody clicks on any of project there, it should be...
2
by: xeo | last post by:
hey. am starting this really new web... its gonna be my very 1st ever since i always used to do it with flash but the thing is i need to learn how 2 design on dreamweaver (still websites) so lets...
8
by: Binx | last post by:
Please help! Does anyone know how to set up radio buttons to send their info from flash to a PHP script that will email me the results? I have been trying to get this thing to work for weeks, and...
2
by: Head In A Pan | last post by:
Hello! Here is something I assume is relatively simple but have never bothered to find out - I'm not finding the answer anywhere! All I am trying to do is this: Have a thumbnail image...
6
by: Ws | last post by:
Ok, so I have a question reguarding compilers and placing strings into the .rdata section of the PE. I was working on a program and couldn't figure out why I was getting a 0xc0000005 error...
1
by: Ronm | last post by:
Hey Guys, I have a problem which has been driving me crazy for the last days. I'm working on a small project involving: Visual Basic Acces Database ASP and adobe/macromedia Flash,
3
by: jiwas78 | last post by:
Hey there guys, After some research into PHP and Actionscript, I think I have come close to doing what I want to do. Except now I'm stuck. Here is what I have in my header.php file: <?php...
9
anfetienne
by: anfetienne | last post by:
Hi, How can i pass a random digit that is created using a php var into flash so i can use it in AS. Once its in AS what would i write so that the digit is show in flash?
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.