Help required debugging flash

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.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 24th, 2004, 11:10
Junior Member
Join Date: Feb 2004
Location: United Kingdom
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
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

  #2 (permalink)  
Old Feb 24th, 2004, 11:17
Junior Member
Join Date: Feb 2004
Location: United Kingdom
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
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
  #3 (permalink)  
Old Feb 24th, 2004, 14:57
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
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
  #4 (permalink)  
Old Feb 24th, 2004, 15:51
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
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.
  #5 (permalink)  
Old Feb 24th, 2004, 16:20
Junior Member
Join Date: Feb 2004
Location: United Kingdom
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
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:
  #6 (permalink)  
Old Feb 24th, 2004, 17:05
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Could you tell me how you are hiding/showing content please, as my creation using your code works fine...?
  #7 (permalink)  
Old Feb 25th, 2004, 11:04
Junior Member
Join Date: Feb 2004
Location: United Kingdom
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Would it be easier if I sent the .fla

?
  #8 (permalink)  
Old Feb 25th, 2004, 21:19
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
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.
  #9 (permalink)  
Old Feb 27th, 2004, 10:04
Junior Member
Join Date: Feb 2004
Location: United Kingdom
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
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 :-/
  #10 (permalink)  
Old Feb 27th, 2004, 12:38
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
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
  #11 (permalink)  
Old Mar 1st, 2004, 12:32
Junior Member
Join Date: Feb 2004
Location: United Kingdom
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Closed Thread

Tags
help, required, debugging, flash

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 03:05.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43