Copy link to clipboard
Copied
Dear All,
Have a good day.
I faced a strange issue in flash version 20.0.0.286... The mouse hide automatically unnecessary in the page. Below is the detailed explanation.
1. There is a main template which will load the external swf and control it by next and previous button to show pages.
2. The external file has a movie clip called "content_mc". It has 3 pages with the label "page 1", "page 2"....
3. page 1 starts from the frame # 2 to 149 and the page 2 starts from the frame #150 to 300
4. In the 100th frame (only in that frame), I have a movie clip called "custom_cursor_mc" and inside that mc, I have a code "Mouse.hide()" in the first frame - line 2, to show my custom cursor
5. Now I load that external swf into the main template and click the next button as soon as the page 1 is entered.
6. Now, the cursor is disappeared unnecessarily.
For more details please see the below image
Any one please advice me why this is happening even though the mouse hide code is not in the page 2 and how to solve it.
NOTE: This was not in the previous versions.
Thanks in advance
Rajaguru.V
Copy link to clipboard
Copied
add a trace statement just before Mouse.hide() to confirm that code is executing and not some extraneous code.
Copy link to clipboard
Copied
Hi Kglad,
Thanks for the reply. It is working fine if I apply line comment or delete that line.
Thanks,
Rajaguru.V
Copy link to clipboard
Copied
ok, now duplicate the Mouse.hide() movieclip in the library and add a trace('dup') above Mouse.hide() in the duplicate movieclip
remove the previous Mouse.hide() movieclip from frame 100. double click the original (now removed from frame 100) movieclip to edit it and remove Mouse.hide() from it and place a trace('orig').
add the duplicate to frame 100.
test.
copy and paste the trace output.
Copy link to clipboard
Copied
Hi Kglad,
Thanks again. I'm unable to check with trace, because it is working fine in standalone and no issue. It gives trouble only in the browser (player version 20.0.0.286..).
I tried with added a new line -> MovieClip(parent).tt.text="test text"; before Mouse.hide(); instead of trace, Strange no issue in the browser also. But if I remove that new line, again the problem starts. It is strange.
Thanks,
Rajaguru.V
Copy link to clipboard
Copied
Hi Kglad,
I tried as you said with the duplicate movie clip and I got the below result in the debugger window (swf directly dropped in the browser for testing). Also I added a new trace in 150th frame trace("page 2").
The result is
--> page 2
--> dup
[Sorry I forgot to tell you, the custom_cursor_mc is a converted component]
Thanks,
Rajaguru.V
Copy link to clipboard
Copied
if you recompiled the 'converted' component, its code will execute immediately.
try using a new movieclip with Mouse.hide() instead of the component to test if that's the issue.
Copy link to clipboard
Copied
Hi Kglad,
I tried as u said. I removed the component from 100th frame and created new movie clip and scripted as below
1. trace("mouse hide here");
2. Mouse.hide();
The result is
--> page 2
--> mouse hide here (cursor visible - NO)
Still same issue persist. Cursor disappeared.
After comment 2nd line --> //Mouse.hide();
The result is
--> page 2
--> mouse hide here (cursor visible - YES)
No issue. Cursor not disappeared. But at the same time, the first line of that mc is executed [ trace("mouse hide here") ].
Thanks,
Rajaguru.V
Copy link to clipboard
Copied
create two new flas.
one that loads the other.
in the loaded fla add a movieclip at frame 100 that contains Mouse.hide().
test.
any problem?
Copy link to clipboard
Copied
Hi Kglad,
Sorry for the late reply. I was held up with other work.
I tried as you said with 2 new flash files. The issue still exist in IE, FF. In Chrome, its working fine.
Is there any option to attach the zip file here?
Thanks,
Rajaguru.V
Copy link to clipboard
Copied
no
Copy link to clipboard
Copied
Hi Kglad,
I attached the files in the below link. Could you please check and tell me what is the actual issue? I mean whether it is Flash player issue or from my side?
http://wikisend.com/download/283762/checking.zip
Thanks,
Rajaguru.V
Copy link to clipboard
Copied
i don't download and correct files unless i'm hired.
someone else, however, may do that for you.
Copy link to clipboard
Copied
Thanks you very much Kglad.
Copy link to clipboard
Copied
you're welcome.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now