This is a discussion on "Help required debugging flash" within the Flash & Multimedia Forum section. This forum, and the thread "Help required debugging flash are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Help required debugging flash
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Help required debugging flash
Hello one and all - *nods* alright Rob. Trust your well, how's it goin?
Here's hoping one of you Flash gurus out there can help me with the following problem..i'm working on an english converstion of this flash site for a client: http://www.sauteriberica.com/index2.htm However, being very new to flash (using MX2004) i'm having trouble fixing this inherent scrollbar bug within the original source files and not too sure whats causing it = stumped fyi link to eng dev site: http://www.sauterautomation.co.uk/default.htm temperamental occurance when switching between pages and which layered text is shown, ie. Intro; scroll down then Service; scroll down back to Intro and scroller is cut half way with text hidden!? Any ideas? Cheers, Jon |
|
|
|
|||
|
Ok here's a better way of replicating the problem that I've just noticed. Check on Service then scroll down the page near the bottom using the scrollers, then click Service again, where the text was left is where it stays. Looks to me like it needs a "refresh" kinda function to reset the scroller to the top as it would when switching in between pages. Try the same with Service then click diff page and return should be refreshed at the top.
Is there a simple way of doing this in flash..if so anyone know how? This is driving me nutso! LoL |
|
||||
|
Jon....
You bin hiding?? Or just being overworked by those two slave drivers? I think you're gonna need to tie into the function that scrolls that content frame. If you are lucky it should be an easy enough thing to do. Anyway Sirkent will prolly sort this out, coz flash aint my thing!!
__________________
Rob - SEO Specialist Owner & Founder of Webforumz.com I am currently unavailable for private work
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
|
|||
|
Without looking at your source and how you've put this together I can only speculate that your scroller is moving an actual movieclip, covered by a mask, up and down behind that mask.
I can only assume that when you click on the same link that the movieclip is staying where it is and not returning to it's original position. All you have to do is use the setProperty function to set the _x and _y values of the clip to their original values when the content is loaded. |
|
|||
|
Thanks for reply Sirkent. Would say your speculation is correct ie. the scroller is moving the (text) under a white mask
Here's an excerpt of the slider ActionScript - there doesn't appear to be an x axis setting anywhere.. <font color="blue">onClipEvent(load){ min="85"; max="385"; loaded = false; } onClipEvent (enterFrame) { refreshMaxScroll = _root.maxscroll; refreshCounter=0; refreshCounter++; } onClipEvent (mouseMove) { if (arrastre == 1) { _y = _root._ymouse; if(_y>max){ _y=max; }else{ if(_y<min){ _y=min; }else{ postexte = _y - 85; postexte = (postexte / 300) * (_root.texte._height - 400); _root.texte._y = - postexte + _root.origen_texte; } } updateAfterEvent(); } } onClipEvent (data){ loaded = true; }</font id="blue"> Like I say I'm quite new to flash, where would I need to enter the setProperty function call? Within onClipEvent (enterFrame)?? Debugging this would be so much bloody easier if it weren't all in Spanish! :mad: |
|
|||
|
Could you tell me how you are hiding/showing content please, as my creation using your code works fine...?
|
|
|||
|
Would it be easier if I sent the .fla
? |
|
|||
|
Ok, after looking at this, I've decided that there's a very easy way to fix it
You need to use the setProperty function! If you notice, for the first button, it sends you to frame 101, which is actually where the text is initiated. It appears a few frames later after an animation. If you place the following code on frame 101 then it'll fix this problem for that piece of content: setProperty("texte", _y, "250"); That's it [:P] You'll also need that on 151, 161, 171 and any others with scrollbars. |
|
|||
|
I've added the setProperty funcion to frame 101 (Introduction text) to test and it's fixed it nicely. Sweet.
Problem is it has introduced a new little bug with the scroller dissapearing off the maxheight, take a look: http://www.cactusoft.com/TEMP/default.htm Similar instance, loads fine first time but if viewing Intro second time scroller acts strangely :-/ |
|
|||
|
If you've added this to frame 101 for example, and added it along with the other actionscript on that frame, you have:
var origen_texte=texte._y; var origen_texte2=texte._y; var origen_cuadrat=cuadrat._y; cuadrat._y = 85; setProperty("texte", _y, "250"); Which is exactly the problem. The script is setting the variables used to calculate how much to move the textfield movieclip before it resets where the textfield movieclip should go. So you simply move the last line to the first: setProperty("texte", _y, "250"); var origen_texte=texte._y; var origen_texte2=texte._y; var origen_cuadrat=cuadrat._y; cuadrat._y = 85; Fixed |
|
|||
|
Sirkent, you are the flash guru of these boards and I simply am not worthy
Hope I'll be able to help out sometime with any web scripting probs you may have. Thanks again mate. |
![]() |
| Tags |
| help, required, debugging, flash |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Debugging Help | grantsmith | Starting Out | 4 | Nov 21st, 2007 16:55 |
| Intensive Flash Training required | JennyChaos | Flash & Multimedia Forum | 3 | Jul 9th, 2007 14:16 |
| Flash tree animation required | grelen | Flash & Multimedia Forum | 1 | Oct 28th, 2006 19:55 |
| PHP, flash and html programmer required | creationstudio | Job Opportunities | 0 | Oct 18th, 2006 07:29 |