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
-
I've downloaded the latest iTunes, set the DNS to 8.8.4.4, set the search domain to google.com, reset my Apple ID and password, restarted iPhone 4, closed out of the iTunes Store App, reset the router, reset the internet connection etc. etc. with no
-
Exported avi's flicker between 4:3 and 16:9 when played back in media player etc.
Using premiere pro 1.5 on a windows XP..... never had issues until recently.. always shoot with xl-2 in 24p... when the AVI is exported (microsoft dv avi ntsc, or sometimes 24p advanced) and I watch it in windows media player the video flickers back
-
Business Roles - Risk analysis
Hi All, We are on GRC SP13. We are using business roles for provisioning to end users. When role owner is performing risk analysis for business roles, results are proper according to defined ruleset only if "SYSTEM" field is empty. If system is selec
-
Determination of price conditions
Hi all !! We have a problem with our price determination. The situation that is working wrong is the following: When we create a sales order which is giong to be delivered in several steps (For instance, 400 units of the material XXXX, delivering 100
-
Update photoshop CS6: error U44M1P7
Cannot complete update for the photoshop CS6 due to error U44M1P7. Advise. Thanks EP