Passing object XML in Flash to ASP.

Hi guys...

Is it possible to pass a Variable of object/array of Flash XML to ASP?

If it is, how to obtain and analyze the object/table XML variable in the ASP file?

I intend to go with ASP to create an external XML file, and then I'll feed XML to Falsh data.
Incase of additions or Corrections in the data, once again I'll pass the details of flash to ASP and replace the existing XML file.

Please help me...

Thanks in advance...

- ****



Thanks in advance...

- ****

The XML in Flash class has multiple ways to send data to pages of script on the server side. . Send(),. sendAndLoad(), etc..

If you want the data sent in the form of XML object and not as a pair key/value as a form post, check if you set the contentType to "text/XML" before using the send() or sendAndLoad() controls.

Read the XML code directly in ASP will require you to use the Request object.

Set xml_dom = Server.CreateObject ("MSXML2. DOMDocument')
xml_dom. Load (request)

Tim

Tags: Adobe Animate

Similar Questions

  • How to pass an xml CDATA in the string element when OSB call a webservice?

    How to pass an xml CDATA in the string element when OSB call a webservice?

    I have a business service (biz) this route to exploitation of a Web service.

    An example of this legacy Web service request:
    < soapenv:Envelope xmlns:soapenv = 'http://schemas.xmlsoap.org/soap/envelope/' xmlns: ex = "example" >
    < soapenv:Header / >
    < soapenv:Body >
    < ex: run >
    < ex: arg > <! [CDATA [< searchCustomerByDocumentNumber >
    < documentNumber > 12345678909 < / documentNumber >
    [[< / searchCustomerByDocumentNumber >]] > < / ex: arg >
    < / ex: run >
    < / soapenv:Body >
    < / soapenv:Envelope >

    type ex: arg is a string.

    How to pass this structure CDATA webservice in OSB?

    Steps to resolve this problem:
    1 create an XML schema. For example:


    elementFormDefault = "unqualified" >


              
                   
                        
                             
                             

                        

                        
                             
                        

                   

         

         

         
         

    With this XSD, XML can be generating:


    documentNumber

    2 create an XQuery query to create a ComplexType searchCustomerByDocumentNumber. For example:
    (: pragma bea: element global-element-return = "searchCustomerByDocumentNumber" location = "searchCustomerByDocumentNumber.xsd" ::))

    declare namespace xf = "http://tempuri.org/NovoSia/CreateSearchCustomerByDocumentNumber/";

    declare function xf:CreateSearchCustomerByDocumentNumber($documentNumber_as_xs:string)
    as {(searchCustomerByDocumentNumber)}

    {$documentNumber}

    };

    declare the variable $documentNumber as XS: String external;

    XF:CreateSearchCustomerByDocumentNumber ($documentNumber)

    3. in your step in proxy pipeline add to assign the created the XQuery function call from the number of the document of your payload.
    Assign to a variable (for example: called searchCustomerByDocumentNumberRequest)

    4. create an another Transformation of XQuery (XQ) to create a request to the existing Web service. For example:
    {fn - bea: serialize ($searchCustomerByDocumentNumberRequest)}

    For more information about xquery Serialize function:
    41.2.6 fn - bea: serialize()
    You can use the fn - bea: serialize() function if you need to represent an XML document as a string instead of as an XML element. For example, you can share an XML document through an EJB interface and the EJB method takes the string as an argument. The function has the following signature:

    FN - bea: serialize($input as item()) as xs: string

    Source: http://docs.oracle.com/cd/E14571_01/doc.1111/e15867/xquery.htm

  • Passing Variables to A4 Flash user

    Hi all

    I searched online for many times and have made many attempts, using Flash and Captivate 4, but I had NO chance, and I'm challenging my brain on it. It is a big project at work and I really need help I can get.

    I need to access my USER Captivate variable created from a Flash animations. I tried to use Javascript, but I get an error in Flash due to global settings. With thousands of employees, these settings are not an option.

    What I am trying to do is run a random function in AS2 (which works fine) and then pass the result of Flash to Captivate. Each path that I tried (_root. NombrAl, parent. NombrAl, _root.movie.Randomnumber, etc.) did not work and I can't seem to understand what Miss me.

    Any help or advice would be greatly appreciated! Thank you very much!

    Daniel

    P.S. I'm still a user AS2 and have not yet learned AS3. I have no longer works in this all day and have not had the chance. I'm sorry.

    If you are looking just to pass a random number in Captivate, then you can use the widget to this thread: http://forums.adobe.com/message/2031010#2031010

    If you try to pass regular values of Flash, then it should be fairly simple as well.

    I just want to be sure - you have a Flash Animation inserted into a Captivate slide and you wan't to have this animation 'send' some data to Captivate right?

    If Yes, then all that should be required is to create a userdefined in Captivate variable - for example v_myVariable. Flash, you use _root.v_myVariable = valueFromFlash.

    This really should be all. You must create the variable defined by the user in Captivate first well. Flash can not it creates for you. You can also try and assign a default value to the variable in Captivate (v_myVariable = 0) while you are sure that the variable of Captivate is reported correctly.

    Good luck; (o)

    / Michael

    Visit my Captivate blog with tips & tricks, tutorials and widgets.

  • PHP, xml and Flash [multiple holders]

    Hello

    A few days ago, I posted a discussion related to php, xml and Flash. I want to display my xml in flash. I am using to do so. I now have a problem of obtaining xml data in my table to appear on different licensed video clips.

    It's my code. I tried a different configuration of the code, but without success.

    var urls:Array = [];

    var: index number;
    var index1:Number;

    var xml = new XML();
    xml.ignoreWhite = true;
    xml.onLoad = parseXML;
    XML. Load ("Content.php");

    parseXML() {} function
    for (var i: Number = 0; i < this.firstChild.childNodes.length; i ++) {}
    URLs.push (this.firstChild.childNodes [i].firstChild.nodeValue);
    }

    index = 0;
    index1 = 1;

    startyourappF();

    }

    function startyourappF() {}

    this.onEnterFrame = preloadA;

    holder.loadMovie (urls [index]);

    This is me trying it to get the second element in the url in an another film clip holder.

    holder1.loadMovie (URLs [index1]);
    }

    function preloadA() {}

    If (Holder.getBytesLoaded () > 50 & & holder.getBytesLoaded () > = holder.getByte sTotal()) {}

    delete this.onEnterFrame;

    Holder._width = 260,0;

    Holder._height = 96.0;
    }

    This should be resizing to the holder of the second.
    If (holder1.getBytesLoaded () > 50 & & holder1.getBytesLoaded () > = holder1.getB ytesTotal()) {}

    delete this.onEnterFrame;

    holder1._width = 260,0;

    holder1._height = 96.0;
    }
    }

    The success of code loads the holder first image but cannot load the second url holder1 and others, that I want to add. I spend the whole night to try different configurations of the code but without success.

    I hope you can help me. All I need is more than an image loaded from the URL variable in several other variables of the licensee.

    Hope you can help.

    soon > >

    You must first set the structure of your directory and you will need to use relative URLS.  There is no sense to work on something else because what works now in your first image, and if you fix the code in your 2nd frame, it will break as soon as you download on your server.

    Thus, to duplicate the configuration of directory, that you plan to use on your server and use relative URLS.

    If your xml, html and swf are in the same directories and you intend to keep them in the same directories when you download on your server, use load ("timol.xml") to load your xml file.  Similarly, remove all path information to load anything else.

  • Make an object blink or flash?

    Is there a way to make an object blink or Flash in catalyst?

    I've attached an example of a custom component I built that flashes several times after that is clicked.

    Here's how I built it:

    1. create a text

    2 convert the text to a custom component

    3. double-click on the custom component to change

    4. duplicate State

    5. change to the new State to make the appearance of "blink." I drew a yellow rect behind text

    6. double-click on the artboard to exit the editing component

    Now for the interaction

    7. Select the component, go in the interaction Panel, and choose 'Add Interaction'

    8. Select 'Sequence of playing actions' and click ok. A new action sequence appears in the timeline panel

    9. with the custom component still selected, go in the timeline panel and choose Add Action > constituent state of the value. Do this 5 times

    10. you have now several action 'State of component defined' in the timeline panel. Drag each to the right of stagger them over time

    11. Select each action "Set component State", then go to the property inspector and change which the action takes place in the State. I alternated between the custom component state2 and state1.

    Play with the attached example to see the finished product.

    Ty

  • Viewer XML in Flash

    Hello

    Would like to know is possible view xml online. I'm looking for something like the view XML browser inside the application. I use CS6 AS3.

    If you mean display XML format way, the bad news is that there is no free code available that will accomplish everything you need.

    The good news is that it is possible to write your own application and it is not so difficult.

    To colorize text the best way is to use regular Expressions in the method withTextField.setTextFormat () of conjunction. The trick is to identify patterns of chain to cover all the functionality of possible XML parts.

    The code following applies color to the different parts of a sample XML - do just this class of the your document class if you use Flash IDE.

    As far as minimizing/maximizing goes - it's a more complex process although it is at hand with a little effort and some basic knowledge of the AS3 display list model.

    package
    {
              import flash.display.Sprite;
              import flash.text.TextField;
              import flash.text.TextFormat;
    
              public class XMLViewer extends Sprite
              {
                        private var xml:XML;
                        private var textField:TextField;
    
                        public function XMLViewer()
                        {
                                  init();
                        }
    
                        private function init():void
                        {
                                  writeXML();
                                  displayXML();
                        }
    
                        /**
                         * Creates a TextField instance for displaying XML string
                         */
                        private function displayXML():void
                        {
                                  textField = new TextField();
                                  textField.defaultTextFormat = new TextFormat("Arial", 12);
                                  textField.multiline = true;
                                  textField.autoSize = "left";
                                  textField.text = xml.toXMLString();
                                  addChild(textField);
                                  formatText();
                        }
    
                        private function formatText():void
                        {
                                  var xmlString:String = xml.toXMLString();
                                  var format:TextFormat = new TextFormat("Arial", 12, 0x0000FF);
                                  // format brackets
                                  applyFormat(format, /[\<\>\=\/\"]/g);
                                  // format tags
                                  format.color = 0xA05050;
                                  applyFormat(format, /\w+/g);
                                  // format values
                                  format.color = 0x000000;
                                  format.bold = true;
                                  applyFormat(format, /(?<=\")[\w\s]+(?=\")|(?<=\>)[\w\s]+(?=\<)/g);
                                  // format CDATA
                                  format.color = 0x0000FF;
                                  format.bold = false;
                                  applyFormat(format, /(\<\!\[CDATA\[)|(\]\])/g);
                                  // format CDATA content
                                  format.color = 0x000000;
                                  format.bold = false;
                                  applyFormat(format, /(?<=CDATA\[).+(?=\]\])/g);
                        }
    
                        /**
                         * Applies format to textField instance based on format and regular expression arguments
                         * @param          format
                         * @param          re
                         */
                        private function applyFormat(format:TextFormat, re:RegExp):void
                        {
                                  var string:String = textField.text;
                                  var result:Object = re.exec(string);
                                  while (result != null)
                                  {
                                            var index:int = result.index;
                                            textField.setTextFormat(format, index, index + result[0].length);
                                            result = re.exec(string);
                                  }
                        }
    
                        /**
                         * Just composes sample XML
                         */
                        private function writeXML():void
                        {
                                  xml =   
                                                      
                                                      
                                                      
                                                                Novel 1 description
                                                      
                                                      here we go ]]>
                                            ;
                        }
    
              }
    
    }
    
  • PHP, xml and Flash

    Hello

    Someone can help me. I try to query an sql database and echo the image in xml format so I can display the image in flash.

    I already know how to query and echo the url of the image of the database.

    This is the code:

    The database is queried at this stage already.

    echo "<? XML version=\"1.01\"? " "> \n";

    echo "< content > \n";

    While ($Nile = mysql_fetch_assoc (Run))

    {

    echo "< point >." $nile ['content']. "" < / item > \n ";

    }

    echo "< / content > \n";

    Flash I creat table to insert a URL and an xml object echoes images. It looks like this.

    This is after you have created the table of object and xml next url the loop for to insert the XML.

    thexml.onLoad = function)

    {

    var photos: Array = thisfirstChild.childNodes;

    for (i = 0; i < photos.length; i ++)

    {

    This pushes the XML in a table of URLs

    URLs.push (photos [i]. Attributes.URL);

    }

    This is supposed to load individual data into the flash movie object.

    movieobject.loadMovie(urls[0]);

    movieobject.loadMovie(urls[1]);

    }

    x.Load (Content.php);

    The echo in the first code xml produces a url link that contains a link to an image in the database. The flash is supposed to display the image on a flash clip call movieobject animation. I have some difficulty in getting the image displayed in flash. If anyone can change or provide the new code, it would be really useful.

    More PHP XML , you can view

  • Impossible to get an object of .swf Flash 8 is displayed in Firefox or Chrome

    I tried several different emethods incorporation of the .swf object in the site, as I am currently in train. I use the code in the publication option that did not work at all.  I also tried the SWFObject javascript thing and it worked, but it would not automatically play and it was not in any case to set. So far, all of the code I've tried works in Opera 9/10 and IE7/8, but not in firefox or chrome.

    Here the code of my publication give me function (which does not at all for firefox or chrome.)


    " < html xmlns =" http://www.w3.org/1999/xhtml "XML: lang ="fr"lang ="fr"> ".
    < head >
    < meta http-equiv = "Content-Type" content = text/html"; charset = iso-8859-1 "/ >"
    < /title > < title > news
    < / head >
    < body bgcolor = "#404040" >
    <! - url is used in the film - >
    <! - text used in the film - >
    <!-saved from url = (0013) subject: internet->
    < object classid = "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase =" " http://fpdownload.Macromedia.com/pub/Shockwave/cabs/Flash/Swflash.cab#version=8, 0,0,0 "width = '785' height = '195' id = 'new' align ="middle"> "
    < param name = "allowScriptAccess" value = "sameDomain" / >
    < param name = "movie" value = "news.swf" / > < param name = ' value ' = 'high' / > < param name = "bgcolor" value = "#404040" / > < embed src = "news.swf" quality = "high" bgcolor = "#404040" width = '785' height = name '195' = 'News' align = "middle" allowScriptAccess = "sameDomain" type = "application/x-shockwave-flash" pluginspage = " " http://www.Macromedia.com/go/getflashplayer "/ > "
    < / object >
    < / body >
    < / html >

    Thanks in advance for the help!

    Remove your statement _level0.nextFrame (box 1).  Repeat the test.

  • Line breaks not succeeded since flash to ASP.

    Hello

    I came up with a very annoying problem, and I need it fixed ASAP.

    The problem is as follows:

    I have a form in flash that contains a number of areas. One of these is an input field in order to capture impressions of the user on a given topic. Needless to say that this impression may contain paragrafs and line breaks. I use flash 7 publish settings and passing the values of fields via LoadVars. The problem seems to be that no line breaks is passed to ASP. All special characters are passed correctly, the HTML code is encoded in UTF-8 format so that Portuguese characters are correctly decoded, but without line break is shown. I need a quick fix to solve this problem the line breaks.

    Can someone give me a quick hand on it?

    THX

    THX kglad,

    Your solution is very simple... so much so, I happened to create a solution on a much more complicated way... I found myself escaping chain, detect where the 0% D was found and replaced it with
    . A way that is much harder to get the same result... Opportunities future im going to use your solution, which is a much simpler way and does not require the number of lines that I had to create for the same purpose of coding.

    Thx to new m8

  • How can I highlight objects in adobe flash when you drag and send it back.

    Its a mobile game. Adobe flash cs6

    Leo Angelo Laude wrote:

    but I have a lot of objects to straggle. It is possible to have a function?

    Yes, this is why I have posted, »

    You should use something like:

    var draggedObject:MovieClip;

    var draggableObjectsA:Array = [...];

    for (var i: int = 0; i<>

    draggableObjectsA [i] .addEventListener (MouseEvent.MOUSE_DOWN, startdragF);

    draggableObjectsA [i] .origIndex = draggableObjectsA [i].parent.getChildIndex (draggableObjectsA [i]);

    }

    function startdragF(e:MouseEvent):void {}

    draggedObject = e.currentTarget;

    draggedObject.startDrag ();

    draggedObject.parent.addChild (draggedObject);

    stage.addEventListener (MouseEvent.MOUSE_UP, stopdragF);

    }
    function stopdragF(e:MouseEvent):void {}

    draggedObject.stopDrag ();

    draggedObject.parent.addChildAt (draggedObject.origIndex);

    stage.removeEventListener (MouseEvent.MOUSE_UP, stopdragF);

    }

  • The value of an attribute to a selected object XML

    Hello world

    I'm new here and I want to start with a question, that I can find no answer.

    I want to select an object in my document and get the coordinates and the geometricBounds of it and writing it as XML attributes so I can export them later.

    Here's what I got so far:

    var meinObjekt = app.selection [0];

    var ycoords = meinObjekt.geometricBounds [0];

    app.activeDocument.xmlElements.item (0).xmlAttributes.add ("Y-coordinate", ycoords);

    The problem is that ycoords is a variable and not a string. But he was expecting a string for this value.

    How can I get a string ycoords?

    Maybe someone can help me with another problem. In the next step, I want to automate this process as follows. The designer puts all of the boxes inside InDesign. When it is done, just run the Script and the script should write all the attributes of all objects in the document.

    Is this possible?

    Thanks in advance

    Sebastian

    Hi sebbomatico,

    I just changed your js code, . toString()

    var meinObjekt = app.selection [0];

    var ycoords = (meinObjekt.geometricBounds [0]);

    app.activeDocument.xmlElements.item (0).xmlAttributes.add ("Y-coordinate", ycoords.toString ());

    THX,

    csm_phil

  • question of hitTestObject in a base class of an object library in Flash Pro.

    Hello.

    I have a flash file with a number of clips in the library - various bubbles that can be skipped in a clilck.

    The fla has a class of documents - BubbleGame.as, and all various mcies of bubble in the library are exported for action script (using their own names, but) with a mutual Base class - BubbleBase.as, so that all the different video clips bubbles behave the same: load in a random position, play their own deadlines, pop when you click them and if not burst - reload in another post.

    Here, everything works fine, however, I want the video clips removed if they hit an object on the stage. The object has an instance name of sym_mc and I tried different bits of code causes the bubble to remove when it hits this object, but I'm not getting more errors or nada.

    I tried to do the code hitTestObject in document and the base class class. It seems more appropriate to have in the base class - BubbleBase.as (below), because who says the bubbles do.

    In any case, I am neglecting and would appreciate it if you people took a glance at my code of the base class and the help.

    Thank you: *)

    package

    {

    import flash.display. *;

    import flash.events. *;

    SerializableAttribute public class BubbleBase extends MovieClip

    {

    var thisBubble:MovieClip;

    var navdock:MovieClip;

    var thisParent: *;

    public void BubbleBase()

    {

    this.addEventListener (Event.ADDED, initialize);

    this.addEventListener (MouseEvent.CLICK, pop);

    }

    function initialize(event:Event):void

    {

    thisParent = event.currentTarget.parent;

    navdock = thisParent.sym_mc;

    thisBubble = MovieClip (this.parent.getChildByName (this.name));

    if(currentFrame == 1)

    {

    This.x = Math.Random () * stage.stageWidth;

    This.y = Math.Random () * stage.stageHeight;

    Turning = Math.Random () *-90;

    }

    this.addEventListener (Event.ENTER_FRAME, moveBubble);

    }

    function moveBubble(event:Event):void

    {

    this / * if (this.hitTestObject (navdock)) is commented out, because it generates an error – TypeError: Error #2007: hitTestObject parameter must be null.

    {

    trace ("hit!");

    this.removeEventListener (Event.ENTER_FRAME, moveBubble);

    thisBubble.removeEventListener (Event.ENTER_FRAME, onEnterFrame);

    this.removeEventListener (MouseEvent.CLICK, pop);

    this.parent.removeChild (thisBubble);

    }

    on the other

    {

    This.x = Math.Random () * stage.stageWidth;

    This.y = Math.Random () * stage.stageWidth;

    }*/

    }

    function pop(event:MouseEvent):void

    {

    this.removeEventListener (Event.ADDED, initialize);

    var host: MovieClip = MovieClip (this.parent.parent);

    main.increaseScore ();

    this.parent.removeChild (thisBubble);

    }

    }

    }

    Hi ned. _spoyboyle

    Guess what?, I have corrected the code - see below, noting the change added

    to ADDED_TO_STAGE in the constructor, with removeEventListeners as a result

    in the rest.

    And to fix the error null, I added to remove the pop function;  I could not

    figure that a person on until after I was able to get sym_mc to be identifiable

    -by the change in the type (ADDED_TO_STAGE).

    I managed the setting, BTW, thanks to you, Ned, in terms of making the simplified

    version coming out specific errors, which iwas able to isolate, to

    Look up in the search field Flash as such - "TypeError: Error #1009: cannot.

    access a property or method of an object reference null + at

    Flash.Display::Sprite/constructChildren().

    Which lead me to various options, among which was that -

    http://kb2.adobe.com/cps/838/cpsid_83815.html - that was the solution.

    But also through _spoboyle, providing the correct 'if' statemnt with

    no = null.

    Thank you so much, people

    And now, I feel silly to tell you all that after getting this work.

    my bubble game is less good looking than before that the hitTestObject was

    added, because after a few runs (bubbles in jumps, removed, and)

    regenerated) some of the bubbles are removed without for as much hit

    the item on stage - but little to chance, plus button that generates

    more bubbles (bubbleMaker.start ()); is not as responsive as it is without

    the ifHitTestObj and finally, my processor - healthy and strong although it

    is, is tested with all these bubbles and their maturities, but

    all this is another question for later review.

    For now, thanks again :)

    package

    {

    import flash.display. *;

    import flash.events. *;

    SerializableAttribute public class BubbleBaseNew extends MovieClip

    {

    var thisBubble:MovieClip;

    var navdock:MovieClip;

    var thisParent: *;

    public void BubbleBaseNew()

    {

    this.addEventListener (Event.ADDED_TO_STAGE, initialize); off

    http://kb2.Adobe.com/CPS/838/cpsid_83815.html do ADDED_TO_STAGE instead

    added

    this.addEventListener (MouseEvent.CLICK, pop);

    }

    function initialize(event:Event):void

    {

    this.removeEventListener (Event.ADDED_TO_STAGE,

    Initialize); This causes sym_mc be defined as an object

    thisParent = event.currentTarget.parent;

    navdock = thisParent.nav_mc;

    thisBubble = MovieClip (this.parent.getChildByName (this.name));

    this.addEventListener (Event.ENTER_FRAME, moveBubble);

    }

    function moveBubble(event:Event):void

    {

    If (navdock! = null & this.hitTestObject (navdock))

    {

    trace ("hit!");

    this.removeEventListener (Event.ENTER_FRAME, moveBubble);

    thisBubble.removeEventListener (Event.ENTER_FRAME,

    onEnterFrame);

    this.removeEventListener (MouseEvent.CLICK, pop);

    this.parent.removeChild (thisBubble);

    }

    on the other

    {//this times normal (the chronology of the bubble), but the trace says

    sym_mc: undefined

    var mc:MovieClip = event.target as MovieClip;

    if(currentFrame == 1)

    {

    MC.x = Math.Random () * stage.stageWidth;

    MC.y = Math.Random () * stage.stageHeight;

    Turning = Math.Random () *-90;

    }

    }

    }

    function pop(event:MouseEvent):void

    {

    this.removeEventListener (Event.ADDED_TO_STAGE, initialize);

    this.removeEventListener (MouseEvent.CLICK, pop);

    this.removeEventListener (Event.ENTER_FRAME, moveBubble);

    var host: MovieClip = MovieClip (this.parent.parent);

    main.increaseScore ();

    this.parent.removeChild (thisBubble);

    }

    }

  • Convert XMLElement object XML E4X?

    Wow. Don't think I'd be back here so soon...

    Picking up on the debate of yesterday, but various aspects; a couple (hopefully) quick questions:

    Background: I have a script that generates an array of XMLElements of selecting a user, and I want to further process the XML.

    (1) I have not found a way to convert a XMLElement in an E4X XML object, aside from outside serializing to a file. Have I missed it, or am I supposed to use XMLRules here if I want to avoid crossing the DOM?

    (2) (sorry... Need to work more on my second question!)

    Thank you very much!

    Charles

    BTW, Adobe JS Scripting Guide, uses "iteration" instead of "course" with respect to the XML structures they discuss, cf. p.180. ;-)

    But it uses courses in the following sentence.

  • Function of Pass in XML

    Hi all

    My question is can you write a function in an XML document, then load this XML document in Flash and call that said function?

    Thanks in advance

    that you can not do.  You cannot load code not dynamically compiled by all means.  the code must be compiled in advance.

  • How do I get the number from a file xml for flash as3 area text 'Get_Days '?

    Hello

    I ended up at the daily update of the number of days since the specified days. Say, a work to be finished within 30 days. And the starting day is today. So, tomorrow it will be 29 days left. and so on...

    Thus, instead of reducing a number every day for the last number of days using the flash, it will be easy to change in the xml file.

    How can I do?

    I have a simple 'dynamic text box"text box and the name of the instance:"Days_Left. " Since I am a student, I can't do complex projects. I learn things that are small with very few lines of code that can be modified using xml files.

    So everything I type in a file xml, it must appear in a text box called "Days_Left".

    Thank you.

    You can use:

    var currentDate:Date = new Date();

    It is today
    var projectDueDate:Date = new Date (2010,11,29);

    use the date to the expiration date.

    months are zero-based.  (IE, jan for the month 0, dec is month 11)

    var daysToCompleteProject:Number = (projectDueDate.getTime()-currentDate.getTime())/(1000*60*60*24);

    This is the number of days between currentDate and projectDueDate.  You'll want to probably round or use days: hours: minutes for your display

Maybe you are looking for

  • Get off my thunderbird lightning

    I don't want yet another calendar. I don't want lightning to be active on my e-mail address. I don't want to spoil my calendar entries. I want my email address and stop playing with my reminders of calendar etc. I didn't ask for it and I want it out.

  • Replacement of CD - DVD drive on a laptop Satellite of MX35

    Hi, the CD - DVD on my laptop Satellite M35X drive apparently broken and never have 'open' a laptop, I'd be happy to help.The unit is 4 years old and I can not find the users manual so my first request, is their a link to the M35X users manual and /

  • Bought Mountain Lion and got two letters on the license;

    but where to find the OS X? Mountain lion is not in the Appstore (bought sw) and said none of the two letters, where the return (OS X) to find and load. Any idea? ~ Karl

  • Replace PCI-6220 PCIe-6320?

    New to the forum, so bear with me if I'm in the wrong place. I have a system with a card PCI-6220, and I am considering the upgrade of the computer used. If I decide to do, then I would like to upgrade the jury as well. According to the information o

  • How long before that I have to download windows live 2011

    I installed windows live 2011 and had many problems computer so restored to before download and everything seems fine, so how long before the old live windows times out.