Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




MP3 Plays Super Squeaky Fast



I've converted some WAVs to MP3s. The first lot worked fine but the second lot played super fast when I loaded them into a sound object.

The MP3s play fine in media player and if you import them into the library and drag them onto the stage.

Other MP3 files produced the same way and residing in the same directory work fine.

Is it something to do with my MP3 settings?

Any clues?



FlashKit > Flash Help > Flash ActionScript
Posted on: 06-07-2004, 11:16 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Super Fast Error Loading
When I load the game ie. http://www.bryanhenry.com/games/frogger.html It loads suoper fast through the whole game anyone know how to fix this if so post and email me at bryan@bryanhenry.com Thank You

Super Fast 264 Video Playback Bug
Seems I am being bitten by this bug,

http://vimeo.com/forums/topic:8751

Where short, h264 videos with no audio play at around 4x their normal speed when they first load. Once they have played, they are fine.

Seems that adding in an audio track to the video is a work around.

Has anyone else encountered this?

I'm on a mac, Flash Player 10.

I logged a bug, http://bugs.adobe.com/jira/browse/FP-1368

Flash Recordings Playing Back Super Fast
So im not that great with actionscript i was kinda thrown this project and fumbled my way through it so far. My problem, i have two applications running on the server one for streaming video and the other for recording it from a web cam. the video playback is fine that works without complication. But when i record a video from the web cam and play it using the streaming application the video plays back at a faster fps (atleast im pretty sure thats it). can anyone give me a hand or at least point me in a direction that i might be able to go through.

Recorded Video Super Fast When Playing Back
So im not that great with actionscript i was kinda thrown this project and fumbled my way through it so far. My problem, i have two applications running on the server one for streaming video and the other for recording it from a web cam. the video playback is fine that works without complication. But when i record a video from the web cam and play it using the streaming application the video plays back at a faster fps (atleast im pretty sure thats it). can anyone give me a hand or at least point me in a direction that i might be able to go through.

Recorded Video Super Fast When Playing Back
So im not that great with actionscript i was kinda thrown this project and fumbled my way through it so far. My problem, i have two applications running on the server one for streaming video and the other for recording it from a web cam. the video playback is fine that works without complication. But when i record a video from the web cam and play it using the streaming application the video plays back at a faster fps (atleast im pretty sure thats it). can anyone give me a hand or at least point me in a direction that i might be able to go through.

Mp3 Plays To Fast
I have this connected to a button with the mp3 in the same folder.
When I run the swf file locally on my computer it works fine. But when I upload it to our server and acess it through IE, it plays very fast like listening to the chipmunks. Anybody know this is happening?


on (release) {

var my_sound:Sound = new Sound();

my_sound.loadSound("lucille.mp3",true);

}








Attach Code

on (release) {

var my_sound:Sound = new Sound();

my_sound.loadSound("lucille.mp3",true);

}

Mp3 Plays Too Fast
Hiya!
Am trying to play mp3's in flash through the MediaPlayer component. They do play, but are much to quick.

The grunge band now sound like the smurfs singing and no one needs that!

Can anyone offer any help or suggestions? thank you

Mp3 Plays Too Fast
Hiya!
Am trying to play mp3's in flash through the MediaPlayer component. They do play, but are much to quick.

The grunge band now sound like the smurfs singing and no one needs that!

Can anyone offer any help or suggestions? thank you

Mp3 Plays To Fast
what could be the reason that an mp3 file, when loded from an outside source plays to fast and can i control it with action script?

(the kbps 96 and 32 khz) if i import the sound the speed is ok .

but i looked a tother soundfiles that i used from an outside source and they all have diffrent kbps and khz and they all worked.

any idea?

Mp3 Plays Too Fast
This code is called from a button on the main time line:
CODEon(Release){
mySound = new Sound();
mySound.loadSound("track1.mp3",true);
}

Sound Plays Too Fast
Have recorded some sounds on a portable mp3-player. Want to use these sounds in Flash.

When I import the mp3-files as event sound, they get played at double speed. Sounds pretty stupid (who said Mickey Mouse? )

In windows media player and other mp3 players, it's not a problem.

Anyone have an idea about what's wrong?

