ActionScript 2.0 :: Why Emptymovieclip Positions Affect Positions Of Thumbnails

Jan 22, 2007

I have thumbs placed on the stage. I create an empty mc to load swf. But my thumbs disappear from the stage when I test the movie ( html or swf) if I settle the _ and _y position of the empty mc.why the emptymovieclip positions affect the positions of my thumbnails?

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Add Duplicates At Different Y Positions?

Oct 9, 2009

I have a movieclip in the library that I am exporting for actionscript.  I duplicate the movieclip by adding a child for each occurance of a tag in actionscript.  This works fine, but I can't figure out how to change the y postion of each new child to be 30 pixels below form the last child.  Here is a snippet of the code where I am having the problem:
 
for (var i in xmlData.region){        for (var k in xmlData.region[i].regionInfo.payment);
            var mcRI:regionInfo = new regionInfo();            this.addChild(mcRI);            mcRI.txtPayment.htmlText = xmlData.region[i].regionInfo.payment[k].card;            mcRI.y += 30;        }
}
 
Instead of each new child's y position changing +30, every duplicate is on top of each other at +30.

View 3 Replies

IDE :: Flash 8 Moviclip X+Y Positions

Aug 11, 2009

What I'm really looking to be able to do, is have a clip in the root move to the same x and y as a clip that is embedded into another movieclip. How would I pick up the X and Y co-ordinates of this embedded movie clip?

To summarise,

ClipA is embedded into ClipB, what I want, is for ClipC - that is based in the root - to match ClipA's position.

View 2 Replies

ActionScript 2.0 :: Positions Of MC (x And Y Co-ordinates)

Jul 20, 2010

I have 52 (pack of cards) movieclips on stage all turned invisible When selected they turn visible. and need to display in one of five set positions (e.g. x and Y co-ordinates). If the first slot if full the card should be displayed in slot two. IF slot two is full the next dard displays in slolt three. I card two is then removed and a space left the next card chosen should go in there.

View 3 Replies

ActionScript 2.0 :: Swf Refers To Positions Of MC's In Itself?

Aug 14, 2004

ok I am having what I think is a targeting problem.I'm loading a swf into a blank container inside another movie (main). The AS in the loaded swf refers to positions of MC's in itself _x & _y etc.However once it is loaded, those positions are not true... ex. if the center of the swf is 200 by itself depending in where it is loaded, it might become 400 or any other number - reletive to the main movie's stage (I hope Im being clear).I need the AS in the loaded swf to refer to itself (x/y values relative to its OWN stage). So how do I target that? _root.MC.containerMC doesnt seem to work, but is this on the right track? Basically when an swf is loaded into another, does its _root now become the main timeline of the movie its loaded into???

View 2 Replies

ActionScript 3.0 :: Get X , Y And Z Positions Of A Point In A Shape?

Jan 5, 2010

Is there any way to get the positions of points in a shape on stage at runtime? for instance a triangle, is there any way to get the positions of the 3 points that make the triangle?

View 2 Replies

ActionScript 3.0 :: Calculating Positions Along A Curve

Jan 13, 2009

what I am trying to do is calculate the position of a point along a curve, what I want to do is create a function where i am able to determine where a point intersects the curve when I provide an X value.I have created a simple diagram to illustrate what I am looking for:So assuming I know the x,y of each black dot, and the x of the red dot, how do I calculate it's y value?

View 2 Replies

ActionScript 3.0 :: How To: Call 3 Array Positions

Jan 19, 2009

im trying to get this project done. Basically i'm pulling info out of an XML file:

Code:
<COVER>
<COVER_FILE_LOC>myImage1.png</COVER_FILE_LOC>

[code].....

View 0 Replies

ActionScript 2.0 :: Fixed Mc Positions In Web Browser?

Sep 4, 2009

When creating content for the web, I have certain elements I always want to be in view - no matter on what display or size it is being viewed from..How do I actionscript an mc, nested within a swf file to stay in a specified position / relative to the edge of a web browser

View 0 Replies

ActionScript 3.0 :: Find Positions In A String?

Nov 10, 2009

I have a function that finds the position of a specific string.[code]...

But indexOf searches the string and returns the position of the first occurrence.I know there's a startIndex parameter but I dont know how to use it so that I could go through an entire string.

Like for example: " Hello there little boy. What's your name boy?"

How can I get the position of first boy word and then the position of second boy word ?

View 2 Replies

ActionScript 3.0 :: Change The Positions Of Movieclips

Nov 14, 2009

i wanna know how to change positions of movieclips.[URL]

View 4 Replies

ActionScript 2.0 :: Mouse Show X Y Positions?

Apr 24, 2010

I have made a colouring application. The mouse changes to a brush when the user enters a page, but I dont know how to change the brush back to a mouse when the mouse is outside the colouring canvas,so the user can click on the navigation buttons.

View 1 Replies

ActionScript 2.0 :: Save SWF (not As Image But Positions Of MCS)?

