473,765 Members | 2,047 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

image disappears when I click on it

35 New Member
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 2355
Motoma
3,237 Recognized Expert Specialist
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
2649
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 selected rectangle as I expected, BUT ONLY when I run from within the .vbp. The cmdButton code is a 1 liner, namely: Me.imgMain.ZoomToSelection... If I create an executable, and perform the same thing, the image flashes once, showing me that the...
6
10065
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 so of formatted text appears below, when the mouse leaves the image, the text disappears; when the mouse hovers over image2, a different body of text appears in
10
5854
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 when page loads then disappears.. was wondering what is causing this.. thank you very much... Frances
21
20652
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. http://www.officeactivate.com/web-site-design.shtml Any ideas? thanks.
6
5175
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 second half does not print at the top of the following page.? Huh.? The single image for each record is contained inside of a table with a simple construct. No rowspans just an ordinary <td> placement. The output can be viewed at:
39
3053
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 OpenFileDialog1.ShowDialog() = DialogResult.OK The Dim sr As New System.IO.StreamReader(OpenFileDialog1.FileName Me.BackgroundImage = Image.FromFile(OpenFileDialog1.FileName sr.Close( End I End Su
2
2024
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 not accessible). I'd like to do this either before or after the user selects that particular node. How do I check for a path's status? Also I've played around with the AfterSelect event combined with
24
6275
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 can't figure out how to embed an image. Thanks for your time. -- Manuel
2
1876
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 thumbnail is clicked the larger image remains selected until another thumb is clicked. At the moment when I click a thumbnail the larger image appears, but if I click anywhere else in the page or adjust my scrollbar the image
0
9399
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10163
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10007
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9835
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8832
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5423
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3924
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3532
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.