ActionScript 3.0 :: Load ASP Generated XML?
Dec 11, 2009Keep getting this error when trying to load some asp generated xml into flash [code]...
View 4 RepliesKeep getting this error when trying to load some asp generated xml into flash [code]...
View 4 RepliesI'm using a PHP script to generate a thumb dynamically and then using AS3 to retrive the thumb.
Flash is not throwing any errors but it's never firing the complete event for some reason.[code]...
I'm not quite sure how to describe the problem I'm having but I'll do my best. I have an image gallery built in AS3 that loads content via an XML file. Nothing mind blowing here... When testing locally on a static XML file, the gallery works as intended. The purpose of this gallery is to function within a CMS and load dynamically generated XML files to display the appropriate images/info for each particular gallery. All this functions fine, to an extent...
[Code]...
I am attempting to load a dynamically generated image into flash (AS 2.0) using loadMovie.
The image is being generated by a php script on the server in real time using the following php code:
[Code]......
If I call the php script directly, the image displays correctly. If I embed it in html via an image tag it also works correctly. However I can't get flash to load it.
I am wondering if it is because the url I am trying to load has a .php in it. I am wondering if flash thinks it is a .php page, instead of an image.
(btw, I have fully debugged everything else I can think of. The above actionscript works if I replace the url with the url of a static image. I also traced out the url being generated and tested to make sure that the url that the script is generating is correct)
I know as soon something with problem comes here in this forum it can get RESOLVEDNow what is my problem, well i will like to know how can i get this dynamic XML generated with PHP into flash.I want to create a simple gallery that reads this generated XML and adds movieclip childs.On the stage I have a large Movieclip with instance name mcDisplayLargeand a Movieclip with instance name mcImgThumbs
PHP FILE: dynamic_xml.php
header("Content-Type: text/xml"); //set the content type to xml// Initialize the xmlOutput variable$xmlBody = '<?xml version="1.0" encoding="ISO-8859-1"?>';$dir = "images/gallery1/";
[code].......
I have a SWF file. It can generate Jpeg images. I want to get that images by url (for ex www.my.com/file.swf#image.jpeg) I want to get just clean image (no flash no sign of flash). So as if i was just calling my apache server to give me that image.
View 1 RepliesI was viewing a page just now and got the error box popup telling me of a runtime error in a .swf The problem is, there are multiple .swfs on the page, and I do not know which one generated the error.
View 1 RepliesI need to convert a swf movie that is created entirely through code (with the help of TweenLite) to a .flv format. The issue here is that I need to 1) Do this as a batch process, and that 2) since the swf is entirely generated by code it only has 1 frame and as such normal conversions like from CS5.5 to to the .avi format give me just 1 frame in the resulting video format. Is there a free converter out there that can get past the fact that my video is technically only 1 frame long and can handle batch jobs?
View 3 RepliesA lot of examples i've come across seem to suggest a SWF can be generated without a corresponding FLA file.
View 1 RepliesI have this piece of code:
Code:
var xmlGeneratorURL:String = "http://localhost/***/galleryXMLgenerator.php";
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, showGallery);
[Code]....
so if you change the content or the name of some file of the "media" folder, the next time you run the swf you should have more/less media in the gallery. Well... this does not happens.... like there's some cache to clear before calling php again..
IŽve been trying to write AS3 that can read xml which is dynamically generated by php. iŽve generated the xml in several ways -- all of which seem to work but i keep getting the error,
Error #1088: The markup in the document following the root element must be well-formed,when i try to load the xml into flash. however the xml (as viewed when you go to "view source" in your browser) is indeed well formed.iŽve seen various discussions where people bring up this problem but havenŽt seen a solution in any of them.
i have 4 versions of the php. the first just uses echo. the second uses echo but i wrap it in {start_ob(),ob_end_flush()}; then i use simpleXML and finally i use domdocument. the first 3 give the error above, the domdocument throws no error but the xml is empty.
iŽll start with the simplified flash code:
Code: Select allvar path:String = "php/videos.php"
//
var ldr:URLLoader = new URLLoader()
[code]....
I have this piece of code:
[Code]...
so if you change the content or the name of some file of the "media" folder, the next time you run the swf you should have more/less media in the gallery. Well... this does not happens.... like there's some cache to clear before calling php again....
I have a movie clip that contains many many dynamically generated mc's that have also some dynamically generated mc's in them Now i wanna duplicate that large MC .... and of course that does not work cause it will not copy all those small MC's that are contained. If I duplicate all the MC's contained this also will not work. cause they contain generated MC's and so on Okay enough blabla: Is there a possibility to duplicate the big MC containing all the small MC's ???I know Flash can't do it but is there a way around it?I had one idea of keeping an array of all the generated mc's in my MC class. This works fine but when i duplicate one contained MC i wont get it into the duplication target, it will always be inside his _parent movieclip
View 6 RepliesI know it is possible to preload XML, but what about XML generated by PHP. For example,I am creating an XML file by making calls to a database and outputting it as XML:
[url]
So, is it possible to preload that xml?
I'm working with tons of array generated from a XML. How should I go about creating a search function that will be able to search and retrieve a particular nod from the array. Sth to do with .toLowerCase() and getIndexOf? The search function should be able to search and retrieve any text that contain the letter/letters... not the whole word. Like for example if user enter "gre", it should retrieve results containing "great" and so on.
View 1 RepliesI want to use the built in Scrollbar component to scroll within a movie clip or sprite whose content is generated by a for loop within my code. I can't seem to get it working when I set the scrollbar at authortime to target the movieclip into which i place the for loop at runtime.
View 9 Repliesso i am parsing an xml file and each node becomes a button. ifigured out how to make each click work properly, but i can not getthe rollovers to work. with the code below makes it register youare rolling over one of the buttons, but it only shows the rolloveron the last button in my list. im thinking its because i am notreferencing my button correctly, but im not sure what the referenceis because the buttons are created through iterations.
View 4 RepliesI ve been searching for this but nothing. I need to use an event generated when the site is loaded for the very first time (to manage the resize of the stage). That's beacuse the event "resizestage" is generated only when i resize it, so the first time the site had been loaded, the size is not modified.
View 7 RepliesI am looking to build a Flash/Flex application that would allow users to edit certain portions of an application and then be able to download a swf when they are finished customizing. Is it possible to embed content in swf files and save them on the fly? Or would I need to have them download the generic swf that points to an xml file to load the custom data? I know you can save out generated images from a Flash app using server side scripting, but I'm unaware of anything similar for swf files.
View 5 Repliesi am trying to import to flash an xml file, generated from Excel. I got some tutorials from internet but the format of xml file from excel it's different and i can't manage to access data from it. if i type trace(xmldata); it shows me the full content of xml file. But how can i acces the correct data if in the xml file it is written:
<Row> <Cell><Data ss:Type="String">CellName</Data></Cell> <Cell><Data ss:Type="Number">CellValue</Data></Cell>.
I have a flex project and if I build a release version of the application using flash builder with RSLs on my swf is 115k. If however I build the same application using ant the swf is 342k. Without RSLs the swf is 520k.
How do I get the swf to be as small as the one built by FlashBuilder?
Here is my ant file I have another task that copies the rsls.
<project name="EUI Client Application" default="compileClientApp">
<target name="compileClientApp" depends="compileClientBundles">
<mxmlc
[Code]....
Flex newbie question: can MXML be generated on the fly, like HTML is generated by a server? If yes, is it ok to do so or am I missing an important Flex architectural principle.
View 4 RepliesProblem: Conditions:
IE7, SP2, latest flash/java. Only reproducible on one machine. Observations: Smaller than a javascript alert box, and seems to be generated when a swf on my web page loads. The dialog is modal, however, like an alert box.
I've tried matching the configuration of the machine in question, but a recreation of the machine does not get this error. I'm not ultra-familiar with flash/flex, so is there something that flex/flash could do which would cause this error dialog to appear.
How would one even go about debugging this? It's mostly not reproducible aside from a single machine, and the circumstances which cause the error are unknown.
Why is encryption algorithm may give different results in AS3 and PHP? In AS3 I use library from [URL].And in PHP I use RC4 Cipher.
View 3 RepliesI want to modify the xml file of flash once it generated.
You can see this tutorial [URL] here when i change the position i want new xml file with update.
I'm creating a site with images of people loaded through a XML-sheet, where when "touching" these images with the mouse a bubble should show up and display information about the person in the picture.
Basic XML-structure for a post:
Code:
<person namn="hans" id="1">
<namn>Hans</namn>
[Code].....
I built a level constructor working off an array level code made in a level editor i also builtis there any way i can code a function to somehow save the resulting movieclip somewhere where i can acess it?
lets say i have an empty movie clip called levelHolder
and my constructor function places several tile symbols in that clip
can I save levelHolder as a symbol in my library? or to my hard disc?
i need to see it so i can add the appropriate art and background for the shape of the terrain using it as a template
I'd like to double check that sendAndLoad is sending the correct string to a jsp. I don't have any control over the jsp so I'm reliant on seeing the url string. Here's the code use to sendAndLoad
ActionScript Code:
function doSubmit() {
formData = new LoadVars();
formData.loginName = "test";
[code]....
I wish to have a 3d carousel much like a flash one in the below link : [URL] however, i wish the images to be dynamically generated and at the same time txt 'beneath' (to be added) the picture to be dynamically updated also...through a database. I wish to get it connected to a back end and probably use a content management system.
View 1 RepliesI am willing to do a rollover image gallery which enlarges image on rollover event and shifts the neighbouring ones aside.. Here is the code so far
Code:
_root.bttn.onRelease = function() {
createGallery();
};
[Code]....
ask flash which particular movieclip was rolled over , what is its instance name and than perform string operation to get a number (order) of that clip (I am naming all dynamically with image name + number in order)