Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Numeric Stepper & Movie Clip



i am having trouble with this script im putting together .
i am resizing a movie Clip with the numeric stepper
it changes size when the number is increased but when the numbers are decreased in the numeric stepper it still gets larger , i cant figure it out .
thanks for the help

Code:
//size of the ball_mc
ball_mc._width = 40;
ball_mc._height = 40;
//create listener
var sizeListener:Object = new Object();
sizeListener.change = function(evt_obj:Object) {
ball_mc._width += 2+evt_obj.target.value;
ball_mc._height +=2 +evt_obj.target.value;
};
size_step.addEventListener("change", sizeListener);



ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 01-22-2006, 06:59 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

[F8] AS2 Numeric Stepper And Remove Movie Clip
Hi,

This is my first post. I am quite certain that I have bitten off more than I can chew. I am trying to create an application which brings the user through a series of questions in order to build a chair modularly. I have created Movie Clips for each of the modules.

I have created an Array which holds each of the questions. In ActionScript, I have placed the first question on the stage as well as a NumericStepper component. I have gotten the component to work with an Event Listener and can attach the Movie Clips when and where I want them. However, when I remove them or when the Stepper lands on the number for which I have coded attachMovieClip, the Stepper stops functioning.

I stopped adding MCs for the other Values returned from the Stepper because of this problem.

I am trying to make this whole application run on script alone but had to place the Stepper on the stage instead of calling it from the library. I converted it to a Movie Clip but then it lost functionality even though I used the correct identifier.

Please look at the code I have in here so far and let me know if this is too much for a Newbie. I learned all of this in the last two months by reading the help files and watching some lynda.com tutorials.

I really want to pull this off and appreciate any guidance you may offer.

Numeric Stepper
is there a way to make a numeric stepper that starts from 5, with stepSize 4?
i.e giving this:
ActionScript Code:
on (load) {    this.value = 5;    this.stepSize = 4;}

