IDE :: Adding A Invisible Button On The Banner?
May 13, 2009I tried adding a invis button on the banner ( by the way the banner is moving) but for some reason it wont let me add Action script to it to link to a url
View 3 RepliesI tried adding a invis button on the banner ( by the way the banner is moving) but for some reason it wont let me add Action script to it to link to a url
View 3 RepliesI'm trying to think of the best way to add event listeners(mouse events) to an invisible object which is quite large. A straight forward way I can think of is probably setting the object's alphy property to 0. However since that object is very large, it will probably have a huge impact in performance. Setting invisible to flash however, will stop it listening to events.
e.g. I have a massive area 4000x4000, but I only want the 2000x2000 area to listen to events.
Other methods I can think of is to have the smaller area in the layer below the big area, covering it from view, though I'm not sure if the lower layer can pick up events? another way is maybe just have the big area listen to events, but in the handler I'll write some code to check if its within the boundary of the smaller area.
I have made a Flash banner for my website using CS3 but I wanted to add a hyperlink to it so that when someone clicks on my banner it will bring them to a different page on my site, kinda like the way ad banners work on most websites on the net. I have the official Adobe CS3 Flash manual as well as another one on Flash CS3 just as thick but I can't seem to find anything in either that explains how I can do this.
View 6 RepliesI have created a basic animation in Flash CS5 and I need to add a clickable URL link to it. I've tried a few tutorials that looked promising, but none of them solved my problem. I've tried a number of things including converting parts or all of the images to simple buttons or movies and linking them that way as well as typing in code for ActionScript 2 and 3, none of which were successful. The animation plays correctly when viewed in my browser, but when I click on it, the link does not work. I would prefer that the entire banner be clickable to take viewers to the linked website rather than using hyperlinked text. Also, when I open the Code Snippets window, it is empty, no matter what image or frame I've selected. Do I need to import code snippets from somewhere or am I simply going about things the wrong way?
View 4 RepliesI am having trouble adding a flash banner to my website and I am running php5. I want to use it to help my site sell the new iPad 2. Which product do I need to use to create the flash banner and display photos that I am selling on my auction?
View 1 RepliesWhat's the quickest way to add/replace an image in a rotating banner using CS5.5?
View 14 RepliesI created a view cart button in PayPal and need to link it to a button in my fla. I know you can do this in AS but I haven't had any luck in my searches. I'm using CS3.[code]
View 2 RepliesI working on a flashbanner. It is a dynamic textfield called "regnr" where the user is supposed to add a registration number (of their car) before clicking the send button. This code is on the button:
Code:
on(release){
//getURL("[URL]"+regnr.text);
getURL(_root.clickTag+regnr.text,"_blank");
}}
It works when the domain is hardcoded but doesn't work when I am using the clickTag. Is it possible to add variables like this to a clickTag? How could this be done to actually work?
I am a Flash novice who has worked through a couple of the standard introductory books on Flash in Actionscript 3 and some of the online tutorials. However I cannot work out how to do the following: A button A (I know how to design buttons including invisible ones) is on the stage. A user clicks on this button which then causes a text to appear at another location of the stage. This text includes an invisible button B. The text tells the user to click on it with the result that the text, including the invisible button B, disappears but if the user reclicks button A then the text with button B should appear again.
View 3 RepliesWe recently decided to add a flash banner to our site which calls an xml file which loads the price and name for 5 separate products and keeps looping through until a user clicks a product. Unfortunately, it appears each time the file loops it calls another iteration of the xml file -- so if a user opens our homepage and walks away the xml file could be called 100s of times. My question is, can we set up the actionscript so the xml file is called just once?
View 1 RepliesI have a flash banner and I am looking to insert a count down time and when the timer runs out I want the timer to fade out and start a new movie clip.
PHP Code:
//Create your Date() object
var endDate:Date = new Date(2010,5,15);
//Create your Timer object
//The time being set with milliseconds(1000 milliseconds = 1 second)
var countdownTimer:Timer = new Timer(1000);
[Code] .....
I want to incorporate a scrolling image banner into my website, and found a great tutorial on youtube which works well.I can't post a link unfortunately.It is a pretty basic image scroller that has a series of images scrolling across the screen in an infinite loop. Direction is controlled by mouse position (extreme left or right), and it will stop when the mouse is positioned over an image in the center area.Here's the code:
var myVar:Boolean;
this.addEventListener(Event.ENTER_FRAME, onEnterFrame);
function onEnterFrame(e:Event) :void[code]....
After trying to figure this out through forums such as this for days, it seems that my answer is to use XML (which I do not know, and which I think would require completely starting over).Is there any way to do this in AS3?
Again, I'm a novice user, but understand the basic animation tools of flash to feel comfortable using it as the platform to make this work. I'd like to be able to switch out images/links as necessary, and feel good about my ability to use flash to do that.
I am making a video player based on the Video Basics tutorials Lee put up a while back.
I am working on a custom controlBar with autohide. Basically, when i mouse over the video area I want them to pop up, and when I mouse out of the video area I want them to disappear. I have setup the controlBar movieclip itself with "show" and "hide" frame labels. Each one plays a fade in/out sequence a few frames long, no big deal. That is the easy part and works fine.
In order to detect the onRollOver and onRollOut events for the video area I made an invisible button on top of it called "butt". It works fine too.
Code: Select allbutt.onRollOut = function() {
trace("out of video");
controlBar.gotoAndPlay("hide");
};
[Code].....
Invisible button layer above controlBar layer: When i roll onto the video area the controlBar pops up, but I cannot access the buttons on it (play, rewind, etc) because they are now underneath the invisible button that monitors the rollOver and rollOut of the video area, which apparently wont let anything under it be clicked. How can I gain access to these buttons?
Controlbar layer above Invisible Button layer: When I roll onto the video area the controlBar pops up fine, but once I mouse over the control bar flash thinks I am leaving the bounds of the invisible button and tries to hide the controlBar right away, which causes me to "re-enter" the invisible button, so it just bounces back and forth between showing and hiding the controls.
How can I monitor the video area and still have access to the buttons on the controlBar once it pops up?
I created a new AS3 document (550px by 400px) and added the following code to the first frame.
However, when I run this, I see nothing painted on the screen at all, the screen remains completely white.[code]...
i am working in cs3 flash, but saving my files to flash 8. i am having an issue with getting an invisible button to work. i never had this problem in flash 8. could you please look at the very simple file attached below and let me know WHY i am getting error messages saying: "warning: this movie uses features not supported in flash 5 player" ?? and "scene=scene 1, layer= invisibleBton, frame=405:Flash mx button instance name"
View 3 RepliesI am having a problem linking an invisible button to a url. I have 3 invisible buttons that have an action script as follows:
button1.addEventListener(MouseEvent.CLICK,clickHan dler1);
button2.addEventListener(MouseEvent.CLICK,clickHan dler2);
button3.addEventListener(MouseEvent.CLICK,clickHan dler3);
function clickHandler1(event:MouseEvent):void{
navigateToURL(new URLRequest("mywebsite"));
[Code] .....
After I upload the files, I can see the hand icon when I mouse over them, but when I click on that spot nothing happens. I have two text links on the same page that do work. One is an email link and the other is a url link. I have check the button names to my code and they do match.
I am using Flash Professional CS4. I made 2 buttons (2 rectangles,each turned into a symbol of type button). I now want when I click 1 button that the second becomes invisible. Is there a way to do so?
View 2 RepliesI have one button instance that stretches across many frames, and I would like to make it invisible in some of the frames and visible in others. How do I do this with ActionScript 3?
View 1 RepliesI have two motion-tween animated movie clips used as "buttons" which I would like to link to various html pages on my site. Using invisible buttons works, but I can no longer see the animation. If I put it under the movie clip layer, it no longer responds. Is normal, or should I place the invisible button within the editable movie clip?
View 4 RepliesI'm sure this is something easy that I'm missing, but I can't figure it out. How do I make a button invisible? I need it to be invisible through frame 43 of my movie. I have tried changing the alpha to 0, but it's not letting me change that, except in the edit button mode which changes it for the entire duration and not just through frame 43.
View 1 RepliesI have invisible buttons on a movie clip that is loading swfs onto a parent movie clip. I hope I am current in the terminology. Are a parent and root the same? Is saying root absolute and parent relative? I'm digressing.So, this this._parent.gotoAndPlay("contact form"); is going to the keyframe named "contact form" and it will stop there. What I want to happen, is, I want the other invisible button named aboutmeMC2 to go back to the keyframe named "skip" so my contact form will no longer show up and it will load the external swf
ActionScript Code:
on (release) {
this._parent.gotoAndPlay("contact form");
[code].....
I have a home page, with 5 swf's that are called into a container on the main. Now when I click on the home button on i need for the embedded swf thats up to become invisible not unload because i need the information to .
View 9 RepliesIm a bit a of a noob when it comes to AS. I have a problem that I think should be very easy to solve.
I have a shape that I turned into a button and gave it an instance name of "CA" I also have an array that has a string item called "CA"
I want to be able to make the button invisible by using the array instead of just writing the instance name. I have the following code but it just doesnt work.
[Code]...
I'm using AS2.
I have invisible buttons on a movie clip that is loading swfs onto a parent movie clip. I hope I am current in the terminology. Are a parent and root the same? Is saying root absolute and parent relative? I'm digressing.
So, this this._parent.gotoAndPlay("contact form"); is going to the keyframe named "contact form" and it will stop there. What I want to happen, is, I want the other invisible button named aboutmeMC2 to go back to the keyframe named "skip" so my contact form will no longer show up and it will load the external swf.
ActionScript Code:
on (release) {
this._parent.gotoAndPlay("contact form");
aboutmeMC2._root.gotoAndPlay("skip");
I've built an image scroller but I'd like to make the 'next' and 'previous' buttons invisible at the first and last frames frames respectively. The code I'm using for the scroll is below. I think the code I'm after should be something like this:
HTML Code:
if (targetX<720) {
btn_Previous.visible = false;
}
But I can't work out where I should put it (or even if it's correct) within the scroller code.
[Code]....
Is it possible to create a invisible mc with in 2 other invisible mc's and if so would there be any complications. Im trying to do something similar and it gets to the second layer but then doesnt want to load the third inv-mc. Like loading an external swf to a container mc then in that same mc have another external load and then another.
View 3 Repliesi am using one input text box and one button. In the beginning the button should be invisible. Once i started to type text in input text box, the button should be visible.I used following script. But it's not working.[code]
View 2 RepliesI have invisible buttons on a movie clip that is loading swfs onto a parent movie clip. I hope I am current in the terminology. Are a parent and root the same? Is saying root absolute and parent relative? I'm digressing. So, this this._parent.gotoAndPlay("contact form"); is going to the keyframe named "contact form" and it will stop there. What I want to happen, is, I want the other invisible button named aboutmeMC2 to go back to the keyframe named "skip" so my contact form will no longer show up and it will load the external swf.
[Code]...
Everything was working perfect until I added an invisible button to the first 315 frames and added the Link_1 clickTag code. We use an ad server so I have to use the clickTag code that they provided for each external link. I am not sure why it worked just fine before I added in the invisible button and now it does not. I am wondering if the Fire Animation movie (see AS3 down below) is somehow comflicting with the button being overtop of it?I used the Debugger and it says:[Code]....
View 3 RepliesI Want to load an external .swf in a movieclip which is my container "contenedor_somos" when i click on a button. What i want to do next is to make that .swf to dissappear or unload or whatever when i click another button.
View 3 Replies