Re: [Flashcoders] how to write a class that loads XML?

2007-04-27 Thread hidayath q

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

2006-11-07 Thread hidayath q

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

2006-08-01 Thread hidayath q

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] Importing JPG into flash using JSFL

2006-06-21 Thread hidayath q

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] Object mispalced

2006-06-21 Thread hidayath q

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] getURL not working

2006-03-07 Thread hidayath q
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.

2006-02-08 Thread hidayath q
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

2006-02-03 Thread hidayath q
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

2006-01-12 Thread hidayath q
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