try quotes around _level0.buttonURL[i] Colm
-----Original Message----- From: Paul Johnston [mailto:[EMAIL PROTECTED] Sent: 28 February 2003 11:37 To: [EMAIL PROTECTED] Subject: [ cf-dev ] OT: Flash Buttons... I don't want to get on a flash list for a quick question: Okay, I have a flash navigation movie. I have a movie clip in the library and it is being used as a button... The movie is called navlink, and I have made a couple of arrays with the text and the URL's in there. I also have an empty array called movieClips. Here is the actionscript to create the button, add the text, and also to add the onRelease function to make it a button // create the buttons and add the URL's for(i = 0; i < _level0.buttonText.length; i++) { // attach the movie in the library _level0.attachMovie("navLink", "mc" + i, 500 + i); // duplicateMovieClip(_level0.navLinkBtn, "mc" + i, 500 + i); _level0.movieClips[i] = eval("_level0.mc" + i); _level0.movieClips[i].linkText.text = "[" + buttonText[i] + "]"; _level0.movieClips[i]._x = 300 + (i * 65); _level0.movieClips[i]._y = 25; // create the on release function to make it a button _level0.movieClips[i].onRelease = function() { _level0.getURL(_level0.buttonURL[i], "_parent", "POST"); } } The problem is, that if I run the movie in the player, it actually creates a new window with the getURL function. However, if I upload it and put it into HTML, and it's embedded, it doesn't call the page at all. Any ideas? Paul ------------------------------------------- Paul Johnston PJ Net Solutions Ltd http://www.pjnetsolutions.com [EMAIL PROTECTED] +44 (0)7866 573013 -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003 -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
