ActionScript 3.0 :: Website Interface Buttons Won't Work
Aug 30, 2010
trying to build simple website interface with flash but wont work, not sure why
btn_info.addEventListener(MouseEvent.CLICK,func_in fo);
function func_info(e:MouseEvent):void{
navigateToURL(new URLRequest("info.html"), "_self");
}
ive got other buttons with their own individual instance names and function names and such thought perhaps the buttons weren't working cause the objects don't exist, they're not loaded on the firstframe so the code is trying to reference something that but not sure how to get around this output window just says
TypeError: Error #1009: Cannot access a property or method of a null object reference.
View 1 Replies
Similar Posts:
May 23, 2011
I have been building a website in dreamweaver, but have flash buttons which work fine. But the banner I have made in the page just has a white background. When I export it in flash it works, and when I preview in the dreamweaver browser it still works. I do not know what I have done wrong. Is the coding in the server wrong for the flash?
View 2 Replies
Apr 16, 2010
I have just created a flash navigation menu in which I imported to dreamweaver to link with the rest of my website. But if I want to test the buttons to see if they work on my system (localhost) and not on a random website, what url do I put? Or do I have to wait until I put my pages on the server and simply paste in the address?
[Code]...
View 3 Replies
Mar 31, 2010
I have a website.You can see that website both by typing in http:[url]....This website has a flash intro that at the very end enables the user to either choose to go to the html version of my site or the flash version, each option represented by a button.The strange thing is that if I'm on the http:[url]..... URL of my site, everything works ok there. However, if I'm on the version with the "www" added into the URL, those buttons don't work. You still get the little "finger" indicator, but when you press, nothing happens.
View 5 Replies
May 18, 2004
Does anybody have actionscript code for a volume control on an website interface? I already have a button that allows the user to turn off or on the audio but a volume control would be nice to compliment it.
View 2 Replies
May 18, 2004
Does anybody have actionscript code for a volume control on an website interface? I already have a button that allows the user to turn off or on the audio but a volume control would be nice to compliment it.
View 2 Replies
Jan 19, 2007
I am looking for script or tutorial that will show me how to move the interface around like the one show in this fantastic website -
View 2 Replies
Apr 11, 2010
I was studying about EventDispatcher and tried to make my own class and interface IEventDispatcher.Then later i was wondering, what use does the interface have anyway when you still have to declare the functions that are in the interface to the class that implements the interface? The dispatcher will still work without the interface. Like addEventListener, removeEventListener, these functions are within EventDispatcher so why do i need an IEventDispatcher?
View 3 Replies
Dec 4, 2009
External interface does not work in IE when we keep the flash inside a form..
View 1 Replies
Jul 13, 2011
I have a project that requires building the project using Scenes to chunk up different sections of an Elearning course.
I have created 20 Scenes.
Each Scene uses the same interface design.
On the Interface there are 6 specific buttons that will allow users to visit 6 instructional areas.
All six buttons will be avialable in all 20 Scenes.
My question is: is it possible to replicate the six buttons across all 20 scenes without having to provide unique instance names for each button in all 20 scenes so that the code to go to a scene will work in each Scene?
Or do I just have to code all 180 buttons individually as I go?
What I mean is for example.
The Lesson 1 button is replicated 20 times. the lesson one button has actionscript to go to the Lesson 1 Scene.
If I replicate the button to another Scene, I have to give it a different instance name, and update the code for that button each time and for all buttons.
View 6 Replies
Apr 17, 2005
I have created an interactive atlas. I am using my favorite map zooming and panning tools supplied by Senocular which can be found here: [URL] For the panning/zooming/drawBox tool to work the map features must be buried deep within several movieclips. There is one level at which you can put buttons that aren't effected by the code for the panning/zooming etc. Buttons have to go on this level or higher if you want them to work.
The way my atlas is set up - there is a main interface that has these tools plus the menu system. The menu (xml; created by Lost and Sen - brilliant) loads in two external swfs - one is the map itself and the other is a set of "controls" for that particular map (radio buttons, check boxes, text links, etc.).
Okay so here is my problem. I have a couple of external swfs that have buttons on them that do things when you roll over and off them. If I have these buttons sitting on the map then when it gets loaded into the main interface they no longer work. So I am trying to use attachMovie to attach them to an MC within the zooming tools in the main interface at a level they can be active (oh god I hope that makes sense). But it's not working.
I am guessing it's because the code to attach them is being fired before the external can be loaded into the interface. So I'm not really sure where to fire the attachMovie code. Does it go with the external? Does it go with the controls for the external?
View 10 Replies
Sep 29, 2009
completing the code to get a return value from JavaScript to flash, but all the code was in a frame. My issue is I need to apply this code to multiple buttons, and then have them navigate to the appropriate frame. I thought I could put some of the code on the buttons themselves, or possibly I could call each button and keep all the code in frame one.....the external interface call function and the button functions....btn1, btn2; etc......I am not to verse in code and need to know what and how the best way to do this would be.
[Code].....
View 16 Replies
Jan 16, 2005
Having some strange problems with masks in FMX 04: We're developing an accordion style interface. The problem is that buttons and images/mcs that are outside the "masked area" of each module are somehow clickable, or are "invisibly" pushing other content up/down. So basically the buttons/mcs are hidden, but Flash is still seeing them somehow. Is this normal mask behavior? Is there a solution besides setting the button to _visible = false? This is effecting my interface in other ways as well.
View 2 Replies
Sep 24, 2005
I've been recently asked to do an interface from this file(view the attached file). The file was from ultrashock, anyway my client wants the interface to appear instead of the circles. Is there any easy way to change the circle to movie clips/buttons? I would also like to have the 3d flower rotated randomly after being selected and the interface will zoom into the selected link and the sublink will pop up from the selected link.I've been told by my friend that it requires XML but I think there's gotta be an easier way.
View 1 Replies
Aug 7, 2009
I have a movie clip with 15 frames. Each frame has buttons on it (mc's)... I was going to put the actions on the main timeline/stage and navigate within the MC from the main timeline. Is that possible? I can get the buttons on the first frame of the MC to work, but I can't seem to figure out how to target/make the buttons on the other frames work? I was thinking I could identify the path of the MC with the frame labels, but that doesn't seem to work. like: _root.RMChanger.(frame label).buttonOnFrame = function
I have to move a text box in and out over the MC backgrounds on the main stage... which is why I was thinking to do it this way? I've been switching back and forth bwtween AS2.0 and 3.0
View 9 Replies
Jul 8, 2005
I am having trouble with a job I am doing at the moment which has an mc with buttons within it. I want it so that when I roll over the mc it tweens from a small version to a larger version, and on this mc there are some buttons. At the moment I can get the mc to move but the buttons remain inactive and also the rollover states on the buttons don't work. I have attached a simpler version of what I am trying to do to this post.
View 3 Replies
Dec 4, 2009
I'm having problems with the flash buttons on the flash website i made for a client. or some reason the buttons in the top and bottom menu work on some people's computers but on some they don't. I don't know what to do, i had this code for all the buttons,
on (release) {
getURL("http://legaldepartment.ca/","_self");
}
and they worked on my computer but on others the buttons didn't work at all so i added this code to each button also
on(press) {
_root.getURL("http://legaldepartment.ca/","self");
}
and they still work on my computer and some other people's computers but still some they don't work on some people's computers.
View 2 Replies
Jun 1, 2011
I am using Flash CS4 with actionscript 2 to create an interacitve portfolio.I have 2 text buttons that work when I test them with "enable simple buttons." When I publish to IE these buttons won't work. I have created over 50 buttons using the same methods, they all work.
View 8 Replies
Apr 17, 2012
I am using in AS3 "External Interface ". When I call the JS function that is on the same page as swf everything works fine.
I added a link in the html page to an external JS file, when I move the JS function to the external JS file the website crushes.
I would prefer to have all my JS functions on an external file so I can use them in the future in other project and it also makes it easier for me to update the site.
how to call a JS function that is on an external file from AS3?
View 6 Replies
Oct 19, 2009
I have been designing a website for a client entirely on flash 8 and I am almost ready to hook it up with an actual host, right now it's just set up on yola, which is a free host so that my client can see all the changes i've made, to the design and information. But I tried to view the website on Internet Explorer and it doesn't work at all. It just shows that square circle and triangle in the top left hand corner. How can I fix this before I set it up perminatley?
View 3 Replies
Apr 25, 2010
I created a Flash photo gallery which includes a preloader. The preloader works just fine when I test the file, but on the published site, the preloader does not come up.The .swf file is inserted into a Dreamweaver file.The website is: http:[url]....
View 1 Replies
Jul 20, 2010
I've created this simple website which consists of a 3d carousel style gallery of images. When I tested it locally everything worked perfectly, however, the version on the web-server is not working. The website is at dansawesomeweb. site11. com. I renamed the html file so you can browse the websites folders if you wish. After much testing I believe the problem of the website lies within me loading external images. You see two of the images(the only two that you can see) are loaded from the same domain and specifically the same directory as the website itself. It seems to be unable to load any image from any where else on the web.It could be to do with the image url's I used: i'm not entirely sure how they should be formatted? (As you can tell I'm not familiar with this kind of stuff) Do you think it's my host? -but from what I hear 000webhost does fully support flash. Or do you think it's purly how I programmed it in as?
The way the website works is that the base.swf loads the caro.swf. The caro.swf's doc class is CaroClass.as. The flash makes use of some custom classes that are in the class folders. The class called 'Obj' is an image holder movieclip that loads an image off the web into itself: These make up the carousel. There is also one class that is supposed to load a higher resolution of images when you click on one of the Obj's, and also show a description. The image url's, captions and descriptions are held in an xml document which is loaded by the caro.swf at the start. Just go to the webpage and click on the CaroData.xml for the XML.
View 7 Replies
Mar 22, 2011
I'm trying to get a simple comment box to work on a a website I'm working on. I want it to be able to send an email with the comment to a specific email address. I have AS3 code and PHP code from a thread on these forums but I can't seem to get it to work.
ActionScript Code:
import flash.net.URLLoader;
import flash.net.URLRequest;
submit_btn.addEventListener( MouseEvent.CLICK, submitClick );
function submitClick( e:MouseEvent ):void {
sendData();
[Code] .....
The php file is called mail.php in the main directory of the site along with the swf file with the AS code loacted in it. Does the AS have to be in a separate file or can I leave that on the frame where the actually text boxes are?
View 4 Replies
May 27, 2011
My site is this flash website does not work on mac devices?[URL]..
View 10 Replies
May 27, 2009
I have tried putting fs command for full screen for my Flash site, but that only works if I open the SWF on its own.
If I try opening the Flash website thru my browser, a warning pops up that Flash is trying to comunicate with the browser.
I would like it when a person goes to the website, that the website will automatially open up as a full screen website. No tool bars, address, navigation etc., like a DVD movie. Just the whole screen covered by my Flash site and it does not rescale. The Flash site is the same size as if there is no full screen.
View 5 Replies
Apr 1, 2009
I'm making a website and I want to know how to animate my buttons.this is an example of what I'd like my buttons to do. [URL]the buttons on the website above look abit advanced. when you click on the button, the patel of the flower sort of fall and then it grows back by it self.how did this person achieve this on her buttons?
View 1 Replies
Aug 9, 2009
I have a simple website that I am making in Flash. It is four pages and the backgrounds are in one long horizontal sequence.So each page is 1000px wide, so the entire photoshop file which I imported into Flash is 4000px wide.
I made buttons so that when the user clicks, Flash moves to that area of the long photoshop file.I did this using frame labels.
Here is the problem. Right now the pages are jumping one to the other and I want them to move fluidly like a motion tween (which I have set up, but does not seem to be working). The reason I made one long file was because I wanted to be able to do this.[code]...
View 2 Replies
Dec 1, 2009
I designed a website using tips from [URL]. It's a single .swf. Nothing complicated about the as3 script. Mostly gotoAndStop commands to jump around the timeline to the different sections of the site. My question is how to set up the site as individual swfs for each "page" so the back and forward buttons on an internet browser will function. I've seen samples of loading external swfs but it's not clear how to write scripts to jump around various pages for a website.
Here's the website: [URL]
View 6 Replies
Mar 11, 2010
i've got a looping mp3 that i want to put on my website with a dummy animated equalizer, the problem is the coding for the mp3 is in as2 and my site is as3, I've been trying to change the coding to as3 so i can put it on my site but when I solve one part something else doesnt work
[Code]...
View 3 Replies
May 24, 2007
I followed a tutorial to have a movie clip work as an animated menu for a website. One of the functions is set up as follows:
function do_this() {
this.gotoAndPlay("frame label");
gotoAndPlay("frame label");
}
So the animated menu is going to a specific frame in the movie clip while the site is going to the appropriate page. What I can't figure out is how to freeze the menu in the state that it goes to with this function so that it doesn't revert back once the mouse rolls out of the hit area. Does anyone know how to resolve this?
View 2 Replies