ActionScript 2.0 :: Controlling MovieClips - Separate Graphic With Tween

Oct 30, 2010

I'm having some trouble with the attached file, I've tried lots of things but just can't seem to control the movie clip. On click on 'Detailing' from the landing page a new slide *slides onto the stage 'content3'. Within this I have added a separate graphic with a tween 'gr_detailcopytest'. I want it to start only when it lands within the main stage's masked area. I also want the tween to stop too after its played out. I have tried adding a stop action at the end of the tween but this stops the tween altogether - Furthermore, when I click on another menu item and go back to 'Detailing' I want the tween to start again.

View 6 Replies


Similar Posts:


ActionScript 2.0 :: Incorporating The Separate Graphic Stages Of The Button Control

Dec 20, 2009

how can i make a button respond to mouse release and/or Enter key release, depending on user input.. when I press Enter, I would like to have the button(s) behave in the same way as if I was clicking it with the mouse, possibly incorporating the separate graphic stages of the button (appearance of button down when clicked with mouse = appearance of button while Enter key is down, etc.) ... and am also curious as to how you can tab between buttons then just press enter to deploy it... i know how to make a button react to button.onRelease and somewhat to the Enter key... separately.. but not as a combined package

View 2 Replies

ActionScript 3.0 :: Controlling Sound From A Separate Class

Apr 7, 2009

Is it possible to start and stop a sound file from a separate class? In the first class, "House", I have called the MP3 using the following:

[Code]....

View 1 Replies

ActionScript 3.0 :: Controlling Sound From Separate Class?

Apr 7, 2009

Is it possible to start and stop a sound file from a separate class?In the first class, "House", I have called the MP3 using the following:

Code:
public var mySoundReq:URLRequest = new URLRequest("tune.mp3");
public var mySound:Sound = new Sound();

[code]......

View 1 Replies

ActionScript 3.0 :: Controlling Program Flow Through Separate Classes?

Oct 31, 2009

I'm laying out my code differently for my latest project. I am making a game, and I am keeping the Flash API stuff in a seperate class from the game logic.It's an aproach I've never tried before, and it's made me realize just how little I understand good OOP design.

what I'm trying to acomplish is this:
the Game class contains the step by step program flow of the game. it makes calls to a GameUtils class and DrawEngine class, these other classes have the Flash API stuff in themSo what is the best way to get the game class to control the other 2?

currently I have my program flow like this:

1. display splash image
2. add 'play' button
3. recieve click from button -->

[code]....

a more specific issue comes up at step 3: ..how do I have the game class progress without using a listener?I'm thinking of creating a method of the Game class that simply increments a step counter of a switch/case statement and keeping each step of my program flow in each case.

View 4 Replies

ActionScript 2.0 :: Controlling And Preloading Separate SWFs On A Website?

Jul 14, 2005

My Website opens, its written in HTML... There is a "Navigation" FLash at the top of the page which opens up HTML documents into the "Main Frame" below.Ok now... When the Website first loads up, In the Main frame of the page I want a flash swf to play as an intro to the website (Its a band website). Once the (intro) Swf ends I want it to tell the Navigation Flash Menu Swf to go ahead and show the buttons so people can navigate.Thats my first problem, or task to solve.2nd... If it is possible to control Swf's from an external one it must be possible to preload them aswell right? So what I want to do, is the site to load up... and all the preloading done from the Navigation Swf to account for both Swfs (Intro and Navigation)

View 2 Replies

ActionScript 2.0 :: Trigger The Tween When The Mouse Is Over The Graphic?

Mar 15, 2002

I have a graphic (220px * 40px) in frame 1 tweened to frame 10.In frame 1 I have the following script:

**********
if (_xmouse>0 && _xmouse<220 && _ymouse>0 && _ymouse<40) {
play ();
} else {
stop ();
}
**********

trigger the tween when the mouse is over the graphic but nothing happens?

View 6 Replies

Flash 10 :: Tween With A Vector Graphic Expanding As It Moves Down But It Cant Handle?

