ActionScript 3.0 :: Activating Buttons With A Controller Button?

Feb 24, 2009

I have a row of movie clips which act as buttons with an inactive state, active state, selected state etc. What I am seeking is kind of like a controller button which when clicked will activate or de-activate this row when clicked. I thought the best way might be to set frame labels and add a goto sript for the controller button to make each button go to the activate frame when the controller button is clicked.

View 4 Replies


Similar Posts:


ActionScript 1/2 :: Activating/de-activating Buttons?

Mar 9, 2009

I want to create some AS to disable and enable a button.Let's call this ButtonX. I want this button to appear disabled at first, and then allow the user the option of enabling this button(ButtonX) by clicking another button. Let's call this ButtonY. I cannot get this to work. I am attaching the code I am trying. I have this AS added to ButtonY and ButtonX is the instance name for the button I want to de-activate-activate.

View 7 Replies

ActionScript 3.0 :: Activating And Making Buttons Contact To Their Pages?

Aug 27, 2009

I get this in my output when I click on my pre-loader button, which works great and sends me to the home page... but when I get there the code I wrote for my portfolio page to click on portfolio and have it take me to the portfolio page isn't working.... It gives me the faollwoing output error....object reference.    at Website_fla::MainTimeline/Website_fla::frame1()[Website_fla.MainTimel ine::frame1:13]

[Code]...

View 6 Replies

ActionScript 3.0 :: Activating Buttons And Loaders From Child SWF Page

Jun 15, 2009

Background: I have an Index.SWF that loads a Home.SWF. The website has essentially three layers, top layer is menu bar, middle layer is content, bottom layer is links to home page and e-mail. All the buttons on the top and bottom layers work. When I go to add a new button to the middle layer of Home.swf. I get all kind of errors associated with not referencing the right objects or having undefined objects.

I believe my structure is as follows:
> Index
>> Home
>>> Any other SWF through "myLoader" object and buttonclick function

