Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








XML Output


Hi,

This might be a bit difficult but I am hoping someone has already done this before. I am trying to output the contents of an XML file on the page but in a list type format. I can achieve this with images creating a new empty movie clip a number of times on a page and the results display under each other, similar to a datagrid.

Here is a breakdown:

My XML has 3 entered books, book 01, book 02, book 03. Each book has a thumbnail image, title, author and link.

When I run a loop to get the details of each node it works perfect for the thumbnail because of the create empty movie clip but how would I achive the same results but for text boxes because if I run the same loop for the text boxes I only get the last value.

Thanks in advance




Adobe > ActionScript 1 and 2
Posted on: 10/14/2007 10:36:17 PM


View Complete Forum Thread with Replies

Sponsored Links:

[F8] Can I Trace Output On The Stage Instead Of In The Output Window?
Hi - I'm trying to create a function that divides an inputted number by everything from 1 up to that number. (The aim is to create a .swf movie that will give you the factors of any number you put in.)

I can get the outputs in the output window that I want, but I need now to get them somewhere on the stage itself in a dynamic text box.

This is the script that gives me the correct outputs:
(I have a button named 'ok2' and the input textField is 'Input2')

code:
ok2.onPress = function():Void {
var nInputnumber:String = Input2.text;
for (i=1; i<=Number(nInputnumber); i++) {
var nOutfactors:Array = [];
nOutfactors[i] = (Number(nInputnumber)/i);
trace(nOutfactors[i]);
}
};

What do I need to do to get these to appear onStage instead of in the output panel?

I have tried myDynamictexfield.text = nOutfactors[i], but it will only show the last value for it, not all the ones inbetween.

HELP!!!

Sorry if this is a stupid question - it's the first one i've posted. It's just that if I can't figure this out soon, I may have to throw my laptop at a wall....

View Replies !    View Related
Reading Xml Output Form Php Output
Is it possible to read xml output instead from a xml file?

The xml will be output from a xml file which generate from a database.

so if you do

var myxml:XML=new XML();
myxml.load("http://xxx.mm/product.xml");

But if i do
myxml.load("http://xxx.mm/product.php");
where the php will output the a xml data. will this work? Does it work the same??

Can someone point to the some code sample on how to do this?
I Search the web but can't find much answer on this one...

Thanks

View Replies !    View Related
Output Window Not Displaying Output
Ok, this is a wierd one.

All of a sudden the output window is not displaying any of my output.For instance, i can have a simple movie, 1 frame, with the action:

trace("hi");

when I test it, the output window pops up, but nothing is in it.

Anyone ever seen this before?

-adam

View Replies !    View Related
Redirect Output Panel Output
Hello all:

Anyone know of a way to redirect errors thrown by Flash in the Output Panel to somewhere else (i.e. a text field). Reason being I am conversing with client and we cannot seem to pinpoint the error occuring, it works on my end but not theirs, and obviously they are running blind without any sort of errors being thrown. So if anyone knows of any other way to accomplish what I'm after that would be great.

Thanks,

John

View Replies !    View Related
[F8]Why Won't My Output Window Output Anything?
A quickie:

At some point my Output window stopped displaying error messages. It still pops up, I assume if there's a problem. But it's blank and the scrollbar is disabled. Is there an option I missed somewhere?

-Jeff

View Replies !    View Related
Has Anyone Had The "Output Window" No Longer Output Anything?
I'm working on Flash MX Proffessional 2004 with the latest 7.0.1 update. My "Output Window" suddenly stopped showing me my traces as well as any syntax errors!?

Any idea why this happened???

Cheers,
Schimke

View Replies !    View Related
Output Says.....
Symbol=m00, Layer=Layer 2, Frame=1: Line 1: Statement must appear within on handler
loadMovieNum("12.swf", 2);


What does it means by 'must appear within the handler'. I assigned the above actionscript to a button on Layer 1. What am I missing?

View Replies !    View Related
Where Is My Output
I'm pretty new to Flash so I'm watching some video learning stuff on "Action Script".
i have "Flash MX 2004" on a Mac
my problem is that when i type a simple script like

