How can I use this arrray?
I have written arguemnts to add severals shapes to the scene(by using createVrmlFromString()), all the shape nodes stored in shapeArray[], now I'd like to use another array(b[]) to get the index of each shape nodes which has been added to the secne, so that I can record the their sequence.
1. Can I use the arguments as following:
shapeArray = {shape1,shape2,shape3.....}
if(clickedButton = shape1)
{ b.add(shapeArray.indexof(0)); b++ }
if (clickedButton = shape2)
{ b.add(shapeArray.indexof(1)); b++}
2. Since the length of b[] is dynamically changed according to the number that the nodes added to the scene, shoudl I use the vector, how can I get the index of the shapeArray to a vector. should I use
Vector b = new Vector;
b.addElement(shapeArray.indexof(0));
b++; //?
I haven't used createVrmlFromString(), but maybe this will help...
Note at Square, Circle, and Rectangle extends Shape.
Shape[] shapeArray = { new Square(0, 0, 10, 10),
new Circle(10, 10, 10),
new Rectangle(20, 20, 150, 100)
Vector clickedShapes = new Vector();
// in the combobox listener
clickedShapes.add(shapeArray(cb.getSelectedIndex()));
// in the 'submit button' actionlistener; get first item
Shape s = (Shape)v.get(0);
[/code[
Similar Messages
-
I bought used iPhone and on this iPhone I'm not able to make new account on i Cloud'. How can I use this iCloud's on used iPhone Please help me
When I logging there it told me that maximum no of iCloud's Account already activated on this iPhone.
Please help me how can I open new iCloud's account on this iPhone
Regard
Faiz khanSet up the account using a desktop or laptop, then sign
into that account on your iPhone.
I am not aware of any method around the restriction once
the maximum has been created on any individual iPhne. -
I have a limited storage in iPhone so i bought 20g iCloud. how can i use this iCloud storage in my device to store music and photos?
Welcome to the Apple Community.
You could sign up for iTunes match and use iCloud photo library with optimisation enabled. The later will keep optimised photos on your device and iTunes match will let you access your whole collection and make room for newer content by removing older unplayed items. -
How can i use this function module
Hai
How can i use this function module /SAPHT/SALES_ORDER_READ, already apply the some parameters in this function module, but it shows the error , please tell me, how to declare the parameters in this function module ,
thanks
neelimaHi
For a particular sales order,you have to pass the order number and the item number in the sales order.
It will display the rest of the values which u can capture them using internal tables.
Regards,
Vishwa. -
i have a iphone 4,4.3.5 bought from uk i used this phone in uk,now i am in india how can i use this in another networks without jailbreak such type of softwares
Where did the phone come from as most of the UK carriers unlock phones, but the fact that you are now abroad may be a problem.
-
I purchased a iphone i USA. How can i use this iphone in india with vodafone.
I Purchased a iPhone 5s in USA. How can I use this phone in India with Vodafone.
<Edited By Host>First, the iPhone would need to be unlocked. That would depend on where you bought it. Next, the North American phone would not work with all of the networks outside of the US. Also, the warranty for the device is only good in the US, so if you have a problem with the phone, you would need to bring it back to the US to an Apple Store. Where did you purchase the phone?
-
I purchased Adobe Illustrator CS2 on CD many years ago and now i have bought a new iMac computer it won't let me install from the CD's. How can i use this product on iMac ?
Because the Nano was previous synced to another comuter/iTunes library.
See the following:
Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities -
How can i use this sript and loade another movie?
Hi there, i used the following script to load a movie from the server;
var request:URLRequest = new URLRequest("url string");
var loader:Loader = new Loader()
loader.load(request);
addChild(loader);
How can i use this sript and loade another movie? Can someone help me please?
[edited by moderator]Sir, I changed it from:
var request:URLRequest = new URLRequest("http://agusandelsur.gov.ph/downloads/pdrrmo/agusan_del_sur/StaJosefa/Movies/Dir.swf");
var loader:Loader = new Loader()
loader.load(request);
addChild(loader);
to
var request:URLRequest = new URLRequest("http://agusandelsur.gov.ph/downloads/pdrrmo/agusan_del_sur/StaJosefa/Movies/Warning.swf");
var loader:Loader = new Loader()
loader.load(request);
addChild(loader);
When i expord the movie i get the following error.....
Scene 1, Layer 'Layer 3', Frame 1, Line 6 1151: A conflict exists with definition request in namespace internal. -
How can I use this forum?
Does anybody here can tell me how can i use this forum???
What do you want to do? What is your question?
Randy -
How can I use this account without specify credit cards, only for free applications ?
How can I use this account without specify credit cards, only for free applications ?
Click here and follow the instructions.
(94222) -
I have an apple 4 given to me by my cousin from japan but the phone is lock by japan sotfbank, how can i use this phone here in the Philippines network provider? thanks
Only the carrier an iPhone was sold as carrier locked with can officially unlock the iPhone. It is my understanding that Softbank in Japan does not unlock iPhones.
-
good day..i have my iphone 4 now..am here in the philippines...how can i use this unit using my smart simcard here..thank you.
Is your iphone officially unlocked?
If not, then you cannot use it there. -
What is car play ? how can i use this?
what is car play ? how can i use this?
You can use CarPlay if your new car model supports it.
http://www.apple.com/ios/carplay/ -
Hi I have itunes UK on my lap top and my daughter has been bought an Itunes USA gift card how can I use this please?
Gift cards can only be used in the country in which they are purchased - so in order to use a US gift card you would need to have a US iTunes account.
-
I am registered with itunes uk and have recieved a voucher for itunes us. How can i use this?
iTunes Gift Vouchers can Only be redeemed in their Country of Origin.
Maybe you are looking for
-
Problems in the installation of Trial Version 71 CE SR3
Hi, I am trying to install the trial version of NW 71 CE SR3. I donwloaded it from SDN. The target system is a Windows XP Prof SP2 with 2 Gb of RAM. The error I get is in the system requirements check. A swap file of 4096 Mb is required and I do not
-
Vendor Search for del or inactive vendors
Hi, We have many vendors of the same name but with diff locations and some are deleted. But when we are creating a PO for a particular vendor and when we enter the part name it will show all the vendor even deleted vendor also. But is there a way to
-
Finding the correct date to print on the report....
Hi SAP, I've hit a road block and I need someone's help please. I have a main report that displays employee hrs worked, work dates based on invoice number. I also have a subreport that looks at a specific table that prints the entire employee's rate
-
LOAD VILLA MODEL WITH TEXTURES
HI FOR ALL FIRST I HAVE A PROBLEM IN MY GRADUATION PROJECT I WANT TO LOAD A 3D VILLA MODELS WITH TEXTURES I LOADED MODELS BUT TEXTURES DID NOT APPEAR PLEASE CAN ANY ONE HELP ME SECOND I WANT TO PUT THE JAVA 3D APPLET ON A WEBSITE HOW CAN I PUT THE J3
-
AutoSync: playlist changes not automatically copying to iPod?
Hi, I have my iPod 5G 30GB Video setup to autosync with my iTunes on Windows. Everything is up to latest version. The copying of songs and album art works great, but I notice that I am making changes to the ordering of songs in my playlists and those