External MP3 Plays Too Fast
Hi-
I have an swf and am trying to load an mp3 externally. It works, but it plays too fast. Anyone know what I did wrong?

Thanks-
Rob

Streaming Mp3 Plays Too Fast ?
Throughout my Flash project, am using the sound object to stream mp3 audio.
All of them work fine except for one which plays too fast. The audio seems to be playing at double speed. Any ideas why?
The mp3 on its own sounds fine but when I load it via my Flash site, it plays really fast.

Video Plays Too Fast
I have a video player I made following the video tutorials. It prebuffers a percentage of the video based on the user's bandwidth but when the video starts playing it plays too fast and when the buffer is emptied it starts playing at normal speed.

The video player is set to loop the videos and when it loops and plays again it plays at normal speed so I don't think the problem is with the flv files. It only plays too fast for flv files larger than 360kb.

You can download my files at http://www.worshipfilms.com/flash_test/flash.zip.

You can see my problem in action at http://www.worshipfilms.com/flash_test/video.html.

If I comment out the following if statement in the fla file then the problem does not occur but my prebuffer also does not work.

Code:

function initialBuffer() {
   //if(ns.bytesLoaded / ns.bytesTotal > bufferpercent / 100) {
      clearInterval(bufferInterval);
      bufferClip._visible = false;
      ns.pause(false);
   //}
}

Loaded Sound Plays Too Fast
Okay, I'm loading an external sound file (MP3), and it seems that no matter what I do to my scripts, this thing plays about 2x as fast as it should (so now I'm hearing chipmunks!)

Did I goof somewhere?

MP3 file info: 32kbit, 32khz, Mono

Slide Show Plays To Fast
I could really use a bit of help. I am trying to import a slide show to the stage of my portfolio flash file. How do I keep the slide show at the speed of its original template, not speed up to the portfolio movie clip? Appreciate any help...

FLV Plays In Fast Foward After Buffer
I'm having all sorts of problems trying to get streaming FLVs to behave as expected.

I am streaming an FLV file into a Video instance. I am setting the bufferTime to 5. The biggest problem is that it seems that after the initial 5 second buffer, it plays in fast forward up to the 5 second point, then hits empty buffer, buffers again, then plays normally. Tracing onStatus, this is what I get:

