Actionscript 3 :: How To Get Output Of A Webpage
Mar 8, 2010URL...returns some html that I want to parse in Actionscript.How do i call this page from Actionscript while getting back the response in a string variable?
View 2 RepliesURL...returns some html that I want to parse in Actionscript.How do i call this page from Actionscript while getting back the response in a string variable?
View 2 RepliesI'm quite new to AS3 (coming from php/c#) and like it very much. My problem: trace doesn't output anything in the Output window anymore?!
View 2 RepliesI'm quite new to AS3 (coming from php/c#) and like it very much.My problem: trace doesn't output anything in the Output window anymore?!
View 3 RepliesI'm teaching myself ActionScript and the book I'm reading just got into input text capabilities. The book shows me how to link input text to a variable and output that text to the output window using trace. My question is: how can I display the text that the user input onto the actual movie. For example... if I wanted the visitor to type their name into the input text box and click Submit and then a phrase shows up with their name such as "Hold on Name, my site will be done soon." How do I reference that variable and have it actually display in my movie?
View 5 Repliesvar nextY = 0;
var nextY2 = 18;
for (var count = 0; count < result_lv.typeCount; count++)
{
[code]....
The type count is correct but the information for the project is wrong.
I have been trying to output XML with PHP but encountered a strange(!) error in Internet Explorer. The expected xml output is this:(simplified)
<root>
<match_id>12</match_id>
<stadium_id>43</stadium_id>
[code]....
I have set the PHP header for XML output, and changed lots of other things but could not make it work.The $match->getId() part is just returning an integer but IE always shows this value as 0. If I set <fan_id> and <match_id> manually, IE shows the values correctly. By the way, I am using this XML output in Flash (AS3) and this also shows the same result with IE.
I made some videos with graphic effects in my video editing software. I suppose it might be easier to make SWF files from dedicated flash software - but I am quite comfortable doing things in video. So anyway, my goal is to be able to play the video on a web page - BUT WITHOUT the controls that go along with flv players such as wimpy. I would be just as happy to use flv if I could figure out how to hide the contols (play, volume etc.). I just want the movie to play - it should just play like an animated gif (but with sound and my option to loop or not).
View 0 Repliesalright, i want the output to be one after another, but right now it just overwrites a previous output in the loop. how would i get it to output one after another?
package {
import flash.display.*;
import flash.text.*;
import flash.events.MouseEvent;
[Code]...
How would I go about compiling just AS3 in CS3? I tried having my .as files in a folder then creating a new .fla from within CS3 in the same folder but I cant seem to get any output.
View 3 Repliesi'm working in CS3, with AS2
I'm taking a website i put together, and plopping it on a DVD.
There are 3 parts to it.
One, is the flash .exe, which brings up a small splash page with general info on me. At the bottom there are two links to webpages i made. I would like to keep all the websites files ON the DVD, and not have the end-user need to have an internet connection, although in these times, i guess i could get by that way.
2nd part, is the webpage's main page. The main page contains a flash frame, in which there are six buttons, each with AS(2) looking to a folder on the DVD, to bring up another URL in the same window. Ru:
Code:
on (release) {
getURL("D:/main/1/index.html","_self");
weird thing is, this works when on the hdd, but as soon as i put it on the DVD and try to run it from there, the main page doesn't connect/open the link I specified. I've also tried it:
Code:
getURL("1/index.html","_self");
and that doesn't work either. i'm not if i'm missing something small, but if need be, i can post a chopped down zip or rar with the files needed for someone to take a look at.
i want to integrate my own 3d renderings (avi's) convert to flv and embed into my website.
always used gif anims in the past so dont really have a clue if someone one could give me a rundown of all tools and steps/ procedures with html necessary to acheive this
im not trying to do anything too fancy, just replace the low quality gif anims on my site with some decent quality flash movies
I'm currently developing a full flash site. I've made the dropdown navigation menu with flash also. However, whenever I insert or import it into the webpage .fla, nothing works. When I preview the navigation menu swf file it works perfectly, ie, the mouseover effects, however I lose all actionscript coding when I bring it into my webpage .fla, what am I doing wrong?
View 4 RepliesI've recently uploaded my source files to my host and everything is running fine...except for one of my SWF files and I dont know whats wrong. It works when I run it on dreamweavers preview yet since I've uploaded it, it doesn't work. The file paths correct, the files are in the right folder yet still nothing. The address is doneanddone.co.nz . I already have a SWF that plays sound and that works but the video above the done and done text does not.
View 5 RepliesI am still running Flash MX (04). Because I find flash a little more useable than other progs, I am using it to create a presentation. I am creating a project that I intend to only use as a standalone SWF (not uploadable to a site or anything). I intend to play the SWF full screen on a laptop and output to an LCD projector as a presentation. I have the stage set at 1024 x 768 and am using movie clips imported/embedded (which arent the full 1024x768 but slightly smaller ), text, photo's and audio. I am nearly 2/3rds the way through and the SWF file size is growing (currently at 16 meg). I expect it to be in the region of 90 meg + or so as some audio yet to be loaded and still photos are quite size heavy. Is there any way i can get the audio to sound a little clear as when the SWF is published the sound seems to lose a little quality in the compression. Also, what is the maximum size you would recommend a standalone SWF in this scenario should/could be?
View 21 Replieshow to get output in a column in a dynamic textfield
instead of getting the output i.e.
output1, output2, output3, etc
I would like to have it as
output1
output2
output3
but I don't know how to make returns in flash - in php /n
if it's possible to dynamically output a swf from a playing swf? For example, if a user was running a swf movie and clicked a button, a swf could be dynamically published of a particular area within the swf.
View 9 RepliesI was wondering if there is any way to get an number output always in a two digit number, for example time:What my code does right now:
0:1
0:2
0:3
0:4
[code]....
I try this code... Bt when i render fla file through flash it shows output but when i jst play swf file it shows nothing
stage.addEventListener(KeyboardEvent.KEY_DOWN,KeyMovement)function KeyMovement(event:KeyboardEvent):void{ var myStr=String.fromCharCode(event.charCode) output.text="key is Pressed="+myStr}
i put an textbox on stage output but it is showing nothing...
I did a picture slide show in flash CS5 where I used actionsript 3. I added a button so that when you click it will go to the next picture. Then on the last one it will go from the last picture and reset back to the first picture. I even added some music with a stop and play button so if you are playing some music and say you get tired of it while looking through the pictures you can click the play/ stop button and it will stop.[code]...
This error occurs when I go to test movie about half way through my photo gallery this message will pop up. The thing about it is that despite the error all my images load and play correctly as they should and my sound plays and stops as I ask it too. I guess I could ignore the error seeing as how everything works 100% fine despite the error but I was just wondering if this error is something serious or if I should be concerned?
Does anyone know if it is possible to randomize assets in Flash. Basically I am creating a flash based application which when the user hits a target button the preceeding screen should show a completely random asset (which would be an SWF), at the moment each button is simply tagged to a particular swf, although i need it to be more random than this?
View 1 RepliesI'm new to flash but I have over 15 years in software and 20 in IT.In everything I have worked with so far in Flash I've used trace( message ) to put a message in the output window. Then it just stopped.
View 4 Replies/*
[Bindable]
public var rows1:ArrayCollection=new ArrayCollection([
['Google', [{Projectname:"1", Client:0},
{Projectname:"2", Client:1},
{Projectname:"3", Client:2},
[Code]...
Im working on a site with influences from this tutorial[URL]..It is basically a tutorial how you can make a 3D rotating carousel witch picturens from an external xml-file.
Although in the tutorial he makes the "buttons/pictures" go to an "output". I whould like it to go to another movie (loadMovie)
[Code]...
I am trying to load an external XML file and then output select pieces of data (location data) based on mouseover events on different objects (images of provinces). Something is wrong with my attempt to put data from the XML into the text objects I created. I think it is finding the file because when I remove the file, it balks, and when the file is present, it stops balking. But it keeps saying "Access of undefined property" or other things along the lines of "This thing is empty". My guess is that the syntax is wrong in the area below which I marked with an "ERROR HERE" comment.[code]...
View 7 RepliesI am trying to trace a fairly large 2d array (many thousands of elements) to copy in some other code. The code obviously takes a while to run but this doesn't matter to me since it's a one time thing. I used to be able to do this no problem in Flash CS5, but now Flash is truncating the text somewhere in the middle so I don't see all of it. Is there a way to disable this?
View 0 Repliesi have a flash document that contains two wav file in the library with ID name "soundloop1" and "soundloop2". and there is no other stuff except for the following code on the first frame:
_root.mySound1 = new Sound(mc1);
_root.mySound1.attachSound("soundloop1");
_root.mySound1.start(0, 50);[code]....
how come the output is 100(and it sounds like 100 too...pretty loud ) ?? what did i do wrong?
Is this even possible? (well, I guess anything is possible) I tried doing it manually, but it would be really cool if there was some way to do it dynamically. Couldn't find anything on the subject.
View 7 Repliescan I use PHP to create an XML file called AGConfig.xml on a server? AGConfig.xml is a file that is used by 2 different applications there is a config swf and a main app swf...initially you run the config swf which takes in MySQL Login information...and a event name.when you load the config swf all the fields are blank (whether or not the AGConfig.xml exists)...what I want to do is write an XML file on the server.I am wondering if its possible to do this using PHP? What I have found is that you can definitely save it to your local drive.but is it possible to output an XML file on a server? For example.my php file and flash app files are at www.somesite.com/test/ and if i run.[code]
View 3 RepliesWhat would be the best way to output a multidimensional array so that later on I could input it (through user input) and it won't be to hard to read it?
View 7 RepliesI made a button with an instance name 'go', then i made an input text box i named 'amount' (variable) and in the input text i put the number 33. Then i used the trace command in actions to see if i can make connection between them. And it seems to work fine except that a lot of scripting comes with the number in the output box. I'm using actions 2.0 in flash CS4 pro. I've never tried CS4 before and in the old versions this never came up.
This is my Actions(i like doing all in layers to get more organized):
go.onRelease = function() {
trace(amount);
}
stop();
[Code]....