ActionScript 3.0 :: Flash MC With Button To Other Page - Doesn't Work
May 30, 2011
I have a mc (houses_mc on frame1) (a long image the user can pan to the left or right) and I want to place some buttons in this movieclip to go to another page when CLICK. I put the second page on the second frame in the timeline, and so on. ( Is this alright or should I open it in a scene or as a new fla file?) So far I can't get my button work. It seems that As3 doesn't like btns placed in mc or something like that. The roll over and hover and hit works all fine, but when I click it doesn't go anywhere. The code I put for the button in the actions layer is:
[Code]...
View 5 Replies
Similar Posts:
Dec 7, 2010
I have a simple website and I am going from one page(flash file) to another page(different flash file) using the following code.
var myLink:URLRequest;
function openPage(event:MouseEvent) {
switch (event.currentTarget) {[code]....
This works fine, but I want to be able to use "_self" so I open the new page in the same window yet it doesn't seem to work.
View 4 Replies
Aug 26, 2009
Request for all mac users: could you open Adobe's flash player page [URL]And check whether the sample movie runs or fails?
If you only get the audio/pauze/getflashplayer10 buttons, but the movie itself is just white space (just like my preview image), could you write down you mac's specs?
Or let me know why this perticular movie of adobe themselves doesn't work on my mac? I've got a mac os 10.4.11 with flash player 10 installed.
View 4 Replies
May 3, 2009
I am a student trying to learn how to take multimedia elements from one class and put them on a webpage using Dreamweaver CS4. From an online tutorial, I created start/stop buttons with ActionScript3 URLRequest to reference a sound file. The swf works fine when played; it plays from the html generated by flash but when I use Dreamweaver CS4 > insert > media > swf and then preview page in browser (firefox), the button doesn't do anything. When I compare the html page generated by flash to the html created by Dreamweaver, they look completely different. I don't have a clue what to do next.
[Code]...
View 2 Replies
Feb 1, 2009
I create a button in flash cs4 and click "publish preview -flash" and my button works. I save my file and click "publish preview - flash" again, my button doesn't work anymore.??I'm using Flash CS4 on an IBM compatible.
View 17 Replies
Jan 13, 2011
I have implemented SWFAddress 2.4, it works perfectly in Chrome and Firefox on Mac. But in Safari 5.0.3 on Mac, the back button doesn't trigger the AddressChangeEvent. Deep linking works on Safari, just the back button doesn't.
View 1 Replies
Sep 19, 2002
Maybe it is a silly question but I have problems when I put a button inside a movie in Flash 5. It doesn't work and I don't know why...
View 3 Replies
May 11, 2011
I inherited some code from a previous programer. The idea is that a user clicks on the player and that opens the page at a new url. It works if it opens in a new page but it doesn't work trying to open the url in the same page. It just closes the player. Here is the code:
[Code]....
View 2 Replies
Apr 23, 2009
I've got this weird problem with one of my Flash projects.At first it was working fine.And then i decided to externalize the actionscript.On the root, there is a movieclip, wich holds a button.When another button is hit, the movieclip appears (goes to frame 2) and displays the other button (only on frame 2).It worked fine, but since i moved the code frome the swf to an AS-file the button in the movieclip doesn't respond at all.For clearer explaining i made a very basic flash-file.Main button (on root): main_btnMain movieclip (on root): test_mc Button in movieclip: test_btn.[code]
View 2 Replies
Feb 10, 2012
I have a button on which an effect will play (_root.loc.gotoAndPlay part) but i only want this to happen once (the first time you roll or dragover the button)So i thought i'd do this by making a variable on the root (the lettlook variable, which by default is "no") and then on the rollover, dragover first play the loc movieclip and then set the variable to "yes" (so it'll never trigger again after the first time)so this is the script i made
Code:
on (rollOver, dragOver) {
if (_root.lettlook == "no") {
_root.loc.gotoAndPlay(2);
[code]....
Problem is, of course, that it doesn't work. It doesn't play the loc movieclip and it doesn't change the lettlook variable to yes.
View 2 Replies
Nov 7, 2010
I've read many of post on how to make a button with as3, and I finally got one button to work, however; if I add another button one of my movie clip symbols disappears and neither of my buttons work! Each button is a button symbol, on it's own layer, with own instance name, each action is on it's own layer referring to the unique instance names with their own function names. My code is below.
button_1.addEventListener(MouseEvent.CLICK, myButtonFunction);
function myButtonFunction(event: MouseEvent) {
var request:URLRequest = new URLRequest("index.html");
[code]....
View 7 Replies
Oct 13, 2005
I'm not quite sure if my actionscript is affecting it. How can i code it in such a way tat my button would trigger the gotoAndPlay()?
[URL]
View 5 Replies
Sep 23, 2006
i made a movieclip button and everything works fine except that when i press the button it's supposed to send me to the next scene, but it doesn't, nothing happens. here's the script i did in the frame 1 of the scene:
stop();
this.botonix.onRollOver = function() {
botonix.gotoAndPlay("over");
[Code]....
View 2 Replies
May 17, 2002
Can I send someone my .fla for my feedback form - I'm 99.9% there - I just need for someone to explain why my submit button is not working - I'm really clueless when it comes to actionscript and I do apologize for that:-) - when I hit submit I want people to be able to submit their info from all over the world and I receive it on my end.
View 3 Replies
Sep 9, 2010
I have a slide-show with 3 sections. The slide-show loops automatically as well as when being prompted by a button to go to a particular section. I also added a play/pause button which works initially, however, when clicked on one of the buttons to go to another section, the slide-show resumes looping..I"m assuming I need to check weather the pause button has been clicked to resume/or not resume the slide-show... but I'm unable to figure out how to do that.Here's the code:
import fl.transitions.Tween;
import fl.transitions.TweenEvent;
import fl.transitions.easing.*;
[code].....
View 1 Replies
Dec 19, 2010
I have a Rectangle Box called (Panel1_mc).And inside it there is a button called (BoardMessage1_btn). When I click on this button, the Rectange Panel should move upwards. Right now it is on the bottom of the page. The following code throws an 1010 error:
Panel1_mc.BoardMessage1_btn.addEventListener(Mouse Event.CLICK, clickSection);
function clickSection(evtObj:MouseEvent){
var Panel1Tween:TweenMax = new TweenMax(Panel1_mc, 6, {y:450, delay:1, ease:Strong.easeOut});
}
What is wrong with this code?
View 1 Replies
Oct 2, 2002
I have created a submit button in Flash 5.0 and embedded it in my ASP form.
This is the script for it....
on (release) {
getURL ("verify.asp", "_self", "POST");
}
Why isn't it bringing up my verify.asp page but only the error.html page?
View 4 Replies
Sep 8, 2010
I have a slideshow with 3 sections. The slideshow loops automatically as well as when being prompted by a button to go to a particular section. I also added a play/pause button which works initially, however, when clicked on one of the buttons to go to another section, the slideshow resumes looping..I"m assuming I need to check weather the pause button has been clicked to resume/or not resume the slideshow... but I'm unable to figure out how to do that.head of time! Here's the code:
import fl.transitions.Tween;import fl.transitions.TweenEvent;import fl.transitions.easing.*;
//Timervar tl:MovieClip = this;var slideDuration:uint = 12000;// or use whatevervar slideTimer:Timer=new
[code]........
View 5 Replies
Jul 22, 2010
I have a splash page with a logo. When the logo (splash_btn) is clicked I want it goto the site (frame label: home). All my code seems to be right but the button doesnt work.
[Code]...
View 3 Replies
Sep 6, 2010
I 'm building a slide show w/ as2, most of the function are fine. However, the pause button doesn't work properly. It can pause the slide show, but not able to play the slide show again. (fyi - the previous btn & next btn work fine !) [code]
View 1 Replies
Oct 3, 2005
I'm having a strange problem with getURL. in my flash file, i have two buttons one for an email link and another one for a site link here is the code
[Code]...
when i test it in flash (Ctr+enter) only the button linking to the site works, but the email button doesn't work. And when i preview it in html, only the the email button works, but the site button doesn't work.
View 3 Replies
Dec 5, 2006
why this wont work?
here is my code:
Code:
on(rollOver){
_root.tabmenu.butt_effects.services_button.gotoAndPlay(2);
}
[Code].....
View 2 Replies
Nov 5, 2008
In the first frame of the main time line i have 7 movieclips which are buttons. Within these movieclips there are additional buttons with a simple rollover function to change the background colour.
The problem I'm having is that the action on the buttons doesn't work. I'm guessing this is something to do with the AS i have within the mc.
View 2 Replies
Aug 12, 2009
i have a main loader swf file called loader.swf and it loads 10 swf files inside a container. the 10 swf files have invisible buttons and when i test the 10 swf files alone the invBtn-s are work fine, but when i load them with the loader.swf the invBtn-s simply don't work or react the mouse or anything...
View 1 Replies
Jan 14, 2009
I am working on an interactive map. When you roll over a dot on the map a slide moves into view. I've got this working great but when I add script for the roll out the whole movie just repeats over and over and the button doesn't work at all. I've pasted my code below.
View 3 Replies
Jan 30, 2010
I have a problem with the Home button. I want to disappear content of the 3 UILoaders components that I have on stage.I try to use the method removeChild(UILoaderName) but it doesn't work. This is my code:
function goStart(event:MouseEvent):void
{
gotoAndPlay(200);
count=1;
removeChild(central);
[Code]...
View 3 Replies
Dec 17, 2010
I have a button instanced "howto_weblink_btn" which is located inside a MC instanced "HowTo_maininfo_mc". I would like to write a code allowing me to access this button from the main navigation menu. Here is what I come up with:
HowTo_maininfo_mc.howto_weblink_btn.addEventListener(MouseEvent.CLICK, onClick_openJTV);
function onClick_openJTV(event:MouseEvent) :void {
HowTo_maininfo_mc.navigateToURL(new URLRequest("http://www.ubloom.com/index.php?
[code]......
View 7 Replies
Nov 14, 2010
my flash site has custom fullscreen mode button which works fine in all browsers but the IE.
my as3 code
Code:
//FULLSCREEN MODE
function goFullScreen():void
{
[Code]....
View 0 Replies
Jul 19, 2006
i was doing tutorial from the page [URL]
my problem is that I have in main timeline movie1, who have movie2 in side, and movie2 have movie3 inside it. in movie3 is buttons like in the tutorial. so i try to replace _root with _level2 but doesn't work on mouse button AS.
[Code]....
View 1 Replies
Feb 3, 2005
what happened in my flash document was, I created a button, "next_btn" with the following commands:
on(release){
//to remove all the splats
for (score=0;score<100;score++){[code]...
At this point, almost everything worked perfectly. Everything, but one thing. Apparently, the swapDepths command wasn't working. It was then that I thought maybe swapDepths only works on movie clips.And so I converted the button into a movie clip. I modified the instance names, etc, and almost everything worked. Everything, including swapDepths, but one thing: the gotoAndStop command.For some reason, when I tested the movie clip (containing a button) out, it removed the splat+score and finger_mc movie clips, as well as stoped the background music from playing. However, it did not go to the next scene and frame as specified by the gotoAndStop command. "s1a2" is the next scene, and "gameplays1a2" is its frame.
View 3 Replies