ActionScript 2.0 :: Flash Only Load 35 Of 41 XML ChildNodes
Dec 3, 2007I'm having trouble loading a XML file with AS2.0. I'll copy&paste a reduced version of my XML.
[Code].....
I'm having trouble loading a XML file with AS2.0. I'll copy&paste a reduced version of my XML.
[Code].....
Here is my XML that holds all images. I want the to get the childNodes of subcategory, sub1, sub2, sub3 etc...
< allImages>
<images>
<category>Architecture</category>[code]...........
Inside my XML file, I want to have multiple child nodes nested in a parent node. But when I try to trace out the multiple child nodes, I only get the first child node in the trace, despite using "@" wildcard. Is it because the childnodes are named the same?
Code:
<gallery>
<project>
<desc>Description</desc>
[code]....
I currently have some XML which looks like this:[code] I don't have any <discount> in my second listing. The content of <discount> is being displayed upon some graphic which I'm tweening around. However if there's no discount, I want to set this movieclip to ._visible = false - since its pointless to have it tweening around when there's no text on it.How on earth would I check if <discount> exists or doesn't? In most cases it will be there, but in a few it won't.[code]
View 2 RepliesI am trying to build xml menu. Some nodes have childNodes some don't. I have a problem in my array loop : the movieclip that I use to create subMenu attached to the entire array. How can I make that the movieclip that I use for subMenu only attach to the nodes that having childNodes?
Here's the code :
Code:
function buildingMenu(){
buttonArray = myXml.firstChild.childNodes;
for (var i=0;i<buttonArray.length;i++)
{
[code]....
Is there a way to add ".childNodes[0]" to a var? Like if I have:
myVar = this.firstChild.childNodes[0].firstChild.nodeValue;
And if the user push a button I want myVar to be;
myVar = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
I'm workig on my portfolio and here is what Im running into...en I debug my fla the following XML shows up with extra "xmlobj.childNodes[1].childNodes["Right here"]hen I browse the file in the debugger (variables section) instead of 0,1 and 2 for childNodes the are 0-5??? and every other one is all null values... also they show up as [1] [2] [3] directly under xmlobj when I expand it can anyone tell me whats up with my xml? if its my script or you think it is I'll post the code/fla if I need to... alsoMy xml will be dynamically created via a php -> mysql script eventually (I have that worked out I just need to get this working so I can properly format my php-> xml output for flash which is what I think my problem is.
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<ROOT>
[code].....
[Code]...
THE ABOVE NEEDS TO BE MODIFIED TO ALLOW MULIPLE EVENTS... I'VE BEEN WORKING ON IT FOR DAYS....
[Code]....
I'm trying to get my XML info into movieclips called "button_1" - "button_7" I have my XML ChildNodes showing up in my output window when I export my swf. I used the xml class to load into an xml instance So how do I assign the data to my movieclips.
Here's my code thus far:
stop();
import flash.display.*;
import flash.events.*;
import flash.net.URLRequest;import flash.net.URLVariables;
var numOfImages = 90;var imgNum = 0;
[Code] .....
[Code]...
I it to randomly pick one of the childNodes and display it in the container. I tried to place in a Math.random(); but I wasn't sure where to put it.
I have a movie clip in my library linked as aboutUsMenuBtn. And I as get the childNodes.nodeName from the XML file, I want them to be assigned to a dynamic text field "btn_txt" inside of the aboutUsMenuBtn. With each node, a button is going to be attached to the aboutUs stage (I'm working using a Flash Form Application).
[Code]...
I am trying to use Kirupa's XML drop down menu(action script 2.0): aka: [URL] however I cannot have it output the childNode. This is because it is using a for loop with the curr_item variable. when I try to trace the for loop count variable, it just returns the last for loop variable. I basically want it so that when I click on a button on the 3rd tier submenu, I want it to output all the prior tiers that the button belongs in.
View 2 RepliesAn IE issue has me completely stumped. I have a coldfusion page that uses JQuery's AJAX .load function to load in a new flash file that is generated by coldFusion's cfchart tag. This works completely fine in firefox: the new flash file and new html elements load. However in IE: all of the html elements that are geneated with the flash object are loaded, except the flash object and embed tags do not show up at all after running an ajax call in IE. After looking in Fiddler, the flash application type response data doesnt even show up for IE. It does however for Firefox.I thought maybe it has to do with any kind of media, so i changed the chart type to output as a jpg file instead of flash. And it loads completely fine in IE. So something is preventing IE from receiving the flash response data.Here's what i've done so far - and no luck so far:
Added to the HTML header: <META
HTTP-EQUIV="CACHE-CONTROL"
CONTENT="NO-CACHE"><META
[code]....
I need some help? Anyone experience this problem before with IE8 FLASH bug? Can not get this to work on all subsequent refresh to the flash. I have a flash piece which simply renders only on the first initial load. After that, if i refresh or visit the page, it does not load correctly. It seems I am having this problem with the swf only on subsequent loading of the page or whenever a refresh happens.
View 1 RepliesI am working with a project that has many scenes. Each scene has a movie clip attached to it. The first scene is simple...just a couple of buttons and that is it. My worry is that when I add all of the videos that correspond with each button and publish the SWF will be a huge file. THE QUESTION: Does flash load ALL scenes of a movie or does it load the first scene and then load the other scenes when the user needs to view them?
My ultimate goal is to just have the first scene load and then when the user clicks on the buttons contained within that scene that only upon release does the corresponding scene load. Maybe I am doing this completely wrong and should look at doing it another way.
I cannot get animated gif to display before flash movie loads. I am using this script but does not seem to work. I do not want to use a flash loader.
<script type="text/javascript">
var image = new Image();
image.src = 'http://www.hmaimages.com/MN/flash_loader/loading.gif';
</script>
What is the best way to load a big load of variables into Flash? There must be a way to do this withLoadVars and a for-loop.my txt file:
Code:
&prijsvraag_titel=Title of the prijsvraag&
&aantal_vragen=3&[code].....
I'm loading a background into a background container with the following code:
loadMovie("backgrounds/bkg_wht.swf",bgContainer);
I'd like it to load in a 4 second alpha fading load instead of just a hard load. Any ideas what code I need to write?
I want to build a software in Flash which can do below things Load Video from the server Load Documents PDF/DOC from Server
View 1 RepliesHere's the site: [URL] From feedback I've gotten, it appears that under certain circumstances the first image in a set of images does not load properly, although I haven't seen it myself. I'm told this happens only in Firefox. And I believe only Flash player 8. Works fine with FF and Flash player 9, or IE with 8 or 9 I believe.
View 14 RepliesI'm editing a flash web template in Flash pro (cs5.5 master collection) . I have a horz scrolling calendar with event and direction links in each day. The calendar is Html/css/ and jQuery. If I Build a single Html page that loads the CSS and jQuery and contains all the calls and Content text and I call/display this in a flash box in my "movie"
View 4 Replieslook @ the source for this page [URL] It works great in all Webkit/Mozilla browers but in IE 9 we can only see the top half of the swf and in IE 8 it doesnt load @ all. I searched all the other threads and nothing seems to work
View 1 RepliesI am trying to create a flash viewer, which will load various other flash movies. The viewer will be in the root directory, but the flash movies it will load are a few directories deep. Those movies access various sound clips that are in an audio directory relative to each swf I want to load.[code]It seems that when I load one of these movies into my viewer, the loaded movie is looking for the sounds in an audio folder in the root directory, and not relative to the swf I loaded. Is there a way to set this? I would rather not have to make the changes in each of my other movies to use the absolute path.[code]
View 2 RepliesI`m currently working on a website in flash which is going to be kinda like a blog. The swf loads in in two files for each "post", one image and one text file. I already know how to do that. But the website has to be update able without using flash. How would you do this? I thought i maybe could have one folder named "posts" and in that folder i could have folders named something like "post1", "post2" etc. And the post with the highest number would be the newest one. Something like this:
Can flash read directories on the server? (but i cant get the search to work. Neither in Chrome nor IE. I just get HTTP error 500)
I am developing a site and want to use http:[url]... within it. I also want to use that gallery from within my own Flash movie using loadMovie.I have tried a couple of ways to load variables into the movie but just cant seem to get it to work.load the Flash Gallery into a Flash movie.
View 2 Repliesso i got my page set up pretty much, to sumarize its mostly 3 divs. one with a flsh banner, one with a flash menu, and the other is the content div, with html in it. you click on a link in the flash menu and it loads one of six different pages. but i came to realize that every page has the same banner and menu in it. it would be nice not to have to reload them every time. is there a way to just load different html in the content div by clicking something in the menu?
View 3 RepliesWhat's the deal with multiple requests for the same external asset? Does the Flash Player cache and therefore ignore requests for the same file, or will it reload the file?
View 1 RepliesI have a rotaing menu that loads in images from an xml file, I would also like it to load in text info from the same xml file to the left side of the images that load in. In my main .fla have created a movieclip and called it 'textInfo' and inside that I have two dynamic text fields called 'headerText' and 'bodyText' where I want to load the text in. this is what I am using to loading in the text in my actionscript, is this correct?
[Code]...
I'm using loadMovie() to load external swf's and then send the swf to a specific frame, depending on the button that is pressed.
Code:
on(release){
_root.mc_mainloader.loadMovie("Main.swf")
_root.mc_mainloader.gotoAndPlay("fadeup");
}
Unfortunately it ignores the second line, which appears to be because the movie hasn't loaded by time it gets to the next line. As a work-around I made an interval to check for the movieclip width to be more than 0 and then run a function that chooses the desired frame, but this is very unreliable. Is there a simple way to load the clip and wait until it is finished, then immediately choose a frame on load?
I have a Flex application that just load an external SWF, but the application load and unload infinitely my swf.
[Code]...