Iterating through the classes 'Point '...
Hello worldI have a question very very simple to ask:
The following lines are inside one of my methods:
Focus() dim = new Point [5];
for (int i = 0; i < 5; i ++) {}
protected.x = (int) (Math.Random () * 100);
Var [i] there = (int) (Math.Random () * 100);
}
and for some reason, I get a null pointer exception error!
Any help... ?
Edited by: 806602 the Οκτ 31 2010 03:57 μμ for some reason any Sun is not displayed correctly! It should have been (i) .x Sun and Sun (i) there
Edited by: 806602 the Οκτ 31 2010 03:59 μμ
806602 wrote:
You start an array of 5 strings..... .but they have not been instantiated yet...
so I guess that the result would be null in both cases...?
Exactly! It goes the same for your situation. Creating a table does not automatically create objects and insert them for you.
PS how do you set the code tags?
Type
before and after your code.
Tags: Java
Similar Questions
-
Tunnel traffic through the Access Point
I "tunnelenabled" in the parameters of Access Points of JSON: true;
And on the Access Point associated connection servers config guide recommends not allowing the tunneling.
The end result is that the traffic is going through the Access Point and not crossing does not connect to the server. The client wants to keep the absolute minimum for the ports open between the objects, so I want to tunnel traffic from the Access Points through the connection to the server, and then click the virtual and physical machines internal who installed the agent to view. Even when I check the options of tunnel on the login server it always appears as if traffic is bypassing the broker for the connections and go straight to the agents.
What the configuration change that I do have all the traffic goes through the access points and associated connection servers?
Thanks in advance for any help or suggestion-
J
After a lot of trial and error reduced us to certificates that we created for Access Points. HTML5 Blast Bridge did not have other names of the object in the cert. Once we gave them a cert that had the URL and not the SAN (subject alternative names) with the real access Point server names that Blast started working again.
-
Iteration through the activeDocument.layers is very slow
Hello
I am trying to build a table of all visible layers currently in a document, and the only way I know how to do it is by performing an iteration (by using where loop method) app.activeDocument.layers however, the problem is it is really slow for some reason any. For 37 layers, it will sit there for about 10 to 15 seconds and the mouse pointer will fluctuate between normal and busy pointer.
A few questions:
(a) is there a better way to build the list of visible layers?
(b) why it takes so long to complete this (Note: there is only a single action in the loop that is assigning the active layer in the layers panel to l):
var layers = app.activeDocument.layers;
for (var i = 0; i < layers.length; i ++)
{
var l = layers [i];
}
?Any help on this will be appreciated!
Thank you
Nate
If you have CS4, you can use the function below to get the index of the selected layers AM.
function getSelectedLayersIdx(){ var selectedLayers = new Array; var ref = new ActionReference(); ref.putEnumerated( charIDToTypeID('Dcmn'), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') ); var desc = executeActionGet(ref); if( desc.hasKey( stringIDToTypeID( 'targetLayers' ) ) ){ desc = desc.getList( stringIDToTypeID( 'targetLayers' )); var c = desc.count var selectedLayers = new Array(); for(var i=0;i
There isn't really any documentation by using the Action Manager. The javascript guide that ships with Photoshop lists the properties and methods for the action descriptor, Action reference and list of actions. And the app.object methods to convert an ID.
-
to access the pots through the class-path to the manifest of a shared library.
I have a large number of pots that are used by the J2EE applications and stand-alone (client) applications.
I like to keep only one copy pots on the drive (for example, in a myLibraries/lib directory).
Is there a way I can create a shared library with the Class-Path entry in a manifest that points to the jar files in the myLibraries/lib directory? (If Yes, which? the ear of shared library manifest, the manifest of a pot of "module" in the ear of shared library or the manifest of a pot within the APP-INF/lib?)
Otherwise, it seems that I have to include copies of these pots in the EAR of my shared library application.
Thanks in advance
MikeMike,
I guess that it may be possible to refer to the pots where they are already using a manifest, but this isn't how I saw. If you look at weblogic.jar, it's META-INF/manfiest.mf uses references to other module pots. However, you're talking as if you want to do something more absolute path. Why not consider the following which is more standard...
To use a pot as a shared library or optional package, study it:
http://download.Oracle.com/docs/CD/E14571_01/Web.1111/e13706/libraries.htm#i1070930Basically, make sure that the jars you want to be a shared library have a manifest file which specifies the extension name, spec, and version impl.
For example. Let's say you have myExtension.jar - inside there should be a META-INF/MANIFEST. File MF that looks like this:
Name of the extension: myExtension
Specification-Version: 2.0
Implementation-Version: 9.0.0Deploy this jar in a WLS library.
Second, depending on which classloader you want to access in the container, make a reference to the optional package. For example, in the EAR that you want to access this pot, change META-INF/MANIFEST the EAR. MF so that it looks like this:
List of extensions: myExtension
myExtension-Extension-name: myExtension
myExtension-Specification-Version: 2.9
myExtension-application-Version: 9.0.0You can also reference the style jar libraries in weblogic application. The EAR like this XML:
...
myExtension
...
Note that the library-ref above referring to a jar approach does not work for applications packaged as WAR files and editing weblogic.xml, you must use the obvious approach for the web module archive jar base shared libraries reference.
-
Hello
I created a point variable so that I can interpolate between points on a mouse roll,.
However, the dot class is new to me and I don't know where to put it in the settings
Any help would be appreciated!
Thank you
mast
should be more like:
Import fl.transitions.Tween;
Fl.transitions.easing import. *;
to import flash.geom.Point;var p1RollPoint:Point = new Point (541,6, 123,0);
var p1OutPoint:Point = new Point (541.6,149.0);function rollover(e:MouseEvent) {}
New Tween (e.target, 'x', Back.easeIn, e.target.x, p1RollPoint.x, 1, true);
New Tween (e.target, 'y', Back.easeIn, e.target.y, p1RollPoint.y, 1, true);
}
p1_mc.addEventListener (MouseEvent.ROLL_OVER, reversal); -
Incrementing counter on stage through the class
Hello everyone, I have a thread similar to this on the saving and loading of a meter. However, I can not get the counter increment when colliding with an object. When the collision with the object, it makes not visible so that you can not see more.
My meter that records and load looks like this:
var so: SharedObject = SharedObject.getLocal("myStuff","/");
var JumpCounter: int = 0;
If (SO. Data.JumpCounter)
{
JumpCounter = so.data.JumpCounter;
}
And when you jump:
JumpCounter ++;
so.data.JumpCounter = JumpCounter;
so. Flush();
It outputs here in a text box:
JumpBox.text = JumpCounter.toString ();
This set works very well, I just can't get it to increment when colliding with my MovieClip.
I have a class that looks like this attached to my MovieClip I want to increment which looks like this:
package {}
import flash.display. *;
import flash.events. *;
SerializableAttribute public class AddJumps extends MovieClip {}
build function
public void AddJumps (): void
{
addEventListener (Event.ENTER_FRAME, collision);
}
private void collision(e:Event):void {}
If (this.hitTestObject (MovieClip (root). (Player)) {}
MovieClip (root). JumpIcon.visible = false;
}
}
}
}
I'm not sure access to the or increment my counter to a category. I can't remember how to access the scene.
Thanks in advance!
It's the only part that you add to your class:
MovieClip (root) .incrementJumpCounterF ();
-
How well the class prepare you for the exam?
I'm looking at planning for the installation of VCP5 set up class (not the fast track one). I have given the task up VMWare ESXi and run for my group. I will do this on Cisco UCS. Even if the Cisco class is supposed to help me get started on getting installed ESXi, I plan to pay on my own to go to VMware installation you configure class. What concerns me, it is the class getting ready to review? I got several Cisco certificates over the years and have found that classes don't really help you with what is perhaps reviews, as a writing group at Cisco exams and one other group wrote material for classes.
I would like to hear from those who have gone through the classes for your printing. I am watching 3 third-party sources for other material that would help me as well as establishing a "lab" server using vm workstation or fusion and ESXi running on this.
Thank you
Ron
The class teaches you the product so it will obviously help, but the objectives of the training are only a partial match to review.
You can compare the objectives of training compared to the objectives of the review by downloading the form of training and the examination plan.
There is lots of useful information and links on my blog, including links to some practical examinations - click on the VCP5 tab.
Regarding the labs, I would look at Autolab and build the ultimate vSphere lab.
Here are the links for the above:
Training - http://mylearn.vmware.com/mgrreg/courses.cfm?ui=www_edu&a=one&id_subject=37587
Review - http://mylearn.vmware.com/mgrReg/plan.cfm?plan=12457&ui=www_cert
Blog - http://vmwaretraining.blogspot.co.uk/
Autolab - http://www.labguides.com/autolab/
Build the ultimate vSphere Lab - http://boerlowie.wordpress.com/2011/11/30/building-the-ultimate-vsphere-lab-part-1-the-story/
-
Access the class from the loaded module
I have this in the main application and I the public variable test in the module. The problem is that I don't know how to access it properly.
public
var fontsModule:IModuleInfo;
public var FontsClass: Class;
public
function initApp(evt:FlexEvent):Sub
{
fontsModule = ModuleManager.getModule (
"modules/fontsBG.swf");fontsModule.addEventListener (ModuleEvent.READY, fontsLoaded);
() fontsModule.load
new ApplicationDomain (ApplicationDomain.currentDomain), null , null , moduleFactory);
}
public function fontsLoaded(evt:ModuleEvent):Sub
{
FontsClass = fontsModule.factory.create)
as Class;
trace ()' HERE: "(+ FontsClass.test);". "
}
If I replace the class with the name of the 'FontsBG' class actions script in this example, everything would work, but the main swf file size goes from 100 to nearly 400 kbs when the fontsBG.swf file is 67 kbs. So I'm certainly not doing it right.
So the question is: what is the correct way of loading the modules and using their properties and functions - through the class or interface and how it's done? Please set up a small code example so I can get the concept of base as well as the readers of this thread.
Thank you!!!
(3) again, you will need to use a shared interface or a common base class.
Most people put the UI widgets in a module and they all extends UIComponent
You can reference them as UIComponents. If they need to access other
Properties and methods, they define an interface.
(1) my guess is that the button does not know what a module with embedded
fonts loaded and don't refresh to use. Normally, you would
wrap styles in the module with the fonts, and then set styleonce
the module is loaded. In this case, you specify MyriadPro as the
CSS font family and he would set via setStyle once the module is loaded.
-
When going through the process of downloading with social monkee and reach the point add it to firefox, I get the following message: "social Monkee cannot be installed because firefox is unable to modify the required." How can this be repaired?
Which is usually caused by a lack of unpacking the directive (< em: unzip > true < / em: unzip >) in the file install.rdf to this extension.
See https://developer.mozilla.org/En/Updating_extensions_for_Firefox_4.0#XPI_unpacking
-
I have windows 7 os. a virus ripped through my registry and pulled out of the recovery points. Removed the hard drive to retrieve data on the device of the black widow on another computer, but cannot access the data due to password protection. How do my stuff? I know that I have to wipe the drive and start over, but I want my files first. I can see them working with the original BACK on the laptop, but they can't get out.
Hello
You posted in the Forums of Windows XP if you say you have Windows 7 so be careful
When you enter your Questions.Answers - Forums of Windows 7
http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7---------------------------------------------------------------------------------------------------------------------
If you need search malware here's my recommendations - they will allow you to
scrutiny and the withdrawal without ending up with a load of spyware programs running
resident who can cause as many questions as the malware and may be harder to detect as
the cause.No one program cannot be used to detect and remove any malware. Added that often easy
to detect malicious software often comes with a much harder to detect and remove the payload. Then
its best to be thorough than paying the high price later now too. Check with them to one
extreme overkill point and then run the cleaning only when you are sure that the system is clean.It can be made repeatedly in Mode safe - F8 tap that you start, however, you must also run
the regular windows when you can.TDSSKiller.exe. - Download the desktop - so go ahead and right-click on it - RUN AS ADMIN
It will display all the infections in the report after you run - if it will not run changed the name of
TDSSKiller.exe to tdsskiller.com. If she finds something or not does not mean that you should not
check with the other methods below.
http://support.Kaspersky.com/viruses/solutions?QID=208280684Download malwarebytes and scan with it, run MRT and add Prevx to be sure that he is gone.
(If Rootkits run UnHackMe)Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
Malwarebytes - free
http://www.Malwarebytes.org/products/malwarebytes_freeSuperAntiSpyware Portable Scanner - free
http://www.SUPERAntiSpyware.com/portablescanner.HTML?tag=SAS_HOMEPAGERun the malware removal tool from Microsoft
Start - type in the search box-> find MRT top - right on - click RUN AS ADMIN.
You should get this tool and its updates via Windows updates - if necessary, you can
Download it here.Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
(Then run MRT as shown above.)Microsoft Malicious - 32-bit removal tool
http://www.Microsoft.com/downloads/details.aspx?FamilyId=AD724AE0-E72D-4F54-9AB3-75B8EB148356&displaylang=enMicrosoft Malicious removal tool - 64 bit
http://www.Microsoft.com/downloads/details.aspx?FamilyId=585D2BDE-367F-495e-94E7-6349F4EFFC74&displaylang=enalso install Prevx to be sure that it is all gone.
Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
Prevx - Home - free - small, fast, exceptional CLOUD protection, working with others
security programs. It is a single scanner, VERY EFFICIENT, if it finds something to come back
here or use Google to see how to remove.
http://www.prevx.com/ <-->-->
http://info.prevx.com/downloadcsi.asp <-->-->Choice of PCmag editor - Prevx-
http://www.PCMag.com/Article2/0, 2817,2346862,00.aspTry the demo version of Hitman Pro:
Hitman Pro is a second scanner reviews, designed to save your computer from malicious software
(viruses, Trojans, rootkits, etc.). who infected your computer despite safe
what you have done (such as antivirus, firewall, etc.).
http://www.SurfRight.nl/en/hitmanpro--------------------------------------------------------
If necessary here are some free online scanners to help the
http://www.eset.com/onlinescan/
-----------------------------------
Original version is now replaced by the Microsoft Safety Scanner
http://OneCare.live.com/site/en-us/default.htmMicrosoft safety scanner
http://www.Microsoft.com/security/scanner/en-us/default.aspx----------------------------------
http://www.Kaspersky.com/virusscanner
Other tests free online
http://www.Google.com/search?hl=en&source=HP&q=antivirus+free+online+scan&AQ=f&OQ=&AQI=G1--------------------------------------------------------
After the removal of malicious programs:
Also follow these steps for the General corruption of cleaning and repair/replace damaged/missing
system files.Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN
Enter this at the command prompt - sfc/scannow
How to fix the system files of Windows 7 with the System File Checker
http://www.SevenForums.com/tutorials/1538-SFC-SCANNOW-Command-System-File-Checker.htmlHow to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
generates in Windows Vista cbs.log
http://support.Microsoft.com/kb/928228Also run CheckDisk, so we cannot exclude as much as possible of the corruption.
How to run check disk in Windows 7
http://www.SevenForums.com/tutorials/433-disk-check.html-----------------------------------------------------------------------
If we find Rootkits use this thread and other suggestions. (Run UnHackMe)
======================================
If necessary AFTER you are sure that the machine is clean of any malware. (DO NOT USE IF)
MALWARE IS STILL PRESENT).How to do a repair installation to repair Windows 7
http://www.SevenForums.com/tutorials/3413-repair-install.html=======================================
For extreme cases:
This traditional antivirus analysis does not always detect. Because the Norton Power Eraser
uses aggressive methods to detect these threats, there is a risk that it can select some
legitimate programs for removal. You should use this tool very carefully and only after
you have exhausted other options.
http://us.Norton.com/support/DIY/index.jsp================================
If you are in North America, you can call 866-727-2338 to get infections of virus and spyware.
See http://www.microsoft.com/protect/support/default.mspx for more details. For international information,.
see your subsidiary local Support site.I hope this helps.
Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">->
-
I'm going through the first tutorial, and I can't take the transformation point on the leg of the Apple Board skateboard.
Hello. The transformation point is visible and you are unable to drag and drop or if it shows any? Make sure that you have selected so eager to set the point to transform the free transform tool.
-
p incompatible a number of children through the points of rupture in text U60606
When the new download site I get this message.
p incompatible a number of children through the points of rupture in text U60606
Even if download on page 3 and stops.
Need help
Any ideas?
Hello
This looks to Re: error with incompatible children across breakpoints. Could you send your .muse file and try the workaround in this thread?
Thank you
Abhishek
-
I still can't install desktop application creative cloud on my mac running Yosemite 10.10.1 it will download the dmg but will stop the installation process at halfway through the status bar displays installation then disappears to the halfway point - I used the creative cloud cleanser and tried to install it as a new user admin does not work - I was able to install the desktop application creative cloud on my Mac pro that uses OS X 10.9.5 (and will install Creative cloud apps) two machines have similar programs.
Hi Steven,
Please refer to the threads below where this issue has been addressed:
installer of creative cloud disappears
Re: Installer of Creative cloud disappears during installation
Kind regards
Sheena
-
Reg: Url of the Image that passes through CSS class
Hello
How can I pass the image through Css class?
Thanks in advance.Hello
I don't know if this can be done in the css file as well.
I assume that you use the bean of support for setting the skin (just read your old thread). If so, you can add two images on the page and set the visible property according to the skin. Something like
If I select the second CSS file so the logo will change according to the style class defined in the CSS file first.
As far as I KNOW, the logo of the company would be static;).
Arun-
-
I have a ME214 ii - think she returned to Chinese writing it starts and get to first page once I touch screen that it queries through the start-up process each time. Also when I connect to the computer it not of resistances that it is a device on the computer. He information in the manual that there is a reset on the side button but I can't find a someone out there could provide some answers please
Hi Stanley_50,
· He has already worked?
· Did you do changes on the computer before the show?
· What is the exact make and model of the unit?
Run the fixit of the article.
Hardware devices do not work or are not detected in Windows
You can contact the manufacturer of the device to reset the key.
Maybe you are looking for
-
Download error 204 on iTunes trailers
Anyone else having a problem downloading trailers from iTunes recently. It has been about two months continues to receive the following: We complete your iTunes store request. An unknown error occurred (204). There was an error in the iTunes Store. P
-
mini 210-1000: upgrade of processor and memory
I have an urgent need to upgrade the processor cpu and the memory of my daughter because I think it would be a cheaper option compared to buy a tablet at the moment. My main reason, in addition to money, to upgrade his notebook are: ~ very slow to lo
-
Original title: Under XP, when I type in the first letter of an e-mail address that is in my contacts, the dropdown does not close when I click the right address. What a nuisance! Also, when I go to create a new e-mail message, an address of my conta
-
Cannot connect to windows - journal of superelevation in safe mode!
It keeps trying to do a system check at startup and will just keep cycling through this. If I don't tell them to run the check, I get in the log on screen and it won't let me type in my password but it does not appear to meet for. on a log in the at
-
How to remove Security Shield Virus
Hello, I run the Scanner for MS to remove this virus via the Safemode with networking, but that analysis says have deleted 3 infected files, it has not removed the virus. I have trid nearly all the solutions proposed on the MS sites and breepingcompu