intravenus
08-11-2003, 09:36 PM
Hey guys,
here's a Flash MX script for an EQ for audio SWFs.
The audio SWF is generated by SwiftMP3 so it contains ID3 data and S data for the EQ.
This file works perfectly if I import it to Swish and use the "lev" MovieClip contained in the FLA, but, I would like to make the EQ in Swish and this is where the problem starts.
This script takes the MovieClip "lev", duplicates it and spreads the new MovieClips through levels, and then makes the new MovieClips move according to the S data contained in the audio SWF.
So I figured, if I make a Sprite in Swish, call it "lev" and change the references in the script from "lev" to "/lev", it would work the same as it does in Flash.
It doesn't!
Anyone have any idea why?
here's the script
[Frame 1]
if (_root.audio.Id3 == 1) {
title = _level1.Title;
artist = _level1.Artist;
album = _level1.Album;
width = getProperty("lev", _width) + 3;
for(i=0; i<18; i++) {
duplicateMovieClip ( "lev", "l"+i, 10+i );
setProperty("l"+i, _y, 68);
setProperty("l"+i, _x, 74+i*width);
}
gotoAndPlay (4);
}
[Frame 3]
gotoAndPlay(1)
[Frame 5]
for (i=0; i<18; i++) {
setProperty ("l"+i, _y, 68-eval("_root.audio.s" add i)*3.5);
}
[Frame 7]
gotoAndPlay(5)
The Swish movie looks like this:
audio (where I load the Audio SWF)
eq (where I load the SWF containing the flash script)
lev
Any help will be very gratefully recieved.
Intra.
here's a Flash MX script for an EQ for audio SWFs.
The audio SWF is generated by SwiftMP3 so it contains ID3 data and S data for the EQ.
This file works perfectly if I import it to Swish and use the "lev" MovieClip contained in the FLA, but, I would like to make the EQ in Swish and this is where the problem starts.
This script takes the MovieClip "lev", duplicates it and spreads the new MovieClips through levels, and then makes the new MovieClips move according to the S data contained in the audio SWF.
So I figured, if I make a Sprite in Swish, call it "lev" and change the references in the script from "lev" to "/lev", it would work the same as it does in Flash.
It doesn't!
Anyone have any idea why?
here's the script
[Frame 1]
if (_root.audio.Id3 == 1) {
title = _level1.Title;
artist = _level1.Artist;
album = _level1.Album;
width = getProperty("lev", _width) + 3;
for(i=0; i<18; i++) {
duplicateMovieClip ( "lev", "l"+i, 10+i );
setProperty("l"+i, _y, 68);
setProperty("l"+i, _x, 74+i*width);
}
gotoAndPlay (4);
}
[Frame 3]
gotoAndPlay(1)
[Frame 5]
for (i=0; i<18; i++) {
setProperty ("l"+i, _y, 68-eval("_root.audio.s" add i)*3.5);
}
[Frame 7]
gotoAndPlay(5)
The Swish movie looks like this:
audio (where I load the Audio SWF)
eq (where I load the SWF containing the flash script)
lev
Any help will be very gratefully recieved.
Intra.