Problem With Filter : Shadow Is Shown To A Movie Clip But Not To Another One
drop shadow has been applied to 2 different mcs , with the 1st one the effect is shown perfectly , however with the 2nd mc (basically text that was converted to a movie clip just to apply a bit of shade) the effect is not visualized. Is there any reason for this problem to happen ? thanks
KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 09-17-2008, 03:33 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
[CS3] Shadow Filter/Png Shadow And Css Opacity Problem In IE 7.0
I have a swf that's nested in a div that has an opacity factor of 0.9. The problem apperas in internet explorer, the shadows that i have inside the swf are dispalyed as black, with no transparency.. i supose it's a rendering problem.
Do you have any ideea on how could it be fixed?
Shadow Filter
ok how can you do this, for example let say that I want to use the Shadow filter in Flash 8 in my whole SWF .... so in the first frame I got this .
Code:
import flash.filters.*;
var ds:DropShadowFilter = new DropShadowFilter(0,90,0x000000,1,10,10,1,3,false,false,false);
middleCube.filters = [ds];
and what happend here is that I just can use this when the code and the MC (middleCube) are in the same frame ... so if i have this movie clip called "middleCube" in another frame or inside another MC how can use the same Var [ds] without repeating the all the above (import falsh.filters.*; .... etc ) in the other parts of my movie as well ?
there is anyway to do this.
thanks.
Shadow Filter
ok how can you make for example let say that I want to use the Shadow filter in Flash 8 in my whole SWF .... so in the first frame I got this .
Code:
import flash.filters.*;
var ds:DropShadowFilter = new DropShadowFilter(0,90,0x000000,1,10,10,1,3,false,false,false);
middleCube.filters = [ds];
and what happend here is that I just can use this when the code and the MC are in the same frame ... so if i have this movie clip called "middleCube" in another frame or inside another MC how can use the same Var [ds] without repeating the same (import falsh.filters.*; .... etc ) in the other pars of my movie as well ?
thanks.
Drop Shadow Filter Not Showing
Hi -
I'm using the Filter tab on the Properties palette to apply a drop shadow. as I'm working on the FLA it looks as expected but when I publish it - no shadow. The shadow is not part of the MC but applied after the MC is placed on stage.
What's wrong? Why aren't I seeing the shadow in the swf?
TIA your input.
jl
Trouble With Drop Shadow Filter
hello
i am working with a drop shadow filter class and for some reason i am un able to adjust the params of the DS after i set it up
this works
protected var commonDSropShadowFilter = new DropShadowFilter(2,45,4,.3,4,4,1,1);
but this doesn't
protected var commonDSropShadowFilter = new DropShadowFilter();
commonDS.distance=2;
commonDS.alpha=.3
commonDS.angle=45;
commonDS.quality=1;
any ideas what im doing wrong?
Drop Shadow Filter Problem - Bizarre
i'm building a small site at the minute, and i have a small tooltip that pops up when you mouse over menu items. sometimes the tooltips displays a small thumbnail and some text, and other times it's just text - it depends on the link. the tooltip resizes based on the amount of text and whether there's an image or not - pretty standard stuff so far. i also have a dropshadow filter on the tooltip to give it a bit of depth
my problem:
* link 1 has text that makes the tooltip say, 150 wide. link 2 has text that makes the tooltip 50 wide. moving from one to the other before any thumbnails have been loaded into tooltip works fine, no problem.
* sublink 1 - a sublink of link 1 - has text and a thumbnail. that gets loaded in and displayed properly
* i move back to link1, and the tooltip resizes properly
* i move down to link 2, and the tooltip resizes to 50, but now there's 100 pixels of "ghost" image to the side of it. stepping through the code, the size of the tooltip is still 50, even though it displays 150 pixels (the proper 50 and the "ghost" 100)
i thought i was doing something crazy and cue about an hour and a half of bug fixing, before i finally disabled the drop shadow filter, and everything's working as it should.
has anyone come across anything like this? is this a bug in flash or something i'm doing wrong? the image loading / resizing is all pretty standard stuff. i've stuck up an image here so you can see what i'm talking about better. note in the images that the textbox in the movieclip has an outline, and there's only one
on a side note, has anybody else noticed that 9-slice scaling doesn't work properly sometimes? as in, if you've a movieclip/whatever with detailed corners. you can see it in the middle image of the link if you look at the top left corner of the tooltip - the inner dark grey bit is meant to follow the outside curve, but it doesn't even though all the graphics are fill shapes on the same layer
Safari Browser And The Drop Shadow Filter
Hi All,
I've created a plethera of components for a site I've built. A few of these components need to have a DropShadow on them. SO I use the DropShadow Filter to implement this dynamically. no worries. all works good.
When testing in IE and Firefox, all is good. However, in Safari on MAC, the drop shadow seems to flicker and grow stronger in terms of shadow strength.
I was wondering if anyone has come across this problem before, and / or could provide a solution?
Thank you.
Tree Component - Applying Shadow Filter
Does anyone know how to apply the shadow filter to the tree component?
I tried (with tree the instance name of the component):
ActionScript Code:
import flash.filters.DropShadowFilter;this.tree.setFilters(3);var isDropShadow:Boolean = true;function setFilters(dis):Void { // Define a new array for the filters. var filtersArr:Array = new Array(); // If isDropShadow is true, make a new // DropShadowFilter object, and add it to the array. if(isDropShadow) { //(distance:Number, angle:Number, color:Number, alpha:Number, blurX:Number, blurY:Number, strength:Number, quality:Number, inner:Boolean, knockout:Boolean, hideObject:Boolean) var dropShadow:DropShadowFilter = new DropShadowFilter(dis, 81, 0x000000, .3, 5, 5, 4, 15, false, false, false); filtersArr.push(dropShadow); } // Assign the filters array to the filters property // of imageClip in order that the filters will // get applied. tree.filters = filtersArr;}
Drop Shadow Filter Problem With Buttons/components
Hi,
Wondered if anyone has come across this before:
I have a toolbar created in Flash8 where if you click a button, a drop-down menu appears. The drop-down menu is a MC that I've applied a dropShadow filter to.
If you place a button onto the drop-down menu MC or anything that redraws when you roll over or click it (ie pretty much any component), then it creates a 'hole' in the drop-down menu MC through which you can see the background - really annoying - and draws a shadow.
Remove the dropShadow filter and the problem with the 'hole' goes away.
I've worked round this by defining my own button class and in every mouse event putting the following code:
this.parentFilters = _parent.filters;
_parent.filters = [];
this.gotoAndStop("Up"); // or whatever redraw you're getting it to do
_parent.filters = this.parentFilters;
and this solves the problem but I really don't have to write all my own components as I now need loads of other components on my drop-down menus. I also really like the drop-shadow filter effect and don't want to scrap that.
Any ideas?
Drop Shadow Filter - Embed Cutting Off Edges?
I've dynamically drawn a gradient background on a little widget I've built (pulls in EPA/National Allergy Bureau climate data from a vendor, if you're curious), and I have applied an AS 2.0 drop shadow filter to the background. Standard stuff...except...
...I embedded the SWF using SWFObject and matching the dimensions of the widget stage exactly. And the left/right edges are cutting off. Are there any guidelines for using a background AS 2.0 drop shadow filter and accommodating the filter with the embed? It's a 10px (5px depth, 5px blur) 90-degree filter, and I left room on the stage for the 10px below the background. But the "edge" I expect to see on the embed isn't showing up.
Here's the filter code, BTW:
Code:
outlineShadow = new DropShadowFilter(5,90,0x000000,0.33,5,5,1,2,false,false,false);
Any suggestions?
Thanks,
IronChefMorimoto
Drop Shadow Filter - Embed Cutting Off Edges?
I've dynamically drawn a gradient background on a little widget I've built (pulls in EPA/National Allergy Bureau climate data from a vendor, if you're curious), and I have applied an AS 2.0 drop shadow filter to the background. Standard stuff...except...
...I embedded the SWF using SWFObject and matching the dimensions of the widget stage exactly. And the left/right edges are cutting off. Are there any guidelines for using a background AS 2.0 drop shadow filter and accommodating the filter with the embed? It's a 10px (5px depth, 5px blur) 90-degree filter, and I left room on the stage for the 10px below the background. But the "edge" I expect to see on the embed isn't showing up.
Here's the filter code, BTW:
Code:
outlineShadow = new DropShadowFilter(5,90,0x000000,0.33,5,5,1,2,false,false,false);
Any suggestions?
Thanks,
IronChefMorimoto
Filter 'ghosting' On Movie Clip Bounding Box
I've got a strange problem I can't find an answer for.
I've just started using basic flash filters like dropshadow, etc on objects defined BOTH manually on the stage (created by hand in the ide with the filter applied via properties panel) and via AS3 code.
For some reason, it seems like some objects that i enable filters on wind up with a very slight *ghosted* (very low alpha) 'rectangle' with the dimensions of the movie clip bounds that contain the objects i apply the filter to.
for example, lets say i put a drop shadow on a static text text field. the drop shadow effect DOES get applied to the text like it should which is fine. however, applying the effect to the textfield creates a very low alpha white colored rect in the dimensions of the OVERALL bounding box of the actual textfield which is NOT ok. It's very noticeable over a darker background clip which looks very low budget
fyi, the same thing is happening on a movie clip that has an embedded background shape with drop shadow applied to it, so it's not just text fields. when the alpha of the movie clip is turned off (and or the visibility prop - forgot which one) at the beginning of my swf to hide the clip until i want to display it, an annoying 'ghosted' box in the dimensions of the movie clip is visible where the box is hidden before it comes into display.
if i disable the filters on either of the objects, the ghosting goes away! this has to be a known problem or something stupid i'm doing.
what is causing this? how do i disable the ghosting? the filters are great features but if i can't hide the ghosting boundaries, they are fairly useless. the ghosting makes otherwise nice effects look like a third grader did them
thanks. i really want to nip this in the bud.
Blur Filter Linked To Scale Of Movie Clip?
Hi
Does anybody know how to dynamicaly change the 'strength' of a blur filter depending on the size of a movie clip?
For example, imagine that 'movieClipA' has a powerful blur applied to it when it is only 20 pixels high, but no blur at all when it's 40px high (and different degrees of blur in-between)
I'm trying to make a nav bar that rotates (3d carousel like) and the blur would add to the feeling of depth. I've looked at various tutorials but can't quite achieve what I want - any help appreciated..
Movie Clip With Filter Totally Pixelates The Vector So You Can't Make It Out
After a little investigating I learned that making my vector object a "movie clip" symbol rather than a "Graphic" symbol will give me the opportunity to use filters (ie drop shadow, glow, etc.). However, when I use the filter my vector object pixelates severely. If I apply any one of the filters they make my vector symbol so blurry you can't even make it out. Are they rasterizing? Am I missing something? Help.
Edited: 12/09/2008 at 10:40:15 AM by Sufi Girl
Flash Is Not Shown In Safari Or Firefox 3 But Is Shown In Ie6
hello guys
I would appreciate if any of you could tell me any suggestion to fix this flash object I have on the top left square of this site www.arreglaordenador.com
It turns out that there is another bigger flash object which is gray and black and appears only at the presentation. This second flash object is shown well in ie6, safari and firefox. But why the other flash object, the one on the top left cornet of the page is just shown in ie6 but not in safari or firefox 3?
Thanks in advance
Jpg Are Not Shown In My Movie After I Put It Online
Hi,
i have made a Fotogallery and the Fotos are uploaded via loadmovie.
So, however everything is working fine on my local machine. But after putting it online everything is but the jpgs aren't shown, which makes my Fotogallery quite boring ;-).
Does anybody has an idea what the problem can be?
I havent a clue. Is there a way to use trace while it is online?
If somebody wants to have a look, here is the link...
Jans Fotogallery
Ok. I put a loader in to see if something is happening and the pics seem to load.
Thanks for any help.
Pre-loaders Is NOT Being Shown When I View Movie
hello there..
in my flash movie im calling a certain movie clip from the library to be displayed depending on the time... within that clip there are 22 frames and one of them will be randomly displayed..
im using this code to do it
mydate = new Date();
mhours = mydate.getHours();
var mcName;
if (mhours>=7 && mhours<=14) {
mcName = "one";
} else if (mhours>=14 && mhours<=19) {
mcName = "two";
} else if (mhours>=19 && mhours<=23) {
mcName = "three";
} else {
mcName = "four";
}
var mc = _root.attachMovie(mcName, "mc", 1);
mc.gotoAndStop(int(Math.random()*21)+1);
stop();
in the library i have exported the 4 movie clips for action script... and i have unticked 'export in first frame' box
also i have drsagged the 4 clips onto the movie.... and moved to the side to they cant be seen..
i have a preloader in the first frame of the timeline but it doesnt seem to show when i uploaded it and view it
PLEASE HELP SOMEONE
Effects Shown In Source But Not In Loaded Movie
Hi...
hope you people are fine.. i am really a newbie in flash... i am getting a strange problem... that is.. i have given effects on the text those effects are working in the source file (when i press enter in flash) but when i do Ctrl+Enter or i export a movie.. .those effects dont work.. and i get the plain text without any effects there...
Any help?
Flash file is attached as zip as fla size was over limit ...
Thanks in advance
MC Ploader %age Count Up Is Not Shown As Movie Loads Onto Another One....
xy100c.swf is loaded by means an empty (instance name is xy100c)
mc unto intro.swf which is loaded on level 10 over a basemovie.swf (this one level0);...
Quote:
loadMovie("swf/xy100c.swf","xy100c");
the test with bandwith profiler reveals xy100c.swf´s preloader is perfectly operational ;
however in the site as "xy100c.swf" loads the percentage counting up is not shown (there is a light movie clip to entertain during pre loading which works fine) ;
the question is , what´s amiss ??
Thank you all for the attention
PS:-
p loader code is the well known :
Quote:
totalK = getBytesTotal()/1000;
loadedK = getBytesLoaded()/1000;
remainingK = totalK-loadedK;
percentageK = Math.round((loadedK/totalK)*100);
if (loadedK>=totalK && totalK != 0) {
gotoAndPlay (3);
}
[F8] Can't Create Text Link After Flash Movie Is Shown
Hi, I was wondering if someone could help me out with this. I'm pretty new to flash so I barely even know anything there is to know about it. I've looked around on tutorials for this, but I can't seem to get anything to work.
What I want to do is show a movie clip for the introduction of my website and then when it is finished showing I want to show a link that will lead into my homepage. I've got a preloader working for it and the movie loads up just fine for it, but my problem is for when the movie is done. After the movie has finished, I can't add a Text Link to have it lead to my homepage.
When I put in a text link in the next frame, it stays on top of the movie the entire way through. I've tried to put a stop action on the frame of the movie, but then movie shows and stops when it is finished. I have no clue as to how to move the scene along to the next frame with the text link in it.
There's probably a really easy solution to this, but could someone please help me?
SetMask On Clip With Blur Filter
i ve a movie clip called main on root timeline...Inside main, i create a shape with dimensions 550 x 400 to fill the entire stage. Above this shape on a new layer i placed a move clip called star (inside star there is a star shape that scales up and down using shape tweening).Moving back to the root timeline i have applied blur filter to the main movieclip .Now above the movie clip main i placed another movie clip called box with dimensions 550 x 400...Now i m using the following code on the root timeline
main.setMask(box)
the problem is that when the star movieclip scales up and down it form a trail of its bounding box... how can i solve this problem
thnx in advance..
ASBroadcaster To Shadow Another Movie
I have a movieclip (movie A) with an onRelease event handler defined. I need another movie (movie B) to fire a function every time (movie A) fires it's onRelease.
I think ASBroadcaster is the answer? but not sure.
Movie Size/drop Shadow
HI
I created a movie, and as an after thought I would like to add a drop shadow.
How can I increase my movie size and center my animation, without having my movies that load into location all be of center?
Should I make a bigger movie that is just the drop shadow on the lowest level, and then load my original movie in a higher level, or is there a better way to do that.
thx for any suggestions
Bitmapdata, Apply Filter To One Channel? Realease A Filter
Hi there, I have two question:
Is it possible to apply a filter only to one channel or to access only one channel?
I've found somewhere:
Display.BitmapData.Channel.ALPHA
Is it something we can access at runtime?
When I appply a filter to a Bitmapdata, the Bitmapdata isn't really modified but just filtered, so if for example I copy one of its channel to another bitmapdata, I copy the source bitmap without the filter...
What I'd like to do is "release" the filter so it definetely modify the image. Is it a function to do so or can I only perform this by doing a screenshot of my MovieClip?
Thank you inadvance for your help.
Colormatrix Filter And Blur Filter Tween
Last edited by sks447 : 2006-10-17 at 15:11.
I want to have a picture fade from blurry and grayscale to sharp and colorized. I have the blur to sharp part working ok. I have the grayscale to color to working ok. The only thing is the filters dont work together. Ive tried to push one into another with no luck yet. You can see the comments in the code below. Thanks.
ActionScript Code:
function blurFunction(myVar) {
// init what movieclip to blur
if (myVar == undefined) {
myVar = promoContainer.p1;
}
// BLUR FILTER
import flash.filters.BlurFilter;
import flash.filters.BitmapFilter;
import flash.filters.ColorMatrixFilter;
var blurFilter:BlurFilter = new BlurFilter(0, 0, 3);
desaturation = 1;
var filterArray:Array = new Array();
filterArray.push(blurFilter);
var blurX:Number = 100;
var blurY:Number = 100;
onEnterFrame = function () {
prevPromo._visible = false;
nextPromo._visible = true;
if (desaturation>=1) {
des = -0.03;
} else if (desaturation<=0) {
des = 0;
delete (onEnterFrame);
}
desaturation += des;
// color matrix
//myVar.filters = new Array(getDesaturationFilter(desaturation)); <---- I can have this....
blurX -= 10;
blurY -= 10;
blurFilter.blurX = blurX;
blurFilter.blurY = blurY;
// blur filter
//myVar.filters = filterArray; <---- Or I can have this but not both.......
if (blurY<=0) {
blurY=0;
blurX=0;
//delete (onEnterFrame);
}
};
}
function getDesaturationFilter(t:Number):BitmapFilter {
t = t != undefined ? t : 1;
var r = 0.212671;
var g = 0.715160;
var b = 0.072169;
trace("colormatrixfilter called");
return new ColorMatrixFilter([t*r+1-t, t*g, t*b, 0, 0, t*r, t*g+1-t, t*b, 0, 0, t*r, t*g, t*b+1-t, 0, 0, 0, 0, 0, 1, 0]);
}
[noob Filter] Reloading A Movie After Loading A Random Mc...
Hi, I have the following problem. Probably it´s very easy to solve.
I have a 1 frame flash movie that loads random movies into a movieClip.
What I want is that at the end of each loaded movie, the movie will unload itself (its already working) and reload the main movie so another random movie is loaded instead.
The code to load the random movie is as following:
filename = ["hipotecarios_1.swf", "hipotecarios_2.swf", "hipotecarios_3.swf"];
path = "";
i = filename.length;
k = Math.floor(Math.random()*i);
loadMovie(path+filename[k], movieTarget);
What I dont have is the code to put at the end of each loaded movie to make the "randomization" happen again. Anyone can help?
Thanks a lot in advance.
Movie Is Shown Very Small Firefox (width="100%" And Height="100%)
movie is shown very small Firefox (width="100%" and height="100%)
I configured the movie width="100%" and height="100% to wide spread the screen , and this happens normally to IE7 and Opera.
However with Firefox the movie is shown very small.
does someone know why ?
Thank you
Quote:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>title</title>
<script src="scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href ="css/electroaye.css"/>
</head>
<body>
<div align="center">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','100%','heig ht','100%','src','swf/electroaye_basemovie','quality','high','pluginspag e','http://www.macromedia.com/go/getflashplayer','movie','swf/electroaye_basemovie' ); //end AC code
</script>
<noscript>
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="100%" height="100%">
<param name="movie" value="swf/electroaye_basemovie.swf" />
<param name="quality" value="high" />
<embed src="swf/electroaye_basemovie.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100%" height="100%">
</embed>
</object>
</noscript>
<br />
</div>
</body>
</html>
Making A Movie Clip In A Movie Clip Go To The Next Frame Of The Original Movie Clip
I have a movie clip (for simplicity I'll call it movie_a) in movie_a I have another movie clip movie_b.
in movie_a i have a button that when pressed makes movie_b play (it has a stop frame every once in a while so the button acts as a "next" button)
I want it so that when i get to the last frame of movie_b and press the button, it will go to the next frame of movie_a
I hope that doesn't confuse u and u can help me solve this problem, as i am stumped and I've tried everything I could think of (which isn't that much as I'm not too good with actionscript)
thnx
Movie Clip Buttons Nested Inside Movie Clip Dont Work
Hi people!
im having a problem here.
in my first frame i have a movie clip named "menu_mc".
i have this AS for this movie:
Code:
this.menu_mc.onRollOver = function() {
menu_mc.gotoAndPlay(8);
}
this.menu_mc.onRollOut = function() {
menu_mc.gotoAndStop(7);
}
thats working ok, the menu_mc plays on rollover from frame 8 till frame 12 where stops.
On frame 12 (this is inside the menu_mc movie clip) i have another movie clip, named button1_mc.
and also i have AS controling that MC:
Code:
this.button1_mc.onRelease = function() {
getURL("index.htm", "_self");
}
The problem is that when i rollOver on menu_mc it work fine and the button1 appears, the problem is when i try to click button1...
doesnt work.
the swf you can see it on www.wt.com.mx/menu.swf
can anybody help me please?
what im doing wrong?
or what other ideas can you give me so i can make that work.
thanks!
Mouse Rollover On One Movie Clip Increase Decrease Alpha Of Another Movie Clip..
So I really haven't messed with Actionscript much for a couple years and here is my issue.
I have several movieclips I put together that will eventually be a menu for my website. When you roll over a menu option (movieclip) I am trying to get another movie clip to fade in giving the description of the menu item.
For example - when you roll your mouse over the 'Live Chat' option a brief text description would appear telling you what the live chat is about. This description is a seperate movie clip appearing away from the original menu.
I have made the movieclips for the menu and the movie clips for the descriptions. I tried this action on the menu option to get the description to fade in:
Code:
onClipEvent (load) {
this._parent.mc_text_discussionBoard._alpha = 0;
}
onClipEvent (enterFrame) {
this.onRollOver = function() {
if (this._parent.mc_text_discussionBoard._alpha<100) {
this._parent.mc_text_discussionBoard._alpha += 5;
}
};
}
But the alpha only increases on the description (mc_text_discussionBoard) by 5 when I keep rolling my move over and out and over again. It makes sense why it does that, but I'm not exaclty sure how to get it to continually increase the alpha by 5.
any help would be great and I am anxiously waiting to get this solved!
Kevin
Code 4 MovieClip Button To Load A Movie Clip Into A Placeholder Movie Clip.
Yeah that title sounds a little confusing...so i will explain:
Is there a way to tell a "movie clip button" that once it is clicked on to load a "movie clip" into a "movie clip placeholder". So instead of loading an external swf into the placeholder, it will be a movie clip from within the same library. Putting every single custom clip on the timeline would take a while, so that is why I thought it would be easier like this, and the other movie clips are not that large that I want to load into it so there is no need for external swfs, trying to keep it clean. Here is the code along the lines I am trying to go for.
__________________________________________
this.profile_mc.onRelease = function() {
placeholder_mc.loadMovie("profileSection_mc","plac eholder_mc","_root.content");
}
__________________________________________
- "profile_mc is the button I am trying to activate to load the
"profileSection_mc" into the "placeholder_mc". but so far no good.
- the movie clips are within the same library, not on the timeline or external library.
- Is this possible?
Using A Button In A Movie Clip To Control The Movie(and Not Movie Clip) Timeline
Ok i have a button placed in a movie clip. I want this button, when released, to go in another scene, frame one, on the movie(scene) timeline and not on the movie clip timeline.
So i tried: gotoAndPlay("mission", 1); (mission is the name of my scene)
But it goes to the frame 1 of my movie clip, It would be great if someone could tell me how i can control the movie timeline while my button is in a movie clip
thaks
Vakarm
How To 'stop' A Movie Clip Within A Movie Clip Within A Movie Clip Loop
I've done searches, laughed, cried, and punched holes through the wall, but I can't figure this out.
I'm in Flash MX (pro) and I have a MovieClip on my main timeline (frame 1). Inside that clip is another animation (the static animation scrolling across the screen), and another inside of it of the static animation (6 characters on a train each animated uniquely).
Confused yet? Ha! OK, so I just want the damned animation on the main timeline to run once and then stop (or to 270 frames). I've tried:
myMovieClip.stop()
to no avail. I've tried attaching the script to the movie clip itself, and also to the frame.
Any suggestions?
Making A Draggable Movie Clip Control The Location Of Another Movie Clip
http://www.kineticz.net/jba/residental.jpg that is a picture of what i am trying to do. the white bar at the bottom is the draggable movie clip and the group of 3 pictures right above that is the movie clip that i am trying to control w/ the draggable clip. I am having trouble writing a script that will do this. any help you can give will be much appreciated.
A Button Inside A Movie Clip, Within A Movie Clip, Calling Another Scene:
Is it even possible?
I have been trying to do it for the last few days for a site I am working on.
I have done searches in many forums and it's foolish looking for an answer that way, because quite frankly every thread I opened was something to do with LoadMovie or GetURL, etc.
What I have right now is on the button in my Menu Bar Movie Clip:
on (release) {
gotoAndPlay(285);
}
Which plays a fancy little animation in the movie clip and then on the last frame of that movie clip I had:
gotoAndPlay("Contact", 1);
Which is the Scene for the "Contact Us" Scene named "Contact"
One would think that it would load up the scene and play at frame 1, however all that happens is it reloads the movie clip of the "Menu Bar" at frame 1 and starts over, not even realizing what I asked.
Anyways, I figured there's a script or something that tells it to look outside of the movie clip or to the _Root, or whatever.
If someone has a solution, it would be greatly appreciated.
Sorry I have no example to show, since I have yet to upload it. (It's my company's web site, and I don't think customers would want to see some half-arsed web site that's not complete.
Thanks in advance.
On Mouseover Show Movie Clip, On Mouseout Close Movie Clip *HELP*
Basically what I am trying to do is this...
I have a movie clip that is a name. When you put your mouseover the name I want another movie clip to display to the right of the name. This clip has a photo and bio of the person.
The photo and bio have an animation that fades it in and an animation to fade it out. I have 5 frames for the fade in, then stop frame, then 5 frames for the fade out.
What actionscript do I need to use to make that second movie clip load when a user mousesover the name (first movie clip) and to make the second half of the second movie clip play when the user removes their mouse from name (first movie clip).
NOTE: I tried using loadMovie and unLoad movie but I couldn't do it loading another swf. The reason being this is already an swf loaded inside a main movie. I guess you can't load an swf inside an swf that's already loaded inside an swf. I hope this all makes sense!
I appreicate all the help!
Thanks a lot!
Create An Empty Movie Clip Inside An Existing Movie Clip?
I'm making sort of a tabbed navigation scheme by reading the data for each tab in from an XML file. What I'm wondering is if it's possible to use createEmptyMovieClip() to make a new empty movie clip inside a movie clip that already exists on the stage.
Using
ActionScript Code:
m_anchor.loadMovie(bg_image);
works as I would expect. bg_image is just the relative path to an image file, and m_anchor is a movieclip already on the stage. However, doing a similar thing:
ActionScript Code:
m_anchor.createEmptyMovieClip("textbox", this.getNextHighestDepth());
and then drawing a shape (a rounded rectangle, which I then want to put text on top of) doesn't work. It works if I just say "this.createEmptyMovieClip" instead of attempting to create it inside the m_anchor clip, but if I do that, the "textbox" is created at the root level and I can't unload it along with everything else in the "m_anchor" clip. Is it possible to create a new empty movie clip inside of one that is already on the stage?
Thanks!
Load An Internal Movie Clip To An Empty Movie Clip On The Stage
Can any of you shed some light as to why this is not working:
on (release) {
emptyMC.attachMovie("mrimc","instance1",this.getNe xtHighestDepth());
}
what I want to have happen is when the user clicks a button it loads the mirmc into emptyMC on the stage.
I have double checked that my empty movie clip does indeed have an instance name of emptyMC and that the movie I want to load into does in fact have the name mrimc in the library. Any ideas?
Problem Getting Movie Clip Inside Of Movie Clip To Face Mouse
I used the code below to make a movie clip face the mouse, it works when I use it on a movie clip that's not embedded in another movie clip, but when I used it on an embedded movie clip, it's axis seems to change.
Attach Code
var stickGun:MovieClip = this.stick_holder.stickGun_mc;
//stick_holder.stick_mc.stickGun_mc
stage.addEventListener(Event.ENTER_FRAME, onMove);
//stick_holder.stick_mc.stickGun_mc.addEventListener(MouseEvent.MOUSE_MOVE, onMove);
function onMove(event:Event):void {
// get the radian value of the angle between the clip and the mouse...
var myRadians:Number = Math.atan2(mouseY - stickGun.y, mouseX - stickGun.x);
// convert it to degrees...
var myDegrees:Number = Math.round((myRadians * 180 / Math.PI));
// get the horizontal and vertical distance between the clip and the mouse...
// rotate the clip toward the mouse...
stickGun.rotation = myDegrees;
}
Placing Actionscript Movie Clip Inside A Movie Clip Symbol
I'm loading an external image into an empty actionscript movie clip (holder1) using MovieClipLoader(); on frame one of my movie and is invisible. Then when the movie plays, there is an empty movie clip symbol (image1_mc) that is placed manually on the stage within another movie clip symbol (flash_mc), and is also on a bottom layer of a mask layer which is animated. Is it possible to place "holder1" inside of "image1_mc" so that I can treat it as if it were an embedded image? In other words, have the image in "holder1" inside of the manually placed movie clip symbol "image1_mc" so that I can use it like a regular symbol on the stage?
How Can I A Movie Clip Splash Prior To Attaching The Choose Movie Clip..Help
I have a presentation which I would like to publish on CD. What I want is to have movies attached to the container_mc on the stage upon clicking the desired navigation buttone. But before movie gets attached, I would like to have a logo_mc animation (from the library) to play itself before playing the selected clip.
I think I need to write up a function which will call the animation splash clip prior to attaching the clicked movie.
Appreaciate all the help.
Thanks so much.
|