ActionScript 2.0 :: Flash 9 - Dynamic Menu Links Do No Work (Get Undefined)
Oct 21, 2009
I have a dynamically generated menu populated by two arrays, "menuTitles" and "menuLinks." Everything works great except the onRelease command. I get "undefined" instead of the contents of the array element (should be an HTML link). If I hard code the array element (menuLinks[1]) it works, but as it is, I just keep getting undefined.
function generateMenu() {
menuLength = menuTitles.length;
var currItem:MovieClip;
for (var i:Number = 0; i<menuLength; i++) {
currItem = emptyMovie.attachMovie("menuItem", "item"+i, i);
[Code] .....
View 1 Replies
Similar Posts:
Aug 9, 2011
I purchased a website template that has some flash in it however the auther of the template lacked to include instructions and seemed to have left it unfinished (The links don't work, of course).
I can't seem to locate the actionscript he talks about: [URL]
[code]....
Notice that nothing there with clickable links :
I cannot find the actionscript that deals with onRollOver actions I would be absolutly ecstatic.
Download source files: [URL]
View 8 Replies
Jul 22, 2009
I have a drop down menu on my website and it works perfectly fine except for some of the links. i don't have the other pages made yet but i still have the links to the pages in the buttons in my drop down menu. For some reason when i click on the buttons in the drop down menu, they don't go to the pages, they don't do anything. But when i click on the buttons in the sub drop down menu in side the main drop down, they work
the code for each button is the on(release) get url code, is their a different code i can use that will make these buttons work? here is the link to the website so you can see what I mean. the paralegal services button is the one with the drop down.
[URL]
View 3 Replies
Jul 22, 2009
I have a drop down menu on my website and it works perfectly fine except for some of the links. i don't have the other pages made yet but i still have the links to the pages in the buttons in my drop down menu. For some reason when i click on the buttons in the drop down menu, they don't go to the pages, they don't do anything. But when i click on the buttons in the sub drop down menu in side the main drop down, they work
the code for each button is the on(release) get url code, is their a different code i can use that will make these buttons work? here is the link to the website so you can see what I mean. the paralegal services button is the one with the drop down.[URL]
View 1 Replies
Oct 13, 2004
I am doing a dynamical menu they are scroll, with links, I am using as function. If I call an external swf:
function cargaranimacion(animacion){
loadMovieNum(animacion,0)
}
In the text:
<a href='asfunction:cargaranimacion, "proceso_novolen.swf">PROCESO NOVOLEN</a>
<a href='asfunction:cargaranimacion, "polimerizacion_estructura.swf">POLIMERIZACION Y ESTRUCTURA</a>
And if I am inside a swf, call a label:
function cargaranimacion(animacion) {
gotoAndPlay(animacion);
}
That is ok... But, How I do to accede to a specific label of an external swf?? I want that it loads the animation and begin to it turns from the label that I indicate.
View 2 Replies
Mar 23, 2004
I have a menu once clicked it animates out a menu that holds a couple of links, but with my code I can't select the links.
[code]...
View 9 Replies
Feb 25, 2011
I just downloaded a trial of Flash CS5 and made a few text changes on my file then i uploaded the .swf file and all the links are undefined.
View 1 Replies
Jan 14, 2009
I have a flash movie launch over my webpage when the page loads what the problem is is that when the flash is completed and unloads in the area where the movie showed up the links are not clickable. I have my wmode set to transparent and even have the unloadMovie at the end of the movie, this problem only occurs when using firefox how can I fix it?
View 1 Replies
Apr 15, 2012
I have a bunch of menu windows that I've placed on separate frames (for example main menu is on frame 1, options menu on frame 2, chapters menu on frame 3, characters menu on frame 4, etc). On each menu there are a bunch of text links (movieclip instances), when clicked goes to another menu page. Some of these same links (same instance) are duplicated on multiple pages since they perform the same function. For example clicking the "backToMain" instance will go back to frame 1, which is main menu, regardless of which page it was clicked on.
Does anyone have an idea how I might build this? So far I've tried to add listeners to every single link, however since lots of links are on different frames other than frame 1, I can't add listeners to them until I tell actionscript to flip to that frame, which I don't want to do. I want to globally add listeners to all links all at once in the beginning:
[Code]....
View 1 Replies
Jan 27, 2010
I have tried to do those thing for couple of days( and nights), and every time some part of the code that i write in there does not work.I have tried to do Drop Down in animation (motion tween), i have also tried to do links, but i just dont get them work.
View 1 Replies
May 9, 2010
I am building a site, and I used the script assist to make links (on release) and the links won't work, i click on them and nothing happens. Do you think this is a coding problem or a flash player problem.
View 10 Replies
Apr 6, 2011
I have a flash accordion embedded using SWFObject. The SWF and related XML file are hosted on one domain. I have about 10 sites embedding this SWF from it's hosted location, both the SWF and the XML. The accordion links to various pages of my domains. The domain in which the SWF and XML file are hosted, the links work as expected. The other domains that the SWF is not hosted on, the links do not work at all. I verified it's a cross domain issue by placing the SWF and XML files locally on each domain and they worked, but this is not how I want it setup. I attempted to use crossdomain.xml and allow access from all hosts but that didn't work either.
View 1 Replies
Aug 25, 2011
Im trying to make a projector movie that links to a pdf (in the same folder) on a CD that needs to run in both windows and mac. Im able to get it to work on a pc but not on mac. here is the code for the button i used in the projector.
on (release) {
fscommand ("exec", "manual1.bat");
and bat file open a pdf file.so i want to do the same thing for mac, that is using the fscommand to open up a pdf in acrobat. I read messages here that use applescript but i dont understand it too well so what id like to know if possible is the applescript, what it does and do i apply it to the button in my projector or do i tell the button to look at the applescript or what? I guess thats it for now.
View 1 Replies
Jan 13, 2011
I have created static text links in Flash (CS4) but they only work when published with a double-click.How do I get them to work with a single click?
View 8 Replies
Jan 16, 2010
I used Dreamweaver to embed my flash file into an html file, using "Insert-->Media-->Flash".When I preview the file, everything works fine, but when I upload the file to the web, the external links to my blog and e-mail will not work. Before, I just had the flash file up, with no html, and it worked fine.Url...
View 2 Replies
Nov 17, 2010
The latest versions of firefox and Safari both cannot display email links. For some reason they don't parse ou the "mailto:".
View 5 Replies
Dec 16, 2009
I am working on an e-commerce site at work. The html pages are dynamic and created by a server. When a visitor logs into the site a session number is created for them and it becomes part of every link in the html page. This happens so the visitor doesn't have to keep re-logging in every time they hit a link. I have a Flash movie on one of these pages.This movie has button links that I want to lead to the dynamic html pages of the siteIs there anyway the actionscript for the buttons that link to the dynamic html pages of the site be updated within the .swf to include this dynamically created session number when a user logs in to the site? Can this happen automatically? In other words can links in a swf be created dynamically by a server?
View 0 Replies
Dec 13, 2010
I have developed a rolling credits style movieclip in Flash using Actionscript 2. Text is loaded from an XML file and parsed into a dynamic textfield. This text includes hyperlinks to webpages defined by a url node in the xml so Flash can add the appropriate a href to the dynamic text field and make the link clickable.
In my first attempts to do this the textfield stayed still and all the links worked fine both testing locally and when I run it in a browser on my website.Then I wanted to make things move ... which I achieved easily enough and tested locally (from within Flash Professional) and the links remained clickable, a browser window opened and the webpage i was expecting to see opened... great
However, when I export the swf, upload it and run it from my website suddenly the links are not working. So I tried to test the movie in a browser from Flash Pro - same problem, it must be something to do with Flash Player and the moving dynamic textfield.
a couple of observations - the cursor will change to a hand icon when over the links as you would expect, and if I right click on the link and click open in a new window the link works ok, just not when I left click. If I stop the scrolling then the links become clickable again, it is only when the textfield is moving... actually its not technically scrolling, im moving the whole textfield.
View 1 Replies
Jun 21, 2005
I have been building this website and have run into a snag. The navigation for the site does not work well. The user seems to have to click alot of buttons just to get the information they want, so here is the site url...
First, I am using a flash navigation on the left side to control content in an Iframe.
Secondly, I have links in the Iframe that I would like to control the flash navigation.
For instance, on the portfolio page. When a user clicks on a project, I would like the menu to expand to the location of where the link in the menu is: example: in the profolio page, click on campden lakes home and the menu on the left expands project; over 4000 sq ft; So, having said that; do i have the site setup weird? Is there an other navigation menu that I can use.I think this is a flash actionscript, but i am not sure, sorry if If this questions should be in an other category. I hope someone can show me the errors of my ways.
View 3 Replies
Mar 1, 2010
I don't mind if any answers are AS2 or AS3 solutions, just curious really - seems weird that I couldn't find out how to do this really quickly.
View 2 Replies
Nov 12, 2010
Here's the link to my flash menu:[URL]how I can adjust the links inside the menu and the menu item text?
View 1 Replies
Sep 6, 2005
i have problem to do something in flash MX 2004 so i have question to this fine community1. there are some CD's with some subdirectories [ names of subdirectories are different on every CD ]2. on these CD's are autorun.exe [ created with SWF Studio ] which contains swf ,and this swf is used to show content of main folder 3. in every subdirectory there is the same swf file and it is showing content of the subdirectory.is there posibility to make a simple menu [ in the swf file from 2nd point ] which will becontainig links to swf files in subdirectories ,but it should dynamically get subdirectories names and transform them into menu linksbeneath is example structure of CD.
CD
|
|--FOTOS
[code]....
View 2 Replies
Apr 2, 2007
I've been working on an imitation of the SamataMason website sub navigation. Right now I have a top level menu that is created from an array, and a sub menu display that is created from XML. If you click on any of the top 4 or so items in the menu you'll see a list of links displayed below. The problem at this point is that the line of code that controls which XML nodes get displayed causes the URL links to break.
Line 37 of the "XML functions" layer contains the code that breaks the URL links:Code:if (item.attributes.industry == industry) {If you comment out the line (and it's closing brace on Line 54) you can click on any of the top 4 menu items and it will display a list in which the URL links work. But you're not seeing the appropriate list for each menu item.Anyone know how to rewrite this line so that it doesn't interfere with the other code? I'm baffled as to why "URL" breaks but the "client" nodes still work.
View 4 Replies
Mar 23, 2009
i have a flash that I have tried to add my html link to the aboutus.htlm, billboard.html, and contac.html and it is not working? I am still new but would like to email the flash file for someone to tell me why its not working- I added the link for aboutus.html but its not working.
View 6 Replies
Apr 14, 2009
alright, here is the deal: i have published a .swf AND a macintosh projector file and the only thing the movie contains is one button with a link to a web page. here is my actionscript:
on(release) {
getURL("http://www.google.com");
}
i click on the button and absolutely nothing happens. has anyone ever come across something like this? is this a settings problem?
View 6 Replies
Aug 22, 2009
I am trying to get a drop down menu to work in Flash but cannot get the Actionscript to work. I am a novice at Actionscript so I'm not even sure where to start. Basically, I want the menu to drop down when you hover over it. If I can show me how I should start the script, I can probably figure the rest out. I have four drop down buttons that should come down when you hover or roll over. I can't attach the flash file because it is over the file limit.
View 7 Replies
Nov 30, 2009
I've been asked to modify this flash piece (CS3, AS2) and add clickable links to the pop up menu. For the life of me I can't get it to work, and my head hurts from searching the web top to bottom for an answer. I would attach the fla but its too large, but basically you scroll over a button, in this case a dot, and it triggers a pop up box beside it with a list of items. These are generated by frame identifiers, and when you roll over the box it goes away. I need it to stay there and make that list of items clickable ones.
View 5 Replies
Jan 6, 2010
My problem is that I just recently start working on the company website. They a have menu bar on the side of the website. Some of the links dont work. Where would I find the hyper links in the file to change them to make them work?
View 5 Replies
Sep 14, 2008
[URL] I finally figured out how to get my rollover links to work, but now I need to figure out how to make the bottom links move. For example, when we rollover the Arizona Link, we want the California and Contact Us links to move BELOW the Arizona rollovers. And same thing for when the California link is rolled over, we want the Contact Us link to move BELOW the California roll overs. I feel like it's just a matter of simple code manipulation where I have the rollover code for the individual links, the code I have is below:
[Code]...
View 1 Replies
Jun 28, 2010
I new to flash and I am trying to create a menu similar to the one in this tutorial: [URL] I was able to do so with no problems, but I would like the pages, or rectangles (content 1 movie clip, content 2 movie clip, etc) to also be hyperlinks to different pages. In other words, the user should be able to click on the big rectangles to get to other pages. I tried making them button symbols instead of movie clip symbols, but that broke the sliding menu- the rectangles no longer moved when buttons were clicked. I tried adding a getURL action to onRelease for the movie clips, but I get an error and from what I read, this cannot be done with Actionscript 2.
View 2 Replies