[MX] Video Clips Not Playing On Stage With Tween
Hi there
I used to be quite good with flash, but it's been a while since I used it and now I feel like a total newbie again. I'm trying to put a movie clip with fish swimming (I've animated their fins/bubbles etc) onto the stage and I've tried having a motion tween with the clip moving from the bottom left to the top right of the stage so it looks like their swimming across the scene, but the clip refuses to play when I test it. All I see is a still image of the fish moving across the stage... I know this is probably really simple and all, but I would really appreciate some help.
Thanks Liz
FlashKit > Flash Help > Flash Newbies
Posted on: 05-07-2007, 11:39 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Playing Two Video Clips Sequentially
OK - this is my first post to this forum. I've been working with Flash for a while. No problem with basic timeline images, text, and music. (See pvhistory.org splash page). I've also got no problem encoding and uploading video to play on the web. (see the onliine history show playback on the website).
Here's the problem. I want to tack short ads onto the front of the segments, but I don't want to edit the ads into the videos. I want to attached the ad clips after everything is encoded to an FLV. This way changing ads will be quick. For the life of me I can't figure out how to get two videos on the timeline playing sequentially. This has to be easy and I"m missing something obvious.
Any help from the more experience, or simply more astute, members of the group appreciated.
Ned Barber, Pascack Valley History Project
Playing Video Movie Clips In Same Window
Hello,
Does anyone know how you can set up a menu so that you have like three choices of videos to watch, with controllers by each one, then you can click on a video's respective controller and that would get the particular video playing in a window off to the side? You could then click on the other controllers and have those videos also play in the same window. I hate to use three separate windows. Is it possible to just use one window and have any of the videos load into it? How do you do this? I'm using flash professional 8. Also, I converted the videos into movie clips, and that seems to be ok for now.
Thanks!
Rob
Preloader Works Intially, But Internal Video Clips Not Playing. Grrrr
I've used the preloader from monkeyflash.com.
Now, it works initially on the opening screen/main menu. I have four buttons on the main menu that take you to other screens. When I click on the "Videos" button, it takes me to that area and when I attempt to play those particular videos, nothing happens.
They all worked before I inserted the preloader. I have tried to figure out what the issue is for two days. I even tried giving each video clip it's own preloader with no success. Any suggestions or answers would be greatly appreciated.
Playing Another Tween As The Other Tween Ends
Hi,
I am currently working on a web site and i cannot run a another tween animaton when i click on another button.
i have a main MC( with 4 buttons on it) on the stage and when i click on a button it animates 2 blocks that have been created at runtime and goes from right to left.
What i want is when i click on another menu button, the boolean changes and i must be able the rewind the animation and do another but it does not work.I must click twice, once it rewind and the 2nd one it shows the animation..
Please help as it is quite urgent.
jerome.chevreau@gmail.com
Please please
Thanks
XML Image & Video-playing Gallery Issue. Video Doesn't Hide When Online.
Hi guys,
I've created a gallery using kirupa's tutorial that loads in, through xml, both images and streaming video swfs.
here's the link (then click on 'Real Art', then on 'Roster' in the menu):
http://www.studiotonne.com/tira/
All links (xml and content links in the xml) are pointing to an online server, so it should work offline in the same way it does online.
So offline, it all works fine and browsing through the gallery in the Roster for each artist, selecting each number in the gallery closes the current image/video and displays the new one, as it should.
Online however, the issue is different. For instance, clicking on 'Build', then on number 5 in the gallery (which is a streaming video embedded in a swf pulled in via xml), it streams in the required video. However, upon trying to select a different picture in the gallery, or choosing to view the gallery of a different artist, the video doesn't want to disappear and allow other images to be seen, as it does when viewed offline.
I'm sure its quite a simple thing to make the streaming video swf that the xml loads in, to disappear. I just don't understand why it works properly offline, whereas online, the video issue occurs.
Could it be a netConnection or netStream issue?
Here is the code for the build gallery in the roster:
Code:
stop();
function loadXML(loaded) {
trace("XML loading...");
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
}
firstImage();
displayPages();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("clientupdates/build/xml/build.xml");
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
/*
if(blnPreview) {
previous_btn._visible = false;
next_btn._visible = false;
} else {
previous_btn._visible = true;
next_btn._visible = true;
}
*/
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
function firstImage() {
trace("firstImage");
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
// Only show the artwork data unless we're not in preview mode
//if(!blnPreview) {
desc_txt.text = description[0];
picture_num();
//}
}
}
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
trace("Pic num:" + current_pos);
}
function displayPages() {
for(var i=1;i <=12; i++) {
if(i <= total) {
this["PageMC" + i].pgNum.text = "a";
this["PageMC" + i]._visible = true;
} else {
this["PageMC" + i]._visible = false;
}
}
}
function setPage(pageNum) {
if(pageNum>=0 && pageNum <total) {
picture._alpha = 0;
picture.loadMovie(image[pageNum], 1);
desc_txt.text = description[pageNum];
picture_num();
}
}
var my_nc:NetConnection = new NetConnection();
my_nc.connect(null);
var my_ns:NetStream = new NetStream(my_nc);
Thanks for reading guys. I hope you can help.
Jerome
XML Image & Video-playing Gallery Issue. Video Doesn't Hide When Online.
Hi guys,
I've created a gallery using kirupa's tutorial that loads in, through xml, both images and streaming video swfs.
here's the link (then click on 'Real Art', then on 'Roster' in the menu):
http://www.studiotonne.com/tira/
All links (xml and content links in the xml) are pointing to an online server, so it should work offline in the same way it does online.
So offline, it all works fine and browsing through the gallery in the Roster for each artist, selecting each number in the gallery closes the current image/video and displays the new one, as it should.
Online however, the issue is different. For instance, clicking on 'Build', then on number 5 in the gallery (which is a streaming video embedded in a swf pulled in via xml), it streams in the required video. However, upon trying to select a different picture in the gallery, or choosing to view the gallery of a different artist, the video doesn't want to disappear and allow other images to be seen, as it does when viewed offline.
I'm sure its quite a simple thing to make the streaming video swf that the xml loads in, to disappear. I just don't understand why it works properly offline, whereas online, the video issue occurs.
Could it be a netConnection or netStream issue?
Here is the code for the build gallery in the roster:
Code:
stop();
function loadXML(loaded) {
trace("XML loading...");
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
}
firstImage();
displayPages();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("clientupdates/build/xml/build.xml");
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
/*
if(blnPreview) {
previous_btn._visible = false;
next_btn._visible = false;
} else {
previous_btn._visible = true;
next_btn._visible = true;
}
*/
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
function firstImage() {
trace("firstImage");
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
// Only show the artwork data unless we're not in preview mode
//if(!blnPreview) {
desc_txt.text = description[0];
picture_num();
//}
}
}
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
trace("Pic num:" + current_pos);
}
function displayPages() {
for(var i=1;i <=12; i++) {
if(i <= total) {
this["PageMC" + i].pgNum.text = "a";
this["PageMC" + i]._visible = true;
} else {
this["PageMC" + i]._visible = false;
}
}
}
function setPage(pageNum) {
if(pageNum>=0 && pageNum <total) {
picture._alpha = 0;
picture.loadMovie(image[pageNum], 1);
desc_txt.text = description[pageNum];
picture_num();
}
}
var my_nc:NetConnection = new NetConnection();
my_nc.connect(null);
var my_ns:NetStream = new NetStream(my_nc);
Thanks for reading guys. I hope you can help.
Jerome
No Video (only Audio) When Playing Basic Video Player.
Hey everyone.
I used to be fairly good at flash, and then i had a break. Now i'm struggling with this really simple problem, that no one else seems to be having...
Here is my actionscript for playing the video
Code:
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream (nc);
theVideo.AttachVideo(ns);
ns.play("antena1wheel_1.flv");
When i preview it, it comes up with the white stage, and you can hear the sound... but no sign of any video.
Thanks, and appologies for my stupidity...
Tim =)
Flash Video: Playing A Huge Video From Cd
Hi Guys,
I'm creating a presentation cd with flash and flash video, the FLV file size is 200mb and plays ok when the flash movie opens.
However if i try scrub to the end of the video a couple seconds into the movie the movie pauses for about 2 seconds before the buffering bar shows up, then it buffers what it requires and plays.
The problem is the 2 seconds, it seems messy or jerky because the buffering bar takes so long to come up.
I think this is because the video is loading into the computers memory, as I've read up, yet I was wondering if there is a way to preload the entire movie into the machines memory before playing, or making the buffering bar come up more quickly.
it is playing from a cd so:
FLVPlayback.bytesLoaded - does not help nor does
FLVPlayback.bytesTotal.
Id appreciate any insite into this issue
Thank you
Roark
Tween From Stage Right.
Hello all...
I HAVE EDITED THIS POST NOW....OLD...
I'm trying to create a motion tween from stage right of my movie onto the stage. I'm using full browser flash so I'm trying to create the tween effectively from Stage.width /-1; to Stage.width / 1 so the MC continues to hug the right side of the stage when the browswer is resized. I have been using the fuse kit - but just can't get the MC to slide in. Here is the stripped down code - in this example the MC just appears. I have managed to get it to appear the slide off stage right - but that's all! Really I'm on here to ask if it is possible to create a tween between these two properties Stage.width /-1; to Stage.width / 1 or I should look elsewhere?
NEW....
I can manage to get the MC to slide in but I can't get it too slide in from off the stage - it always appears on the stage in my browser - the problem here is obviously that I'm trying to get it too appear from stage right at keep it at the edge of the browser - it would be easier on the opposite side!
THE CODE:
Attach Code
Stage.scaleMode = "noScale";
Stage.align = "TL";
var stageListener: Object = new Object();
stageListener.onResize = stagePos;
Stage.addListener(stageListener);
function stagePos():Void {
stage_mc._x = Stage.width /1;
}
import com.mosesSupposes.fuse.*;
ZigoEngine.simpleSetup( Shortcuts, PennerEasing );
var f:Fuse = Fuse.open();
f.label = "stage";
f.autoClear = true; // self-delete when done.
Fuse.openGroup();
stage_mc.tween("_x", "-160", 2, "easeOutBounce");
Fuse.closeGroup();
bgHolder_mc.onPress = function () {
var f:Fuse = Fuse.getInstance("stage");
if (f != null) {
trace("Starting:");
f.traceItems();
f.start();
}
else {
trace("Sorry, this Fuse has been deleted!");
}
}
Edited: 04/05/2008 at 01:43:02 PM by phonemymum
Playing Motion Tween
I have a movie that essentially has many layers 1 frame in length, made up of static images.
I recently made a simple motion tween where words move from right to left. It works during when play is used. But when i test movie or publish movie nothing happens. What am I missing?
Tween Class Playing Up
trying to make a score jump out at a user, using the tween class. the function is still in test phase.
while the function to create the text box works, and the score (for etst puposes, a a getTimer() result) works, when i apply the animation function, nothing happens
attached the the troublesome file
Lacos Tween Are Playing With Me :(
I'm tryin to set a dynamicly pEnd for a holder_mc to slide down according to the loaded contents new hight.
I can ALLMOST get it to do what I want but my brain is imploding when i see where it wanna slide the holder to with different size content. I want it to slide down so the the top of the new content is aligned with the red line.
have a LOOK
I have the slide_mc with a reg point in upper left but it contain the holder_mc that have reg point in lower left(as well with the swf's loaded in)
heres the code :
ActionScript Code:
#include "lmc_tween.as"
slide = function(file){
function onEnd(){
this.slider_mc.holder_mc.loadMovie(file);
this.slider_mc.holder_mc.onEnterFrame = loaded();
}
slider_mc.tween("_y",102,3,"easeOutElastic",0,onEnd);
loaded = function(){
//var slidelength = this.slider_mc._height;
var lod = this.slider_mc.holder_mc.getBytesLoaded();
var tot = this.slider_mc.holder_mc.getBytesTotal();
if(lod && tot && lod == tot){
slider_mc.tween("_y",this.slider_mc._height,3,"easeOutElastic");
}
}
};
button01_btn.onRelease = function(){
slide("01.swf");
}
button02_btn.onRelease = function(){
slide("02.swf");
}
Playing From The Stage
I am loading an external file with Loader which has a stop in the first frame. How do I give from the stage a play on it?
Playing A Motion Tween In Reverse.
http://www.flashkit.com/tutorials/In...98/index.shtml
tried using this tutorial and applying it to my movie but I couldnt figure it out. See what I have is a button...when it's clicked it plays a movie..when i click it again I would like for the movie to play backwards. Is there any way to do this?
thanks for the help...i hope my explanation is understandable.
Pausing And Playing A Motion Tween
I am trying to figure out how to make some buttons that can control a motion tween. I just want two buttons, one that pauses and one that makes it play agian from were it got paused. thanks for any help
Michael
Playing A Rollover Tween In Full
Hey all,
As you all know, the standard button rollover interrupts the animation when you move your mouse off.
What I'd like is for the animation to continue playing through once it has been rolled over.
I know about the reverse timeline trick, which is cool, but not really what I'm after.
Is there anyone who knows how this can be done? It's doesn't have to be through a "button" if that's not the right way.
Thanks
Playing A Motion Tween Backwards
This question seems to get raised quite a bit, but I havnt seen one that seems to help my situation. I have a flash document which does not contain any outside clips. It has a menu when you click on a button, the text for that button motion tweens, then shape tweens to bring it into the title area. Now what I would like is for the shape and motion tween to play backwards when the user clicks on another menu option. I see a lot of posts using variables like rewind etc and using the function prevFrame(). When I set the variable to rewind and tell it to go to the prevFrame() and have each frame with the same script detecting forwards or backwards depending on the variable, my file seems to just jump to the beginning and not play the animation in reverse.
Is there a way to get it to play each frame backwards and not just jump like this? Id prefer a way that doesnt require me to redo everything in their own MC and I need the scripting on a buttons on (release) as the user will only click once not have it on rollover.
Quite a ask I know, but any help would be much appreciated.
Stage Onresize Tween
attempting to reposition contents of swf on resize of browser window with tween class
Stage.align = "TL";
Stage.scaleMode = "noScale";
stageListener = new Object();
stageListener.onResize = function() {
moveIt();
};
Stage.addListener(stageListener);
moveIt = function () {
dash.onEnterFrame = function() {
this._x += ((Stage.width/2)-this._x)/5;
this._y += ((Stage.height/2)-this._y)/5;
};
};
Tween To Content Outside Of Stage
This is more a theoretical question about I project I want to do than a technical question.
Inspiration/similar effect: http://www.jonathanyuen.com/main.html
What I have:
1. A very large image that is deliberately going off the stage (width: 2000px~, height 1000)
2. Empty movieclip outside of the stage that content will be loaded into
What I want to do:
1. When a button is clicked on the main stage, it will fire a tween that will move the
scope of the stage over the image and to the empty movieclip.
2. Effect: it will (hopefully) be like the stage is gliding over the large image until it stops at the empty movieclip's coordinates.
What I've already done:
1. I've downloaded Tweenlite after researching what I want to do
2. I've looked at this example code: Tweenlite.to(mc, 1, {x:1500, y: 1000});
I'm wondering if I'm on the right track and if the effect I want will be produced using
Tweenlite.
Any ideas and/or suggestions would be greatly appreciated.
Mc_tween Extension - Playing Tween In Reverse
Last edited by Codemonkey : 2006-10-24 at 15:27.
Hi, I'm using the mc_tween class extension from here:
http://hosted.zeh.com.br/mctween/index.html
I have it pretty much figured out but I still need to learn one important thing.
How can I get a tween to play in reverse - say, when a button is clicked or an event triggered? To make it easier to understand lets just say when a button is clicked. So, on my main timeline I have a script that calls the tween:
ActionScript Code:
#include "mc_tween2.as"
test.tween("_alpha",0,5);
I have a pause, back and forward button on the stage with scripts attached to each button:
ActionScript Code:
//example of my pause button
onClipEvent(load){
this.onRelease = function() {
_root.test.pauseTween();
}
}
Pause and resume buttons work perfectly. But I am stumped as to how I can get the tween to play backwards (reverse).
Any help that can be offered is much appreciated. cheers.
Color Tween On A Button Stage
do i have to convert the object on each stage of the button to a graphic or button?
how do i have one stage have a color tween?
Tween Stage.onResize Objects
I understand how to change a movieclip's coordinates based on the Stage size via stage.onResize, but I've noticed a few sites out there that tween a movieclip after the user releases the corner of the browser:
http://www.gskinner.com/
anyone know how he added that nice little touch?
standard stage.onResize functionality acts more like this:
http://www.tutorio.com/media/flash/liquid-demo.html
2nd Post...tween To Center Stage
I tried posting this a few days ago and didnt get a solution Im hoping someone can be of assistance.
I am trying to Have a movie clip tween to center when the browser window is resized ...originally I was using the mx transition class but under advisement I am now tring to do it using MC Tween:
#include "mc_tween2.as"
// Create a function for the event you want to listen for
stageListener = new Object();
stageListener.onResize = function ()
{
// Get the width and height of the stage
// & multiply by half
var stageXCenter = Stage.width * .5;
var stageYCenter = Stage.height * .5;
// Offset the center point with half of
// the clip width and height
// (you can also use the -= operator and simply this)
stageXCenter = stageXCenter - (content_mc._width * .5);
stageYCenter = stageYCenter - (content_mc._height * .5);
// place the clip with the offset
content_mc.slideTo(stageXCenter, stageYCenter, 1, "easeOutExpo");
}
Stage.addListener(stageListener);
it doesn't work...any ideas?
Any help would be appreciated!
Thanks
Tween Offscreen With Resizable Stage
I'm building a fullscreen flash website. I have objects moving from offscreen to the center of the stage and from the center to offscreen. I use a simple onResize listener to keep everything centered when the user resizes the stage. I'm using the MC Tween engine for all my tweens and they are all coded relative to the size of the stage.
E.g. aMovieClip.tween( "_y", Stage.height / 2, ... );
Everything works great EXCEPT if the user resizes the stage while a tween is in motion. How do I update the tweens end value to the appropriate location?
Tween An MC From The Bottom To Stage.height.
Hi people,
So, what am i trying to do here. I'm trying to position an MC to the bottom ( that's the simple part ) of the stage that has an initial height and width of let us say 10px height and 30px width. Ok, and now i want to scale ( stretch ) and tween the MC at the same time until it gets to Stage.height. I'm not really sure about how to do this one, i tried using some conditions, some whiles but it seems that flash kinda crashes so that's not cool.
Ahh, and well, i want the whole MC to keep on resizing ( stretching and tweening again ) on stage resize... I guess i can manage with that one, the only thing i need some help with is the tween and scale. I have no idea how to tween and scale the MC at the same time ( by tweening i mean just like like a motion tween but the only problem here is that the height would be dynamic ).
Any suggestions or whatever are appreciated.
Kind regards,
Biro Barna
Randomly Playing 10 Movieclips That Are On Stage
I'm trying to play 10 movieclips randomly from the stage. I have all the movieclips on the stage on frames 2. On frame 1 i have the following code:
var myNumber = getRandomNumber (2, 0);
_root["mov_" + myNumber].gotoAndPlay (2);
// return a random number
function getRandomNumber (maxnum, minnum)
{
return Math.floor (Math.random () * maxnum) + minnum;
}
// play a random movieclip
function playMC ()
{
myNumber = getRandomNumber (2, 0);
_root["mov_" + myNumber].gotoAndPlay (2);
}
// begin our random movieclips
playMC();
For some reason it won't go and play frame 2 which is where the movieclips are. I have all of my movieclips named mov_0, mov_1, mov_2 etc....
THanks!
Movieclip To Carry On Playing Even When Not On Stage
Hi,
I have a movieclip called MC1 and within that 2 frames each containing movieclips called MC2 and MC3. The user can change between the two movieclips and MC3 has a animation within it. Once MC3 is activated, its animation plays but when the user changes to MC2 and then to MC3, the animation is back at the beginning, I want it to keep going even when the user changes to MC2 so when he switches back, the animation is still carrying on.
So basically, I need to know if there is way to have the movieclip playing even if it is not on stage.
Any help is appreciated!
Abs
AS3 - Adding Playing Cards To Stage W/ AS3
Hello All,
I have uploaded 2 AS3 classes and the .fla file I am working with for this question:
The basic point of this .fla file is to load 3 "cards" at runtime onto the stage that when clicked by a mouse will flip over and display an image located in the library of the "Memory.fla" file (attached). What I cannot figure out is why the "cards" won’t appear on the stage when I preview the swf file. I have imported their class in the new class I have written, added the child as well as made sure I have exported the movieclip for actionscript. I have gone over this many times and am just banging my head at this point.
This shouldn’t be too difficult to figure out as I am a relative newbie to AS3 and am probably overlooking the obvious. Thanks for any and all help....!
pb
p.s. all i am trying to do here is add the "cards" (movieclip) to the stage...thanks!
Attached Files
Movie Clip Tween Invisible On Stage...
I have 6 similar movie clips on stage with an action to play them on press. The Movie Clips contain a Symbol with a motion tween over a path, and a mask motion tween. When the Movie Clip is clicked it starts to play but the symbol tweening does not show up, while the mask tween works fine. Every symbol is in its own layer and the tweening seems fine in the .fla preview. I'm attaching the file, the smallest of the symbols on the stage is the one scripted. Thanks in advance for any help.
<mgl>
Movie Clip Tween Invisible On Stage...
I have 6 similar movie clips on stage with an action to play them on press. The Movie Clips contain a Symbol with a motion tween over a path, and a mask motion tween. When the Movie Clip is clicked it starts to play but the symbol tweening does not show up, while the mask tween works fine. Every symbol is in its own layer and the tweening seems fine in the .fla preview. I'm attaching the file, the smallest of the symbols on the stage is the one scripted. Thanks in advance for any help.
<mgl>
[F8] Resize Shape Tween According To Stage Size?
Hi
I was wondering if there is a way to resize a simple shape tween according to the stage size. for example is it possible to resize a rectangle ( which grows to a biger rectangle using shape tween) to match stage width and height minus 100 (this should occur after shape tween is finished and when stage resizes). I don't know if this makes any sense but let me know anyway.
Thanks
Playing The Clips
hello
help please can some one please tell me if i could do thisi am trying to play different movie clips in flash by dragging each one of them to the same screen and viewing them by pressing play and stop rew.ff etc. on top of each other thanks a lot i will really appreciated it here is my file just in case some one takes the time to look at it thanx again
SWF File Playing Elements Outside Of Stage Area
I have a movie thats 700x468, When put in an html doc and loaded you can see pictures scrolling in outside of the stage area. What settings do I need to modify or change?
Any help would be appreciated.
[CS3]Issue With Resizing Stage While Loaded MC Is Playing
Hello,
I am trying to get a .swf file to load into a movie clip and allow the user to change the size and shape of their viewer window while the .swf file scales to fit exactly inside the movie clip as it changes. I have it working so long as the change to the window or toggle to full screen does not occur during animation.
There are three files zipped in the following location. Problem.swf loads test.swf and the source .fla file as well.
http://www.70lafayette.com/problem.zip
Thank you.
Locking A Mc In Place Where It Started Playing On The Stage?
I have some code that replaces the cursor and then swaps movie clips on mouse down/mouse up.
I need the position of the movie clip (that plays on mouse down) to stay in place once it starts, then resume following the mouse when it finishes playing. I can't find an example of this. Is there a simple line I could add to this function that would lock the mc's coordinates in place until the movie finishes playing?
function mcSwapped(event:MouseEvent) {
scan.gotoAndPlay(scan);
scan.visible = true;
}
Thanks.
Playing Multiple MovieClips On The Main Stage
Initially when I added them each to their own frame, they all started playing at once. I need mc_Two to start when mc_One is over, mc_Three to start when mc_Two is over, and so forth.
Thanks for your help!
Tween In Movie Clip Invisible On Stage... (now With Attachment)
I have 6 similar movie clips on stage with an action to play them on press. The Movie Clips contain a Symbol with a motion tween over a path, and a mask motion tween. When the Movie Clip is clicked it starts to play but the symbol tweening does not show up, while the mask tween works fine. Every symbol is in its own layer and the tweening seems fine in the .fla preview. I'm attaching the file, the smallest of the symbols on the stage is the one scripted. Thanks in advance for any help.
<mgl>
Tween Problem With Movie Clip On The Root Stage
The basic gist: I have an swf loaded into a movieclip on the stage. It plays fine, I can reference it without any problems. When I motion tween the holder clip on the root stage, however, it seems to unload the loaded movie... I checked it with a variable that I loaded within the loaded movie; as soon as the thing is tweened, that variable goes null. Don't want .swf to disappear.
I can’t find any untoward place with an unloadMovie() action, there’s nothing obvious that would be unloading the movie... Am I doing something stupid? Do I not know something I should? I’m authoring in Flash 8, exporting as Flash 6, for the record.
Thanks for any help.
Playing 2 Movie Clips Before Going To Swf
I have 4 swf's and I want 2 transitional movie clips (8 altogether) between each swf. How do I script my button so that it will play 2 movie clips before going to another swf? Thanks!
My Movie Clips Are Not Playing
Hi everyone!
Im trying to get my actionscript to work here. I have all my instances named properly (and not using the names from the library) and such but still they dont play when needed.
//Instance MC Functions:
mov1 = plays on [rollOver]
mc1 = plays the menu on [onRelease]
cube1 = plays the button mc with an invisible button behind it.
//Here is the script:
on (rollOver, dragOver) {
_root.mov1.play();
_root.cube1._alpha = 100;
}
on (rollOut, dragOut) {
_root.cube1._alpha = 30;
}
on (release) {
_root.mc1.play();
}
//End of Script
Playing Movie Clips
please help me out, im new in flash (mx)... i have created 3 movie clips and i want to play them in succession from one clip to another. i tried the goto function but it seems that it only loops the first clip, it does not jump to the next one. please give me the proper way of doing it. thanks in advance.
Playing Movie Clips On Top Of Each Other
Hi,
I am very new to this forum although I have been using Flash for a couple of years now.
I am doing a little presentation here at work. It is very simple. All I have are three square cubes hanging in a row on the center of a white canvas. Each cube is a movie clip that falls in to the canvas and stops until you click on it. The idea is that each cube represents a section of the presentation and that when you click on any of these cubes it should expand to cover the whole canvas. Then, when that particular section is finished, they return to their original shape and size.
The problem is that I want each cube to overlap the other two when it expands and I dont know how to do it. Right now if I click on the cube to the left it will expand behind the other two. If I click on the one in middle, it will cover the left one but not the one to the right. And likewise the one to the right will cover the other two cubes.
Each cube is a movie clip. I have them all placed in the same keyframe and they overlap each other in the order that I placed them within the frame.
What can I do to make each movie clip play on top of the other two ?
thanks
Movie Clips Not Playing
I created a movie clip, and although I can play it in the Library, when I put it on the stage, it doesn't play. Is there something I need to turn on, or what?
Playing Movie Clips
I was curious what the correct method to play 6 movie clips in a row was.
I am basically displaying furniture by group in a slide show.
Armoires -> Beds - > Etc.
Each section has about 9 layers, so I thought I could save each section as a movie clip and then add all the movie clips to a final flash document.
I tried doing 1 movie clip per scene, but was having problems with that. Obviously user error.
Would it be better to just make each scene a furniture section?
I have nine layers a scene, but it works.
I am just trying to make sure that I am following the acceptable methods among flash users when building my files.
Any Ideas?
Thank You
[F8] Playing Movie Clips
hi..can somebody help me please..how can i make my movie clips plays one after another?
if i put my script like this on each movieclip:
onClipEVent(enterframe)
{
play();
}
it will play all the movieclips simultanously..please help me..i'm so desperate..
Playing Movie Clips
Hey guys,
I can make my movie play when I want it to like so:
Code:
if (_root.char == 1) {
_root["newman"].play();
}
But how can I make it play from a specified frame of the movie? The first 5 frames are being played as an attack animation. Then I have made the next 5 frames into a different animation so I want to be able to start is playing from frame 5 onwards. Im sure its very simple I just dont know the syntax
Any help appreciated.
Playing 2 Movie Clips Together
Hi all,
Does anyone know a way to to make one movie clip play with another in AS3?
Here is my AS2 code: (I know how to fix the on release stuff. What I need is how to fix the "if" and "with" stuff and "clipframe").
on (release, keyboardPress "<Space>") {
if (clipframe == 1) {
with (coulombs_law) {
play();
}
} else {
nextFrame();
}
}
on (keyboardPress "<Right>") {
if (clipframe == 1) {
with (coulombs_law) {
play();
}
} else {
nextFrame();
}
}
Thanks so much for your help.
Aryeh
Movie Clips Not All Playing
I have two empty movie clips, each containing to movie clips. So really I have four movie clips that need to be played two at a time. I have it all figured out except that it plays "ICE_txt_mc" twice instead of playing "ICE_txt_mc" and then "COM_txt2_mc". Any ideas? Thanks.
Code
Code:
on (press) {
gotoAndPlay("aila1");
this.createEmptyMovieClip("original_mc", depth++);
mcA = ["IceAd_next_mc", "AILA_fade_mc"];
mc1A = ["ICE_txt_mc", "COM_txt2_mc"];
index = 0;
index1 = 0;
xx = 448;
yy = 110;
xx1 = 217.5;
yy1 = 367.5;
mc = this.attachMovie(mcA[index], "mc", 0);
mc._x = xx;
mc._y = yy;
mc1 = this.attachMovie(mc1A[index], "mc1", 1);
mc1._x = xx1;
mc1._y = yy1;
trace(mc);
this.onEnterFrame = function() {
if (mc1._currentframe == mc1._totalframes) {
index1++;
if (index1<mc1A.length) {
attachMovie(mc1A[index],"mc1", 1);
mc1._x = this.xx1;
mc1._y = this.yy1;
}
}
if (mc._currentframe == mc._totalframes) {
index++;
if (index<mcA.length) {
attachMovie(mcA[index], "mc", 0);
mc._x = this.xx;
mc._y = this.yy;
}
}
};
}
Playing 2 Movie Clips One After The Other...
Hi,
New to action script...Need some help to find the easiest way to script the playing of 2 or 3 files one after the other...
My script is below...only a few lines so far but stuck...
Ads._visible = false;
WoW._visible = false;
Bground.onEnterFrame = function() {
Ads._visible = true;
Ads.play (2);
}
This is getting the two movies to be hidden on startup as I have a background playing and it gets the first clip then playing....
I want to stop it playing at end of this clip then make the other clip visible and play it then stop that one and play another...and so on....I then want it to start over again.
Quick help appreciated....Time looming for completion.
Cheers
Mike
|