ActionScript 2.0 :: XML Menu - URL Links Broken

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


Similar Posts:


ActionScript 2.0 :: Detect Broken Image Links Before Loading On Stage?

Nov 13, 2006

I've just finished a flash projector for my company's lobby that displays all members of the staff in a dynamically generated grid with a page for each department. Flash reads an xml file generated from our Active Directory using php.

I've just discovered a bug. We have several employees that don't wish to have their images displayed; the autogenerated path to their images are therefore false. When the screen loads, a blank space appears where the movieclip is supposed to load.

How do I detect that the image link is bad (must be simple as flash gives out debug errors)? I would like to load an alternate image for staff with missing images.

Here's a snippet of where the movie clips are generated:

Code:
for (i=0;i<nodes.length;i++) {
attachMovie("container", "new"+i, i, {_x:xPos, _y:yPos});
//load the image from the xml nodes array
this["new"+i].photo.loadMovie("images/staff/"+nodes[i].attributes.photo);
}

View 3 Replies

ActionScript 2.0 :: Can't Select The Links Which Animate Out A Menu That Holds A Couple Of Links?

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

ActionScript 2.0 :: Xml Menu And Links

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

Can't Find Menu Text And Links?

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

ActionScript 2.0 :: Getting Dir Names As A Links In Menu?

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

IDE :: Drop Down Menu Links Don't Work

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

Flash8 :: Drop Down Menu Links Don't Work

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

ActionScript 2.0 :: Add Clickable Links To Popup Menu

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

Professional :: Some Links On Side Menu Bar Not Working

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

Flash :: Making Menu Links That Connect To Each Other

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

ActionScript 2.0 :: Moving Menu Links On Rollover

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

IDE :: Make Drop Down Menu And Links To Flash CS4?

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

ActionScript 2.0 :: Adding Links To Sliding Menu

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

Create Custom Links In Viewers Right Click Menu ?

May 21, 2009

Ive noticed a lot of flash websites have user defined items/links added to the default flash right click settings menu. In other words when we right click on such flash websites it shows links to the designers home page or associated site etc.

View 14 Replies

Adding Menu With Links On Left And Videos On Middle / Right?

Aug 6, 2009

I am trying to do the following: I have a project file open in CS4. It currently has a background image which is locked. I want to include a menu with links/sublinks on the left side, a corporate video in the middle and another video on the right. The menu on the left (links/sublinks) simultaneously controls the other two videos. If the user clicks the 'stop' link, both videos stop. I would also like to include a scrubber, to control the video (play, pause, rewind, mute).

I am trying to do this in pieces - first get the video imported and playing, then create scrubber/playcontrols, then incorporate second video, and finally add the menu (links/sublinks). I have created sites with Flash, but this project has me baffled. I have spent months on it. As an example - I am struggling just to import the first video. Do I embed it? It seems as though each time I import the video, it does something different. I was told to embed it into the timeline (each frame of video would be on its own frame in the Timeline). This would alleviate AV synch issues, and allow me to control everything at once.

View 12 Replies

ActionScript 1/2 :: Flash Menu: Unable To Get Links To Work

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

ActionScript 2.0 :: Sliding / Scrolling Menu Of Images With Links

Jan 22, 2005

