Back button not responding after asfunction called from XML

Hi Everyone,

If someone could set me on the way of solving this problem it would be greatly appreciated.

As stated in the title.
The back button in my flash project becomes unresponsive untill I move the mousecursor only a pixel in any direction. Strangely enough it works fine for links that are in the flash file like the navigation buttons on the left side, but becomes unresponsive as soon as I call an asfunction from within the XML file.
Its quite complicated to explain. Maybe its just best that I show the flash file and let you see for yourself.

You can download the files here.
http://www.quantum-leap.be/chellomedia/kirupa.zip

This is what you need to do in order to reproduce the problem.:cons:
Open the swf named "hometestback.swf "in the swf folder.
Click on “sitemap” button at the top (the XML data page is loaded into the textpane)
Click in the textpane on the “partner benefits” link (its the first link under “company title”)
The new XML data is loaded.
Now hit the back button (the little arrow next to the company ::partner benefits title)
And the page will go back to the previous “sitemap” page.
However If I click on the backbutton again without moving the mouse nothing happens. (it should move back to the first page)
Well you can see the overstate of the button but the button functionality is never started.

I’ve been trying to find a solution for this for the past week.
And nothing seems to work.

In the debugger I can’t reproduce the problem, but when playing the movie as a test its still there.:ponder:

I tried making different buttons. So they would load a different instance of the button and the swf would be forced to load a new button on every page it landed.
I tried onPress, onMouseDown, onRelease none of it works.
I tried creating movieclips with the functionality of a button.
I tried mouse event listeners. So the back button would at least detect a new mouseclick.
I even tried starting from scratch and recreated the entire site all over again.

However no click of the mouse seems to be noticed by the flash player untill I’ve moved the mousecursor just a little bit.

From within the XML the only thing I call is a function inside the swf.
The back button works by inserting the last page the user was on into an array and when pressed the back button moves back to the last page (framelabel) in the array.

Wow, i’m sorry if this is confusing.
I’m not expecting anyone to solve this for me.
But I’m out of options to try and make it work so any ideas or hints of a possible solution would be greatly appreciated.:jailbreak

THX a lot!
Kristof

I’m facing exactly the same problem. Did you find a solution? Someone suggested that I reduce the FPS. But no luck.

Hi,

I am not able to downlaod that file … .
could you resend that ?

[quote=Jungletactics;2032089]Hi Everyone,

If someone could set me on the way of solving this problem it would be greatly appreciated.

As stated in the title.
The back button in my flash project becomes unresponsive untill I move the mousecursor only a pixel in any direction. Strangely enough it works fine for links that are in the flash file like the navigation buttons on the left side, but becomes unresponsive as soon as I call an asfunction from within the XML file.
Its quite complicated to explain. Maybe its just best that I show the flash file and let you see for yourself.

You can download the files here.
http://www.quantum-leap.be/chellomedia/kirupa.zip

This is what you need to do in order to reproduce the problem.:cons:
Open the swf named "hometestback.swf "in the swf folder.
Click on “sitemap” button at the top (the XML data page is loaded into the textpane)
Click in the textpane on the “partner benefits” link (its the first link under “company title”)
The new XML data is loaded.
Now hit the back button (the little arrow next to the company ::partner benefits title)
And the page will go back to the previous “sitemap” page.
However If I click on the backbutton again without moving the mouse nothing happens. (it should move back to the first page)
Well you can see the overstate of the button but the button functionality is never started.

I’ve been trying to find a solution for this for the past week.
And nothing seems to work.

In the debugger I can’t reproduce the problem, but when playing the movie as a test its still there.:ponder:

I tried making different buttons. So they would load a different instance of the button and the swf would be forced to load a new button on every page it landed.
I tried onPress, onMouseDown, onRelease none of it works.
I tried creating movieclips with the functionality of a button.
I tried mouse event listeners. So the back button would at least detect a new mouseclick.
I even tried starting from scratch and recreated the entire site all over again.

However no click of the mouse seems to be noticed by the flash player untill I’ve moved the mousecursor just a little bit.

From within the XML the only thing I call is a function inside the swf.
The back button works by inserting the last page the user was on into an array and when pressed the back button moves back to the last page (framelabel) in the array.

Wow, i’m sorry if this is confusing.
I’m not expecting anyone to solve this for me.
But I’m out of options to try and make it work so any ideas or hints of a possible solution would be greatly appreciated.:jailbreak

THX a lot!
Kristof[/quote]

[quote=jorawar;2355291]Hi,

I am not able to downlaod that file … .
could you resend that ?[/quote]

You can download the sample from here.
http://bijothoma.googlepages.com/asfunction.zip
(note : this is a flash8 fla.)
When next or previous button is clicked first, it functions normally.
But when the link is clicked in the text box, the button events are acting erratic. Is this a know bug?? or is there a work around…

thanks

Did anyone here ever find a solution to this problem? I am experiencing exactly the same behavior and it’s very annoying. =/

Any suggestions would be greatly appreciated.

thanks!

Not having a problem with it here, although I’ve heard of something similar:
http://www.brandonellis.org/?p=9

It may be related to this:
http://www.adobe.com/support/security/bulletins/apsb07-20.html
although that implies it affects FP8 and 9 which doesn’t explain why it still works for me!

However, it may well work in your browser if you upgrade to FP 9.0.115.0?

My flash is the latest version (9.0.115), and the first link alludes to the fact that it could be some sort of text field focus problem in combo with XML usage, however I tried everything they suggested and nothing helped.

Any other thoughts that might cause this behavior?

thanks!

[quote=glosrfc;2357092]Not having a problem with it here, although I’ve heard of something similar:
http://www.brandonellis.org/?p=9

It may be related to this:
http://www.adobe.com/support/security/bulletins/apsb07-20.html
although that implies it affects FP8 and 9 which doesn’t explain why it still works for me!

However, it may well work in your browser if you upgrade to FP 9.0.115.0?[/quote]

After 4 days of solid hair-pulling on this issue, I have finally reached a solution. I’m tossing it out there in case it’s helpful to anyone else with this problem.

While I’m not fully aware of what is causing the conflict, it has something to do with the combonation of a text field focus, xml and as2.0 button scripts.

In my particular file, I have built an application that reads in a xml file, has a user-inputtable text field on the screen, a search button, and then a couple of next/previous buttons for paging through results.

To solve the problem of the next/previous buttons not working unless I moved the mouse a pixel or two in either direction, I had to set the focus of the text field to the search button immediately after clicking the search button.

So stated another way, I had to get the focus off of the text field immediately after clicking the search button. I pointed the focus at the search button itself (which also had the added bonus of giving the search button a nice little glow for a sec), in its on (release) function.

searchBtn.onRelease = function() {
Selection.setFocus(searchBtn); <—this is the line that did the trick.
(your button commands here)
}

I hope this explanation makes sense, as it’s been a long frustrating road figuring this out, as I can find no rhyme or reason why the “focus” of a text field would affect button functionality in combonation with xml commands.

Hope this helps.
-N