Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    PHP




Flash MX And PHP Links


I have a website with a link to a .php page with my images on it. I would like to create a link inside a button within flashMX to link to that php page. This is what i have inside the actions for the button:

on (release) {
getURL("http://www.connorslack.ca/gallery/albums.php", "_self");
stopAllSounds();
}
But because there is a.php instead of a .com i dont think it is working.




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Passing Variable From Flash To Php & Back From Php To Flash
I am looking for some help in passing variable from flash to php & back from php to flash.

How To Count Links To External Links?
I get results of the query diplayed on my find.php page with links to different web sites. I want to store count of clicks on each of those links that are displayed on my find.php page. How can I do that?

Active Persistent Links And Active Links Both 0
I just installed Apache/MySQL/PHP

I'm trying to test if the connection to MySQL is there

I know the database works on its own, I checked that

when I run phpinfo() I get mysql listed, I'm just wondering if when it says "Active Persistent Links" and "Active Links" both 0 (zero) under "enabled" column, is that fine, meaning configured properly?

Php And Flash
How to send a simple variable like a result from a query to Flash?

Php And Flash
I'm just getting my feet wet with PHP. I'm trying to load variables from cookies that are connected to a MySql database. I have a php login script already and am trying to create a flash interface for it. I can't seem to get the variables to load into flash from the cookie that is in the top of the html page. If anyone knows the process I would be totally in your debt.

Flash, PHP & XML
Is anyone out there doing anything in terms of parsing in XML into Flash using PHP as a go between so to speak? I have done some stuff parsing XML directly into Flash but I ntoiced a huge speed hit.

Anyways, I was wondering if anyone has done anything or has seen a way to parse XML into Flash via PHP.

Flash And PHP
Can Flash tack over a variable (string, array, a object, ...) from a PHP - Script? When yes, such as.

Php And Flash
Is there any good resources (tutorials) out there that topic php scripting into a flash presentation with actionscripting? Any advice would be apreciated as I only found one site so far and it didn't take up to much about the subject.

Php/flash
I have a text field (multiline) in Flash. When I click "submit" it hits a PHP script. The PHP file sends the message in the text field to an email address. My problem is that when i receive the email, the message is joined together, not recognizing the line breaks that were made on the Flash end. Does the variable of the text field need to be manipulated before it gets posted to the php file?

Re:FLASH MX
I presume PHP sience you are in
the php forum?

PHP Flash
I am connecting PHP & Flash..

$var = $this->_nm->getVar(); <-- Get data from database
$var1 = gettype($var);
if (is_string($var1))
{
echo "s=".$var1;
}

If i print in the browser, it will return s=string, however if i
LoadVars in flash it will return s=NULL

Flash And PHP 4.3.1
I've been developing a project in Flash 5 that utilises both PHP and MySQL. The development and testing was done on a PHP server running version 4.1.2 (pretty old I know) and everything was working perfectly. However, upon upgrading to the latest version of PHP 4.3.1, it appears that my Flash application no longer communicates with the PHP files.

Is there some new security measures that were introduced in PHP 4.3.1 that could be clashing with how the Flash file operates? Has anyone else experienced similar problems?

FLASH MX
I NEED HELP WITH FLASH, THIS IS THE SITE THAT I AM WORKING ON

Php, Xml And Flash
i have a video with captioning. video is a flash file and captioning is in XML file
they are working really fine. now what the problem is:: I am getting the path of xml file through php as well as video(flv) file path through php.

the video works well but the xml file path which i got through php( from database) is not working. the captioning part (xml file) is not working now only the video is displayed... could anyone please help me to get out this situation..is the problem with php and xml or php,xml and flash.

Flash And PHP
Just wondering if it was possible to use a whole flash site, but have php inserts for like news and roster and such.

Flash And PHP
I'm looking to create a very small .swf which displays how many posts/topics/members there are in my forum - but Im looking for it to update in real time.  So as posts are made on the forum, if someone is viewing the homepage they see the number update 'live'

I'm wondering if anyone can tell if this is hard to do?  I'm fine with PHP and am just starting to learn flash, but so far only have done minor animation.

Would it work by embedding a PHP script in the flash to run a query on the db to count the posts, then echo it in the flash.  But how would I get it to update live?

PHP And Flash 8
This is a very weird problem having to do with security settings.

I'm trying to access a php file, stored on a server on my computer, from a .swf file embedded in a webpage, but when it only works when you open the .swf file with flash 8. When you use the .swf file in a browser it comes up with this security thing and it wants you to change the security settings here:
http://www.macromedia.com/support/d...manager04a.html

Then I change it to always allow then I add 'local' and 'localhost' but nothing happens This database accessing work 100% when using the program flash 8. Code:

