ActionScript 2.0 :: Actionscript For Link Is No Longer Working?
Apr 28, 2009
I have created a site a while ago and the client wanted flashing navigation buttons, this I have done and I he wants another page adding so I basically opened up one of the buttons, saved it as and made the changes, how ever when I preview the new index page with the added button the link doesn't work, I have also noted that one of the buttons that was working fine no longer links, i am using the following Actionscript for the links:
LessonsButton.onRelease=function(){
getURL("http://www.grangestudridingschool.co.uk/lessons.html","_self")
}
I have named the instance of the button LessonsButton and this was working, as are all the other buttons, bar the new one, I have built them in CS3 but have recently upgraded to CS4 Master collection, how ever, I have not used flash CS4 for these buttons, they have been modifed in CS3, any idea's as to where the problem may be and also why only one button has decided to stop working?
View 2 Replies
Similar Posts:
Nov 16, 2010
I've been using the embed tag for a while and it has been working perfectly up until now. I've got an XML file that I have embedded into my .swf, using
Code:
[Embed(source="nodes.xml", mimeType="application/octet-stream")]
and haven't had any problems. However it has just decided that it no longer wants to compile anymore, giving six errors on this line and this line only:
Quote:
Line 32 1180: Call to a possibly undefined method Embed.
Line 32 1120: Access of undefined property source.
Line 32 1120: Access of undefined property mimeType.
[Code].....
I had added a new function just before this error started appearing, but it had absolutely nothing to do with the embedding and the problem still happens after I comment out everything I added before the error.
When I test it in a new .fla it still works aswell, just no longer in this one.
This is in Flash CS5, ActionScript 3 by the way.
View 0 Replies
Sep 4, 2009
i tried looking here with the keyword 'preloader', to find answers to my problem but I didn't.I'm a freshman AS3 developer....with a portfolio site to launch asap.
I have a movieClip in my library that is exported to AS (external jpg) - it is loaded separately from anything else in my scene (which is disrupting my normal preloader animation). When I simulate the download my preloader doesn't appear in my preview window, and I have no error message either. At first, not sure what the problem was I tried various preloader tutorials online hoping to find a solution.
I only realized later on that my preloader didn't work because of my external jpg.How can I make my preloader (code below) load everything altogether? (elements in my scene + external jpg)
PRELOADER (first frame);
Code: Select allimport flash.display.MovieClip;
import flash.events.ProgressEvent;
[code]...
View 4 Replies
Mar 26, 2010
I can no longer see my code. I've tried two different .fla files, one I made and one someone sent me, but no luck. Clicking on the first frame on the Actions layer, I either press F9 or right-click and choose actions. The properties panel changes, but the code list window does not open.
View 2 Replies
Jun 18, 2010
I have just very recently downloaded a trail version of Adobe Flash CS5 onto my laptop. The version of windows is Windows XP, and the program itself is running as well as it should.
I went to youtube to see if there were any video tutorials that could help me get started with the program. Unfortunately, right before a video will play, the browser will say there was an error, and close, and then re-try to open the page.
This problem has never happned before I installed Flash, so I can only assume it had something to do with it. Everything else on my system is running smoothly, I even checked every file and processor twice for any signs of adware that I may have picked up accidently.
View 14 Replies
Jul 4, 2011
I have a movieClip in my library that is exported to AS (external jpg) - it is loaded separately from anything else in my scene (which is disrupting my normal preloader animation). When I simulate the download my preloader doesn't appear in my preview window, and I have no error message either. I only realized later on that my preloader didn't work because of my external jpg. How can I make my preloader (code below) load everything altogether? (elements in my scene + external jpg)
PRELOADER (first frame);
Code:
Select allimport flash.display.MovieClip;
import flash.events.ProgressEvent;
addEventListener(Event.ENTER_FRAME, loaderF);
function loaderF(e:Event):void {
var toLoad:Number=loaderInfo.bytesTotal;
[Code] .....
View 2 Replies
Nov 23, 2009
Very strange thing has happened. I've had this site running fine for over a year, and recently I have discovered that the buttons that go to external URLs do not work.All of the buttons should be going to another .php file, and they have been until discovered yesterday that they do not.If you go to the .swf file directly, you will see that the navigation buttons take you to the correct .php files, but it becomes unclickable when it's in index.php.VERY strange... but then when you go back to index.php, and click the php active hyperlink "Gum Drops" at the bottom of the page, you'll get taken to the php page... and then all of a sudden the navigation, and all flash links to URLs work!
View 2 Replies
Jul 21, 2010
I had a forum up a few months ago, and got help getting radio buttons to work with a continue button, causing the movie to gotoAndStop at a particular frame. (This is all being done on the main timeline).Everything was working fine, now, I keep trying to do it again, but regardless of which button I click, it only goes to frame 2 where the Novice radio button is supposed to go.I think the problem is in the line of code that reads:varframeNumber=2+Number(noviceButton.group.selectedData)I know it is set to only go to the novice area, but my understanding was that since these were radio buttons, any button clicked would work, and I only needed to type in one of the unique instance names
Here is the code:
stop();
continueButton.enabled=false
[code].....
View 14 Replies
Aug 8, 2006
I like to make alias varaibles for long names, so that i don't have to keep repeating huge lines of text, but when i try to create one for a custom class, it fails.
Code:
Clients["Client"+i] = new Client();
var Client:Object = Clients["Client"+i]
Its almost as if flash is trying to make the new variable a new Project(); instead of a reference to the other variable...
View 2 Replies
Apr 18, 2011
[URL]
The ad on the bottom right of the screen (the one with lightning flashing) has an invisible button in its Flash file (CS5) linking to [URL]. This file is imported as SWF in Dreamweaver CS5.
The hyperlink works in Firefox, but not in Safari. Maybe it is just my computer.
View 1 Replies
Nov 13, 2009
I bought ready templete for flash website and have problem with creating code for link. You can see templete website on happyrobot.info/good and I want to place links behinde ABOUT US , SOLUTIONS , SERVICES so I can redirect to diferen sites. You can download fla file from happyrobot. info/ download it is index.fla
View 4 Replies
Feb 22, 2010
There this link in Flex that was working and now isnt... Flex is giving me a headache with this one because it is not throwing any errors either.
In the script part of the XML I have this:
private function onLinkClick( event:TextEvent ):void {
var url:URLRequest = new URLRequest( event.text );
navigateToURL( url , "_top");
}
[Code].....
It was working but now the link doesn't and the swf's not throwing any errors either. This is very strange behavior, would anyone know why the link won't work?
View 1 Replies
Nov 9, 2011
i have a menu fileon rollover it opens the menumy link is not going
View 2 Replies
Oct 12, 2009
It just reloads the animation instead of going to the html page the button is pointed to. I can give a link to it if you need.
View 3 Replies
Sep 30, 2009
I've created a button in a swf file when clicked should open a website in a new window. It works on my mac but it doesn't work for my client's pc. The banners are here [URL] . It's obviously something wrong with my Flash file because my client can make the banner on this page [URL] work.
View 0 Replies
Aug 25, 2009
When tested my email window opens twice.
There is no target attribute used at all.
Also ?subject= don't work. Subject field blank in email popup box.
Using Flash 8.
on (press, release) {
getURL("mailto:me@thisplace.com?subject=No subject showing");
}
View 2 Replies
Jan 24, 2011
I have a flash banner and i am using AS 2.0. The code embedded in the flash banner works with any url other that the one i am trying to embed.Here is the code i am using:
on (press)
{
getURL("https://wcc.webeventservices.com/eventRegistration/EventLobbyServlet?[code]....
Somehow flash does not like https links. It works fine with other links.
View 1 Replies
Jan 14, 2012
quick question regarding the TextEvent:LINK.It stopped working recently when I switched my interface and I'm not quite sure why or how to fix it.I have a movie clip which contains a text area and a scroll handler. 3 of these are added to my interface, although only 1 at a time is active in the display, depending on which tab you click.
All of that works fine, but once I change the chat object (textfield and scrollbar) in the display, it seems to stop working, and I'm not quite sure why. I'm not creating new instances all together, just adding and removing from a parent clip upon clicking different tabs.
what would be or could be causing this? As far as I can tell nothing is over or obstructing the clip containing the text field and scroll bar. The scroll bar actions work fine, which is next to the text field, however there seems to be no action going on as far as clicking links in the text field.
Edit - Textfield is selectable, I know they need to be for the event to work.
View 1 Replies
Jun 24, 2009
i am very new to xml flash and i have a problem in my code i m making a flash website for my frd and i cant make it work .....i am having problem regarding my coding i have few buttons which says click here but i cant link them. my code is here
xml code:
<?xml version="1.0" encoding="utf-8"?>
<albums>
<gallery id="1" name="MY photos " path="images/">[code].....
View 0 Replies
Jun 26, 2009
this is probably a simple issue, but i'm new to actionscript and am pulling my hair out trying to get this email button working. I have a simple button in flash 8 which I have labeled "email_btn." I am using actionscript 3.0 and in the actions layer I have this code:
[Code]....
View 6 Replies
Jul 30, 2010
I am a graphic designer. I do not work with flash too much. I recently make a flash banner for my client but had a problem with linking the flash file to the url. I know actionscript 3.0 little.I used a movieclip (instance name: link_handler) over all content and set alpha to zero. That use this coding:[code]I used _self because i want to open the link to current window. If i use nothing it open in new tab/window. But this causing error when clicked and flash player shows this error.[code]you can see the page here. montana2you.bigcartel(.)com/ The banner is in the footer. (all url replaced by {url} )
View 4 Replies
May 15, 2011
I have a problem trying to get a button to go back to the start of the a main movie. I have added the button(see below) into the main movie which is only one frame and contains a quiz movie. I want the start button to be visible in the quiz movie (which happens ok) but want it to link back to the main movie when clicked. The link is not working and no errors are showing.
ActionScript Code:
import fl.controls.Button;
var startTextFormat:TextFormat = new TextFormat();
startTextFormat.bold = false;
[code]....
View 1 Replies
Sep 19, 2007
I had to do some maintenance on an older flash site I built (Flash MX, AS2.0). I have some href links in a html text. For some reason they are no longer working correctly. If you click on it, it will do nothing. If you right-click on it, a menu will open with options to Open, Open in new window, & Copy link.
View 3 Replies
Dec 2, 2010
I have a movieclip acting as a button with a dynamic textbox inside. The text is being passed via a xml and it has a URL associated with it. But the link does not work. When I remove the onRollOver action that makes my mc button show a rollover state the link works. But when the rollover is active it doesn't.
If there's a way to pass the URL via xml to the button, instead of the text inside the button, that would also be good. (even better because that way the whole button would link, and not just the text)
View 1 Replies
Oct 13, 2011
We have a Flash banner on the home page and each slide has a link to some other page. Everything works fine, exept in IE.
Basically what happens is that if you click on the banner the first time, the link will work fine and bring you to the new page. However, if you go back to the home page again, then the banner does not even present a link anymore (it will still work fine as far as the banner rotation is concerned - just no more links)..
View 4 Replies
Mar 25, 2010
undefined error link is not working from xml file
[Code]...
View 0 Replies
Feb 24, 2010
I have a flash banner that references and XML file with an absolute link, whilst I test the banner locally it works fine but when I test it online it doesn't link to the xml file.
View 1 Replies
Feb 1, 2010
I have a flash banner that rotate 6 images(slides). and it includes 6 buttons to navigate in to each image. Also images are rotates automatically every 10sec.But these buttons are not clickable in FF/Chrome, but work fine in IE with wmode: transparent. Also these buttons work fine in all browsers with wmode: opaque.Also there is drop down menu on top of the flash movie(a separate menu not included in the flash). In wmode: opaque dropdown part of the menu goes behind the Flash. In wmode: transparent that want happen.
View 1 Replies
Aug 20, 2009
We have a little app in use with a customer where html links are generated dynamically at run time. The link text and url are put together from a couple of txt files that the customer regularly goes in and edits. These links have recently stopped working.
Of course, you would think the immediate culprit is the customer who has made a mistake in the txt files. But the the same vars from the same files are used to generate a couple of buttons on the page that DO work. And everything works when I export it from flash. It stops working as soon as it gets to a web server.
Here is the output from the functions that piece together the input data:
[Code]....
And here is the link to the app: [URL]
Choose a category in any of the lists and then any of the subheaders that appear. Most have a link in them. It's in Swedish but I know you lot are smart enough to navigate a flash app without understanding what you're clicking on
View 8 Replies
Feb 27, 2010
I have been searching the internet almost a week to solve this issue with no luck !
I am having problems with my slide show play/pause buttons
When pressed, the pause button does not pause at all (the slide show automatically cycles every 5 seconds)
and the play button starts playing the slide show from the beginning instead of from the place that it was paused.
the file is attached and here is a direct link to view the problem [URL]
View 9 Replies