Jun 1, 2010

I have a flash where users drag and drop icons around a matrix to indicate their opinions. I would like to have an option for them to save the positions of the movie clips that they have dragged and dropped so the next time they open it, they are where they left them.

View 5 Replies

ActionScript 2.0 :: Using Positions To Change Frames?

Aug 21, 2010

well i'm working on a small scale game and I appear to be coming across some small issues that I was hoping someone could help me with. I have this:

ActionScript Code:
if (_root.mc_player._x <= 540){
stop();
}else{
gotoAndStop(2);
}

in the frames actions.What I am trying to achieve is that when the players x position is greater than or equal to 540 it changes frame, I've tried various adaptations of this such as the following:

ActionScript Code:
stop();
if(_root.mc_player._x >= 540){
gotoAndStop(2);
}

mc_player is the instance name of the player (obviously :P) and when i enter the second code it just jumps straight to frame 2, so far it seems that the code is just setting the players x position at 540, so i tried setting it using actionscript like:

ActionScript Code:
_root.mc_player.x = 179
_root.mc_player.x = 143

it would set it at that and then the if the player reached the x position of 540 it would change frames but in that case it just didn't change frames.

View 9 Replies

ActionScript 2.0 :: Mutiple MC Easing To New Positions

Jul 2, 2011

