I'm getting the message, "the supplied index is out of bounds." i have attached my code and the error message. can anyone help me? thanks.
the title is self-explanatory. i'm VERY new to flash so i don't understand a lot of the lingo. can anyone give me a simple answer or, better yet, fix the code for me? i'm reading that it usually comes up when there's a child error but i'm not sure how to fix it.
my code:
var navBtnGlow:GlowFilter = new GlowFilter(0x000000, 0.5, 0, 15, 1, 2, true, false);
navBAR_mc.addEventListener(MouseEvent.MOUSE_OVER, navOverF);
navBAR_mc.addEventListener(MouseEvent.MOUSE_OUT, navOutF);
function navOverF(event:MouseEvent):void{
event.target.filters = [navBtnGlow];
navBAR_mc.setChildIndex(event.target as MovieClip, 1);
dropMenus_mc.gotoAndStop(navBAR_mc.getChildAt(1).name);
trace("We are Rolled Over..." + navBAR_mc.getChildAt(1).name)
function navOutF(event:MouseEvent):void{
event.target.filters = [];
the error message:
RangeError: Error #2006: The supplied index is out of bounds.
at flash.display::DisplayObjectContainer/setChildIndex()
at bestPRIM_fla::MainTimeline/navOverF()
thanks in advance!
I'm trying to get my head around this, but here's my shot at it... you have an event listener assigned to navBAR_mc for a mouse over. When the mouseover occurs, you have the following line:
navBAR_mc.setChildIndex(event.target as MovieClip, 1);
Since navBAR_mc is the event.target, it cannot be a child of itself, but I think that's what that line is trying (and failing) to process.
So can you describe what you are trying to do. I would expect that navBAR_mc holds buttons, but based on what I see, it is the button.
Similar Messages
-
my iphone 4s loses the signal and to recover it I have to turn on and off airplane mode, can anyone help me??
Generally speaking, the iPad backup process is a disaster recovery process, not an archive process. Typically, when creating a new backup, the old one is erased.
If you go to iTunes' Preferences (under the leftmost heading in iTunes' menu on your computer) and then choose "Devices", do you see the specific backup you want to restore listed there? If so, you can restore it. If not, I don't believe you can. -
Hi Everyone,
I just deleted PS CS6 and installed PS CC 2014. I'm trying to use the Liquify Filter and it does not work. When I click on the Liquify Filter, my photo does not appear properly. The photo appears as two flourescent color fields - bright turquoise and lime green! Can anyone help me with this? Also, does anyone know if I can re-install Photoshop CS6?
Thanks!
LaraineHi Everyone....I figured it out. Strangely, although I had NEVER used Liquify in PS CC 2014....I just realized that in Liquify Advanced Mode that the "SHOW MASK" option was on by default! I unchecked SHOW MASK. Everything is OK. Whew! Tks!
-
I am unable to update my apps on my iphone5s. After entering the applied password, the update button reappears and nothing happens. Can anyone help? Thanks
Hey there Tonyaokb,
It sounds like you are trying to update some of your apps and when you tap the update button, the update does not happen. I recommend starting by closing the running apps on the phone:
iOS: Force an app to close
http://support.apple.com/kb/ht5137
Double-click the Home button.
Swipe left or right until you have located the app you wish to close.
Swipe the app up to close it.
When you have done that, sign out of your iTunes account in Settings > iTunes and App Stores, and restart the phone and try to update them again:
iOS: Turning off and on (restarting) and resetting
http://support.apple.com/kb/ht1430
If the issue persists I would next verify that you can find it in your purchased history with ths article:
Tap App Store.
Make sure you're signed in with the same Apple ID used for the original purchase.
Tap Updates.
Tap Purchased on the resulting screen.
So that you can then delete the app and re install it:
Reinstall the affected app
Remove the app from your device and reinstall it:
Tap and hold any app icon on the Home Screen until the icons start to wiggle and show a small "x" in the top-left corner of the app.
Tap the "x" in the corner of the app you want to delete.
Tap Delete to remove the app and all of its data from your device.
Press the Home button.
Go to the App Store.
Search for the app and download it again.
Note: If it's a paid app, make sure you're using the iTunes account you purchased the app with originally. If it isn't, you may be asked to purchase the app again. Learn more about downloading previously purchased items.
From: iOS: Troubleshooting apps purchased from the App Store
http://support.apple.com/kb/ts1702
Thank you for using Apple Support Communities.
Take care,
Sterling -
RangeError: Error #2006: The supplied index is out of bounds.
Hi Guys
I am making an Auto-Arrange button and clicking on which
arranges all the children of the container( which are on the main
stage) in the tile format. Basically on clicking, I manually move
those child on the stage to particular coordinates as shown in my
code. I have pasted my code below. My problem is that as soon as i
click on the auto arrange button I am getting error "RangeError:
Error #2006: The supplied index is out of bounds.". Please let me
know what i am doing wrong and i will appreciate if you let me know
how would i fix this
Thanks a lot guys
Anuj
******************CODE**********************
var aa:Number=0;
var xcoord:Number=-300;
var ycoord:Number=-200;
var xcoord1:Number=450;
var xcoord2:Number=850;
var xcoord3:Number=1250;
var ycoord1:Number=350;
var ycoord2:Number=650;
//Button Listener
btn_AA.addEventListener(MouseEvent.CLICK,autoArrange);
function autoArrange(event:MouseEvent):void
if(container.getChildAt(aa)!=null)
container.getChildAt(aa).x=xcoord;
container.getChildAt(aa).y=ycoord;
//Arrange Second
container.getChildAt(aa+1).x=xcoord+xcoord1;
container.getChildAt(aa+1).y=ycoord;
//Arrange Third
container.getChildAt(aa+2).x=xcoord+ xcoord2;
container.getChildAt(aa+2).y=ycoord;
//Arrange Forth
container.getChildAt(aa+3).x=xcoord+xcoord3;
container.getChildAt(aa+3).y=ycoord;
//Arrange Fifth
container.getChildAt(aa+4).x=xcoord;
container.getChildAt(aa+4).y=ycoord+ycoord1;
//Arrange Sixth
container.getChildAt(aa+5).x=xcoord+xcoord1;
container.getChildAt(aa+5).y=ycoord+ycoord1;
//Arrange Seventh
container.getChildAt(aa+6).x=xcoord+ xcoord2;
container.getChildAt(aa+6).y=ycoord+ycoord1;
//Arrange Eight
container.getChildAt(aa+7).x=xcoord+xcoord3;
container.getChildAt(aa+7).y=ycoord+ycoord1;
//Arrange Ninth
container.getChildAt(aa+8).x=xcoord;
container.getChildAt(aa+8).y=ycoord+ycoord2;
//Arrange Tenth
container.getChildAt(aa+9).x=xcoord+xcoord1;
container.getChildAt(aa+9).y=ycoord+ycoord2;
//Arrange Eleventh
container.getChildAt(aa+10).x=xcoord+ xcoord2;
container.getChildAt(aa+10).y=ycoord+ycoord2;Hi Kglad
Thanks for reply. Can you please do me a big favor of
modifying the code so that it would not give that range error.
I am not sure which way to go because manually i put them at
specific coordinate and i assume if even i place 1 child on my main
stage it should work without giving me the error but everytime it's
checking that whether i place 1 childrens on the stage or not.
Please help me out.
Thank you very much for ur help
Regards, -
Error #2006: The supplied index is out of bounds
hello,
i'm trying to addChild with an interval, using this piece of code, but I allways get an error saiyng the suplied index is out of bounds.
why?
what should I do to have mc1 added then wait lets say a second and add m2 2 and so on?
Thanks
var tempo_espera:Timer = new Timer(1000, 1);
tempo_espera.addEventListener("timer", inserir);
tempo_espera.start();
function inserir(evt:TimerEvent):void {
for (var nv1:int = 0; nv1<promocoes.length; nv1++) {
holder.addChildAt(mc, nv1);
var animacao:TransitionManager = new TransitionManager(mc);
animacao.startTransition({type:Zoom, direction:Transition.IN, easing :Elastic.easeOut, duration:3});
RangeError: Error #2006: The supplied index is out of bounds.
at flash.display::DisplayObjectContainer/addChildAt()
at MethodInfo-346()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()using your new code, I got this error
TypeError: Error #2007: Parameter child must be non-null.
at flash.display::DisplayObjectContainer/addChild()
at MethodInfo-343()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()
I had to add mcArray = new Array(); to avoid another error
// this is array of movie clips
var mcArray:Array;
// it is better to declare variable once and then reinstantiate it
var mc:MovieClip;
// do your regular routine
for (var nv:uint = 0; nv<promocoes.length; nv++) {
var prm;
prm = promocoes[nv].split("|sep|");
mc = new MovieClip();
mc.name = "mc_"+nv;
// place this new mc into array
mcArray = new Array();
mcArray.push(mc);
// start timer - note that timer will fire as many times as there are movie clips
var tempo_espera:Timer = new Timer(1000, mcArray.length);
tempo_espera.addEventListener("timer", placeClip);
tempo_espera.start();
// the clip you will apply transition to
var currentClip:MovieClip;
// function that places clips
function placeClip(e:Event):void {
// get next clip by calling movie that corresponds with the timer counter
currentClip = MovieClip(mcArray[tempo_espera.currentCount]);
// just place next clip
holder.addChild(currentClip);
var animacao:TransitionManager = new TransitionManager(currentClip);
animacao.startTransition({type:Zoom, direction:Transition.IN, easing :Elastic.easeOut, duration:3}); -
[addChildAt]The supplied index is out of bounds.
one image in a canvas as its child, when adding another image
by addChildAt(canvas, 0), debugger says "The supplied index is out
of bounds."
Is that make sence? 0 is the begging of the child list, how
can it out of bounds?"run,ryan!" <[email protected]> wrote in
message
news:glns18$bnd$[email protected]..
> one image in a canvas as its child, when adding another
image by
> addChildAt(canvas, 0), debugger says "The supplied index
is out of
> bounds."
> Is that make sence? 0 is the begging of the child list,
how can it out of
> bound?
Are you sure the canvas is fully instantiated at that point? -
I am unable to install Lion. I have a Core 2 Duo iMac with 4GB of Ram and 120GB of free space - and no Bootcamp or other partitions - and yet repeatedly get the 'no recovery' error. Can anyone help?
Run Disk Utility located in /Applications/Utilities before trying to upgrade to Lion in case the startup disk needs repairing.
Using Disk Utility to verify or repair disks -
I am trying to transfer my contacts from my iPhone 4S to my new iPhone 5S. I tried backing up the 4S in iTunes but kept getting an error. Can anyone help?
if you sync with outlook or another contact/mail/appointment app
and your friend also use that setup your friend will get all your stuff and your new phone will
get a merge of your stuff and all his stuff
better option is to use iCloud -
pls help my iphone 4 was on activation "required". i jailbroke it then it worked but some of the applications were crashing down,won't open. i tried a lot of tutorials and then error message 3194 came out. stucked in recovery mode,and then i use snowbreeze and then it worked!!!! but another problem came, i turned off my iphone then i switched it on again then it stucked in apple logo,.after doing some thing again 1604, 1600 bla bla bla came out..pls help me fix my iphone.
no help for jailbroken phones here-it's not allowed. good luck.
-
My Facebook app stopped working on my iPad. It keeps asking me to put the FB password in settings. When I do it tells me "unable to connect to server". Can anyone help?
This problem affects many (including myself) and seems to be a bug in the integration of the FB app in iOS 7.
You can get around the login problem by turning Settings/Privacy for FB off. However, after you turn that Privacy setting back on after logging in, then iOS 7 will continue to pester you with pop-up messages to enter the password in Settings. This will invariably fail with the error message that you have already experienced, but at least it gives a way of logging in.
The solution will in my view have to come jointly from Apple and FB. -
What version of iPhoto. iPhoto 11 9.4.3 (720.91)
What version of the Operating System. OSX 10.8.3
Detail. I Attach my camera and the fields where the photos usually show up are empty and at the top of the screen it says all photos from camera are downloaded. But they are not. They can't be.
I fixed the problem somewhat myself by removing the miniSD and manually inserting it. It did not populate automatically. I had to open iPhoto and then it populated only the most recent photos I had taken which fortunately were the only ones I need. No error messages this seems to be a new occurrence.
Is there a way to just turn iPhoto off and download my photos to the folder of my own choosing?Sure - in the iPhoto prefercences set action when a camera is ocnnected to Image Capture
LN
Note - your cute formatting really does not add anything and makes your post hard to read and follow - try straight typing with no cute formatting in the future -
I am trying to update the new settings on my iphone 4s but every time I plug in to update it tells me i need to change my media sync options and I'm unsure how to do this? Can anyone help? thanking you
What exactly does the message say?
-
hey i have ios 4.3.5 on my ipad and i wanna update it to ios 5.1.1 and ive downloaded the file made by apple but every time i try to update it to ios 5.1.1 it allways says error 3194. can anyone help?
alanangert1 wrote:
... every time i try to update it to ios 5.1.1 it allways says error 3194. ...
3194 = http://support.apple.com/kb/ts4451
If the above Support Article does not resolve it... then you have a problem.
Perhaps a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is required..
Be sure to make an appointment first...
Note:
That error message may be indicative of the Device being Hacked / jailbroken.... If this is the case then you are on your own.
Unauthorized modification of iOS...
http://support.apple.com/kb/HT3743 -
I have bought and downloaded the new iphoto but it is not installing. I have restarted my computer and the problem continues. Help!
can you describe exactly what is happening? And give exact error messages
LN
Maybe you are looking for
-
HP Laserjet 3015 won't print after Snow Leopard
Ok, so I upgraded to Snow Leopard, and now I can't print anything on my Laserjet 3015. I've tried uninstalling the printer and then reinstalling it, but still nothing. It seems that any time I try to print it says the printer is "paused". If I press
-
How do you edit the background in thumbnail view? I can only get thumbnail view to show up on the iPad, but not in iBA itself.
-
How to show at least one "0" before decimal ?
Sometimes numbers are displayed which are lower than 1 e.g. 0.034 (=US format) However when they are displayed in sqlplus then they are shown as .034 How can I achieve that in such cases one 0 is prepended so that 0.034 is shown?
-
Asdoc how to add a custom local namespace with manifest file?
Hi there, I use the flex 4 beta1 sdk to test the following: I have: MainScreen.mxml: <?xml version="1.0" encoding="utf-8"?> <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.a
-
Case number #0213425134 Customer ID 293848148 I have tried to reset my Adobe Account as being registered in Australia. Authority is given to change this from your end. Vin McLoughlin