trace ("test text");

then test movie, i get no output in the output palette.
i checked the syntax and every this seems fine but no output is being displayed. just a blank output palette. is there a setting or something that I'm missing?
Has anyone els had this problem or maybe my trace statement is wrong?

Help

View Replies !    View Related
Flv Output
I am still a bit confused...

I need to find some software that will output to .flv (I assume). My whole objective is to create flash video files out of existing media (digital and analog, many formats) which can be served via streaming video in a flash browser/viewer that is being designed for me.

Will a program like Sorenson Squeeze for Flash MX run independantly of Flash to create these files, or will I need to purchase Flash itself. It seems as though "for Flash MX" would imply that this program is a plug-in....

I will not need to do any editing, etc., simply convert and upload. What do you guys recommend?

thanks!

View Replies !    View Related
How To Output
i was wondering, how do i output text to the flash window? i just got familiar with trace, but it doesn't output to a flash window. thanks.

View Replies !    View Related
XML Output - Nearly There.
Hi, i hav this code displaying the album id from my xml. I want to change it so that it will display the track titles for an album

xml attached - cheers ben.

Additionaly i would like to display the output in a text field? any ideas?

action script:

for (var n = 0; n<xmlDoc_xml.firstChild.childNodes.length; n++) {
if (xmlDoc_xml.firstChild.childNodes[n].nodeName == "Album") {
trace(xmlDoc_xml.firstChild.childNodes[n].firstChild.firstChild.nodeValue);
} else {
trace(xmlDoc_xml.firstChild.childNodes[n].firstChild.nodeValue);
}
}
}

View Replies !    View Related
Output Help :)
haha, ok. so now everytime i test my movie the "output" is popping up. im not getting any erros or anything, that used to be the only time it would show up.... so could somebody tell me how to make it stay away till i get an error?

View Replies !    View Related
Var Txt Output Help
ok im away simular things have been posted before but they dont really help me so can some one help me or redirect me to something that will

ok heres my problem
i made a game for my website in flash and i know how to read for a file but i want to know how i can save a hi score from flash to a txt document. preferably straight from flash to txt if not i may need a bit more help. im newish to action script but know ho to do alot of the other stuff in it but not the save function.
so i just want to have someone play the game and as they get a hiscore it updates the old one so every one who goes on the site, just a number save, no name save, just so people no what the highest score on the game is

i hope you can help me
thanx
XXXX
Akumu - ShadowMedia

View Replies !    View Related
Output Xml Value
_tracks[i].childNodes[0]

<title>value</title>

how do I get the value only out?

thanks for help

View Replies !    View Related
No Output For AS3
I've just installed CS3 on my laptop and I have run into some weird behavior. If I open an AS2 fla and type trace("This is a test"); in frame one and hit cntl-enter, I get the expected output in the window. If I open an AS3 fla and do the same thing, I get no output. I also get no errors or any indication of a problem -- the output window stays blank. WTF?

I should also mention that I am running Vista, and that the same software loaded on my desktop machine works just fine.

View Replies !    View Related
Mac - Pc Different Output
Hi there;

I've got this really weird problem...
My mac and my pc create different .swf's from the identical same file... but they both play like they were exported... on both platforms...

can anyone check if both files look identical to you or do you guys see differences too?

robin

the files are:

macfile
and
pcfile


help? this really isn't funny...

View Replies !    View Related
Output
i have this problem with my output. I'm learning actionscript through this tutorial and it's showing that you can use trace to trace the value of a variable. For example:

var nQuantity:Number = 5;
if(nQuantity == 5) {
trace("Yes, the condition was met");
}

it's suppose to show the string, "Yes, the conditon was met" on the output panel. but it comes out empty on mines... why is that? anyone knows?

View Replies !    View Related
AVI Output
Hi guys. I have a pretty large scale flash file I'm using for credits in a movie I am creating--I'm utilizing flash-specific features, that can't really be duplicated in say... after effects or premiere. The only problem I'm having with it is when exporting to avi so I can import into Premiere, if the file gets any larger than 4 GB, it's riuns it and it will not play. If I cancel it before it gets that big, the file plays fine.

