How To: Send Header File For Flash Object - .SWF File
I've sent image files from my PHP following a header like: header( "Content-type: image/gif");
Does anyone know the header for passing through a Flash .WSF movie object?
Thanks
gsb
FlashKit > Flash Help > Flash General Help
Posted on: 04-27-2003, 04:02 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Add Flash File As Header For Webpage
Hi,
Here is how my webpage is set up. I have a HTML table with two rows; top row is the Header, and second row is for the 'contents."
I currently have a webpage with a 'static' header; simply, just an image. Now I created a really simple Flash.swf file that look just like the static header, with the exception of added animations and buttons. I am new, btw, so I don't know how to insert this .swf file into my HTML webpage and make the Flash work.
Also, I mentioned I added Flash button to the header, how do I code it so when I click on the button, a HTML page will open right underneath the Flash.
Please advise.
Thank you.
Joe
How To Embed A Flash File Into Header.
this is the site that I'm working on.
I can't get the flash file to show up in the banner section. I really don't know anything about embedding flash files. I tried to use the WYSIWYG editor in Dreamweaver but I guess I'm missing something.
Here is the code that I have for that part of the area. What do you think?
EDIT: i saw that it was missing a directory path in the url. it's done now.
Adding Code In Header Tag Of Flash File.
Hello.
My web site starts off in a swf file.
www.imaginationcreations.com
In internet explorer, when i click view source it shows me some html, just the title and the meta tags.
I'd like to edit and add code the that html source, though keeping it a flash file....
How can i do this?
Send Variable From A Swf File To Another Swf File In Iframe
hey there!
i have a problem. i can send a variable to between different frames or iframes but i cant send a variable from swf file( in main page ) to swf file (in iframe)... what shall i do?
sorry for my english. i hope u can understand my problem...thanks...
How Do I Send Data From Flash To A .txt File?
Can anyone tell me how to send text (in this case an email address) from a text field (with a button action) from flash to a .txt file on the server?
Any help is appreciated, thanks in advance.
SS
Send String To Different Flash File.
Hello all,
I have a page with two flash files, when I click on a button in one file (file A) a dynamic text in the other file (file B) should change it's text.
The text in B has 'lHeader' set as variable.
When doing this within file B itself '_level0.lHeader = "Bla"' changes the text to 'Bla'.
Is it possible to this from file A?
Thanks!
Note: The flash files are on the same page. File A is called 'flashMenu.swf' and file B is called 'flashHeader.swf'. They are in the same directory.
Send Text File To Flash Thru PHP
Hello, I read over the old post by Jubber, about sending variables from Flash -> PHP -> Flash but I can't seem to get it right. I have a series of input boxes which take values and then send it to a PHP script. The PHP script compiles the values and writes a .CKT file. Then I am trying to read this file into a string and send it back to Flash into a dynamic text field named "retVar". When I test the .swf, the dynamic text field is just always left blank. Any help would be greatly appreciated. Here is my code...
flash code...
submit_btn.onRelease = function( )
{
var loginVars:LoadVars = new LoadVars();
loginVars.c1 = parseInt( c1.text );
loginVars.c2 = parseInt( c2.text );
loginVars.c3 = parseInt( c3.text );
loginVars.l1 = parseInt( l1.text );
loginVars.l2 = parseInt( l2.text );
loginVars.l3 = parseInt( l3.text );
loginVars.r1 = parseInt( r1.text );
loginVars.r2 = parseInt( r2.text );
loginVars.r3 = parseInt( r3.text );
loginVars.sendAndLoad( "triple_rlc.php", loginVars, "POST" );
};
php code...
PHP Code:
PHP Code:
<?php
//File being written to
$filename = "triple_rlc_result.CKT";
//Footer file to place at end of file
$footer = "footer.txt";
//Simultation file
$simul = "simul.txt";
//Path to Micro cap
$mcpath = "../";
//Get capacitors
$c1 = $_POST['c1'];
$c2 = $_POST['c2'];
$c3 = $_POST['c3'];
//Get Inductors
$l1 = $_POST['l1'];
$l2 = $_POST['l2'];
$l3 = $_POST['l3'];
//Get Resistors
$r1 = $_POST['r1'];
$r2 = $_POST['r2'];
$r3 = $_POST['r3'];
//Open file
$fi = fopen( $filename, 'w' ) or die( "Unable to open file." );
//Write title
$string = "*Writing to the filename, " . $filename . "
";
fwrite( $fi, $string );
//Write capacitors
$string = "C1 5 0 " . $c1 . "P
";
fwrite( $fi, $string );
$string = "C2 6 0 " . $c2 . "P
";
fwrite( $fi, $string );
$string = "C3 7 0 " . $c3 . "P
";
fwrite( $fi, $string );
//Write Inductors
$string = "L1 2 5 " . $l1 . "N
";
fwrite( $fi, $string );
$string = "L2 3 6 " . $l2 . "N
";
fwrite( $fi, $string );
$string = "L3 4 7 " . $l3 . "N
";
fwrite( $fi, $string );
//Write Resistors
$string = "R1 1 0 1M
";
fwrite( $fi, $string );
$string = "R2 1 2 " . $r1 . "
";
fwrite( $fi, $string );
$string = "R3 1 3 " . $r2 . "
";
fwrite( $fi, $string );
$string = "R4 1 4 " . $r3 . "
";
fwrite( $fi, $string );
//Write finished
$string = "*Variables finished writing
";
fwrite( $fi, $string );
//Open footer
$fa = fopen( $footer, 'r' ) or die( "Unable to open footer file." );
$contents = fread( $fa, filesize( $footer ) );
//Write footer
fwrite( $fi, $contents );
//Close footer
fclose( $fa );
//Close file
fclose( $fi );
//Read entire output file
$return = fopen( $filename, 'r' ) or die( "Unable to open return file." );
//Return outputfile to dynamic text box.
print "retVar=" . $return;
?>
I'm sorta new to send vars back and forth, but I have been working with PHP and Flash off and on for 4-5 years now. Thanks ahead of time.
Send Text File With Flash
I have a Flash app that generates a formatted file, that I want to save/send this file some where, and then using the PHP's shell_exec command to open a program and send it the formatted file. Finally, I want to take the $output from the command and send it back to Flash 8. How do I go about sending the file to PHP and send it to the program through the shell_exec? Thanks for any help.
I Have This Problem For Days: Flash 5/MX. Please Help Me. I Send File.
Hello,
i created a code for elastic zoom. It works fine in Flash 5 but it works bad in Flash MX. If u preview it in Flash MX u can notest when the mouse is on MC1 both MC's zoom and not only MC1. What is wrong?
Thanks,
Miguel
This is my code. I also send file.
Frame 1:
Movieclip.prototype.elasticScale = function(targetMC, accel, convert) {
xScale = xScale * accel + (targetMC - this._xscale) * convert
yScale = yScale * accel + (targetMC - this._yscale) * convert
this._xscale += xScale
this._yscale += yScale
}
MC:
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
elasticScale(150, 0.9, 0.1)
} else {
elasticScale(100, 0.9, 0.1)
}
}
Send Flash Variables To A Php File On A Different Domain.
I have been at this for two weeks now. I am trying to send two variables from a flash file located on newgrounds.com, kongregate.com, armorgames.com or any other site like that to a php file on my site pogolama.com.
I have read through most of the adobe manuals for security and still have no Idea how to use those features, that's why there are so many variations of them in my code.
I can not figure out why my php file will not get the variables I am sending it. In the following code I simplified all of my php code for testing purposes and I still cant even echo the variables that are supposed to be sent.
I am using a virtual dedicated server on godaddy.com also I tried it on their free web hosting and their cheapest hosting plan. I have the crossdomain.xml file uploaded to pogolama.com/public_html/crossdomain.xml and have tried uploading it to pogolama.com/crossdomain.xml.
Im not sure what else to say except, someone please help.
Action Script 2.0
Code:
varsToSend = new LoadVars();
varsToSend.player_name = player_name;
varsToSend.player_score = running_time;
varsToSend.send("http://www.pogolama.com/view.php", "POST");
import flash.system.Security;
import flash.system.* ;
System.security.allowDomain("www.pogolama.com");
System.security.allowDomain("pogolama.com");
System.security.allowDomain("*");
System.security.loadPolicyFile("pogolama.com/public_html/file.xml")
System.security.loadPolicyFile("http://www.pogolama.com/public_html/file.xml");
PHP
PHP Code:
<?php
$player_name = $_GET[player_name]; /* I have one set to GET and on to POST just to test if that is the problem. */
$player_score = $_POST[player_score];
echo $player_name;
echo $player_score;
?>
Crossdomain.xml
Code:
<?xml version="1.0"?>
<cross-domain-policy>
<allow-access-from domain="*" />
<allow-access-from domain="www.kongregate.com" />
<allow-access-from domain="*.kongregate.com" />
<allow-access-from domain="www.kongregate.com/*" />
<allow-access-from domain="www.pogolama.com" />
<allow-access-from domain="*.pogolama.com" />
<allow-access-from domain="www.pogolama.com/*" />
</cross-domain-policy>
Send Text From Web Page To Flash File
Banging my head against a wall with this one...
Trying to put some hidden text at the top of an ASP page (can even be JavaScript) that will fill in a few dynamic text fields in a flash file.
Would just use a .txt file but each page needs to have different text using the same flash file.
Have trailed the net all afternoon looking for the answer, found a few tutorials but my asp/javascript/actionscript understanding is so rubbish, can't even begin adapt anything to work:
http://www.asp101.com/articles/flash/
http://www.kirupa.com/forum/showthread.php?t=195460
http://www.smartwebby.com/flash/exte...ta.asp#asp_php
Any help on this one would be greatly appreciated
Attach File Send Email From Flash
Hi,
Anyone know of a way to create a browse button like the html form? I want to build an interface that allows users to attach a resume within flash then send an email using php.
I already know how to do all the standard stuff from flash to php including sending an attached file, but never encountered having to attach a file through a flash frontend.
Is it even possible?
Thanks,
Howie
Send Flash Variables To A Php File On A Different Domain.
I have been at this for two weeks now. I am trying to send two variables from a flash file located on newgrounds.com, kongregate.com, armorgames.com or any other site like that to a php file on my site pogolama.com.
I have read through most of the adobe manuals for security and still have no Idea how to use those features, that's why there are so many variations of them in my code.
I can not figure out why my php file will not get the variables I am sending it. In the following code I simplified all of my php code for testing purposes and I still cant even echo the variables that are supposed to be sent.
I am using a virtual dedicated server on godaddy.com also I tried it on their free web hosting and their cheapest hosting plan. I have the crossdomain.xml file uploaded to pogolama.com/public_html/crossdomain.xml and have tried uploading it to pogolama.com/crossdomain.xml.
Im not sure what else to say except, someone please help. :)
Action Script 2.0
varsToSend = new LoadVars();
varsToSend.player_name = player_name;
varsToSend.player_score = running_time;
varsToSend.send("
Send Email Address Through Flash File Using PHP
Sir,
I want to send my Email address and some other information like name ,comments in a flash file using php and want to get these information at my desire email address.
please give me solution deeply bcoz i am begginer in flash.
Send From Flash File To Flash File
Ok,
I am creating a website which must use flash MX and no extra code, except things that I could do to the web pages html (so no php etc).
I have 3 frames with flash movies in 2 of them and, when the user clicks on a button in one movie in one frame, I need to load a web page into both of the other frames, how do I do this?
It would also help greatly if I could send a variable to another flash movie (or load an swf file into it) from the first movie when I click the button.
Thanks for any help,
How To Send Flash Quiz Score To A Text File Thru Php
Hello, someone probably answered this kind of questions before, but having little knowledge of php really makes it hard to figure out the right solution So here's my question:
I created a simple 10 question quiz, the player gets a final score at the end. The quiz will be hosted on a website (which already has php installed and working), it would be real nice if the scores can be written to a text file. I've tried every example I could possibly find on the web, and no luck. I don't want to send the data back to Flash, I only want to send the Flash scores to a text file on the remote server.
How can this be done?
Thanks!
Problem W/ Sound Object File Loading Into A Holder File
Hi all,
I have a 4 mb file that I am loading into a main holder file. I am using loadmovienum to do this. In the 4mb file that i am loading in, i am using a sound object to control and play my audio.
Problem: when i publish the holder file, the 4 mb file loads just fine, but the audio doesn't play.
What Gives?
SWF Header File Size Field
Hi All,
Is it possible to send an SWF file without the exact value of its uncompressed size in the header?
I want to dynamically change SWF files and I don't always know their final size when I'm starting to send them...
Thanks in advance,
Yeeeev
How To Send Variables From Html Through Flash And Final Destination File ?
How to send variables from html through flash and final destination file ?
From html. the flash file called as "flash.swf?ID=ok"
1. call flash file as "flash.swf?ID=ok" from html file.
2. get the value of "ID" in flash.swf file. and open new.php file through button getURL("new.php","targetframe");
3. Show the "ID=ok" on new.php file as ID=<?echo $ID ;?>.
How can I get "ID=ok" on new.php file ?
Sorry. I'm Newbie
How Can I Send Data To A Flash File (swf), By Clicking On A Html Link?
How can I send data to a Flash file (swf), by clicking on a html link?
(my english is bad)
I have a little Flash movie, inside my html document / homepage.
If I click on a link outside the Flash movie(SWF-file). I want to send data/command to the Flash file.
(exemple: change a variable in Flash)
Example (html-link):
A H R E F="j a v a s c r i p t : sendDataToFlash('action')"
thanks :-)
Automatic Update In Flash File(.swf File) When There Is Any Change In A .txt File
i have a site(intra) in my college for displaying notices.the clerk is completely ignorant of flash.he knows how to type the text in notepad.so whenever he changes the .txt file it should get updated in the flashfile automatically.
so anybody please help me in solving this problem..
kiran
[Edited by kiranwizz on 04-16-2002 at 05:25 PM]
Loading Text From .asp File Into Flash Object
Hello --
Thanks for taking the time to read this.
I want have a small flash object that is embedded on my .asp page. That flash object is going to contain text fields that call external .txt files to get their content (only a couple of sentences per text field -- very small).
Here's the catch -- I would rather have those sentences hidden somewhere on the same .asp file where my flash object is, rather than in separate .txt files. That way when a search engine searches the .asp file, it will read the content that is going to be loaded into my flash object. Otherwise, I don't think it will associate the content with my .asp page -- it will associate it with the .txt files. Does that make sense?
Anyway, thanks for your time and help. It is greatly appreciated.
-Brig.
Send A File
Hi
How could I send a jpg or pdf attached to a friend using flash form? (using php....?)
Please help me!!!!!!
Send XML To A New File
I have a project where I have to gather some user input and save it to a file for later use. I was thinking I could format the data as XML and send it to a folder on the server as a new .xml file to be read later. Is it possible to do this directly from the actionscript, or would I need an intermediate php script—something like FormMail, but writing a file rather than sending an email. Thanks.
Defining An Object In A Text File, Then Reading From Flash. Possible?
Hi,
I'm loading a text file to retrieve some values.
Text file:
Code:
l1={image:"images/0.jpg",link:"http://www.website.com"};
Flash:
Code:
getVars = new LoadVars();
getVars.load("vars.txt");
getVars.onLoad = function() {
trace(this.l1.image);
}
When the trace runs I get "undefined". I can trace this.l1 and I get the entire value: {image:images/0.jpg,link:http://www.website.com};
I'm sure Flash is bringing this value in as one big string. Is there another way to hit this directly? I suppose I could create another variable and use the whole string value to create a new Object() inside Flash.
If this is the case then text files are very limiting. Thanks.
HTTP-request From Script File To Flash Object
Hello Flash Forums,
Sorry if this is far out, I'm far from being anything like a Flash-wizard ...
I'm trying to build a small file uploads solution where a Flash movie embedded in an HTML-page communicates with a server-side post processing script file. I can get this working all right.
But I would like to be able to allow the server-side script to send an HTTP-request back to the browser. But since it is the Flash object which talks to the script, not the browser, an HTTP request from the script will be sent back to the Flash object, not to the browser.
Can I get a Flash object to listen for and take action (= load a page in the browser) on incoming requests - or is this impossible?
Thanks for any pointers - Nikolaj
Count +1 And Send To File
Hey, I need to know how to tell the movie to set a variable with a value of 1 and then send it to an url.
The second part I have already done, Im just not sure about the first part.
I've written a small php script that writes the variables to a text file and will eventually be able to calculate a total.
Send Varibles To Asp File
i have 3 pages movie and every page has one varible, i want to give varible to asp file, but main thin is that , when a person is seeng my movie and when he is on 2nd page , he close browser , and i want to get two pages varibles in asp file without clicking any button, is it possibleee,
pleaseeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee eeeeeeeee
SEND Variables Value To A Txt File
HEEEELP!!!!
I can read the txt file, but now I want to update that file.
I´m using:
Code:
on (release) {
loadvariables ("file.txt", "POST");
area=med;
}
But the file still the same. No update...
I really need this, please help me!
thx!
[]´s
Send File Through Mail?
Hi! I have a slight "problem" and need your help!
I have a little flash form that sends data through mail. But I wanted to add something that I don't find anywhere. I don't know if it's possible at all, but I want to believe it is.
I wanted a field that would permit to send a file as an attachement. You know, just a simple "browse a file and send it" thing. I know how to do it with HTML-PHP, but with flash I have no idea.
Can anyone help me?
How Can I Send Variables To A .cgi File?
Ok, the case is this. I have created a website (www.gogogym.gr) that will have the option to subscribe to a mailing list. Can please someone write the code in order to send just one text object to the .cgi file?
I mean the whole case: i.e.
the name of the input text field (i.e. address)
the command line (address.send "www.gogogym.gr/cgi-bin/mlist/mail.cgi", "_blank", "post")
I am really new to object oriented programming so i would really appriciate a detailed answer. Thank you very much.
How To Send Commands To Swf File
Hello!
Gotta little problem with swf file....
I created menu, placed on layer in html template. In the same template i placed swf file, which i would like to be controlled by the menu. Can anyone advise me how to do that? My idea is not to load another and another swf files, but use this loaded at the first time, to controll it from the browser level.
Thing is that i pretty know how to send texts from html template to swf file, how to send variables from swf to swf, but the problem for me is to send variables from html to swf....
Can anyone please help me with that.....
Cheers
How Do I Send Variables To A Php File?
Hey all,
I've searched everywhere, but can't find one thread/result that suits my situation.
I'm trying to post data into a database, through php. I don't want to reload the page, so I want this to happen through Flash. I thought about using the LoadVars() class, but it just simply isn't working.
How would I about doing this? Say I have three variables, blah1, blah2, and blah3, all of which are strings. How do I send these variables to a php page with the POST method?
Thanks
Send Data To Php File.
I'm trying to send data to a php file from a flash movie. I copied this code right off this site (and modified it) but it still doesn't work:
myVars = new LoadVars();
myVars.message = "accepted";
//Any variables added to the myVars object will be passed onto the php.
myVars.sendAndLoad("http://localhost/MKC/buttondata.php", myVars, "POST");
//Notice the myVars object was passed into the sendAndLoad function.
myVars.onLoad = function(success) {
//Ok, the php file has loaded... The flash can proceed.
}
How To Send Variables To A Txt File
how can i send variables to a txt file... ex. i let the user input their name,email,company,details, etc. then they press the send button. i want their inputs to go in a txt file, without using any cgi scripts. this is in web. can flsh do that on web? please tell me... i need help asap....im in a meeting right now. thanks
Send Info From Swf To Cfm File.How?
Hi!
I am using AS3.0 and I have a question.
I have an inputText where the user will fill in with his email address.
How do I catch his email address with a ColdFusion Script?
Can You send some example?
Thank You
Send Vars To Txt File?
I can load variables from a text file easily enough. But can I send new vaiables back to the text file to replace the old ones, or need I turn to databases?
External Text File Or Xml To Control Width Of An Object In Flash?
Hi All,
I wish to have a simple bar graphic in an swf where the width of the bar is determined by a value within an external document ie text file.
ie, the value 100 would be the graphic at its full width, 10 would be 10% of the full width of the graphic.
Any Help here would be much appreciated.
Thanks Dan
External Text File Or Xml To Control Width Of An Object In Flash?
Hi All,
I wish to have a simple bar graphic in an swf where the width of the bar is determined by a value within an external document ie text file.
ie, the value 100 would be the graphic at its full width, 10 would be 10% of the full width of the graphic.
Any Help here would be much appreciated.
Thanks Dan
Send The Content Of A Text Box To A .txt File?
I need help to send to the printer the content of a text box (dynamic), i would like to print only the text, whitout the background of the movie, and print all the text in the box, its a big text that needs a scroll button. How to do that in a simple way. i try the function "print" off an object, but it prints all the frames and the background, and it only prints one page.
Need help.
Thanks for your time and help.
|