ActionScript 3.0 :: Loading An XML File Which Created By Filemaker
Apr 15, 2009
I'm having a problem with loading an XML file that was created by Filemaker. Filemaker will output an XML file using one of two different grammars. One outputs in a mostly standard form that I can use with one glitch. Flash CS4 AS3 seems to have a problem with the xmlns in one of the nodes.
I have created a preloader in flash, with help from a tutorial, but it doesn't work properly. The preloader starts with loading on 100%. This is what I'm talking about:[url].......I created a smaller file to demonstrate my problem.
I created a slideshow using OOP and it works fine when I test it both in 'Test Movie" and 'Publish Preview', yet when I try to load the SWF into my site I keep getting error messages.[code]...
i'm trying to load a series of external jpg images. What to be loaded is stored in an external xml file, which indicates the folder along with the file name pattern and the number of images. This is handy since images are numbered incrementally (image_1.jpg, image_2.jpg...) Finally, i need to position these images as a strip, that is, one next to each other horizontally.
I get the info out of the xml file without issue, the url are correct (if i paste them in the browser, i see the image file) yet, it seems there is an issue with my loading mc code.
[AS] function doStrip(obj:XML) { var project = obj.firstChild; var sequences = project.childNodes;
I have writing a simple class which has a method that gets invoke when the object of the class is created. I am able to view the loaded XML content when I trace it with in my class method, but cannot assign the content to a instance variable using the mutator method. So the process goes like this:
Class object is instantiated Class construtor then calls the loadXML method which laods the XML And then assigns the XML to a class instance variable.
So now if I would like to access the loaded XML through class object, I should be able to see the loaded xml content which I am not able to see. I have spent over few hours and cannot get the class object to display the loaded XML content. .
[code]
package com.as3.app{ import flash.display.*; import flash.events.*; import flash.text.*; import flash.net.*; public class Cars extends MovieClip { public var _CarList:Object;
i've never had to do any cross scripting until now and i'm running into a (probably really stupid) error right at the start.
External SWF:i've created a new ActionScript 3.0 project in Flash Professional CS5. on the first frame i've added the following script:
[Code]...
perhaps i'm misunderstanding the nature of cross scripting or loading external swf files, but i can only seem to make this work if i've manually drawn display objects on the stage and not if the external swf's display objects are generated by code.is it not possible to load external swfs that are programatically created and add them to the display list of a main swf?
Can you addChild to a specific movieclip instance i.e. movieclip.name.addChild(movieclip). I have built a 'for loop' to render a series of 'products'. The idea being to create a movieclip, load an image into this movieclip, assign a URL and later some text.
Well the shiny new app is now 830K and needs to be preloaded. Simple eh? I've got a preloader that works nicely but I've been trying all day to find a reasonable way to load a swf that was compiled as a document class. My solution was to make a bare bones swf that would preload my main app swf:
I am trying to load an image in to a dynamically created movieclip, which is:
_root.mySlider."+stripX2(band[i][0])+i
but I can't seem to reference it. I can load the movie into _root.mySlider, but if I add the dynamic element (stripX2(band[i][0])+i) without quotes it it doesn't load. If I load with quotes i.e.
"_root.mySlider."+stripX2(band[i][0])+i
flash doesn't allow strings in movieClip variables.The code I'm using is belowm, it's the second to last line thats causing the problem:
var loadListener:Object = new Object(); loadListener.onLoadComplete = function(target_mc:MovieClip):Void { trace(">> target_mc._width: "+target_mc._width);[code]......
I was reading about Flex- JavaScript communication via ExternalInterface.But I had a doubt, it said that the javascript code should be written in the HTML file of the application ? Now which is this HTML file ? Is it the index.template.html file per project or the HTML file created per MXML application ?
I have a gallery that reads an ms access database using asp and then loops through an array of records and duplicates an empty movieclip for each record. jpeg is then loaded into the movieclip and then a variable for the _x position is incremented and then the next one is loaded etc.I then use the same method to add the necessary labels for the images by duplicating a movieclip and adding a text fieldThis is all fine and produces a gallery of images but the problem comes when I try and position the labels according to the height of the image. I have tried every method I can think of to check the image attributes which are only available when it is fully loaded, but I keep getting a value of 0.
Code: stop(); // Set variable holding image folder path
I have one problem with my swf file which I created,I created the file useing the dimentions 1024x768, for pc I need these mentions the same swf file I want to use it in some other divise which will support only 480x272 dimentions.so, without creating the same file with these dimentions, is there any posible way to resize the swf file while publishing and the devise which I want to play the swf file it will support only swf format.
When I set the 'Publishing Setting' to 'Permit Debugging', Flash never generates the swd file when the target script language is AS3.If I change the script language to AS2 it generates it.I have tried on CS3 and CS5.how to generate this swd file for AS3 projetcs?I have tried with large files and with empty files always with the same result.
I urgently need to be able to check the authenticity of a Flash CS4 file. There is no information given about author etc in the properties using Windows but I was hoping that Flash embeds author information and history.
I have created a Flash intro for my website my hosting compnay is Godaddy and the only load certain types of index files. How do I either embed or publsih this swf file to display as whole screen. When I publish as intro.htm I only get a small window in the upper right corner.
I am trying to add to my site a feature that allows users to select a set of images in Flash (AS3) click a button and have my server create a zip file of all the images for them to download.
I have already wrote my code in flash and crated my php script and tested it on my localhost and everything works great. But when I upload the same files to my sever no zip files are created. Below is the code for both my flash and for my php.
Localhost server is using 5.2.17 and so if my Server hosted on 1&1
Flash Code To Send Info to PHP
Code:
function MakeZip():void { var variables:URLVariables = new URLVariables(); //variables.Image1=img1; variables.ImageList=OrderItems;
I have a SWF file I created using Adobe Flex and I cannot seem to properly embed it inside an HTML page. If I take another SWF file and use it instead, it works all the time. My SWF file is pretty big (1 MB) while the other one is tiny (25 KB). However, I can wait 5-10 minutes and the server connection is super fast and it still will never load. Is there something I need to do to the SWF to have it start up properly? My SWF almost never runs.
I am trying to add to my site a feature that allows users to select a set of images in Flash (AS3) click a button and have my server create a zip file of all the images for them to download.
I have already wrote my code in flash and crated my php script and tested it on my localhost and everything works great. But when I upload the same files to my sever no zip files are created. Below is the code for both my flash and for my php.
Localhost server is using 5.2.17 and so if my Server hosted on 1&1
Flash Code To Send Info to PHP
function MakeZip():void { var variables:URLVariables = new URLVariables(); //variables.Image1=img1;
I downloaded a flash app the other day. I can't put links since I don't have 50 posts, but if you type Dj Mixer on ActiveDen, it should come up.Basicly, it allows you to put sounds in a folder, add them to an XML file and the flash application acts as a mixer with a timeline. You can select which loop you want at what time and create your own track.There's one thing though, it doesn't allow you to export the sound. I have no experience in that area so I was wondering 2 things:- What would exporting the sound in an .mp3 format from the compiled sound loops involve in terms of complexity? Can this be done in a short time frame or is this something that requires a lot of knowledge and ressources?- Once the exporting to .mp3 part is done, I wanted to able to take that .mp3 and send it to my phone. Do you guys know of any Websites that offer a suitable solution for this?
I habitually create my websites with a stage size of 950 x 580. They tend to appear slightly small in any browser which is ok because they can all normally be "zoomed-in" on using the browser zoom functions.
I have just created a site which loads several external .swf's into a main movie clip and the browser zoom works fine UNTIL I incorporate a further .swf which was created from a PDF file (using swfTools - pdf2swf).
This seems to disable the normal browser zoom with the effect that everything is just moved up and left a little rather than remaining centred and enlarging.
So I've created an interactive map that loads info in from a csv file and displays that information on 120 cities with a radius around each city.The cities have been manually placed on the map and the data is sent to them from a custom function.The problem I'm having is with the RollOver effect on the radius as some of my cities end up underneath the other ones as the radius grow and subtract through a timeline.I'm just wondering of the best way to give each city a set depth and then arrange the depth order within a set number of depths.Should I attempt to put all the cities in an array that way I can check the size of each city in the array and order the depth = to the value of the radius size.
I created a movie that loads an XML file into flash and then.. does stuff with it (Like put text into text fields)My problem is that it works when I test it on my computer, but when I upload it and test it on my website, the XML file doesnt load.The movie is the XML load into has been loaded dynamically, as has the one above it (Like this: Lobby Clip > Games room clip > newgames Clip)