473,396 Members | 2,147 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

image disappears when I click on it

35
hi,

I have been trying to find out why the dots disappear when I click on portfolio, below is the actionscript code

Expand|Select|Wrap|Line Numbers
  1. stop();
  2.  
  3. _root.createEmptyMovieClip("circle_on_top_mc",_root.getNextHighestDepth());
  4.  
  5. about_mc.onRollOver=function(){
  6.     this.swapDepths(_root.circle_on_top_mc);
  7.     }
  8. about_mc.onRollOut=function(){
  9.     _root.circle_on_top_mc.swapDepths(this);
  10. }
  11.  
  12. portfolio_mc.onRollOver=function(){
  13.     this.swapDepths(_root.circle_on_top_mc);
  14.     }
  15. portfolio_mc.onRollOut=function(){
  16.     _root.circle_on_top_mc.swapDepths(this);
  17. }
  18.  
  19. game_mc.onRollOver=function(){
  20.     this.swapDepths(_root.circle_on_top_mc);
  21.     }
  22. game_mc.onRollOut=function(){
  23.     _root.circle_on_top_mc.swapDepths(this);
  24. }
  25.  
  26. animation_mc.onRollOver=function(){
  27.     this.swapDepths(_root.circle_on_top_mc);
  28.     }
  29. animation_mc.onRollOut=function(){
  30.     _root.circle_on_top_mc.swapDepths(this);
  31. }
  32.  
  33. contact_mc.onRollOver=function(){
  34.     this.swapDepths(_root.circle_on_top_mc);
  35.     }
  36. contact_mc.onRollOut=function(){
  37.     _root.circle_on_top_mc.swapDepths(this);
  38. }
  39.  
  40. function disable(){
  41.     about_mc._visible=false;
  42.     portfolio_mc._visible=false;
  43.     game_mc._visible=false;
  44.     animtion_mc._visible=false;
  45.     contact_mc._visible=false;    
  46. }
  47.  
  48. function enable(){
  49.     about_mc._visible=true;
  50.     portfolio_mc._visible=true;
  51.     game_mc._visible=true;
  52.     animtion_mc._visible=true;
  53.     contact_mc._visible=true;    
  54. }
  55.  
  56. about_mc.onRelease = function  () {
  57.     disable();
  58.     var t:MovieClip = popupholder_mc.attachMovie("about","about_mc",popupholder_mc.getNextHighestDepth());
  59.     t._x =100;
  60.     t._y =200;
  61.     t.closer_mc.onRelease = function  () {    
  62.     enable()
  63.         t.removeMovieClip();        
  64.     }
  65. }
  66.  
  67. contact_mc.onRelease = function  () {
  68.     disable();
  69.     var t:MovieClip = popupholder_mc.attachMovie("contact","contact_mc",popupholder_mc.getNextHighestDepth());
  70.     t._x = 100;
  71.     t._y = 195;
  72.     t.closer_mc.onRelease = function  () {        
  73.     enable();
  74.         t.removeMovieClip();        
  75.     }
  76. }
  77.  
  78. portfolio_mc.onRelease = function  () {
  79.     disable();
  80.     var t:MovieClip = popupholder_mc.attachMovie("portfolio","portfolio_mc",popupholder_mc.getNextHighestDepth());
  81.     t._x =100;
  82.     t._y =200;
  83.     t.closer_mc.onRelease = function  () {    
  84.     enable()
  85.     t.removeMovieClip();        
  86.     }
  87. }
  88.  
  89.  
  90. _root.createEmptyMovieClip("canvas_mc",1);
  91.  
Go to http://www.paulineng.co.uk hover over the dots until portfolio comes up, when you click on it, the about, contact, plus other dots disappear, I am pulling my hair out trying to figure out why. Any help appreciated.

thanks
May 10 '07 #1
1 2336
Motoma
3,237 Expert 2GB
I think it is because you are drawing on a layer above them.
May 11 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: John L | last post by:
Thanks in advance... I have an image control into which I load a .tif image, which loads fine... And when I select a rectangle to zoom down to , and click on a cmdButton ("ZOOM IN"), I zoom to...
6
by: killerkatt | last post by:
I am new to CSS and would like to know if there is a way to make this happen with CSS: image1 and image 2 are laid out at the top of the page. when the mouse hovers over image1, a paragragh or...
10
by: Frances Del Rio | last post by:
background-image: url(images/logo_bg.jpg); background-repeat:no-repeat; background-attachment:fixed; this works fine for all my pages in site I'm doing, except one, where bg img appears quickly...
21
by: Dan V. | last post by:
I have tried a number of things including preloading, but the background image (water tile in header) in IE 6 will not display where other browsers will....
6
by: Les Juby | last post by:
I'm trying to print a simple catalogue of products but where an image straddles a page break, the image either disappears completely or else the first half prints at the bottom of the page but the...
39
by: jcrouse | last post by:
I am using the following code to get a background image for my form Private Sub mnuBgroundImage_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuBgroundImage.Clic If...
2
by: Han Sen | last post by:
I'm building a treeview from an xml file. The node values point to various paths, some of which are network paths. Next to every node I'd like to display an "offline" image (if that the path is...
24
by: Manuel | last post by:
Is it possible to embed an image, like a company logo in a CDOSYS generated message? If yes, I´ll apreciate some code sample. I´ve been able to format messages in html the way I like, but I...
2
by: kaizer bo | last post by:
Hi all, could someone show me how to add javascript functionality to a css image gallery? I would like to adapt the gallery at "http://www.cssplay.co.uk/menu/gallery_click.html" so that when a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.