This is using uncompressed , because neither video 1 are providing me with the quality I need / give me random problems, like jumpy graphics.

I've read some info on something to do with window's AVI temp file has a 4gb limit or something on it, etc.

Anyone have any suggestions for how to get around this?

View Replies !    View Related
Output Gone?
Hi All

Very strange but for some reason none of my flash files are out putting any
information ie trace etc even when i select show objects the output screen
is empty??

Dont think ive changed any settings....




Any ideas?

View Replies !    View Related
XML Output From PHP
I would like to produce the following xml document from PHP

<slideshow>
<photo url="DO NOT DELETE ME" day= "6" month= "FEBRUARY" description="Current Day Description" />
<photo url="DO NOT DELETE ME" day= "7" month= "FEBRUARY" description="Day 2 Description" />
<photo url="DO NOT DELETE ME" day= "8" month= "FEBRUARY" description="Day 3 Description" />
<photo url="DO NOT DELETE ME" day= "9" month= "FEBRUARY" description="Day 4 Description" />
<photo url="DO NOT DELETE ME" day= "10" month= "FEBRUARY" description="Day 5 Description" />
<photo url="DO NOT DELETE ME" day= "11" month= "FEBRUARY" description="Day 6 Description" />
<photo url="DO NOT DELETE ME" day= "12" month= "FEBRUARY" description="Day 7 Description" />
</slideshow>









Here is the PHP that I have

$xml_output = "<?xml version="1.0"?>
";
$xml_output .= "<slideshow>
";

foreach($result as $row) {


$xml_output .= " <month ="".$row['eventStartDate'] ."" />
";
$xml_output .= " <day ="".$row['eventEndDate'] ."" />
";
$xml_output .= " <description ="".$row['eventSummary'] ."" />
";



// Escaping illegal characters
$row['imagedesc'] = str_replace("&", "&", $row['imagedesc']);
$row['imagedesc'] = str_replace("<", "<", $row['imagedesc']);
$row['imagedesc'] = str_replace(">", ">", $row['imagedesc']);
$row['imagedesc'] = str_replace(""", """, $row['imagedesc']);
}

$xml_output .= "<slideshow>";

echo $xml_output;

View Replies !    View Related
XML Output
Can somebody give me the code to ouput this xml from php.


<?xml version="1.0" encoding="ISO-8859-1"?>

<Events>

<event day= "6" month= "FEBRUARY" description="Day 1 Description" />
<event day= "7" month= "FEBRUARY" description="Day 2 Description" />
<event day= "8" month= "FEBRUARY" description="Day 3 Description" />
<event day= "9" month= "FEBRUARY" description="Day 4 Description" />
<event day= "10" month= "FEBRUARY" description="Day 5 Description" />
<event day= "11" month= "FEBRUARY" description="Day 6 Description" />
<event day= "12" month= "FEBRUARY" description="Day 7 Description" />

</Events>

View Replies !    View Related
Output To Jpg...
I am trying to create a flash movie that allows the user to click a button to dynamically create a jpg screenshot of the movie.

I keep coming across this demo: http://www.flash-db.com/Tutorials/snapshot/snapshot.php?page=1

I have tried it in the past with no success. Has anyone either
a)Gotten this demo to work?
b)Come across another tutorial on how to accomplish this?

I greatly appreciate any advice...

View Replies !    View Related
Output Error What Does It Mean?
Target not found: Target="this.Text Scroller" Base="_level0.instance15"

Target not found: Target="_root.Plan9.scroll" Base="_level0.instance15"

Anybody any ideas what this means. Heres the test site. The error above is something to do with the scrolling arrows. Takes a while to load. Be patient!

http://www16.brinkster.com/darth84/int2.swf

