ActionScript 3.0 :: Hide FLV Skin Until A Button Is Clicked?

Apr 2, 2009

I have an instance of the flvplayback component in my movie. I have the player skin set to "autohide" and "autoplay" set to false. Instead of having users click on the play button of the skin to start the movie I have incorporated a larger play button in the middle of the screen. The set back here is that when a user mouses over the movie to click on the larger play button the flvplayback skin appears as well.

I'd like to basically tell the skin "Hey don't appear on mouseover until AFTER the large play button is pressed." What code would I need for this in Actionscript 3?

View 10 Replies


Similar Posts:


Actionscript 3 :: Hide Video Skin When Playing, Otherwise Show Skin?

Jun 10, 2011

I'm using the default CS4 FLVPlayback skin, mainly the SkinOverPlayMute.swf. I know there's a skinAutoHide option, but because I don't want it to auto play, I want people to see a play button when they first encounter the video (so they don't think it's just an image). But the skin needs to hide when the video is actually playing (so the video doesn't get blocked by the controls).

In other works - when video isn't playing: skin showing; when video is playing: skin hide.

View 1 Replies

ActionScript 3.0 :: Close Or Hide Button When Clicked?

Nov 26, 2009

I need to show or hide a button once it's clicked.I tried to google it but all samples where AS1 and AS2 related.

View 7 Replies

Hide / Show Content From Layers When Button Is Clicked

May 14, 2009

I have an animation that shows items highlighted in a diagram. As the items are highlighted, the audio will play (to explain the animation). because we are creating this for people with possible disabilities, we also created captions with text for the audio. So, in separate layers, we created speech bubbles and text that is synchronized to the animated actions on the screen. this will also be synchronized with the audio. We want to have a button (close captioning button) that when users press it, they see the text captions and if they press it again, they don't see the text captions. my questions are

1) what will be the easiest way to create the effect i am looking for?
2) what actionscript command will i need for the button's actions?

View 14 Replies

ActionScript 1/2 :: Arrays N Loops - Movieclips To Hide Except For The Movieclip Similar To The Clicked Button

May 30, 2011

[Code]....

I'm stucked here. I want the font type "BauhausMedium" to apply when ft_01 is clicked, font type "Haettenschweiler" to apply when ft_02 is clicked, etc... at the same time I want all" ft_01a", "ft_02a", "ft_03a" movieclips to hide except for the movieclip similar to the clicked button. E.g. if "ft_02" was clicked ft_02a to be visible =true and rest to be visible = false (ft_01a, ft_03a).

View 5 Replies

ActionScript 3.0 :: Hide All Mc Except One (the Clicked)

Dec 22, 2011

I have 20 movieclips and when one is clicked the other nineteen must dissapear. This is my code, 
 
function What_I_clicked(event:MouseEvent)
{
hidemc(event.target.name);

[Code]....

View 1 Replies

ActionScript 3.0 :: Hide All Mc Except One (the Clicked)?

Jun 26, 2008

I have 20 movieclips and when one is clicked the other nineteen must dissapear. This is my code:

function What_I_clicked(event:MouseEvent)
{
hidemc(event.target.name);
}

[code]....

View 3 Replies

ActionScript 2.0 :: Active Button - Stay The Rollon Color After It's Clicked And Then The Rolloff Color When Another Button Is Clicked?

Sep 29, 2008

How can I make it stay the rollon color after it's clicked and then the rolloff color when another button is clicked?

[Code]...

View 7 Replies

ActionScript 3.0 :: Detect Wheather The Button Is Clicked Or Not And Disable It If Clicked?

Jun 9, 2010

I have 4 navigation button and like home, about us etc....  And i want to disable home when it is click and cannot clicked it until the user click another button first. means if a visitor is at home page then home navigation is disabled, and all other are active, and when they click at aboutus button then the pages goes to the about us page and the about us button is disabled and other get active. I want this solution in AS3 with oop concept.

View 6 Replies

ActionScript 2.0 :: Buttons To Stay Orange Once Clicked And Only Roll Out Back To Grey When The User Has Clicked On Another Button In The List

Feb 7, 2007

I've got about 6 buttons laid out, one on top of the other in a list format. In their normal state the buttons are grey in colour, when I rollover them, the buttons flash and turn to orange. Now, what I need to happen is this: I want the buttons to stay orange once clicked and only roll out back to grey when the user has clicked on another button in the list. I've been told that the best way to do this is via adding a listener, however I am a little unsure as to how to go about this. I've checked the flash help file and have a basic understanding of how listeners work...but can't really wrap my head around applying it to this situation. Perhaps I will need to have all the buttons as separate broadcasters?

View 2 Replies

ActionScript 2.0 :: Nav Button States - Button To Stay In It's Active State Until Another Button Is Clicked

Dec 17, 2004

I have a menu with five nav buttons (atcually MovieClips). Each has three frame labels: "on", "stay", and "off". The rollover and rollout animations play flawlessly, but I'm at a loss as to how to give each button a sticky "active" state. I'd like the button to stay in it's active state until another button is clicked, then I would like it to play it's "off" animation. Each MC has this code:

[Code]...

View 2 Replies

Flex :: Define A Control And A Skin Which Can Be Reused With Different Controls Inserted From Outside The Skin?

Mar 15, 2011

SkinParts are a great way to add event handlers and logic to an object that is instantiated in the skin, away from any business code. Often, though, I find myself wanting to do the opposite, and define parts that will be used in reusable, skinnable containers in the parent mxml files which will be inserted into the skinned containers.

What's the best practice for when you want to be able to define a control and a skin which can be reused with different controls inserted from outside the skin? Edit: A better way to put this might be that I want to use something that works a little bit like a SkinnableContainer, but that isn't limited to one area where content can be placed.

View 1 Replies

Flex :: Mobile Skin Overriding HostComponent Of Parent Skin?

Feb 10, 2012

I extend Button to create ImageButton, and I extend ButtonSkin to create ImageButtonSkin. But, when I define hostComponent like this:

public var hostComponent:ImageButton

I get an error that there is a conflict with hostComponent:ButtonBase inside the ButttonSkinBase. How do I extend a skin AND provide a new hostComponent for it?

View 1 Replies

Actionscript 3 :: Hide A Button After Clicking Another Button In Flash?

May 18, 2011

I am using actionscript 3 to make a point and click game. On frame 1 there are two buttons, button 1 and 2. On frame 3 there are two buttons, button A and B. I want it so that after I click button 1 on frame 1, button A on frame 3 will be hidden or when I click button 2 on frame 1, button B on frame 3 will be hidden. The buttons that are hidden do not do anything when you click them.

View 2 Replies

ActionScript 3.0 :: Targeting A Button In Flv Skin?

Jun 1, 2009

I want to be able to target a button that is within the skin for a flvplayback component. This is my first real adventure with AS3 and..... (feel like I want to scream!)In the library for the skin I get "fl.video.skin.FullScreenButtonOnOver" and paste this into the main timeline with some code like this.

stop();
function edward(event:MouseEvent):void{ trace ("the button was pressed");}
fl.video.skin.FullScreenButtonOnOver.addEventListener(MouseEvent.CLICK , edward);

which comes back with the error "Access of undefined property fl" - which doesn't surprise me really.What do I do to target taht button

View 7 Replies

Flex :: Set Skin To Null For Button?

Jan 20, 2011

How to set skin to null for button?

button = new Button();
button.useHandCursor=true;
button.buttonMode =true;

i want to set button.skin = null

View 1 Replies

Flex :: Add Tooltip In The Button Bar Skin?

Jan 20, 2011

I am trying to add tooltip in the skin of button bar button but not able to do that, what to do?

View 1 Replies

Different Icons For The Same Button Skin Flex?

Feb 9, 2012

I have the skin below for my buttons:

<?xml version="1.0" encoding="utf-8"?><s:SparkSkin
xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo"

[Code]...

I was wondering how I can add a different image for different buttons which have the same skin.

View 2 Replies

ActionScript 3.0 :: Can't Access Button In Flv Skin

Jun 1, 2009

I am using a flvplayback component which I have attached to my own skin.

I want to be able to target the full screen toggle button since I can't get the fullscreen to work and others posts have led me to think that it might be better to code that bit myself.

For the skin fla the button that I want to get at has this written in the properties class box "fl.video.skin.FullScreenButtonOnOver"

I figured I might be able to get at this from my main timeline so I added the code below :

Code:
stop();
function edward(event:MouseEvent):void{
trace ("the button was pressed");

[Code].....

View 1 Replies

Caption Button In FLVPlayback Skin Disappears

Feb 24, 2011

I am working in CS5/AS3 with an FLVPlayback component and a pre-made skin with some custom colors. It is a skin with the caption button included (SkinUnderAll to be exact). I'm using Timed-Text files for the caption content. The captions work just fine. All other buttons on the skin show up, but the toggle button isn't showing up.

I checked all of the linkage in the skin's FLA, checked the AS that creates the FLVPlayback and FLVPlaybackCaptioning objects. All seems fine there.

I've checked the paths and SWF locations to be sure all are in the right places.

I've also included a SKIN_LOADED event listener to get around the default captions-on issue. I'm just not seeing what the issue is. I'd prefer to not go back through my code and make a custom control panel with button components. Started this in CS3 and moved the file to CS5, so I'm not sure if there's something I overlooked in the documentation that spells this out.

View 4 Replies

Flex :: Button - Use The Disabled-skin Defined In The CSS

Apr 13, 2010

I have a CSS file containing the following definition :

[Code]....

Now, I want to use the disabled-skin defined in the CSS, as the upSkin of b1. So something like b1.setStyle("upSkin","Tab.disabled-skin"); But I am struggling with the exact syntax of the second argument for setStyle. What should I use for the second argument for setStyle method?

View 1 Replies

Flex :: Add Icon On Spark Button Skin?

Jun 11, 2010

I am trying to add different icon on different buttons. I have my skin file ready but not sure if I have to create different skin class for different button. It sounds inefficient.

<s:Button id="pass"
width="110"
height="35"

[Code]....

View 2 Replies

Flex :: Keep 'down' State For Spark Skin Button?

Oct 20, 2010

I have spark skin a button with up, down, over, and disable states in a button component to create a modular. Is there a way when the user press and hold a key, the button will remain in 'down' state?

The button component include skinclass:

<?xml version="1.0" encoding="utf-8"?>
<s:Button xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[Code].....

View 1 Replies

Actionscript 3 :: Where Is Spark Skin Button Size Set

Dec 10, 2011

I've skinned an hSlider's thumb with an image. But the image is pixelated, as though it's been forced to resize.It's just a pretty circle with a radius of 30 px.The other thing that happens is that instead of the new button being cleanly bisected by the track, it is just below the track, tangential to it. So now I have to reposition it by modifying its y value in SliderThumbSkin.mxml? And (presumably because its registration point is at upper left) when I slide it all the way to the right, it goes right off the end of the track until its left edge is at the track's right edge. This might also mess up calculations for the hSlider.value property.

You'd think you could just apply the skin and it would replace the button, but seems that both its position and size are being wrongly manipulated.Is the thumb's size automatically reset or resized somewhere? Is there a way to do this correctly and cleanly?

EDIT: Here's code for the entire test project:

//HSliderTest.mxml:
<?xml version="1.0" encoding="utf-8"?>
<s:ViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009"[code]......

View 1 Replies

Actionscript 3 :: Button Skin Not Showing Up With AddElement()?

Mar 26, 2012

I created a class in actionscritpt that extends the spark.components.Button, as I will be loading a bunch of buttons at runtime. I have a SkinnableContainer.mxml file that the spark buttons will be loaded into.When I use the addElement() method within that mxml file like so my custom skin for my button does not show.

[Code]...

View 1 Replies

Professional :: SteelExternalAll Skin Is Not Available In Skin Menu CS3

Feb 26, 2011

My client wants SteelExternalAll as the skin for her swf. It's not on the skinning menu in CS3. Is it possible to download it somewhere?

View 2 Replies

Flex :: Use SWF Symbol As Up,down,up Etc Skin In Skin File?

May 14, 2010

How can we embed the over,up,down etc skins defined as sybols in a .swf file... i mean in skin file how can i specify those symbols to be used as up,over,down skins.

View 1 Replies

ActionScript 1/2 :: How To Get Fullscreen Button Into Video Player Skin

Jul 18, 2011

Any way of building in a fullscreen button right into the skin of a video player using actionscript 2? Or perhaps have access to a source file? I've seen the skins with fullscreen with AS3 with CS3, but I need tut on skins with fullscreen using AS2.

View 1 Replies

Flex :: 4: Create A Skin Class For Each Button If Want Different Icons?

Jun 4, 2010

i have a sequence of buttons and each button has its own icon. I was wondering if I have to create a Spark skin file for each button in order to assign its icon.

View 1 Replies

Flex :: Button Skin Disabled Alpha Setting Ignored?

Nov 14, 2011

I attempted to build a Flex 4 skin for a Spark button, typical practice. I adjusted the colors and other styles to my liking, including using dot selectors to specify alternate colors and such during different states. However, these are all ignored when the button is disabled. Regardless of what I do, in the disabled state, my button always has the wrong color and is alpha'd to 0.5 (even if I specifically state that alpha.disabled="1"). All the other skin states work as expected. This is my custom skin. If it were working correctly, it would appear to have no shadow or highlight, and would be a gradient grey color. Instead, it appears as a 50% alpha version of the up state (shiny green).

<?xml version="1.0" encoding="utf-8"?>
<s:SparkButtonSkin xmlns:fx="[URL]"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:fb="[URL]"
minWidth="21" minHeight="21" alpha.disabled="1">
[Code] .....

This is the code used to create and then disable the button:
_action1Button = new Action1Button();
view.actionGroup.addElement(_action1Button);
_action1Button.enabled = false;

The error was that _action1Button is not the actual button, rather, it's the container of the button. Doh! Switching it to _action1Button.actionButton.enabled = false; fixed the issue.

View 1 Replies







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