ActionScript 3.0 :: Setting Communication Between Flash And PHP File?

Feb 4, 2009

I set up something using almost the same exact code as something else I got to establish communication between the flash file and a php file. But for some reason it's not working now. But the other one works, and the code is pretty much the same...

AS3 Code:
submit_btn.addEventListener(MouseEvent.CLICK, submit);
function submit(event:Event):void {
var variables:URLVariables = new URLVariables();
var varSend:URLRequest = new URLRequest("[URL]");
varSend.method = URLRequestMethod.POST;
[Code] .....

Yet every time I try it outputs the error message in the text field and the trace returns a undefined variable.

View 2 Replies


Similar Posts:


Actionscript 3 :: Local Playback Security Setting In Flash For Outside Communication With Inside As-classes?

Dec 14, 2010

I'm using external actionscript files located in the root of my webfolder, but I also want to communicate with another website.

How should I set my Local playback in publish settings? Access Local Only? or Access Network Only?

View 1 Replies

ActionScript 3.0 :: Making Communication Between A Flash File And A Php File

Feb 1, 2009

I need help with making communication between a flash file and a php file. I know how to target a php file, and get it to do what I want. I just don't know how to send the information back to the flash file from the php file.

View 4 Replies

Windows :: Writable File Location / Communication AutoPlay Media Studio ?

Mar 17, 2010

I have an application built with AutoPlay Media Studio which needs to be able to communicate with an embedded .swf, built in Flash CS3 with AS3. The APMS application needs to send a filename to the embedded flash. I've tried using flashvars but these don't seem to work from the APMS app. I've previously written the info to a text file in the app's folder so that both the APMS and the flash have a set relative path to the file. Now I'm tasked with making this work on a write-protected device, and I'm stumped as to where I could place the file and still be able to find it from the flash.

My first thought was the user's temp folder, but from another question I don't seem able to find that path from the flash. Where else could I put it and still have permission to write to it even if the user is not logged in as an administrator? The path needs also be in the same place on Win XP, Vista and 7.

View 1 Replies

Media Server :: Setting File Name Of Captured File In DVRcast application

Jun 29, 2011

I've looked through the scripts in the scripts/ directory, but haven't seen anything obvious.

I would like to be able to specify the file name to capture the stream to. At present, the capture file is always named the same as the stream, which means if I stream for a bit, stop, then restart, the originally captured file gets overwritten. I'd like to be able to incorporate something, i.e. the stream start time, into the capture file name.

View 3 Replies

Flash - Communication Between As2 And As3

Mar 16, 2010

I have this code under a button in 'as2.swf'

[code]...

and this swf is being loaded into as3 container called 'main.swf', but when i press it nothing happens and the file does not unload itself.

View 1 Replies

Professional :: Flash And ASP.net Communication

Mar 7, 2011

I recently made a mp3 player in Flash. I have an aspx page that has the mp3 player in it as well as a .net button which is disabled on page load. The .net page tells the audio player waht file to play and the player plays. What is supposed to happen next is when the audio player reaches the end of the file the button on the aspx page is supposed to become enabled. I am not sure how to do this [have Flash tell the aspx page that it is done playing].

View 2 Replies

Php :: Php-Flash Communication Over Sockets?

Nov 5, 2009

I am not any kind of network programming pro, but it happened that I have faced necessity to develop socket-server on php (no way for using Java) for flash multiplayer browser-game (standard features like locations, team battles, etc).

The main problem is that TCP is point-to-point protocol and it completely occupies given port.Of course it is possible to create some kind of queue, which will manage connections to the socket, but this solution doesn't seems to be the fittest one.

It seems to me that using interval of "fair" ports (from 2000 to 2200, for example) is more fitting solution, because one request may take a lot of time to execute and players won't be happy to wait in queue.

But how can I implement this "port inteval" strategy?The solutions that I see are:

launcing php-script per every port (he-he, 2 hundreds of launched scripts!);somehow forking the initial process to new processes (2 hundreds of processed? Not nice too), one for every port;additional while-loop, which listens all the ports (looks very bad);using threading or something like that (the problem is that php is single-threaded, as far as I know; pcntl?).But somehow I don't like any of them, or at least don't know how to implement them in the best possible way.

What is the best existing strategy to handle multiple requests from multiple users per time unit without delays, and how to implement this strategy in php? We have our own Debian-server, so it is possible to use any required php extensions.

For example, if we are trying to develop chat application, we need some sort of fixed (I mean persistent) connections for each user. For example, we have 80 users in chat, and then one of them posted a message, which server tries to handle and send to all other connected users, also putting an entry to the history file or something like that.

In this situation polling server for new messages every 10 seconds from each of 80 users is craziness, so the need in persistent connection gets obvious.But I don't know what is the best way to implement something like this, considering that not all requests are handled instanlty.

View 2 Replies

Java :: Communication Between EJB And Flash?

May 19, 2010

Is it possible to call my ejbs from Flash actionscript?Also if my ejbs are returning List how will flash come to know about this class?

View 2 Replies

Communication Between Flash Files?

Jun 28, 2010

How can I make something like this: [URL]One flash triggers the other one.

View 1 Replies

Flash :: Communication Between Cocoa And SWF Using WebKit

Apr 24, 2010

I'm trying to implement a basic WebView containing a SWF file inside. The SWF file plays and apparently works fine. However I'd like to know if there's some way to retrieve an ActionScript variable from my Cocoa application.

View 1 Replies

C# :: Communication Between Flash And C# Using ExternalInterface Without TLF Text

Jun 15, 2010

I'm communicating from a flash application using a command like the following: ExternalInterface.call("hello", "world") This is handled on the C# end by something like:

[Code]...

The axFlash_FlashCal is called fine, as long as there is a textbox on screen that's set to use TLF text. (any textbox will do, no specific ID). Without the textbox the even will not fire. (Even though ExternalInterface.Avaliable is set to true) I've tried using CS4 and CS5 to publish, using both Flash 10 and 9 as output.

View 1 Replies

Html :: Flash And JavaScript Communication Within IE

Jul 21, 2010

I am having in issue with IE passing a string back into an swf using the EternalInterface class in Flash CS4.I have an swf with the following code: var externalString:String = ExternalInterface.call("IncomingJS")which is inside an event listener attached to an Event.ENTERFRAME and an if statement waiting for ExternalInterface.available. [code]I am able to successfully get the externalString variable and procceed with the rest of the AS3 script in Firefox, Safari and Chrome, but not in IE.If I add in an alert (stringFromHTML) before the return statement in the Javascript, I get the value of the stringFromHTML spammed, which looks like Flash is firing the function at the right rate[code]Unfortunately, the HTML code is actually working within a 3rd party HTML generator, and one of it's limitations is that I can only have a single line (with unlimited length) of html at a time.Are the other options (swfObject etc) able to run either with no line breaks in the code, or would I be asking for trouble with Javascript and the SWF to, instead of embedding the SWF directly, use something like an iFrame and refer to a 'proper' flash delpoyment html file?

View 3 Replies

ActionScript 3.0 :: Flash P2P - Communication Between More Than 2 Clients

May 24, 2011

I'm doing some experiments with Adobe Cirrus. I've managed to connect 2 clients to each other. But what I want now is the following:
I want client A to publish and clients B and C to play A's stream. I've tried to do this. A starts publishing, B and C create receiving NetStream based on A's nearID. Unfortunately only latest connected to A client can play A's stream.

View 1 Replies

Flash :: Communication Between Two Data Grids?

Sep 26, 2011

I am trying to make connection between two datagrid in two separate windows.

Until now, I am able to create a datagrid in one FLEX browser window but got stuck furthur.

On some click event in one of 1st datagrid row-column field value, (i.e itemRenderer in form of button), I want to open a new window (using some LocalConnection or ExternalInterface.call) to open another window with the part of the original data grid.

Which method should I use - LocalConnection or ExternalInterface.call ?

View 1 Replies

Flash :: AS2 Parent - Child Swf Communication

Feb 29, 2012

How do I do this? Inside the parent swf myVar value is set by query string value loaded in by swfobject var myVar = _level0.part; // i have the value 123 here ..all good so far

[Code]...

Always childLog.text is undefined :( - so how to access the value of myvar from the child?

View 1 Replies

ActionScript 3.0 :: Flash Communication Between Computers?

Oct 14, 2008

I am trying to play flash video on one computer and get a flash program (on another computer) to know what content is being played, so it can respond appropriately with related content.Has anyone got ideas on the best way to achieve this?I have tried using socket connections through a Java server with a policy file request, but after receiving delivery of the policy file as text over the socket, Flash won't reconnect to talk to the server. I can't figure out how to enable policy file logging either.

View 1 Replies

ActionScript 3.0 :: Php Mysql Flash Communication

Jul 5, 2009

I am having a huge problem and need a fix or at least to be pointed in the right direction quickly. I am working on a massive flash project for which I have quite a large deadline tomorrow. I have 8 movie clips on my stage, and each of these clips has a number of entities which need to be loaded and changed by data from a database. These entities are all dynamic text boxes bar one thing: the name of the clip, the id of the clip, its internal colour, a question, and an answer to this question. I have already created a table using phpMyAdmin that is laid out like this:

name - number - colour - question - comment There are currently 2 rows in this table but there will eventually be 8 minimum as I am still largely in test mode. I found a tutorial for as2 (bare with me ), which shows me how to take a single source of data from a database and then parsing the xml generated inside of actionscript and add each item to a list. However, taking into account that I am a complete newbie when it comes to xml and php and mysql, I am very confused as to how I could access all these details using php, using the below php and as code as a template:

[Code]...

View 1 Replies

ActionScript 2.0 :: Communication Between JavaScript And Flash Possible?

Feb 27, 2007

So flash invokes javascript functions using fscommand. Javascript can invoke flash commands using the ExternalInterface class . Is there any other way that javascript can invoke flash commands???

View 2 Replies

ActionScript 2.0 :: Better Way To Protect Php Flash Communication?

Jun 25, 2007

I have a flash interface that uses php to write/read vars.So if someone wants to hack our website all he has to do is look at the code and send some vars manually to the .php file. I've seen some encryption apps that claim to fully protect your swf but at the same time there are those who claim to decompile protected ones.Is there any better way to protect the php>flash communication?

View 2 Replies

ActionScript 3.0 :: Html To Flash Communication?

Apr 18, 2009

i just need to pass 1 parameter from html to flash.i have used both ways. in the movie url or in the embeded obj . html example >>>

[Code]...

View 1 Replies

IDE :: Flash Pages And Communication Handling

Apr 28, 2009

I am having mainly 2 problems in Flash for some time and I need some clarifications on them.

1. Handling pages.
How do I handle working with pages in Flash? Do I create a frame for each page and place the content of the page in that frame and when needing to go to a page I simply go to it's frame? Or do I use ActionScript to put and remove content from the stage and create every page in this way? What I mean by this is: if a page has a menu and a picture, I use ActionScript to put the menu and the picture there. If the next page has some text and a button, I use ActionScript to remove the menu and the picture from the last page and put the text and the button from the new page.

The first method seems simpler but that means that if the page has some content that needs to be loaded (a picture, for example), this content will need to be loaded every single time the page is opened.

The second method requires more work but is it more efficient ? When I remove the content from the page, do I move it to a negative x and y so that it cannot be seen or do I remove it completely and just load it again the next time the page is opened?

2. Handling a flow communication with PHP.
I constantly need to communicate back and forth with PHP. I use a LoadVars variable to send data to PHP (using "POST") and I use an XML variable to retrieve data from PHP (I use the "sendAndLoad" method). The data sent by PHP is in an XML structure. The problem here is that I need to have different channels working. I need to receive several different types of data. Do I create a set of LoadVars and XML variables for each type of data that I need to receive or do I simply use only the one set and use an ID variable to specify with which type of data I am working at the moment ?

View 1 Replies

ActionScript 3.0 :: Flash Creating A Two Way Communication?

Mar 25, 2012

I'm trying to create a two communication between AS3 and PHP. So far I was able only to send data from AS3 to PHP using URLVaribles.

1. How do I proccess data sent from PHP to AS3 on the AS side?

View 1 Replies

Professional :: Setting File As Ringtone On Android

Oct 17, 2011

is it possible to set an audio file from the library or web as a ringtone on android??? Iv figured out how to make it download the file but its not as good as the application doing it for you!?

View 1 Replies

ActionScript 3.0 :: Setting Doc Class Formatting In A .as File

Jun 19, 2009

Doc Class formatting confuses me. This is the code from one of Grant Skinner's GTween tutorials. It works in an FLA but I am having trouble setting it up in a .as file.

[Code]...

View 4 Replies

ActionScript 3.0 :: Setting IconFile From Within A Class (.as File)?

Jul 14, 2009

I was wondering if it was at all possible to set the icon file for a class the way it can be set for a component. From within an MXML component I can include something like:

<mx:Metadata>
[IconFile("image.png")]
</mx:Metadata>

and it replaces the default FLEX icon. I have several classes which are used within components and would rather not convert to MXML. Is it possible to replace the icon file for .as files using a similar method?

View 1 Replies

ActionScript 3.0 :: Setting The Hit Test Of A .PNG File To Not A Square?

Apr 28, 2011

So I know it's a noob move to begin with, but I created all of my assets for a game that I am making in photoshop and sliced them out as transparent .PNG files. Now the game has a certain look to it and I don't have the time to redo all the assets. This clearly means that whenever I have an enemy for a hit test, the bounding box is always going to be a rectangle.Is there a way I can make it so just the HIT TEST for that object is the actual shape of the enemy, similar how you can just set the hit test of a button different to the actual look of the button itself

View 4 Replies

ActionScript 2.0 :: Setting The Stage Size From A XML File?

Aug 1, 2008

is it possible to set the stage (the actual flash movie as it appears on the screen to the user) size in as2.0? i have a photo gallery that i plan on reusing on several sites and i need it to be different sizes on each site and i'd rather standardize it so that i never have to open the .fla file, just open the XML file that it pulls all of the images from and have an attribute for the stage size. my xml file is as follows where movie_width and movie_height would be the dimensions of the flash file as it appears on the site.

[Code]....

View 1 Replies

ActionScript 3.0 :: Html To Flash Communication Impossible?

Apr 18, 2009

i just need to pass 1 parameter from html to flash.i have used both ways. in the movie url or in the embeded obj . html example >>>

<script language="JavaScript" type="text/javascript">
AC_FL_RunContent(
'movie', 'aidonitsa',

[code].....

View 3 Replies

Flash8 :: Flash Pages And Communication Handling?

Apr 28, 2009

1. Handling pages.How do I handle working with pages in Flash ?Do I create a frame for each page and place the content of the page in that frame and when needing to go to a page I simply go to it's frame ?Or do I use ActionScript to put and remove content from the stage and create every page in this way ?What I mean by this is: if a page has a menu and a picture, I use ActionScript to put the menu and the picture there. If the next page has some text and a button, I use ActionScript to remove the menu and the picture from the last page and put the text and the button from the new page.

The first method seems simpler but that means that if the page has some content that needs to be loaded (a picture, for example), this content will need to be loaded every single time the page is opened.The second method requires more work but is it more efficient ? When I remove the content from the page, do I move it to a negative x and y so that it cannot be seen or do I remove it completely and just load it again the next time the page is opened ?Please explain to me, as detailed as possible, what do you think is the best method in working with pages.2. Handling a flow communication with PHP.I constantly need to communicate back and forth with PHP. I use a LoadVars variable to send data to PHP (using "POST") and I use an XML variable to retrieve data from PHP (I use the "sendAndLoad" method). The data sent by PHP is in an XML structure.

The problem here is that I need to have different channels working. I need to receive several different types of data.Do I create a set of LoadVars and XML variables for each type of data that I need to receive or do I simply use only the one set and use an ID variable to specify with which type of data I am working at the moment ?

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved