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




Moving Images Frame-by-frame With Mouse Movement



Hi, I'm new to flash mx, so please help me out in details. thanks. I have 10 images in 10 frames ( 1 image per frame ). So I'm trying to make the frame to go to the next one when the mouse is moved to the right, and make the frame to go to the prev one when the mouse is moved to the left. Can someone please help me? I really need to have this done ASAP. Thanks for all the inputs.



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 07-13-2004, 06:31 AM


View Complete Forum Thread with Replies

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

Moving Images Frame-by-frame With Mouse Movement
Hi, I'm new to flash mx, so please help me out in details. thanks.
I have 10 images in 10 frames ( 1 image per frame ). So I'm trying to make the frame to go to the next one when the mouse is moved to the right, and make the frame to go to the prev one when the mouse is moved to the left.
Can someone please help me? I really need to have this done ASAP.
Thanks for all the inputs.

Help Moving From Frame To Frame With Mouse.
I have a series of pictures and I want to be able to cycle through them from 1 to 30 by moving the mouse to the right to left and be able to cycle back by moving from left to right, stopping on individual frames by coming to a stop. I have enough experience that I can manipulate action script; however I am horrible at writing from scratch. Any and all help welcome. If you can help pls. don’t feel like you are talking down to me the more thorough the explanation the better.

Help Moving From Frame To Frame With Mouse
I have a series of pictures and I want to be able to cycle through them from 1 to 30 by moving the mouse to the right to left and be able to cycle back by moving from left to right, stopping on individual frames by coming to a stop. I have enough experience that I can manipulate action script; however I am horrible at writing from scratch. Any and all help welcome. If you can help pls. don’t feel like you are talking down to me the more thorough the explanation the better.

Moving Mouse To Advance To Next Frame
I feel like an idiot for having to write in for this, but it's been awhile since I've had to write actionscript, and I have forgotten a lot of it. I'm trying to make a file that advances to the next frame with any mouse movement. I understand how to do it, I'm just having trouble writing it.

On clipevent(enterframe)
positionX == _xmouse
positionY == _ymouse
if positionX !== _xmouse
goto (nextframe)
if positionY !== _ymouse
goto (nextframe)


Is this anywhere near right? Thanks,

-A

Incorrect Frame Display When Moving Mouse Up.
Why is this happening?

This is a simple file to show young kids how to play a game of netball.

The file is set up with rollovers which change the left hand text, and when any button is clicked it plays a movie clip. The problem I'm having is after the movie clip has played and I move the mouse UP the stage and over another button, the text in the left panel displays incorrectly (wrong frame). I have to move out of the button and back in again for it to correct itself. Have rebuild this file without movie clips (everything in the same scene across 180 frames) with exactly the same problem.

For example: when clicking on the button GS at the bottom of the page, we jump to a frame with a movie clip which shows the area this player is allowed to play in. Once the movie is over and I move the mouse UP to one of the players above the GS (ie the GA) the info panel displays the wrong player position. It corrects itself once I take the mouse out and go back in again.

This problem only happens when the mouse moves up, no problem when the mouse is moving down the page. Also please note this only effects the .swf and .exe files, the .mov files play perfectly. I'm on a Mac but this also happens on PC.

Thanks

HELP - 360 TYPE FRAME EFFECT BY MOVING THE MOUSE LEFT AND RIGHT (NOT LIKE QTVR )
Hi Guys I am basically wanting a tutorial link URL .fla etc on how to do the following effect.

http://www.martiniracing.com/content...cherEXT_hi.asp

What I need to do is change the frame up or down by moving the mouse left or right. For example when the mouse moves to the right I want the frame to move up 1,2,3,4,5,6 etc and when the mouse moves left I want the frames to go the opposite way

I have searched through all the .flas on Flashkit and non of them cover this. they all cover 360 panoramas which this is not

Any help would be more than appreciated

HELP - 360 TYPE FRAME EFFECT BY MOVING THE MOUSE LEFT AND RIGHT (NOT LIKE QTVR )
Hi Guys I am basically wanting a tutorial link URL .fla etc on how to do the following effect.

http://www.martiniracing.com/content...cherEXT_hi.asp

What I need to do is change the frame up or down by moving the mouse left or right. For example when the mouse moves to the right I want the frame to move up 1,2,3,4,5,6 etc and when the mouse moves left I want the frames to go the opposite way