How I could make a sliding/scrolling menu of images(sideways) with links and those images should dynamically loads from lets say a directory or something like that and can easily control/change image and url in a simple external text file( heres a sample of what it should look like: [URL] the bottom part. How to achieve the sliding menu image that loads dynamically.

View 2 Replies

ActionScript 2.0 :: [FMX04] Mac-like Dock Menu: Creating Links?

Sep 9, 2010

I was following this nice tutorial on how to create a dock-like menu in Flash.I managed to add my own icons and to adapt height and length etc., but I did not manage to remove the grey bar in the back.And more important, to add a link to one of the items in the dock. I tried to make the icon a button, but that didn't really work.

View 1 Replies

ActionScript 2.0 :: Dynamic Menu - Text Scroll With Links?

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

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

ActionScript 2.0 :: Create A Basic Menu System Rollover And Roll Out Of All Links?

Jan 12, 2009

I'm in the process of learning OOP and have run into a small problem. I'm trying to create a basic menu system where you can rollover and rollout of all links. When you select a link, it stays highlighted until you click another link.I've given the 5 links instance names like (link0, link1, link2, link3, link4) and given them each an ID of (0,1,2,3,4) - respectively. I used to be able to do something like this:

Code:

this.onRollOver = function(){
if(this.ID != _root.selectedLink){
this.gotoAndPlay('in');
}

[code]....

View 1 Replies

ActionScript 3.0 :: Slideshow With Links - Incorrect Links After 1 Replay?

Aug 17, 2011

i created a flash slideshow with pictures of events and link each picture with its own event (ie. each pictures has its own links to the website). I created the fade in and fade out effect using the class motion tween. With the link, I created a layer with a button that has alpha= 0 (so the user don't see it) and then I used code snippet to make another layer with the action script "click to go to url."

When the slideshow goes to the last picture I made it fade out and the first picture of the slideshow would show up and then the slideshow would replay itself (by default?). My goal is to make a continuous slideshow.

When I tested the swf file, the first time it runs, everything is right. The urls and the pictures are in correct order. However when the slideshow replays itself automatically, I notice that the links are incorrect. In the first play, when I click the picture of the event it would open the url of that event.However when the sldieshow replays, clicking the pictures would only open the url of the first event picture. When I click on the 2nd, 3rd, 4th, etc.pictures the browser opens only the link of the first picture of the slideshow.

View 11 Replies

ActionScript 3.0 :: Disabling Links And/or Redirecting Links In HTMLLoader?

Oct 30, 2009

code for disabling and redirecting links in the HTMLLoader:

Code:
import flash.html.*;
import flash.net.URLRequest;

[code]....

View 0 Replies

ActionScript 2.0 :: HTML Links From An XML Document - Links Not Working

Apr 21, 2011

I've got a PHP script that searches for links in a block of text and converts them to HTML values. The $message variable is then entered into my database using a simple INSERT. So far, so good. Then I have Flash parse the message using XML:

ActionScript Code:
function messStyling() {
messCSS = new TextField.StyleSheet();
var messCSSURL = "include/links.css";

[Code].....

The problem, however, is that my links don't work. The rollover works from the CSS styling, but the links don't actually go anywhere. When I rollover the links, the hand cursor doesn't appear, and clicking only serves to change the color back to the non-hover value.

View 9 Replies

Coding - Links Linking To Wrong...links?

Sep 14, 2009

I'm writing some code in Flash MX 2004 and everything works fine except for the last button (4DSystemsProducts).According to the coding if none of the drop down buttons work it should go to products.php, but for some reason it goes to 4DSystemsProducts.php. All of the other menus are coded the same way and work fine, if I take out that button it works fine,or if I take out button 7 and switch 4DSystems to button 7 everything works.Here is the code to clear up this explanation. [code]....

View 5 Replies

Actionscript 3.0 :: Trial Links To Html Links?

Apr 14, 2011

I want to add links to 3 different external html pages in the place of th 3 my trial links(which are on the timeline) Here is code, this creates the three buttons listed in var catBtmmenu_label Array:

Code: Select all// Catalogue Bottom Button
//stop();
//hide button on the stage[code]..........

I dont know how to assign links to dynamic created buttons.

View 1 Replies

PhotoAlbum Broken?

Aug 27, 2009

I got a photo album in flash, Actionscript 2.0. Now when i compile it with flash, to make the swf, every runs fine, but when i load it online to my webspace, it break, it takes forever to load and the pic is off centered.

View 1 Replies

Flash8 Preloader Broken?

Feb 7, 2010

OK In a previous game on the same AS (2), I made a preloader, the code worked fine, all of the code was isolated on one frame so on another game I copied the frame and pasted into my other game. but the only difference is that one of my games is using flash player 8 (working preloader) and the other is using flash player 6 (not working.) Im using the same code.here is the frame code (all of it on frame):

Code:
var loadingCall:Number = setInterval(preloadSite, 50);
function preloadSite():Void {

[code].....

View 2 Replies

Professional :: Scenes Broken In CS4?

Mar 19, 2010

I've just started working with CS4, and admittedly I'm new to Flash, but I can't get the Scene functionality to work as described in the docs. The class MovieClip has a currentScene property that should return a Scene object. The Flash 10.0 docs give this code as an example :import flash.display.Scene;var scene:Scene =mc1.currentScene;trace(scene.name + ": " + scene.numFrames + " frames"); However, if you create a new ActionScript 3.0 fla file, create a MovieClip instance, name it mc1, and put this exact code in one of the frames, it returns a Scene object with no name and only 1 frame.Changing the name of the scene in CS4 does not . Am I missing something?

View 15 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved