ActionScript 3.0 :: How Does 1st MC Trigger 2nd MC To Play

Jul 23, 2009

i have a mc of a fish swimming in the water. i have another mc of a fish jumping out of water. i want to click on fish in water and have it trigger the fish jump mcin AS3. can't get it to work. should they both be in same MC to begin with, or place them separately in main timeline.

View 1 Replies


Similar Posts:


Button To Trigger Play In Frame?

Jan 23, 2011

I have a button (instance is called resbutton) and I would like it to play a specific frame (frame 13) when clicked on. Flash says I cannot add actions to the buttin itself so I made an Actionscript layer and so far just have:

resbutton onPress
 
Im using AS3 - what goes next?

View 3 Replies

ActionScript 2.0 :: Conditional On Scale Mc - Trigger Another Mc To Play On The Root?

May 17, 2003

I can usually find what I need by searching. Not this time.I'm scaling an mc with a script.This is on the timeline of the parent:

stop();
MovieClip.prototype.easeScale = function (finalWidth, finalHeight, speed) {
this.onEnterFrame =function () { [code]...

I want to trigger another mc to play on the root once mask_mc reaches its finalHeight.I've tried if statements, but nothing really works.

View 14 Replies

ActionScript 3.0 :: Using Multiple If Else Statements & Manual Dynamic Xml Data Input To Trigger A Goto And Play

Dec 19, 2011

Below is code that has a timer countdown that reads off of the computer. Below in bold is code to read "if it reaches the date, go to and play frame (2).

[Code]...

Below is code that is manual input - I had set up a dynamic txt field in flash named it : raffle_tix_remain When loaded on to the host I can manulally update the xml code and the change will take effect. raffle_tix_remain.text = root.loaderInfo.parameters.raffle_tix_remain;

My question: Since the raffle_tix_remain is a manual input from a user to xml Is there a way to tell flash once it refreshes and "raffle_ tix_ remain" goes to (0)zero gotoAndPlay(2); and let it play like a "sold out" sign i guess that would be a if else statement.

[Code]...

View 1 Replies

ActionScript 2.0 :: MX: Trigger A MC Then Wait Then Trigger Another?

Aug 23, 2005

I have an application done in flash- on the main Scene Level, everything has only one frame but I have MCs and the like that are triggered by actionscript.There are quite a few nested functions on the main actions layer as well as an "onEnterFrame" function that reloads XML data in the background, etc... but that is not the problem.

The problem is, that at one point, I am calling a few MCs that kind of close up a section of the page like blinds- and then I want a text to appear ontop of that now closed area... but if I just write...

Code:
_root.TimelineFader.BlendeT1.gotoAndPlay(2);
_root.TimelineFader.BlendeT2.gotoAndPlay(2);
_root.TextAboveTimeline.theMessage_txt._visible = true;

...it all happens simultaneously, of course.I guess I could check for "BlendeT1"'s (or T2's) current frame (since it's an MC)... but how do I wait while that MC runs / until it reached a certain frame? How can I keep the rest of the actionscript in the main function from continuing?

View 5 Replies

Mc Position Trigger Other Mc?

Jun 17, 2009

I have a mc which moves right or left depending on my mouse movement.the code is

onClipEvent(enterFrame) {
_x+= ((_root._xmouse/1.000001)*-1-_x)/120;
}

When the mc reaches certain x positions lets say x<-1000 ,another mc (which i placed inside this first mc)starts to play and stops or fades out when reaches to x<-2000 The best example is www.3nokta.net.You will understand what i mean I just need the mclips play or stop depending on the first mc position.

View 1 Replies

How To Trigger A Video

Aug 17, 2010

I have some videos that I want to show on my website through selecting from a flash component.If I program them in one flash component, I'm sure it will lag a lot.I have an html site and I want to trigger videos from the flash component.

View 4 Replies

ActionScript 3.0 :: How To Get InitKeys To Trigger

Mar 26, 2011

I'm trying to get initKeys to trigger. 'kiosk' is my base class.I'm getting error 1017: The definition of base class kiosk was not found.

project_folder/me/radbourne/kiosk.as

Code:

package me.radbourne {
import org.actionscript.*;
public class kiosk extends MovieClip {

[code]...

View 1 Replies

ActionScript 3.0 :: Trigger Swf From Main Swf?

Jul 22, 2010

I have a longtail flash player setup to a rtmp server to stream live events using adobe flash encoder 3. In gerneral it works fine now the problem is content i have a second swf file within the same page that was a powerpoint presentation that is now converted to a swf.

What i need to do is somehow send a command from the longtail video player to the slide show to trigger a slide push. So lets say we are live and streaming away i would need to send some sort of command that will tell the second swf to change slides so that everything is in sync.

Currenty we are using Windows media enncoder and we just send out a command to a iframe within the encoder which changes the slide, the slides are JPG so its easy to do. In the testing stage we have a standalone slide controller that is linked to the iframe and we can push a slide from the contoller which push the slide on the iframe. This method works if i remove wmp and put in a flash place since it not going through a video stream, but i need it to go through the video stream and then tell either a swf to change a slide or an ifreame to change a slide.
 
Reason it has to go through the video stream is so we can record the video and the commands so they can be setup as archive, so video and slide will cue at the right areas. Just like how you can send out commands from within windows media encoder and archive them and they auto trigger once he video plays.

Well i just need a way that will sync video with slides i don't really care how its done just that its done. There has to be a way to record the slide push commands so they can be used again to play the video and so it advances the slides.

View 1 Replies

Professional :: Trigger More Than 1 Function?

Nov 29, 2010

I need to trigger 4 different functions when I move the mouse poiter over a movieclip; do I need to use 4 listeners or can I use only one to call all the 4 functions?
 
Now I do this
movieclip.addEventListener(MouseEvent.MOUSE.OVER, function1);
movieclip.addEventListener(MouseEvent.MOUSE.OVER, function2);
movieclip.addEventListener(MouseEvent.MOUSE.OVER, function3);
movieclip.addEventListener(MouseEvent.MOUSE.OVER, function4);

View 3 Replies

Using Javascript To Trigger An Animation?

Apr 21, 2009

A website I am developing will have a small animation (say 5-10 seconds minor effect) on the logo at the top of the screen. The logo looks static but when you hover your mouse over it, the animation is played. (This is achieved using the 'button' symbol as the animation within flash).

The client now wants the website's plain text navigation, when hovered over, to trigger the animation to play again. I am a very BASIC user as flash but I believe it is possible to send a javascript call to the swf (i.e. each navigation link will include a "onmouseover=' restartFlashAnimation()'"where I need to define that js function) ...and the swf will recognise the function call and then replay the animation.

View 1 Replies

Trigger Thickbox From Flash?

Nov 18, 2009

How to trigger thickbox from onRelease() event in flash.

View 1 Replies

ActionScript 2.0 :: Trigger The Transitions?

Jan 10, 2004

Below is the code which is used to trigger the transitions. For reference 'home' is movieclip and 'homestate' is a button in the movieclip.

home.homestate.onRelease=function(){
if(_root.section!="home.swf"){
_root.section="home.swf";[code]....

I try incorporating these actions into the first script but I get an error.

home.homestate.onRelease=function(){
if(_root.section!="home.swf"){
_root.section="home.swf";[code]...

View 5 Replies

ActionScript 2.0 :: Can't Trigger Function Twice

Feb 12, 2003

i have a function that loads a text file into a textbox

i call the function from a series of menu buttons (about us, clients etc...)

both the function and the textbox are on the main time line (the textbox is in an mc instance named "text_mc"

the function triggers when i click any button - but won't trigger again after that

button code:
on(press){
loadText("services.txt");
}

[Code]....

** if i put both bits of code behind each button it works fine (but i obviously don't want to do that)

View 1 Replies

IDE :: SOUND_COMPLETE Event Does Not Trigger?

Jun 6, 2007

I am working with a short vocal track and when the audio ends I would like a replay button to appear. The codes should work fine, no errors appear. Trace displays nothing...Here is some of the code:

var clip = "testClip.mp3";
//Create the Sound & SoundChannel Objs
var soundReq:URLRequest = new URLRequest(clip);

[code].....

View 5 Replies

ActionScript 3.0 :: How To Trigger A Function

Jan 7, 2011

In stage Number of MovieClips is there. and MovieClips inside some functions is there .iam giveing dynamic property to MovieClips same as  function name.because iam click the MovieClip call the function.
 
mc.functionName="dosome()"
mc.addEventListener(MouseEvent.CLICK,call_inside_function)
function callinsidefunction(event:MouseEvent){
/// event.target.functionName

[code]....

View 3 Replies

ActionScript 3.0 :: How To Make Variable Trigger

Jun 2, 2009

I'm having some problems switching from As 2.0 to As 3.0. How to make a variable trigger. in As 3.0? Lets say i have this on my time-line.

function onClick2(evt:MouseEvent):void{
var pagenumber = "pg03";
switch01.gotoAndStop("red");
gotoAndPlay (2);
}

How do I make a mc gotoAndPlay (_root.pagenumber) like we do in As 2.0?

View 6 Replies

ActionScript 3.0 :: Trigger A MouseEvent From A Nested MC?

Jul 17, 2009

How can I trigger a MouseEvent from a nested MC?

Basically I have a Sprite that contains a Shape. I'd like that Shape to trigger the listener I've attached to it however, Flash just thinks the container Sprite is being clicked every time.

View 1 Replies

ActionScript 2.0 :: Trigger A Function From Another Class?

Jul 23, 2009

I have an AS3 code (home_esp.as) that imports the class of another one (InternalCarousel.as)[code]...

View 2 Replies

Flash8 :: Trigger A Function From A Certain Frame?

Oct 6, 2009

I really just want to know how to trigger a function when my movie hits a certain frame.

I made a very simple flash show to try to illustrate my problem a little more clearly. I have a green and a gray button. Using the 'switch_buttons' command I turned the gray button invisible at the beginning. What I then want to happen is that on the 10th frame the green button will become invisible and the gray button will appear. But I haven't had any luck. It seems like I need to call a function to switch the buttons somehow.

View 3 Replies

ActionScript 3.0 :: Event Trigger On Date?

Jun 22, 2011

Im looking for an event to trigger on a particular date. Does anyone have a code snippet of how that can be achieved?

View 2 Replies

ActionScript 1/2 :: Any Way To Trigger Tooltip On Rollover?

Feb 17, 2008

I have this link in my html textfield. It sits ouside flash in an XML file. It works fine however I was wondering if there's a way to triger the tooltip on rollOver? Like regular javascript?
<a href="asfunction:com.widgets.ToolTip.create, This is a test"><sup>1</sup></a>

View 3 Replies

ActionScript 3.0 :: How To Function Trigger Class

Jan 3, 2009

I am looking for an as3 class that lets me set a list offunctions to be called and a time/delay in seconds or miliseconds..

View 1 Replies

Cursor Position To Trigger Action?

Nov 1, 2009

I will be creating an animation with a jpeg image as the background. The animation will consist of moving lines.
 
When I place my curser over the animation box, and have the lines animate. When I place my curser off the aniamtion box, I would like the animation to stop playing.
 
The curser placement would be the trigger for the animation.

View 3 Replies

Professional :: Trigger Function When Variable A Certain Value?

Aug 5, 2010

I want a function to be triggered when a certain global var becomes true - I want to do this using an event listener.  I can do it as a one off using an if statement, but how do you set up a listener to trigger the function if the value becomes true at any time?

View 3 Replies

Professional :: How To Trigger Animations With A Button

Dec 4, 2010

Say I want to trigger an animation (i'm thinking about some kind of text appearing from the backround) when a button is clicked, how do I do this?

View 16 Replies

ActionScript 3.0 :: Trigger A Function From Within A Sprite?

Apr 1, 2009

I need to trigger a function or reset a variable from within a sprite when it gets to a certain frame. I keep getting the error "Call to a possibly undefined method" when I call a function and I get "Access of undefined property" when I try to reset the variable directly. Both the function and variable are set globally in the first frame of my animation.

View 7 Replies

ActionScript 1/2 :: Get Flvplybk To Trigger On Button?

Sep 5, 2011

Existing Flash site with AC2 Trying to add a button to popup and play an FLV file Code below works fine in main timeline without any attempt to wrap it in the onrelease, it opens and plays the file immediately (allbeit of course not what I want to happen) Button instance is of course play_vid
 
I've looked at a hundred examples over 3 days and noda. Does something need to be added in to support onrelease?

[Code]....

View 33 Replies

Actionscript :: Trigger The OnRelease Event?

Aug 17, 2010

i have a movieclip with an onRelease event. Is there anyway i can trigger this event in code? without clicking the movie clip?

View 1 Replies

Flash :: Auto-trigger StageDisplayState?

May 17, 2011

I'm working with StageDisplayState for the first time. I was wondering if there's any security reasons for not being able to trigger a FULL_SCREEN state.In this simple class I wrote when viewed in a browser (firefox - mac), the timer event FULL_SCREEN doesn't trigger, the mouse event on the other hand does.

package {
import flash.display.StageDisplayState;
import flash.display.Sprite;

[code].....

View 1 Replies







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