NetStream.Play.Reset (what does this mean? sometimes it appears after the Start event)
NetStream.Play.Start
NetStream.Buffer.Full (this is where it starts playing in fast forward
NetStream.Buffer.Empty (less than a second later!)
NetStream.Buffer.Full (now it plays normally)
NetStream.Play.Stop
NetStream.Buffer.Flush
NetStream.Buffer.Empty (why does it trigger an empty buffer after the video is done playing and flushed?)

Any help would be appreciated, been fiddling with it all morning so far and I'm still pretty baffled.

Mp3 Player Plays Files Too Fast
Hi!

I've built a mp3 player which loads the mp3 via url. I've tried some songs and everything goes as expected, but if I use a mp3 at 8khz, the song plays too fast! And the format I have to play is this one since are voice recordings.

Any help on this? What could I do?

Thanks

Mp3 Plays Fast & Does Not Start Once Stopped Why?
Hi! Friends

I'm playing an mp3 music externally linked to sound object in my Fla.
It has Volume slider linked to slow and increase the level of volume. Also i've an Audio ON/OFF button. To Mute or Stop the Volume on OFF and to start it back again on ON. does not matter which position it starts. But i want the sound to resume once i click the audio on button again.

Now everything works perfect in my FLA even the music stops once i invoe _root.bgSound.stop(); from button to stop. But when i want to resume the sound back by clicking Audio On button it does not starts back again

Another problem is that the mp3 is playing at faster speed when i play it in this fla using sound object. But in real when i use Winamp to hear to that mp3 its playing at the slow speed.

I've uploaded my FLA along with the MP3 music.. here at this URL:

http://www.pixologics.com/work/test_music.zip

Please check it out and can u help me fix the two things. How to Resume music back again on click of Audio on button and How to play mp3 at its normal speed in flash ..the same way it plays in the Winamp.

I'm reaching the deadline for this project so please helme

Link for fla: http://www.pixologics.com/work/test_music.zip

Thanks
sameer

Audio Plays Too Fast In Flash 8 FLV Encoded From Quicktime MOV
I'm rendering out from VT4 (Newtek Video Toaster) to a Quicktime MOV file that is re-encoded in the Flash 8 media encoder. In the past I've used the 32 bit floating point audio format coming out of VT4, which worked when playing just a MOV file. But now, when re-encoding the MOV file in Flash 8, the audio runs fast, or is maybe truncated somehow so it sounds that way.

I have several choices for a MOV audio format, is there one that Flash 8 media encoder is 'wanting' to see?

Thanks,

TW

Help - Flash Movie Plays Fast By Itself, But Plays Slow When Loaded Within Another Flash Movie
I have a flash website which I tried to update recently. In particular, I am updating my photo gallery which I load within another flash using loadMovie. Before updating it, everything worked fine. The update is not completed yet, but I notice that my photo gallery is playing extremely slow compared to before. I did add some new graphics such as fading in and stuff like that, but nothing serious. If I played the clip by itself, ie. typing in the actual photogallery.swf, it plays at full speed. When I run the photogallery through my regular website, meaning loading it through loadMovie, it plays very slow. The photogallery.swf is only 58k in size, so download speed shouldn't be the case. Nevertheless, I tried adding a IfFrameLoaded just in case but that didn't solve my problem. Anybody has any ideas why it might be playing slow when I'm using the loadmovie function and plays fine when I just reference it directly?

Flash Player Plays Mp3 Too Fast - "chipmonk" Effect
When importing a low bitrate mp3
(
Code:
8khz;16 bit;mono; fft:64; converted with Audacity
)
into flash, the player plays the mp3 too fast providing a "chipmonk" effect.

The mp3 plays well in real player, quicktime player, win amp and windows media player. (http://users.skynet.be/fa522505/archive/is_04.mp3)

Anyone know what to do about that, when I want to keep the settings for the mp3 to reduce webspace ?

SUPER ADVANCED SUPER HARD
Ok.. it's not relaly that hard... but I am lost.

Is it possible for flash to get a url and pass it some of it's vairables without the varibales being visible to the user?

Another catch is that the new page being loaded is not another swf file... it is a html file. So, is it possible to get flash to load the html file in a new window, pass it some varibales (most like to javascript) and then the javascript open the swf file passing in the varibales required? (the whole time without the varibales being visible to the user?)

I am a strong believer that there is nothing flash cannot do... but this seems a bit hard

Thanx for any help you can toss my way

-Ryan

MP3 Player On Website-Plays Approx. 5-10 Seconds Of Song Then Restarts And Plays Thru
Hello,

I have an MP3 player that I have tweaked and modified on a website of mine for a friend.
Everything works fine--but it seems it will load a song and start playing 5-10 seconds of the song then restarts the song and plays it in full. Anyone have any idea why this would be happening?
The MP3 player is at www.peeler.ca and will start as soon as you get inside the website.
Could someone have a look and listen and see if you have any ideas?
I imagine it is some redundant code or something small. It is very annoying....

Thanks in advance...

MP3 Player On Website-Plays Approx. 5-10 Seconds Of Song Then Restarts And Plays Thru
anyone have any ideas as to why my player would play like 5 seconds of a tune....then restart it and play thru completely?
I was told maybe interval coding....but not sure what I am looking for....nothing appears to jump out at me.

I will upload the .fla source code and maybe someone will see something I dont- Or you can check out what it is doing on the website www.peeler.ca the player will start on its own as soon as you get in the main page of the website.

Any help is appreciated...I am stumped!

[MX04] Rollover One Movie Clip Plays It, And Plays Another. How?
Alright, so I've got two movie clips.
I have one, called fade_mc, which will play on rollover, and then play in reverse on rollout.
Here's the code for that, placed on a separate layer in the MC.

PHP Code:



stop();

this.onEnterFrame = function(){
if(rewind == true){
prevFrame();
}
}

this.onRollOver = function(){
rewind = false;
play();
}

this.onRollOut = function(){
rewind = true;
}




What I would like to do is add to this so that, upon rollover of this MC, other movie clips will play in a similar fashion, and play backwards upon rollout.
In this case it is a MC called dark_mc that I would like to have play.


Posted this in the newbie section to no avail, please help!

Rollover Plays Frames 1-5 Of Movieclip, Rollout Plays 6-10
Need help on this, i'm sure it's the most basic thing, but haven't found my answer thru the help files, etc !

I have a button which on rollover i need to play one of my movie clip animations from frame 1-5 (i have a stop action on frame 5), and on rollout i need it to play the rest of the animation (6-10).

at this point, i simply dropped the animation onto the 'over' state of the button, but don 't know where to go from here, if not back to the drawing board.

the button is called 'button1' and the movie clip is 'animation'.

if it's better to do this with an external movie clip, i'd be cool with that, too.

thanks for the help

SWF = Fast, EXE = Fast, HTML = Slow? Whats Going On?
Hello everyone,

Has anyone else ever had the problem where the *.swf will work fine, the published *.exe will work fine, but playing an *.swf file in an HTML file slows it down heaps? I have lots of example files to demonstrate and help explain this one...

Here is an example of one of my old super-super-simple games. I use this one because of its simplicity, there shouldn't be too much to slow it down, right? It is made in flash 6, but of course it plays in the flash 8 web player - which isn't usually a problem.

Here's the link to the executable file: www.dxinteractive.com/walkthestork/walkthestork3.exe

And heres the link to the HTML file:
www.dxinteractive.com/walkthestork

Play both and you'll see the executable runs perfectly, but the HTML runs slower than it should. Not only that, the "slowness" isnt uniform, so raising the frame rate to compensate on the HTML version doesn't work. I thought something must be slowing it down, so I took away the backdrop, then the scoring thing, then deleted all the code. I was eventually left with only one motion tween and it still ran about 60-70% of the speed it should. I tried changing the type of AS, the flash player version, the _quality, everything I could think of and it would not play at normal speed through an HTML.

I then deleted everything and drew some animated scribbles, and it still ran at about 3/4 speed. Play these two (flash 8 files) side by side and note the difference in speed:

Heres the slow HTML:
www.dxinteractive.com/testing/bigtest.html

And heres the regular-speed EXE:
www.dxinteractive.com/testing/big%20test.exe

Has anyone ever had this problem? Is it just my computer? How can it be fixed? The frame rate in reaction games is everything, and I would like them to run the speed they were intended to. Any help is greatly appreciated. In fact, this is such a big problem to me affecting sooo many games that if anyone solves this, they get their name in the credits on my webpage if they want

AS3: Using Super.super.someMethod();
I am trying to extend the new AutoComplete component from Adobe. In two different places I need to bypass the AutoComplete methods and get right at the ComboBox methods.

I was told that super.super.someMethod() works just like it does in Java. But I keep getting Compiler errors:1084: Syntax error: expecting identifier before super.
Any suggestions other than just cutting and pasting the code and extending the AutoComplete superClass?

ROLL_OVER Plays A MC And ON_CLICK Plays A MC?
I would like to have a series of buttons that onrollover play a MC on
stage and onclick play another MC on stage. I am currently using the
following code provided in another thread to make the movie clip play
onrollover:


function showGraphic(event:MouseEvent):void {
mSymbol.visible = true;
}

function hideGraphic(event:MouseEvent):void {
mSymbol.visible = false;
}

btn.addEventListener(MouseEvent.ROLL_OVER, showGraphic);

btn.addEventListener(MouseEvent.ROLL_OUT, hideGraphic);



I am also using the following code to hide the movie clip on load:

mSymbol.visible = false;


How can I modify this code to allow a user to also click on the button
and play a MC?

Thanks!!!!!

Clik Btn1,plays Some MC,Clik Btn2,hides & Plays MC
I'm trying to create a website with flash, and it has buttons and movie clips. What i want is, when i click on button1, it plays some movie clips, and when i click on button2, it hides the old movie clips and plays new movie clips.

i was trying variables and the "if" thing. but it wont work. hope you guys can help out. i've set the button1 with ' btn="album" ' and set some actions like ' if (btn="album) {play} ' but it wont work. please help me. maybe you guys can upload the flash file so i can understand easier.

(using flash 8)

Super Newb With A Super Newb Question.
Ok. So i just joined today. Ok so if i download a sound loop and i want to use it in my flash animation, do i have to get permission from the creator? Im talking about Freeware loops.

Left Click Plays NEXT Frame, Right Click Plays PREVIOUS Frame?
Dear all,

I'm writing a simple presentation in Flash MX for the Mac. How do I get the "left click" on the mouse to play NEXT frame, and teh "right click" to play the PREVIOUS frame?

My scripting isn't so good, so please make it simple!

Thanks a lot in advance

Super Tip
here is somehting no one ever tells ya ... if you are importing variables in through a text file .. be sure there isnt any spaces or a returns after the data ..

i w tried for 2 days to turn my variables into numbers only to find i had 2 spaces after the number that was preventing it from doing so ..

i hope this helps some other poor soul from certain fustration ..

Super() Or Not To Super()
hi all,


I'm a little confused on something.

I've noticed with components that the UIUObject does not call super() to call the MovieClip constructor.
Is this not needed since the MovieClip object's constrctor does nothing? or for another reason?

Even when extending the UIObject (like UIComponent), this also does not call super() to start the UIObject. I thought you needed to call super() when extending?

Could someone shed some light? thanks.

Super() In As2
I have created two custom classes lets say ClassHuman and ClassBoy.
ClassBoy extends ClassHuman (for example ClassBoy has a winkie function)

I want to create a new boy so...

var dude:ClassBoy=new ClassBoy(code);

[class boys constructor can get the value code easily but it is something I want ClassHuman to have]

but I want the ClassHuman to get the value of "code" passed in so when I create this new instance it automaticly runs the constructor of ClassHuman and therefore how do I pass this value "code" up the chain.

thanks

mojito

Super()
My question is concerning Super.
If someone is farmiliar with Super . Is it possible to get someone to look at the first and of code only and get me started on how I would approach the concept of using Super. Because the second two blocks of code are almost identical. and I plan on creating two more blocks of code to create almost the same senerio.
(a combobox calling a child.)
Thanks



Code:

package chromatic.load_files{
import fl.controls.ComboBox;
import flash.display.MovieClip;
import flash.events.Event;
import fl.data.DataProvider;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.net.URLRequest;
import fl.containers.UILoader;
public class CBMajorComponent extends MovieClip {

public var cbMajor:ComboBox=new ComboBox();
private var uiImageComponent:UIImageComponent;

private var listURL:URLRequest=new URLRequest();
private var dataLoader:URLLoader=new URLLoader();
private var theXML:XML=new XML();

private var arrayFile:Array=new Array("load_assets/keylist.xml");
private var majorArray:Array=new Array

("CMajor","GMajor","DMajor","AMajor","EMajor",
"BMajor","FSharpMajor","CSharpMajor","FMajor",
"BFlatMajor","EFlatMajor","AFlatMajor",
"DFlatMajor","GFlatMajor","CFlatMajor");

public var key:String;
public var fileName:String;
private var evtIndex:Number;
private var evtItem:String;
private var sel:Number=-1;

public function CBMajorComponent():void {
init();
}
private function init():void {
fileName=arrayFile[0];
setFileName(fileName);
setupComponent(fileName);
}
private function setupComponent(fileName):void {
this.fileName=fileName;
cbMajor=new ComboBox();
cbMajor.setSize(200, 22);
cbMajor.prompt = "Select a Major Key";
cbMajor.editable=false;
cbMajor.rowCount=15;
cbMajor.width=110;
cbMajor.move(0,0);
cbMajor.x=-235;
cbMajor.y=-150;
listURL=new URLRequest(fileName);
dataLoader.addEventListener(Event.COMPLETE,dataLoaded);
dataLoader.load(listURL);
theXML=new XML(listURL);
theXML.ignoreWhitespace=true;
cbMajor.addEventListener(Event.CHANGE, selectedName);
cbMajor.addEventListener(Event.CHANGE,changeEvent);
}
private function dataLoaded(evt:Event):void {
theXML=XML(dataLoader.data);
for (var i:int=0; i<majorArray.length; i++) {
key=majorArray[i];


cbMajor.addItem({label:(theXML.key[key].keyName)});
}
}
private function selectedName(evt:Event):void {
evtIndex=evt.target.selectedIndex;
key=majorArray[evtIndex];
setKey(key);
uiImageComponent=new UIImageComponent(fileName,key);
addChild(uiImageComponent.uiImage);
}
public function changeEvent(evt:Event):void {
trace(" You selected a key");
}
public function setFileName(fileName):void {
this.fileName=fileName;
}
public function getFileName():String {
return fileName;
}
public function setKey(key):void {
this.key=key;
}
public function getKey():String {
return key;
}
}
}
Hello,
I wanted to post my initial thoughts while I explored some link provided.

A.So if I wanted I could leave this class as is ?

B.make another class that extends it.Then devise it to send it the fileName and key and
1.overide the setupComponents and
a.
Code:
cbMajor.addEventListener(Event.COMPLETE,super.dataLoaded);
2.override the selectedname
A.
Code:
cbMajor.addEventListener(Event.COMPLETE,super.SELECTEDNAME);
In general is this even close?
Thanks for your time.
ceyesuma

Super.super()?
Hello,

It doesn't seem possible to call a parent of a parent class method like this:

override internal function myMethod():String { return super.super.myMethod(); }

I get "1084: Syntax error: expecting identifier before super."

Is there another way? Thanks in advance,
T.

Super()
My question is concerning Super.
If someone is farmiliar with Super . Is it possible to get someone to look at the first and of code only and get me started on how I would approach the concept of using Super. Because the second two blocks of code are almost identical. and I plan on creating two more blocks of code to create almost the same senerio.
(a combobox calling a child.)
Thanks




Hello,
I wanted to post my initial thoughts while I explored some link provided.

A.So if I wanted I could leave this class as is ?

B.make another class that extends it.Then devise it to send it the fileName and key and
1.overide the setupComponents and
a.[code]cbMajor.addEventListener(Event.COMPLETE,super.dataLoaded);[/code] 2.override the selectedname
A.[code]cbMajor.addEventListener(Event.COMPLETE,super.SELECTEDNAME);[/code]In general is this even close?
Thanks for your time.
ceyesuma







Attach Code

[code]

package chromatic.load_files{
import fl.controls.ComboBox;
import flash.display.MovieClip;
import flash.events.Event;
import fl.data.DataProvider;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.net.URLRequest;
import fl.containers.UILoader;
public class CBMajorComponent extends MovieClip {

public var cbMajor:ComboBox=new ComboBox();
private var uiImageComponent:UIImageComponent;

private var listURL:URLRequest=new URLRequest();
private var dataLoader:URLLoader=new URLLoader();
private var theXML:XML=new XML();

private var arrayFile:Array=new Array("load_assets/keylist.xml");
private var majorArray:Array=new Array

("CMajor","GMajor","DMajor","AMajor","EMajor",
"BMajor","FSharpMajor","CSharpMajor","FMajor",
"BFlatMajor","EFlatMajor","AFlatMajor",
"DFlatMajor","GFlatMajor","CFlatMajor");

public var key:String;
public var fileName:String;
private var evtIndex:Number;
private var evtItem:String;
private var sel:Number=-1;

public function CBMajorComponent():void {
init();
}
private function init():void {
fileName=arrayFile[0];
setFileName(fileName);
setupComponent(fileName);
}
private function setupComponent(fileName):void {
this.fileName=fileName;
cbMajor=new ComboBox();
cbMajor.setSize(200, 22);
cbMajor.prompt = "Select a Major Key";
cbMajor.editable=false;
cbMajor.rowCount=15;
cbMajor.width=110;
cbMajor.move(0,0);
cbMajor.x=-235;
cbMajor.y=-150;
listURL=new URLRequest(fileName);
dataLoader.addEventListener(Event.COMPLETE,dataLoaded);
dataLoader.load(listURL);
theXML=new XML(listURL);
theXML.ignoreWhitespace=true;
cbMajor.addEventListener(Event.CHANGE, selectedName);
cbMajor.addEventListener(Event.CHANGE,changeEvent);
}
private function dataLoaded(evt:Event):void {
theXML=XML(dataLoader.data);
for (var i:int=0; i<majorArray.length; i++) {
key=majorArray[i];


cbMajor.addItem({label:(theXML.key[key].keyName)});
}
}
private function selectedName(evt:Event):void {
evtIndex=evt.target.selectedIndex;
key=majorArray[evtIndex];
setKey(key);
uiImageComponent=new UIImageComponent(fileName,key);
addChild(uiImageComponent.uiImage);
}
public function changeEvent(evt:Event):void {
trace(" You selected a key");
}
public function setFileName(fileName):void {
this.fileName=fileName;
}
public function getFileName():String {
return fileName;
}
public function setKey(key):void {
this.key=key;
}
public function getKey():String {
return key;
}
}
}
[/code]

Super
My question is concerning Super.
If someone is farmiliar with Super . Is it possible to get someone to look at the first and of code only and get me started on how I would approach the concept of using Super. Because the second two blocks of code are almost identical. and I plan on creating two more blocks of code to create almost the same senerio.
(a combobox calling a child.)
Thanks



Code:

package chromatic.load_files{
import fl.controls.ComboBox;
import flash.display.MovieClip;
import flash.events.Event;
import fl.data.DataProvider;
import flash.net.URLLoader;
import flash.net.URLRequest;
import flash.net.URLRequest;
import fl.containers.UILoader;
public class CBMajorComponent extends MovieClip {

public var cbMajor:ComboBox=new ComboBox();
private var uiImageComponent:UIImageComponent;

private var listURL:URLRequest=new URLRequest();
private var dataLoader:URLLoader=new URLLoader();
private var theXML:XML=new XML();

private var arrayFile:Array=new Array("load_assets/keylist.xml");
private var majorArray:Array=new Array

("CMajor","GMajor","DMajor","AMajor","EMajor",
"BMajor","FSharpMajor","CSharpMajor","FMajor",
"BFlatMajor","EFlatMajor","AFlatMajor",
"DFlatMajor","GFlatMajor","CFlatMajor");

public var key:String;
public var fileName:String;
private var evtIndex:Number;
private var evtItem:String;
private var sel:Number=-1;

public function CBMajorComponent():void {
init();
}
private function init():void {
fileName=arrayFile[0];
setFileName(fileName);
setupComponent(fileName);
}
private function setupComponent(fileName):void {
this.fileName=fileName;
cbMajor=new ComboBox();
cbMajor.setSize(200, 22);
cbMajor.prompt = "Select a Major Key";
cbMajor.editable=false;
cbMajor.rowCount=15;
cbMajor.width=110;
cbMajor.move(0,0);
cbMajor.x=-235;
cbMajor.y=-150;
listURL=new URLRequest(fileName);
dataLoader.addEventListener(Event.COMPLETE,dataLoaded);
dataLoader.load(listURL);
theXML=new XML(listURL);
theXML.ignoreWhitespace=true;
cbMajor.addEventListener(Event.CHANGE, selectedName);
cbMajor.addEventListener(Event.CHANGE,changeEvent);
}
private function dataLoaded(evt:Event):void {
theXML=XML(dataLoader.data);
for (var i:int=0; i<majorArray.length; i++) {
key=majorArray[i];


cbMajor.addItem({label:(theXML.key[key].keyName)});
}
}
private function selectedName(evt:Event):void {
evtIndex=evt.target.selectedIndex;
key=majorArray[evtIndex];
setKey(key);
uiImageComponent=new UIImageComponent(fileName,key);
addChild(uiImageComponent.uiImage);
}
public function changeEvent(evt:Event):void {
trace(" You selected a key");
}
public function setFileName(fileName):void {
this.fileName=fileName;
}
public function getFileName():String {
return fileName;
}
public function setKey(key):void {
this.key=key;
}
public function getKey():String {
return key;
}
}
}

Super() ?
Hi guys!!

i want some explication about super() or codes thankyou


excuse my english

Super Newb Here
Bassically I want to learn how to make animated flash cartoons. Here is a list of questions:

-Is there a program i need to get in order to make flash cartoons?

-How do I make Characters/models and scenery/backgrounds?

-How can I create walking/running movement for characters?

-How do I add sounds and/or music to a flash cartoon?

-Is a preloader necessary, and if it is, how do I make/get one?

-how do I had links or replay buttons to a Flash toon?

More questions will come...

::SUPER MENU::
Please help me to make the same of this menu, what i need is the menu top (menu sentences)
http://www.risd.edu

please help

Or if eny body know about a program wich can check the script which was used in the .swf !!!! is there a program like this?

thanx

Super Newbie
Hello EveryBody. I am New to this Forum, from the Loox of it So Far it LooX Great! I just Wanted to Say Hi to EveryBody.

I'm Learning Flash, I know a Little bit but not much. I joined here to learn from EveryBody and Hopefully Contribute.

So Before long, I'm Sure I'll have an Eazy Question for EveryBody lol...

I'll See EveryBody Around!

Cheers

Sorry, This Is Super Easy
whats the command i put in a button if i wanna let someone DL something?

on (release){
uhh...
}

Super Newb
Seriously: SUPER Newb.

Trying to do something that seemed fairly simple at the time, but, alas, it has all gone to shreds.

Wanted to draw a simple circle -- relatively wide green fill with a green stroke. Then, fade out the fill, while fading up the stroke.

So, drew my circle, converted the fill to a symbol, and the stroke to a symbol. Thought I'd just flip-flop the alpha settings on each end, insert a motion tween and voila...but No.

So, what obvious can't-believe-you-even-asked-this-question piece of information have I chucked out the window in trying to do this?? Again, I'm super-new, and I don't quite think the way Flash does yet...I find I'm taking the LONG way to get things done, but thanks to all the great resources here at Flashkit, I'm starting to get the hang of it. Or...uh...it seemed like I was till I tried this.

Thanks so much for not laughing...or at least not posting your guffaws.

Cheers!

Super Newbie Needs Help
Ok I know how to do the basic animations and make basic changes to text and graphics/symbols. but other than that i know nothing. I'm wondering what i should look into next. I'm trying to learn enough to make a website similiar to theused.net and eyecandystudios.net please anyone tell me what i should learn to do next. I'm thinking i need to know alot about the actions part of the program but i really have no idea. I have a couple of basic animations on my website at www.halo-elite.com thanks for the help.

Please Help With Super Mp3 Player
Ok, maybe its not super, but it is crazy. I have been working a while on this MP3 player, for my website and I have everything all good except for two problems I can't fix.

First of all here is the player
http://www.planetcontra.com/planetco...ox/jukebox.swf
Its a dynamic loading MP3 player, made by action scripting sound objects similar to this code
"myMusic = new Sound();
myMusic.loadSound(_root.title);
_root.myMusic.start(0, x);"
There is alot of variables because I wanted to make it easily updatable.
The FLA can be found here:
http://www.planetcontra.com/planetco...ox/jukebox.fla
But I warn you, the FLA is intricate and crazy, and I don't expect the kind helpers to venture it.

*****Here's the problems.*****
For some reason the MP3s are playing alot faster than they should be, like 25% faster. As you can see, the first song is 2:33 in actual length, but it plays in 1:51. I know it is not a problem with the songs, that play normal speed in any other player. Has anybody every heard of such a problem, or can help me in anyway????

The second problem is more trivial. I want to have the dancer stop when you press stop and pause. To do this, i have made a boolean variable and updated it accordingley, so it is true when she should be, and false when she shouldn't. The problem is when I attempt to to stop and start her, I have no way of constantly updating her status(dancing or not dancing). I tried a movie clip and on clip event enter frame, but when I have the code stop() in the movie clip, the symbol does not stop and the stop has no effect. If I try to just update every frame, it will stop, but it has no way of starting again as there is no way to update the status. Does anybody know any other way to constantly update the status, or maybe know a way to start and stop a particle instance or symbol from the main or not within the symbol?? Please help me.


For those of you that help me, i praise you with all my heart, and you can leave with the satisfaction that you are my hero.

Thanx

Copyright © 2005-08 www.BigResource.com, All rights reserved