Mailing List
Home
Forum Home
Flash Pro
Subjects
Firework Effect
setInterval bug identified and fixed
setInterval bug identified and fixed
ScrollPane component doesn 't auto update
Help: MX 2004 How to script a print button to print the entire sli
Event Dispatcher between classes
memory management removeMovieClip /
MX2004 Dataset itemClassName
Order of events per frame
XML to Object help
Textfield prototype question
Flash and QuickTime VR
Reading and displaying RSS feeds in Flash MX
Flash MX 2004 Sucks
AW: [Flashcoders] Switch/Case vs If/else
AW: [Flashcoders] Switch/Case vs If/else
Flash Interface with 10mb xml file
Web Service Results
Listener Object 's best practice
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
MP3 Player strange behaviour.

MP3 Player strange behaviour.

2005-11-14       - By Jonathan Berry

 Back
Hello again, all, I have an MP3 player that is having some weird scrolling
effects. You can see a test copy at

http://entertainment.signonsandiego.com/profile/218638

If you scroll down the page you will see it at the bottom of the first right
column. The strange behaviour happens when you scroll the text box. The
first image repeats and the rest of the content scrolls over it. I have been
testing it and it seems that firefox is doing it, but not IE, at least as
far as I can tell. Your help much to be appreciated.

Applicable code:

var bandSong:Sound = new Sound();
var currSongNum:Number = new Number(1);
var group:XML = new XML();
group.ignoreWhite = true;
var songcount:Number = new Number(0);
var songarray:Array = new Array();
group.onLoad = function(){
var doc:String = new String();
for(i=0; i<group.firstChild.childNodes.length; i++){
var icon = "<img src=\'
http://www.signonsandiego.com/citysearch/multimedia/mp3/" + feature + "/" +
group.firstChild.childNodes[i].attributes.iconurl + "\' width=\'50\'
height=\'50\' align=\'right\'>";
var band = "<span class=\'band\'>" +
group.firstChild.childNodes[i].attributes.name
+ "</span><br>";
doc += icon;
doc += band;
for(j=0; j<group.firstChild.childNodes[i].childNodes.length; j++){
var album = "<span class=\'album\'>" +
group.firstChild.childNodes[i].childNodes[j].attributes.name
+ "</span><br>";
doc += "From the album: " + album;
for(k=0; k<group.firstChild.childNodes[i].childNodes[j].childNodes.length;
k++){
songcount++;
var song = "<a href=\'asfunction:playSong," +
group.firstChild.childNodes[i].childNodes[j].childNodes[k].attributes.url
+ "*" + songcount + "\'>" +
group.firstChild.childNodes[i].childNodes[j].childNodes[k].attributes.name
+ "</a><br>";
songarray[songarray.length] = group.firstChild.childNodes
[i].childNodes[j].childNodes[k].attributes.url;
doc += song;
}
}
doc += "<br>";
}
with(output_txt){
background = false;
password = false;
multiline = true;
wordWrap = true;
html = true;
variable = null;
maxChars = null;
}
var myCSS = new TextField.StyleSheet();
var cssURL = "
http://www.signonsandiego.com/citysearch/multimedia/mp3player/mp3player.css
";
output_txt.styleSheet = myCSS;
myCSS.load(cssURL);
output_txt.htmlText = doc;
}
function playSong(mp3input){
var mp3raw = mp3input.split("*");
var mp3 = mp3raw[0];
var mp3num = Number(mp3raw[1]);
_hbLink("http://www.signonsandiego.com/citysearch/multimedia/mp3/" + feature
+ "/" + mp3,'',5,5,10,10);
bandSong.loadSound("http://www.signonsandiego.com/citysearch/multimedia/mp3/"
+ feature + "/" + mp3,true);
currSongNum = mp3num - 1;
}
group.load("http://www.signonsandiego.com/citysearch/multimedia/mp3/" +
feature + "/featuregroups.xml");
stop();
scrollup_btn.onRollOver = function(){
delete this._parent.scroll_mc.onEnterFrame;
this._parent.scroll_mc.removeMovieClip();
this._parent.createEmptyMovieClip("scroll_mc", 9999999);
this._parent.scroll_mc.onEnterFrame = function (){
output_txt.scroll -= 1;
}
};
scrolldown_btn.onRollOver = function(){
delete this._parent.scroll_mc.onEnterFrame;
this._parent.scroll_mc.removeMovieClip();
this._parent.createEmptyMovieClip("scroll_mc", 9999999);
this._parent.scroll_mc.onEnterFrame = function (){
output_txt.scroll += 1;
}
};
scrollup_btn.onRollOut = scrolldown_btn.onRollOut = function (){
delete this._parent.scroll_mc.onEnterFrame;
this._parent.scroll_mc.removeMovieClip();
}
--
Jonathan Berry, M.A.
IT Consultant
619.306.1712(m)
jcharlesberry@(protected)
www.mindarc.com <http://www.mindarc.com>

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------

This E-mail is covered by the Electronic Communications Privacy Act, 18
U.S.C. ?? 2510-2521 and is legally privileged.
This information is confidential information and is intended only for
the use of the individual or entity named above. If the reader of this
message is not the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited.

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------


[Non-text portions of this message have been removed]



-- ---- ---- ---- ------ Yahoo! Groups Sponsor -- ---- ---- ---- --~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/IHFolB/TM
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -----~->

=========================
Pro_Flash: Professional Web Developers Using Macromedia Flash
To subscribe: mailto:pro_flash-subscribe@(protected)
To UNSUBSCRIBE: mailto:pro_flash-unsubscribe@(protected)

Yahoo! Groups Links

<*> To visit your group on the web, go to:
   http://groups.yahoo.com/group/pro_flash/

<*> To unsubscribe from this group, send an email to:
   pro_flash-unsubscribe@(protected)

<*> Your use of Yahoo! Groups is subject to:
   http://docs.yahoo.com/info/terms/




Earn $52 per hosting referral at Lunarpages.