seems to jumps from 5 to 8 -> 16 -> .., instead of 5 -> 9 -> 13 -> ...
(I'm smelling a bug because when you ask the nextValue of it, it gives you the right value)

any ideas on how to solve this (maybe using a prototype?)

Numeric Stepper
is there a way to make a numeric stepper that starts from 5, with stepSize 4?
i.e giving this:
ActionScript Code:
on (load) {    this.value = 5;    this.stepSize = 4;}

seems to jumps from 5 to 8 -> 16 -> .., instead of 5 -> 9 -> 13 -> ...
(I'm smelling a bug because when you ask the nextValue of it, it gives you the right value)

any ideas on how to solve this (maybe using a prototype?)

Numeric Stepper Question
Hi,

I'm fairly new to flash, hence my newbish question.

But i was looking to use a numeric stepper to trigger a loader to load a differant swf file for every number changed.

i.e. it begins on 0, scrolled up to 1 opens a movie in 'loader', when scrolled up to 2 opens a differant movie in 'loader'.


Would anyone be able to help me with the code for this.

Or if not, does anyone know how to address the individual values in a numeric stepper, like if i was using the on(click){ command, how would i address it so i would only link to the number '1', or '2'.. could someone write out an example for me.


Any help you guys can offer would be really appreciated. I have been browsing through this forums for the last couple of days now, and you guys seem like really friendly and helpful people. So i'm hoping one of you guys can help me out.

Thanks alot.

Numeric Stepper Initial Value From Var
Having a problem with getting the initial value of the numeric stepper to use a loaded variable.

//Code is on main timeline frame 1
//loaderpage is determined from url parameter.
loadVariablesNum(loaderpage, 0);

//Variables do load and I can use in text fields

//I am loading a numeric stepper component in frame 10 instance is sizer.

//Code is on sizer instance.
onClipEvent (load){
//this does not work
this.value=_root.wtsize;
//this does work
this.value=20;
}

What am I doing wrong? I cannot get the numeric stepper value to use the dynamic variable but works for static. I have tried using _root and no _root, tried using eval (just in case) and I don't see the prob.

Any help would be appreciated.

Wesley

Custom Numeric Stepper...
Hey Folks,

I'm creating a custom numeric value stepper.
I've a text box to display the incremented number (_root.txtBox).
I've a movie clip to act as the up stepper (_root.upAr).

Attached to _root.upAr:
on(press) {
_root.txtBox.text = (root.txtBox.text * 1.1);
}

This works on the first press. The second press only works if
I move the mouse (slightly). If I don't move the mouse,
nothing happens.

Anybody ever run into something like this? Any suggestions?

Thanks.

[F8] Numeric Stepper In Calculator
Trying to build a performance calculator whereby the user enters in some data via a series of numericSteppers, hits calculate, and is returned productivity percentages, cost savings etc. in a series of dynamic text boxes.

I've done this before in Director, but not Flash and am having troubles.

For starters, all of the tutorials I've gleaned off the web use input fields which have the var field right in the property inspector. How would one go about assigning a variable to a numericStepper, and then pull that information when you hit a calculate button?

Thanks,
Brian

[AS2 On CS3] Slider And Numeric Stepper
I looked inside the "compnents panel" but could not find a "slider" anywhere?
Instead I tried to use the "Numeric Stepper", how do I change the font size of the number that is being stepped? I need to make it larger. Where do I enter the variable that represents this number? Flash CS Help is not that helpful.

[CS3] Go To Scene Using Numeric Stepper
I am trying to make a simple numeric stepper that takes the user to another scene...with or without the use of a button (it doesn't matter)

I'm pretty sure it's an easy thing to do, but for some reason what I've done doesn't work. I have named the button "goscenebtn" and the numeric stepper "gosceneno".

The code below is the code for the button. I'm not sure if I referred to the value of the numeric stepper correctly.


Code:
on (press) {
gotoAndPlay("this._parent.gosceneno.value",1);

}

Numeric Stepper Question
Hi there. I'm having some actionscript problems regarding a Numeric Stepper. The stepper has instance name "stepper". This is the code I have so far, inserted in the first keyframe:

Code:
var myListener:Object = new Object();
stepper.addEventListener('change',myListener);
myListener.change = function() {
num = stepper.value;
};
Now the code works perfectly. The variable num changes values with no prbolem, and I checked that with a dynamic text. But when I go to the next keyframe, the variable switches to the numeric stepper's maxim value. Why is that? Can I avoid that?

Thanks a lot for any help and/or suggestions!!

Go To Scene Using Numeric Stepper
I am trying to make a simple numeric stepper that takes the user to another scene...with or without the use of a button (it doesn't matter)

I'm pretty sure it's an easy thing to do, but for some reason what I've done doesn't work. I have named the button "goscenebtn" and the numeric stepper "gosceneno".

The code attached is the code for the button. I'm not sure if I referred to the value of the numeric stepper correctly.







Attach Code

on (press) {
gotoAndPlay("this._parent.gosceneno.value",1);

}

























Edited: 05/17/2008 at 02:54:50 AM by mooque

Submit The Numeric Stepper
Hi, I have two components in my project.
On is a submit button, other is a numeric stepper.

I want to submit to a MYSQL database using php, the number that is on the numeric stepper.


How can I do that?

Thanks in advance.

Adding Up Numeric Stepper
Hi all,
I'm making a t-shirt site and I have several numeric steppers that let the user enter a vaule for how many smalls, mediums ect. that they want.

I want to show the total number of shirts in the order in a textField called:

tfTotal

I really thought that something like this would be a common thing that others would do, but i can't find it anywhere. below is part of the code:


Code:
var aSmall = new Object();
aSmall.change = function() {
trace(cnsAS.value);
};
cnsAS.addEventListener("change", aSmall);

var aMedium = new Object();
aMedium.change = function() {
trace(cnsAM.value);
};
cnsAM.addEventListener("change", aMedium);
I would love any help you guys could give me. Thanks!

Founded A Numeric Stepper Bug?
hi all..

i was doing some AS today and i think i found a numeric stepper component bug..

check out this piece of AS:


ActionScript Code:
numStep.value = 1 //numStep is a Numeric Stepper Component
 
numStepObject = new Object();
numStepObject.change = function(eventObject){
  trace (numStep.value);
}
numStep.addEventListener("change", numStepObject)
 
var increaseNumStep:Function = function() {
    numStep.value++
}
 
myBtn.onPress = function(){ //myBtn is a MC
    increaseNumStep();
}



you see, the listener would response if i click the Numeric Stepper to increase the value, but it would not respond (the trace) if i increase the value via AS (using the myBtn MC's function)..

now is that a bug??

BTW, the numeric stepper looks wierd on stage during authoring time if
i change the width using the property (and not by resizing it using Transform tool)
Fortunately, it looks okay during runtime...

what do you guys think?

Numeric Stepper Use Letters
Is there any way to have a numeric stepper use number and symbols.Like such A#,m*, etc???

Setting A Variable To A Numeric Stepper's Max Value
Hey, I'm making a lil' project with the numeric stepper in which case I need to make the .max value of it to be a variable, although it won't let me.

This is the code that I need to work:

Code:
_TempMax = txt_SkillStr.value + _Nums;
txt_SkillStr.max = _TempMax;
_TempMax = txt_SkillStan.value + _Nums;
txt_SkillStan.max = _TempMax;
_TempMax = txt_SkillIntel.value + _Nums;
txt_SkillIntel.max = _TempMax;

Numeric Stepper Event Handling?
I have several numeric steppers and I m trying to get the name of the numeric stepper that generated the event.

like target.name.value

Anyone?

Sorry for my poor english.
I will try to improve my English.

Regards!

Using Numeric Stepper Loses My Keyboard Focus
I've got one class listening for KeyboardEvents. If the Space bar is down and the mouse is down over an object, drag the object. This works fine until I click a Numeric Stepper in a different MovieClip. I've traced it out, and the keyboard presses no longer register once I use the Numeric Stepper.

The question is: How can I bring the focus back?

EDIT: solved. I added this code to the class listening for keyboard events. (duh)


Code:
stage.addEventListener(MouseEvent.MOUSE_DOWN, onMouseDown);
function onMouseDown(evt:MouseEvent):void
{
stage.focus = this;
}

Embed Fonts In Components (Numeric Stepper)
Hello all. I have been looking but cannot find anywhere how to embed fonts into the numeric stepper component
I am using tweener to fade in the components, but the text box doesnt fade because the fonts are not embedded fonts. Anyone know anything about this?
Thanks!
Q

Number Stepper
Hi,

I have a number stepper inside a movie clip and on the first frame of the movie clip I have:

// set minimum quantity
qty_ns.minimum = parent.cart[idx].min_qty;

But it doesn't update the value of the number stepper until on event Change. How can I make it so the value changes to the minimum straight away? I have tried setting the value of the number stepper to the minimum like this:

// set minimum quantity
qty_ns.minimum = parent.cart[idx].min_qty;
qty_ns.value = parent.cart[idx].min_qty;

But it messes the number stepper up so that for instance if the miminum is 2, then if you try and step up once, it will equal the value 21, then 211, etc. etc.

Does anyone have a solution to this?

Thanks for any help,
~Oni.

Number Stepper
I set this number stepper to have a minimum of 1 and a step size of 1. But when I go to step up, instead of going to 2, it goes to 11, then 111, then 1111, etc.

Why is it doing this? It's as if it only accepts 1's... because when I try and enter a '2', it goes blank.

Thanks for any help,
~Oni.

** EDIT: I found the problem to be that I hadn't defined the maximum correctly **





























Edited: 05/08/2007 at 10:57:38 PM by OniLink

Nummeric Stepper Component
Hi there,
For an app I'm making I'm using a nummeric stepper. I'm calling a code everytime the value changes. But strangely, this code only get's called when the value changes when using the arrows, but the user is also able to manualy input a value.

Now I'd like to know how to fix this, using one of the folowing:
- The function that get's called when using the arrow keys, should also be called when a manual value is inserted.
- Manual insertion of values won't be allowed.

How would I do this?
Thanks,
SaphuA

PS: The current code that triggers the change event (taken from Flash help)

Code:
form = new Object();
form.change = function() {
trace("I'm changed!");
};
w_in.addEventListener("change", form);

Actionscript Numerical Stepper
I am using flash mx 2004 and need help with something.

As part of a program I have a stepper where a user can click up and down to enter the number of people in there party(weddings or anything like that). I then have to divide this number up into as many groups of four as can be made and then the remainder of people into groups of two. It should then output to the user the number of groups of four created and number of groups of two.

I.E. User inputs 15.

//Actionscript takes this number and performs calculation to produce

3 tables of four.
2 tables of two.

Any help with the process involved here would be greatly appreciated as i am a novice and having a few problems locating a solution

Numerical Stepper Component. Help Needed
lets say the values of my numerical component vary from 1 to 10. next to the stepper there is a button. each number in the stepper together with the button lead to a specific URL, for example, if you choose 1 in the stepper the button goes to www.blah.com, if 2 then www.flashkit.com and etc. any idea how to do this? thanks!!!

Text Cordinate With Number Stepper
I am trying to make my number dynamic text cordinate with my number stepper. In other words I am trying to make my text be the same as my number stepper. check out the example

Making A Movie Clip In A Movie Clip Go To The Next Frame Of The Original Movie Clip
I have a movie clip (for simplicity I'll call it movie_a) in movie_a I have another movie clip movie_b.

in movie_a i have a button that when pressed makes movie_b play (it has a stop frame every once in a while so the button acts as a "next" button)

I want it so that when i get to the last frame of movie_b and press the button, it will go to the next frame of movie_a

I hope that doesn't confuse u and u can help me solve this problem, as i am stumped and I've tried everything I could think of (which isn't that much as I'm not too good with actionscript)

thnx

Targeting A Frame Label In A Movie Clip From A Button In A Separate Movie Clip.
I have two separate movie clips placed on a timeline-MovieclipA and MovieclipB. I have a button in MovieclipB clip that wants to target a frame label located in the MovieclipA timeline. Can someone help me?

Movie Clip Buttons Nested Inside Movie Clip Dont Work
Hi people!
im having a problem here.

in my first frame i have a movie clip named "menu_mc".
i have this AS for this movie:

Code:
this.menu_mc.onRollOver = function() {
menu_mc.gotoAndPlay(8);
}
this.menu_mc.onRollOut = function() {
menu_mc.gotoAndStop(7);
}

thats working ok, the menu_mc plays on rollover from frame 8 till frame 12 where stops.
On frame 12 (this is inside the menu_mc movie clip) i have another movie clip, named button1_mc.
and also i have AS controling that MC:

Code:
this.button1_mc.onRelease = function() {
getURL("index.htm", "_self");
}


The problem is that when i rollOver on menu_mc it work fine and the button1 appears, the problem is when i try to click button1...
doesnt work.

the swf you can see it on www.wt.com.mx/menu.swf
can anybody help me please?
what im doing wrong?
or what other ideas can you give me so i can make that work.

thanks!

Mouse Rollover On One Movie Clip Increase Decrease Alpha Of Another Movie Clip..
So I really haven't messed with Actionscript much for a couple years and here is my issue.

I have several movieclips I put together that will eventually be a menu for my website. When you roll over a menu option (movieclip) I am trying to get another movie clip to fade in giving the description of the menu item.

For example - when you roll your mouse over the 'Live Chat' option a brief text description would appear telling you what the live chat is about. This description is a seperate movie clip appearing away from the original menu.

I have made the movieclips for the menu and the movie clips for the descriptions. I tried this action on the menu option to get the description to fade in:


Code:
onClipEvent (load) {
this._parent.mc_text_discussionBoard._alpha = 0;
}
onClipEvent (enterFrame) {
this.onRollOver = function() {
if (this._parent.mc_text_discussionBoard._alpha<100) {
this._parent.mc_text_discussionBoard._alpha += 5;
}
};
}
But the alpha only increases on the description (mc_text_discussionBoard) by 5 when I keep rolling my move over and out and over again. It makes sense why it does that, but I'm not exaclty sure how to get it to continually increase the alpha by 5.

any help would be great and I am anxiously waiting to get this solved!
Kevin

Code 4 MovieClip Button To Load A Movie Clip Into A Placeholder Movie Clip.
Yeah that title sounds a little confusing...so i will explain:

Is there a way to tell a "movie clip button" that once it is clicked on to load a "movie clip" into a "movie clip placeholder". So instead of loading an external swf into the placeholder, it will be a movie clip from within the same library. Putting every single custom clip on the timeline would take a while, so that is why I thought it would be easier like this, and the other movie clips are not that large that I want to load into it so there is no need for external swfs, trying to keep it clean. Here is the code along the lines I am trying to go for.

__________________________________________

this.profile_mc.onRelease = function() {
placeholder_mc.loadMovie("profileSection_mc","plac eholder_mc","_root.content");
}
__________________________________________

- "profile_mc is the button I am trying to activate to load the
"profileSection_mc" into the "placeholder_mc". but so far no good.

- the movie clips are within the same library, not on the timeline or external library.

- Is this possible?

Using A Button In A Movie Clip To Control The Movie(and Not Movie Clip) Timeline
Ok i have a button placed in a movie clip. I want this button, when released, to go in another scene, frame one, on the movie(scene) timeline and not on the movie clip timeline.

So i tried: gotoAndPlay("mission", 1); (mission is the name of my scene)

But it goes to the frame 1 of my movie clip, It would be great if someone could tell me how i can control the movie timeline while my button is in a movie clip

thaks
Vakarm

A Movie Clip Inside A 2nd Movie Clip Colliding With 4th Movie Clip That's In The 3rd
sorry if that sounds a bit odd, this is really a simple problem that i can't seem to nail.

Can u please give the the hittest that shows when a movie clip collides with another regardless of their level.

How To 'stop' A Movie Clip Within A Movie Clip Within A Movie Clip Loop
I've done searches, laughed, cried, and punched holes through the wall, but I can't figure this out.

I'm in Flash MX (pro) and I have a MovieClip on my main timeline (frame 1). Inside that clip is another animation (the static animation scrolling across the screen), and another inside of it of the static animation (6 characters on a train each animated uniquely).

Confused yet? Ha! OK, so I just want the damned animation on the main timeline to run once and then stop (or to 270 frames). I've tried:

myMovieClip.stop()

to no avail. I've tried attaching the script to the movie clip itself, and also to the frame.

Any suggestions?

Making A Draggable Movie Clip Control The Location Of Another Movie Clip
http://www.kineticz.net/jba/residental.jpg that is a picture of what i am trying to do. the white bar at the bottom is the draggable movie clip and the group of 3 pictures right above that is the movie clip that i am trying to control w/ the draggable clip. I am having trouble writing a script that will do this. any help you can give will be much appreciated.

When I Click On A Movie Clip I Need The Movie Clip To Goto And Play Frame 2
i have created a movieclip and draged it on to the stage i tryed used on mouse down then tell target goto and play but that ment when ever the mouse clicked any where, how do i tell in to only play when i click on the movieclip ?

How Can I Control A Movie Clip Which Was Loaded In To A Empty Movie Clip On Level 0
how can i control a movie clip which was loaded in to a empty movie clip on level 0 the name of the movie is 'imagemc.swf' and 'imagemc' for the empty movie clip on level 0. the movie doesn't have a movieclip name, how am i going to tell target the movie?

How To Manipulate A Movie Clip On The Main Stage From Inside Another Movie Clip
I have a button inside a movie clip, and I want it to work that when you hit the button, a different movie clip will go to frame 5. anyone know how to help? I think it has something to do with which level it is on, but I can't manage to figure out anything else.

A Button Inside A Movie Clip, Within A Movie Clip, Calling Another Scene:
Is it even possible?

I have been trying to do it for the last few days for a site I am working on.

I have done searches in many forums and it's foolish looking for an answer that way, because quite frankly every thread I opened was something to do with LoadMovie or GetURL, etc.

What I have right now is on the button in my Menu Bar Movie Clip:

on (release) {
gotoAndPlay(285);
}

Which plays a fancy little animation in the movie clip and then on the last frame of that movie clip I had:

gotoAndPlay("Contact", 1);

Which is the Scene for the "Contact Us" Scene named "Contact"

One would think that it would load up the scene and play at frame 1, however all that happens is it reloads the movie clip of the "Menu Bar" at frame 1 and starts over, not even realizing what I asked.

Anyways, I figured there's a script or something that tells it to look outside of the movie clip or to the _Root, or whatever.

If someone has a solution, it would be greatly appreciated.

Sorry I have no example to show, since I have yet to upload it. (It's my company's web site, and I don't think customers would want to see some half-arsed web site that's not complete.

Thanks in advance.

On Mouseover Show Movie Clip, On Mouseout Close Movie Clip *HELP*
Basically what I am trying to do is this...

I have a movie clip that is a name. When you put your mouseover the name I want another movie clip to display to the right of the name. This clip has a photo and bio of the person.

The photo and bio have an animation that fades it in and an animation to fade it out. I have 5 frames for the fade in, then stop frame, then 5 frames for the fade out.

What actionscript do I need to use to make that second movie clip load when a user mousesover the name (first movie clip) and to make the second half of the second movie clip play when the user removes their mouse from name (first movie clip).

NOTE: I tried using loadMovie and unLoad movie but I couldn't do it loading another swf. The reason being this is already an swf loaded inside a main movie. I guess you can't load an swf inside an swf that's already loaded inside an swf. I hope this all makes sense!

I appreicate all the help!

Thanks a lot!

Create A Movie Clip As A Button To Jump To Half Way Through Another Movie Clip?
hi guys and gals,
i am wondering if i can make a movie clip (as a link for a website) jump to half way through another movieclip...
thanks in advance

Create An Empty Movie Clip Inside An Existing Movie Clip?
I'm making sort of a tabbed navigation scheme by reading the data for each tab in from an XML file. What I'm wondering is if it's possible to use createEmptyMovieClip() to make a new empty movie clip inside a movie clip that already exists on the stage.

Using
ActionScript Code:
m_anchor.loadMovie(bg_image);
works as I would expect. bg_image is just the relative path to an image file, and m_anchor is a movieclip already on the stage. However, doing a similar thing:
ActionScript Code:
m_anchor.createEmptyMovieClip("textbox", this.getNextHighestDepth());
and then drawing a shape (a rounded rectangle, which I then want to put text on top of) doesn't work. It works if I just say "this.createEmptyMovieClip" instead of attempting to create it inside the m_anchor clip, but if I do that, the "textbox" is created at the root level and I can't unload it along with everything else in the "m_anchor" clip. Is it possible to create a new empty movie clip inside of one that is already on the stage?

Thanks!

Load An Internal Movie Clip To An Empty Movie Clip On The Stage
Can any of you shed some light as to why this is not working:

on (release) {
emptyMC.attachMovie("mrimc","instance1",this.getNe xtHighestDepth());
}

what I want to have happen is when the user clicks a button it loads the mirmc into emptyMC on the stage.

I have double checked that my empty movie clip does indeed have an instance name of emptyMC and that the movie I want to load into does in fact have the name mrimc in the library. Any ideas?

Problem Getting Movie Clip Inside Of Movie Clip To Face Mouse
I used the code below to make a movie clip face the mouse, it works when I use it on a movie clip that's not embedded in another movie clip, but when I used it on an embedded movie clip, it's axis seems to change.









Attach Code

var stickGun:MovieClip = this.stick_holder.stickGun_mc;
//stick_holder.stick_mc.stickGun_mc

stage.addEventListener(Event.ENTER_FRAME, onMove);
//stick_holder.stick_mc.stickGun_mc.addEventListener(MouseEvent.MOUSE_MOVE, onMove);

function onMove(event:Event):void {
// get the radian value of the angle between the clip and the mouse...
var myRadians:Number = Math.atan2(mouseY - stickGun.y, mouseX - stickGun.x);
// convert it to degrees...
var myDegrees:Number = Math.round((myRadians * 180 / Math.PI));
// get the horizontal and vertical distance between the clip and the mouse...
// rotate the clip toward the mouse...
stickGun.rotation = myDegrees;
}

Placing Actionscript Movie Clip Inside A Movie Clip Symbol
I'm loading an external image into an empty actionscript movie clip (holder1) using MovieClipLoader(); on frame one of my movie and is invisible. Then when the movie plays, there is an empty movie clip symbol (image1_mc) that is placed manually on the stage within another movie clip symbol (flash_mc), and is also on a bottom layer of a mask layer which is animated. Is it possible to place "holder1" inside of "image1_mc" so that I can treat it as if it were an embedded image? In other words, have the image in "holder1" inside of the manually placed movie clip symbol "image1_mc" so that I can use it like a regular symbol on the stage?

How Can I A Movie Clip Splash Prior To Attaching The Choose Movie Clip..Help
I have a presentation which I would like to publish on CD. What I want is to have movies attached to the container_mc on the stage upon clicking the desired navigation buttone. But before movie gets attached, I would like to have a logo_mc animation (from the library) to play itself before playing the selected clip.

I think I need to write up a function which will call the animation splash clip prior to attaching the clicked movie.

Appreaciate all the help.

Thanks so much.

Control Movie Clip In Container From Button Inside Other Movie Clip
There are three movie clips involved in this question.

1. A main movie clip that has a target empty movie clip where an external swf loads.

2. A menu movie clip that is built from button symbols and has its own timeline.

3. The external movie.

When a user clicks on the menu, the external swf loads into the empty movie clip target.  This part works fine. Here's the code:
on (release) {    
    loadMovie ("Lesson1.swf", "_root.container");
}

I want to use one external swf for all lesson, versus 20 external swfs. The problem I'm having is controling at what frame the external swf loads.  I've tried adding --gotoAndStop (15) -- for example. I've also tried adding, gotoAndStop "_root.container" (15), but that doesn't work either. The gotoAndStop action ends up controlling the menu movie clip timeline instead of the movie loaded into the container. I figure this is because the menu mc has "embedded" buttons and it's own timeline.

Any  help you can offer will be much appreciated.

Thanks
Sheila



Creating A Button To Open A Movie Clip From Inside A Movie Clip?
I'm using a hexagon menu to display some images. One image is placed on each slide of the hexagon menu (which can then be rotated left and right to see other "slides").

What I want to do now is to be able to click on the object (image) as a button and for it to go to another scene which shows the image blown up and some description next to it (which is another movie)

I have tried the following which doesn't seem to work:
Created an invisible button (or choosing the image as a button) and having

on(release) {
gotoAndPlay("scene 5", 1);
}

this doesn't work when I use it over the hexagonal menu, but when I move the button to somewhere else on the screen (not over the movie) it works.


Please can someone help with this - Ive been working on it flat out over the weekend and desperately want to make it work. any ideas would be appreciated!! thank you

Loading External Movie Clip With A Button Inside Another Movie Clip Help
Hi,

I am working on a scrolling thumbnail movie clip, that when you click on the thumbnail button inside the movie clip it will load an external movie clip. I have an empty movie clip on the main stage, and have been trying all sorts of code, but for some reason it doesn't like that I am inside a movie clip using buttons. It can't seem to find the external swf.

I have tried:

on (release) {
loadMovie (ithink.swf, "loader");

and

on (release) }
if (firstTime == true) {
loadMovie("ithink.swf", _root.loader);
firstTime = false;
} else {
_root.clicked = "ithink.swf";
_root.loader.gotoAndPlay("goback");
}
}

and so far nothing, for some reaosn when I click on a button outside of the movie clip with the above code it loads... and than the other works too, but if I click on the buttons inside the scolling movie clip first they won't work.

Any suggests or ideas!!?

I would really appreciate it... I am beyond frusterated!!

Unload A Movie Clip From The Movie Clip That Was Targeted From The Root Timeline
I have on the main timeline, a button that when it's pushed loads an external .swf into a blank MC. I need to be able to close the MC within the mc. I know I can do this is loadMovieNum and use levels, but then I can't target where I need it to load in...is there a way to do this?

Thanks
Stacy

Copyright © 2005-08 www.BigResource.com, All rights reserved