View Replies !    View Related
Formating Output
hi all, this is my first post.
I have a litle problem, im working in a preloader with lots of information and i would like to format my output box of bit rate Kb/s.
My current out put its something like Ex.: 15 Kb/s
and i wanted like 15.21 Kb/s
is there anyway i could do it?

bit_rateKbs = int(bps/1024) add " Kb/s";

thanx all

View Replies !    View Related
Input/output
ive already posted this question, and the replys still havent solved this simple problem.

the advice seemed good enough, except i must be missing something.

problem: ive got an input textbox on the main stage, i want to display this input in a movieclip, also on the main stage, later in the timeline.
whatever i do i just cant target the movieclip correctly, also where do i put the targeting actionscript .

i think it is something simple that im missing please help cos it's realy holding up my progress.

cheers rat

View Replies !    View Related
Output Cdata
Good afternoon everyone.

Im looking for a way to output XML Cdata nodes to my asp.

I have created a Content Management system that allows the user to format text using html tags - so far so good. However to retain the html tags i would like to save the data withing Cdata nodes.

Everytime I try to do this certain characters are escaped, and this seems to me to be a waste of time as I might as well escape the whole thing. I dont want to have to urlencode all my data before it goes into an xml node.

View Replies !    View Related
Output MC Positions From SWF?
I wanted to make an application where users could drag elements onto a "screen". Is there a way for me to record where people leave the elements or to output what is on the screen to another format?

Any code help or ideas would be appreciated.

View Replies !    View Related
MX Output Window DOA?
Friends,

My output window isn't outputting?

//Insert personal problem joke here.

All of my .fla files work just fine but one. Even when I force a trace command the output window just stares at me. Nothing. If I create a new file it works fine. Go back to the old one, nada.

Is there a way to disable output?


Thanks

-Layne

View Replies !    View Related
Creating For CD Rom Output
I've been given the task of creating a CD-Rom that displays a series of .pdf files. I wanted to use flash to create the openning screen and scroll through screens and link them to the .pdf files.

This CD-Rom has to be viewable by Mac and PC.

First of all is it possible? Second, how do I go about this? Is the key to export the file as a projector file? One for the Mac and one for the PC and save both on the disk?

Help

Maria

View Replies !    View Related
Dragable Output Box
Hi all,

'have the following problem: I'm trying to make an output box which is draggable with the mouse in vertical direction only (within certain
upper and lower limit).

Dependend on the vertical position it should make a calculation.
So if the _y position = 100 it should output i.e. 100 * variable
and after dragging the output box to _y position 110 it should output 110 * variable.

Hope you know what I mean. In this link I put my newbies unsuccesful attempt:

http://home.hccnet.nl/m.dijk/drag/

Expert help is highly appreciated !

View Replies !    View Related
Strange Output
Hi there, When I uses this code, it's gonna output 3 digits, while the other (min and sec) only outputs 2 digits.

This is the code for mili

mili = gT-min*60000-sec*1000;

And this is the code where I use it's output

tijd= (min < 10 ? "0"+min : min ) + " : " + (sec < 10 ? "0"+sec : sec) + " : " + (mili < 10 ? "0"+ mili : mili);

Really strange and I don't understand why....

The outputs looks like

00:01:738

Anyone?

View Replies !    View Related
Output An Array For TB Map?
I need to create a process to output an array for maps in my tilebased game. How should I go about something like that?

-Tyler

View Replies !    View Related
A Way To Save SWF Output?
Is there a way to save anything in a SWF? Like if I have random lines drawn on it and I want to save what it drew?

View Replies !    View Related
Input/output
Hi,
Hope someone can help.

I have one input text field which I want to send text to many output text fields.
For example:
user types in input text field-presses enter_btn-
text sent to output1-input text field clears.

user types in input text field-presses enter_btn-
text sent to output2-input text field clears.

and so on...

Yep, so I always need the input text field to clear everytime a user clicks enter. As well as keep telling the input field to send to another # output field.
Thanks

View Replies !    View Related
Text Box Output
Ok if you check out my chat program at:

http://www.swgfreak.com/k/chat.swf

