Problems with the scope of variables or reference (AS2)

Hello!

The code simple below maps onRelease functions to 8 buttons.
The goal is to load the image into a single central imagePanel whenever a button is clicked.

There are 8 instances of the same MC on the stage (called g0 to g7), each containing a button (btnShow)

The function 'downloadImage()' load the image when the onRelease event is triggered.
Each image file path is taken from the _global.paintings Array (the url property).

The problem:
It looks like this, during the transfer, a link for the "removal" of the 'I' variable, instead of its VALUE.
So, at runtime, the 'I' is equal to 8 (value at the end of the loop for EACH function of downloadImage), instead of the value incremented (0 to 7)...

Leading to each button of the same image, rather than the corresponding image loading (end of the url in _global.paintings property [0] to [7])

Well, not easy to explain properly, I hope you understand what I mean...

Thank you very much for your help, I am quite lost here!
See you soon
Luca


=======

Try this:

function formatGal() {}

for (var i: Number = 0; i<8; i++)="">
. _root ["g" + i] btnShow.myIndex = i;
_root ["g" + i].btnShow.onRelease = function() {}
downloadImage (_global.paintings [this.myIndex] .url);
trace (this.myIndex);
}
}
}

--
Dave-
Developer leader
http://www.blurredistinction.com
Adobe Community Expert
http://www.Adobe.com/communities/experts/

Tags: Adobe Animate