I have flash 8(old school) so i am working AS2.i have a menu mc which is draggable along with 4 other mc's also draggable,each time i click an item on the menu I want to have all the mc's that are on the stage move to another position(rearranged) with easing.And so on for each item (keep in mind that all of the mc's are draggable and could be anywhere the user places them at anytime.)

View 0 Replies

ActionScript 3.0 :: Calculate Positions And Scales?

Sep 16, 2011

For some reason the "scaled.width" - the movieclip that have scaled already - after scaling it even more with TweenLite.to function by factor .3 aren't equal with the predicted result => scaled.width * .3. Orginal width is something I don't know but scaled width is something like 420. Now multiplying it by factor .3 the result should be something like 140, now when I put TweenLite.to function to scale my scaled movieclip by factor .3 the width in the end is something like 267.And frankly speakin I really can't imagine where the result came from.

Some back ground:I import three images dynamically. Each of them to their own MovieClip containers. I don't know the dimensions of images so I need to scale them proportionally to their dimensions to fit to the desired size.That was intuitively easy. I managed also to align them horizontally in the center of the screen after the first scaling by the knowledge that their registration point can be found from the top left corner. I also managed to align each of them on vertically in the middle of the 1/3 part of the empty stage with desired marginals: in the top there are 20 pixels space, between the images there are 20 pixels space and in the bottom there are 20 pixels space.

Now the problems comes when I need to tween them to their final positions. Each of them to the top of the stage and each of them in 1/3 part of the empty space horizontally scaled at the same time smaller with factor .3.Intuitively when I think the x position can be found by same way than the way I found y positions (related to the space left after the middle image is positioned). So in theory I thought the x position for the image that comes in the center should be as much as finalX = stage.stageWidth / 2 - current.width * .3 / 2(the center point of the stage minus the half of the width of the image after the scale)but when I give finalX for the tweenLite as a x position and .3 as a scaling factor the result is something different.

View 1 Replies

ActionScript 2.0 :: Dynamically Assigning MC Positions?

Jul 25, 2005

I have a navigation section built in Flash and am trying to position headers dynamically, based on variables passed from each page.

For example, the HTML on the HOME page, will have an swf with a variable like : nav.swf?dynHEAD=home

and NEWS will have a variable like : nav.swf?dynHEAD=news

then in flash, I guess something like this should work - but doesnt!

dynHEAD._x = 27;
dynHEAD._y = 211;

View 6 Replies

ActionScript 2.0 :: Restart All Animations From Same Positions

Oct 9, 2005

I have a movie with multiple movie clips each one with its own animations. There's a button that stops all animations (it works) and i want to make the same button start again the animations from same positions.. but it isnt working. I have this code to stop:

[Code]...

View 3 Replies

ActionScript 2.0 :: Calculating Two Positions, In The Middle?

Oct 22, 2007

I know how to calculate the distance between two movieclips, but I want to know how do you keep a movieclip centered between two movieclips? For example, three movie clips evenly spaced out in a row. I drag either movie clip on the end and the one movie clip in the center positions it self to be in the center x and y wise.

View 9 Replies

ActionScript 2.0 :: Loading MovieClip Between 2 X Positions

Feb 19, 2008

I've just added in a bubble effect I found here. At the moment the script creates bubbles randomly across the whole width of the stage. I want the effect to only occur between two x positions, say 50 and 845, on the stage. This is the Actionscript I have at the moment.

function bubbles(){
xpos = Stage.width*(Math.random());
xpos = Math.round(xpos);
_root.attachMovie("bubble", "bubble"+xpos, 999+xpos);
_root["bubble"+xpos]._x = xpos;
_root["bubble"+xpos]._y = 299;
} interval1 = setInterval(bubbles, 50);

View 7 Replies

ActionScript 2.0 :: Get Scroll To Go To Direct Positions

Aug 11, 2008

How do I get this scroll to go to direct positions such as;

[Code]....

View 1 Replies

ActionScript 3.0 :: Movements To Certain Positions On Click?

Aug 16, 2010

I have a credits button for a game. I want it when clicked to bring together two movie clips called top and bottom, then go to a frame labeled 2. I tried this code but it just freezes:

credits_button.addEventListener(MouseEvent.CLICK, CreditClick);
function CreditClick(event:MouseEvent):void {
while(top.y < 113) {

[code].....

View 2 Replies

ActionScript 3.0 :: Add Several MC's Inside A For Loop With Different X And Y Positions?

Jun 15, 2011

I have a movieclip called _container which I'm adding to the stage 6 times (it will be dynamic so the number can vary). [code]...

View 4 Replies

ActionScript 2.0 :: Moving Menu X Y Positions?

Sep 19, 2004

how do make the menu move with the changing size of the mc?

View 3 Replies

ActionScript 2.0 :: Swapping Between Multiple Movieclips And Positions

Feb 2, 2009

I've 6 different movieclips on stage, with one main focal movieclip in the center. What i need is that when clicking on the surrounding movieclips they animate in to swap their position with the main focal movieclip, which then animates to take it's replacements former position. So after a few mouse clicks all of the movieclips could have had their position shuffled from it's original location.

I know i've seen a similar thing on a photo gallery where the current photo is swapped with whatever thumbnail is clicked on but can't seem to find an example.

Currently i have the positions of the movieclips controlled by variables, the animation handled by tweener, and can quite happily find the position/scale etc of the movieclip that get's clicked on, but can't figure out how to get the focal movieclips details as it might never be the same movieclip.

View 2 Replies

ActionScript 3.0 :: Randomize The Positions Of The Letters In A String?

Mar 20, 2009

I've made some code that loads a line from a text file as a string and puts it into a dynamic field. What I want to do is randomize the letters of the string, but I can't seem to find any functions that do so. Anyone have an idea as to how you do this?

Code:
var url:String = "test.txt";
var loader:URLLoader = new URLLoader();

[code].....

View 4 Replies

ActionScript 3.0 :: Fuzzy Text - Using Whole Numbers For X And Y Positions

Aug 7, 2009

Needless to say, I have a case of fuzzy text. I have attempted to self-medicate by embedding the font, which now shows itself as one of my library items. I have made sure to use whole numbers for X and Y positions as well as the text fields width and height.

View 1 Replies

ActionScript 3.0 :: Stage Element Positions On Resize?

Feb 2, 2011

I'm creating a website within which I would like to achieve a menu system at the bottom of the page with a white band behind similar to this site:
 
[URL]
 
I have created the menu buttons and band but I can't figure out how to maintain their relationship with the edges of the browser window if it is rezised at any point during a user's visit (same as the site above).

I have been setting the position of the buttons and all other elements using, for example :

myBtn.y = stage.stageHeight - 100;myBtn.x = stage.stageWidth - stage.stageWidth + 50;
 
For publishing I use noscale, 100x100 percent, top-left justification.

View 3 Replies

ActionScript 3.0 :: Randomizing Appearance Of MovieClips - X And Y Positions

Jan 9, 2012

I'm having an issue using randomizing the appearance of movie clips using Math.random. I have a movie clip in the library, which is 85 frames long but it begins and ends with 15 blank key frames. In other words, it has 2 layers, one for action script and one for graphics which are movie clips too, the AS layer is 85 frames long while the art layer is shorter and begins on frame 16.

I began by putting the movie clip on the stage, without any code on the main timeline, with some code on the movie clip's timeline -
this.x = Math.random()*stage.stageWidth;
this.y = Math.random()*stage.stageHeight;

In this case, tested the movie, the swf played just what I wanted, the movie clip "appears" randomely on the stage, plays, disappears, and reappears, and so on and so forth.

I then gave the movie clip on the stage an instance name of b_mc, removed the code in its timeline, and put it on the main timeline, as such -
b_mc.x = Math.random()*stage.stageWidth;
b_mc.y = Math.random()*stage.stageHeight;

In this case, the movie clip does NOT appear randomly on the stage when the swf is tested, rather, it appears at the same position, appearing and disappearing over and over as planned, but in the same place - NOT as planned.

View 7 Replies

Flex :: Caret Moves 2 Positions In Stead Of 1

Jan 27, 2010

I have the strangest issue in Flex!Consider an <mx:TextInput /> with text. This textbox has focus and a nice little caret blinking inside. Now when you press the -> or <- button, the caret moves two positions instead of one! Also when you press the delete button, it removes two characters instead of one.This only occurs in Firefox, but it's not a FF bug because it only happens in my application.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved