E4x - Variable is not defined
Hi all,
I built an AIR app to store the contact info everyon in my office. The data comes from an XML file and it was all working until I started tinkering and broke it. To trace the problem I built a 20 line test app but still cant get it to work.
I have an xml file with the following structure (it has about 100 contact nodes):
<contactSheet>
<contact>
<firstName>Joe</firstName>
<secondName>Bloggs</secondName>
<country>UK</country>
<office>Office Towers</office>
<extension>000</extension>
<directDial>000 000 000</directDial>
<email>@work.com</email>
<mobile>0123456789</mobile>
</contact>
</contactSheet>
In my app I have an HTTPService with a result type of 'e4x'. On creationComplete I send this service and the result is processed by a method that sets up a var called contactData:
contactData = new XML(e.target.lastResult);
If I then trace contactData..contact or contactData..contact.country I get the results I would expect but then I try to trace only the contacts from a certain country using contactData..contact.(country == "UK") and I get an error saying Error #1065: Variable country is not defined.
I am sure that I have had this working before and there is nothing else happening in the build to break it so I am puzzled.
Any suggestions gratefully accepted.
Cheer
You need to do this (remember the @):
contactData..contact.(@country == "UK")
If this post answers your question or helps, please mark it as such.
Greg Lafrance - Flex 2 and 3 ACE certified
www.ChikaraDev.com
Flex / AIR Development, Training, and Support Services
Similar Messages
-
Hi, it is my first attempt to modify a rdf file.
I run into a problem while trying to add an additional user parameter in an existing rdf file. While I am successful in adding a new FREQUENCY user parameter and I am able to update the form to show this new parameter, I am not able to run the report.
I have updated the SQL query in the report editor, under data view to use this new parameter :FREQUENCY. (select ... from table where frequency= :FREQUENCY) There was no error here.
Whenever I run the report, I will always get an error saying:
"REP-0730: The following bind variable is not defined: "(nothing behind this error message)
The program will have a memory error and it exits itself.
I had tried many methods trying to solve this problem to no avail.
I am using Oracle 9i Reports Builder 9.0.2.0.3.
I would appreciate any help given on this matter.
Thank you :)
Message was edited by:
LeionIn Object Navigator Under Layout ->User parameters are you able to see your bind variable FREQUENCY?
-
ReferenceError: Error #1065: Variable is not defined.
Hi people.
Whatever I do (seems like) I end up with the following
message in Flash CS3:
"ReferenceError: Error #1065: Variable is not defined."
I have no clue to what causes it, and therefor I cannot seem
to fix it. I've been trying to look for answers online, but all I
got out of that was to declare my classes as public, which I
already had done.
Even a very simple class that runs a trace command from its'
constructor method won't work. It even gives me this message even
though I don't have any variables or trace commands or anything.
This is really annoying, so please help me out :)
ASome code sample would help - and remember classes must be
contained within
packages in CS3.
Dave -
Head Developer
http://www.blurredistinction.com
Adobe Community Expert
http://www.adobe.com/communities/experts/ -
Error #1065: Variable is not defined on ObjectUtil??
One comment to Adobe, it would be nice if the debugger would
output better errors. Maybe it's just my lack of experience, but
trying to track down errors is a daunting task.
I had spent an entire night trying to track down this error
and it has come down to the following code:
private function server_fault(event:FaultEvent):void{
Alert.show(ObjectUtil.toString(event));
The ObjectUtil seems to be causing this error as if i change
it to (event as String) it works fine. But this makes absolutely no
sense since i have other classes that use the exact same code w/o a
hitch. I do have the ObjectUtil imported.
Here is the entire error:
ReferenceError: Error #1065: Variable is not defined.
at global/flash.utils::getDefinitionByName()
at mx.utils::DescribeTypeCache$/describeType()
at mx.utils::ObjectUtil$/getClassInfo()
at mx.controls::DataGrid/::generateCols()
at
mx.controls::DataGrid/mx.controls:DataGrid::collectionChangeHandler()
at mx.controls.listClasses::ListBase/set dataProvider()
at mx.controls::DataGrid/set dataProvider()
at mx.core::Container/createComponentFromDescriptor()
at mx.core::Container/createComponentsFromDescriptors()
at mx.core::Container/mx.core:Container::createChildren()
at mx.core::UIComponent/initialize()
at mx.core::Container/initialize()
at mx.core::UIComponent/
http://www.adobe.com/2006/flex/mx/internal::childAdded()
at mx.core::Container/
http://www.adobe.com/2006/flex/mx/internal::childAdded()
at mx.core::Container/addChildAt()
at mx.core::Container/addChild()
at mx.core::Container/createComponentFromDescriptor()
at mx.core::Container/createComponentsFromDescriptors()
at
mx.containers::ViewStack/createComponentsFromDescriptors()
at mx.core::Container/mx.core:Container::createChildren()
at
mx.containers::TabNavigator/mx.containers:TabNavigator::createChildren()
at mx.core::UIComponent/initialize()
at mx.core::Container/initialize()
at mx.core::UIComponent/
http://www.adobe.com/2006/flex/mx/internal::childAdded()
at mx.core::Container/
http://www.adobe.com/2006/flex/mx/internal::childAdded()
at mx.core::Container/addChildAt()
at mx.core::Container/addChild()
at mx.core::Container/createComponentFromDescriptor()
at mx.core::Container/createComponentsFromDescriptors()
at mx.containers::Panel/createComponentsFromDescriptors()
at mx.core::Container/mx.core:Container::createChildren()
at
mx.containers::Panel/mx.containers:Panel::createChildren()
at mx.core::UIComponent/initialize()
at mx.core::Container/initialize()
at views.movie::MovieDetail/initialize()
at mx.managers::SystemManager/
http://www.adobe.com/2006/flex/mx/internal::childAdded()
at mx.managers::SystemManager/
http://www.adobe.com/2006/flex/mx/internal::rawChildren_addChildAt()
at mx.managers::SystemManager/addChild()
at mx.managers::PopUpManagerImpl/addPopUp()
at mx.managers::PopUpManager$/addPopUp()
at com.windowedApplication::WindowManager$/add()
at
views.movie::MovieMaster/__movieDataGrid_doubleClick()I have on the permit debugging option but it says nothing but these errors
ReferenceError: Error #1065: Variable Button is not defined.
ReferenceError: Error #1065: Variable ComponentShim is not defined.
ReferenceError: Error #1065: Variable LoaderProV3AS3 is not defined. -
HELP ReferenceError: Error #1065: Variable is not defined.
okay i keep writing code for a button that when clicked
should jump to another frame on my timeline but each time i preview
it i get this error : ReferenceError: Error #1065: Variable is not
defined.
I NEED HELP PLEASE HOW DO I DEFINE THE VARIABLE?you declare its data type to stop the error message, but
that's unlikely to help you because you're probably trying to use a
value of some variable.
so, you need to pinpoint the area of code that triggers the
error message. for example, does the error only appear after you
click your button? -
Environment variable ORACLE_SID not defined.
I tried the command below
emctl -config dbcontrol db -repos drop
but I see this error message
Environmet variable ORACLE_SID not defined. Please define it.
Notice that Oracle is installed on Windows , just for studying.
Can anyone help me here please?user11083827 wrote:
I tried the command below
emctl -config dbcontrol db -repos drop
but I see this error message
Environmet variable ORACLE_SID not defined. Please define it.
Notice that Oracle is installed on Windows , just for studying.
Can anyone help me here please?And what do you not understand about "+Environment variable ORACLE_SID not defined. Please define it.+"?
Why don't (or can't) you define this variable?
:p -
Flash CS3: AS3 - ReferenceError #1065 Variable is not defined
I have developed several actionscript classes. Two of these
classes are associated with MovieClip objects in the library. The
MovieClips have their Linkage Base Classes set to their respective
package and class locations and when I check the Linkage settings
(using the check mark icon) Flash CS3 reports that it can find the
associated classes for both MovieClips.
When I check the syntax of my code there are no problems, and
when I test the Flash movie no Compile Errors are shown. Yet, in
the output window I get the following error:
ReferenceError: Error #1065: Variable class1 is not defined.
ReferenceError: Error #1065: Variable class2 is not defined.
I have placed class1 and class2 in the above error messages
to represent the classes that are associated with the MovieClip.
Am I missing an import command somewhere? I have the base
class path properly set in the preferences of Flash CS3.
Thanks,It appears that this issue was due to some of my classes not
being marked as public. I had been following examples from AS2 that
had the classes marked as dynamic without a private or public
identifier. Apparently, AS3 assumes all unmarked classes are
private. -
Shared library extended class Error #1065: Variable is not defined
Right, bit of a complicated set-up here. I've got a class structure which includes the View class:
com.website.buttons.MyButton
Then i've got a shared library swc called sharedassets.swc that contains a MovieClip in the library that uses 'com.website.buttons.MyButton' as its 'Linkage Properties' base class, extending with the following empty class:
com.website.timeline.sharedassets.BackButton
Then i've got a second swc that imports the BackButton mc into its own library as a shared library asset, and uses an instance of it on the stage in a MovieClip of it's own called LinearNavBar. LinearNavBar's Linkage Properties are thus:
Class: com.website.timeline.sequence.LinearNavBar
Base class: com.website.navigation.LinearNavbar
Again, 'com.website.navigation.LinearNavbar' is an actual class in the code base, whilst 'com.website.timeline.sequence.LinearNavBar' does not exits (ie: its dynamically created by the swc at compile time). 'Automatically declare stage instances' is unchecked
Over in the class structure in my Flash Builder project, I've got another class
com.website.navigation.Sequence
Which instantiates a new version of LinearNavBar and adds it to the stage:
var navBar:Navbar = new LinearNavBar();
addChild(navBar);
At which point the following error is shown:
ReferenceError: Error #1065: Variable BackButton is not defined.
It seems Flash Builder cannot find 'com.website.timeline.sharedassets.BackButton', even though BOTH compiled swcs are included as part of the projects.
What gives, my friends? I am most heartily perplexed.I have on the permit debugging option but it says nothing but these errors
ReferenceError: Error #1065: Variable Button is not defined.
ReferenceError: Error #1065: Variable ComponentShim is not defined.
ReferenceError: Error #1065: Variable LoaderProV3AS3 is not defined. -
Error # 1065: Variable is not defined ..
Hi ALL,
I m wondering for 2 days whats this error means, previouly my file was running perfect, one day i open and do some changes than compile it shows these errors in output panel :
1. variable button is not defined.
2. variable component shim is not defined.
3. variable loaderprov3 is not defined.
i cant find how to fix these,as the behavior of flash is ambigious now. one time i run the file it runs perfectly, second i just code simple if else statement and than run the file, it leads to the above mentioned errors i m totally stuck and cant find any ways to get rid of these junks, Also compiler error window says, "unknown error optimizing byte code".
Anyone help me out,
cheers.I have on the permit debugging option but it says nothing but these errors
ReferenceError: Error #1065: Variable Button is not defined.
ReferenceError: Error #1065: Variable ComponentShim is not defined.
ReferenceError: Error #1065: Variable LoaderProV3AS3 is not defined. -
Environment Variable ORACLE_SID not Defined. Please Define it
1..I am facing the above message when ever i write the follwing command in windows 2000 proffissional to start EM Service in Oracle 10g:
C:/> emctl start dbconsole
2..I am also facing the problem to connect as "SYS as SYSDBA" in ISQL*PLUS on window 2000 proffisional for Oracle 10g:
SP2-0306- Invalid option. Usage: CONN[ECT] username/Password[@connect_identifier] [As{SYSOPER/SYSDBA}] or CONN[ECT]/[@connect_identifier] As {SYS OPER/SYSDBA};Hi,
Q.1
Please Define it
c:\>set ORACLE_SID=<SID>
Q.2
http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14357/ch1.htm#sthref231
regards
Taj -
"report" not defined in BPM tutorial
I downloaded BPM suite to test it out and the report variable is not defined. The tutorial said it was self defined, but I got errors when I tried to add result == "Accepted" and report.isApproved == true in the Adding a Condition Transaction part of Activity 4: Adding Alternative Paths.
I have errors so that I can not update also. Eclipes Platform 3.3.2.r33x has a red x in front of it. Don't know if this is related to the above problem or not.
Does anyone know how to fix this?i think you need to declare the BPM Object under catalog.
Then, you will need to define the instance variables for the process as report. -
After successfully installing Tomcat on my Windows 2000 PC (which already has JDK1.2.2 up and working) I did this in DOS:
SET JAVA_HOME=C:\jdk1.2.2
and DOS did not object, so I assumed it worked. (However, I'm not schooled in DOS and so I'm not sure.)
When I double-click the Start Tomcat shortcut icon, a blank DOS window flashes momentarily, but nothing else happens.
But when I try to start Tomcat by double-clicking startup.bat I get a dialog box with white X on a red circle which says, "Cannot find the file
'-Djava.endorsed.dirs=' (or one of its components). Make sure the path and filename are correct and that all the required libraries are available."
And the DOS window says:
The JAVA_HOME environment variable is not defined
This environment variable is needed to run this program
Using CATALINA_BASE: ..
Using CATALINE_HOME: ..
Using CATALINA_TMPDIR ..\temp
Using JAVA_HOME:
Any suggestions would be most helpful. Thanks!!!For windows 2000, go to Control Panel and launch System. Then select Advanced tab and click on Environmental Variables. Add a new variable named JAVA_HOME and its associated directory.
In the newer windows like 2000, the command prompt is not like the older windows DOS. Using SET JAVA_HOME=C:\jdk1.2.2 only sets the variable for one command prompt window. -
JAVA_HOME var not defined , Tomcat launch error
hi Friends ,
i just installed Tomcat 4.1 on my new m/c
when i go to browser and
write http://localhost:8080/
i see the Tomcat welcome page means tomcat has been set up successfully
however when i select 'Start Tomcat' from program files , the tomcat window opens and closes in 2 seconds
and when i launch Tomcat using catalaina run command i get the msg
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
Using CATALINA_BASE: ..
Using CATALINA_HOME: ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME: C:\jdk1.3\bin;
'-Dsun.io.useCanonCaches' is not recognized as an internal or external command,
operable program or batch file.
how do i resolve the isue?i Have defibed path & JAVA_HOME as
C:\Java1.4\j2sdk1.4.0-rc;
this is where ihave my jdk installed
i m still unable to resolve the issue
pls help -
Tomcat Does not run : catalina_home not defined correctly
Hello guys
im having a problem with tomcat4.0. ive installed tomcat-4.0 at c:\jakarta-tomcat-4.0.
and
jdk1.3 at :\jdk1.3
Ive set enviroment variables
catalina_home = c:\jakarta-tomcat-4.0
java_home = c:\jdk1.3\bin
classpath = c:\jdk1.3\lib\tools.jar
Event then when I run the startup.bat from c:\jakarta-tomcat-4.0\bin it gives error
The CATALINA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
Plz help me in this regardYou could download the Java Web Services Devloper Pack from this website and install that. It includes Tomcat 4 and does all the configuration for you (at least on Windows) :)
-
Session variables is not recognized in my CFC
Hi,
I got a very weird problem today! I have created a simple
login page ( username as an email and a password). This is post to
the same page where I verify from a query if the username and
password are valid. Once the query returns a RecordCount greater
than 0, I create session variables to store the first name and last
name of the user. I can see actually the session variables from a
CFDUMP at that level.
Since I am developping an application that will mix
ColdFusion (mostly CFC) and Flex 3, I have created a CFC where I
store functions needed for the Flex application. One of the
function is fGetUserInfo where I try to collect the information I
previously store in the session scope from the login - such as the
first name. The system stop right there with an error saying that
the session variables are not defined while I have the session
variables appear at the bottom of the debug information in the same
page. This is starting to be over my knowledge and I must missing
an information to resolve this - in other words, I need your
help!!!
I include some code to understand that the problem is not a
mispelling!!! ;-))I tried to change the savings of the user's information into
cookies instead of the session scope but it does the exact same
error (except it says Element TECHNICIANID is undefined in COOKIE).
In fact, after a little break, I started to think about the
method to access the functions inside the CFC. As it is remote, I
though that it might have a sense of no life on the session scope.
Than I though about the idea to transfer all the informations to
the client with Cookie. CFCOOKIE work fine and I was kind of
animated by my idea! I coded, I tried and it failed. I used at
first the default value of the CFCOOKIE which consists to reside on
the memory like a session but disapear when the user close his/her
browser. So after the first fail I change the expiration for 30
minutes but it failed again and for the same reason: Element
TECHNICIANID is undefined in COOKIE.
Maybe you are looking for
-
Is there a way to use a progress bar with Xerces XML Parser?
My program is parsing very long XML files that take several minutes to parse. I am using Xerces as the parser. I would like to use a progress bar to show the progress, but I haven't found any way to get Xerces to give progress updates. Is this possib
-
Oracle Text location of Indexes
I am creating an Oracle Text index as per example given in documentation. I have set my storage preferences to point all the created tables / indexes to a given tablespace. This works fine, however I still get one index (domain) being created in the
-
Can't update After Effects CC - Error U44M1P7
I've been trying for a few days to update After Effects CC and it keeps failing with code U44M1P7. Digging into the logs, it looks like the root error is: "ERROR: DS015: Unable to read symlink target of source file "/Applications/Adobe After Effects
-
Where do I set URLRequestDefaults.idleTimeout in air client?
My air client sends long running request to server, but the air client times out. I need to increase this time out, but in which class do I need to set URLRequestDefaults.idleTimeout? Any class is ok or should be set in a certain class?
-
Environment for Kurzweil K-2661
Does anybody knows where I can get the Environment file to change programs in my Kurzweil K-2661 directly from Logic Pro 8.0??? The same I need for Korg Triton Studio, Roland XV-5080... I simply can not find any dowloadable files that would bring the