ActionScript 2.0 :: Movieclip_alpha Be Controlled By Separate Buttons?
Aug 27, 2005
I would like to have one movieclip_alpha be controlled by separate buttons (database_btn, and itself). The actionscript I am using works but there are two issues.I want to make the one movie clip mouseover for the sub menu only appear after the main menu movieclip is moused over then disappear when when moused out from the sub menu.the 4 buttons in the submenu do not work when mosued over.
View 14 Replies
Similar Posts:
Apr 18, 2010
What I need to do is assign 5 separate dynamic text fields to 5 seperate buttons and at the same time to those same five buttons i would like to add 5 images that i would be able to change merely by swapping out the images in the file theyre in on the server.I would also like to get a nice transition between the images...ALSO i want to dynamically load the images for the buttons that will be used for switching from picture to picture(which im thinking i will be able to do after i know the how to do point the aforementioned things.)
Through tutorials I've found around the net I've been able to get most of the parts together... but i get lost because what they show you for AS2 they don't for AS3 and vice versa, at least that ive seen.so... I guess my question is... would i need to set up 5 seperate dynamic text fields on the stage and then set each one of them to one of the corresponding button. If so what AS code would i need to use to do so. And if not what would i need to do?
The other part of the question would be I know about the UILoader... would i be able to use it as my buttons and images, if so would i need 5 seperate ui loaders for both the Thumbnail buttons and the images or is there a way that would be better to do it? and once i do that would i do the transitions using frames and tweens like with AS2?
View 2 Replies
Mar 31, 2007
Okay I've tried everything, but I'm sure this is simple. I created this popup scroll within a flash movie that I'd like to have the contents of change according to the button that is pressed. I gave the buttons instance names and the diffeent content is labeled and on different frames. However, the btns all go to the last frame regardless of the labels?! Do I need an if/else statement?
View 5 Replies
Jun 4, 2006
I basically made movie clip buttons to navigate through my site, has sounds and all...now all i need those buttons to do is to call out a .swf file from a certain directory. I know how to do this with the traditional button, but not with a movie clip button since it requires a function. This is what I have tried and failed with so far:
// PROFILE SECTION BUTTON //
this.profile_mc.onRollOver = function(){
profile_mc.gotoAndPlay("_over");
[code]....
View 3 Replies
Nov 24, 2009
I am using Flash CS4 with ActionScript 3 and I am fairly new at it. I am struggling with two things.
1. How can I start a movie clip while scrolling over a button? I know how to start a movie clip when a button is clicked.
2. How can I use multiple movie clips for seperate buttons?
[URL]
View 3 Replies
Sep 18, 2009
I used the following script (tutorial) to add the movement functions to the up and down buttons, which have instance names "moveUp" and '"moveDown".The thumbnails are in a vertical looking MC named "rocket".I have no problem scrolling up and down, but I want to limit the functionality of the buttons when the rocket is between coordinates Y=0 and Y=-1200How can I add that to this script?
Code:
moveUp.onPress = function() {
rocket.onEnterFrame = function() {
[code].....
View 3 Replies
Sep 26, 2003
OK on my main timeline i have 2 buttons each one loading 2 seperate SWF's. When I load the first SWF it works perfect. Now when I load the other SWF. on the same level it replaces the 1st SWF. Now comes the problem, when i go to reload the first SWF the error accurs. "256 levels of recursion were exceeded in one action list. This is probably an infinite loop. Further execution of actions has been disabled in this movie."
I understand the concept of the error. I just can not fix it. Is it a matter of having everthing on one SWF. file. Or is there an unloadMovie script I can use.I found this script from Actionscript.org. Posted it there...but didn't get ther help i needed.
[Code]...
View 4 Replies
Feb 11, 2011
I have 4 buttons on the stage and each button is correlated to a seperate movieclip.
btn1 - mc1
btn2 - mc2
btn3 - mc3
btn4 - mc4
I want each mc to appear when it's corresponding btn is clicked but it has to be the only mc on the stage...meaning whatever mc was currently has to disappear. I've toyed with numerous was to get this to work but I know there's a more code efficient way to do this than the code I have below. And I don't want to use any timeline.
[Code]....
View 3 Replies
Mar 19, 2011
I'm fairly new to flash so please excuse my lack of knowledge...using AS3 basically I had a situation arranged where when a button was clicked and flash would then display a certain image by jumping to a label on the timeline, and by clicking a different button a different image would be shown. this was working pretty well but for layout reasons I had to split these buttons and the timeline that they relate to up into separate movie clips. obviously the buttons dont do anything now, but what i'm hoping to find out is how I can link these items back up despite them being in separate movie clips. is this possible? i'm just wanting them to do the same thing they did when they were both in the same movieclip.
View 10 Replies
Nov 19, 2011
I want to have several different words to appear on my stage with their own buttons.
Code:
Process.visible = false;
Cycles.visible = false;
stop();
function playMovie(event:MouseEvent):void {
play();
} startButton.addEventListener(MouseEvent.CLICK,playMovie);
[Code] .....
View 1 Replies
Jan 28, 2010
I've got the following code working perfectly so that when I click the 'mc.fullscreen_btn' the movies goes full screen. When I click 'mc.fullscreen_btn' again the movie returns the the browser. However ideally I would like it so the user has to click a deferent button to return the movie to the browser (ie: _root.topmenu_mc.displaymenu_mc.displaymenuON_mc.b rowser_btn).. is this possible using the code base I have?
// Full Screen
var stageListener:Object = new Object();
stageListener.onFullScreen = function(bFullScreen:Boolean):Void
{
[Code]....
View 1 Replies
Sep 24, 2004
i used this tutorial on smart clips for navigation but it didn't quite finish what i needed.
http:[url].....Its a great tutorial but it doesn't tell you how you can like the buttons independantly to seperate scenes or external swf's.
View 2 Replies
Jul 2, 2009
how to move an object built from multiple symbols (including movie clips with interactivity) in a timeline other than the root? I tried putting them all in another symbol, but then the interactivity was lost.
On a boad scope, what I'm trying to do is animate a "digital multimeter" out of the way when not in use, and vise versa.
View 5 Replies
Aug 19, 2009
If I create a new flash AS3 file and create two blank keyframes in my actions layer I can add actions to each keyframe separately no problem. I can then easily switch between the actions frames from the menu bar on the left of the actions input panel. However if I try and do this on any of my projects i've been working on for a while when I create a new blank keyframe in the actions layer and try to add actions to it, I get sent straight back to my first actions keyframe and not a nice blank page. Can I even apply seperate actions to seperate keyframes?
View 6 Replies
Jan 17, 2011
This is NOT the same as my last thread as i am after three and NOT ONE as last time. In the attached movie there are three seperate movies loading into three seperate tweens. Please note that i am happy with this movie as it is, and do not want to change anything about it except for the script itself. It refurs to three seperate clips "b.a","d.c" and "f.e". What i want is for the script to incorperate all three clips under one name of "mc" And instead of have three seperate widths, "width 1","width2" and "width3" i want the script to also incorperate all three widths and heights into just one name of "width" and one name of "height".
View 9 Replies
Oct 11, 2009
I want a site to have background music, but when I attach the music to the file it makes it quite large ...3 meg and the site is slow to load. Is there any way of having the music separate from the flash file and still have start stop music buttons?
View 2 Replies
Jan 5, 2010
I have a _mc made visible by, instruct_mc._visible = true;Once the _mc is visible I would like to have a button 'within instruct_mc' that will make, 'instruct_mc._visible = false; again' is this possible? If so what would the AS2 command have to be because the button dose nothing until I take it out of ' instruct_mc
View 4 Replies
Apr 17, 2009
i was wondering if theres a way to link the amount and direction of an objects rotation to the mouse position. I want it so if you move the mouse far to the left the object spins fast anticlockwise but if you move it to the center it stops.
View 2 Replies
Jan 5, 2011
I'm fairly new at flash development but here goes: is it possible to use xml to drive the layout of a flash website in CS3? Perhaps using ActionScript 2 or 3? In particular, I'm looking to be able to for e.g. create a news ticker where changing the XML allows you to 1) change the text and appearance, 2) framerate can be controlled, 3) interpolations between key frames can be specified (e.g. linear interpolation)
View 1 Replies
Jul 21, 2008
I have one MC with the following AS:
stop();
this.onEnterFrame = function() {
if (rewind == true) {
prevFrame();
[code]....
but no such luck with the second MC. Even if I apply the same AS code to the second MC, it still won't work.
View 1 Replies
Feb 13, 2009
I'm currently working on a site that is a mixture of Dreamweaver and Flash. I have some Flash movies that are in DIVs in DW. I need to have some links in those Flash movies that can control visibility of other DIVs. In other words I need a link in the Flash movie to work like DWs Show-Hide Elements feature. Is this even possible? I'm using DW CS3 but Flash MX 2004.
View 2 Replies
Oct 29, 2009
I know that the functionality of the addChildToStage and deleteChildFromStage functions works fine because I have tested it here:URL...the nav adds a new instance of "player" to the stage and the big red button deletes "player".I want to start the movie with a mc_CopyBlank on stage and then have the nav issue play(); command to the movie clip held in "player" then have the current frame of that clip trigger the addChildToStage and DeleteChildFromStage functions that I've written here.[code]
View 3 Replies
Oct 28, 2010
Is there a way to create an automatic slideshow gallery that is controlled by the thumb position on a scrollbar?
I'm a FLash AS3 noob and I'd like to place an article or story inside a scrollpanel. At certain points of the story, I'd like the thumb (on the scrollbar) to trigger an event that transitions to a new image inside the slideshow gallery.
[Code]...
View 3 Replies
Mar 27, 2010
how to stop an _xmouse, _ymouse action? I built a carousel with some movieclips controlled by a _xmouse action but I would like to stop their movement when the mouse is over them, and also activated it again when the mouse rolls out.
View 1 Replies
Nov 20, 2009
I am trying to get to grips with actionScript (a beginner) and have created a SWF that calls in a FLV file. From the SWF I control the FLV wit a Play, Pause and Mute button. This works great. BUT now the client wants just a compiled SWF file only. So from this I take it they just want a single SWF file that acts like a video player but in truth is a Flash movie with a timeline effectively embedding the original FLV.
I have tried writing my own code and scouring sites and tutorials but to no avail. What I have done so far is to import my FLV to a Movie symbol in the library. I have put a stop() command on the actionscript for that symbol. I have created three buttons, which at present do nothing. I placed the symbol on the main timeline and exported and it basically plays the video with no control. Now I hit a wall. What I want seems simple in thought but is baffling me in practice.
Now I have the Movie symbol (video) playing I want some control again via the three buttons mentioned earlier. I really want the movie to auto play when loaded and the play button to resume the playhead if the movie is paused. As you will see from the code although I have set up a variable for the mute button I have no idea what I should code to do that or indeed if it is possible. I am on my umpteenth itteration trying to get code to work but I really need help. I don't even know if what I am asking is possible.
Code: Select allfunction onMetaData(data:Object):void
{
play_btn.addEventListener(MouseEvent.CLICK, playMovie);
pause_btn.addEventListener(MouseEvent.CLICK, pauseMovie);
[code]....
View 3 Replies
Mar 13, 2009
I have several buttons I need to turn on and off (visibility and alpha) but the function I have written that determines if a given button should be turned off works based on a few variables. I need to be able to control which button is turning on and off with these variables.
I have tried this ("btn" + i)._visible or alpha but does not work. how I can accomplish this?
View 11 Replies
Jul 23, 2009
I have been learning flash and Actionscript 3 for the past couple of weeks and i have progressed nicely with making a site. I have some images being loaded into a MovieClip which are dynamically loaded from on XML. I can set it up so clicking left/right arrows navigates through the pictures and loops or i can set it so it automatically plays without user intervention.
What i would like to do though is have the images loaded into the MC via XML but have it so that when the Actionscript analyses the XML code it creates a small circle on the stage for each image (child) and then each circle is clickable to that particular image. I know this sounds confusing so i am i just seeing if it's possible and if so how. I can easily create frames and links for the circles but i would rather it be done through AS3 if possible so that it is easily updatable.
View 3 Replies
Jan 10, 2010
I am looking for a very easy way to make a video player which just controled by the scrubbar. I have tried the Componet Seek Bar but that doesn't enable the viewer to scrub the bar. I am wanting to use the Scrubbar Player to view 3d models. At Zbrush they have a Scrubbar player [URL] once there click on one of the pics to view scrubbar turntable viewer. Would love to be able to show my models in this fashion.
View 2 Replies
Jul 2, 2009
I have created this spinning diamond flash with a dynamic frame rate controlled by the mouse cursor. it spins from the right to the left if the cursor is at the left side of the diamond and vice verse, and also the further away the cursor is from the middle of the diamond, the faster it spins.
it works perfectly awesome in Firefox and by itself, but when it's in IE, the cursor loses control of frame rate, so it spins at the highest frame rate regardless where the cursor is at. I used nextFrame(), prevFrame() to do the winding and rewinding job, and frame rate gets changed in ENTER_FRAME. I've heard some say that IE ignores frame rate per frame? is it true? if so, how do I fix it?
View 3 Replies
Jan 5, 2011
1) I wan't to do a fullscreen videoplayer that listens to the keyboard and that plays a videoclip on demand. I will not use menues or onscreen buttons.
It should work almost like a Video DJ application or a audio sampleplayer but for video. So; when I press any one of maybe ten keys the corresponding videoclip should be played.
I intend to run this locally using Flash player hence not on a browser or on internet so I'm not really limited by bandwidth. I'm on CS4 Flash Professional.
2) Is there a IDE, a runtime development enviroment, for Flash aimed for AS? Despite working on a daily basis with digital media for many years incl. coding in php, javascipt, asp.net, etc I still have a tough time understanding Flash and AS3.
3) A part from traditional keyboard input is there a way for Flash and/or Flashplayer to listen to an non-standard USB input, say a touchpad, joystick etc?
View 1 Replies