|
|
#1 (permalink) |
|
Junior Member
Join Date: Jun 2009
Posts: 12
|
I have fixed a ton of strange bugs when using this news module within the main movie of a website, but the scrolling issues I need help with please.
What I have done so far: 1. I used a mask over the main.layer and embedded the dynamic text so that only the news body shows up and you do not see the other stories scroll off to the left on top of the rest of my website. 2. I adjusted the Y=300 to Y=1000 for the dynamic picture loader so that you cannot see the loaded images below my site anywhere. 3. I commented out this code in the News.as: //if (instance.newsPause!=-1) { //trace("- autplay enabled"); //instance.inter3 = setInterval(instance.autoPlay,instance.newsPause*1 000); //} 4. I tried turning it off in the news.xml as well like this: <autoplay newspause="12">off</autoplay> With what I did in step 4, the news does exactly what it is supposed to until I get to a story that is long enough for the vertical scroll bar to appear. When this happens and I use the scroll bar it completely breaks the news. It begins to autoplay like crazy with no delay at all and completely breaks my site. I cannot hit any other button on my site to clear it because it is stuck in a code loop. If I enable autoplay in the XML file, even if it is still disabled in the news.as it seems to scroll normally as if there was never even a need for the code in the news.as file.....I am clueless here. My next problem is kind of worse. If I hit any of the other navigation buttons on my site, that unloads movie level 2 where the news module is loaded, and then I reload the news module it doubles the story numbers on me and sometimes shows the listing as 1 2 2 2 2 or 1,2,3,4 when there are only 2 stories in my XML sheet It basically seems to double the story spots every time I try to reload the movie. How can I completely free the memory of this news movie so that it can be unloaded and re-loaded with the unload and loadMovieNum call? I need this to use the news module on my site.I also tried this: line 64: //this will parse "items" node of the XML file Just bellow this one , before starting the "while" loop, add a line like: instance.news = new Array(); It changed nothing for me. Here is what I have currently: I added it in two places and it still duplicated the news numbers and also continues to scroll out of my control, even when I am moused over the news body trying to read. //this will parse "items" node of the XML file instance.news = new Array(); //this will parse "item" node of the XML file instance.news = new Array(); Last edited by Ravyn; 06-13-2009 at 08:36 AM. |
|
|
|
|
|
#2 (permalink) |
|
Junior Member
Join Date: Jun 2009
Posts: 12
|
Update: I managed to get rid of the button cloning at the bottom of the stage by adding removeMovieClip("nameOfMovie") to remove all of the stage movies that get loaded in the news viewer.
My worst problem remains though. If I hit any button that clears the news module, and then reload it the news will scroll constantly and ignore the mouse listener in the actionscript that is supposed to keep it from scrolling when you are in the movie. It also ignores the 12 second scroll delay in the XML file and just scrolls like every 1-3 seconds. Anyone have any idea how I can fix the problems after reload of the news movie? Thanks for any responses. |
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
All times are GMT. The time now is 07:05 AM.


It basically seems to double the story spots every time I try to reload the movie. How can I completely free the memory of this news movie so that it can be unloaded and re-loaded with the unload and loadMovieNum call? I need this to use the news module on my site.






Linear Mode
