Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Urgent : Mouse Cursor Disappear

Participant ,
Jan 31, 2016 Jan 31, 2016

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

MouseHide.jpg

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

TOPICS
ActionScript
1.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 01, 2016 Feb 01, 2016

add a trace statement just before Mouse.hide() to confirm that code is executing and not some extraneous code.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 01, 2016 Feb 01, 2016

Hi Kglad,

Thanks for the reply. It is working fine if I apply line comment or delete that line.

Thanks,

Rajaguru.V

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 01, 2016 Feb 01, 2016

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 01, 2016 Feb 01, 2016

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 01, 2016 Feb 01, 2016

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 02, 2016 Feb 02, 2016

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 03, 2016 Feb 03, 2016

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 03, 2016 Feb 03, 2016

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 10, 2016 Feb 10, 2016

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 10, 2016 Feb 10, 2016

no

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 10, 2016 Feb 10, 2016

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 10, 2016 Feb 10, 2016

i don't download and correct files unless i'm hired.

someone else, however, may do that for you.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 10, 2016 Feb 10, 2016

Thanks you very much Kglad.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 11, 2016 Feb 11, 2016
LATEST

you're welcome.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines