ActionScript 2.0 :: RSS Feed - Reading Data From Location In Flash File
Jan 14, 2010
I am trying to read data from [URL] location in my flash file which is residing on a server. But I am not able to get any data. No issues in coding - checked with a local copy.
Command used is objMain.CCRSSXML.load("[URL]");
...Anyway. Since college happened, I'm used to C++ storing data in .txt files and reading in from there. I'm trying to make a monopoly remake for something to do while Christmas comes, and I wanted to store all the card information somewhere. I thought of storing it in some sort of "Information Class" or perhaps just a text file.
I am trying to load a variable from data in a text file.I can read the text file fine but the variable data seemsonly to be available with in the function that reads it. I need to use the variable data outside of the function.This is the actionscript code i'm using.
var pathVars= new LoadVars(); pathVars.onLoad=function(ok) { if(ok)
I am trying to load a variable from data in a text file.I can read the text file fine but the variable data seems only to be available with in the function that reads it. I need to use the variable data outside of the function.
This is the actionscript code i'm using.
var pathVars= new LoadVars(); pathVars.onLoad=function(ok) { if(ok) {
[code]....
This is where the path_var becomes undefined
trace("This is outside the function... "+path_var); pathVar1="This is outside the function... "+path_var;
I am wondering if it is possible to use random file access for reading and writing data to file in Actionscipt 3.0 similar to that what is in Visual Basic?
I need to join three images adjacent to each other by reading the file locations from a text file or database. After joining these images I have to make it to a single movieclip.
I have an RSS feed that I need to read, but you need to log in with a valid username and password to get the feed. I was wondering if or how to do this using Actionscript 3.
Right now I have a very simple script that just gets the xml from a provided url and outputs the xml to the console. I've verified that it works with a feed that doesn't require authentication.
i have a text area, set to multiline. For some reason, when my text imported from xml shows up in the box, it starts several lines down into the box. So for example, my Text box is positioned with the top at the midpoint of my stage, but the text starts about 3/4 down the page, about half way down the text box. Can someone please tell me why this is happening and what I can do to fix it?
I noticed that when I put my cursor in the box and move it up and down, the rest of the text 'scrolls' into the frame, but otherwise it's cut off.
Once the text file is assigned to a variable, spaces for example are replaced by %5F.My text file: bddtxt.txt Content of text file: 1_1_0,2 3_2 3 4_0,4_5_0,5_6 7_0,6_8_0,7 8_9 10_0,9_11_0 My script (Flash 6):
ActionScript Code: var liens = new LoadVars(); liens.load(_global.url+"bddtxt.txt");
I've made a few sites a few years ago with flash CS3/AS2 and using the TextArea as an output for xml content. that really sucked and looked terrible as it flashed white everytime it was loading (especially on slow connections). so I don't want to go that route again.sir!ok, so I have a banner that has 3 text elements per page (with various graphics per page behind the text) ...all text needs to be live as it is fed by 3 different languages. (referably the image link too)1. consistant big title across 8 pages2. sub-title that changes per page3. paragraph of text per sub-title4. the background imageEach of the 8 "slides" lasts about 6 seconds each (this part im fine with and sorted in AS2...but not AS3). On the top left are 8 numbered buttons that a user can click on to view whichever "slide" they may have missed or whatever. (this part i'm ok with....just the external text and formating are the issue)how would i go about setting this up via dynamic text with either XML or PHP in CS4/AS3? (using dynamic text fields, but so its nicely formated).
Is it possible to, using javascript, either create video data on the fly, or more likely download pieces of video data from various sources and feed them to a flash player instance.
Even better, is it possible to feed a html5 video stream from locally executed javascript?
I created a simple button that displays an error messeage: "error opening 'url" when I test the movie, but does play and opens in browser after publishing. However, it won't open in the browser in a different location. I pasted the html code in a web page but it doesn't work there nor opens in the browser in a differnet location from where it was originally published and saved. Why is that?
I have a normal XML file which i chucked together that works fine with the code i have below - this is obviously saved as an xml file as well. What I'm trying to do is generate an XML page using PHP. I have done so, works fine and reads as it should correctly when simply viewing the page in a browser, but when i try and read out the data in flash (loading in a php file instead of an xml file, everything is undefined!! Below is the flash code, which works when the load() link is changed to a straightforward xml file...
Code:
newsPageContent_txt.html = true; var test_xml = new XML(); test_xml.ignoreWhite = true;
[code]....
the header at the top of this PHP is generating the page as xml, so it should all be valid.
I turn to you for help, dear sweet Kirupa Forumites. First, let me explain the problem: I have a flash file reading an external text file for the content. Everything works perfectly for nearly everyone - you click a menu button, and the content text comes up fine. However, a couple of people have found that the text shows up as "undefined". I have checked the player versions of the people where it doesn't work, and it is the same as for those where it does work, so that ain't the problem.
I don't understand why it works perfectly for nearly everyone, but a small number of people have this "undefined" text problem. It seems to be a problem with loading the external text file, but I don't know why. I have a main flash movie, and load the text in the first frame, using the following:
var my_content = new LoadVars(); my_content.load("content.txt"); my_content.onLoad = function(success){ if (success){
[Code]...
I then have a couple of dynamic text boxes in the main movie - one called ErrorText (for displaying an error message to the user) and one called ContentText (for displaying the content). I use an external menu swf which jumps to a specific frame in the main movie, depending on which button is clicked. Actionscript on the main movie frame for the first button does the following, with the other frames similarly configured:
I'm basically interacting with a third party API flash file to send HTTP POST requests to my server. know I'm on somewhat the right path because it requires a crossdomain.xml file, and before I added that part nothing in the POST variables was showing up, however since I added that file there are 4 variables that are set, these POST variables are sent by the application to give me basic information about the file.. but I actually need to read the RAW POST data to actually save the image being sent by the Flash.I'm aware there are 3 ways...$GLOBALS['HTTP_RAW_POST_DATA'] $HTTP_RAW_POST_DATA which is probably the same as the firstfile_get_contents('php://input')For whatever reason, neither of these "work". By "work" I mean they're not being set, when I var dump them I get nothing.
Could it be that there's a setting in php.ini that I need to set, or perhaps the Flash application is truly not sending the actual image? I think it's doing the right thing, because it's a semi popular API and it's used by a couple other sites so I'm pretty sure it's right on their end.
sent form data in Flash to a PHP script before and then read in a variable (say a user id) that gets passed back by the PHP. simple enough.but if the script passes back XML, how do i read that in?elow is the code i've used to send PHP a name and an email address and get back a userid, but i'm not sure how to go about writing the code if the script is passing flash a chunk of XML instead?
ActionScript Code: var userRequest:URLRequest = new URLRequest("saveUser.php"); var userLoader:URLLoader = new URLLoader();
All I'm trying to do is load an external .swf file into a precise location on the stage of my existing Flash file. I've spent an hour and a half on this site search and found nothing. What do I add to my loadMovie command to place the file at specific x,y coordinates?
create a xml news board, i finally completed the news board and i had no problem displaying my offline xml file.I uploaded it to my testing server and nothing came up. i parse the rss feed in a different way ?when i tested it on my testing server. but when i tried it locally from my flash app it worked.
very simple question, i have this: (only a part of the complete rss file)
<item> <title>Ok, de regalo de San Valentin me pueden dar un viaje a Playa del Carmen! Digo, entre todos lo pagan! No?? #SoñarNoCuestaNada</title>
import flash.display.MovieClip; import flash.display.Loader; import flash.events.*; import flash.net.URLRequest; import com.imgLoader; //ListfilesOnServer is a list component //btnGetList is a button //txtStatusUpload is a textfield [Code] .....
he bought a template that makes the reading of external files, at first Ihad a problem because the flash CS5 was not opening the fla, so I managed to solvethe updating Flash CS5, solved this problem after another arose, the same open thefla normal, but when you export the swf so it makes reading the menus, most do notread the contents of rest, and saw the variables are correct, only appears the letter "a"sample (aaaaaaa) looks like this should appear where the text in question,
Basically, I have alot of text that needs to contain underlines and all that good formatting stuff that flash text can't do. So I created a dynamic scrolling text box, loaded in an external txt document containing all the right HTML tags for flash. But for some reason the flash cuts off the text. It won't show all the text I have. I noticed that it seems to be cutting it off in SOME (not all) areas where I have a hyperlink.
To make a pic presentation, I used to xml to store images and contents. I display the pictures by reading from the xml file in flash.My prob is ,Suppose if there are 5 images with the contents in xml file. I have to make a loop of the images being displayed along with the content. As of know, the program reads the content and image, goes to end of the record and stops. I need to bring back to start and make the image displayed agian
I've been building an XML feed reader, here's the code I'm using:
var myXML:XML;var myLoader:URLLoader = new URLLoader(); myLoader.load(new [code]....
It works fine and loads the XML inside the flash authoring environment (ie when i preview with crtl+enter), or when I make an executable projector, but when I try to run the SWF by double-clicking, or when the SWF is on the webserver, the text box doesn't display the data...
i am creating a MP3 PLayer that will read data from a rss feed has the title of the mp3, the artist, the filename etc. I was wondering how to get the url form this tag in xml