Similar Questions

  • Problem with the creation of variable names

    Hi, I have a problem with the following function:

    private function whichLevelToLoad (): void {}

    If (levelToLoad == "no") {}

    currentLevel = null;

    }

    var thisObj:Object = new Object();

    {if(levelBtnArray!=null)}

    for (var j: int = levelBtnArray.length - 1; j > = 0; j-) {}

    If (levelToLoad == String ("level" + (j + 1))) {}

    thisObj ["level" +(j+1)] = new ["Level" +(j+1)] (); - > The Problem

    thisObj ['level' + (j + 1)] .x = 0;

    thisObj ['level' + (j + 1)] there = 0;

    addChildAt (thisObj ["level" + (j + 1)], 0);

    currentLevel = thisObj ['level' + (j + 1)];

    }

    }

    }

    }

    I am trying to instatiate 75 objects by using a loop. The line should look like this "thisObj.level1 = new Level1(); with the numbers from 1 to 75. Is this possible? How

    can I do it?

    Thank you...

    getDefinitionByName solves this problem.

    Example of

  • Problem with the Table result variable

    When you save a document structured in XML, the Table Continuation variable is translated to an entity named "fm.tcont".

    Strangely, the content of the entity is a control character (0 x 11). The file is saved in XML format, but the Analyzer Returns an error,

    Error message to the file d:\test\100219\doc_test.xml.1F0, line 31, char 22,: Invalid character (Unicode: 0 x 11)
    Error on line 31, tank 24, Message: expected a value of literal entity or PUBLIC/SYSTEM identifier
    Parse error on line 31, tank 20: not well formed (invalid token)
    The abandoned analysis.

    The contents of the variable nothing suspicious, it's just '(continued)', where the first character is a normal space.

    If someone had the same problem and knows how to fix?

    It's on FM8.0p277 on Windows XP.

    Thank you very much in advance,

    Johannes

    Johannes,

    I don't have the direct response, because I've never tried. But my EDD has a TableContinuation element that is empty; ESD inserts the table continuation variable. When you export to XML, the element is there as a "marker"; It has NO content. When open in the frame, ESD inserts the variable again. My reasoning is that the table continuation variable has meaning ONLY within FrameMaker. It's a formatting object, not a content container. No post processing of the XML data would not need if so, ITS engine could provide what it is able to understand.

    Anyway, here's how I deal with it.

    Good luck
    Van

  • Problem with the path_translated server variable &amp; amp; CFMX7

    I think that something may be wrong with ColdFusion. I have a test site (specially created to test this issue) running on IIS 6, which has just a plain old index.cfm index.html. When I navigate to index.cfm/someotherdirectory/non-existantdirectory/whatever/index.cfm, it evokes the index.cfm basis.

    When I try to do the same thing with the html file, it gives me a 404 error. How can I force ColdFusion to give a 404 in this circumstance?

    Fireye-wrote:
    > I think that something may be wrong with ColdFusion. I have a test site
    > (specially created to test this issue) running on IIS 6, which has just a
    > plain old index.cfm and index.html. When I navigate to
    > index.cfm/someotherdirectory/non-existantdirectory/whatever/index.cfm, it
    > shows the base index.cfm.
    >
    > When I try to do the same thing with the html file, it gives me a 404 error.
    > How can I force ColdFusion to give a 404 in this circumstance?

    Make sure you that you enabled "check that file exists" in the IIS mapping.
    If that doesn't cut, find the web.xml file and comment out the research
    Security engine section (ITS).

    Jochem

    --
    Jochem van Dieten
    Adobe Community Expert for ColdFusion

  • Problem of the scope of variables

    I'm having trouble understanding variable scope in the following situation. See dynamically, go to my site and click on Librio. Then click on the first book of the left (the years-down).

    The code reads an XML file that includes a summary of the book, and also the comments it received. For each review, a circle appears. These buttons are created dynamically. I'm moving the XML node that is appropriate to the function onRelease, but nothing helped. Any idea? (The code below has commented)

    Thank you for answer and locate me the area that failed. Your solution was not well resolve the issue. The variable 'i' was long forgotten. Given that I named the buttons with a number at the end, this is recover the index I want. Knowing that the beginning of the name is still the same and there will be no more than 9 clients as possible, it is easy to retrieve information about an order of substr. The number is located on the index '9' and is a length of characters:

  • problems with the link Date variable

    I am using a Date as a variable binding in a display object, and I'm running into difficulty. I have the binding variable type defined to date and the control flags for the Type of Format and Format defined respectively on 'Date of Simple' and 'yyyy-MM-dd ". When I run the application test module and enter the date in the correct format, the View object returns the expected results. However, when I try to set a property to bind the query for a group of JHeadstart parameters in my definition of the application in order to highlight the variable to an input dateField control bind, I get the following exception:

    30 Jan 08:49:56 (ErrorReportingUtils) ERROR - java.lang.IllegalArgumentException
    at java.sql.Date.valueOf(Date.java:104)
    at oracle.jbo.domain.Date.toDate(Date.java:348)
    to oracle.jbo.domain.Date. < init > (Date.java:279)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0 (Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at oracle.jbo.domain.TypeConvMapEntry.convert(TypeConvMapEntry.java:73)
    at oracle.jbo.domain.TypeFactory.get(TypeFactory.java:739)
    at oracle.jbo.domain.TypeFactory.getInstance(TypeFactory.java:90)
    at oracle.jbo.common.VariableImpl.convertToJava(VariableImpl.java:546)
    at oracle.jbo.common.VariableValueManagerImpl.doSetVariableValue(VariableValueManagerImpl.java:182)
    at oracle.jbo.common.VariableValueManagerImpl.setVariableValue(VariableValueManagerImpl.java:223)
    at oracle.jbo.common.VariableValueManagerImpl.setVariableValue(VariableValueManagerImpl.java:229)
    at oracle.jheadstart.model.adfbc.v2.JhsApplicationModuleImpl.applyBindParams(JhsApplicationModuleImpl.java:173)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at oracle.adf.model.binding.DCInvokeMethod.invokeMethod(DCInvokeMethod.java:507)
    at oracle.adf.model.binding.DCDataControl.invokeMethod(DCDataControl.java:1795)
    at oracle.adf.model.bc4j.DCJboDataControl.invokeMethod(DCJboDataControl.java:1989)
    at oracle.adf.model.binding.DCInvokeMethod.callMethod(DCInvokeMethod.java:219)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1289)
    at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:1802)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:627)
    to oracle.adf.model.binding.DCInvokeActionDef$ DCInvokeAction.refresh (DCInvokeActionDef.java:140)
    at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:2521)
    at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2260)
    at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareRender(PageLifecycleImpl.java:534)
    at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.prepareRender(FacesPageLifecycle.java:98)
    at oracle.jheadstart.controller.jsf.lifecycle.JhsPageLifecycle.prepareRender(JhsPageLifecycle.java:1155)
    to oracle.adf.controller.v2.lifecycle.Lifecycle$ 1.execute(Lifecycle.java:297)
    at oracle.adf.controller.v2.lifecycle.Lifecycle.executePhase(Lifecycle.java:116)
    to oracle.adf.controller.faces.lifecycle.ADFPhaseListener.mav$ executePhase(ADFPhaseListener.java:29)
    to oracle.adf.controller.faces.lifecycle.ADFPhaseListener$ 1.before(ADFPhaseListener.java:426)
    at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.beforePhase(ADFPhaseListener.java:77)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:228)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
    at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
    at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
    at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
    to oracle.oc4j.network.ServerSocketReadHandler$ SafeRunnable.run (ServerSocketReadHandler.java:260)
    to com.evermind.util.ReleasableResourcePooledExecutor$ MyWorker.run (ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)


    However, it seems that the value of the parameter link has actually changed, according to the message issued by the procedure JhsApplicationModuleImpl.applyBindParams (...) debugging:

    30 - Jan 08:46:23 DEBUG (JhsApplicationModuleImpl) - ViewObject ViewObj: bind move_date param value has changed: old value = null, new value = Wed Jan 07 00:00:00 CST 2009



    One thing I noticed that may be of interest - if I run the debugger in the procedure JhsApplicationModuleImpl.applyBindParams (...), a default date in my link variable arises as an object of oracle.jbo.domain.Date when it comes out of the next line:

    Object oldValue = vo.ensureVariableManager () .getVariableValue (key);

    as opposed to the new value that is sent from the input value of the dateField control, which presents itself as a java.util.Date in the following line:

    Object value = args.get (key);



    In the chain of functions leading to the following in the stack trace:

    at java.sql.Date.valueOf(Date.java:104)
    at oracle.jbo.domain.Date.toDate(Date.java:348)
    to oracle.jbo.domain.Date. < init > (Date.java:279)

    It seems that the value of the java.util.Date is converted to a string and then passed to these functions to be turned into a java.sql.Date object. However, depending on the function of java.sql.Date.valueOf (...), it is expected date format "yyyy-mm-dd", by the header comments:
    /**
    Converts the date a string in JDBC escape format to
    * a Date < code > < code > value.
    *
    s @param a String < code > < code > object representing a date in
    * in format "yyyy-mm-dd".
    * @return a java.sql.Date < code > < code > object representing the
    * date
    * @throws IllegalArgumentException if the specified date is not in the
    * Exhaust JDBC date (yyyy-mm-dd) format
    */

    When the input value of the entered dateField control is added as a java.util.Date, the toString() is produce the incorrect date format, that could be seen in the debug output I've included above that says that the binding variable has changed.



    Anyone done this before that can has let me know what Miss me and how to fix it? I have search everywhere on the web, and all the articles I've seen related to bind variables only refer to those of the digital types or string, that are not giving me problems. Same article of "5.9 Using Bind Variables Named" Developer's Guide (http://database.in2p3.fr/doc/oracle/Oracle_Application_Server_10_Release_3/web.1013/b25947/bcquerying009.htm) do not reference using a Date type.

    I had the same problem on a year (using JHeadstart 10.1.3.2.52):

    15 Feb 14:10:31 DEBUG (JhsApplicationModuleImpl) - research component corresponds to the bind param query SubjectenKernPeildatum, value set for 2000-01-01
    ..
    15 Feb 14:10:33 DEBUG (JhsApplicationModuleImpl) - the execution of applyBindParams for BasServiceKern.AdresRollenSubjecten
    15 - Feb 14:10:33 DEBUG (JhsApplicationModuleImpl) - ViewObject AdresRollenSubjecten: bind peildatum param value has changed: old value = null, new value = Sat Jan 01 00:00:00 THIS 2000
    ..
    15 Feb 14:10:33 ERROR (ErrorReportingUtils) - java.lang.IllegalArgumentException
    at java.sql.Date.valueOf(Date.java:104)
    at oracle.jbo.domain.Date.toDate(Date.java:348)

    It appears a java.util.Date is put on the map criteria in the searchBean, this cannot be used as input for a Houston. Bindvariable date.

    My ugly solution was to substitute ' public void applyBindParams (String voUsage, HashMap args)
    in MyProjectApplicationModuleImp (which extends from JhsApplicationModuleImpl of course).
    Check if the value is a java.util.Date, then
    value = new java.sql.Date (((java.util.Date) value) .getTime ());

    Hello, HJ

    Published by: HJHorst on February 6, 2009 12:22 AM

  • Problems with the use of variables at the time of the SV - Loudness.vi

    Hello

    I'm rather new to Labview and will have questions, get my Time-Varying Loudness calcuations out correctly. Attached is my current VI and a .csv file of my data set (calibrated in PA. sampling frequency = 50 kHz for 5 seconds). It does not produce what I expected when I run the VI. Here are my questions:

    Time-Varying Loudness:

    (1) what are the signals so much? There are hundreds of lines, but I only expect one.

    (2) why my category axis are not a range from 1 to 24 years as bark should be?

    1/3 octave Band Analsysis:

    (1) why is it incorrect? Them should not be a linear increase the frequency...

    Data on the one hand be hurry and make a squeek. It is a transient noise that happens about 2 seconds. But, how could I go do a waterfall (Time (s), Frequency (Hz), Amplidtude (sones)) of this signal? Is there an easy way? or do I have to do all three signals and add to make a parcel?

    Thank you very much for your help! Let me know if you need more infromation,

    -Troy

    p.s. I have included a picture of the results as well.

    Hi Troy,

    (1) the SV specific volume VI 'chunks' given in blocks of 2 ms and returns then these as individual plots specific Loudness vs. Sone.  The colored lines that you see in your chart are representative of the 2 500 2 periods of time ms in your acquisition of five seconds.  Each of these plots contains 241 points, however they are ten sample "gradually", one for each sone.  The digital filter buffer takes a bit to fill and kick in properly, however, so you can give your first rows (0-. 02 seconds or more) scrutiny before using them - you can see a number of unexpected zeros around the lower sones.

    2) since you use a chart, the x-axis will be increments every race following (the previous data is stored.)  If you only want to display the most recent data, I would recommend switching to a chart, which is found in the chart controls palette.  Also, see above (#1) why the x axis are longer than 24 points.

    (3) remember that dB is a unitless measure and cannot be used in reference to another value. A typical reference for sound is 20 uPa, but you will probably need even out your data entry and determine/set dB reference.  You can take a look at the voltage from the snout to the Cloaca EU.vi scale (EU means equalized units) and from the snout to the Cloaca Set dB reference.vi.  In your case, I think the plot of Octave shows your dB from a default value of 1.  The values should be accurate with respect to the other, but you must provide a reference value to calibrate the scale.

    (4) I think that this VI is a good example how to do to create a cascade:

    Display cascading for Octave (DAQmx)

    http://zone.NI.com/DevZone/CDA/EPD/p/ID/5562

    You will need to break up of your waveform into pieces, just like the specific volume VI, but the basic concept is roughly the same (take piece of waveform, take octave measure of the piece, add octave output measure cluster to cluster table, repeat for the rest of the waveform display)

    Phew!  It was a bit of information.  Let me know if this makes sense and don't be intimidated by the detail and/or unknown functions or methods - you're definitely on the right track, or to ask it to at least the right questions.

  • Big problem with the variable PATH approx. need help!

    Hello
    I had a problem with the PATH environment variable. Instead of updating client Informatica & server paths PATH env variable, I created new PATH env variable and to establish client & server paths and saved. When I revisited this PATH Env variable, I was shocked to see the content of the PATH variable. I have to set back the old values like windows OS, DB etc paths paths. Could someone tell me how to make or do I have to reinstall the OS, DB, etc. Am on WIndows server 2003.

    I saved my PATH before configuring Informatica. Here's what I had:

    Path = C:\oracle\10gclient\bin; C:\OracleBI\server\Bin; C:\OracleBI\web\bin; C:\OracleBI\web\catalogmanager; C:\OracleBI\SQLAnywhere; C:\OracleBAM\ClientForBAM\bin;%SystemRoot%\System32;%SystemRoot%;%SystemRoot%\System32\Wbem; C:\OracleBAM\BAM; C:\Informatica\PowerCenter8.1.1\client\bin

    The critical components of the OS dependent PATH is % SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem.

  • Problem with the loading of XML and xmlns

    I'm having a problem with loading an XML file that was created by Filemaker.  FileMaker will display an XML file by using one of two different grammars.  A poster of a standard form for the most that I can use with a glitch.  Flash CS4 AS3 seems to have a problem with the xmlns in one of the nodes.

    More precisely:

    " < FMPDSORESULT xmlns =" http://www.FileMaker.com/fmpdsoresult "> "

    ' If I remove the xmlns = " http://www.FileMaker.com/fmpdsoresult 'the file is loaded properly and I can access the different fields without problem.  However, when I go the xmlns =..., it will trace the XML properly but I can't access the fields by using the code below.  It drives me crazy!

    With part xmlns in the XML file, I get the following error when attempting to load the thumbnails files:

    TypeError: Error #1010: a term is undefined and has no properties.

    I need it so that the user can enter/change the data and simply output the XML file of Filemaker and then the Flash load the XML file not corrupted and displays the information requested by the user.  That is to say I might have the user open the XML file in a word processing application and have remove them the xmlns..., but it is rather heavy and not very user-friendly.

    I tried all the xml.ignore functions I could find, but it does not help.  I hope someone out there can help you

    Thank you

    -Brand-

    _____________________________________________________________________________________

    Partial XML:

    XML to export Filemaker:

    <? XML version = "1.0" encoding = "UTF-8"? >
    <! - this grammar has been deprecated - use the FMPXMLRESULT instead.
    " < FMPDSORESULT xmlns =" http://www.FileMaker.com/fmpdsoresult "> "
    < ERRORCODE > 0 < / ERRORCODE >
    Sport.FP7 < DATABASE > < / DATA >
    < LAYOUT > < / PAGE layout >
    < LINE MODID = '1' RECORDID = "1" >
    Brand of < FirstName > < / name >
    Fowle < name > < / LastName >
    Veil of < sport > < / Sport >
    Medal of <>no < / medal >
    Design of < CourseOfStudy > < / CourseOfStudy >
    < year > 1976-1978 < / year >
    California < HomeState > < / HomeState >
    < ImageName > 93 < / ImageName >
    < / ROW >

    ...

    < / FMPDSORESULT >

    __________________________________________________________________________________

    AS3 code:

    Import fl.containers.UILoader;
    var aPhoto: Array = new Array(ldPhoto_0,ldPhoto_1,ldPhoto_2,ldPhoto_3,ldPhoto_4,ldPhoto_5);
    var toSet:int = 10; time to time delay
    var toTime:int = place;
    var photoPerPage:int = 6;
    var fromPos:int = photoPerPage;
    var imgNum:Number;

    var subjectURL:URLRequest = new URLRequest ("testData_FM8.xml");
    var subjectURL:URLRequest = new URLRequest ("Sports.xml");
    var xmlLoader:URLLoader = new URLLoader (subjectURL);
    xmlLoader.addEventListener (Event.COMPLETE, xmlLoaded);
    var subjectXML:XML = new XML();
    subjectXML.ignoreWhitespace = true;
    subjectXML.ignoreComments = true;
    subjectXML.ignoreProcessingInstructions = true;

    function xmlLoaded(evt:Event):void {}
    subjectXML = XML (xmlLoader.data);

    If {(root.loaderInfo.bytesTotal is root.loaderInfo.bytesLoaded)
    removeEventListener (Event.ENTER_FRAME, xmlLoaded);
    trace ("data XML file loaded");
    trace (subjectXML);
    } else {}
    trace ("file not found");
    }
    imgNum=2;//subjectXML.ROW.length;
    trace (subjectXML);
    loadThumb (0);
    }
    function loadThumb(startPos:int):void {}
    var count:Number = aPhoto.length;
    trace (subjectXML.Database);
    for (var i = 0; i < count; i ++) {}
    try {}
    aPhoto[i].source="images/"+subjectXML.ROW[startPos+i]. ImageName + "_main.jpg";
    } catch (error) {}
    trace (e);
    }
    aPhoto [i] .mouseChildren = false;
    aPhoto [i] .addEventListener (MouseEvent.MOUSE_DOWN, onThumbClick);
    }
    trace ("current mem:" + System.totalMemory);
    ldAttract.visible = false;

    }
    function unloadThumb (): void {}
    var count:Number = aPhoto.length;
    for (var i = 0; i < count; i ++) {}
    aPhoto [i] .unload ();
    aPhoto [i] .removeEventListener (MouseEvent.MOUSE_DOWN, onThumbClick);
    }
    trace ("current mem:" + System.totalMemory);

    }

    function onThumbClick(evt:MouseEvent) {}
    var i: Number;
    trace ("Thumbnail clicked" + evt.target.name);
    i = findPos (evt. Target.Name);
    ldLrgPhoto.source="images/"+subjectXML.ROW[i+fromPos]. LOCAL_OBJECT_ID + "_main.jpg";
    ldLrgPhoto.visible = true;
    btnPrev.visible = false;
    btnNext.visible = false;

    gotoAndStop ("showPhoto");
    }
    function findPos(thumb:String):Number {}
    var pos:Number;
    var count:Number = aPhoto.length;
    for (var i: Number = 0; i < count; i ++) {}
    If (thumb == aPhoto [i] .name) {}
    POS = i;
    }
    }
    return pos;
    }

    Mark,

    The ':' is what we call a scope resolution operator. Using namespace allows you to potentially have two or more nodes that have the same name but a namespace 'different '. "These are normally specified in xml in the form xmlns:mynamespace ="http://myuniqueURI.com/etc"

    Normally, you would use the mynamespace:node by naming your xml nodes that are specific to this namespace.

    But the best is that namespace by default, when there is no real Prefixeespacenom: in the name of node as:

    That's how it is specified in your xml file, that is to say all the nodes without a prefix belong to the filemaker namespace.

    In actionscript, you navigate by using the scope-resolution operator and the variable that represents the namespace does not necessarily resemble the part "mynamespace" above. In your case the namespace used was the one by default (no), but a value has been assigned.

    To the question of the length, you must use the length() method, otherwise the e4x filtering seeks nodes named 'length' and creating a XMLList with no entry in there (because it's not). It is a common thing with other "Properties" that are expressed in the form of methods like children() and often take me when I started with the model XML as3.

  • Problem with the report and the system of axis 2d

    Hi, I'm trying to write a script with tiara, who wrote a 2d axis system in the report but I'm having a lot of problems with it.

    What I'm trying to do, is make 3 or more system axis 2d in the report, each displaying a part of the data of 2 channels (x = ch0, ch1 = y).

    With only 1 graphic I get what I want, but when I try to add the 2nd or the 3rd, they show without my defined x-scale and with the offset x different from the first chart.

    I tried everything, but I could not remedy

    I added as attachments the .csv file that I use to ch0 and ch1 and 2 screen shoots "what I get" (about the problem with the script) and "what I hope to get" (done manually, is what I'm trying to get the report)

    Any help will be appreciated, thanks in advance

    Ierman

    I'll post my code here:

    Dim Xscale, Yscale
    XScale = Array (0,25,0,5,49)
    Yscale = Array(-0.2,0.2,-0.2,10,4)
     
    Call PicDelete()
    Call GraphObjNew ("2D-Axis", "2DAxis1")
    Call GRAPHObjOpen ("2DAxis1")
    D2AxisTop = 1

    D2AxisBottom = 70
    D2AxisLeft = 1
    D2AxisRight = 1
    Call GRAPHObjOpen ("2DYAxis1_1")
    D2AxisyScaleType = "manual".
    D2AXISYBEGIN = Yscale (0)
    D2AXISYEND = Yscale (1)
    D2AXISYORIGIN = Yscale (2)
    D2AXISYTICK = Yscale (3)
    D2AXISYMINITICK = Yscale (4)
    Call GRAPHObjClose ("2DYAxis1_1")
    Call GRAPHObjOpen ("2DXAxis1_1")
    D2AxisxScaleType = "manual".
    D2AXISXBEGIN = Xscale (0)
    D2AXISXEND = Xscale (1)
    D2AXISXORIGIN = Xscale (2)
    D2AXISXTICK = Xscale (3)
    D2AXISXMINITICK = Xscale (4)
    D2AxisXTxt = ""

    D2AxisXColor = 'black '.

    D2AxisXTickAuto = 1
    D2MTickLineWidth (1) = 0.1
    D2MTickLineType (1) = "solid".
    D2AxisXTickSize = 60
    D2AxisXTxtAutoCo = 0
    D2MTickColor = "red".
    Call GRAPHObjClose ("2DXAxis1_1")
    Call GraphObjNew("2D-Curve","New_Curve")

    Call GraphObjOpen ("New_Curve")

    D2CCHNX = "[1] / [1]" "

    D2CCHNY = "[1] / [2]" "

    D2CurveColor = "red".
    Call GraphObjClose ("New_Curve")
    Call GRAPHObjClose ("2DAxis1")

    Dim Xscale1, Yscale1
    Xscale1 = Array (25,50,0,5,49)
    Yscale1 = Array(-0.2,0.2,-0.2,10,4)
    Call GraphObjNew ("2D-Axis", "grafic")
    Call GRAPHObjOpen ("grafic")
    D2AxisTop = 40

    D2AxisBottom = 37
    D2AxisLeft = 1
    D2AxisRight = 1
    Call GRAPHObjOpen ("2DYAxis1_2")
    D2AxisyScaleType = "manual".
    D2AXISYBEGIN = Yscale1 (0)
    D2AXISYEND = Yscale1 (1)
    D2AXISYORIGIN = Yscale1 (2)
    D2AXISYTICK = Yscale1 (3)
    D2AXISYMINITICK = Yscale1 (4)
    D2AxisYTxt = "" ' testo asse label y
    Call GRAPHObjClose ("2DYAxis1_2")
    Call GRAPHObjOpen ("2DXAxis1_2")
    D2AxisxScaleType = "manual".
    D2AXISXBEGIN = Xscale1 (0)
    D2AXISXEND = Xscale1 (1)
    D2AXISXORIGIN = Xscale1 (2)
    D2AXISXTICK = Xscale1 (3)
    D2AXISXMINITICK = Xscale1 (4)
    D2AxisXTxt = «»

    D2AxisXColor = 'black '.

    D2AxisXTickAuto = 1
    D2MTickLineWidth (1) = 0.1
    D2MTickLineType (1) = "solid".
    D2AxisXTickSize = 60
    D2AxisXTxtAutoCo = 0
    D2MTickColor = "red".
    Call GRAPHObjClose ("2DXAxis1_2")
    Call GraphObjNew("2D-Curve","New_Curve1")

    Call GraphObjOpen ("New_Curve1")

    D2CCHNX = "[1] / [1]" "

    D2CCHNY = "[1] / [2]" "

    D2CurveColor = "red".
    Call GraphObjClose ("New_Curve1")
    Call GRAPHObjClose ("grafic")

    Hi lerman,.

    Here is an edited version of your code that works on my computer.  A problem that I know that I fixed it was that your presentation of the STATE was in the name-oriented mode but you use the variables based on the number to assign it X and Y channels.  The execution of these commands in a loop FOR makes it much easier to debug the code and to avoid any annoyance at first.

    Brad Turpin
    Tiara Product Support Engineer

    National Instruments

  • Problems with the windows player video media and internet explorer?

    Original title: Windows Media Player

    I have Windows Media Player 11. I can't play the videos with her. Videos MSN don't is not at all and YouTube loading starts playing and closes exactly 11seconds every time regardless of what particular video. I recently updated my IE 8 browser and tried to use Microsoft Fix it Center Online. It has fixed some problems but not this problem. Any ideas out there? Thanx.

    Hello

    (1) windows operating system you are using?

    (2) have you made changes before the start of this issue?

    (3) what is the exact error message or error code?

    (4) what type of video file you try to play?

    (5) in difficulty he makes you run?

    Step 1: Search for the codecs

    Codecs: Frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows-Vista/codecs-frequently-asked-questions

    For reference:

    Solve problems in Windows Media Player

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-problems-in-Windows-Media-Player

    Resources for the resolution of problems in Windows Media Player

    http://support.Microsoft.com/kb/843509

    According to the problem with the playback of videos in Internet Explorer, try the steps in the following article

    The video problems when you use Internet Explorer

    http://support.Microsoft.com/kb/2532294

  • Error - Windows Media Player cannot play this DVD because there is a problem with the digital copy between your DVD drive decoder and video card protection. Cannot read any DVD.

    Original title: unable to play any DVD

    "Windows Media Player cannot play this DVD because there is a problem with the digital copy between your DVD player and the video card protection decoder. Try to install a driver available for your video card.

    I tried to update all the drivers but the problem persists

    Hi Neil,

    1. have you made any hardware changes or software on the computer before this problem?

    2. what version of windows Media Player do you use?

    You can follow this link & check if the problem persists.

    Windows Media Player Error Message help


    Reference:
    How to troubleshoot issues that occur when you play a DVD in Windows XP?

    Hope the helps of information.
    Please post back and we do know.

  • LifeCam HD-6000 wrong with the audio and video lag during playback, also a problem with the autofocus.

    I have a Lifecam HD-6000 laptop. Since the first day, I had trouble with the audio and video lag during playback. It cuts sometimes several seconds each time. Any program I opened to view it. Windows Media Center, Real Player, Media Player Classic, etc.

    There is also a problem with the autofocus. It will randomly in and out of focus, more spoil videos that I do. Any help with all these problems? I've updated all audio cards, drivers, etc. I am running Windows Vista.

    Thank you.

    Hi thebuell4,

    ·         Did you do changes on the computer before the show?

    Follow these methods.

    Method 1: Perform a clean boot to see if there is a software conflict as the clean boot helps eliminate software conflicts.

    Note: After completing the steps in the clean boot troubleshooting, follow the link step 7 to return the computer to a Normal startupmode.

    Method 2: Install the latest software/drivers for the lifecam.

    http://www.Microsoft.com/hardware/en-us/d/LifeCam-HD-6000-for-notebooks

    Method 3: Follow the steps in the article.

    Image of LifeCam guard auto setting very frequently

    For reference:

    The problems of compatibility between LifeCam and other programs

  • Removal of security icon to remove a mounted cd/dvd drive that can not be delete. also the problem with the apple driver.

    Vista Home premium

    64 bit

    HP pavilion dv4-1220us

    It happens when I went to open I tunes and he indicated a problem with the cd/dvd and then I noticed security remove the icon at the bottom of the screen, attended safe remove and it delete my CD-ROM drive mounted cd/dvd look no further and I notice this driver is part of apple who was a pilot of speed indicating this driver will remove your drive of cd/dvd rom IS NOT WORKING WITH some programs installed.  I contacted apple, we have deleted the driver and complete the process with the driver of the machine. Now, this does not take care of the security delete icon then tech apple tried to help and communicate with Microsoft or hp.

    RESTORE MY COMPUTER SEVERAL TIMES, THIS ICON IS STILL THERE.

    DOWN MY BIOS AND THE ICON IS STILL THERE.

    THIS SCANNER DRIVER AND THE ICON IS STILL THERE.

    Security delete icon States: remove TSST CORP CD/DVD TS-L633L ATA DEVICE READERS of CD-ROM/DVD-ROM if I hit remove it will remove my CD/DVD-ROM DRIVE.

    I went on my computer and click on my cd/dvd rom drive and went to properties and that's what I found below.

    1. FUJITSU MHZ2250BH G2 ATA HARD DRIVE: WENT INTO PROPERTIES TO DISPLAY DRIVERS, IT HAS A HPDSKLFT. SYS DID NOT SIGN THE OTHER TWO DRIVERS ARE THE SIGN. ENTERED DRIVERS FILE AND INSTALLED THE SIGN AND IT IS SHOWING NO SIGN, ALSO WITH HP ASSIST THIS HARD DRIVE IS DISPLAYED AS 0 FAILURE AND DISK.

    2 TSST CORP CD/DVD TS - L633L ATA DEVICE DVD/CD-ROM: ENTERED VIEW PROPERTIES PILOTS AND THIS ONE HAS THE DRIVER OF THE VEHICLE AND A DRIVER.

    At the moment I'd hide so I does not uninstall my cd/dvd drive.

    Do I need another hard drive?

    Is this something with the Bios?

    Apple has tried to help with this driver of train that I'm not sure that this problem is still with this gear or what?  This is the site about the problem to apple and the site of heavy plant driver.

    http://www.GearSoftware.com/support/drivers.php

    http://www.GearSoftware.com/wiki/index.php?title=CD/DVD_drives_disappear_after_installing_iTunes

    http://support.Apple.com/kb/TS2308

    http://www.GearSoftware.com/wiki/index.php?title=drivers:_Windows_ - _Updating, _etc, _64_bit_versions, _removing

    Hi Mamalasting,

    I'd say Hewlett-Packard to visit support website and check if they have the latest drivers for the DVD player.

    Reference:

    http://www.HP.com/#support

    Thank you, and in what concerns:
    I. Suuresh Kumar - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • You try to run the system on my desktop restore encounters a problem with the program looping.

    Original title: System Restore loops

    Hi, I am trying to run restoring the system on my desk is a problem with the program in a loop.  He directs the system restore and then comes back just to start the system again Restore page.  How to solve this?  I started having problems when I have updated the BIOS on my motherboard.  When I installed the motherboard at the start, I think I used the incorrect installation disc (my son has same brand motherboard but the sound is more advanced).

    Recovery of your computer (Windows) using "Recovery Partition" of the Manufacture or
    contact PC manufacturing (see support links below) and order the recovery media.

    Note: Activation is not required when you use the recovery partition or recovery media, but you will need to reinstall all your applications.

    Also to save your documents on external support (if possible) before starting the recovery process.

    Once completed, your PC will be actually in the State when you first purchased it and turned on for the 1st time.

    To access the recovery Partition, start your computer, and then by pressing the appropriate function key. It can be either F1, F2, F9, F10, F11, F12, DEL or tab key. Check the list below or your user manual for your brand and model.

    If your hard drive has failed, do not have a recovery partition or the recovery partition is not accessible,
    Then, you must contact the manufacturer support team and ask for a "recovery disc" which allows to reinstall Windows 7.

    How access/start the process of recovery of the manufactures listed below.

    Acer: Press and hold ALT + F10, as soon as you see the logo
    http://Acer.custhelp.com/app/answers/detail/A_ID/2631
    Acer support: http://www.acer.com/worldwide/support/
    Acer recovery support: http://store.acer.com/store/aceramer/en_US/eRecovery

    Advent: restart your computer, then the immediate start by pressing the [F8] key or the F10 key.
    The fastest way to restore your computer is to use the hard disk recovery tools. You can access them by restarting your computer and then pressing the [F8] key or the F10 key until the Advanced Boot Menu appears. Use the arrows to select "Repair your computer", then press [Enter]. Read all of the instructions on the website of advent and made your choice as to the action you want to perform: http://www.adventcomputers.co.uk/restore-or-reinstall-windows-your-computer
    Support: http://www.adventcomputers.co.uk/product-support/support-services

    ASUS: Press or press the F9 key as soon as you see the Asus logo.
    http://support.ASUS.com/troubleshooting/detail.aspx?SLanguage=en&m=X53E&OS=&no=1775
    ASUS support: http://support.asus.com/contactus.aspx?SLanguage=en

    Dell: Press F8 directly after switching on / to start the computer
    Recovering detail instructions:
    http://www.Dell.com/support/troubleshooting/us/en/19/KCS/KcsArticles/ArticleView?docid=DSN_362066
    http://www.Dell.com/support/troubleshooting/us/en/19/KCS/KcsArticles/ArticleView?docid=52182
    Dell support: http://www.dell.com/support/home/us/en/19?c=&l=&s=
    Or: http://www.dell.com/

    EMachines: hold the Alt key and hold press and release the key F10
    http://Techchannel.RadioShack.com/eMachines-system-recovery-1747.html
    Support: http://www.emachines.com/ec/en/US/content/support

    Fujitsu: Press F8 several times directly after switching on
    https://answers.Yahoo.com/question/index?QID=20110406074143AAcx1Zw
    Support: http://www.fujitsu.com/global/support/

    Gateway:
    http://www.ehow.com/how_6297937_restore-gateway-laptop-factory-settings.html
    https://support.gateway.com/s/software/Microsof/Vista/7515418/7515418su531.shtml
    Support: http://www.gateway.com/worldwide/support/

    HP Notebook: Usually to begin recovery process press the F10 key, power on the computer
    HP Mini: Press F11 directly after switching on / to start the computer
    http://h10025.www1.HP.com/ewfrf/wc/document?DocName=c01867418&cc=us&destPage=document&LC=en&tmp_docname=c01867418
    Support: http://www8.hp.com/us/en/contact-hp/ww-contact-us.html

    Lenovo uses the F11 key to launch the restore process:
    http://support.Lenovo.com/en_US/detail.page?LegacyDocID=MIGR-4UFUYK
    Directions for Lenovo OneKey Recovery, hidden partition and recovery DVDs:
    https://support.Lenovo.com/us/en/documents/ht077384
    and: http://support.lenovo.com/en_US/detail.page?DocID=HT077144
    Support: http://support.lenovo.com/en/supportphonelist

    How to run Lenovo Onekey Recovery
    http://support.Lenovo.com/en_US/downloads/detail.page?docid=HT062552
    Detailed as follows: http://support.lenovo.com/en_US/research/hints-or-tips/detail.page?&LegacyDocID=127597018499211

    You can also find parts of this article from Lenovo worth reading:
    http://support.Lenovo.com/en_US/detail.page?LegacyDocID=MIGR-4VFUDU

    LG: Press F11 directly after switching on / to start the computer
    Support: http://www.lg.com/

    Packard Bell: Turn on your computer. When Packard Bell logo is displayed, press in and hold the ALT key while pressing the F10 key several times. Release the keys when a message that Windows is loading files.
    After the system recovery program has loaded follow the instructions to reinstall the operating system.
    Support: http://www.packardbell.com/index.html

    Samsung: Press the F4 key to the Samsung logo when you turn on first of all of the computer.
    Support: http://www.samsung.com/

    Sony VAIO Windows 7: restart and press "F10".
    https://CA.en.KB.Sony.com/app/answers/detail/A_ID/35585/p/48903, 49902,71663,71664/c/65,67/kw/recovery%20using%20f10
    Sony VAIO Vista: Restart and press "F8" repeatedly until the screen "Advanced Boot Options".
    https://us.en.kb.sony.com/app/answers/detail/a_id/41931/~/how-to-perform-a-system-recovery-using-the-vaio-recovery-center.
    https://us.en.KB.Sony.com/app/answers/detail/A_ID/41949/session/L2F2LzEvdGltZS8xNDA4MjI2NTAzL3NpZC8qWVBPbCpfbA%3D%3D
    Support: http://www.sony.net/SonyInfo/Support/

    Toshiba: Press on F12 or the value 0 (zero) key on the top of the keyboard (not the zero on the numeric keypad key)
    and at the same time, press the button power once to turn on your laptop.
    When the Toshiba screen appears; release the 0 key.
    References: http://www.mytoshiba.com.au/support/items/faq/71
    http://forums.Toshiba.com/T5/system-recovery-and-recovery/how-to-perform-system-recovery-Windows-7/Ta-p/279643
    Support: http://www.toshiba.co.jp/worldwide/

    Windows 7 - location of the Partition Recovery and information.
    "Configurations of drive partitions using the BIOS has recommended.
    Note: Check the diagrams of this article
    http://TechNet.Microsoft.com/en-us/library/dd744364%28WS.10%29.aspx

    J W Stuart: http://www.pagestart.com

Maybe you are looking for