Here's the code:
Select allvar myLoader:Loader = new Loader();
addChild(myLoader);
function buttonClick(event:MouseEvent):void{
gotoAndStop(event.target.name);
this.myLoader.load(new URLRequest(event.target.name + ".swf"));
[Code] .....

So here's the structural question, "where do I define my new button?" and what code do I use so that the new button is placed on the home page works with the myLoader and buttonclick function located in the parent page? I have the same structural question, if I decide to add a loading status message, if "the pitch" button is clicked.

View 2 Replies

ActionScript 3.0 :: Activating Multiple Buttons In A Scrolling Movie Clip?

Oct 10, 2011

I've been trying to figure this out all day, with no luck - so I'm hoping someone here can help a girl out with her code .I'm working on what is essentially a 'character profile' page, in which you can scroll across the page to see different characters, and clicking on them will bring up a short profile.However, I've set up these different characters as separate buttons within the scrolling movie clip and can't seem to get them to activate.Here is the code I've used so far:

--
p1.visible = false;
p2.visible = false;
var tar:Number;[code]....

It doesn't work.However, using tutorials and trying different things, all I have achieved is making all the profiles appear at once, or having them activate when you press anywhere on the movie clip.In AS2, I would have used myMC.b1 to target it,

View 9 Replies

ActionScript 2.0 :: Activating And De-activating Loaded Movies?

Jan 7, 2009

Am working on a flash AS 2.0 project where am loading movies from the same folder. my code goes like

on (release) {
loadMovie("HAD.swf",2);
}

problem is the swf loads infront of the main movie but the main movie's links are still active.

View 4 Replies

CS3 : Keep Button From Activating Until After Mc Plays?

Jul 17, 2009

I have a simple movie clip of fading in text displaying on page with a sound. also have a button that allows user to go to the next frame. It is an exercise for students that basically goes like this: object presented in each frame, spelling (text) for that object fades in on mc with sound attached to mc, then button activates to let them move on to next. Since they are trigger happy, I don't want the button that allows to move on to activate on the frame until AFTER the movieclip and it's sound have played out (which is like 2 seconds so not a long wait) - otherwise, they would just keep clicking next and not listen to the material presented (it's very young children).

How do I set this up? I knew it's likely very simple, but I'm a newbie. Of course, I could always just do it on the timeline, but I have a ton of material, so am trying to use actionscript to be more efficient. for even younger kids, am considering setting this up so they can move to next frame through any keypress. I know how to set up a certain key, but not ANY key.

View 2 Replies

ActionScript 2.0 :: FLV Controller And Delayed Button Appearance

May 20, 2010

I'm having trouble with a controller I'm using with an FLV. I am a newbie when it comes to actionscripting. I have a project I'm working on that contains a 86:50 minute FLV and towards the end I will have a separate button appear to click on. The code I am implementing was from a different project that utilized the same functions but with a 4:49 minute FLV. I have an example of this at [URL]. As you can see the controller is set up for the 4:49 minute FLV and when the timer gets to 5:00 minutes that button comes in. I need to make the FLV play the whole way through and then at a specific point have the button appear and I can't seem to do it. Below is the only code I can see that pertains to this section.

scrub.onPress = function(){
scrub.startDrag(false, -365, scrub._y, 49, scrub._y);
dragging = "true";
}scrub.onRelease = function(){
var newNum:Number = (scrub._x - -365) * .7625;
mainVid.seek(newNum);
scrub.stopDrag();
dragging = "false";
[Code] .....

View 1 Replies

ActionScript 1/2 :: Get Movable Button To Stop Activating?

May 18, 2009

I'm trying to get my movable button to stop activating. It's looping (up/over/down/hit).
 
loupe_mc.onPress=function() {
this.startDrag();
};
loupe_mc.onRelease=function() {
this.stopDrag();
};

View 3 Replies

ActionScript 2.0 :: Button Activating Movie Clips?

Mar 11, 2004

Ok so, I have a button called btnEnter and its instance name is enter. Then, I have a movie clip called mcRotatingDot and its instance name is center. These two work so that when the mouse is over the button, the dot blinks. When the mouse is no longer over the button there is a fade in from alpha 0 to 60 of the dot. It all works fine, here is the code that I am using on the movie clip:

onClipEvent (load) {
//this sets the initial properties of our clip
this._xscale = 75;
this._yscale = 75;[code]...........

1)How can I make the movie clip blink with pure action script? And not having to do a stupid tween on the movie clip's timeline.

2)Can a button activate more than one movie clip? Because I am also trying to make the same button (aka. btnEnter, instance name enter) to change the rotation speed of another movie clip to spin faster. Here is the code for the other movie clip called mcRotatingCircle instance name outter:

onClipEvent (load) {
//this sets the initial properties of our clip
this._xscale = 1000;[code]............

Yet the movie clip will not spin faster on roll over. The only thing that I thought could go wrong is that there is another instance of the same movie clip mcRotatingCircle, named middle on the stage. I tried absolute addressing the outter instance, but it just won't work.

View 2 Replies

ActionScript 2.0 :: Button Activating Movie Clips?

Mar 11, 2004

Ok so, I have a button called btnEnter and its instance name is enter. Then, I have a movie clip called mcRotatingDot and its instance name is center. These two work so that when the mouse is over the button, the dot blinks. When the mouse is no longer over the button there is a fade in from alpha 0 to 60 of the dot. It all works fine, here is the code that I am using on the movie clip:

onClipEvent (load) {
//this sets the initial properties of our clip
this._xscale = 75;

[code]....

View 2 Replies

Advanced Button Usage - Activating Two Separate Areas

Apr 14, 2011

Basically I am trying to link two buttons so that two separate areas activate as one button including with rollovers etc. I am creating a flash application that features a series of tabs along the top of the page that when rolled over, will light up. When clicked on, these tabs will take the user to a different page. My problem is that I have an image on the left hand side of the application that features areas of the image that will take the user to the same place. I wish to link the button rollovers so that when the user rolls over the tab, the image will light up and vice versa. I have been unable to find a solution to this myself - the closest I came was making the area one button, but due to the distance the image and tabs are apart, the whole screen becomes one big button!

View 1 Replies

ActionScript 3.0 :: Activating A Class File With A Button Click?

Mar 19, 2009

I have a class file which prints a flash object. I don't want the print job to activate until a button is clicked. The print activation is a package and referenced by the document class. How would I code this to activate only when a button is pressed/ Currently it activates when the movie is played.

View 14 Replies

ActionScript 2.0 :: Activating SWF Frame From Flash Button In Dreamweaver

Apr 20, 2004

I have a set of flash buttons in a left hand frame in dreamweaver in the right hand frame I have a swf file, is it possible for the buttons to control the swf! For example I want button 1 to make the swf jump to frame 1, button 2 make the swf jump to frame 2 ect....

View 1 Replies

ActionScript 2.0 :: Activating A Swf Frame From A Flash Button In Dreamweaver

Apr 20, 2004

here is my problem I have a set of flash buttons in a left hand frame in dreamweaver in the right hand frame I have a swf file, is it possible for the buttons to control the swf!!!!! for example I want button 1 to make the swf jump to frame 1, button 2 make the swf jumb to frame 2 ect ect ect

View 1 Replies

ActionScript 2.0 :: Media Controller Component Pause/Play Button?

Nov 10, 2009

I'm having trouble controlling the PAUSE and PLAY states of the pause/play button located on the Media Controller component, while streaming an .mp3 file.

- I set the button to the PLAY state (which shows the pause button) in the authoring enviroment. (Good).

- I set the media, and play the mp3 file. (Good).

- After the .mp3 file is done playing, the button goes back to the PAUSE state...DESPITE a fucntion I have that loads my next mp3 file).

I would like to be able to control the button states to reflect that the player is still playing. (ie. showing the pause image)

I thought "audioController.playing = true;" would do the trick...but it's not working correctly.Below is my code:

//Loads and Plays Audio

Code:
function loadAudio() {
audioPlayer.setMedia("audio/" + audioNames[_global.nCurAudio]);[code]...............

View 0 Replies

ActionScript 2.0 :: Activating Button In Send Info To PHP Order Form

Sep 13, 2009

I'm trying to finish off a Flash menu that was done for my website & I'm a bit stuck - New to this game. Basically I have a menu made up of 5 items, each item leads to another list which has a "datefield", "nemericstepper" & "order" button. what I am trying to achieve is when the "order" button is pressed the "date" & "number" information is sent to my existing order page, customers details are then entered in the required fields & this is sent including the "date" & "number" via my existing PHP script to my email.

View 0 Replies

ActionScript 2.0 :: Button Has A Controller In Order To Make It Interactive As The User Rolls Over And Out?

Jan 1, 2007

I have a button that has a controller in order to make it interactive as the user rolls over and out. The button is actually a movie clip, containing a video that simply has a build in and out effect which is triggered by the following:

this.music_bk.onRollOver = function() {
music_bk.gotoAndPlay("_over");
}[code]....

View 7 Replies

ActionScript 2.0 :: Multiple Buttons Activating Multiple Items?

Jan 5, 2010

I have a map with a list of items to the side. I want the list to work as buttons and highlight both the button and the particular image on the map... and when you click you link to a certain location.I also want to be able to MouseOver the map, have both the image on the map and the corresponding 'button' from the list highlight - but when you click, you go to a different location than if you would have clicked from the list.I have it set up - but something is conflicting. Here is how I have my code set:

Code:
BUTTON_ONE.onEnterFrame = function(){
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.nextFrame();[code].......

View 1 Replies

Actionscript 3 :: Flex Alert Control: Activating The "default" Button On Enter/space Key-press?

Dec 17, 2009

No matter what I try, I can't seem to fire the click event on the "default" button in an Alert control in a Flex 3.4 application.

[Code]...

View 1 Replies

Inject Controller Into Another?

Aug 23, 2011

I have a controller that receives an event with some data. As a part of the processing this s new data it needs to modify a collection in another controller. Is it a bad idea to inject a controller into another controller to modify this collection?

View 2 Replies

ActionScript 3.0 :: How To Get Controller

Jul 13, 2009

i'm trying to use org.simplemvc for my first mvc project. i'm getting it piece by piece, but I can't figure out how to get the controller from a class of mine that extends view.I thought it would be as simple as just calling a method from it's super, view, the controller getter. but it tells me the property doesn't exist, so I'm thinking it has something to do with the interface.[code]

View 1 Replies

Professional :: Can't Resolve When Using The Controller?

Mar 15, 2010

I'm using CS4 and encountered an issue that I can't resolve when using the controller. When an audio file (MP3) is on the timeline, I hit play on the controller to listen to audio but when I hit stop, the play head stops while the audio continues to play. I also noticed that when scrubbing the timeline you can't hear the audio.
 
Has anyone encountered this? This issue doesn't happen in CS3 and since a lot of my work deals with syncing graphics to narration I have to go back to CS3, which I don't want to do.

View 3 Replies

ActionScript 2.0 :: Set The Speed Controller?

Jan 9, 2009

I have one flash movie. I have to set speed controller for this. Like: Regular, Slow and Speed. How can I set the speed controller.

View 2 Replies

ActionScript 2.0 :: Activating A Swf Without Click?

May 20, 2010

I' am building a web site where i have a navigation which also works by pressing the (4) keyboard buttons, up, right, down, left. When the web site loads the keyboard navigation works only after i click somewhere on the screen.

The same things happens in Safari, Firefox and I.E.Any thoughts about how can i make this work without the need to click somewhere on screen before it works?

View 6 Replies

ActionScript 2.0 :: Activating An Animation?

Mar 13, 2004

this is what I need, I made a 3d model of a PC, What I want is to clic on the monitor and turn on the computer, I have the animation of the computer monitor turning on, but I don�t know how to activate it....

View 10 Replies

Creating Flash Controller For Website?

May 26, 2009

Rather than build a controller for each video on our website, my IT dept wants me to build one controller that all videos can access. How do I do that and do I need a script? I know nothing about scripting and I'm a newbie in video publishing

View 3 Replies

ActionScript 3.0 :: Volume Controller And External SWF

Jul 8, 2009

The first is that when loading an external swf in my main SWF I get this in the output window:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at audio_fla::list_1/frame1()
at flash.display::Sprite/constructChildren()
at flash.display::Sprite()
at flash.display::MovieClip()
at audio_fla::MainTimeline()
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at audio_fla::MainTimeline/frame1()

But it still works. Its an mp3 player. The other problem is that the loaded SWF has a volume controller. When I test the external SWF by itself it works fine. When I load it on my main SWF when I start to drag the handle on my volume slider and MOUSE_UP outside the handle it still keep dragging the handle.

The code of my main SWF is:
import caurina.transitions.*;
var _currentCategory:String = "";
var percent:String = "";
var loader = new Loader();
loader.name="videoLoader";
[Code] .....

View 1 Replies

Use A Wireless Controller For Flash Presentations?

Jul 22, 2009

I'm trying to use a Kensington wireless remote to advance the slides in my presentation...

View 1 Replies

Flex :: .NET Webservice In MVC - Access (controller)?

Jun 22, 2010

I am working on a flex application which makes calls to an .NET webservice. I am trying to follow the MVC design pattern. I have created a model, which stores all information received from the webservice. The webservice itself is created by actionscript in the controller. The view in my case, consists of various user-defined components (multiple .mxml files).

The Model is a singleton class, and each of the views accesses a getInstance of the model. The question is how do i access the webservice (i.e. controller) from each of these components? Does the controller also need to be a singleton class just like the model? and let each component get an instance of the controller in order to access the webservice?

View 1 Replies







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