ActionScript 2.0 :: Variables - Take The Video File Name From A Php
Jan 17, 2008I have developed a flv player which will take the video file name from a php code for in frame 3
[Code]...
I have developed a flv player which will take the video file name from a php code for in frame 3
[Code]...
How can I import some variables from a txt file and treat them like normal variables in fla file? something like in txt file
Code:
&variable1=2&
&variable2=8&
[code]...
I suppose the title says it all. I can load an external video file (FLV) and I can have it play. I also have the custom buttons made to control the clip. The only thing I have left to do is to have the main timeline move onto frame 2 once the external video reaches its end. I am using actionscript 3 and flash cs 5.5.
View 7 RepliesLooking into HTML5 video tag, and researching which browsers support which video file types, and my initial thought is things just got harder than just using flash. I am wondering if there is some skeleton code (combined with development approach for videos) that someone has figured out to do the following: If flash is available, use it If not, try html5 video ogg format If that doesn't work, try html5 video h.264 format If that doesn't work, try html5 video webM format Based on what I am seeing, am I correct in thinking that now, in order to accommodate all users on all browsers, a video needs to be published in 4 formats? If so, this HTML5 video thing is an epic fail!
View 2 Replieshow to pass variables from one Movie clip's AS file to my Main AS file. Let say my Movieclip's AS file is calling damage = 1; so how the Main AS file retrieve the damage value from the Movieclip's AS?
Code:
public class robotMC extends MovieClip
{
public function robotMC()
{
[code]....
I had an flv recording from a webcam.It mostly recorded fine, but there's one point where I paused the broadcast for an intermission.A few minutes later the broadcast started again but the video doesn't play beyond that point, only audio plays.A few minutes later in the recording the broadcast switched to another camera and the video starts playing again just fine from there.I can't seek past the frozen point either to skip a couple of seconds ahead.The freeze is at about 9:00.If I seek to 9:01 it jumps ahead 8 minutes to where the camera switches.What's strange in this is that the video is *definitely* in the file.Using Moyea's FLV Editor Pro I converted the FLV to an MPEG and the whole video is there, so it's not that the camera stopped transmitting, it's just that the playback isn't working.
View 2 RepliesThis will create an flv video file on flash media server:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
ns.publish("yourCamera", "record");
ns.attachVideo(Camera.get());
How can I generate an image for the current video frame every 2 seconds?
Im pretty new with the flash -> php -> mysql thing .. And I have made a script that sends some variables (that a user inserts in some input forms) with some var names, and then php handles it and insert it into my MySQL database its kinda ugly that a page pops up and opens the php page.So I was wonderin' if there is some way to send the variables to the php file and process them inside the flash file. without openin' some fancy browser window ?
View 3 RepliesI have basic knowledge of Flash and AS3.0. Suppose i have a flash swf file(main.swf). In this main.swf file, i loaded another swf file(sub.swf) by writing the following code snippet in main.swf file as shown below:
var textLdr:Loader=new Loader();
var noteUrl:String = "AddNote.swf";
var noteUrlReq:URLRequest=new URLRequest(noteUrl); textLdr.load(noteUrlReq);
addChild(textLdr);
Now, how to acess the data present in main.swf into sub.swf.Note: Here data represents values/data stored in variables/objects of main.swf file.
I am downloading a flash video with Perl. Is there a way to interact with the flash video like retrieving variables from the flash video, like you can do in C#?
For instance, in C# you can put a Shockwave Flash Object on a form and then you can do GetVariable/SetVariable on that object. I don't want to/don't care if I can see the video, I just want something like the Get/SetVariable of the C# Shockwave Flash object.
I've got a loadVars function, but I want to use the variables from the loaded file elsewhere in the file.[code]
View 1 RepliesMy problem is that when I click on a button to play a different video, the previous video does not unload and the audio will continue to play over the newly clicked video.I need to be able to unload the previous video upon loading the one in which the corresponding button is clicked. I hope that makes sense. In AS2 I think I could figure it out but AS3 is kinda kickin' my butt. I have two buttons currently set up, it will eventually be more but I want to get it totally working before I add the rest.
Code:
import flash.system.Security;
import flash.net.URLRequest;
[code].....
Can you take a url variable and have that variable be the value for the source parameter of the video playback component in flash CS4 or CS5?
vplayer=videofile1
the actionscript 3.0
var videoFile:String = [who do I get the url variable's value here?]
[code]....
when I click on a button to play a different video, the previous video does not unload and the audio will continue to play over the newly clicked video. I need to be able to unload the previous video upon loading the one in which the corresponding button is clicked. I hope that makes sense. In AS2 I think I could figure it out but AS3 is kinda kickin' my butt.
I have two buttons currently set up, it will eventually be more but I want to get it totally working before I add the rest.
Here is my code
Code: Select allimport flash.system.Security;
import flash.net.URLRequest;
import flash.display.Loader;
import flash.events.Event;
[Code].....
I have a Flash Video custom player skin thingy that I've created that plays 4 different videos. Now they want to add a "Download Video" link and for the life of me, I can't figure out how to populate the URL to each video. Here's the AS I have so far:
[Code]....
I wanted to use the included video player from Flash media server but can't find a list of variables and values to pass to the player. Is there a list and could anyone point me in the right direction? I'm specifically looking to pass a stream name for a live stream to the video player.
View 6 RepliesI am using a flipbook Flash/Actionscript 3.0 framework for a digital magazine[url]...
You can have videos embedded in the pages of the flipbook, but they can not be display fullscreen like Youtube videos, for example.
The flipbook can also import swf files to display as pages of the flipbook, so another way of embedding videos into a page of the flipbook would be to have the video player in the swf page you are embedding. This gives you more control over the style and the positioning of the video.
My question is: Is there a way with AS3.0 to togle the embedded video from normal predefined size to fullscreen and back?
i want to know how i can put a flash file inside a flash wbsite. i have found a tutorial [URL] that says something like that but in this tutorial if i understand correctly it creates a new flash project and add another swf inside. i have my website created and i just want to add video gallery, image gallery etc that are already swf. how i can do that?
View 1 RepliesWhen i save the file as an .swf file to view it in my browser the video gets really big (sized the flash document 250x240 px) . How can i easily control my flash video sizes?
another thing: When im doing a video and work with things that are outside of my white document (in the gray area) for instance things that are to be faded into the document and so on. These things also show up in outside of my video when i view it in my browser.
i want to know how i can put a flash file inside a flash wbsite. i have found a tutorial (search on google for 4906532_within-another-flash-swf-file.htm since i cant add links) that says something like that but in this tutorial if i understand correctly it creates a new flash project and add another swf inside. i have my website created and i just want to add video gallery, image gallery etc that are already swf.
View 2 Repliesi am new to actionscript i need to download .mp3 and vedio file form my remote server how to do this give me any example source code for this.when i download .pdf its downloading properly. but not audio.
View 1 RepliesI have a slash template that I will be inserting video into, the template is set up for a .flv file ? what would I change in Dreamweaver or Coda to edit this file so that it can play video with a .swf file instead of a .flv file? here is the template
<dat video="dat/Images/Folio/video.jpg" title="sample" des="video samples" flvPath="dat/Videos/test.flv"/>
I want to change this to test.swf instead of test.flv
I have successfully created a php file that reads and echoes the contents of a directory in the string [code]...
View 4 RepliesWe have a FLASH website that uses PHP to authenticate users.
We have recently been asked to implement TWO variables as we used to only have one.[code]...
i have a file uploader in AS3, and can successfully save a file using php. I'd like to also send variables along with the file, have php process the variables, and display them back in Flash.
In a separate project, I was able to get variables from flash-php-flash, but I can't work out how to do this while also uploading a file. I get a null reference error in the completeHandler function when flash tries to display the vars coming back from php.
[Code]...
I have created an external actionscript file, which is called from Flash with the command#include "my_script.as"
The question is: how can I pass variables from Flash to the external actionscript file?
I am currently helping make a project which needs to load variables from a PHP file into Flash. What I want is the flash movie to go to a frame if the PHP variable in the PHP file equals some text, say "hello".For my PHP file I have this:
Code:
<?php
$dataForTxtbox_1 = "hello";
print("&name1=$dataForTxtbox_1");
?>
I have tried several bits of actionscript, but with no luck. Basically, I want the movie to go to a frame if the variable in PHP equals "hello". Which it currently does, I have tried using the if statement in several ways but with no luck.
I am attempting to retrieve data from a PHP file within my Actionscript file.I have a large amount of incoming dynamic variables so it is necessary for me to retrieve them all, however, I don't want to get every variable individually as that would take a very long time to code and does not work well. Is there any way to get all variables at once?[code]...
View 3 RepliesGot a movie that loads some variables from an XML file. The content of each XML.node fills the corresponding dynamic (on the fly) recipients (mcs).
I know how to do this once, not using a for (loop) basic parser, so, I got stuck with this simple code while I was trying to "make it" with a "loop" parser.[code]The idea is to have 2 buttons that change the number of the array sothat I can access the next XML.node without having to write all the code again, neither the dynamic recipients -movie clips- nor the parser. Can't I make a function from all of these sothat I can call it later?
You know how & is used to separate variables in a .txt file if your loading variables, like &height=22&width=3353&....well what if you want to pass a string into flash like "We all went & drunk lots of beer"?
View 6 Replies