MovieClip in SerialElement sequence
Hello,
I would like to show a MovieClip for some time (10 sec) in SerialElement sequence.
Is it possible? What are the best ways to do this?
Thank you in advance,
Kioshin10
I was wrong. I thought I had tested it by making Btn1 a typo like "Bttn1" or something. It's not seeing the instance Btn1 at all. I get the same problem no matter what I put after ButtonsGroup.xxx.
Can you reference a moviclip like that at all? Like:
mc1.mc_Inside_mc1.gotoAndPlay("mcInsideFrame")
I think I need to learn more about the "addChild" methods. How do I incorporate that in my code?
Edit: Like what you said:
"if Btn1 is created on mc's timeline and your on the timeline that contains mcs, you use:
mc.Btn1 to reference Btn1."
Only that isn't working for me.
Edit Edit:
Resolved. I don't know what was causing it, but I broke apart the mc, and remade it. Now it works fine.
Similar Messages
-
Play multiple MovieClips videos in sequence
Hi,
I've multiple videos stored as MovieClip objects and would like to merge them into a single MovieClip video object in order to play all of them in sequence (so that a user thinks it's a single longer video). Is it possible?
Thanks a lot!yes very possible.
there are a few ways to do this, but this is the route i would go.
if you are good with OOP let me know and i will create the class's for you otherwise, also is there sound involved?
var index:int=0
var getTo:int=0
var currentClipInPlay:MovieClip
var clipsToPlay[LoaderA,LoaderB,LoaderC,LoaderD] //assuming these are your loaders of the movieCLips
function beginPlaying(start:,finish:int){
var startPlayingMovie:MovieClip=turnInToMc(start)
index=start
getTo=endValue
assumePlay( startPlayingMovie)
protected function assumePlay(starting:MovieClip){
if(index<getTo){
addChild(starting)
resume()
}else{
pause()
function turnInToMc(index):MovieCLip{
Loader(clipsToPlay[index]).content as MovieClip
function pause(){
mc:MovieCLip= turnInToMc(index).stop()
removeEventListener(Event.ENTER_FRAME,onFrame)
currentClipInPlay=null
function resume(){
currentClipInPlay=turnInToMc(index)
if(!hasEventListener(Event.ENTER_FRAME)){
addEventListener(Event.ENTER_FRAME,onFrame)
function onFrame(e:Event){
var tFrames=currentClipInPlay.totalFrames
if((currentClipInPlay.currentFrames==tFrames){
stopAndPlayNext(currentClipInPlay)
}else{
currentClipInPlay.nextFrame()
function stopAndPlayNext(mc:MovieClip){
pause()
index++
assumePlay(turnInToMc(index))
removeChild(mc)
mc.gotoAndStop(0)
I'll explain when i get to work what this is -
Export problems multiple movieclips to image sequence
For our customer we made several flash animations. My output has to be image sequences for Cinemascope format. The export function in Flash for image sequences does not work! All my images are the same frame. This is frame 0 on the timeline. So the embedded movieclips wont playback.
When exporting a Quicktime movie, some frames are skipped and missing in the output! So the export options in Flash are totally not working for my situation. We bought an application SWF to image but also here are some frames missing in the export. I can not relay on Flash and this application.
The project is built like this: we made several movieclips and scaled them and put them in position. Then we made one new movieclip with all the earlier made movieclips inside. Then scaled the entire movieclip to the Cinemascope stage size.
Are we using Flash in a wrong way here?
Why does the exports functions don't work on my project? (built in movieclips won't play, quicktime mov skips images)
How can i solve this problem?
Thanks in advance,
Greetings HenkOk this is workaround but should in principle do what you want:
//create an instance of library object
var mylibrary = fl.getDocumentDOM().library;
var doc = fl.getDocumentDOM();
var tl = fl.getDocumentDOM().getTimeline();
//get items in library in an Array
itemArray = mylibrary.items;
totalCount = itemArray.length;
for(var i=0;i<totalCount;i++){
myItem = itemArray[i];
myItemType = myItem.itemType;
myItemName = myItem.name;
mylibrary.editItem(myItemName);
fcNum = tl.layers[0].frameCount;
for (f=0; f<fcNum;f++){
tl.setSelectedFrames(f, f)
framenum = f + 1;
//select your destination, on MAC use something like file:///Macintosh HD/Users/username/Desktop/
doc.exportPNG("file:///C|/test/"+myItemName+ "_" + framenum +".png", true, true);
1: open the fla file you want to convert to a movie and create a backup
2: Create a new Flash Javascript file and insert the code above, Make sure you have enough hard disk space in your destination folder
3: Press the play button and Flash will automatically parse through all items frame by frame in your library and save the images as png
4: Take a break as it might take a long time -
Movie clip stops playing for no reason
I am making a banner that has multiple movie clips sharing the same area, creating different rainbow effects when different areas (invisible buttons) are moused over.
First of all I couldn't figure out if there was a way to have one invisible button over the whole area that changed to a different colored effect with each mouse over (first mouse over the black and whites would change to reds, second would change it to blues, third would change it to browns, etc.). Since I couldn't figure this out I settled on creating three buttons covering a third of the banner each, so when the mouse passes over one button it changes to reds, over another button it changes to blues, over the third it changes to browns.
The effects are movie clips where each frame has another stripe changing color so it goes in a wave effect from one to the next, and then goes back to white and black in the same manner. The first frame of each movie clip I had to turn into a nested movie clip so I could turn the alpha to 0, since I was going to have these color effect movie clips on top of one another in the main timeline on different layers, and so you could see the effect even if that color layer wasn't on top. I used the same nested movie clip with zero alpha for the first frame of each color effect clip (reds movie clip, blues movie clip, etc), so I dont' know if that's an issue.
Anyway, it seemed to work fine for a while, but after working on it for a while longer (and not getting any further since I removed most of the changes I made), now when I test the movie the mouse over does not seem to work correctly. It works fine, seemingly, for the first time I mouse over each button, but in order to have it work again I have to mouse over the button twice, and then it will pause randomly during a part of the clip and I have to move my mouse back over for the movie clip to continue.
I can't tell if this is because of the overlapping movie clips, or because my buttons are messed up, or if my actionscript is messed up, or if the timeline has to be longer, or what. Currently the timeline is 55 frames, the same as each movie clip.
I put a movieclip_instance.stop(); command in the first frame of the main timeline, is there a better way to do this? Should I put the stop command in the movie clip itself?
Here is a section of my AS in the main timeline, this is my first time programming ever, in any language, and trying to learn from the internet is more difficult than I thought it would be.
redmovie.stop();
red_btn.addEventListener(MouseEvent.ROLL_OVER, playRed);
function playRed(event:MouseEvent):void
redmovie.play();I am not sure of what the problem is, so I don't know if this will help or not. One thing I might suggest is that you use gotoAndPlay(1) instead of play(). That way, if your movieclip is in the middle of playing it won't continue but will start from the beginning.
You could use one button to have the different movieclips play in sequence if you prefer that. You would just need to have some form of counter that keeps track of which is the next to play. Somethin like...
var mcCounter:uint = 0; // start at 0 since an array is being used to identify which movieclip to play
var mcs:Array = new Array(redmovie, bluemovie, brownmovie);
only_btn.addEventListener(MouseEvent.ROLL_OVER, playMC);
function playMC(event:MouseEvent):void
mcs[mcCounter].play(); // tell the current mc to play
mcCounter += 1; // increment for the next mc
if(mcCounter == 3) mcCounter = 0; // reset the counter if it exceeds the array -
I've a simple question (I hope)
I'm trying to create a simple character controlled via an
ActionScript 3.0 application.
Using Flash 9 Public Alpha it's possible to define a
movieclip with a series of motion of a character (like "walking",
"running", "talking"...) using a set of frame loop?
For example:
- frame 1, label "walking"; frame 1-10 graphics of walking
character loop; frame 10 gotoAndPlay("walking");
- frame 20, label "running"; frame 20-30 graphics of running
character loop; frame 20 gotoAndPlay("running");
- etc.
For now, what can I see is all movieclip frame in sequence in
the final application without gotoAndPlay() effects.
It's non possible to do?
Can I add some frame script at runtime using actionscript
3.0?
Thanks a lot
-gDealing with hieroglyphs is always problematic for fonts take a lot of memory. You can limit embedded fonts to some subsets though.
in general, it is a better approach if you load fonts at runtime. For that you will need to create a swf that has characters that you need and load this swf at runtime. This is a way of using fonts from external libraries. -
I have a problem. I export my movieclip to png sequence and after that I get blurry image. How to fix it?
Here screenshots
Original movieclip
After export as png sequence
My export settingsYes, I want to get sharp lines. Before export text I double pressed cmd + b and get shape. Then I convert to movieclip. I uncheck smooth, but this is partially solved my problem.
-
How to instantiate MovieClips with sequence names
Hi all,
I'm rewriting a game that came from AS2, and passing it to
AS3.
The problem is that I have several different MovieClips in
the Library, with a sequence name ("s_0", "s_1,...).
The question is... how can I use the addChild to instantiate
these movieclips, using these names, sequencially, using a FOR
loop?
I'm trying to get a way, that I don't have the remake all
movieclips, or else I'll be stuck on the desk for a week :P
ThanksI found the answer on other blog.
You have to dinamically make new MovieClips, with a name that
can be a dynamic String.
So the result is the following code.
Make sure you import the wright class to to this
import flash.utils.getDefinitionByName; -
Error/Crash while dragging movieclip image sequence to stage
While trying to drag a movie clip to the stage containing a jpg sequence of 360 images at 1024x768 I get an error (or sometimes it just crashes) saying "Could not open one or more scenes probably because of low memory." I am using a dual quad core mac pro with 48gb of ram, with no other programs open, so this seems unlikely. This is in Flash CS5 (11.0.2.489) on Mac OS 10.7.4. No other symbols or files are in the library and nothing else is on the stage. I've tried it with multiple different image sequences (same resolution, same count), and I always have the same problem. Any help would be appreciated.
Maybe adding rhe movieclip with code
in the libary (F11) add a name in AS Linkage (some like Sequence)
then type the code (F9)
var sequence:Sequence=new Sequence();
addChild(sequence); -
Is there a way to create a math.random that doesn't overlap movieclips?
Hi,
Actually I have two questions. I am creating a memory sequence game and I was wondering:
1. Is there a way to random position movieclips on the stage without having them overlap each other?
2. Is there a way to have flash draw a vector line from one clip to another in sequence and then have the user retrace what flash did? I have 6 movieclips on the stage, each with their own instance (ex. obj1_mc, obj2_mc, etc.). Is there a way to tell flash to always draw a line between movieclips in sequence even though the movieclips are randomly placed on the stage?
Thanks,
OJsure.
1. the easiest way to position objects without over-lapping, IF you can assume it will always be possible, is to use something like:
var mcA:Array=[your movieclips]
var index:uint=0;
positionF();
function positionF(){
// assuming top-left reg points of your movieclips
mcA[index].x=Math.random()*(stage.stageWidth-mcA[index].width);
mcA[index].y=Math.random()*(stage.stageHeight-mcA[index].height);
var hitBool:Boolean=false;
for(var i:int=0;i<index-1;i++){
if(mcA[index].hitTestObject(mcA[i])){
hitBool=true;
break;
if(hitBool){
positionF();
} else {
index++;
if(index<mcA.length){
positionF();
} else {
// positioning complete. do whatever
2. you can use the graphics class to draw dynamic lines. -
Stop and Play All Child MovieClips in Flash with Actionscript 3.0
I am stuck with the ActionScript here. I have a very complex animated flash movie for eLearning. These contain around 10 to 15 frames. In each frame I am having multiple movie clip symbols. The animation has been created using a blend of scripting and also normal flash animation.
Now I want to create pause and play functionality for the entire movie. I was able to create the pause function but when i try to play the movie it behaves very strange.
I was able to develop the pause functionality by refering to the below mentioned links:
http://www.unfocus.com/2009/12/07/stop-all-child-movieclips-in-flash-with-actionscript-3-0 /
http://www.curiousfind.com/blog/174
Any help in this regard is highly appreciated as i am approaching a deadline.
I am pasting the code below:
import flash.display.MovieClip;
import flash.display.DisplayObjectContainer;
import flash.utils.Timer;
import flash.events.TimerEvent;
import fl.transitions.*;
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
import flash.events.Event;
import flash.events.MouseEvent;
stop();
// function to stop all movieclips
function stopAll(content:DisplayObjectContainer):void
if (content is MovieClip)
(content as MovieClip).stop();
if (content.numChildren)
var child:DisplayObjectContainer;
for (var i:int, n:int = content.numChildren; i < n; ++i)
if (content.getChildAt(i) is DisplayObjectContainer)
child = content.getChildAt(i) as DisplayObjectContainer;
if (child.numChildren)
stopAll(child);
else if (child is MovieClip)
(child as MovieClip).stop();
// function to play all movieclips
function playAll(content:DisplayObjectContainer):void
if (content is MovieClip)
var movieClip:MovieClip = content as MovieClip;
if (movieClip.currentFrame < movieClip.totalFrames) // if the main timeline has reached the end, don't play it
movieClip.gotoAndPlay(currentFrame);
if (content.numChildren)
var child:DisplayObjectContainer;
var n:int = content.numChildren;
for (var i:int = 0; i < n; i++)
if (content.getChildAt(i) is DisplayObjectContainer)
child = content.getChildAt(i) as DisplayObjectContainer;
if (child.numChildren)
playAll(child);
else if (child is MovieClip)
var childMovieClip:MovieClip = child as MovieClip;
if (childMovieClip.currentFrame < childMovieClip.totalFrames)
//childMovieClip.play();
childMovieClip.play();
function resetMovieClip(movieClip:MovieClip):MovieClip
var sourceClass:Class = movieClip.constructor;
var resetMovieClip:MovieClip = new sourceClass();
return resetMovieClip;
pauseBtn.addEventListener(MouseEvent.CLICK, onClickStop_1);
function onClickStop_1(evt:MouseEvent):void
MovieClip(root).stopAll(this);
myTimer.stop();
playBtn.addEventListener(MouseEvent.CLICK, onClickPlay_1);
function onClickPlay_1(evt:MouseEvent):void
MovieClip(root).playAll(this);
myTimer.start();
Other code which helps in animating the movie and other functionalities are as pasted below:
stage.addEventListener(Event.RESIZE, mascot);
function mascot():void {
// Defining variables
var mc1:MovieClip = this.mascotAni;
var sw:Number = stage.stageWidth;
var sh:Number = stage.stageHeight;
// resizing movieclip
mc1.width = sw/3;
mc1.height = sh/3;
// positioning mc
mc1.x = (stage.stageWidth/2)-(mc1.width/2);
mc1.y = (stage.stageHeight/2)-(mc1.height/2);
// keeps the mc1 proportional
mc1.scaleX <= mc1.scaleY ? (mc1.scaleX = mc1.scaleY) : (mc1.scaleY = mc1.scaleX);
stage.removeEventListener(Event.RESIZE, mascot);
mascot();
this.mascotAni.y = 100;
function mascotReset():void
// Defining variables
var mc1:MovieClip = this.mascotAni;
stage.removeEventListener(Event.RESIZE, mascot);
mc1.width = 113.45;
mc1.height = 153.85;
mc1.x = (stage.stageWidth/2)-(mc1.width/2);
mc1.y = (stage.stageHeight/2)-(mc1.height/2);
// keeps the mc1 proportional
mc1.scaleX <= mc1.scaleY ? (mc1.scaleX = mc1.scaleY) : (mc1.scaleY = mc1.scaleX);
var interval:int;
var myTimer:Timer;
// function to pause timeline
function pauseClips(secs:int, myClip:MovieClip):void
interval = secs;
myTimer = new Timer(interval*1000,0);
myTimer.addEventListener(TimerEvent.TIMER, goNextFrm);
myTimer.start();
function goNextFrm(evt:TimerEvent):void
myTimer.reset();
myClip.nextFrame();
myTimer.removeEventListener(TimerEvent.TIMER, goNextFrm);
// function to pause timeline on a particular label
function pauseClipsLabel(secs:int, myClip:MovieClip, myLabel:String):void
interval = secs;
myTimer = new Timer(interval*1000,0);
myTimer.addEventListener(TimerEvent.TIMER, goNextFrm);
myTimer.start();
function goNextFrm(evt:TimerEvent):void
myClip.gotoAndStop(myLabel);
myTimer.removeEventListener(TimerEvent.TIMER, goNextFrm);
MovieClip(root).pauseClips(4.5, this);
// function to fade clips
function fadeClips(target_mc:MovieClip, next_mc:MovieClip, from:Number, to:Number):void
var fadeTW:Tween = new Tween(target_mc, "alpha", Strong.easeInOut, from, to, 0.5, true);
fadeTW.addEventListener(TweenEvent.MOTION_FINISH, fadeFinish);
function fadeFinish(evt:TweenEvent):void
next_mc.nextFrame();
fadeTW.removeEventListener(TweenEvent.MOTION_FINISH, fadeFinish);
// function to fade clips with speed
function fadeClipsSpeed(target_mc:MovieClip, next_mc:MovieClip, from:Number, to:Number, speed:int):void
var fadeTW:Tween = new Tween(target_mc, "alpha", Strong.easeInOut, from, to, speed, true);
fadeTW.addEventListener(TweenEvent.MOTION_FINISH, fadeFinish);
function fadeFinish(evt:TweenEvent):void
next_mc.nextFrame();
fadeTW.removeEventListener(TweenEvent.MOTION_FINISH, fadeFinish);
// function to show screen transitions
function screenFx(target_mc:MovieClip, next_mc:MovieClip):void
//var tweenTW:Tween = new Tween(target_mc,"alpha",Strong.easeInOut,0,1,1.2,true);
var tranFx:TransitionManager = new TransitionManager(target_mc);
tranFx.startTransition({type:Iris, direction:Transition.OUT, duration:1.2, easing:Strong.easeOut, startPoint:5, shape:Iris.CIRCLE});
tranFx.addEventListener("allTransitionsOutDone",doneTrans);
function doneTrans(evt:Event):void
next_mc.nextFrame();
tranFx.removeEventListener("allTransitionsOutDone",doneTrans);
// function to show screen transitions inverse
function screenFxInv(target_mc:MovieClip, next_mc:MovieClip):void
var tweenTW:Tween = new Tween(target_mc,"alpha",Strong.easeInOut,0,1,1.2,true);
var tranFx:TransitionManager = new TransitionManager(target_mc);
tranFx.startTransition({type:Iris, direction:Transition.IN, duration:2, easing:Strong.easeOut, startPoint:5, shape:Iris.SQUARE});
tranFx.addEventListener("allTransitionsInDone",doneTrans);
function doneTrans(evt:Event):void
next_mc.nextFrame();
tranFx.removeEventListener("allTransitionsInDone",doneTrans);
// function to zoom in
function zoomFx(target_mc:MovieClip):void
//var tweenTW:Tween = new Tween(target_mc,"alpha",Strong.easeInOut,0,1,1.2,true);
var tranFx:TransitionManager = new TransitionManager(target_mc);
tranFx.startTransition({type:Zoom, direction:Transition.IN, duration:3, easing:Strong.easeOut});
//tranFx.addEventListener("allTransitionsInDone",doneTrans);
/*function doneTrans(evt:Event):void
next_mc.nextFrame();
// Blinds Fx
function wipeFx(target_mc:MovieClip):void
var tranFx:TransitionManager = new TransitionManager(target_mc);
tranFx.startTransition({type:Wipe, direction:Transition.IN, duration:3, easing:Strong.easeOut, startPoint:9});
// Blinds Fx Center
function fadePixelFx(target_mc:MovieClip):void
var tranFx:TransitionManager = new TransitionManager(target_mc);
tranFx.startTransition({type:Fade, direction:Transition.IN, duration:1, easing:Strong.easeOut});
tranFx.startTransition({type:PixelDissolve, direction:Transition.IN, duration:1, easing:Strong.easeOut, xSections:100, ySections:100});This movie is an animated movie from the start to end. I mean to say that though it stops at certain keyframes in the timeline it stops for only a certain time and then moves on to the next animation sequence.
Its not an application where the user can interact.
On clicking the play button i want the movie to play normally as it was playing before. If the user has not clicked on the pause button it would anyhow play from start to finish.
Is there anyway where i could send in the fla file? -
Call function, pass value, access variable in movieclip class from main stage
i am new to flash as.
I got quite confused on some problems. as the function here
is quite different from c and asp.net.
I have a movieClip named MC, and it's enabled with action
script, with the class name MC_Rectangle
and a Stage.
I override the MC_Rectangle class file in a mc_rectangle.as
external file.
here is the code:
package{
import flash.display.*;
import flash.events.*;
public class MC_Rectangle extends MovieClip {
var sequence:int = new int();
function setSequence(data:int):void{
sequence = data;
function addSequence():void{
sequence ++;
I have new a object in the main stage var
mc_rect:MC_Rectangle = new MC_Rectangle()
question:
in main stage:
1. how can i access the variable "sequence" in "mc_rect"
2. how can i pass parametre from main stage to mc_rect via
function setSequence(data:int)?
3. how can i call the function in addSequence() in mc_rect.
in asp.net, i usually use mc_rect.sequenct,
mc_rect.setSequence(data), mc_rect.addSequence() to achieve my
goals......
btw, can function in mc_rect return out result to main stage?
thanks in advance.Your as-file must be named MC_Rectangle.as (same upper/lower
case as in the Class name)
Ad 1) You have to declare sequence as a public property
"public var sequence;" or - better - define a getter-function for
sequence.
Ad 2) mc_rect.setSequence(8); e. g. (you must write "public"
in the Class-declaration of setSequence)
Ad 3) mc_rect.addSequence(); e. g. (you must write "public"
in the Class-declaration of addSequence)
... and yes, your methods can return a value: Replace "void"
with the proper data type (int, String, ...) and place a "return
myNumber;" or the like in the method's body. -
Loading multiple movies in sequence
I'm trying to make multiple movies show through a main file
in sequence (slide0.swf, slide1.swf, slide2.swf etc etc).
I've been using some fla document that was sent to me to do
such a thing but somehow I can't get things to work exactly as
intended.
My main file/movie uses these pieces of actionscript to do
the loading of the sequential files/movies
(see attached code)
Now if I do not add anything to my other clips, the main file
just keeps looping the first one over and over rather than going up
through them all sequentialy. So I tried adding this in the last
frame of each of the movies/clips to be displayed
(Last Frame)
_root.addIDX();
The problem I now have is that although now the movies are
playing one after the other sequentialy I still get a small amount
of repeat (fraction of a second) of the movie that just played
before the newly loaded one displays.
Is there a way that I can make this transition work smoothly
rather than have a jerky moment of flashback before each new movie
in the sequence starts playing?
ThanksIt looks like you are loading 2 clips so that when one is
finished the next one will play without delay and then it loads the
next in the series beneath it.
The flash that I am seeing is from the one that is hidden.
Before it begins to play, the next movie is loaded and you see it,
then they play in the correct order.
Try placing the code you have in the onLoadComplete event
into the onLoadInit event. Like this:
listen.onLoadInit = function(mc:MovieClip) {
mc.play();
_root.myInterval=setInterval(doInterval,delay);
loadbtm.loadClip(list[(IDX+1)%numImages],_root.btm);
And comment out the following:
//listen.onLoadComplete = function(mc:MovieClip) {
// loadbtm.loadClip(list[(IDX+1)%numImages],_root.btm);
The onLoadComplete event gets called first and starts loading
your next slide before the onLoadInit event gets called. This small
delay maybe enough to be causing the flash you are seeing.
Tim -
How do I create a Sequence using Actionscript?
Suppose I've got 2 movie clips on the stage. box_mc and triangle_mc
I want to set up a way so that whenever I trigger the event, such as pressing a key (like
if(Key.isDown(Key.SPACE)){
//stuff that activates it
it does the following in order, spaced by 1 frame, or 1 second (or a specific number of frames)
[1] box_mc._rotation = -45;
[2]triangle_mc._rotation = 45;
[3]box_mc._rotation = 0;
[4]triangle_mc._rotation = 0;
if I push the Space key again, it would start from the top (1) and repeat the sequence. The sequence would otherwise stop at 4. Previously I've been using counters inside an onEnterFrame such as counter = counter +1; if counter > n, counter = n; etc. This seems tedious and I'm hoping there's a better way to do this. I do not understand watch and timer functions of actionscript (they never seem to work for whatever project I'm occupied with).
Thanks!it definitely worked this time. I edited it for gear appearances and it looks ok:
function startSequenceF(){
rotateF(box_mc,-45);
clearTimeout(rotate1I);
clearTimeout(rotate2I);
clearTimeout(rotate3I);
clearTimeout(rotate4I);
clearTimeout(rotate5I);
clearTimeout(rotate6I);
clearTimeout(rotate7I);
rotate1I=setTimeout(rotateF,200,box_mc.triangle_mc,30)
rotate2I=setTimeout(rotateF,400,box_mc,-90);
rotate3I=setTimeout(rotateF,600,box_mc.triangle_mc,60);
rotate4I=setTimeout(rotateF,800,box_mc,-135);
rotate5I=setTimeout(rotateF,1000,box_mc.triangle_mc,90);
rotate6I=setTimeout(rotateF,1200,box_mc,-180);
rotate7I=setTimeout(rotateF,1400,box_mc.triangle_mc,0);
function rotateF(mc:MovieClip,angle:Number){
mc._rotation = angle; // or animate this
// and to start everything going use:
onEnterFrame = function(){
if(Key.isDown(Key.SPACE)){
startSequenceF();
my next question would probably be "How can I make these changes more graceful/fluid", or would I have to make several minute changes of a few degrees each? -
Importing a Sequence of Images
Hi ,
I have get our client 200 tga picture (renders), i want to insert this picture one by one key frame how can i do automatically.
I am try to select & stage but picture is place one over another, please help me
Regards
Manojcreate a new movieclip and while that movieclip's timeline is open, click file/import/import to stage and select the first image. if they're named sequentially and you're using a flash pro cs version, flash will offer to import the entire sequence and distribute each on its own frame in the current timeline.
-
3D Rotation Slider for image sequence
I created a 3d model rotated it 360 degrees and exported it an image sequence. I would like to be able import the sequence in flash and rotate the image sequence 360 degrees by creating and dragging a slider.
What part of what you want to do are you having a problem with?
If you create a new movieclip symbol and try to import one of the images onto the stage while inside of it, then if the images are named as a sequence Flash should be able to detect this and ask if you want to import the whole sequence. If you select yes then it will place the sequence along the timeline of your movieclip.
For the the Slider, just bring one in from the components library and set it up such that its range and increments match the frames occupied by the images.
Maybe you are looking for
-
Can I recover only C Drive on Satellite A300 with recovery disk?
Hello there! I'm new in the new type of slipstreaming Windows. I was familiar with the old one with Norton ghost. It was easy for me, but I have a problem with the new one. I want to recover only C drive on my laptop with a different size than the fa
-
Monitor refresh rates and Open Firmware
Does anyone know if it's possible to change the default monitor refresh rate of an iMac in Open Firmware and how? Thanks.
-
IMovie 9 crashes everytime i preview video
hi, im facing a problem with my IMovie 9. it crashes whenever i preiview the video . here is the Problem Report for IMovie: Process: iMovie [213] Path: /Applications/iMovie.app/Contents/MacOS/iMovie Identifier: com.apple.iMovi
-
Can't find location on iPad after upgrade
Upgraded yesterday to iOS 8.1, and now my iPad "can't determine location" . Find my iPhone turned on, location services enabled. First tried to reset settings, then tried erasing all settings and data, then load backup. Finally did a restore via iTun
-
How communicate two SLD in different networks together?
Hi, we have installed a central SLD. Some SAP systems (ABAP and JAVA stacks) send their system data directly to a central SLD. But one java stack (NW 7.0) runs in a separate network and can not communicate directly with the central SLD. But there is