I have searched through all the .flas on Flashkit and non of them cover this. they all cover 360 panoramas which this is not

Any help would be more than appreciated

Retaining Drag And Drop Movement From Frame To Frame
Hello.

I'm having a problem with retaining Drag and Drop movement from frame to frame. The issue is that if some movie clips in frame one are moved around with drag and drop, then the user proceeds to frame two, upon going back to frame one, the movie clips that were moved around are now back to their starting positions. How can I have these movie clips stay where the user put them? I've attached a simple fla file for reference.

Thanks in advance for any help and suggestions!

Button: Frame By Frame Movement
I really need help.

on main movie I have 2 layers.
One layer contains 2 buttons
and the 2nd layer contains movie clip instance.

movie clip instance contains 30 pictures.

What i would like to achieve is when I click forward button(one of 2 buttons) I want movie clip to advance 1 frame forward then stops.
also, when i reach the last frame of movie clip, pushing forward button once more will take it back to frame 1.

[back button works the same way]

Can someone show me how I can do this?

I know it's easy for many of you, but to me this is extremely hard. don't know where to start the scripting.

Thanks in advance

[F8] Unloading Frame When Moving On To The Next Frame
Hello,

I have an flash project with several pages, (Home, members, Contact, etc). and they all have buttons, and when you click on them, they take you to different places. My members frame overlaps the others even when i move to a differernt frame. I am using the coverflow addon, but i was curious, is there like a "on next frame UNLOAD" actionscript command?

PLEASE HELP!

[F8] Moving Chrecter From Frame To Frame
I have a MC created and i use this code:

onClipEvent (enterFrame) {
if (_parent.Main.hitTest (this)) {
_parent.gotoAndStop(3);
}
}

Main = my chrecter

The MC is on the right side of the work area and when my charecter hits the MC he starts on the right side.

Is there anyway i can make him start on the left side of the new frame.

XML Data And Moving From Frame To Frame
I am making a project and using XML to bring in the data externally. However i have ran into a little snag. My code to query the XML works, but if i don't start with the first button, the rest of the buttons dont work.

If i click on the first button which takes you to a new frame and loads in the XML data into a text area the rest of the buttons will work and go the frame they are supposed to and work as intended.

However if i do not click on the first button first, the button will take you to the frame that it is supposed to take you to but the XML does not load.

The buttons are on a grid and are supposed to be clicked in any order and bring open the right information, which is why this is a problem.

here is the code that is on the second frame. All the other frames look just like this one but with the names changed to fit the names of the buttons.

Any help will be appreciated


Quote:




//this makes the xml request
var jeapordy_xml:XML;
var xmlReq:URLRequest = new URLRequest("Jeapordy.xml");
var xmlLoader:URLLoader = new URLLoader();

//this will load the XMl and place the correct information in the text area
function C1HighSchool(event:Event):void
{
var query:XML;
var queryText:String ="";
jeapordy_xml = new XML(xmlLoader.data);

query = jeapordy_xml.C1100.Question.(@id == "1").parent();

for each(var elements:XML in query.*)
{
if(elements.*.length())
{
queryText += elements.name() + ":" + elements;
}
}
info_txt.htmlText = queryText;
}

//will display from the XML the answer for the button that is clicked, and will tell the picture to move into position
function C1Answer1(Event:MouseEvent):void
{
var query:XML;
var queryText:String ="";
jeapordy_xml = new XML(xmlLoader.data);

query = jeapordy_xml.AnswersQ1_1.Answer.(@id == "A1").parent();

for each(var elements:XML in query.*)
{
if(elements.*.length())
{
queryText += elements.name() + ": " + elements;
}
}
answer_txt.htmlText = queryText;

query = jeapordy_xml.images.pic1.(@id =="BoR1").parent();

for each(var picture:XML in query.*)
{
if(picture.*.length())
{
queryText += picture.name() + elements;
}
}
picBox.htmlText = query
}

//will display from the XML the answer for the button that is clicked
function C1Answer2(Event:MouseEvent):void
{
var query:XML;
var queryText:String ="";
jeapordy_xml = new XML(xmlLoader.data);

query = jeapordy_xml.AnswersQ1_2.Answer.(@id == "A2").parent();

for each(var elements:XML in query.*)
{
if(elements.*.length())
{
queryText += elements.name() + ": " + elements ;
}
}


answer_txt.htmlText = queryText;
}

