Simple Variable question...
Hello guys, I came across a strange problem and do not know if I have missed something. I created a simple code below for my AC, but it gave me an error that says
Access of undefined property 'test '. I know it's maybe just, but I can not find the answer at this time. I appreciate if anyone here can help me...
Thank you!
< fx:Script >
<! [CDATA]
private var test: number; declare the variable to test
test = 25; Give it the value
]]>
< / fx:Script >
You can initialize and judge at the same time (private var test: N = 25), but you can't just have a floating expression like that in the Script block. You can also assign a value inside a function (e.g. private var test: Number; function init (): void {test = 25 ;}), if you won't call from a location (for example, as a Manager for your component of creationComplete event).
Tags: Flex
Similar Questions
-
simple variable problem and question preloader
I am new to AS3 and have a problem with the following code:
Stop();
var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
var homeText:URLLoader = new URLLoader();
var slideLoader:Loader = new Loader();
var sprContainer1:Sprite;
var projectPath:String;LOADING XML
xmlLoader.addEventListener (Event.COMPLETE, LoadXML);
xmlLoader.load (new URLRequest("XML/main.xml"));
function LoadXML(e:Event):void {}
xmlData = new XML (e.target.data);
ParseCategories (xmlData);
}PARSE XML
function ParseCategories(projectInput:XML):void {}
This. Title.Text = projectInput.category.project[0].@name;
projectPath = "projects / ' + projectInput.category[0].@path + ' / ';.
trace (projectPath);}
LOAD THE TEXT FILE
homeText.addEventListener (Event.COMPLETE, onLoaded);
homeText.load (new URLRequest (projectPath + "/ text.txt"));function onLoaded(e:Event):void {}
this.homeTxt.text = e.target.data;
}IMAGES LOAD - LOAD FROM XML MULTIPLE IMAGES - COMPLETE
sprContainer1 = new Sprite();
homeImg.addChild (slideLoader);
slideLoader.load (new URLRequest (projectPath + "/ image2.jpg")); < < CURENTLY LOADING AN IMAGEThe above code shows how to load an XML file that contains the path to the text and image files, I am able to trace the path correctly in the service of ANALYSIS above, but I'm not able to recover the variable (or he also traces) in the TEXT section of the LOAD, please help.
As I continue to code, I would also like to dynamically load images multiples (in the section LOAD IMAGES) using the projectPath and iterate through each image appearing in an XML file. I'm still not at this time, but my question is how to create a preloader/progressbar that overall progress is displayed for all URL requests (the text file and several images contained in the XML file). Thank you immensely.
:
Stop();
var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
var homeText:URLLoader = new URLLoader();
var slideLoader:Loader = new Loader();
var sprContainer1:Sprite;
var projectPath:String;LOADING XML
xmlLoader.addEventListener (Event.COMPLETE, LoadXML);
xmlLoader.load (new URLRequest("XML/main.xml"));
function LoadXML(e:Event):void {}
xmlData = new XML (e.target.data);
ParseCategories (xmlData);
}PARSE XML
function ParseCategories(projectInput:XML):void {}
This. Title.Text = projectInput.category.project[0].@name;
projectPath = "projects / ' + projectInput.category[0].@path + ' / ';.
trace (ProjectPath);useProjectPathF();
}
LOAD THE TEXT FILE
function useProjectPathF() {}
homeText.addEventListener (Event.COMPLETE, onLoaded);
homeText.load (new URLRequest (projectPath + "/ text.txt"));}
function onLoaded(e:Event):void {}
this.homeTxt.text = e.target.data;
}IMAGES LOAD - LOAD FROM XML MULTIPLE IMAGES - COMPLETE
sprContainer1 = new Sprite();
homeImg.addChild (slideLoader);
slideLoader.load (new URLRequest (projectPath + "/ image2.jpg")); -
If exposed simple of questions?
Alright fellow programmers. Once more what I meet a problem I have EVER had with other JAVA programs before. IAM trying to figure out how to write a simple if statement and I have questions. I did Google search and have found something to help. So, if you could please tell me what may be the issue? The error message is "error {invalid AssignmentOperator. syntax". Thanks in advance!
Double BinRadius = (Integer.parseInt (txtRadiusFeet.getText ()) * 12) + Integer.parseInt (txtRadiusInches.getText ());
FieldChangeListener CalcListener = new FieldChangeListener() {}
' Public Sub fieldChanged (field field, int context) {}
Double BinRadius = (Integer.parseInt (txtRadiusFeet.getText ()) * 12) + Integer.parseInt (txtRadiusInches.getText ());{If(BinRadius==0)}
Dialog.Alert ("Hello");
}
};Capital I yew?
-
DAC 10g: Variable Question
Hi all
I have a question on the establishment of a dac setting. If the scenario is as follows:
We have several plans which runs to complete a fact table, source data from different sources for different EP. All these execution plans have a common task. This task common relies on informatica mapping that contains different look-up the challenge here is that we are trying to pass a variable in the eyes upward in the map, and this variable/parameter should have a dynamic value based on the running plan. I know that in DAC 11g, we have the execution level parameters that can be set. How can this be implemented in DAC 10 g?
Thank you!
To resolve this problem, I did the following:
(1) created a setting in the source system.
(2) type = SQL and used a SQL query to retrieve the desired value for the variable dynamically in the staging tables of fact.
Thank you!
-
It is a really simple problem and I'll probably be a little dim but as I do not code things very often simple things tends to leave my brain.
Summed up quite simply I have an if statement which, instead of using the current value of a variable appears to be implemented.
More detailed description:
I have 2 symbols, 'Olive', which is a three marked positions timeline animation, ' open, 'enabled' and 'closed' who defined the value of the variable 'positionO' as a result. I tested this little with alerts and is very well.
When I mouse over the second symbol I want to retrieve the variable and play different parts of the animation depending on its value, well?
I have this piece of code on the mouseover element:
var myVariable = sym.getComposition().getStage().getSymbol("Olive").getVariable("positionO"); if (positionO = 'open'){ alert (positionO); }
Now to me, this should trigger the alert if the variable is set to 'open' and do nothing if the value is something else, but what he is doing is setting the variable 'open' and shooting alert anyway.
Thanks in advance,
Alex.
Try this (equal) 2 for comparison:
if (positionO is 'open') {alert (positionO) ;}
-
Hey guys,.
I learn some basic PHP to make a simple form, and I have a small question. I have these two test of the PHP, Form.php and acion.php files. What you enter in the form is then displayed via $_POST to action.php that gets displayed. Here are the test sites:
http://christianstest.info/phptest/form.php
http://christianstest.info/phptest/action.php
And for two, verry simple code:
Form.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>PHP Form Test</title> </head> <body> <form action="action.php" method="post"> <p>Your name: <input type="text" name="name" /></p> <p>Your age: <input type="text" name="age" /></p> <p><input type="submit" /></p> </form> </body> </html>
and action.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> Hi <?php echo htmlspecialchars($_POST['name']); ?>. You are <?php echo (int)$_POST['age']; ?> years old. </body> </html>
Now I want to do is have action.php store data entered in Form.php so that someone could link directly to action.php and see what the end user concluded Form.php. Now, if you go directly to a non action.php caching it does nothing for the return of name and age. How can I get this data stick? If in fact, it is not a simple question, can you point me to a tutorial? Thank you!
You'll want to republish this topic in the Dreamweaver forum:
http://forums.Adobe.com/community/Dreamweaver?view=discussions
Take care, Mike
-
Running header Variable Question
FrameMaker 11
I would like to show a hierarchy in the headers of my (manual system) document as a quick reference to the drive location in the document.
The look I'm going to do is something like this: title 1 > section 2... results by...
Planning > creating a Plan
I have inserted variables. Heading 1 is my chapter name and occurs only once in each file. When I get to the section 2... It works very well. But...
The first pages look like this:
Planning >
because the FM has yet to see the first instance of heading 2.
Question No. 1: Is there a way to 'hide' the arrow (longer than symbol) until there is a second helping of the flat string variable?
I don't know if this would be considered conditional text? Sorry, my FM vocabulary is rusty. It's been a few years and a few versions I was working regularly in FrameMaker.
Question 2: Anyone know of an 'arrow' better that I can use (keystrokes of shortcut or ascii) rather than the > character?
You can see what is happening to the headers running when you move from one page to another:
3rd & 4th levels always show what was on the previous page! This would be very complicated to your readers.
What you need to do is at each entrance to top title, also push empty markers for the next levels of reset these to get the following instead:
It may take a bit of tweaking on certain pages according to the headers are also displayed. But at least you can control this by adding or removing content in the marker (just don't remove markers, since always FM looks backward to the beginning of the flow to satisfy the requested condition and can take the content of the previous sections).
-
I can get my way around Javascript and PHP, but simple things in AS3 stump me.
The following code works fine:
slideIn();
function slideIn (): void
{
var myTween:Tween = new Tween(_root.content_txt1,"y",Strong.easeOut,-150,5,3,true);
}
I want to reuse the function of the different elements by inserting a (num) argument into the function. The trace function shows me that the variable has the correct value. However, interpolation analysis the variable 'point '. It looks for an element named "item", which results in an error.
slideIn (1);
the function slideIn (num): void
{
var point = "_root.content_txt" + num;
trace (Item);
var myTween:Tween = new Tween(item,"y",Strong.easeOut,-150,5,3,true);
}
Thank you.
Right, because the element is a string and strings do not have a property y. just because you do not type the variable element does not mean that Flash does not know that it is a string.
You must use array notation to get the object inside the movieclip eric.
var point: TextField = eric ["content_txt" + num];
You may also expressed as follows:
var item: TextField = TextField (eric ["content_txt" + num]);
Or if you plan to use it on various different display objects:
var item: DisplayObject = DisplayObject (eric ["content_txt" + num]);
-
validation to a specific table only and simple a question on the dml trigger
Hi all
guess I am connected to a database with the user ' scott'/'tiger'@orcl and I have the fire instructions insert on 2 different tables allows say tables is
(1) emp
(2) Dept.
and now I want only to commit the emp table and not the table dept, is it possible to do?
Another question, I have... are commit simple dml triggers auto or not?
Concerning
RahulMac_Freak_Rahul wrote:
and now I want only to commit the emp table and not the table dept, is it possible to do?
No, it isn't. You post a transaction, not a table...
So if you have handled several tables in your transaction, you agree to be all these changes (via the command commit), or any of them (via restore).>
Another question, I have... are commit simple dml triggers auto or not?
If your dml trigger manipulate data (a very bad practice by the way), then they just add to all of the changes made to the breast of your transaction, you (as mentioned above), either commit all or none.
-
Hello world
My question is quite simple. I have two text boxes. I wrote "123" in the first text box and 'abc' in the second area. When I put the two boxes, the content in the second box automatically flowed to the first area, because there was space in the first box. Now the first box shows "123abc", and the second box is empty.
How to stop Indesign automatically cela. Is this possible? I know I can do it by screwing the two boxes first then the input data, but I have already entered all my data and it save me a lot of time if I can just have screw now. Thank you very much!
Simon
Until you put frames, insert a frame break in all Type > submenus insert a special character
Then content don't flow from 1 in frame 2 frame when you put on, because you insert a frame break stops at what happens.
-
Table Simple Dreamweaver question
I have so many tables, 100 rows, 5 columns for my data. Here's my question, is there a way to tilt the table given above then go down and up and down. All my data is from the old to the new, when I want recent to old. I know that you can do in Excel by alphabet or date, id there a way DW
Someone can correct me if I'm wrong, but I'm sure you can't sort a column or row of values in a table html using DW. What you could do is create your list in Excel, sort the list in Excel and copy the range of the table and paste it into DW, which will create a perfect html table. You can also copy and paste from Dreamweaver to Excel, but it is not as simple. You will need to copy and paste a column at a time, and you will have an additional empty line for each line populated.
Another solution is to create a mySQL table that can be easily sorted and uses PHP to display the table on your page. You must know at least the basics mySQL and PHP to do that, but if want to add constantly new records to your table, mySQL is your best solution. If your table is static, the first solution works perfectly.
-
I have a simple graphic menu with javascript mouseovers. I use cfinclude on all of my pages to include the menu. How to keep the image mouseover on that specific page. Is it possible to send a variable with cfinclude? Or should I use another tag?
Variables in the URL don't make much sense.
I would normally just something like that...
aPage.cfm
menuInclude.cfm
There are countless variations on this according to exactly how you want your menu to work, but it gives you the basic idea.
-
Hello
I have user rights to an Oracle 10 g server, but am not a DBA, so I did not all editing permissions that I know. I just use the database for queries.
I want to understand how to use PL/SQL to enter variables but am struggling to find some simple examples of this?
I use Oradev Studio to perform my SQL and we tried the following:
declare
type of v_dealname global_sf.deal.deal_legal_name %;
Start
Select
deal_legal_name in v_dealname
Of
global_sf. Deal
where
deal_id = '87148804';
dbms_output.put_line (' name: ' | v_dealname);
end;
which I hacked together here;
http://www.DBA-Oracle.com/t_pl_sql_plsql_select_into_clause.htm
Strangely the OraDev output section gives me this encouraging message "SQL6.sql: Execute succeeded [0.095 s]" but it gives me a printed copy of the variable I was hoping. Is there a 'window' or equivalent that I did not find? The query has actually worked?
I also tried to put a variable in the where clause in another arbitrary query:
declare
v_dealid INTEGER (8);
Start
v_dealid: = 87148804;
Select
creation_dt
deal_legal_name
actual_maturity_dt
Of
global_sf. Deal
where
deal_id
=
v_dealid;
end;
Here I get the error 'an INTO clause in this SELECT statement.
Could someone advise me please on some of those issues of basic variables? Ideally a breast of simple examples, I could use it don't require admin rights would be fantastic. It would be much appreciated.
Thank you
Jon
Published by: berlinhammer on August 24, 2010 04:48I use Oradev Studio to perform my SQL
Probably the post on the forum to DBMS_OUTPUT problem contributes to operate in OraDeveloper the dbms_output.
-
the values of simple variables share .swf files
I need to send three simple film of mother variable values to subsequent files .swf test-tube. I use loadMovieNum() to load external .swf two files replace the film of the mother and also to sit top and can't get the values of the variables to pass from one to the other. I have to load them from an external file, or do something fancy. I just need the film to retrieve the values of the film of the mother who gave birth there.
Thanks in advance.I had a similar problem, since I started to learn As.
use _global.variableName = "no matter."
Let's say that you need to pass the variable "tom" of the film at the cinema
Try this...
_Global.myName = 'tom '.
in another film use
theText_txt.text = MyName;
It would create dynamic text with instance name equal to your global variable "theText_txt" in this case, "tom."
I would start here.
try to look for the passage of the variables or global variables and see what happens in the posts previous forums.I hope this helps.
Sky
-
Network published simple Variable help
I am writing a program to be a 'LabView wrapper' for iperf
I need to run iperf server and client iperf on two different machines.
Machine: iperf Server launch and write ture to a shared variable
B: machine customer shared reading variable iperf and launch if computer A is running iperf Server
I've never used a shared variable before, I looked at the examples, but as usual, they work but are default and one explanation as to why or how.
I managed to get as far as a variable to shine as a network type Boolean putting published a shared on my block diagram variable I can choose the my project server variable, very well, but the shared variable is read-only?
How can I write to a shared variable?
Right click and change the access mode to write
Maybe you are looking for
-
Satellite L20-100: Nero does not recognize the UJ - 841S
HelloOur computer is Satellite L20 - 100... He has a special CD burning program Sonic Record and it does not crush. I want to use Nero or Alcohol 120, but the computer does not support them. Is there a special driver or something that can allow the u
-
Im trying to load the update of Mac OS x combined Server software on my Mac Pro Tower 10.7.5 worm and it says that my disk volume does not meet the requirements of the software? Has anyone ever come across this problem?
-
NOR-8451 with embedded Windows
The NOR-8451 is not compatible with Windows Embedded? I have LabVIEW on but I can't get 8451 drivers to install. When I run the installation of the drivers I don't get the error messages to give me an indication that something was wrong. Thanks for t
-
Vista Patch... Third time is a charm no start after update
I am running Vista Home Premium x 64 on a Gigabyte card with 4 GB of RAM. The last update applied to stop the system while I was with her and now the cycles over and over. When you try to start using "safe" mode initialization freezes on crcdisk.sys
-
patch W32.dll DSI is not a valid windows image
While the upgrade of my Quicken10 I found that an upgrade was necessary so I had downloaded on my computer, but when I try to install the message following application dll C:\documents and settings \all users\application data\int.it\quicken\net\commo