PHP With Flash
I know this is not a flash forum, but I have tried about 3 flash forum and no one either seems to know the answer or they will not help me one; so I thought I would give my regular visited PHP forum a swing at this one.

I am trying to load images in Flash through PHP; but have no idea about action scripting. Has anyone every tried to do this; if so please advise me on how you accomplished this.

Flash
I dont really have a problem just enquiring, i have heard it is possible to do PHP in Macromedia Flash i was just wondering if anyone else knows about this because i have a college project and it needs to have PHP accessing databases, searching adding removing etc, and i really enjoy using Flash and i was wondering if it is possible

First PHP + Flash Project
Basically its going to be a chart of say 20 items that are ranked according to vote by registered users. So heres a few initial pointers i need help with to get the ball rolling:

1. The Flash page is loaded how do I initiate php script to search a mysql db to read a list of items containing the fields (id,name,votes,date_entered)

2. Would it be best to calculate ranking server side with script and then stream list to flash movie or calculate ranking via action-script.

3. When a user wishes to vote they enter their username and password in 2 text boxes (stored in another db) and then clicks on item to vote for..how would this data be sent to a script that would update the db accordingly.

4. After the database has been updated the flash movie needs to be then updated, am i better again doing this via another post to movie or with action-script?

These are initial thoughts and i'm sure there will be many more queries as I hopefully progress. I think alot of people will benefit from this project as there are not alot (or enough) tutorials on Flash interaction with db's via PHP.

Flash Sniffer
can anyone tell me how to sniff for a plug in, namely flash? i'd prefer a php3 solution.

How To Display Pdf Into Flash?
My colegue is trying to make a Multimedia presentation using flash.
But when anybody clicks on a pdf document, the acrobat reader
executable is executed from clients to open the pdf file.

What he wants is that rather than opening the document using
acroread.exe, the contents will be shown in a context area kept in the
navigator.

Can anybody suggest anything here. Is there any softsare to grab pdf
content and convert into flash?

Flash Detect
Can php load an image in place of a flash movie for users without the flash plugin?

PHP3 & Flash 4
Anyone know how to use PHP3 $variables in a flash4 movie?

Flash, PHP & LoadVariablesNum()
I am having problems getting variables/values INTO Flash from an
external source (PHP).
I'm NOT having problems getting loadVariablesNum() to _SEND_ variables
via POST, but I _AM_ having difficulty reading back into Flash local
variables.

Say, for instance, I have a Flash page that has a number of typein
fields. Each of the typeins has a variable associated with it.

In the action script section, I have something like this for a "Save"
button:

on(release) {
var result = "unset";
loadVariablesNum("foo.php", 0, "POST");

if (result == "ok")
{
getURL("bar.html");
}
}

Now, foo.php runs fine and is able to see all of the typein variables
in its HTTP_POST_VARS array and works properly and outputs:
result=ok

The locally scoped 'result' variable never gets changed.
If, however, I create a typein field and give it a variable called
'result' (and get rid of the local 'result' variable declaration in
the action section), the text typein field displays "ok" after
clicking on the "save" button.