//will display from the XML the answer for the button that is clicked
function C1Answer3(Event:MouseEvent):void
{
var query:XML;
var queryText:String ="";
jeapordy_xml = new XML(xmlLoader.data);

query = jeapordy_xml.AnswersQ1_3.Answer.(@id == "A3").parent();

for each(var elements:XML in query.*)
{
if(elements.*.length())
{
queryText += elements.name() + ": " + elements ;
}

}

answer_txt.htmlText = queryText;
}

//will display from the XML the answer for the button that is clicked
function C1Answer4(Event:MouseEvent):void
{
var query:XML;
var queryText:String ="";
jeapordy_xml = new XML(xmlLoader.data);

query = jeapordy_xml.AnswersQ1_4.Answer.(@id == "A4").parent();

for each(var elements:XML in query.*)
{
if(elements.*.length())
{
queryText += elements.name() + ": " + elements ;
}

}

answer_txt.htmlText = queryText;
}

//this function will move a picture into position when the correct answer is clicked
function picMove(Event:MouseEvent):void
{
mask_mc.play();
}

//this function will go back to the grid of buttons
function homeF2(Event:MouseEvent):void
{
this.gotoAndStop(1);
}

//this will reset the text fields to be empty
function reset(Event:MouseEvent):void
{
info_txt.text = "";
answer_txt.text = "";
}


xmlLoader.load(xmlReq);
xmlLoader.addEventListener(Event.COMPLETE, C1HighSchool);
A1.addEventListener(MouseEvent.CLICK, picMove);
A1.addEventListener(MouseEvent.CLICK, C1Answer1);
B1.addEventListener(MouseEvent.CLICK, C1Answer2);
C1.addEventListener(MouseEvent.CLICK, C1Answer3);
D1.addEventListener(MouseEvent.CLICK, C1Answer4);
Reset.addEventListener(MouseEvent.CLICK, reset);
F2Home.addEventListener(MouseEvent.CLICK, homeF2);

Moving Vertical Bar Which Holds Moving Thumbnail Images When Mouse Is Over
Hi!

im not completely new to Flash MX - have utilised all basic animation tween/morphing /buttons
and very simple action script- movie controls - stop , back ,forward etc

however i need a moving bar feature, e.g. a moving news reel or a vertical bar which holds a number of images i.e.10 and
when the mouse is over - i want it to move downwards and when is not over the feature i want it to stop moving
(or even instaed of the feature to automatically scroll images i could also use a button to press to move through the images)

then: the thumbnail images from the moving feature i need to be selectable which then produces a larger version of the image on
another section of the page.

i dont no if i put this thread in the right forum!

if any one knows of any tutorials or has any suggestions to help implement this feature

i would appreaciate any help!
- dont really know where to start with it!
thanks

(i have looked at the flash kit tutorials but havent found what im looking for
dont even no if this is more of an animation or action script questions)

Moving With Mouse Movement.
I have made an animated bird and it moves with the direction of mouse. I want the bird to face the direction where we move mouse. I mean when we move mouse to the right side the bird should face right and when we move mouse to the left side the bird should face left and so on.

Please help me with this.

Thanks
Salim

[F8] Moving Stage With Mouse Movement
Hey guys trying to achieve the following effect for a map. Basically i want to try and get the map to move the opposite way to the map. Best example is shown at the link below.

Example ( Chromazone imaging )

It doesn't have to have the z index feel to it. Not really needed on a world map. But yeah if anyone knows of any tutorials or has any idea on how to do it and has the code to hand , i would really appreciate it.

I found the following tutorial on it

Tutorial

Im gona give this a go and see if it works otherwise if you have a better way of getting an effect like this, let me know.

Cheers for any help.

Keep it cool

Moving Content On Mouse Movement
I thought I could handle that by myself, but seems I can't...

What I'd like to achieve:
A very simple scene with let's say 9 rectangles, 3 rows, 3 columns. When I point at let's say the first one (upper left) all others should move a bit away. The ones which are further away should move a bit more.

Basically every rectangle should move a bit away when I'm not pointing at it, but when pointing at it should get back to it's original position.

I hope someone understood what I mean, I seriously suck in explaining things.

This is pretty simple, right?

