ActionScript 2.0 :: Target The Selected PicFrame Clip And Have It Call The Function ResizeFrame To Change The Width Of Border Clip?
Feb 19, 2007
i have a loop that attaches clips of the picFrame to a holder clip based on the number of childNodes. how do i target the selected picFrame clip and have it call the function resizeFrame to change the width of just the border clip inside the picFrame the onRelease was chosen? i realize under the resize function i have it targeting the holder clip's width. i just don't know what else to do and i've tried many else's.
[Code]....
View 3 Replies
Similar Posts:
Mar 12, 2010
Is there a way to mask a movie clip in a way that alters the width and height of the object? I have a child movie clip that is larger in width so I'm having issues manipulating the width, height and coordinates proportionally of the parent movie clip.
View 4 Replies
Oct 19, 2009
I created an array with movie clips now how can i target one movie clip with event handler function . so that when i clicked on one movie clip a message should be displayed
View 4 Replies
Jan 29, 2003
is it possible to write a function to move an object and then call that function on a clip event for instance
function (bounce){
script;
script;
}
and then call it by saying
on(mouseOver){
this.bounce;
}
View 2 Replies
Oct 13, 2003
i'm trying to call a function on a clip, but i want to use a variable that i'm sending to the clip so that when the one function gets done it knows what to do next.
MovieClip.prototype.moveHere=function(x,y,spd,func ){
this._x+=(x-this._x)/spd;
this._y+=(y-this._y)/spd;
if(Math.abs(this._x-x)<1 && Math.abs(this._y-y)<1){
[code]....
View 3 Replies
Jun 28, 2011
I'm trying to use a movie clip's function from a fellow movie clip 2 children up and I can't find the right code. I've used:
MovieClip(datalist.getChildByName("content")).onpauseButton();
MovieClip(datalist.root.root.root).onpauseButton();
MovieClip(datalist.scrollb.content).onpauseButton();
MovieClip.(datalist.onpauseButton);
and none of them work. The function is "onpauseButton" and it is inside of "content" which is inside of "scrollb" which is inside of "datalist." I'm trying to call it from datalist's neighboring movie clip so that it activates along with another function:
manualButton.addEventListener(MouseEvent.CLICK, fl_ClickToLoadFile_1);
function fl_ClickToLoadFile_1(event:MouseEvent):void{ navigateToURL(new URLRequest("M-23 6263.pdf"), "_blank");// want to add the onpauseButton code here
}
I recall that there is a way to do it, I just can't find the right sequence. Everything online is about how to call up to a function outside of the movie clip and not down to a function inside of one.
View 4 Replies
Aug 1, 2006
Does anyone one know if it is possible to call a function from a different movie clip than the one it is in. For example, a function named loadData() which is on the first frame of a movie clip instance named thumbNail which is on level 0 on the stage i was thinking that it should work to call the function from frame one on the stage with..
View 5 Replies
Apr 2, 2009
I just need to call a variable or function from a movie clip to main timeline. In AS2 I would use something like:
_root.myvar = "Hola";
or
_parent.myfunc(4,2);
But this doesn't works on AC3. I tried to remove the "_" but its the same.
View 2 Replies
Dec 15, 2010
I'm a bit confused in AS3, after long developing in 1 & 2. I'm doing a radioplayer, so I did set my document to be of document class: RadioPlayer. Here is everything ok, sound playing etc. Now my client wants to add a volume button. So I made a movieclip of class VolumeManager. Now, to change the volume, I want my clip to call a public function of RadioPlayer.
As RadioPlayer is the document class I don't know how to reference it inside VolumeManager to call its public function. In AS2, I would say: _root.setSoundVolume(volume);
View 4 Replies
Oct 16, 2005
Suppose I have three different movie clips. mc_A, mc_B, mc_C I want to have a rollover call a function that changes each movie clip. But I don't want to type it out like this:
Code:
mc_A.onRollOver = function() {
Explode.newExplosion(mc_A);
};
mc_B.onRollOver = function() {
[Code]...
Above you will see that I used this, it made sense to me, but this always refers to the main timeline (root in my case). So how do I pass the name of hte clip I am rolling over to a function?
View 8 Replies
Jul 23, 2007
I'm having an issue with a simple movieclip onRollOver event. Here's my code:
Code:
_root.mc_shutternav.mc_nav_8.onRollOver = over;
_root.mc_shutternav.mc_nav_8.onRollOut = out;
_root.mc_shutternav.mc_nav_8.onRelease = hit;
[code]....
However, with this setup the function hit() is called automatically every time I publish the movie. What's wrong with this? What's the difference between mc.onRelease = function; and mc.onRelease = function()?
View 1 Replies
Feb 23, 2009
I have a child movie clip attached to the parent via the flash interface. The child is running a timer via code on its (the child's) timeline. When the timer finishes it needs to trigger a function on the parent's timeline. All the examples show how to trigger a function on the child - that is easy and I have got that working.
View 1 Replies
Jul 1, 2004
I have a function at frame 1 (_root). Well, i am trying to call this function from a button, inside a movie clip, but it's not successful..
View 2 Replies
Sep 15, 2011
i have a movie clip with an actions layer can i call a function from an actionscript file from the actions panel?
View 6 Replies
Jun 29, 2006
I'm using a function to make a movie clip with text inside of it act as a button:
Code:
poly.onPress = function() {
clearInterval(intervalID);
_parent.vocab.play();
};
is there a way to add a onRollOver: change tint of 'poly' to red (poly is a mc)??
View 14 Replies
Jan 3, 2007
I want to loop through a movie clip and assign a function to each of the clip's child movieclips. when i do a for...in loop and then do a typeof() trace I get "string" and obviously it won't let me assign lets say 'onRollOver' functions to the children.
View 6 Replies
Jul 2, 2010
i have a bit of an odd problem, when i view my swf clip online there is a large white border accross the top of the screen, i don't really know why as when i made the file there is no border, obviously there is a setting or something that i need to change
View 1 Replies
Dec 12, 2010
make a circle object movie clip call ball and make a rectangle object movie clip call mc and paste this coding.
[Code]...
can anyone explain about the movement about D? the D is talk about the distance if i go -X,way my ball go ++ to +x?
View 1 Replies
Jun 28, 2010
Scene1->MovieClip1->Image1(as a button)Scene1->MovieClip2->MovieClip3->MovieClip4->frame1Now I want to call frame1 from Img1 have a parent Scene1 common.How can I do this.I have tried
on(release){
_parent.MovieClip2.MovieClip3.MovieClip4.gotoAndPl ay("frame1");
}
[code].....
View 2 Replies
Oct 11, 2009
ActionScript Code:
import gs.TweenMax;
import fl.motion.easing.*;
var where:String
buttongroup.addEventListener(MouseEvent.MOUSE_OVER, buttonOver);
buttongroup.addEventListener(MouseEvent.MOUSE_OUT, buttonOut);
[Code] ......
View 1 Replies
Jan 21, 2010
I have two movie clips on stage: mc1 and mc2.Within both movie clips, there are 10 frames, all named frame1, frame2, etc.In "mc1" there is one button on each of the frames named btn1, btn2, etc.I'm trying to get it so when a button is pressed, (mc1.btn1 or mc1.btn10) it causes the other movie clip to advance to a certain frame.I've tried this code within the mc1 clip, on the same frame as the button:[code]But get a 1119 error. (Access of a possibly undefined property mc2 through a reference with static type.
View 1 Replies
Dec 14, 2010
I'd like to know if there is a way for me to someone create a 1px or 2px black border around only the opaque pixels in my movie clip?
I have a movie clip that has nested inside of it a Sprite that contains a graphic that was loaded up at runtime via Loader object. The graphic is a png image that contains parts of it as transparent.
View 3 Replies
Aug 19, 2008
I created a scene that allows the user to attach multiple instances of several movie clipsI want the user to be able to manually rotate any movie clip they wish via a button. While I understand how to create the button and write the rotation script, I am completely at a loss on how to go about writing the code that would allow the user to select the MC they want to rotate by first clicking it with their mouse and then rotating it with the button.
View 1 Replies
Nov 22, 2004
I am trying to make an interactive floor plan and I am stuck on the final aspect. The user can pick the type of table they want and can add or remove tables. I am using duplicate movie clip for this. There is one type of rectangular table which I need to rotate, the problem I am having is that I�d like the last table selected (dragged) to be the one which can be rotated by the arrow keys if desired, and I just can seem to get it right
View 1 Replies
Jun 16, 2005
i was wondering if anyone knew how to call a movie clip inside a movie clip
View 6 Replies
Oct 19, 2008
I've created an empty movie clip on the stage called 'photographs', to which I've attached a movie which I've given the instance name 'p1_mc'. This movieclip contains another with an instance name of 'p1_mc_base', which in turn contains a third with an instance name of 'close_btn'.
I need to target 'close_btn' to call an onRelease function. I'm thinking the path would be:
_root.photographs.p1_mc.p1_mc_base.close_btn
which is borne out when I list the objects in the movie, but I can't get it to work. I've used getNextHighestDepth() with the createEmptyMovieClip and attachMovie functions.
View 1 Replies
Apr 11, 2007
i need to create a border in my movie. i've used two buttons for two different types of borders and a NumericStepper to specify the thickness.i createEmptyMovieClip an mc and then i use moveTo and lineTo to draw the rectangular border inside it.now, every time the new thickness is specified, a new border should appear and replace the older one. so how do i do this??
i tried using a constant depth value which solved this problem.
i have a movieclip already on stage, placed manually by me.i dont want it to get overlapped by the border and so i used swapDepths for it. but if i use a constant depth, every alternate swapDepths puts this movie clip behind the border.so, first time the border's behind. now i change thickness and again apply border, the border is over my movieclip.how do i solve this so that the borders replace themselves and the mc on stage remains on top??
View 2 Replies
Feb 21, 2008
I want to duplicate a movie clip for each item selected from an XML file. I can't seem to find anything that works. Can somebody give me something to start with?
View 2 Replies
Apr 16, 2009
I have two movie clips on my main time line. There is a button in movie clip 1 that I want to target to movie clip 2... and it's not working for me. I'm assuming that when I'm in movie clip 1, I need to tell it to go back up to the main time line, and into the movie clip 2.The site that does the same exact thing I'm trying to do is this tutorial:The buttons and the page area are two seperate movie clips, but the buttons in the button movie clip target to the page area movie clip.This is the code that I'm thinking I'm getting an error with:Code:MovieClip(root).eyecarePage.gotoAndPlay(10);- where eyecarePage is the Instance Name of the movie clip where I want the button to target to, and once it's in that movie clip, I want it to go and play frame 10 and on... but instead I get a #1009 error.
View 4 Replies
Jul 14, 2009
[Code].....
So the display list seems to indicate that I have 6 movie clips on the stage. PROBLEM: When I try to target the movie clips by name in adding the following code for example: image2.apha = 0; I get an error: 1120: Access of undefined property image2. What I don't get is: image2 is a movieclip and a movieclip has a property of alpha?
View 3 Replies