473,396 Members | 1,608 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,396 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 1551
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.