Moving Image On Mouse Movement
Looking to do an effect similar to the map in the top left corner of this page. Can anybody lead me in the right direction??


http://www.nec.com/

Moving Image On Mouse Movement
Looking to do an effect similar to the map in the top left corner of this page. Can anybody lead me in the right direction??


http://www.nec.com/

Moving A Clip Horizontal With Mouse Movement
Hi,

Im trying to get a movie clip to move left and right depending on where the mouse is and to also loop (if you keep going in one direction it will start at the beginning again seamlessly. That part is fine.

My question is how to get it to speed up the more over to one side you go and then to slow down when you head towards the centre.

I have attached my fla.

any help much appreciated.

Thanks

Previous Frame Overlay..... Frame By Frame By Frame By Frame By Frame By.....
Hello there.

I am trying to create a small animation just as a little bit of fun. I would like to do it frame by frame.

I have a simple question to ask about frame by frame animation.

When drawing frame by frame, you would usually have a transparent overlay that you can compare with the next frame. Is there a way to do this in flash without having to copy the previous keyframe into a new keyframe on a new layer?

Thanks Emdiesse

Moving From Frame To Frame
Can someone tell me the script for moving from frame to frame?

Example:
I'm on frame 1 and I'd like to click on a button and that button takes me to frame 33.

PS:
Please to speak to me like you would to a child, bucause I'm not the brightest bulb when it comes to flash.

Trying To Make Movie Play Frame X To Frame Y Then Switch To Frame Z..
Hello,

I was hoping someone could help me out with an issue I'm having. I have my flash on multiple scenes, and would like to play an animation when clicking on the navigation button before switching to a different scene.

I'm halfway to accomplishing this.

Here is what i used


Code:
_root.gotoAndPlay("changepage1");
_root.onEnterFrame=function(){
if(this._currentframe=="changepage2"){
gotoAndPlay("Home2",1);
}

}
The above code is on a blank keyframe. Changepage1 is the start of the animation and Changepage2 is the end of the animation.

Upon clicking the navigation button it plays the above scenes.

However it doesn't change scenes to scene "Home2".

Thank you in advance for all your replies.

Moving Images On Mouse Over..
Hello Good People.

Does anyone know of a tutorial on how to get say a image to move around on Mouse Move function or onCLip effect.

I have a photo in a frame that i want to be able to move around slighty when rolled over, up, down left and right.

Any ideas??



Thanks

ck

[MX] Movement On Frame
Hi I got a little problem with movement. I already understand the script to make a movieclip move very simple actually I've got it in my head right now.

PHP Code:




onClipEvent (enterframe) {
if(Key.isDown(Key.RIGHT)){
_root.ball._x +=4
}
if(Key.isDown(Key.RIGHT)){
_root.ball._x -=4
   }
}







Very simple.
Now what I can't seem to ever get right is to do that on the frame. Can someone please show me how.
Thankyou.

Control Frame Movement
Ok, I am a beginner, and I want to make a basic picture slide show. The best way I thought to do it was to have every picture in its own frame, and have a "next button" that when pressed will move to the next frame (picture).

So, I have the button ready, as well as all the pictures in the frames, but I don't know how to do the action script part. Basically, first I have to stop the frames from changing automatically, then on a button press go to the next one.

Thanks.

If No Movement Go To Some Frame... SetInterval?
Hello,

I have an animation that the user must interact with and if the user doesn't interact with this then the animation will go to some frame.

Do I achieve this by using setInterval?

I bit lost... please advice.. thank you.

Scrolling/sliding Images Based On Mouse Movement
Does anyone have a link to a good tutorial on creating scrolling/sliding images that react to the users mouse movement? Ideally, the images would scroll right to left on their own but when the user mouses over they would control the images scrolling left or right. Any help would be great.

Can Someone Point Me Toward Some Tutorials On Scrolling Images On Mouse Movement?
hi,

im fairly new to flash, and am trying to create a picture gallery. i got the images scrolling smoothly using button rollOver, but would like the gallery to work on mouse movement. like this
http://www.yugop.com/ver2 the menu system on this site is what im trying to achieve, but not in such a complex form. all i want to do is get images scrolling from left to right on the mousex movemnet. when the mouse is in the middle i want the scrolling to stop. the further the mouse moves from the center the faster the images scroll (depending on mouse direction), untill they stop scrolling at the last image. i want this scrolling to happen in set area, once the mouse is outside this area i want the mouse to behave as normal.

any direction towards tutorials that could help me learn would be greatly appreciated

thanks

yashombi

Moving From One Frame To Another...
Hi,

I am having trouble moving from one frame to another. I have one frame with a movieclip in it. I have an onpress event that uses goToAndPlay(2) to move to the next frame. Only trouble is, it doesn't move there.

I've attached my .fla if anyone could take a look and let me know what I'm doing wrong...

[F8] Help Moving Frame
Hi

I have a .fla and part of a navigation bar which when hovered over expands and when you click it should open another scene but for some reason it does not do anything when i click on it apart from get smaller.

The file can be found here

Thanks

Moving From One Frame To Another
Hello, please:

On the 1st frame of timeline I have a keyframe with only one button (A), and on the 2nd frame I have another keyframe with another lonely button (B). Now, when I click on A I would like to move the current frame to 2, and when I click on B, move to frame #1.

In previous Flash I could use on(enterFrame) { gotoAndStop(1); }

However, in ActionScript 3 I have to register the EventListener first and there's is my problem because it can't see button B, which is in another frame.

Is this even possible in AS 3?

Thanks!

Moving From One Frame To Another...
Hi,

I am having trouble moving from one frame to another. I have one frame with a movieclip in it. I have an onpress event that uses goToAndPlay(2) to move to the next frame. Only trouble is, it doesn't move there.

I've attached my .fla if anyone could take a look and let me know what I'm doing wrong...

Moving From One Frame To Another
Hi,

I have three key frames with three pictures. Suupose I have an action "go to and stop " on keyframe 1 to go to keyframe 3. When I click pic 1, it straiight goes to 3. is it possible it first go to pic 2 and then go to 3, so that i see  pic 2 sliding by and then see pic 3.


Thanks

Images Moving Acording To Mouse Movements?
The website http://dillingerescapeplan.com/ has a very good flash template, which has a moving image in the background, which moves according to which way your mouse goes.

i.e. If your mouse moves left, the image goes right, mouse goes right, image goes left.

I was wondering if this would be hard to recreate? I would like to use something similar on my website.
Could someone please point me in the direction of a tutorial or tell me how to do it please?
Remember, I have never made a flash template before, or even used flash, but I am eager to learn. I know HTML and PHP is that helps?

Thanks Guys,
-San

Images Moving At Different Speeds Based On Mouse
I'm trying to create the effect on the dreamers site (http://the-dreamers.com) during the main intro where all the kids are sitting in the theatre and the one kid is smoking. Anyone know how to create this effect that has different images move at varying speeds based on the mouse location to show depth. Anyone know some tutorials on this or care to show me code on how this can be done? Thanks!

Images Moving At Different Speeds Based On Mouse
I'm trying to create the effect on the dreamers site (http://the-dreamers.com) during the main intro where all the kids are sitting in the theatre and the one kid is smoking. Anyone know how to create this effect that has different images move at varying speeds based on the mouse location to show depth. Anyone know some tutorials on this or care to show me code on how this can be done? Thanks!

Playing A Movie Clip On Mouse Over And Continue To Last Frame On Mouse Out
Hi All,

I have a movie clip on the timeline which is an animated mouseover button

Basically what I need to do is for the movie to be stopped at frame one when there is no mouse over and loop continuosly when I do have mouse over then on mouse out i want it to finish it's frames playing from where ever it was at when the mouse was moved out to the last frame and then display frame one so it is stopped again ready for a new mouse over.

Something I have found difficult to work out is that whilst it is doing the "out" play to to last frame, if you put the mouse back over again, it starts from frame 1 so looks like it jumps so i need the mouse over to also read what frame it is currently playing so that it can continue its endless loop from that frame to avoid it jumping about.

I hope that makes sense, it's really difficult to describe in words.

Here's the movie clip's action as it is now.

on (rollOver)
{
this.gotoAndPlay("over");
}
on (releaseOutside, rollOut)
{
this.gotoAndPlay("out");
}

ok so in the movie's timeline itself, the label "over" is a frame containing another movieclip which is basically a continous 30 frame loop and my movie timeline is stop();

so, on (rollOut) it plays at label "out"

I have placed a copy of the movie loop at the "out" frame which plays the movie slower at the end to make it a nice wind down stop

what I thought to do in action script is to read the current frame that the movie loop is at and make so the "out" position movie starts its playing frame from that frame number until it reaches the end frame where it jumps back to frame one of the timeline with the first stopped frame.

I've seen a command something like this below used to get the current frame number and take it away from the total to continue playing from that point, that's not totally right for what I am doing but it shows me the sort of thing i need to write but i don't know how to write an actionscript to read the current frame from the movie1 whcih is playing and start playing movie2 at "out" from that frame number?

on (rollOut) {gotoandPlay(_totalframes - _currentframe); }

maybe there is an easier way to get this to work, i've seen lots of similar examples on the web but nothing that specifically plays a lopp and then continues to the end on mouse out. it sounds simple but I've tried all weekend to do it without success?

Can anyone help me please?

Thanks,
Terrence.

Movement Using AS - When _y = 300 I Want It To Goto Frame 15 -what Did I Do Wrong ?
My fla looks like this:

On frame 1 I have a button and an MC, on frame 15 I have some text.

What it does is this:

When the movie starts u see the mc moving from _Yposition 0 to _Yposition 100.
When the button is clicked it moves to _Yposition 300
When the _Yposition of the mc is 300 it needs to go to frame 15 but it doesnt

Here's the script of the mc:

onClipEvent (load) {
max = 100;
}
onClipEvent (enterFrame) {
y = _y;
dif = max-y;
slow = dif/4;
_y = slow+y;
if (_y>=300) {
_root.gotoAndStop (15);
}
}

And here's the script for the button:

on (release) {
_root.mc.max=300;
}

Now what did I do wrong here ???
[Edited by kweker on 06-28-2001 at 07:22 AM]

Timeing Frame Movement Using Actionscript
Please Advise

I need to move from one movie to another in the timeline of the SWF.
Is there an alternative way using actionscrpt, instead of streching the frames of the movie out for x amout of frames, to load another movie or scene?

In essence I want to say in x amout of seconds load this movie or scene.

hopefully this is clear
thanks in advance!

Random Movement Between Frames, But Not Again In The Same Frame.
Im trying to get this file jump between frames, untill it has visited all frames. And not going to a frame more than once. I have done it whit array, but it doest work the way it should..

Can anyone see the broblem? I'd be wery happy, if some would have asolution to this broblem..

btw. It needs to work in Flash 5

thx!


-Hyväveli

GotoAndPlay(frame) Messing Up If Frame Is The Current Frame
I have a bug with my buttons and I am trying to figure out how to fix them. I have about 5 different buttons that will take me to different places on my website (http://www.usu.edu/drc)(don't judge me on design, I am not the greatest web designer)

Anyway, if I click on the students button it will load the students swf and take me to that frame in my mc. If I am already in the students frame, it loads the next frame in my mc instead doing nothing, which is what I want it to do. Anybody know why this is?

Now to fix the problem. I am fairly new to AS and was hardcoding my frames, but as I add frames and move things around, I have to go in and change the frame numbers, hello frame labels. Well, I now have the different frames labeled but I need to check if _currentFrame is equal to my frame label. I don't know how to do this.

What I was thinking is something like this:

if(_currentFrame.name == "students"){ don't do anything }

I don't know if this would work or if this is even the right syntax. Anybody have an idea on this one? Thanks for the help.

Jason

Moving Objects In More That 1 Frame
How do i move objects in more than one frame at the same time? they are on the same layer.

Textfield Value Gone When Moving To Next Frame
Damn those pull-down menus! I built a series of pull-down menus with flash5. They use a 1 frame mc on the main timeline, with a textfield that stores the chossen value. The pull-down options are stored in another embedded mc with 2 frames. First frame is blank, secon one contains the options. When the menu is clicked, the reading head moves to frame two to show the available options. Once an option is selected, a value for the textfield in "../" is set (mytextfield="Monday"). In the same time, another variable is set and sent to "_root" (myvar=1). The text Monday shows in the pull-down menu, and 1 is stored in the memory. So far so good... When the next and then the back buttons are clicked (one frame), the pull-down menu is back to blank, however myvar remains 1. the only way arroun I found was to put mytextfield on the main timeline, not in the mc, but that is not an option since I would have to change the script every time I use a new instance of the menu.

source file here http://www.smashmachine.com/clients/pull_down_days.fla

How can I make the menu to show "Monday"?

Thanx, Smash
ps: right-click/save link as to download, then rename file from .htm to .fla if you have problems

[Edited by smash on 03-21-2002 at 08:13 PM]

Loading A Moving On A Frame
Hello everyone,

Just wondering if it possible to load a movie on a frame instead of having to put the loadmovie action in a button that has to be clicked for it to load the movie.


Cheers.

Dean.

Help On Moving To Frame Numbers
Can I make a embedded SWF file goto a set frame number or play a movie clip on th click of a HTML button?

UGH Stop Moving To The Next Frame
Alright, you guys, I'm getting very desperate here and in need of a kindly individual(s) to help me.

What I'm trying to do is create a simple multiple choice quiz with an MC that pops up when none of the selections have been made. I'm sure there's a much simpler way to create what I've done, but I'm not terribly experinced in AS. So, forgive me and have patience.

Okay, first:

I created an empty text field. Then added AS to the first frame that gives it 1.

Then, I have the answers to the multiple choice. Each question is in an MC. Outside of these are buttons.

The buttons tell the question mc to move to the second frame, which has the AS that adds 1. When it's clicked again, it subtracts 1, then gotoAndStops at frame 1.

Then, the submit button check to see if the value of that text field is equal or less than 4.


Second, and most importantly:

If none of the selections are made, the value inside the txt box is still one.
When hit the submit button, I want it to remain on that frame and make this one MC's alpha 100. Otherwise, it'll eather go to q3_n(question 3, wrong) or q3_y.



Code:
on (release) {

if (Number(clickCount_txtbox) == 1)
{
stop();
plsanswer_mc._alpha=100;
}

else if (Number(clickCount_txtbox) == 4)
{
gotoAndStop("q3_y");
}

else if (Number(clickCount_txtbox) <= 4)
{
gotoAndStop("q3_n");
}
}
But, what always happens is it goes to q3_n when the value is 1.

How do I keep it from moving to that frame and to set the alpha of plsanswer_mc too 100?

[F8] Moving A Picture In A Frame.
Hello there everyone need a bit of help with a flash presentation i am making.

Im making a flash map of a town that has buttons on it but i need to move it around within a frame (like a picture frame). So i need a way of moving it around. as the map is bigger than That way when people have the map they will be able to move it them selves and see the buttons on there. So i need a way of linking buttons to the map so that when you move the map the buttons move with it.

Thanks guys

Delay In Moving To Next Frame
I'm new to Flash, and I'm creating a quiz. When an answer is clicked, I want a sound to play (gives feedback on whether the answer was correct or not) and the next frame to appear. This all works fine. However, I want the next frame to appear only after the feedback sound has finished playing (about 2 seconds). Is there any way to do this. I've been trying lots of different stuff (like setinterval stuff) and nothing is working quite right. Thanks in advence for any help you can provide!

Help Moving To Next Frame After FLV Plays
I don't know much about Actionscript 3. With that said, I'm hoping somebody can help me figure out how to solve my navigation problem.

I'm working with the following Actionscript in my first frame:
function showVid1(evt:MouseEvent):void {
vid_comp.source ="videos/alzheimers.flv";
//vid_comp.width = 253;
//vid_comp.height = 204;
//vid_comp.x = 0;
//vid_comp.y = 0;

}


alzheimers_btn.addEventListener(MouseEvent.CLICK, showVid1);


function showVid2(evt:MouseEvent):void {
vid_comp.source ="videos/cancer.flv";
}
cancer_btn.addEventListener(MouseEvent.CLICK, showVid2);


function showVid3(evt:MouseEvent):void {
vid_comp.source ="videos/heart_disease.flv";
}

heart_btn.addEventListener(MouseEvent.CLICK, showVid3);


function showVid4(evt:MouseEvent):void {
vid_comp.source ="videos/polio.flv";
}

polio_btn.addEventListener(MouseEvent.CLICK, showVid4);It works just fine, but now I need to have a short movie clip play after each segment and stop there with the movie buttons (showVid1-4) still available. I would have written stop, gotoandplay before, but I'm unsure of how to achieve this effect in Actionscript 3.

I'm wondering A) Is creating a another keyframe containing my movie and navigation the best way to go
B) If yes, how can I get the movie to move to that keyframe after each one of the videos plays.

Thanks for your time.
Andy

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