Jun 30, 2010

So I just got CS4 and the all Im trying to do is a tween with a vector graphic expanding as it moves down but it cant handle it, it plays out all laggy and its the same when its published. Can any of you guys help?

Just as a note CS3 does the same job just fine I dont know whats wrong with it I have played around with the publish settings and my frame rate is set to 25fps.

To test it I did the same thing with just a vector square on a new file and it reacts the same way!

Theres no actionscript going on just simple stuff that should work but fine but doesnt

View 2 Replies

ActionScript 3.0 :: Controlling MovieClips Using Other MovieClips

Nov 20, 2009

Using Flash CS4 - AS 3.0

how to control a movie clip using a separate movie clip.

on scene 1 (2 frames long), i have 2 movie clips.

-bFind (24 frames long)

-textEffects (14 frames long)

i want to jump to frame 7 of the textEffect movieClip when i hover over bFind

i have my AS code in the first frame of the movieClip called "Bfind"

Code:
stop();
addEventListener(
MouseEvent.MOUSE_OVER,

[Code].....

View 5 Replies

MX04 With Movieclips Controlling Other Movieclips

May 5, 2010

I'm using flash MX 2004 Professional. What im trying to is the following: I have 9 movie clips, each has a "closed" and "open" state. Basically, when I click no.1 I want it to animate open, and then, when I click no.2, it must first check if any of the other clips are in their "open" state and if so, close them. I've worked with the following, but it doesnt seem to be working:

[Code]...

View 4 Replies

Two Separate Movieclips Influence One Another?

Jul 31, 2010

i have two seperate movie clips on two seperate layers on the front page of my template. (loaded dynamically) the layers are on top of one another.

the two movie clips work fine one their own on the template, but when i put them both on the template and I press their respective buttons the TOP movieclip's buttons control the BOTTOM movie clips actions. it's crazy. i've tried to move them around but then it's just the reversed - the bottom buttons control the top movieclip.

View 1 Replies

ActionScript 2.0 :: Graphic Preloader - Attaching MovieClips To Thumbnails?

Mar 10, 2008

I'm making a gallery using MovieClipLoader&loadClip. I follwed a tutorial and everything works fine, although the preloader is just plain text. I want a graphic preloader instead, so I imported in the library a gif, turned into a movieClip, and linked it for actionscript, but I can't find a way to attach it to the thumbnails.

This is my thumbnails function:
Code:
function callThumbs() {
_root.createEmptyMovieClip("container_mc",_root.getNextHighestDepth());
container_mc._x = _root.gallery_x;
container_mc._y = _root.gallery_y;
var clipLoader = new MovieClipLoader();
[Code] .....

I've tried creating an empty movieClip and using attachMovie inside onLoadStart & Progress, but nothing shows up. Here's a link so you can see exactly how the actual preloader is [URL]. So basically instead of the percentages as text for each thumbnail I would like to place in a MovieClip with my own loading animation.

View 5 Replies

Loading Several MovieClips Into Separate Variables?

Sep 22, 2010

I have several Movie Clips in the Library which I need to be able to load and bring up on the screen randomly.The code below shows how I can load one of these, but to get a proper control ideally I would like to load them all in to an array or numbered variables so that they can be called from a simple piece of code and actioned one at a time.

My movieclips can all be called something simple like mc1, mc2, mc3, mc4 etc to make things easier.These need to be referenced in to an array mcContainer[.....] or as mcContainer1, mcContainer2........ so that they can be called easily.I just need to know the simplest way to do this and how i reference them, I have tried several ways like ["mc"+i] etc and nothing seems to work.

Code:

var mc:mcLogo=new mcLogo();
addChild(mc);

View 4 Replies

Professional :: Two Separate Movieclips Influence One Another

Jul 31, 2010

i have two seperate movie clips on two seperate layers on the front page of my template. (loaded dynamically)

the layers are on top of one another.

the two movie clips work fine one their own on the template, but when i put them both on the template and I press their respective buttons the TOP movieclip's buttons control the BOTTOM movie clips actions. it's crazy.

i've tried to move them around but then it's just the reversed - the bottom buttons control the top movieclip.

View 7 Replies

ActionScript 2.0 :: Two Separate Movieclips Influence One Another?

Jul 31, 2010

i have two seperate movie clips on two seperate layers on the front page of my template.loaded dynamically)he layers are on top of one another.he two movie clips work fine one their own on the template, but when i put them both on the template and I press their respective buttons the TOP movieclip's buttons control the BOTTOM movie clips actions. it's crazy.'ve tried to move them around but then it's just the reversed - the bottom buttons control the top movieclip.

View 1 Replies

ActionScript 2.0 :: Loading 4 Separate MovieClips

Jun 1, 2006

Ok this probably has to be the stupidest question ever asked here on kirupa but I�m going to ask it anyways. You see I have 4 containers (mc�s). and according to the user it loads a different swf into it so what I wished to know is how to put a loader for each .The following steps explain it better-

[Code]....

View 2 Replies

ActionScript 2.0 :: Connection Between Two Separate MovieClips?

Aug 30, 2007

Is it possible to have two completely separate swfs to talk to each other, if they were both in the same folder and both open? For example one swf being an input text box, and the other swf being another text box which displays a list of the things typed in the input box of the other swf. I have this working all in one clip, I just want tho know if I can separate out the input box and the list box into two swf, and have them connected in some way, I'm sure I have seen this in some banner ads.

View 2 Replies

ActionScript 2.0 :: Have Movieclips On Two Separate Layers?

Jan 5, 2004

Is it possible to have movieclips, on two seperate layers, both located on the first frame of their layer, to have an AS where when MovieClip1 reached frame 5 of the movieclip MovieClip2 goes to frame 5 of its movieclip but MovieClip1 continues to play even though the AS was triggered?

View 4 Replies

ActionScript 2.0 :: Flash8 Two Separate Movieclips Influence One Another

Aug 1, 2010

i have two seperate movie clips on two seperate layers on the front page of my template. (loaded dynamically) the layers are on top of one another. the two movie clips work fine one their own on the template, but when i put them both on the template and I press their respective buttons the TOP movieclip's buttons control the BOTTOM movie clips actions. it's crazy. i've tried to move them around but then it's just the reversed - the bottom buttons control the top movieclip.

[Code]...

View 4 Replies

ActionScript 3.0 :: Loading Several MovieClips In To Separate Variables?

Sep 22, 2010

I have several Movie Clips in the Library which I need to be able to load and bring up on the screen randomly. The code below shows how I can load one of these, but to get a proper control ideally I would like to load them all in to an array or numbered variables so that they can be called from a simple piece of code and actioned one at a time.

My movieclips can all be called something simple like mc1, mc2, mc3, mc4 etc to make things easier. These need to be referenced in to an array mcContainer[.....] or as mcContainer1, mcContainer2........ so that they can be called easily. I just need to know the simplest way to do this and how i reference them, I have tried several ways like ["mc"+i] etc and nothing seems to work.

View 8 Replies

ActionScript 3.0 :: Breaking Down Image Into Separate MovieClips

Oct 29, 2010

I have one png image with few icons there. So now I need to load that image, to brake it apart and to use those icons as MC-s.

View 2 Replies

AS2 :: Flash - Controlling A Tween From Outside A Function

Oct 8, 2010

i've defined a Tween object within a function, and i want to control that tween from another function.

This is the basic way i have the code set up currently:

// Define the function with my tween:
function updateSlide()
{

[Code].....

Now i'm sure it's not working because it's not within the same function, but what would you do to make this work? Some sort of global variable or global function? I'm not used to working in AS2, or with programming in general

View 2 Replies

Flash :: Drag Two Movieclips (on Separate Layers) Simultaneously

Jun 28, 2011

My goal is to have a map that I can drag around within the frame of a webpage. Finding the right code to move the map in a restricted frame wasn't too easy but I managed to find that (which works like a charm):

zoom3.addEventListener(MouseEvent.MOUSE_DOWN, dragArea);
zoom3.addEventListener(MouseEvent.MOUSE_UP, dropArea);

[Code].....

Now the catch is that I'd like the map to be dragged simultaneously with a movieclip situated above, that contains names of regions, cities etc.. Both can't be on the same layer as I need to put a layer of texture in between.

Is there a simple way to link both layers and make them move at once?

View 1 Replies

ActionScript 3.0 :: Controlling Sound Of Separate Html Files Within Same Html Page

Sep 11, 2010

I need to allow users to preview audio files for purchasing. I have CF pages that return records form a SQL database. Each record contains the same swf file however, each swf file points to a different mp3 for previews of different audio examples. So far, everything is working fine. My problem is that I need to be able to stop the sound from one swf when I click to play a second swf .The only solutions I see in Flash forums deal with loaded swf files. These are not loaded files they are separate files within a page. The question is: How do control one swf from another swf in the same page.The following items have not worked: soundChannel.stop();,soundMixer.stopAll()

View 2 Replies

ActionScript 3.0 :: Tweening Menu - Sliding MovieClips Instead Of Separate Pages

Dec 8, 2010

I'm making a menu system that uses sliding movie clips instead of separate pages - [URL]. But when you click on the 'study at UWS' button, the nested slider kind of goes nuts, until you press on of the side buttons.

View 1 Replies

ActionScript 2.0 :: Controlling Motion Tween Frame Rate?

Jan 5, 2006

I have a movie running @ 24 fps. I particularly need to control a motion tween to run slower than the movie fps. How do i control frame rate of a particular motion tween.

View 1 Replies

IDE :: Controlling Brightness Within Movieclips?

Nov 18, 2009

is there any way to control the brightness of a movie clip or button on mouse roll over so that it gets brighter when the mouse is on it? I could only find things for earlier versions of AS and i couldnt figure out how to change them..

View 1 Replies

ActionScript 2.0 :: Each Of The Tiny Things Separate Movieclips That Move With Relation To The Mouse?

Sep 19, 2008

Could anybody point me to the right direction on how to do the background for [URL]? Is each of the tiny things seperate movieclips that move with relation to the mouse? I want to understand how it works since it seems to work efficiently and doesn't have any slowdown.

View 1 Replies

ActionScript 3.0 :: Controlling Different MovieClips In Different Levels?

Feb 4, 2011

I have a movieclip on the main timeline with instance name "rpm_display". Inside that movieclip I have another movieclip with instance name "dial_graphics". My actionscript is on this timeline. The tween that uses "dial_graphics" drives "rpm_digital.rpm_counter.text" to compute a value based on the tween position of "dial_graphics".
 
I need to move the movieclip "rpm_digital.rpm_counter.text" outside of movieclip "rpm_display", but it will not work when its on the main timeline. I have tried having it on the main timeline and putting the actionscript there too using "rpm_display.dialgraphics", but this did not work...
 
should i use _parent? Not too familiar with AS3.
 
My CODE:
 
stop();
import fl.transitions.Tween;import fl.transitions.easing.*;import fl.transitions.TweenEvent;

[Code]....

View 9 Replies

ActionScript 3.0 :: Controlling MovieClips On Screen Via XML

Jul 15, 2009

I am trying to figure out how to control 3 movieClips on the screen via XML. I can successfully control one, but I want to control all 3 if the XML has the values.

Here is my code:
var ducks:Array;
var myLoader:URLLoader;
var i:uint;
var xPos:int;
var yPos:int;
var myXML:XML;
[Code] .....

I think I would need to create some sort of list for each specific node (arrayPos, xPos, yPos, isvis) and then run a for loop so that each movieClips values get assigned properly. I have uploaded the .fla and XML for anyone who wishes to view it.

View 1 Replies







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