What gives?
How does one declare/create variables in Flash that are locally (or
globally, I don't really care) scoped variables that are NOT UI
elements, but DO work for reading values back from an external source
(PHP, Python, txt file, ...)?

I've done some reading of the Flash documentation, and
loadVariablesNum() and loadVariables() sections are too terse and the
examples aren't very useful.

Furthermore, there seems to be an awful lot of WRONG information out
on the various websites and Q&A sites.

Html In Xml, Php & Flash
is there an official or a correct way for the following problem:

in my xml file, there is also html text. this xml file is used in flash and a php code.
the problem is, that - using simplexml in php - the html-tags are interpreted as xml-tags and it gets difficult to use the content. if i use &gt and &lt instead of < and or place the html-text in a CDATA, flash doesnt display the text as html and also returns errors. is it common at all, to place html into an xml-file?

a simple example of the xml-file:
----------------------------------
<?xml version=&#391;.0' encoding='utf-8'?
<website
<site title="Titel"
<text><p>lalala <b>tada</b<font color="#ff0000">dings
</font></pand a <a href="blabla.html" target="_blank"
link</a><img src="bild.jpg"/></text
</site
</website
----------------------------------

i already have some methods of resolution to solve the problem:
- modify the html tags in the php code, so simplexml does not recognize them as xml-tags
- replace/delete the &lt and &gt or cdata by string operator in flash
- code own php script to put the xml into a php array

the point is that i want to do it correctly, use a "clean" (and perhaps not pedestrian) way so i will not have any unconsidered problems afterwards. perhaps you could suggest how to do it best -

PHP- Variables --> Flash?
How can I send variables from PHP to flash? Sending variables from flash to PHP is not such a problem but the other way around is not working yet!

Php/flash Ascii
I have noticed that ASCII code value 34, the quote, show's up as little boxes in flash. Yet Ascii code value 147 shows up as a regular quote. Is the only way to ensure that the little boxes are not displayed is to do a regular expression match and convert all ascii code value 34 quotes to ascii code value 147 quotes?

Detecting Flash
I need a way to detect whether someone has flash installed. I will use this information to take them to two different pages depeding on the result.

Flash PHP Mysql And MP3
would like to create an appli to allow music makers to create an oline mp3/music gallery.
I was thinking of creating a flash player which takes the datas from a database. easy ... but would like users/members to create their own flash filed embeding mp3 music... how can I do that ? Do I need a special gallery (GD5 ?? ;-)

PHP And Flash MX Connectivity
Does anyone know how to connect PHP and Flash MX. I have tried the tutorials on the Web, but theya re not that good. All I know is LoadVars, but I don't know how to make it work. If you y'all would be so kind, please help me. Even just a simple working script with ONLY ONE php variable would be great. I just need to see how it is done even in the simplest manner, and I'll be able to pick it up from there. PHP Code:

Flash Snapshot ?
is it possible to get the first frame to JPEG etc if i upload a flash file
(swf)

Refreshing Flash....
I am trying to get started on a page which uses a short flash movie to
show status.

The flash movie itself is only a few seconds long - say 15 seconds.

What I want is something like this (alternative 1):

The browser sends a request for the page.

The php backend creates the first flash movie and sends it to the browser.

The browser plays the movie, and at the end, requests an update from the
server.

The server meantime has pre-generated the next flash and it is served up.

The server continues to pregenerate the flash movies until it doesn't
get a request for another one for some set period of time, say 60 seconds.

Alternative 2:

At the end of the flash movie, the browser loops the movie and at the
same time requests a new movie from the backend. When the movie is
generated it is served up to the browser, and the browser updates
automagically.

The goal:

I am playing a simple flash movie showing the status (position, etc) of
a machine. The only graphics tool I have available is flash, so I have
to make it fit. I need to update the status and the graphic every 15-30
seconds. (The interval is not critical.) What is important is that it
happens fairly transparently to the user.

Video -> Flash
There are some Mac tools to convert pretty much any given video source
to a Flash video file (.flv) but I'm wondering if there is any way to
do it using a Linux platform tying in to a PHP web system? I.e. I'd
like to have video files submitted by users which are then
auto-converted to .flv files.



Enable Flash
Basically I have mad a flash site, and on it a form which sends results via POST to a php form mail script. The issue here is I cannot get any variables accross to the php script.
Here are the codes, for two atempts (I have also posted similar in Dev Flash forums).
First action script: Code:

Flash Stronger Then PHP?
I have tried several times to make the flash website to communicate
with the PHP script i have on the server, but it does not work. It
should work in this way: when the fields on the forms are all "not
blank" send the mail. The PHP then should be in charge to send the
email to the destination address.

The files are:

PHP (server side):

<?php
// get the externl variables
$destMail = $_REQUEST["destMail"];
$senderName = $_REQUEST["senderName"];
$senderMail = $_REQUEST["snderMail"];
$senderSubject = $_REQUEST["senderSubject"];
$senderBody = $_REQUEST["senderBody"];
// add header info
$header = "From: $senderName <senderMail>r";
$header .= "Replay-To: $senderName <senderMail>r";
// invio della mail: destinatario, subject, coprpo della mail, header
mail($destMail, $senderSubject, $senderBody, $header);
?>

Passing Xml From Flash To Php ?
So Now I have the xml in flash and I need to pass it to php (to update aa database), but I'm having problems getting the xml into flash. Here is the simple flash code I'm using to test the code.

theDoc = new XML("<search>tesing</search>");
theDoc.contentType = "text/xml";
theDoc.send("http://localhost:8888/a/xmlTest.php", "_blank");

and in the php I'm simple tring to see if the php has turned up.

<?php print_r($_POST['theDoc']); ?>

The php page produces a html page wth an error message saying the xml is a undefined index.

Flash Conversion
Does anybody know how to convert other video formats to flash as they/after they are uploaded?

I saw something at a glance using these functions:

shell_exec();
exec();

The conversion code is written in those functions.

Php / Flash Register
Below is a simple register script to register a user through flash and php. It does not matter if the there is an error or not, the &myStatus variable always shows the first statement (username already in use) and if I remove that, the other &myStatus's are not picked up by flash :S

I have tried everything and if I create a user it should skip the "if" and go to the "else", which it does, and successfully creates it in the database, but it still picks up the mtStatus located in the "if" statement. Code:

Flash To PHP Forward To New Url
I'm trying to make a link from flash work.  It may sound weird because yeah GetURL..., but I have to follow the rule allowNetworking="internal" on the emmbed tag.  Inturn I can only use sendAndLoad from flash.  So what I want to do is have a link in flash call a php file using sendAndLoad.  I have that all working now here's the hard part. I need the php file to then take the url var I sent and go to that url.   

I have tried header(location...), meta refresh, javascripts and auto submit form none of these work from the flash peice, but all work when I go straight to the php file.   The problem occurs because all header info and html info have already been loaded.  Does anyone know of a different way to make the php file go to a new URL?

Flash Include ?
if i have a flash menu ... with a little animation, it is possible to include it in every page but just in the first page to play, not on every page where the guest enter to replay the flash ?

Mail Form From Flash
I am trying to pass variables from my flash input text fields to a php script and mail them. Simple enough but programming is not my expertise, and I can't get the mail to send. I know it is accessing the script because it returns the "thanks, your mail has been sent" variable back to my flash movie, but I receive no email.

<?
$ToEmail = "arunesuv@aol.com";
##$ToName = "Arune";
$ToSubject = "web site email";
$EmailBody = "Sent By: $name
Senders Email: $email
Senders Company: $company
Message Sent: $message
position: $position";
mail($ToName." <".$ToEmail.">",$ToSubject, $EmailBody, "From: ".$name." <".$email.">");
Print "_root.contact_mc.mail.EmailStatus=Thanks, your mail has been sent";
?>

Passing A Variable From PHP To Flash
How do I pass a variable from a PHP script that already contains
a Variable - to my flash movie ?

E.g.

$Access = True

Now when the Flash movie opens for the first time I want to read the content of $Access...if its true or false - to give user access to view the movie or not.

PHP To Alter Flash Movie
I'm not sure if I've posted in the right place, so feel free to let me know if I haven't.

I've a situation where I would like to modify values in a flash.exe using PHP where flash.exe is a flash movie which is download and runs on the client side.

The reason for this is, I've an online form where I want the values to be submitted to an app for users to download. Each time the user runs the app on their machine it should have the values that they submitted online. Is this possible?

Incorporating PHP/MySQL Into Flash?
I have been preparing for an upcoming project where a key part of the site is a dynamically driven scrolling area. For this I have been trying to use layers a la Thomas Brattli(my version) but sadly this falls down in NS6 on PC and IE5 & NS6 on the Mac so I'm looking for an alternative.

So far the only things I have come up with are copmplete make-over(something I really don't want to approach the client about) or the only other alternative I can see is have a flash section which can be dynamically updated via PHP from a MySQL database.

Unfortunately this is like nothing I have ever done before, infact I have barely touched Flash at all... So really what this post is really asking for advice or guidance into the realm of flash and php interaction.

I've had a look over the web but I haven't found any places where I can get any tutorials on this, anybody else found anything? Just an after thought are there any limitations or special 'modules' I would have to have installed on the server I get this site onto (if I go down this route?).

Saving Variables From Flash
I am currently setting up a flash site as a front end for a flat file database using .txt for the data storage as it is minimal. I have st up the flash to post the variables to the PHP file when an order is sent. I have used the following PHP to save the variables to a .txt file PHP Code:

Compile Flash Movie On-fly By PHP
How i can compile flash movie on-fly by PHP ?

Function Returns Nothing (instead Of Flash)
Hi there,

I have a site with just a few pages. (e.g. home.php)
In every page there is another page included with things
like the header etc.

The included file is in a subdirectory called "include".
There are two functions written in this included file:

================================================== =========================
function doImage($image)
{
list($width, $height, $type, $attr) = getimagesize($image);
echo "<img src=$image width="$width" height="$height">";
};

function doFlash($Movie,$Height,$Width)
{
echo "<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
height="$Height" width="$Width">
<param name="movie" value="$Movie">
<param name="quality" value="high">
<param name="allowscale" value="true">
<param name="SCALE" value="exactfit">
<param name="menu" value="false">
<param name="wmode" value="transparent">
<embed src="$Movie" width="$Width" height="$Height"
menu="false" wmode="transparent" allowscale="true"
scale="exactfit" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash"></embed>
</object>";
};
================================================== =========================

I call the functions from pages in the root directory, pages like
home.php...

When i call doImage("img/logo.gif"); it works well, but when i
call doFlash("swf/logo.swf","100px","100px"); It returns everything
before
the <html> tag starts, so it isn't in the right place either. When i
change
the "echo"-statement of doFlash() to "return" nothing happens and it
disappears in the source (online)

What am i doing wrong?

How To Check For Flash Plugin ?
I would like to check for the existance of a flash plugin using PHP instead of JavaScript. Any ideas ?


Copyright © 2005-08 www.BigResource.com, All rights reserved