You will see that any new text entered is added to the bottom. Is there a way to like flip the text box so it pushes text up when new text is added, instead of just going further and further down.

View Replies !    View Related
Output From Flash
I am working on a program that will output a publication advertising layout once data has been entered.

What are the options, in Flash, for outputting the resultant page(s)? Can an image be created from that page/frame and emailed to someone? I recently read an article about a designer printing Postscript files from Flash of the current frame and then opening them in Freehand. Can this be automated?

Any suggestions/comments??

thanks!

View Replies !    View Related
XML Output To File
Can anyone help me with appending childnodes to an xml file? I have a basic login kinda thing working by authenticating to an XML file but I'm now faced with the task of being able to add new users. I need to append a childnode with attributes, to the loaded XML file. This is not for a web-application, the XML file is local.

Thanks,

Mercury.

View Replies !    View Related
TextField Output In XML
My company has asked me to develop a Flash-based rich text editor similar to the one in Component Set 2. The catch (and the reason I am not just using the component set version) is that I need to export the rich text based on our internal XML scheme. For example, if the user enters text into the editor and makes it bold, then the output of this text editor needs to be: <bold_text>Some random text</bold_text>. I have been toying around with the TextField, TextFormat, and XML objects in Flash MX, and have not come to a viable solution.

Is it possible to customize the HTML mark-up applied by the TextField/TextFormat objects?
Is there a way to tell the TextField/TextFormat objects to use XML instead of HTML?
Is it possible to send the text with its associated TextFormat properties to an ASP and just let the ASP do the parsing?
Am I thinking about this in the wrong way? Should I approach the problem differently?

These are just a few of the ideas running through my head. I was wondering if any of you had any ideas of a good way to approach this.

Thanks in advance for any help!

-Aaron

View Replies !    View Related
Output On Screen ?
Hello, i have a code in my flashmovie that shows me six numbers on my output ( when i test it ). Now, how do i get that output numbers on my screen ?

this is the code:

function myRandom (minVal, maxVal) {
return minVal + Math.floor(Math.random() * (maxVal + 1 - minVal));
}

var i=0;
var number = new Array(6);



for (i=0;i<6;i++) {

number[i] = Math.floor(myRandom( ((i*50)/6)+1, ((i+1)*50)/6)+1);

trace(number[i]);
}

View Replies !    View Related
Output From Flash
Is there a way either internal or external to Flash to output to a text file the contents in a Flash file? (ie. the text file will list the frame number and what graphics and such are on each frame and also whatever text will print out in full)

thanks
siko

