Jump to content


Help with menu!


  • You cannot reply to this topic
12 replies to this topic

#1 Crueltylizer

    Young Padawan

  • Members
  • Pip
  • 22 posts
  • Gender:Male
  • Location:Denmark
  • Interests:Fitness, Design, Webdesign, Graphics, Computers, Games, Technology

Posted 04 March 2006 - 04:01 PM

Hi guys!

Im building a website and is almost done but i have one problem which is the menu!

I've assigned urls to each button with the actionscript

on (release) {
getURL("url");
}


But when i upload it to my website when i press the buttons nothing happens..

Please Help me!

You can watch the menu here

http://www.m3kd.com/graw

and download the fla here

http://www.m3kd.com/.../menurevamp.fla

I would be really greatfull if somebody could help me out!

Thx in advance.. :huh:

#2 Pax

    P2L Jedi

  • Members
  • PipPipPip
  • 911 posts
  • Gender:Male
  • Location:Windsor, ON, Canada

Posted 04 March 2006 - 07:28 PM

Ok, try this code instead:
Take this code off of the movieclips (AS on movieclips = bad idea)
/*on (rollOver) {
_root.mouse_over_button1 = true;
}
on (rollOut) {
_root.mouse_over_button1 = fstartlse;
}
on (release) {
	getURL("http://dust.xboxlife.dk");
}

Put this code at the bottom of your AS layer.

this.home_btn.onRollOver = function(){
	this._parent.mouse_over_button1 = true;
	}
this.home_btn.onRollOut = function(){
	this._parent.mouse_over_button1 = fstartlse;
	}
this.home_btn.onPress = function(){
	getURL("http://dust.xboxlife.dk", _blank);
	}

Should work for ya, good luck.

#3 Pax

    P2L Jedi

  • Members
  • PipPipPip
  • 911 posts
  • Gender:Male
  • Location:Windsor, ON, Canada

Posted 04 March 2006 - 07:34 PM

I just thought of somthing else...I heard somewhere that Flash 8's security features can sometimes block you from loading external links...so you might want to check into that. That actually might be your problem.

#4 funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 04 March 2006 - 07:50 PM

Flash Security features only affect when passing variables / strings out or in to flash.

#5 Pax

    P2L Jedi

  • Members
  • PipPipPip
  • 911 posts
  • Gender:Male
  • Location:Windsor, ON, Canada

Posted 04 March 2006 - 07:58 PM

Yah, was just doing some research about it. Its mainly just when running .swf's locally too. Macromedia was trying to prevent malicious attacks on people via .swf files, so they made it that no content could be loaded from non-local files, or even from local .html, .xml, etc. files unless the security settings were changed.

#6 Crueltylizer

    Young Padawan

  • Members
  • Pip
  • 22 posts
  • Gender:Male
  • Location:Denmark
  • Interests:Fitness, Design, Webdesign, Graphics, Computers, Games, Technology

Posted 05 March 2006 - 03:27 AM

So i should turn this off before doing anything else?

#7 Pax

    P2L Jedi

  • Members
  • PipPipPip
  • 911 posts
  • Gender:Male
  • Location:Windsor, ON, Canada

Posted 05 March 2006 - 08:30 AM

Eh, try the other code and see if it works. After reading the stuff Macromedia released on the security stuff, your swf should work fine online, but be blocked when running locally.

Edit:
Just uploaded the changed code my my server, and its not working yet...I'll go have a look at it later on, I gotta head out now.

Edited by Pax, 05 March 2006 - 08:39 AM.


#8 Crueltylizer

    Young Padawan

  • Members
  • Pip
  • 22 posts
  • Gender:Male
  • Location:Denmark
  • Interests:Fitness, Design, Webdesign, Graphics, Computers, Games, Technology

Posted 05 March 2006 - 04:35 PM

Great thx..!

Tried it myself and it wouldn't work so..

But i really hope you can help me as this project should be out and working by friday so im kinda in time need atm.. :D

#9 Pax

    P2L Jedi

  • Members
  • PipPipPip
  • 911 posts
  • Gender:Male
  • Location:Windsor, ON, Canada

Posted 05 March 2006 - 04:42 PM

Haha, crunch time, eh? I'll try to get a fix on it...maybe funkysoul can help if I cant.

Edit;
Ok, Ive been looking over your .fla again. you have multiple things with the same instance name, that might be the problem...

Edit:
Ok......
All fixed mate!

Change the instance names of the buttons to somthing thats different from the movieclip instance names (right now they're all button1, button2, etc);
and use the code from above for every button. That should make things work!

check it out at http://mirusconcepts...menurevamp.html

Edited by Pax, 05 March 2006 - 05:06 PM.


#10 Crueltylizer

    Young Padawan

  • Members
  • Pip
  • 22 posts
  • Gender:Male
  • Location:Denmark
  • Interests:Fitness, Design, Webdesign, Graphics, Computers, Games, Technology

Posted 06 March 2006 - 05:19 AM

Oh Pax you saved me there.. :D

Could you maybe send me the .fla? ^_^

crueltylizer@gmail.com

Thx.. ;)

#11 Pax

    P2L Jedi

  • Members
  • PipPipPip
  • 911 posts
  • Gender:Male
  • Location:Windsor, ON, Canada

Posted 06 March 2006 - 08:05 AM

Lol, I only did the one button in the .fla, but yah, I'll put it online for you.
www.mirusconcepts.com/pf/menurevamp.fla

#12 Liencouer

    Young Padawan

  • Members
  • Pip
  • 1 posts

Posted 21 March 2006 - 12:29 PM

Is it possable to make that particular feature modular? If I wanted to be able to cover the screen in dots that faded in and out when you moused over and off them without having to renumber everything up to 100, for example.

#13 funkysoul

    The Funky Stuff

  • Publishing Betazoids
  • PipPipPipPip
  • 2,307 posts
  • Gender:Male
  • Location:Zurich, Switzerland
  • Interests:Music: HIM, HIM, HIM, Cafe del Mar, Linkin Park, Fort Minor, Coldplay, Eric Jordan<br />Sports: Snowboarding, KiteSurfing, Extreme Sports<br />Computer: Flash, After Effects, Actionscript

Posted 21 March 2006 - 02:01 PM

not like the menu is at the moment..
If you want to create it modular you need to create the "dots" dynamically and assign them an ID dynamically.. which is a few lines of coding





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users