how could I make a simple loop which loops through the childrens of specific movie clip and add each of them instance name lets say "iname", since I have movie clip in which childrens are not added by code.
P.S.: And if I'm sure I could acces those childrens then by code like iname.x = 100?
i have a fla that contains:3 buttons 3 mc's that every one of them is a swf loader if they are clicked on.every one of the loaded swf has sounds..what i'm trying to do is:
1. when i press the first button that loads the swf, and right after i press another button, the first swf keeps playing with it's sounds...how can i make it stop playing?or even disappear totally (and reappear if it's button was clicked)? [URL]
I got a simple question, a thing I thought would be simple to resolve but it seems harder.I got a parent MC whose width is the same as the stageWidth and this one resize on screen resolutions changes.This MC got children who sadly expand width on screen resizes
I have the parent movieClip with multiple children in it.How do i resize the parent without effecting the children movieClip?Memo:The children must stay with the parent.
i'm trying to do an infinate loop for my m.clip.the looping part does not want to loop...it loops back to my firrst frame even though there are two same picture in the movie clip.....here's a sample of what i use for the infinate loop script..
I have need of loops / nested loops that pick different figures depending on where you are in the loop. The whole function needs to run through 'ml' times. 'ml' is a dynamic figure. Loop 1 = While the loop is within the first 12 iterations, 'exconemp' must equal 100. For iterations 13 - 24, 'exconemp' must equal 102.5, for 25 - 36 it will be 105.06, for 37 - 48 it will be 107.69. This needs to change every 12th iteration until it has reached 'ml'. The calculation takes the value of the previous 'exconemp' and then multiplies that by 0.025.
Loop 2 = While the loop is within the first 120 iterations, 'abc' must equal 0.015 and any further iterations must use 0.01. This must also work in a way to figure out whether 'ml' is higher or lower than 120 and work accordingly. My main issue is this - how do I get the loops to run through as this: While the iteration is < 12, do this, THEN take the final figure (12th iteration) and start on 13 - 24, do this THEN etc etc. How do I produce a THEN statement? I can get the code to pick up the final values, but not change along the way.
basically I need a loop within a loop to compare two different arrays in my actionscript3 lottery game. I have attempted the loop but I cannot seem to get it to work ...
[Code]....
So basically within this code check_win is a button. Once the button is clicked it runs the loop. It is meant to take an instance of matches which contains 6 properties and loop until index is greater than matches. According to my output this is happening but the second loop doesn't appear to do anything.
How do i word a for loop to make it loop through multiple arrays?I want 1 for loop to loop through multiple arrays in order to move/alter objects.I want to keep the arrays separate.
ActionScript Code: characters = new Array(); characters[0] = male;
I'm trying to make a matching pairs game. First of all I'm making all the tiles, using a loop inside a loop. How do I get the ID of an item inside that loop? My code looks like follow:
Code: var matches:Array=new Array(1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8); makeTiles(); function makeTiles() {
the loop starts at 0 and not 1 so the loop ends at 6 does any one know how to resolve this issue?? its so that what ever number dayVal is it will be rounded up to a number that is Divisble by 7 .
Basically, I have data organized by date in an XML file. I'm trying to make a website application that will allow the user to click on a date (in a text field) to see another textfield populate with all the data under that particular date. So far, all the information loads into the textboxes at the same time. How can I get it to only load information under a particular date when somebody clicks on that date?
Before I started this project, I was convinced I could do this by manipulating the [j] (see code below) in the myFunc2 function. Currently, it's set up to increment blank_mc._y by whatever value is returned by [j]. But for some reason this doesn't work. I feel that if I could atleas get this part to work - I could probably do the rest.
AS code:
Code: function loadXML(loaded) { if (loaded) { var nodes = this.firstChild;
wondering if anyone knows if its possible to have a pause within a 'for loop' before it runs through the next loop? heres the script i've built up so far, i'm running off other variables and arrays to pull in the logos and the animating in is working fine except that they all run in at the same time, basically what i want is that they would run one after the other with a 5 second gap between them..[code]so i did that and put wait(delay); after the var boxcounter=2; in each of the If statements.. but no luck... can anyone shed any light? or suggest a way it get it to hold for a few seconds before running though the loop again? or am i going about this in completely the wrong way??!
I have published my intro to my website I checked "Loop" and unchecked "Loop" under the Flash section of publishing no matter which I it continues to loop and not go to my website. This is the action I am using:[URL]...
I have a variable in a loop that i want to access in a function outside of the loop. However the variable gets deleted when the loop is closed so no longer exists when i call in the function.here is the code; i'm trying to access the variable picHeight from within the scroll function
I'm trying to synchronize external subtitles with my custom video player - Not FLVPlayback.Subtitles are in XML object from 0 - 12.I created a Timer that is checking when the subtitle 0 should be displayed according to playback time.I want to reach that after subtitle 0 disappear the next subtitle 1 will be checked when should be displayed.So all I want is 0 + 1But it is Timer and the result after Subtitle 0 disappear is 0+1+1+1+1+1+1+1+1+1+1+1 ad infinity And thats too many as I only want once add 1.
i have tried to keep this as simple as possible in order to demonstrate my confusion - i have looked at this for too long now and i really dont understand how this for loop works - sorry for the example length.
[Code]....
i can fully see how things work up until i hit the FOR LOOP EVALUATION: child !=null at that point the loop is broken and the trace statements with xxxxx and yyyy come into play but why is there 4 lots of x and y traces? if the loop is broken and child = null which it does why does the statement carry on 4 more times - should it not just return? i understand that the update part of the for loop will execute only at the end of the loop but this still does not show why it should carry on like this?
Code:while (dayCount <= lastDay) // creates 30 text fieldsto a 'for' loop where I can increment the position of each duplicated text field by i * a specified width. the thing is that i can't figure out how to do that with my while loop. but i can do it with a 'for' loop. that's why i'm trying to change it. earlier in my code i use this 'for' loop to lay out the row above where i want to start..
Code: for(var i:Number = 0; i < numCols; i++){ _root.createTextField("dayHeadings" + i, i, indColWidth*i, startSecRowYPos, indColWidth,
If you place a for loop in a recursive function with the function call within the loop... will the loop finnish or does it stop working untill the last recursion?
I have to flv. files one after the other. So far it gets from one to the other real nice. But at the end of the last one rather then repeating the whole set of videos I just want it to loop the last one. I'm using action script 2.0 and I tried this in the last move.
{gotoAndPlay(1); }
But I'm new to action script and of course that didn't work. so much for listening and answering my last Q Dev Shed Forum....
I have two soundfiles that I want to loop after each other. I think it�s best to use OnSoundComplete and I used it before. But in this case I want to loop between two different soundfiles and i can�t figure out how to do it.