Re: [Flashcoders] how to write a class that loads XML?
Hi Arul, Im from Chennai and im working as a flash programmer here. Can u just explain me what the role of the *Delegate Class* here in this. Thanks and Regards S.Hidaayth On 27/04/07, Arul Prasad M L <[EMAIL PROTECTED]> wrote: 1. May be coz you never really created the XML object. You'll need to define the XML object as well, not just declare the variable. 2. Try using the Delegate class. Its pretty useful in avoiding confusions. Now the code: import mx.utils.Delegate; class XMLoader { private var postXML:XML; private function parseXML () { //do something with postXML } public function XMLoader (__file) { postXML = new XML(); postXML.ignoreWhite = true; postXML.load(__file); postXML.onLoad = Delegate.create(this, parseXML);; } } Hope that helps, -- Arul Prasad http://arulprasad.blogspot.com On 4/27/07, sebastian chedal <[EMAIL PROTECTED]> wrote: > > Hello Flash coders. > :) > > Could anyone help me to fix my class code? I can't find any reference > anywhere that will help me... I'm trying to load XML via a generalized > class > object, but the data in postXML never makes it to the parseXML > constructor, > any help is greatly appreciated! > > Thanks! > > Sebastian. > > [CODE] > > class XMLoader { > > private var postXML:XML; > > private function parseXML () { >//do something with postXML > } > > public function XMLoader (__file) { > postXML.ignoreWhite = true; > postXML.load(__file); > postXML.onLoad = parseXML(); > } > } > > [/CODE] ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com -- Thanks and Regards, S.Hidayath ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Adding user Defined parameter in Flash Component
Hi all, Im really thankful to you all,bcos i have got good solutions whenever i post here. I want to know whether *Adding user Defined parameter in Flash Component (*if need to add a *Bold* parameter* in a text input component ).*if so,can anyone please tell me the way in which i can get it.it will be helpful if i get some related URL for it. Thanks and regards, S.Hidayath. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Need Flash Remoting Setup for Java
Hi all, I need to setup Flash Remoting for Java in my local system. Can anyone tell me the step by step procedure to make the flash remoting to work fine.bcos i have tried several times and icouldnt find out. I know sure i will get help from this people here with great stuff.Thanks in advance for everyone. Regards, S.Hidayath, India,Chennai ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Object mispalced
Hi all, we have developed a flash file in our place and its work pretty file while the same file is been displayed differently in the client machine.that is the objects position in the movie has been changed drastically.can anyone tell me the reason y it happens Regards, S.Hidayath. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Importing JPG into flash using JSFL
Hi all, I want to import a jpg files into flash files.since its a repeated work which i want to do this for more than 100 files.i opt JSFL. can anyone tell me how i import the jpg and convert the image into a movieclip and place it in a specific position on the stage using JSFL. Thanks in advance, S.Hidayath. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] Enourmous data Transfer by Flash.
Hi guyz, I have been assigned a Inhouse project to be developed in Flash.Its a online registration of resume from the applicant and to searching the posted resume in different catogory by the Manager to sort out the resume.this project is almost like a application with nearly 20 tables and more forms and enormous amount of data to be passes in and out of Database. Is it feasible to develop a appication like this in flash.if so what kind of method i should adopt for the best result to develop the application in Flash. I really need u r help before i start this project.thank u in advance. Regards, S.Hidayath. ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] getURL not working
Hi all, I have doubt in getURL method.Im using a XML in a file which is more than 500 nodes. i will be creating new nodes dynamically in XML and i want to write it to a text file using PHP. im using the getURL method inside press of a button component to transfer the data from flash to PHP.but i cant get.can anyone of pls tell me what wrong in it. Regards, S.Hidayath ___ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
[Flashcoders] SWF to Image format at runtime.
Hi guys, I want to convert the whole SWF file into a jpg format at runtime.will a swf file be embedded in PDF file? can anyone answer my question. Regards, S.Hidayath ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] Any one can explain about Flash media server
Hi guyz, I want to know about the Flash media server and how to create and small application using it. S.Hidayath ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
[Flashcoders] How to use DispatchEvent in AS2.0 class
can anyone tell me.How to use DispatchEvent in AS2.0 class. Iike to to dispath an event from one class to another class which will have addEventListener to handle the event. Can anyone give a small example and explanation. Regards. S.Hidayath ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders