ActionScript 2.0 :: Pulling FLV's From YouTube?
May 25, 2010Is it possible to pull FLV's from a playlist in youtube?, and play them in custom build FLV player (not in youtubes api)?
View 0 RepliesIs it possible to pull FLV's from a playlist in youtube?, and play them in custom build FLV player (not in youtubes api)?
View 0 RepliesI have trying to use this sample FLA from google to embed youtube videos in my flash doc but, when I publish the file it comes up blank with no errors.
View 5 RepliesI wanted to know if this is possible. On my site I want to play youtube videos from my account from youtube. Basically, there will be an empty text box. Users will type in some text. Click on a button to search and play a random video based off tags associated with a video from my youtube account with the words from the text box? And if they did the same search it wouldn't play the same video again?
View 0 Repliesis it possible to display youtube's like/dislike buttons by using google's api (or any other api) for as3 ?URL...
View 1 RepliesI have a list of items in a database as well as images in a directory folder. I am looking for a flash app that can pull from the database to display the info and also the images and scroll this info vertically with associated links. I need to change this for each client by adding their unique "ID" in the code so their information pulls in correctly.
View 1 RepliesI have an HTML page called "mypage.html" with a form on it. The form contains a text field called "FName" and when submitted, it loads "mypage2.html" with a Flash file embedded within it.Using actionscript is it possible to pull the passed value "FName" to an actionscript variable. Previous threads mentioned the GetURL parameter but CS4 kicks it back saying it is no longer supported.I'm also a bit confused on whether actionscript can pull variables directly from the browser URL. I found a reference to the variables being placed in the HTML code that embeds the SWF file:<param name="movie" value="mySWFmovie.swf?myvar=heyyou" />'Why would this be the location to configure the passed parameters and not directly from the browser URL?
View 0 RepliesHaving real problems accessing data when I test my swf's online, i'm accessing data from the a bbc weather xml file online that's usually used for RSS feeds, on my computer flash can access the nodes and returns the data the way I want when I publish the files on my web server NaN or undefined appear in my text fields. Is there any security codes etc... I need to perform
[Code]....
I created a file that pulls data from the worldofwarcraft.com serverstatus xml page.The data populates a dropdown list and you can choose the server and it tells you if its up or down. The mini app works great on my desktop, when I upload it to my server it no longer retrieves the data.
Is Bliz blocking my server address from recieving the data? Anyone know how to navigate around this. [URL]..If you want to test it grab the swf out of your cache and load it from your desktop, it will work.
I want to build a sort of pulled down projection screen thing using ActionScript.Basically the MC will come down with a picture on it.I have this starting code which doesn't work terribly well because it just moves the screen from top to bottom instantly.
Code:
on (release) {
do {_root.mcScreen._y+=1;
} while (_root.mcScreen._y<200);
}
Essentially I want the screen to smoothly scroll down into place over about half a second.
I would like to have a screen with multiple buttons and when the button is clicked different MC's will be imprted into the .fla file. For instance button 1 will import 1_MC, button 2, 2_MC, button 3, 3_MC etc. point me to a tutorial or give me a down and dirty example using AS3?
View 11 RepliesI am mostly a front end developer and my code guy at work is not Flash savvy. I have been working with Flash for years, but my coding is limited. Wondering if you might have a tutorial on the following, or some knowledge:
Need to play an FLV video or swf that has que points that grab someone's name from a database and puts that in a dynamic text field and at the end of video sends out a code back that tells the server that the video has been complete. My code guy knows PHP MySQL and Javascript if that will help.
I have been failing to do a thing with Flash actionscript2.0; Here is the problem-
My xml file name is: sea.xml On my fla file, there is a button named: do; and a movieClip named: loader;
What I am trying to do is- load xml only when the button is pressed. So I tried this-
myXML:XML = new XML;
do.onRelease = function(){
myXML.load("sea.xml");
}
[Code].....
I'm going to be creating a kind of fake RSS feed scrolling on the bottom of my webpage, and I want to be able to have it read data from a .txt file, so I don't constantly have to go into the flash file on a daily basis and make new swfs :P
View 3 RepliesI was running a test today and couldn't get flash to properly load data from php.Here's my textInput.php file:
Code:
<?php
$testVar = 'This is a sentence.';[code]....
why it's grabbing the entire php code, rather than just the echo?
I am trying to pull a text from within xml tags and place them in a text box when certain mc's are clicked. I am using the e.target to find the name of the mc clicked and grab info from tags with the same name as the target mc. The XML link is good as i can get data when doing tests with out using mentioned technique.
ActionScript Code:
package {
import flash.display.MovieClip;
import flash.net.URLRequest;
import flash.net.URLLoader;
import flash.events.Event;
[Code] .....
And the xml file
Code:
<statsIcons>
<pollutionIcon_mc> some text </pollutionIcon_mc>
</statsIcons>
asically I have a Player class with methods (i.e. Moving the player) that I want to listen for and implement in the main class. To put it simply, I'm creating the player methods in the player class and then calling them in the Main class. But for some reason I'm having some trouble, I'm still trying to get used to all this OOP design.Here is the (Main) code, it's not alot:
ActionScript Code:
package
{
[code].....
I am building a userinterface for some industrial instruments which output some data to a XML spreadsheet. This is the only way I can retreave these data's from the instruments.
Now, I need to make a flash that can pull out these data's from ex. "A1" and "A2" in this spreadsheet...
Here's a screenshot of the XML as it appears in EXCEL:
...and the XML as it appear if opened in Dreamweaver:
Code: Select all<?xml version="1.0"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
[Code].....
pulling specific data from XML? This is what I mean...Supposed I have an XML file like this:
HTML Code:
<data>
<article>
<ID>1a</ID>
<related items>
[code]....
Now, in Flash I want to load all items that have "5f" listed as one of their related item. So only display articles where item = 5f
Is there a method to pull the value of the current swf file's name? For instance, if I have a movie called 1.swf open is there something I can do like myMovie.name and have the return value be 1.swf?
Problem: I have 24 flash movies. Each movie has different text that needs to be displayed, so what I did was created an HTML file with vars on it like &1=Hello &2=World. Now in my flash movies I load that HTML file, and have a dynamic text box that pulls in the values. This all works, but as it stands I have to change the var the text boxes pull in, and recompile, so instead I was wanting to set the variable to pull in based on the .swf file name, like 1.swf, pulls in the var &1 and 2.swf pulls in the var &2, this way I don't have to keep recompiling, I could just copy the movie 24 times and rename the movies accordingly.
im developing a game at the moment in flash that relies on flash remoting.I'm not great with flash remoting so ive managed to combine my flash game with a flash remoting tutorial. The tutorial pulls info off of my MySQL and works by putting it into a DataGrid. Im now just looking for a way to pull each piece of info out and into a variable. Heres some of the code:[code]I tried putting the info into and array but obviusly its returning an error due to the fact that r.result is a object.Im just looking for a way of pulling info out of the grid and into seperate variables.
View 1 RepliesBasically, I am having trouble pulling in more than one line of XML data. Here is the line of code I am trying to manipulate to give me more than one line. I have tried duplicating it and changing the values... but it just updates which line it is displaying instead of the first and second one...
_root.setlist = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
Inside of my XML document it is layed out like this....
<shows>
<show>
<setlist>
<song>Song 1</song>
</song>Song 2</song>
[Code]...
I have a xml like so:
<job>
<title/>
<items>
<item>
[Code]....
Basically I pulll xml data into flash and most comes in, but only the first set will show the name, after that it goes to "undefined". Secondly, I can't pull in the info.
I have two scenes, one called "Script" and one called "Animation". On the Animation scene, I have one layer with thirty frames. Each frame is a progressive piece of animation, not converted to symbols or anything, just drawings.
Here's what I want to do. On the script scene, I have ActionScript pulling a random number from 1-30. For example, let's say it picks 17. I then want the drawing in Frame 17 of the Animation scene to appear in the current frame of the Script scene.
I'm beginning to understand this is more difficult than I first imagined, so here's an alternative. I could make a symbol from the drawing in each frame. Then call it Fish01, Fish02, Fish03... Fish30. Then when the random number is chosen, basically have that corresponding symbol appear. And when a new number is chosen, the symbol on the screen will disappear and be replaced by the new symbol.
I know how to create a scrolling pane that pulls in text. I test my methods by creating a text box with text, the convert to movie and make sure the Export to Actionscript is check and then on the Scrollingpane just make sure the target has the correct movie name. If I do this in a blank document everything works but in my Flash project it does not pull the text from the text box and I have no idea why. Has anyone experience this before. I just cannot find out why it works in a blank document and not in my flash project. I tried attaching my flash document but it does not fit.
View 1 RepliesI'm trying to pull an URL from a txt file, but apparently the URL itself contains several "&" signs which are used to separate variables, so now when I click on the link I'll only get the first segment of the link. Is there a way to go around it?
View 1 RepliesI am using Flash CS4. This needs to be done in flash because it is going to be used for a bannerDoes anyone know the code for dynamically pulling up the city and state?So if a user was viewing the banner from San Diego Ca... the dynamic box would say San Diego Ca
View 5 Repliesand E4X to pull in an XML file. I am wishing to display some text as subscipt. E.G with
G2, the 2 would be subscripted.if this can be done and if so how?
Question basically is that, on server side it needs to pull an RTMPE stream coming out of an origin server. tried a demo setup but could not get it working. is this feature supported in 3.5?
View 3 RepliesI loop through two arrays and im checking their data, i have collison working for them but I want to add more A.I. by making them stop when they are a certain distance from each other. so i need a way to pull EACH object that is in the arrays x,y, pos and use that data. my distance var keep bouncing all over the place...
THIS is my code:
//check events between 2 objects
function CheckEventsEnemyFighterFighter():void
{
[Code]....
P.S. i need some tips for my coding... like should have i used a break in these for loops?
Here is my xml structure:
<question>
<q1> Who coined the term "Clinical Psychology"? </q1>
<answer> Lightner Witmer </answer>
<option1> Stanley Hall </option1>
<option2> Lightner Witmer </option2>
<option3> Henry P. David </option3>
</question>
I can loop through fine and pick out the questions and answers, then throw them into separate arrays. The problem I'm having is looping and pulling the options into a multidimensional array like such:
var one:Array = new Array( 3 );
one[0] = ["Stanley Hall", "Lightner Witmer", "Henry P. David"];
one[1] = ["Stanley Hall", "Lightner Witmer", "Henry P. David"];
one[2] = ["Stanley Hall", "Lightner Witmer", "Henry P. David"];