ActionScript 2.0 :: MX04:Can't Get Out Transition To Play?

May 28, 2005

ok I have 2 buttons, and they load external swfs into containers everything works fine but it seems like my gotoAndPlay("framelabel") isn't working...

here is the code for the buttons... incidentally they are inside a movieclip on the mainstage... everything else seems to work just fine... also I have my intro and out animations inside the external swfs. I've tried _root.contents_mc.gotoAndPlay("out"); I've tried _parent this._parent and _parent._parent and this.contents_mc.

both buttons will load the external swf but when I click on the other button it should play the out and then load the next swf and start playing the intro (which is the beinging of the external swfs timeline) ANY Ideas whats going on here?

[Code]...

View 5 Replies


Similar Posts:


ActionScript 3.0 :: Play The "out" Transition Than Unload The Current Swf Than Play The In Transition Than Load The Swf Of The Button That Was Clicked

Oct 11, 2009

i have looked everywhere for a tutorial on this - i have tried writing, and re-writing codes....i just cant get it. is there any tutorial i overlooked? here is what im looking to do - NO SHORTCUTS: have my main file that loads the buttons, my external swf container, my intro animations, and my swf "out" and "in" animations when a button is clicked i want it to point me to specific frame labels. i will have an "out" and "in" frame label and which will be the locations of the transitional starting points i want it to play the "out" transition, than unload the current swf, than play the in transition, than load the swf of the button that was clicked i want the animations to all be done using frame labels all within the MAIN swf file.... i have had no luck doing this....and i do NOT like the tween class....

View 10 Replies

MX04 Blur Effect Won't Play?

Jan 16, 2010

I've put a blur effect on the hit state of a button, but the script for the button is On Release Go to and Play the scene I wan't it to skip to. So as soon as the button is clicked it does what it's told and the blur effect (16 frames long) doesn't get to play.

View 5 Replies

ActionScript 2.0 :: Create A Page Transition That Will Play A MovieCLip Transition Into A Page?

Apr 23, 2010

I am trying to create a page transition that will play a movieCLip transition into a page. and then it stops then when another button is pressed, it will play that transition out while loading the appropriate one. In the attached FLA, if you click on the red button first, the blue transition plays,

--red button code--
mybutton1.onRelease=function(){
_root.transitionClip.play();
}

and then stops on the stage. When you click the green button second,

--green button code --

mybutton2.onRelease=function(){
_root.transitionClip.play("out");
_root.transitionClip2.play();
}

it works correctly/ Playing out of the blue Transition and into the Red transition. However if I click it again it does the opposite, and just keep alternating.

If I add the

_root.transitionClip2.play("out");

to the first button then, nothing works right. I will eventually have more buttons, and may need to use a variable to control which "out" transitions is played, but how do I get the buttons to do this?I just want it to exit the current movie clip and play the "in" section of the desired clip.

View 16 Replies

ActionScript 2.0 :: [mx04] MC's X/y To Control Frame Play Of Other MC?

Oct 31, 2004

What I'm trying to accomplish is creating faux control ability. It just needs to look like there's user input.The specifics:to the right of the screen is a window with 6 tabs that you can drag. I want the window above the tabs to have green bars that increase vertically as you drag up and decrease as you drag down. I thought I would be able to asign variables of position1, ""2, ""3, etc. Then set up a <= if then statement to say:if tab1_mc is less than 280 px for it's _y then tell greenbar1_mc to gotoAndStop(3);That didn't work, so, I figured I could just forget the var's and set up some AS that can constantly get the value of the tab1_mc's _y and then go through an if then AS that would tell the greenbar1_mc to gotoAndStop(respective frame);

View 2 Replies

ActionScript 2.0 :: How Transition Play Out And Call Next Action

Feb 27, 2003

PHP Code:
// button
page1_btn.onRelease = function(){
action = function(){
_root.gotoAndPlay("page2_label");
};
play();
};
// last frame
action();
[Code] .....

How a transition can play out and then call the next action (ie, loadMovieNum, in this case). Am I right that senocular calls the "action" function in the last frame of the loaded page (or swf)? And that "action" would be the loading of the viewer selected content?

View 2 Replies

ActionScript 2.0 :: Click The Button On The Main Movie To Load The Next And Play The Transition?

Jul 18, 2006

All works fine untill I do something to the loaded swf.For example if I click a button on the loaded swf the button works but then when I click the button on the main movie to load the next and play the transition the transistion doesnt work.If I dont do anything to the loaded swf the transitions work.Is it something to do with the paths being changed when the loaded swf is acivated?

View 2 Replies

ActionScript 3.0 :: Add A Squeeze Transition Effect Between Frames Using The Transition Manager Class?

Nov 16, 2009

How can I add a Squeeze transition effect between frames using the transition manager class on a simple slideshow using the goBack and goForward functions in ActionScript3? Below is the code I have so far:

stop();
function goBack(event:MouseEvent):void
{[code].....

View 0 Replies

Flexbuilder :: Flex Transition Effects Work On 2nd And After Transition

May 18, 2010

i have a flex app that transitions between 2 states with the toggle of a button. my issue is that the effect of fading only seems to work on the 2nd transition and after. However, for my first transition... going from State1 to studyState... there is no fade effect whatsoever, in fact the components in state1 disappear completely (the footer fills the empty gap where the "body" use to be) and then the flex recreates the studyState (without any fade refilling the "body" with components only in studyState). After this first transition however, going between studyState and State1 working COMPLETELY fine.. why does this happen and how can i make it so that crossfade works STARTING FROM THE VERY FIRST TRANSITION?[code]

View 1 Replies

IDE :: Transition Slides With The Behavior Slide Transition Options?

Oct 25, 2009

I have a presentation using the "presentation" template that comes with flash. I am trying to transition slides with the behavior slide transition options. but I've learned that it works find while going into a slide and doesn't go to the next slide when leaving.So basically I want it so that on right arrow first play out transition then go to next slide.

View 2 Replies

MX04 Interactive Map Project

Apr 20, 2009

I am not exactly new to Flash in that I can do several things with it. However, I am not anywhere near expert status. I am working on an interactive map of a college campus for my employer. I am employing buttons that, when moused over, display a large image of each campus building. The question is this: is there a way to also have maybe an actionscript that would center that image automatically?

In other words, if the building I want to show is on the right hand side of an internet explorer window and I mouse over it, is there a way to have the map auto scroll the window to center the image that pops up on mouse over?

View 1 Replies

MX04 Images In An Array?

Sep 19, 2009

Can images be stored in some sort of array and then called to the stage ramdomly?

View 1 Replies

MX04 Loop A Pre-existing FLV?

Jul 22, 2010

I have been asked to loop an existing FLV file that someone else created. I do not know what version of Flash was used to create this file, however I do have an older version 7.2 Flash MX Pro. Currently the FLV starts automatically and stops and the end of the movie. The owner of the site would like the movie to start over with a continuous loop. I'm pretty much of a rookie with Flash and with HTML5 coming out soon, I don't think I'll get a chance to become a pro at this.

View 5 Replies

MX04 Understanding 'for' Loop Iterations

Mar 25, 2009

How come every time I run this script:[code]Where does the Undefined come into things? I have only asked the script to fire 3 times so the first time through the text in position [0] in the script Carp should be printed out?

View 2 Replies

MX04 Basic Countup With Intervals?

May 1, 2009

basically what im trying to do is have a basic countup timer that goes in intervals of three. (3,6,9,12,15,ETC.) but it has to run with a 12 fps and not stop. also this cannot be 1000 frames long .

View 12 Replies

MX04 : Making A Preloader/LoadBar?

May 4, 2009

Im trying to make a preloader. this is my first attempt and from a tutorial and some minor adjustments on my part this is what ive come up with. i was wondering if there was a way to add a percent, and also why this doesnt disapear after its done loading. it remains on the stage throughout the loaded swf.

PHP Code:

siteLoader.loadMovie("Population.swf");
loadingBar._xscale = 1;
loadingBar.onEnterFrame = function() {

[code]....

View 14 Replies

MX04 Moving An Action Frame

Sep 30, 2009

my flash tutor is on vacation and I need to work on a project. How do I move an action from from 246 to 271?? I've tried Copy/Paste and it's not working.

View 1 Replies

MX04 Pressing A Button While Movie Is Going?

Mar 27, 2010

On to the problem: I have a very simple flash, basically just a photo slideshow. The issue I'm having is this: I have a bunch of photos on the timeline, but I have a button on top of everything, just to give viewers the option to skip that particular scene. The button works, but only when the video timeline has reached the very end of the scene. It won't work before the end of the scene. The button actionscript is the most basic of basic:

on (release) {
gotoAndPlay(scene1)
}

View 2 Replies

ActionScript 2.0 :: JMEvevents Calendar In MX04?

Feb 23, 2004

Anyone know a good tut on how to implement the JMEvents calendar component? It comes with MX04 but I am unable to find a tut at the moment (although as I type I am looking and trying to work through it). It can be either an xml, db, or hard coded example. Just need a little push.

View 1 Replies

ActionScript 2.0 :: [MX04] Resizing Mc WITHOUT Xscale

Nov 4, 2004

I'm having a buch of pictures of different height and width, which have to be loaded into different movieclips, and resized to 'bout 100px * 100px (so they're all the same size ~> thumbnails)

The problem width xscale and yscale, is that you have to specify the amount the movieclip/image resizes, in percentages instead of in pixels.

is there ANY way you can resize a dynamically loaded JPEG to EXACTLY 100*100 pixels ?

Here's my code (which doesn't work):

Code:
movieMain.thumbsHolder.createEmptyMovieClip("afbeelding" + j, j);
imageHolder = movieMain.thumbsHolder["afbeelding" + j]; imageHolder.loadMovie(path);
imageHolder._y = j * 200;
imageHolder._height = 100;
imageHolder._width = 100;

View 4 Replies

ActionScript 2.0 :: Preloader For Xml / Ext - Jpgs (mx04)

Jul 14, 2005

That was supposed to be my first preloader dealing with an XML file and external jpgs ... searched the forum, found something that looked/sounded like it would work, tried to adapt it to my particular situation and ... (surprise!) ... it doesn't work. Let me add at this point that I'd consider myself a "very casual" ActionScripter (if there is such a thing), meaning that most of the time, I try to learn as I go along, without any *real* background knowledge. Here's my situation - methinks it's rather straightforward: SWF file (project.swf), XML file (config.xml) and a bunch of jpgs all in the same directory - nothing exotic so far. Here's the AS I (try to) use in my SWF file to load the xml and the imgs therein:

[Code]...

View 3 Replies

ActionScript 2.0 :: [mx04] Xml To Access CD Drive?

Feb 27, 2006

I'm having trouble trying to link a .swf using xml to open up an html link that is on the cd that a user will have in their drive when running the swf.home.swf > goes to CD drive> open up about.html

example of xml:
<linktype="sample" display="yes" ref="file:///d:/about.html">

View 5 Replies

ActionScript 2.0 :: (Mx04) Generate Mc's In Rows

Jul 22, 2006

[URL]

I want the clips to be displayed in, for example, 2 rows of 3 clips, 6 in total.

By modding the AS to

total = 6;
for (i=0; i<total; i++) {
t = _root.createEmptyMovieClip("xml"+i, i);
loadMovie("imgBack.jpg", "xml"+i);

[Code].....

I realise that the size of the jpg determines the point at which the second row is displayed so can I do it easily by determining that the third mc has been reached so start a new row?

View 3 Replies

ActionScript 2.0 :: [MX04] Loading From XML Files?

Dec 29, 2006

I am doing up a photo gallery as a pet project using only actionscript. So far I have been successful in achieving the objectives that I want. However, moving forward, I intend to make the flash photo gallery easy to customise and want to add in a XML config file for flashh to reference.Here is where I am facing some problems. I managed to get Flash to read the XML data w/o a problem. The catch is how can I know when the XML file is loaded before I render the other movie objects (which require the settings in the config file)?

eg.

file_xml = new XML();
//Load XML file
XML.prototype.ignoreWhite = true;
//Parse the XML data

[code]....

Is there a way for Flash to listen to when I can start using the config values?

View 3 Replies

ActionScript 2.0 :: [MX04] Setting Frame Within A Symbol?

Jan 23, 2009

In my Flash, when you push a button, a symbol goes from having an alpha of 0 to an alpha of 100. When this symbol appears, I want it to begin animating on its first frame. However, I'm not quite sure how to do this. D: gotoAndPlay doesn't seem to be doin' the trick.

View 2 Replies

ActionScript 2.0 :: [MX04] Disabling Right Click Menu

Jan 31, 2009

I've got an idea for a game I'm making that makes use of both mouse buttons, but the pesky right click menu always gets in the way. I've been doing some research, and I've heard tell of some "authorware" programs that disable the menu? I've also heard that disabling the right click menu voids some kind of warranty.

View 1 Replies

ActionScript 2.0 :: [MX04] Store A Mc's X-position Between Scenes?

Feb 13, 2009

I make making a basic animation / game. Basically I need to have a movieclip named "ground" stay in the same position between scenes. It will be moving around and at certain moments, the movie goes to other scenes and it needs to place the ground at the x-postion where it was last at. So I had:

I set a variable (xpos) to be 0 earlier and then i have:

if(blah blah happens){
gotoAndStop(nextScene()){
_root.xpos = _root.ground._x;
}

and then in the next scene I have

_root.ground._x = _root.xpos;

But it only works randomly. Some time it will work for certain scenes and certain actions and other's it doesn't work.

View 1 Replies

ActionScript 2.0 :: MX04 Falling Items Game?

Apr 27, 2009

Ok I want to create a falling items game, but how do you code the falling movie clips? sorta like catch the money, or something like that.

View 6 Replies

MX04 Bouncing The Ball For Brick Breaker?

May 15, 2009

I am currently making a brick breaker game, so I want to make the ball bounce from the paddle. My paddle's name is pwn and the ball's name is ball.

My code for ball is currently:

onClipEvent (enterFrame) {
this._y += 5;
this._x += 4;
}

[Code]....

I just want the ball to bounce somewhere else other than stopping the ball at the place. I already made sure the paddle can move and the boundaries block the paddle from leaving the stage. So can someone give me the codes (please simple for me to copy-paste) for having me to bounce the ball some opposite direction or whatsoever. Like once the ball touches the paddle, it reflects somewhere else at the same speed and a different direction without any errors.

View 1 Replies

ActionScript 2.0 :: MX04 Set Size Of Swf Loaded Into Target MC?

May 30, 2009

Can someone help me out and tell me how i can set the size of an external swf i have loaded into a target movieclip.ive got the external swf loading into the target ok but its too big.

View 3 Replies







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