School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 307,167 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,528 people online right now. Registration is fast and FREE... Join Now!




import

 

import, very very easy

sattua

12 Jun, 2009 - 11:13 AM
Post #1

New D.I.C Head
*

Joined: 20 Mar, 2008
Posts: 49


My Contributions
HI....

I know that is going to listen very novice but:

import flash.fileSystem.*; I do not know where to put it, I mean....

I simply choose the item, press F9 and I enter the code


My code:
CODE

on (release) {
    if ((nom == '') or (email == '') or (contacto == '') or (mensaje == '') or (titulo == '')) {
        respuesta = "Hay campos obligatorios sin rellenar. Por favor, revise el formulario.";

    } else {

        var Mixml = new XML();
        Mixml.ignoreWhite = true;
        Mixml.onLoad = function(success) {
            if (success) {
                var elemento = this.createElement(nom);
                elemento.attributes.nose = "nose";
                                
                                var fs:FileStream = new FileStream();
                                 var fo:File = new File(c:\\x.xml);
                                 fs.open(fo, FileMode.WRITE);
                                 fs.writeBytes(miXML.toString());
                                  fs.close()
            }
        };

        Mixml.load('prueba.xml');
    }
}

This is inside a button and I do not have more code...


the thing is that :anywhere I put the line: (import flash.fileSystem.*wink2.gif, the line gives me error


Where do I put the line?

thaks...

User is offlineProfile CardPM
+Quote Post


Posts in this topic
sattua   import   12 Jun, 2009 - 11:13 AM

Fast ReplyReply to this topicStart new topic

Time is now: 11/21/09 06:30PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month