View Replies !    View Related
Action Output
Hi Guys I am a newbee to Flash and on the movie I made evertime I try
to publish it I get this output that says scene=scene 1, layer=button
Frame=255: line 2:',' or ',' expected getURL (http://joekid.tripod.com/flash.html, "blank"); will some one please tell me what its trying to tell me.thank you for your help.

View Replies !    View Related
Bug?: No Trace Output - And How To Fix
While working on a project in FMX 2004 7.01 for many hours, it "suddenly started" to not output any trace commands. No matter what I tried (opening the output window manually, putting a trace("Hello!"); in the first keyframe of the root timeline, etc)...nadda...no trace!

I saved the file then restarted Flash - same result.

I opened a previous version of the file (from a few hours earlier) and the traces worked fine!

Pissed about the potential hours of lost work revertng back to the earlier version...I was determined to figure out the prob. So I did!

I realized that shortly before I noticed the trace prob, I had publish the file for browser testing. And, like I always do, I checked the "omit trace actions" option.

Hrmm!

I go into the publish settings and uncheck the omit option - but still no traces.

I then publish the file again with the omit option UNchecked. Then Test Scene...and walah! Trace output is now back!

I save the file and then reopen and trace is still working.

So, in summary, publishing with the omit trace option checked seems to (at least in my case) somehow omit trace options for the project itself. Odd.

I dont know if this is an issue/bug with the Flash enviornment or some kind of flag is saved in the project file. I restarted Flash but did not trying opening a different project while the traces werent working.

Anyway...hope this helps if you run into the same problem

Ahhhk!

View Replies !    View Related
Text Output
Ok, I'm making my first flash mx page, but I can't figure how to make a text output.

I have several text input boxes, but how can I make a txt file out of it?

THX

View Replies !    View Related
Output To Txt File
I have a Flash game in the works and I would like to have the players' names and scores exported to an external text file. How would I go about doing this?

View Replies !    View Related
Image Output
Is it possible for Flash to output content from a defined area on the stage (from the swf not from the fla) as an image like a jpg, png or gif?

View Replies !    View Related
Output Error
I loaded a .swf file to my flash. When I tested the movie, it gave me the error message "Target not found: Target="effect24" Base="_level1"

What does that mean? How do I fix it?

Thanks tons!

View Replies !    View Related
Output Panel
Hi,

How do I stop the Output panel opening almost to cover the whole screen whenever an output message arises?

Cheers,

CN.

View Replies !    View Related
What Is The Output Of XML.send()
Sorry, I'm sort of dumb. How does XML.send() format the XML in the header? I don't know how to deal with it on the other end. Does it come in as a variable, or as the entire header? Do you understand what I mean?

View Replies !    View Related
Error Output
whenever I try to check the syntax of some code or something, flash detects errors, but doesn't display anything in the output box. the same happens with testing the movie. does anyone know how to get it to display them?

View Replies !    View Related
Function Output
Hi there guys, basically I'm having difficulty stopping calculations from a fadein/fadeout function that controls three mc's depending on where you are on the stage. Once you have entered one area of the stage the output window keeps showing calculations running. All of the code works great it's just that i want to stop the calculations once it's done the right thing (this obviously makes the file player slower). Here's my code:

Code:
MovieClip.prototype.fadein = function(a) {
this.onEnterFrame = function() {
if (a<100) {
trace(this._alpha);
this._alpha += 5;
delete this.onEnterFrame;
if (this._alpha>100) {
this._alpha = 100;
delete this.onEnterFrame;
}
}
};
};
MovieClip.prototype.fadeout = function(f) {
this.onEnterFrame = function() {
if (f<100) {
trace(this._alpha);
this._alpha -= 5;
delete this.onEnterFrame;
if (this._alpha<0) {
this._alpha = 0;
delete this.onEnterFrame;
}
}
};
};
onEnterFrame = function () {
if (_root._xmouse>0 && _root._xmouse<500 && _root._ymouse<230 && _root._ymouse>0) {
faceup_mc._alpha = a;
faceup_mc.fadein(a);
faceon_mc.fadeout(f);
faceside_mc.fadeout(f);
}
if (_root._xmouse>0 && _root._xmouse<500 && _root._ymouse<600 && _root._ymouse>230) {
faceside_mc._alpha = a;
faceside_mc.fadein(a);
faceon_mc.fadeout(f);
faceup_mc.fadeout(f);
}
if (_root._xmouse>500 && _root._xmouse<800 && _root._ymouse<800 && _root._ymouse>0) {
faceon_mc._alpha = a;
faceon_mc.fadein(a);
faceup_mc.fadeout(f);
faceside_mc.fadeout(f);
}
};
thanks for the help guys.

View Replies !    View Related
Combo Box Output
I am trying to getting the output from two combo boxes to be displayed into two text boxes. I keep getting the Level0 error i.e Level0.iploca.

I am obviously doing something which is a result of too much drink earlier on in my life. Can anyone point me in the right direction. When I do one combox it seems to work fine?

//Combox
function comboDisplay (component2) {
combo = component2.getSelectedItem().data;
trace ( combo );
}
// Function to the combobox
iploca.setChangeHandler ("comboDisplay") ;
pomStyle.addListener(iploca);
_root.result1.text = ""+ iploca +""

function comboDisplay (component3) {
combo = component3.getSelectedItem().data;
trace ( combo );
}
// Function to the combobox
ipd.setChangeHandler ("comboDisplay") ;
pomStyle.addListener(ipd);
resultipd.text= ""+ipd+""

Many thank

E2I

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved