ActionScript 3.0 :: Movieclip Unclickable After Setting Z But Rollovers Work
Nov 22, 2009Why is it that my movieclip is unclickable after i set the z property? rollovers and all work fine. I'm setting the z of the parent movieclip.
View 1 RepliesWhy is it that my movieclip is unclickable after i set the z property? rollovers and all work fine. I'm setting the z of the parent movieclip.
View 1 RepliesOn the stage I have 3 objects on the stage which are on top of each other:
top: transparent button (which controls the mc underneath)
under this button: an image which is a mc
under this image: a graphic background with text that describes the image, and a new trans button which will send the users to a separate url.
Problem:The button to go to the url does not work.
To make things simply, I have the top button setting the alpha of the mc to 0% onRollover, in order to view the text. And reset it to 100% on RollOut.
how I can still get this effect with the rollovers, and get my url button to work too?
I'm creating an interactive that consists of 3 maps, each on its own tab. On each map, there are various circles representing data for a particular city.I want the circles to display a pop-up containing text when you roll over each one. Since I don't want the plain old buttons, I'm using 2-frame movie-clips, where the second frame represents the mouse-over state and a text box fades in as follows:
[Code]...
This all works fine, and I can get multiple buttons working on the first tab (frame 1) by grouping them all into a movie clip, as follows:
[Code]...
The problem is when I try to use the same or a similar with a different set of buttons on the second tab (frame 15). I put a similar set of actionscript on frame 15. The buttons seem to accept the buttonMode = true command, but I absolutely cannot get the rollovers to display. I've tried using different function names for the MOUSE_OVER and _OUT events, to no avail. I get no errors and nothing shows up in Output -- it just acts as if there's no rollover to display.Do I need to somehow put all the AS on Frame 1? Is it an issue related to ENTER_FRAME in the rollovers?
- im creating an interactive piece which requires 100 movie clips to be created which im treating as buttons. Each of these movie clips need a rollover and rolloff command and also need to load an external jpg into a movie clip on press. (along with few other actions)
Code:
_root.eh_2.onPress = function() {
var BGalpha = _root.BG_mc1._alpha;
[code].....
now i've divided my scene with frames labeled. say: at frame 1, it's my about section. At frame 20, its my photo section, etc. on the same scene, i've created my menu to navigate to these sections. each button calls a frame label, and the proper ainmation happens, and then, you're in the section you chose. NOW... (i have a feeling i should of thought about that earlier...) i'm trying to figure out a way to tell my button to be unclickable (and hightlighted) while you're in its section, until you leave that section. i know that my site is probably NOT constructed the way it should be. but starting over isnt really an option, since i have a deadline...
View 6 RepliesI have a HBox with no background, but with some children. Behind the HBox is a button which need to be clicked. The button is unclickable at the moment because the HBox is on top of it. I need the button to be clickable and still have the HBox on top of it
View 1 RepliesI have many buttons in my interface --so I have many eventListeners running.
I want to set all non-button graphics to displayObject.mouseEnabled = false.
This works with some of the graphics. but not all.
The main shape (the big purple faceplate) of the interface continues to react to the mouseclick.
[URL]
I am using this code to set the volume of my Flash video.
public function setVolume(loudness:Number):void
{
// soundControl is a SoundTransform object
[code].....
I have an array that I have set up that would go with a series of movie clips, and I am trying to combine them with functions that upload xml pictures--firstImage(), secondImage(), and so forth.Here is the array that I have:
ActionScript Code:
var currentButtonId:Number = 0;
var buttons:Array = [btn1, btn2, btn3, btn4, btn5, btn6];
function buttonRelease() {
[code]...
It enables and disables the movieclips depending on which one is clicked.
I want to make the xml functions (firstImage(),secondImage()...) go with the buttons in sequence. So once btn1 gets pressed the firstImage() xml function gets called.
Why wont AS3 work with any of the combo boxes text boxes button etc? swithcing the publsih settings from AS2 to 3how can i get these to work? and why are they still avalible formthe components menu when you in AS 3 publish settings if they dont work?
View 1 RepliesI am using Flash CS4 on Windows XP x64 and onion skinning does not work when publish setting are set to Actionscript 3. Is there a workaround for this or am I just SOL?
View 2 RepliesI've got a problem with following example code in flex:
Test.mxml:
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" [code]..........
When I start the application and press Tab to cycle through controls, the focus jumps to the first text box, then to the first radio button of the first TestComponent, and then directly to the last textbox missing the second and the third TestComponents.
UPD: Explicitely setting tabIndex does not work either:
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"[code]...............
I have a scroll bar ( fl.controls.UIScrollBar ), which i create dynamically in a class, and add it to the stage.
[Code]...
I downloaded this free flash website template for building my website, all the actionscript in the template in AS3, i tried using xml flash - photogallery (for which i found the tutorial on this website.) in my website, but while publishing the site, it gives error, i guess it might be compatibility issue as the script that i found on the website might be in AS2 and that might be clashing with AS3 script of the template. Coz when i change the publish setting to AS2, the AS3 part of the script does not work. Individually both script in their respective separate files work but when combined together the site goes bonkers. as i want the photogallery part exactly as it is shown on this site which is with the thumbnail preview.
View 1 RepliesI am trying to use the Flash + Set the browser to a desktop agent on the Galaxy Tab.
mWebview.getSettings().setUserAgentString("Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.11) Gecko/20101019 Firefox/3.6.11");
mWebview.getSettings().setPluginsEnabled(true);
So the issues is, when the UserAgentString param is enabled, flash player wont load as many websites like Iplayer don't recognise the browser in the WebView.
This may be a bug in the Samsung browser. Anyone have any desktop agents that the WebView will accept whilst enabling flash?
I've made a site where an iframe calls to a top navigation element, with a javascript drop down menu. I have it working where the menu drops over a center flash element, but even when the menu is not "dropped" - any element in that area on the flash does not respond to clicks.
I've changed z indexes, and now i cant seem to get the flash file to even be ontop of the iframe -
heres a link
[URL]
heres the code -
<body>
<div id="wrapper"><center>
<div id="headerwrap">
[Code]....
I'm using Flash CS3 and want to create a custom ComboBox. I've followed the steps outlined in "Editing component skins in a new document" (http:/[url]...), but every time I get to the step where I drag the ComboBox Assets folder from the HaloTheme.fla library into my library, if I test movie at that point my combobox has become an unclickable white rectangle with no label, button or anything.
View 2 RepliesI have a movieclip that acts like a button. When clicked on, the movieclip starts to animate, but how do I make it "unclickable" when playing? I dont want the animation to start everytime is is clicked on, only when in "idle".
View 3 Replieslike my movie container in my _root, how do i set it`s alpha to 0? does this work: _root.contMovie.setAlpha(0); ? or is there any other possibility to set it`s alpha to 0?
the best thing for me would be if i could fade it to alpha via AS command, i can't control it direct because the movieclip is 2 levels above....:-)
I have created movieClip through AS3 code but I need to set target on my movie clip. How to do .
private var myClip:MovieClip=new MovieClip();
// now i need to sent target on this myClip.
I want to change cursor to pointer when I hover movieclip in the stage. I try this
MovieClip(this.myContainer.myStage.getChildAt(i)).buttonMode=true;
MovieClip(this.myContainer.myStage.getChildAt(i)).useHandCursor=true;
I'm trying to do use the following code:
ActionScript Code:
var my_color:Color = new Color(closeText);
my_color.setRGB(0xFF0000); // any color
I get the following compiler errors though: Symbol 'closeText', Layer 'Layer 1', Frame 1, Line 11046: Type was not found or was not a compile-time constant: Color. Symbol 'closeText', Layer 'Layer 1', Frame 1, Line 11180: Call to a possibly undefined method Color.
I have an MovieClip star with a setup var X which is set to 0 for the thing I'm duplicating, namely star
===Star======
onClipEvent(load){
x=0;
}
If I duplicate the clip a bunch of times so I have Star0....N. Is there a way to set the x value here to the i value of the loop for each object duplicated. Such that star0 will have its x=0, star2 has its x=1 and so on.
setProperty wont do it or _root["star"].x=i;
I have a movie clip, behind a mask, and I am trying to control the position it moves to, dependent on the menu button pressed.
If I am honest I am trying to copy the effect used in www.lostinbeta.com when pages are loaded.I have got everything working, but currently I do not know how to set the finishing x position depending on the button pressed.
I think the issue is becuase I am trying to use the technique to make the movement slowdown as it reaches its correct co-ordinates.
I'm having trouble defining the width of an mc based on an entry in an array.
Here's what I have...
var arr_obama:Array = new Array();
arr_obama[0] = {Name:"mc_obama1" , Frame:"obama1", Width:"34"};
arr_obama[1] = {Name:"mc_obama2" , Frame:"obama2", Width:"143"};
arr_obama[2] = {Name:"mc_obama3" , Frame:"obama3", Width:"23"};
[Code]....
Basically what I want is when you rollover the mc obamaxx it makes the mc_bar the width as defined in the Width entry in the array.
I have three mc's that look like cd's Three instances of the same movie clip. They go into a player onRelease. If I click on a cd it looks if any other cd's are clicked. If any of them are clicked then it tells them to gotoAndPlay (thisKeyFrame) in that cd movie clip (which would be a simple tween and will look like the cd comes back out). I tried setting variables in the cdMovie clip like on the first frame onValue="no" but once it goes in and stops the onValue="yes". And then I had AS on each cd looking if the onValue variable is yes or no in each one of them.
View 2 RepliesI am using SWFObject to embed a Flex (4.1 SDK) made application in an HTML page like in the code sample below:
var swfVersionStr="10.0.0";
var xiSwfUrlStr="playerProductInstall.swf";
var flashvars={};
[Code].....
Why isn't the transparency of the Flash background occuring?
i have a orgin server and 2 edge servers and a load balancer
first off im confused in each edge server i set them to be remote, rtmp and changed the routeentry to <RouteEntry>*:*;96.44.***.***:1935</RouteEntry> on both servers
orgin server is just local
what my question is im streaming to orgin and its getting sent to 1 edge and other edge is doing nothing no traffic the stream i set it this way url:
'rtmp://173.254.***.***/live/live_test',
which is the 1 edge thats working if i setup another channel pointing to the other edge server ip adresss it doesnt work.. what am i doing wrong isnt all this supposed to be load balanced or am i missing steps...or did i do it wrong on the flash player config.
I am struggling trying to get this variable set. I want to set a variable number to be the frame number of a movieclip. this is what i am trying with no luck:
var fn:Number = movie_name._currentframe();
trace(fn);
I have looked at different online examples but cant find an example like this one.
I have a MovieClip with white background and would like to change it's Background color and alpha settings at runtime. How can I?
View 1 Replies