Posts

flash - Relationship of code on first frame of main time line to class code and library objects -

Go to this point where the hole in my AS3 knowledge is getting bigger! Realizing that I have confusion about this relationship: The code body on the first frame of the AS3 file. (Which I have used Library Objects to use the laid-back and used to call the class code). Is this code called codecode? Library Objects (usually Graphical Objects) Should it be done differently? I have the following problems due to lack of understanding: A complex complex from a class, but straight forward in the main body code. Cant call function on the main body code from class code, because class code does not know that the main body code exists? So it seems that two languages ​​can communicate easily? Any indication greatly appreciated. The code on the first frame is called a 'timeline script' and it is minimized (depending on the project) The document class is different, and can be considered a special case. It is automatically called when your SWF starts. This design is se...

Is there a better update system coming for Xcode? -

Xcode 4.0.1 was released a few days ago, which means that I have to update 4.5 once again Downloading GB animal. . Does anyone know if the apple is planning to introduce a better update system? I'm not quite disappointing these days because it's 80% of the way to download and lose connection is.

java - Eclipse Javadoc Compiler Warnings from Command Line -

One of the things I was recently taken from Eclipse to another IDE that I really remember is configurable I can use Eclipse compiler as I - and I know that it is possible to configure all types - I was wondering if configuring Javadoc alerts in this way possible. I'm specifically exploring a way to configure the following settings: Missing Javadok tag for some visibility methods for a certain visibility method You can use this with an external device (such as the possibility of eclipse) or a doctor-probe douglate for it. Standard Doctate (or Javadoc Core) has no choice.

javascript - how addEventListener influences the onclick property of DOM element? -

element.onclick = function () {alert (1); } चेतावनी (element.onclick); उपरोक्त कोड आउटपुट फ़ंक्शन () {चेतावनी (1); } फिर मैं निम्न कोड निष्पादित कर रहा हूं: element.addEventListener ('क्लिक', फ़ंक्शन () {चेतावनी (2 ); }, असत्य); चेतावनी (element.onclick); आउटपुट अभी भी है फ़ंक्शन () {चेतावनी (1); } वास्तव में, जब तत्व पर क्लिक करते हुए कोड addEventListener ('click', function () {alert (2);}, झूठे); काम करता है, इसका अर्थ है कि चेतावनी (2) ने onclick इस तत्व की संपत्ति लेकिन क्यों उत्पादन अब भी अपरिवर्तित है? इसलिए, मुझे क्या जानना है, जब addEventListener निष्पादित करते हुए, कैसे onclick संपत्ति बदल गई है? आपके उत्तर की ओर अग्रसर है। OnClick एक DOM स्तर 0 संपत्ति है। AddEventListener DOM स्तर 2 परिभाषा का हिस्सा है। AddEventListener विधि के माध्यम से ईवेंट हैंडलर को जोड़ने से तत्व पर OnClick प्रॉपर्टी नहीं बदली जाती है, बल्कि यह तत्व पर ईवेंट श्रोताओं के संग्रह में श्रोता को जोड़ती है। आप DOM Level 2 ईवेंट के बारे ...

How comes 'test -n' returns 'true' in bash? -

I was wondering how it comes test -n returns 'true', for example: if test -n; Then echo "yes"; Else "No" echo; Fi "Yes" prints, even if the test is given, theoretically, there is an option with an empty-length string with -n option, which checks that String length is 0 false) or something else (true returns). Thanks This gives the correct test x for the same reason Returns correct - string -n is non-empty This is not using the -n option because -n is second Logic is required and you have not provided one. test -n "" || Echo false x = "" test -n $ x & amp; Amp; Test the truth- n "$ x" || False echo Each echo command executes; Note, in particular, in the middle!

iphone - Accessing a class' running instance from the AppDelegate -

New in Obje-C, I'm trying to trigger a method, an example of myMethod is viewControllerB = & Gt; The visual controller is instantciated to see the controller A = & Gt; I'm trying to call myMethod from AppDelegate => & gt; It seems that anyway I try to do this, this is my method triggering in a new instance of the view controller B So the question is: How to send is the current of a view controller For example a message? Please explain with code samples because I am not really comfortable with Obj-C Thank you! > ViewControllerA.m: if (_viewControllerB == zero) {self.viewControllerB = [[[ViewControllerB alloc] initWithNibName: @ "View ControllerB" bundle: [NSBindle Main bundle]] Autoreshal]; } viewControllerB.m: - (zero) myMethod {NSLog (@ "myMethod!"); } AppDelegate.m: Do not know what to put here: ( To get the same example { (See isKindOfClass) (see UIViewController * self.navigationController.viewController...

nhibernate - Preserve leading zeros when mapping NUMERIC(5,0) to string -

Hope this is a simple question I have a legacy DB2 database on AS / 400, where zones like zip codes Is deposited in the form of NUMERIC. When they mapped to NHibernate, they consider it an integer and leading zeros are lost. Usually I will use from the security table (field) to preserve leading zero, but I understand that if I Formulating the formula to correct the formatting, I force the field to be read only. What is the correct way to type NUMERIC type (with its leading digit) in a string type and again? You are trying to deal it at the wrong level. Leading zero is a performance concern; Just use "00000" as your format string.