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




Big Issues With Flash Player



I have a big problem here...more and more people viewing my website are not able to view the menu on the left...the site is in 2 frames...they can see the main area (right side), but they can't see the left area (menu)...the main area was made in a Flash 5 .fla and the menu is made with Flash MX...is this why people are having troubles...very strange problem, but the weird thing is, I have used MX for the menu for a long time now and its only been more recently that I have had more people telling me this.


The site is www.needrealty.com if you want to see what I'm talking about.

If one of you could direct me somewhere I would GREATLY appreciate it!

Thanks


Mr. AOO



FlashKit > Flash Help > Flash MX
Posted on: 02-12-2003, 02:31 PM


View Complete Forum Thread with Replies

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

Flash Player 7 / AS2 Issues?
hello all, i have a slight problem with trying to get a script i made in an earlier version of flash to work with MX2004... the script basically makes a grid of boxes which move dynamically depending on where the mouse is... here's the code :

//setting the grid
xMax = 27;
yMax = 2;
xDist = 25;
yDist = 25;
xCenter = (this.width/2)-14;
yCenter = (this.height/2)+90;
for (y=0; y<yMax; y++) {
for (x=0; x<xMax; x++) {
clip = attachMovie("box", "b"+i, i++);
clip._x = clip.xBase= (x-(xMax-1)/2)*xDist+xCenter;
clip._y = clip.yBase= (y-(yMax-1)/2)*yDist+yCenter;
//stuff below
clip.onEnterFrame = move;
}
}
offset = 100;
k = .19;
damp = .5;
maxDist = 65;
function move() {
//function behaviors
var dx = this._x-_xmouse;
var dy = this._y-_ymouse;
var dist = Math.sqrt(dx*dx+dy*dy);
if (dist<maxDist) {
var angle = Math.atan2(dy, dx);
var tx = _xmouse+Math.cos(angle)*offset;
var ty = _ymouse+Math.sin(angle)*offset;
//spring towards
this.vx += (tx-this._x)*k;
this.vy += (ty-this._y)*k;
}
//spring towards base
this.vx += (this.xBase-this._x)*k;
this.vy += (this.yBase-this._y)*k;
this.vx *= damp;
this.vy *= damp;
this._x += this.vx;
this._y += this.vy;
}

if any of you could shed any light as to why it won't work i would be very grateful.

it won't actually set the grid so far, i don't know if anything else about it dosen't work yet.

Flash Player Issues?
Ok here's the dealio.
I created a flash ad awhile back (1.5 months ago) in CS3. Everything worked great. The client needed it as Version 8. No problem. Sent file, reviewed files .fla, swf. everything worked great.

Now last nite I tried to create a .mov of the file and none of the files work. The .fla previews fine, but when I try to play the .swf or .mov file it's just the first frame (I have my scene set-up with movieclips).

I dunno did I screw something up in the publish settings? Is there a new version of Flash Player that I downloaded since then that is screwing it up? I'm totally lost and frustrated.

I even went as far as to find the backed-up version of my flash movie from awhile back, and it's doing the same thing.

Any help greatly appreciated

Flash 8 Player Issues
I have a script that I used in an older version of a site. I am now tweaking and adding, and want to publish the new version in flash 8. However, i'm getting some unwanted results when i publish in flash 8 rather than flash 6. Can anyone have a look and tell me why?!

Thanks!








Attach Code

numDisplayed = 6;

currIndex = 0;

xPos = 60;
yPos = 430;

speed = 11;

for (var i = currIndex; i<currIndex+numDisplayed; i++) {
var index = i%myClips.length;
myClips[index]._y = yPos;
myClips[index]._x = myClips[index].targx=xPos+clip._width*(i-currIndex);
}
//MovieClip.prototype.easeToTarget = function() {
easeToTarget = function() {
var dx = this.targx-this._x;
this._x += dx/speed;
if (Math.abs(dx)<1) {
this._x = this.targx;
delete this.onEnterFrame;
}
};
MovieClip.prototype.moveMe = function(pi_dir) {
this.onEnterFrame = easeToTarget;
this.targx += pi_dir*this._width;
};
MovieClip.prototype.appearRight = function() {
this.onEnterFrame = easeToTarget;
this._y = ypos;
this._x = xpos+mask._width+300;
this.targx = xpos+(numDisplayed-1)*this._width;
};
MovieClip.prototype.disappearLeft = function() {
this.onEnterFrame = easeToTarget;
this._y = ypos;
this.targx = xpos-500;
};
MovieClip.prototype.appearLeft = function() {
this.onEnterFrame = easeToTarget;
this._y = ypos;
this._x = xpos-300;
this.targx = xpos;
};
MovieClip.prototype.disappearRight = function() {
this.onEnterFrame = easeToTarget;
this._y = ypos;
this.targx = xpos+mask._width+500;
};

function moveit(pi_incr) {
if (pi_incr == -1) {
myClips[currIndex].disappearLeft();
for (i=currIndex+1; i<currIndex+numDisplayed; i++) {
var index = i%myClips.length;
myClips[index].moveMe(pi_incr);
}
var indexClipToAppear = (currIndex+numDisplayed)%myClips.length;
myClips[indexClipToAppear].appearRight();
} else {
var indexCliptoDisappear = (currIndex+numDisplayed-1)%myClips.length;
myClips[indexCliptoDisappear].disappearRight();
for (i=currIndex; i<currIndex+numDisplayed-1; i++) {
var index = i%myClips.length;
myClips[index].moveMe(pi_incr);
}
var indexClipToAppear = (currIndex+myClips.length-1)%myClips.length;
myClips[indexClipToAppear].appearLeft();
}
// Update the index of the first visible item
currIndex = (currIndex+(myClips.length-pi_incr))%myClips.length;
}
this.leftie.onRelease = function() {
moveit(1);
};
this.rightie.onRelease = function() {
moveit(-1);
};

Flash Player 7 Issues
ello


I'm developing a game in flash version 7 using Flash 8 professional. Now I've been happily developing it for a while, testing it through the standalone player (version 9) and recently copied it across to our test rig which runs player 7.0 r19.

The problem is even though the whole time I've been compiling the movie as version 7, when it runs in flash player 7 it produces some sporadic bugs which never occurred when running in version 9.

The game is currently 5000 lines of code and the bugs are inconsistent so it'd take too long to try and riddle out the bugs on this forum, but an example of one is my WobbleClip class, which just takes a movie clip and animates a wobble on the clip to a target value. This works on some occasions and doesn't on others

Are there any known issues caused by changes made to the flash player, specifically concerning AS2 and versions 7-9?

the project is heavily dependent on intervals

Really need digging out of a hole here, looking through the code it all looks valid and there's a lot to trawl through!

Flash Player 10 Issues
Hi,

I've run into a few problems when trying to compile swfs for Flash Player 10. I write code that works perfectly in Flash Player 9, but as soon as I run it in version 10 it doesn't work. Please see the example below and let me know if you know what's going on. Basically I load in an image, then use the copyPixel method to cut it up into squares to put in idividual MovieClips...

Code:

package {      
   import flash.display.*;
   import flash.events.*;
   import flash.net.*;
   import flash.geom.*;
   import flash.text.TextField;
   
   [SWF(width="600", height="400", backgroundColor="#CCCCCC", framerate="40")]
   public class Testr extends Sprite{
      
      private var loader:Loader;
      private var mc:MovieClip;
      
      public function Testr():void{
         loader = new Loader();
         mc = new MovieClip();
         loader.load(new URLRequest("http://www.google.com.au/intl/en_au/images/logo.gif"));
         mc.addChild(loader);
         addChild(mc);
         mc.blendMode = BlendMode.ERASE;
         mc.addEventListener(Event.ENTER_FRAME, chkLoaded);
      }
      private function chkLoaded(e:Event):void{
         if(e.currentTarget.width > 200) {
            mc.removeEventListener(Event.ENTER_FRAME, chkLoaded);
            for(var i:uint = 0; i < 16; i ++){
               for(var j:uint = 0; j < 8; j ++){
                  var tmp:MovieClip = new MovieClip();
                  tmp.x = i * 26;
                  tmp.y = j * 26;
                  
                  var cropClip:Bitmap;
                  var imageBMP:BitmapData = new BitmapData(mc.width, mc.height);
                  imageBMP.draw (mc, new Matrix());
                  var imageBMPData:BitmapData = new BitmapData(mc.width, mc.height);
                  
                  imageBMPData.copyPixels (imageBMP, new Rectangle(i * 25, j * 25, 25, 25), new Point(0,0));
                  cropClip = new Bitmap(imageBMPData);
                  tmp.addChild(cropClip);
                  addChild(tmp);
               }
            }
         }
      }
   }
}

Cheers!

Flash MP3 Player Issues
I recently built a Flash MP3 player for a site based on a tutoral I found. This is my first Flash app.

I've been having issues with the load time on the MP3s I'm useing. Sometimes the song loads up right away and sometimes it just stalls at loading. For some reason it didnt work in FF then worked in IE then still didnt work in FF and I releaded the IE page and it didnt work again. On another computer it wasn't working in FF, then I reloaded the page and it worked just fine. I've tried clearing the cache and it lagged on me again.

The MP3 is externaly linked. This shouldn't make any difference in how it's loaded, should it? Is there anyway to speed up the loading of this MP3 file or start preloading it some how?

If it helps, the player is based on this tutorial...link

Windows XP & Flash Player Issues
I have recently completed some new Flash MX applications on our company website and immediately got some harsh feedback from our XP users in the office.

Apparently when they go to the pages with these applications the browser just sits there and clocks and nothing comes up. So this brings up two issues for me.

#1 My version detection script doesn't work at all for these users. And for users WITH version 6 it gives them the popup!!!

if (_root.getVersion() < 6) {
getURL ("javascript:NewWindow=window.open('http://www.oururl.org/upgrade.html','upgrade','width=275,height=175,left =0,top=0,toolbar=No,location=No,scrollbars=No,stat us=No,resizable=No,fullscreen=No');NewWindow.focus ();void(0);");
} else {
gotoAndPlay("Preloader", 1);
}

#2 When I have had these co-workers on XP go to macromedia.com and install the latest flash player 6 it still leaves them with Flash player 5.something even though it said installation complete. Now I know that it could be that they need to clear cache, reboot and whatever to install flash player 6 but I'd have a hard time getting coworkers going through the trouble let alone users of our site!!?!

Can anyone help? Whats up with Windows XP and Flash? Apparently it comes with Flash Player 5 that isn't easily upgradeable.

Flash Player 6 And 7 Compatibility Issues
I am developing a game to run in a client / server setup. Im using Java Flash Remoting ( openAMF & ASTranslator ). The client machines will be running featherLinux and launching the player units in the Flash Player 6 ( GFlashPlayer by Macromedia ). The problem I am having is that I developed the game in Flash MX 2004 using Flash 7.

The first initial problem I had was that any dynamic text fields were not displaying the text on FP6, but worked fine in FP7. I figured out that FP6 requires the dynamic text boxes to link the character outlines( textbox properties->characters->select the character the text box will be displaying )

But I am now finding some other weird problems. For example the game dabs cards based on a number call ( bingo ), but when I activate the dab ( its a movie so frame 1 is blank and frame 2 contains the dab ). The dab will not display on FP6, but on FP7 it works fine. I was wondering if anybody knows of any known compatibility issues and resolutions for them.

I know FP6 is flakey in some aspects, but macromedia has not released ( nor plans to from what I hear ) a FP7. We cannot use the plugin because it has to run in a standalone player for deployment purposes.

Any help would be greatly appreciated.

Flash Player Performance Issues...
Hey Guys,

For my final year project I have undertaken the following task:

Generate an intuitive and thoroughly interactive browseing experience for a large image database. (sound boring but I have an *AWESOME* design )

The database is 4500 images so i'm using some techniques which i'm keeping hush at the moment to display them...

All the images have a thumbnail, say 15x15 or 20x20, ALL of them need to be loaded at the start...

Im looking at the moment for any performance issues that anyone may know of when it comes to huge datasets such as this...

*ANY* help, pointers, experience, examples much appreciated...

Cheers

XMl Flash MP3 Player Caching Issues....
Hi,
I want to use this Flash MP3 player http://www.flashstar.de/tutlist/index.php3?id=943 on my website to play my music compositions. It is a fantastic player, but it is caching the mp3 files to location "C:Documents and SettingsuserLocal SettingsTemporary Internet Files" on the user's machine.

Is it possible NOT to cache the mp3 files to the user's local machine...?

Pls let me know if there is any other flash xml mp3 player which has the same functionalities.

Please help, attached .fla file. thank you

Flash Player 8 Compatibility Issues?
This isn't about using Flash 8 as much as swfs published in Flash 6 and 7 not working properly on machines with the Flash 8 plugin. Are there known issues with this and/or known solutions?

Sorry if this is vague - I'm looking for some guiding principles more than a specific solution.

XMl Flash MP3 Player Caching Issues....
Hi,
I want to use this Flash MP3 player http://www.flashstar.de/tutlist/index.php3?id=943 on my website to play my music compositions. It is a fantastic player, but it is caching the mp3 files to location "C:Documents and SettingsuserLocal SettingsTemporary Internet Files" on the user's machine.

Is it possible NOT to cache the mp3 files to the user's local machine...?

Pls let me know if there is any other flash xml mp3 player which has the same functionalities.

Please help, attached .fla file. thank you

Help - Issues With Prototypes And Flash Player 8
Hi flash masters, i've got an Actionscript 1.0 piece of code that is working fine, but only when publishing it for plash player 6. If I publish it for flash player 8 (and ActionScript 1.0), it just doesn't work. But I really need to use some flash player 8 features.

How to make the following code work with flash player 8? What's so incompatible about it? Any ideas?

THE SITE: (no preloader, 346k)
http://www.imaginando.net/resin/

THE CODE:


ActionScript Code:
Movieclip.prototype.scrollme = function(xPos, yPos) {
cX = this._x;
difX = cX-xPos;
this._x = cX-(difX/5);
 
cY = this._y;
difY = cY-yPos;
this._y = cY-(difY/5);
};
 
arrayIndex = 0;
 
// definition of possible positions
main_menu_button_base_mcXpositions = new Array(6.4,30,30,30,30,30,30,30,30);
main_menu_button_base_mcYpositions = new Array(-300,30,30,30,30,30,30,30,30);
 
main_menu_button_base_mc.onEnterFrame = function() {
this.scrollme(main_menu_button_base_mcXpositions[arrayIndex], main_menu_button_base_mcYpositions[arrayIndex]);
};

Flash Player Update Issues
Hey guys.

I've recently encountered an issue at my work PC where the Flash Player in the IDE is not exporting with the latest flash player. I have repeatedly updated, uninstalled and re-installed the player from my system but continuously run into the same problem.
Basically I've got a project where I'm using HD video, and the latest flash player v: 9,0,115,0 is not used in the publication, instead it defaults back to v: 9,0,45,0. So when trying to preview my movie inside flash I am greeted with a blank screen, however when I view the .swf from my project folder it plays using the 9,0,115,0 player and works fine.

Has anyone experienced this problem? I have torn apart the Adobe website for some patches/fixes but everything I have tried has been ineffective in sorting this problem.
Also, I've used KewBee Plugin Switcher as well, but that doesn't allow me to install a later version either.

Would really appreciate some input on this if anyone has some info.


Thanks guys,

Oz

Flash Player 10 - Embedded Fonts Issues
Has anyone experienced problems with dynamic fonts not displaying in the new Flash 10 Player?? I search the web to see if anyone found a solution but I have been able to find mention of the bug.

It seems to be happening when customizing fonts on Flash UI components. I tried different fonts, different embed methods, not embedding the font (worth a shot), and even exported the file as Flash 10 from CS4. This is starting to occur on multiple projects.

Any help would be appreciated.

Thanks

Flash Player Issues (possibly Related To As)
Hi there,

I'm having some real troubles with a full flash website which I need to get up and running.

Basically I have the site template which is now finished however I want to add in a .swf quiz (which I created in flash 8 pro). When I add it to my main site and publish it I get an error saying that flash player 6 cannot support the swf.

I therefore changed the export to flash player 8, however when I do this none of my navigation buttons on the website function at all.

Is there any way round this problem?

Any help would be greatly appreciated!

Thanks

Euan

Compatibility Issues Across Different Flash Player 9 Subversions
Hi all,

I've been developing a flash game using Adobe CS3, which you can check out here:
Link
(It's a facebook app so you'll need a facebook login to play.)

Now the problems I'm facing is that a lot of users have older version of the flash players. Mind you not version 8 old but just an older version of 9 like version 0.9.28, and the game simply won't work with those older versions with flash contents created using CS3.

We have tried asking the users to update the Flash player to the latest one, however a lot of the facebook users are just casual pc users and can't work out how, or are on work pc and don't have admin rights to install the new player.

So it seems like the solutions is to make the app backward compatible so that it works on all the version 9 players. The question is how? I've run the game through the older version of the flash players to try to debug and find out the point of failure but it just seems everything is failing... sounds don't play and throws exception, some big animating movieclips don't show up at all(probably due to it having some unsupported filters?) etc.

It just seems like an impossible task without any documentation on the old API or supported feature sets. So I'd just like to know if anyone has any pointers to any websites/doc/anything that might help me to maximise the compatibility of the game?

thanks a lot!
Tommy

Flash Mp3 Player Command And Pitch Issues
Please fellas help

I altered a fla file that I've found on a site that explained how to make mp3 player step by step.

Now really this is a simple player, simple as it gets, but since I'm a total flash noob, it's a bit of a ruff pecker for me

Ok here's the deal

http://www.sendspace.com/file/vqfoes

There's my FLA file and mp3 that should play.

So far I got 2 issues.

1 - I can't get stop button to stop
2 - when I preview it, the pitch is up and I don't know why

So if anyone has time to sort this one out for me or at least guide me through it...

Thanks

Flash Player 8 Issues - Won't Open In Older Players
i've read a bunch of posts on this but haven't heard anything conclusive on it.

i'm publishing my file in flash 8, as 2.0 - but it will not open on computers unless they have at flash 8 installed. what is best way to handle this? just publish for flash 6? please help! thanks,

Trying To Export A Older Flash File In Player 8, Having Issues.
i have this flash file that is written for player 5. i had to republish in player 8 to take advantage of the anti aliasing features available, however, i seem to have a problem with a secondary swf that gets pulled in to the main movie. the secondary swf targets player 5 as well. when i republished for player 8, i got these compiling errors. can anyone tell me why this won't work if i publish in 8, but works publishing in 5?


while (Number(n)<19) {
n = Number(n)+1;
bn = "kv" add n;
duplicateMovieClip("kv", bn, n);
setProperty(bn, _x, Number(getProperty(bn, _x))+Number(n*getProperty(bn, _width)));
setProperty(bn add "/b", _x, getProperty (bn add "/b", _x) + (random (20)+1));
}


it must be a syntax issue as the original code is AS1.0. Does anyone know what this would need to look like to work publishing for player 8?






























Edited: 04/08/2008 at 01:13:46 AM by mefleury

Issues When Loading Flash Player From Local Domain
I have a webcam streaming to Flash Media Server via the Media Encoder. I have published the .swf file with the flash player and rtmp://99.999.999.999:1935/live/livestream address to my website on a hosted webserver.

When I am on another internet source, the player on my webpage loads and works fine. However when I load the webpage in a browser on the same network that has the Media Server and Webcam on it, the browser freezes up.

I need some help with a solution that will cause the rtmp:// address to switch to a local host address. Any suggestions.

Help Needed, To Modify Flash Player 8, Security And Performance Issues
I need a modified ”flash player 8” that accepts running .php files locally. Basically making a “modified flash player 8” to use the same security settings that is in “flash player 7”

Also that the modified “flash player” is optimized for high performance movies. And utilises the graphic card/computer hardware more efficiently if possible.

I´m going to use it to play “big movies” and want the best results graphically and speed. Were not going to use it on the “internet”.

Best regards
Andreas

ps! best if you have a company so you can bill me.

Flash MX & Flash Player Issues
Question:

Does the Flash authoring took use the most recent version of Flash Player you have installed to run the debugger/interpreter?

I know I have Flash Player 9 installed but I think my Flash MX only does the debugging/interpreting w/ Flash Player 6, which it came with! Problem is, I don't think it's interpreting correctly because I took some code from a Flash MX book and duplicated it exactly and I got Output errors.....anyone have any suggestions for my situation?
The sooner the better, thanks

MP3 Player Issues
Okay so perhaps I am dumb or something but I am having MAJOR problems with an MP3 player I got from flash kit. All the files are in the root html dir for now so it shouldn't be an issue with the path (at least so I think).

http://www.flashkit.com/movies/Sound...dex.php?chk=no

Well here is the dilemma, I can get it to pull the tracks.txt fille from the server but, not until after I have refreshed the page! I don't understand why the player cannot find the file until the page has refreshed. I have it hosted on dixiesys on a redhat box running ensim control panel if that helps any at all.

Here is the kicker. I loaded it onto an internal BSD box at work and the thing works fine on initial load! So it's got to be something the wayt he site is setup? Is there anything in configuration in the flash file that will help this?

Any help would be greatly appreciated!

MP3 Player Issues
OK so I am having some issues here. I downloaded this player from flashkit

http://www.flashkit.com/movies/Sound...dex.php?chk=no

I cannot get it to play MP3 files on my website. It will only pull the tracks.txt file once the page has been refreshed?!?! I even put teh full path in the URL but it still does the same thing. It does this everytime without fail. Does flash require the file it's pulling from to be cached first? I am so confused, I apologize for the noobie question but I didn't know where else to ask, and to me it seems like it might be an action scripting issue.

Any help would be greatly appreciated.

FLV Player Issues
I have been trying to understand how a FLV player functions using AS 2 and 3.
To understand more about starting a FLV player from scratch I have been following this really good tutorial

http://www.communitymx.com/content/a....cfm?cid=4E1D8

I have followed every step carefully but when I publish it there are a few errors that pop up. The tutorial was set for AS 2.0 but my flash (CS3) tells me that the code is not suitable for AS 2.0 and that I should go to AS 3.0

I have attached a zip file.

any help would be great >

Mp3 Player Issues
I am using an mp3 player component. I have started adapting it to my sites needs and now I am trying to create an in flash mp3 playlist that the mp3 player will use to load specific songs. as it is the mp3 player only supports cycling through the playlist sequentially. How can I modify it to load "track numbers"?

mp3 player code:

Code:
//||------------------------------------------------------------------||
//|| XmlMp3Player Smart Clip Developed By Israel Cazares [blackbox] ||
//|| url: www.bbbcmx.net ||
//|| location: Sinaloa, Mexico ||
//||------------------------------------------------------------------||
//||Licencia de uso: ||
//||Este componente Smart Clip puede ser usado de forma libre siempre ||
//||y cuando un correo sea mandado a blackbox@bbbcmx.net con un link ||
//||a la página que lo usa y se le de creditos al autor del mismo. ||
//||------------------------------------------------------------------||
//||Terms of use: ||
//||this Smart Clip Component can be used freely if an email to ||
//||blackbox@bbbcmx.net is sent with a link of the site that uses ||
//||the component and give credits to the author. ||
//||------------------------------------------------------------------||
btn1.onPress = function() {AudioPath = aPath[2]};
AudioXml = new XML();
AudioXml.ignoreWhite = true;
AudioXml.onLoad = LoadXmlFile;
AudioXml.load(playListPath);
function LoadXmlFile(success) {
if (success) {
aPath = new Array();
asongTitle = new Array();
aAudio = new Array();
aAudio = this.firstChild.childNodes;
AudioTotal = aAudio.length;
for (i=0; i<AudioTotal; i++) {
if (aAudio[i].nodeName == "AudioProps") {
aPath.push(aAudio[i].attributes.path);
asongTitle.push(aAudio[i].attributes.songTitle);
}
}
AudioPath = aPath[0];
tAuthor = asongTitle[0];
AudioActual = 1;
tCount = AudioActual+" Of "+AudioTotal;
tText = "Loaded";
} else {
tText = "not loaded";
}
}
Ff.onPress = function() {
if (AudioActual<AudioTotal) {
AudioActual += 1;
AudioPath = aPath[AudioActual-1];
tAuthor = asongTitle[AudioActual-1];
MySound.stop();
Mystatus = "Press Play";
}
};
Rw.onPress = function() {
if (AudioActual>1) {
AudioActual -= 1;
AudioPath = aPath[AudioActual-1];
tAuthor = aSongTitle[AudioActual-1];
MySound.stop();
Mystatus = "Press Play";
}
};
PlayBtn.onPress = function() {
if (FlagPausa == true) {
MySound.start(SoundPausePos, 0);
FlagPausa = false;
SoundPausePos = undefined;
} else {
MySound = new Sound();
volume = 100;
MySound.setVolume(volume);
MySound.loadSound(AudioPath, StreamFlag);
FlagPausa = false;
_parent.onEnterFrame = function() {
TB = MySound.getBytesTotal();
BL = MySound.getBytesLoaded();
if (BL != TB) {
TheText2.text = Math.round((BL/TB)*100)+"% Loaded";
} else {
TheText2.text = "100% Loaded";
delete _parent.onEnterFrame;
MySound.start();
}
};
}
};
StopBtn.onPress = function() {
MySound.stop();
Mystatus = "Press Play";
};
PauseBtn.onPress = function() {
SoundPausePos = MySound.position/1000;
MySound.stop();
FlagPausa = true;
};

//----------------------------------------------------------------------------------------------//
//xml archive example:
//<?xml version="1.0" encoding= "UTF-8" ?>
//<audioFiles>
//<AudioProps path ="TomorrowComesToday.mp3" songTitle = "Gorillaz - Tomorrow Comes Today"/>
//<AudioProps path ="SlowCountry.mp3" songTitle = "Gorillaz - Slow Country"/>
//<AudioProps path ="Punk.mp3" songTitle = "Gorillaz - Punk"/>
//</audioFiles>
//---------------------------------------------------------------------------------------------//

FLV Player Issues
Hi, I hope you guys can help me.
I'm making a flv player and I am completely new to flash so it's really blowing my mind.
I followed Lee's tutorials about making a player and made only a couple of changes to it.
I need the video not to loop, but after the movie finished I need to display a slide (movie clip with buttons on it) with a "buy this" button and "play again" button.
It seems to work fine when I let the movie play out on its own but if I scrub to the end then it gets funky. It just gets stuck on the last frame of the video and does not go to the endButton clip.

I've been messing around with the if statements in the beginning but that's taking me nowhere really fast.....

Here is my code....

Code:

var nc:NetConnection = new NetConnection();
nc.connect(null);

var ns:NetStream = new NetStream(nc);

ns.setBufferTime(10);

ns.onStatus = function(info){
   if(info.code == "NetStream.Buffer.Full"){
      bufferClip._visible = false;
      
      
   }
   if(info.code == "NetStream.Buffer.Empty"){
      bufferClip._visible = false;
      //theVideo._visible = false;
      endButtons._visible = true;
   }
   //if(info.code == "NetStream.Play.Stop"){
      //endButtons._visible = true;      
   //}
   
   else{      
      endButtons._visible = false;
      
   }
   
}

theVideo.attachVideo(ns);

ns.play("Movie2.flv");

endButtons.buyDvd.onRelease = function(){
   getURL("link", "_target");
}
endButtons.playItAgain.onRelease = function(){
   ns.seek(0);
}

buyItNow.onRelease = function(){
   getURL("link", "_target");
}

rewindButton.onRelease = function() {
   ns.seek(0);
}
playaButton.onRelease = function() {
   ns.pause(false);
}
pauseddButton.onRelease = function() {
  ns.pause(true);
}

//playButton.onRelease = function() {
   //ns.pause();
//}

this.createEmptyMovieClip("vFrame",this.getNextHighestDepth());
vFrame.onEnterFrame = videoStatus;
var amountLoaded:Number;
var duration:Number;
ns["onMetaData"] = function(obj) {
   duration = obj.duration;
}
function videoStatus() {
   amountLoaded = ns.bytesLoaded / ns.bytesTotal;
   loader.loadBarXX._width = amountLoaded * 165;
   loader.scrub._x = ns.time / duration * 165;
}

loader.scrub.onRollOver = function() {
   
   this.gotoAndStop("overScrub");
}
   
loader.scrub.onRollOut = function() {
   
   this.gotoAndStop("blueScrub");
}
loader.scrub.onPress = function() {
   vFrame.onEnterFrame = scrubit;
   this.startDrag(false,0,this._y,165,this._y);
}
loader.scrub.onRelease = loader.scrub.onReleaseOutside = function() {
   vFrame.onEnterFrame = videoStatus;
   this.stopDrag();
}
function scrubit() {
   ns.seek(Math.floor((loader.scrub._x/165)*duration));
}

_root.createEmptyMovieClip("vSound",_root.getNextHighestDepth());
vSound.attachAudio(ns);

var so:Sound = new Sound(vSound);

var volumeNum = 50;
so.setVolume(volumeNum);
var isMuted = false;


mute.onRollOver = function() {
   if(!isMuted) {
      this.gotoAndStop("onOver");
   }
   else{
      this.gotoAndStop("muteOver");
   }
}

mute.onRollOut = function() {
   if(!isMuted) {
      this.gotoAndStop("on");
   }
   else{
      this.gotoAndStop("mute");
   }
}

mute.onRelease = function() {
   //if(so.getVolume() == 100) {
   if(!isMuted) {
      //muted
      volumeNum = so.getVolume();
      isMuted = true;
      so.setVolume(0);
      this.gotoAndStop("muteOver");
   }
   else{
      //un muted
      isMuted = false;
      so.setVolume(volumeNum);
      this.gotoAndStop("onOver");
   }
}

volumeControler.volumeScrub.onRollOver = function() {
   
   this.gotoAndStop("overVolScrub");
}
   
volumeControler.volumeScrub.onRollOut = function() {
   
   this.gotoAndStop("blueVolScrub");
}
   
            
volumeControler.volumeScrub.onPress = function() {
   this.startDrag(false,-22,this._y,25,this._y);
   this.onEnterFrame = function() {
      x = Math.floor(this._x+22)*2;
        so.setVolume(x);
   }
}
volumeControler.volumeScrub.onRelease = volumeControler.volumeScrub.onReleaseOutside = function() {
this.stopDrag();
  delete this.onEnterFrame;
}





Thanks for looking
~L

Issues With FLV Player
I have created an flv player based on Lee’s tutorials and made a couple modifications to the player based on posts within the forum. For the most part the player works well, but it does have errors I could not fix myself. I also wanted to make additional modifications to the player and could not find info specific to the desired mods in the forum.

I have posted my player and it is loaded with a single video so one can see what I have so far.

http://www.yeticycles.com/Video/VideoTest.html



Problems.
The volume slider does not work properly in conjunction with the mute button. The main issue is that the mute button states are not displaying properly when the slider is a 0 volume and then when it is slid off 0 volume. For example when you slide the volume adjuster all the way to 0 volume, the volume is muted but the mute button shows improper “on†state. Then when you slide the adjuster off 0 volume it becomes un-muted, but the mute button shows the improper “mute†state.

The buffer does not seem to be consistent. For example when the video loads the buffering appears and buffs for the correct amount of time. But if the load progress is not fast enough and the scrubber catches up the video stalls, as it should, but sometimes the buffer message does not appear.

I have set the scrubber bounds based off another post in the forum and for the most part everything works fine, except for the on the initial video loading. On the initial loading you can drag the scrubber in a negative direction, but once the initial video buffering is complete this is no longer problem. I have posted a screen cap that displays the negative position.
http://www.yeticycles.com/Video/ScrubberBehind.jpg


Also another quirky behavior is the scrubber going past the load progress. Sometimes when the load progress is slow the scrubber catches up to the load progress and passes it before the video stalls and buffers. I have posted a screen cap that displays the position.
http://www.yeticycles.com/Video/ScrubberAhead.jpg

Modifications
In addition to the load progress bar and scrubber, I would also like a video progress bar. Essentially I would like a video progress bar that follows the position of the scrubber. I have created a mock up to better explain what I want to achieve. I would also like to accomplish this for the volume slider as well. I would appreciate any insight on how to achieve this.
http://www.yeticycles.com/Video/ProgessBar.jpg


I would also like the buffer message to fade in when needed and out when finished to have a smoother effect.

I would appreciate any help that can be provided on solving the problems or aiding in the modifications. I have posted the actionscript code below.


Code:

// Button Controls //

// Pause Button
pauseButton.onRollOver = over;
pauseButton.onRollOut = out;
pauseButton.onReleaseOutside = out;
// Pause Button
playButton.onRollOver = over;
playButton.onRollOut = out;
playButton.onReleaseOutside = out;
// Scrub Button
loader.scrub.onRollOver = over;
loader.scrub.onRollOut = out;
loader.scrub.onReleaseOutside = out;
// Volume SLider Button
vscrub.vadjust.onRollOver = over;
vscrub.vadjust.onRollOut = out;
vscrub.vadjust.onReleaseOutside = out;
// Rewind Button
rewindButton.onRollOver = over;
rewindButton.onRollOut = out;
rewindButton.onReleaseOutside = out;
// Forward Button
forwardButton.onRollOver = over;
forwardButton.onRollOut = out;
forwardButton.onReleaseOutside = out;

function over () {
   this.gotoAndPlay(2);
}
function out () {
   this.gotoAndPlay(7);
}

// Load video //
var nc:NetConnection = new NetConnection();
nc.connect(null);

var ns:NetStream = new NetStream(nc);

// Buffer //
ns.setBufferTime(10);
var buffTime = 10;

ns.onStatus = function(info) {
   if(info.code == "NetStream.Buffer.Full") {
      bufferClip._visible = false;
   }
   if(info.code == "NetStream.Buffer.Empty") {
      bufferClip._visible = true;
   }
   if(info.code == "NetStream.Play.Stop") {
      ns.seek(0);
      ns.pause();
      playButton._visible = true;
        pauseButton._visible = false;
   }
}

theVideo.attachVideo(ns);

ns.play("VideoMedia/2006RiderBioGraves700px.flv");

// Controls //
playButton._visible = false;
playButton.onRelease = function() {
   ns.pause(false);
   playButton._visible = false;
    pauseButton._visible = true;
}
playButton._visible = false;
pauseButton.onRelease = function() {
     ns.pause(true);
     playButton._visible = true;
     pauseButton._visible = false;
}

rewindButton.onPress = function() {
     clearInterval(intervalID);
     intervalID = setInterval(vidRwd, 500);
}

rewindButton.onRelease = function() {
     clearInterval(intervalID);
}

function vidRwd() {
    ns.seek(ns.time-15);
}


var intervalID:Number;
forwardButton.onPress = function() {
     clearInterval(intervalID);
     intervalID = setInterval(vidFwd, 500);
}

forwardButton.onRelease = function() {
     clearInterval(intervalID);
}

function vidFwd() {
    ns.seek(ns.time+15);
}

//Volume Slider //
_root.createEmptyMovieClip("vSound",_root.getNextHighestDepth());
vSound.attachAudio(ns);
var so:Sound  = new Sound(vSound);
so.setVolume(75);
var currentLevel:Number = so.getVolume();

var volInterval;
var vstart = vscrub.vadjust._x;
vscrub.vadjust._x = vstart+(100*.75);

vscrub.vadjust.onPress = function() {
   volInterval = setInterval (volLevel, 10)
   this.startDrag(false,0,this._y,90,this._y);
};

vscrub.vadjust.onRelease = vscrub.vadjust.onReleaseOutside = function() {
   clearInterval (volInterval);
   this.stopDrag();
   this.gotoAndPlay(7);
};

function volLevel() {
   so.setVolume(Math.floor((vscrub.vadjust._x /90)*100));
   currentLevel = so.getVolume();      
}

// Mute Button //
mute.onRollOver = function() {
   if(so.getVolume() > 0) {
      this.gotoAndStop("onOver");
   }
   else {
      this.gotoAndStop("muteOver");
   }
}
mute.onRollOut = function() {
   if(so.getVolume() > 0) {
      this.gotoAndStop("on");
   }
   else {
      this.gotoAndStop("mute");
   }
}
mute.onRelease = function() {
   if(so.getVolume() > 0) {
      so.setVolume(0);
      this.gotoAndStop("muteOver");
   }
   else {
      so.setVolume(currentLevel);
      this.gotoAndStop("onOver");
      
   }
}

// Srubber //
this.createEmptyMovieClip("vFrame",this.getNextHighestDepth());
vFrame.onEnterFrame = videoStatus;

ns["onMetaData"] = function(obj) {
   duration = obj.duration;
}

function videoStatus() {
   amountLoaded = ns.bytesLoaded / ns.bytesTotal;
   loader.loadbar._width = amountLoaded * 500;
   if (loader.loadbar._width == 500) {
      buffTime = 10;
      }
   loader.scrub._x = (ns.time / duration * 490);
}

var scrubInterval;

loader.scrub.onPress = function() {
   vFrame.onEnterFrame = scrubit;
   this.startDrag(false,0,this._y,
    Math.round(loader.loadbar._width-buffTime),this._y);
}


loader.scrub.onRelease = loader.scrub.onReleaseOutside = function() {
   vFrame.onEnterFrame = videoStatus;
   this.stopDrag();
   this.gotoAndPlay(7);
}

function scrubit () {
   ns.seek(Math.floor((loader.scrub._x/490)*duration));
}

TileList Issues In FLV Player
I am using the Adobe demo files to make an FLV player for my site and am running into an issue. (I am using the VidePlaylistSeq.fla master file, that allows thumbnails to be previewed as well).

If I adjust the width of the tileList movie clip in the main fla/swf to be narrower my vertical scrollbar disappears.

In my VideoPlayList.as file I am setting the size, however it seems to not affect the final piece.

Any insight is appreciated.

Player Availability Issues
Has anyone been experiencing intermittent outages of the Macromedia/Adobe Flash Player download site over the past few weeks? We deliver enterprise-level solutions on the Flash platform to our customers, but it's difficult to maintain credibility in using this platform when the plugin becomes unavailable for hours at a time. I can't resolve the URL right now: (http://fpdownload.macromedia.com/get...ash_player.exe)

Could this have anything to do with a half-arsed attempt at migrating macromedia.com to adobe.com?

Some Issues With Simple Mp3 Player
I have some issues with an mps player

theres a text file called total_tracks.txt which states how may tracks there are and that says "totalTracks=3"

the code is pretty short, and I am getting the artist and song namefrom the id3 tags,

ok, this is the code I am using, I am having trouble making it so when you get to the end the next button takes you to the beginning and vice versa.

Also is there any way to automaticaly detect how many files are in the music folder instead of having this text file that states this. Can flash or php do this.


Code:
var musicFolderName:String = "music/";
var curTrackNum:Number = 1;
var curPlaybackPos:Number;
var my_sound:Sound;
var trackInfoArray:Array;
var trackInfoTracker:Number = 0;
var my_sound:Sound = new Sound();
my_sound.onSoundComplete = function() {
trace("my_soundID completed");
};
function playMusicFunc() {
my_sound.onID3 = function() {
trackText.text = my_sound.id3.TIT2+" - "+my_sound.id3.TPE1;
trackNumber.text = "track "+(curTrackNum)+" of "+myLV.totalTracks;
};

my_sound.loadSound((musicFolderName+"track"+curTrackNum+".mp3"), true);
}
var myLV:LoadVars = new LoadVars();
myLV.load("total_tracks.txt");
myLV.onLoad = function(success) {
if (success) {
playMusicFunc();
trace("good");
} else {
trace("bad");
}
};
// ------------- play/pause -------------- \
this.pauseMusic.onRelease = function() {
curPlaybackPos = my_sound.position;
my_sound.stop();
disablePause();
clearInterval(infoChangerInterv);
};
this.playMusic.onRelease = function() {
my_sound.start((curPlaybackPos/1000), 9999);
disablePlay();
restartTrackInfo();
trace("good");
};
function disablePlay() {
playMusic.enabled = false;
playMusic._alpha = 50;
pauseMusic.enabled = true;
pauseMusic._alpha = 100;
trackInfo._alpha = 100;
}
function disablePause() {
playMusic.enabled = true;
playMusic._alpha = 100;
pauseMusic.enabled = false;
pauseMusic._alpha = 50;
trackInfo._alpha = 50;
}
this.nextTrack.onRelease = function() {
trace(curTrackNum);
trace(myLV.totalTracks);
delete curPlaybackPos;
curTrackNum == myLV.totalTracks ? curTrackNum=1 : curTrackNum++;
my_sound.stop();
playMusicFunc();
};
this.prevTrack.onRelease = function() {
trace(curTrackNum);
trace(myLV.totalTracks);
delete curPlaybackPos;
curTrackNum == 1 ? curTrackNum=myLV.totalTracks : curTrackNum--;
my_sound.stop();
playMusicFunc();
};
so why isnt this part of the code working? when you click the next button

curTrackNum == myLV.totalTracks ? curTrackNum=1 : curTrackNum++;

Actionscript 3.0 Mp3 Player Issues
Hey guys,

I am new to Actionscript 3.0 and i need some help with my MP3 player.
The things that bother me about it are:

--The seek bar is wacky, (i think because i need to preload each song when its clicked but i don't know how)

--When you click on a song name it sometimes doesn't start from the beginning.

--Thats pretty much it. If you play around with it you will see what i mean.

here is a link to see what i mean about its loading issues:

http://www.d1029297.mydomainwebhost....ut/sounds.html
It is fine for local playback that is why i think i need a preloader:

I will attach .FLA file

Im doing this for someone and hes paying me so any help at all in the right direction would be greatly appreciated.

Have a good day

Dave

UIScrollBar & CS3 Player 9 Issues
I am trying to use mutiple instances of the UIScrollBr component in a movie. It works fine if I publish to flash player 8 actionscript 2 but if I publish to flash player 9 only the 1st instance works. The other instances just show a white bar - no scroll. All instances are in different frames Anyone else have this issue or know a solution?

Issues With Simple Mp3 Player
I have some issues with an mps player

theres a text file called total_tracks.txt which states how may tracks there are and that says "totalTracks=3"

the code is pretty short, and I am getting the artist and song namefrom the id3 tags,

I have posted the code below




thanks

Fullsize Issues With FLV Player
Hi all,

Quality forum by the way. I am newish to flash and am currently working on building an FLV player. It is all working but have hit a major stumbling block whilst trying to use the full screen mode. I want the screen to go full size and have my controls sit at the bottom of the page and my video to scale to its true 100% form.

I have forced true myVideo.autoSize to true this makes the video perfect size but controls dont move (and why should they). If anyone has any words of wisdom on this issue it would be great I am having headache after headache. I do have an event on a button that fires the toggleFullScreen function

My code thus far is


Code:
var vidSrc:String = _level0.vidSrc;
myVideo.contentPath = "../flv/1.flv"
myVideo.playButton= Play_btn;
myVideo.pauseButton= freeze_btn;
myVideo.volumeBar = cVolumeBar;
myVideo.seekBar = mySeekBar;
myVideo.stopButton = myStopButton;

Stage.scaleMode="noScale";
Stage.align = "BC";
//Function to toggle between fullscreen and normal size
//the toggle fullscreen button calls this function when pressed
function toggleFullScreen()
{
if(Stage["displayState"]=="normal"){
Stage["displayState"]="fullScreen";
myVideo.autoSize = false;
trace (Stage.height + " - " + Stage.width)
}else{
Stage["displayState"]="normal";
myVideo.autoSize = false
}
}

var resizeListener:Object = new Object();
resizeListener.onResize = function () {

viewFull._x=Stage.width/2;
viewFull._y=Stage.height/2;
}

Stage.addListener(resizeListener);

The MP3 Player Tutorial... Issues
Hi!

Well, I've had some issues with the MP3 player tutorial. To make a long story short, I finally got all the errors to go away, but my songs never played at any stage of the process, and neither of the buttons actually work, i.e., you can't click on them or anything.

I'm using Flash MX 2004 Professional. I wrote the XML code in Dreamweaver MX 2004 and the ActionScript code in Flash. The songs are all in the same directory as everything else. I am baffled. My codes are below. Any help would be greatly appreciated.

Thanks!
Charity

Code:

//Setup sound object
var s:Sound = new Sound();
s.onSoundComplete = playSong;
s.setVolume(75);

// Array of songs
var sa:Array = new Array();

//Currently playing song
var cps:Number = -1;

//Position of music
var pos:Number = Math.round(the_sound.position/the_sound.duration*100);

// Load the songs XML
var xml:XML = new XML();
xml.ignoreWhite = true;
xml.onLoad = function()
{
   var nodes:Array = this.firstChild.childNodes;
   for(var i=0;i<nodes.length;i++)
   {
      sa.push(nodes[i].attributes.url)
   }
}

xml.load("songs.xml");

//Play the MP3 file
function playSong():Void
{
   s = new Sound();
   if(cps ==sa.length - 1)
   {
      cps=0;
      s.loadSound(sa[cps], true);
   }
   else
   {
      s.loadSound(sa[++cps], true);
   }
   playPause.gotoAndStop("pause");
}

//Pauses the music
function pauseIt():Void
{
   pos = s.position;
   s.stop();
}

//Pauses the music
function unPauseIt():Void
{
   s.start(pos/1000);
}

//Music controls

//Play-Pause toggle
playPause.onRollOver = function()
{
   if(this._currentframe == 1) this.gotoAndStop("pauseOver");
   else this.gotoAndStop("playOver");
}

playPause.onRollOut = playPause.onReleaseOutside = function()
{
   if(this._currentframe == 10) this.gotoAndStop("pause");
   else this.gotoAndStop("play");
}

playPause.onRelease = function();
{
   if(this._currentframe == 10)
   {
      this.gotoAndStop("playOver");
      this._parent.pauseIt();
   }
   else
   {
      this.gotoAndStop("pauseOver");
      this._parent.unPauseIt();

//Next Button
next.onRollOver = function()
{
   this.gotoAndStop("nextOver");
}

next.onRollOut = next.onReleaseOutside = function()
{
   this.gotoAndStop("next");
}

next.onRelease = function()
{
   this._parent.playSong();
}

   }

This bit:

Code:

//Position of music
var pos:Number = Math.round(the_sound.position/the_sound.duration*100);

I had to put that = Math.round... etc part because I was getting truckloads of errors without it.

Here is the XML file:

Code:

<?xml version="1.0" encoding="iso-8859-1"?>
<songs>
  <song url="RidingTheBell.mp3"></song>
  <song url="IHadTooMuchToDreamLastNight.mp3"></song>
  <song url="WickedWays.mp3"></song>
  <song url="SoulOfTheSea.mp3"></song>
  <song url="MovinOn.mp3"></song>
  <song url="PissYouOff.mp3"></song>
  <song url="BlameItOnTheMoonlight.mp3"></song>
  <song url="LoveLoveLove.mp3"></song>
  <song url="YouAreSoInLoveWithYourself.mp3"></song>
  <song url="DownToYou.mp3"></song>
  <song url="HushNow.mp3"></song>
</songs>

FLV Player Issues With Buffer
I am trying to finish up my FLV player, but I am having some issues with the buffer. When the first video (default video) loads the buffer buffs for the proper amount of time. Also if the scrubber catches up to the load progress the buffer message will appear and buff.

The issues arise when you click a different video from the playlist after the first video is done buffering. The new video appears to be buffering because it stalls on the first frame but the buffer does not appear. Also if you take the scrubber and slide it all the way up to the load progress the video stalls but the buffer message does not appear. I can not figure it out. The playlist is not an xml driven. It is just a static playlist that uses the ns.play function to play each video.

The buffer code is below. Also there is a link below to test the movie, and also a link for the actual fla file.

I would appreciate any help on the issues. I would really like to post the player on our site as soon as possible.


Code:

// Buffer //
ns.setBufferTime(10);

ns.onStatus = function(info) {
   if(info.code == "NetStream.Buffer.Full") {
      bufferClip._visible = false;
   }
   if(info.code == "NetStream.Buffer.Empty") {
      bufferClip._visible = true;
   }
   if(info.code == "NetStream.Play.Stop") {
      ns.seek(0);
      ns.pause();
      playButton._visible = true;
        pauseButton._visible = false;
      bufferClip._visible = false;
   }
}

theVideo.attachVideo(ns);

ns.play("VideoMedia/2006YetiChristmasParty700px.flv");


Test link
http://www.yeticycles.com/Video/VideoTest.html

FLA File
http://www.yeticycles.com/Video/CustomVidPlayer.zip

MP3 Player Preloader Issues
Hey guys,

I am working on an mp3 player (based on lees) and what I want to do is to have a preloader. I am stuggling with this. Please help, need to finish this thing up. Here is the code for the preloader that I have so far.

Code:

//note* music_mc is the creaed empty clip where the sound object is loaded into.


var l : Number;// bytes loaded
var t : Number;// bytes total
var percent : Number;// precent loaded
var max : Number;// will grab the preloader length
var loader = setInterval(preLoader, 100); // set an interval for the preloader
// function shows the preloader
function preLoader() {
   l = _root.music_mc.getBytesLoaded();
   t = _root.music_mc.getBytesTotal();
   percent = (l/t);
   max = _root.mp3Player.preloader_mc.preloader_bar._width; // grab preloader bar length
   _root.mp3Player.preloader_mc.preloader_bar._width = max*percent; // set the preloader length equivalent to the percent loaded
}

I may be way off, I have bult many preloaders for my flash movies but this is new to me because of the XML and the external audio file. Where are you Todd!

Custom Video Player Issues
Hi there.

Finally managed to find a pretty good tutorial on how to create custom video players in flash mx 2004 pro. It can been seen here:http://www.creativecow.net/show.php?...melow_lee.html. There are many stages to this video tutorial and it is explained clearly with the use of step by step video instructions.

On to my problem...

I have followed steps 1-5 of that tutorial and I have my video plaer working fine.

The problem I have is when I have more than 1 video players within the 1 flash movie.

I have attached my fla and video files for reference.

On the first frame of the movie I have the custom video player movieClip that I have made using the tutorial outlined earlier. I also have a button to advance to the next frame where I have a similar setup.

I have renamed the instance name of the video player movieClip on the second frame also.

As I said before this all works fine. You can play the movie, advance using the scrubber bar and pause the movie. This is fine for both of the video players on frames 1 and 2 of the main movie.

The problem occurs when you have viewed both movies and wish to see them again. By clicking on the button on the second frame takes you back to the the previous frame of the main flash movie. It is here where the problem occurs.

The video player will still play the flv and you are still able to pause it, but the scrubber bar does not work properly. It is very jerky and you cannot drag it properly. Any ideas why?

I read somewhere that you must close the net connection when you have finished using the player and clear the video object. I have tried to implement this in the flash movie supplied, but it makes no difference. Have I done this correctly and have is there anything else I need to do to get the scurbber bar on the video player working properly each time you view it?

I believe that there is not a lot of information out there on creating your own custom video players and most of the code for the scrubber bar part of it is undocumented e.g. the onMetadata handler.

As I said, I have attached my source files, so you should be able to see what I am trying to achieve if I have not explained it clearly enough.

Any help would be greatly appreciated.

Cheers,



James.

Custom Video Player Issues
Hi there.

Finally managed to find a pretty good tutorial on how to create custom video players in flash mx 2004 pro. It can been seen here:http://www.creativecow.net/show.php?...melow_lee.html. There are many stages to this video tutorial and it is explained clearly with the use of step by step video instructions.

On to my problem...

I have followed steps 1-5 of that tutorial and I have my video plaer working fine.

The problem I have is when I have more than 1 video players within the 1 flash movie.

I have attached my fla and video files for reference.

On the first frame of the movie I have the custom video player movieClip that I have made using the tutorial outlined earlier. I also have a button to advance to the next frame where I have a similar setup.

I have renamed the instance name of the video player movieClip on the second frame also.

As I said before this all works fine. You can play the movie, advance using the scrubber bar and pause the movie. This is fine for both of the video players on frames 1 and 2 of the main movie.

The problem occurs when you have viewed both movies and wish to see them again. By clicking on the button on the second frame takes you back to the the previous frame of the main flash movie. It is here where the problem occurs.

The video player will still play the flv and you are still able to pause it, but the scrubber bar does not work properly. It is very jerky and you cannot drag it properly. Any ideas why?

I read somewhere that you must close the net connection when you have finished using the player and clear the video object. I have tried to implement this in the flash movie supplied, but it makes no difference. Have I done this correctly and have is there anything else I need to do to get the scurbber bar on the video player working properly each time you view it?

I believe that there is not a lot of information out there on creating your own custom video players and most of the code for the scrubber bar part of it is undocumented e.g. the onMetadata handler.

As I said, I have attached my source files, so you should be able to see what I am trying to achieve if I have not explained it clearly enough.

Any help would be greatly appreciated.

Cheers,



James.

Flv Audio Sync Issues & Player 9
Greetings, I've been looking for a solution for weeks, and thought I'd give the forums a shot.

I have a client site with 6 progressively downloaded flv clips that play when a button is clicked.
The flv files are encoded with After Effects 6.5, and the swf files are published in Player 8.
The video clips are made with an alpha channel of a guy talking and are about 30 sec to 1 minute long each.
The problem is audio sync issues on certain computers during playback even when the files are completely buffered.

The other problem is that these flv files won't play on computers that have player 9 loaded.

I'm investigating whether there are audio sync issues when encoding flv files from AE 6.5, but still really
confused about the player 9 issue. I was wondering if there are updates to 9 I can recommend to my client
or if adobe knows of any bugs that are currently being looked into.
Thanks,
Kevin

Turntable Audio Player Has Issues {please Help Me}
I wanted to create a simple audio player for my new site (no volume, no rewind/fast forward and no pause). The idea was to have a tiny turntable that grows when you mouse over it, allowing you to swap out the records.

However, I’m afraid that I have structured the entire thing wrong from the ground up and need outside intervention before I go any further down this rabbit hole.

Currently there is a parent “turntable” movie which ends up being loaded within the site (that part works fine). This movie controls the on (rollover) sizing up and down of the turntable itself. A child “records” movie plays the songs, swings the arm in and out and swaps out the records as you click on them.

Quite naturally, one of this players issues is that every keyframe in the parent “turntable” movie, recalls the “records” movie, causing the songs to start over as the user rolls in and out of the player. It seems like I could avoid this by taking the load song action off of the frame, putting it on the on (release) of the appropriate record and loading it within the parent (recommended action script for this would be greatly appreciated). However, that still wouldn’t solve my starts over when you mouse in or out issue. You see, I want the little turntable (moused out) to be playing a record if the music is playing and empty if the music is stopped which you’ll notice isn’t currently working. In theory, I could do a whole if playing on mouseover go to frame where record is spinning and if stopped go to recordless frame but this gets pretty complicated fast and I’m no actionscript expert. My question is, am I on the right path? What is the best way for me to do this? Do I need to restructure my movie layout completely? Would anyone PLEASE be willing to help me with specific actionscript direction; I have an entire site to finish and this is really holding up my progress.

Issues With Text Scrolling And The New Player 6
I have a text scrolling movie made in f5 that was working very well. This movie is loaded into a main movie. Everything works with the FP5 but when I view the page with FP6 the text is not loaded. Anybody knows why?

Action Script Video Player Issues
Here's the deal, I have a flash site that I need to embed, using brightcove to host the videos as well as create the player. The place where i want to display the movie player is 3 pages or movies in from the "scene 1." I follow the tutorial exactly as it's discribed and it doens't work at all where I want it to display in the site, nothing of the movie player displays. But when I create a new .swf it works just fine. Can someone see what I'm doing wrong or need to do differently.


Code:
/****** Start of Brightcove Player ******/

/*
* feel free to edit these configurations
* to modify the player experience
*/
var config = new Object();
config["videoId"] = null; //the default video loaded into the player
config["videoRef"] = null; //the default video loaded into the player by ref id specified in console
config["lineupId"] = null; //the default lineup loaded into the player
config["playerTag"] = null; //player tag used for identifying this page in brightcove reporting
config["autoStart"] = false; //tells the player to start playing video on load

/*
* if your player is resizable, you may pass new dimensions here;
* these dimensions will be ignored in locked-size templates
*/
config["width"] = 486;
config["height"] = 412;

/*
* onLoadInit is called when the player loads;
* at that point, the onTemplateLoaded handler can be assigned a function;
* when onTemplateLoaded is fired, any of the API functions become available;
* the onTemplateLoadStart and onTemplateLoadProgress handlers can be used
* to track the load progress of the player template
*/
var movie:MovieClip = this;
var bcln:Object = new Object();
bcln.onLoadProgress = function(player:MovieClip, bytesLoaded:Number, bytesTotal:Number):Void {
// place preload feedback here for shell movie
};

/* It is not recommended to modify the code below here */
config["playerId"] = 507881836;
config["flashId"] = "flashObj"; // determines under which id the SWF will be embedded in the HTML
System.security.allowDomain("http://admin.brightcove.com");
createPlayer(config);

function createPlayer(config) {
var servicesURL:String = "http://services.brightcove.com/services";
var cdnURL:String = " http://admin.brightcove.com";

var configItems = "";
for (var i in config) {
if (i == "flashId" || i == "width" || i == "height") continue;
configItems += "&" + i + "=" + escape(config[i]);
}

var swfFile:String = "federated_f8.swf";
var file:String = cdnURL + "/viewer/" + swfFile + "?" +
"flashId="+escape(config["flashId"])+
"&cdnURL="+escape(cdnURL)+
"&servicesURL="+escape(servicesURL)+
"&playerWidth="+escape(config["width"])+
"&playerHeight="+escape(config["height"])+
configItems+
"&buildNumber=" + 7;

var depth:Number = this.getNextHighestDepth();
var player:MovieClip = createEmptyMovieClip("bcPlayer"+depth, depth);
if (bcPlayer == null) bcPlayer = player;
//use mcl to create a preloader for the Brightcove player
var mcl:MovieClipLoader = new MovieClipLoader();
mcl.addListener(bcln);
mcl.loadClip(file, player);
}
/****** End of Brightcove Player ******/
And the Error I get:


Code:
**Error** Symbol=p4, layer=Layer 13, frame=1:Line 33: '{' expected
bcln.onLoadInit = function(player:MyPlayer):Void{

**Error** Symbol=p4, layer=Layer 13, frame=1:Line 39: Unexpected '}' encountered
};

Total ActionScript Errors: 2 Reported Errors: 2

Video Player Problemo (aspect Ratio Issues)
I've got my video controls working now (no thanks to the zero replies to my last cry for help, but i'm not bitter ) , but i've run into a new perplexing issue:

(Using Flash MX Pro, Mac OSX)
I've got a movie that loads one of 3 external swf files that contain embedded video. The loader mov is set to 300 x 220, as are the video movies being loaded. But when they get loaded the video's size/aspect ratio are not the same as I told them to be. I've even imported the vid movies into the loader's library to check them and they come in as 267 x 216. Does anybody know what's going on?

Flash Player Installed, But Every Site Flash Player Required For Asks To Install Not Working At All
Hi all, wondering if someone would be kind enough to help me, PLEASE lol
Flash player asks to be installed everytime I go onto any site that requires it, I have installed it, it advises it has been sucessfully installed but when I go back to the page it asks again! Have had this problem for ages and have tried eveything I can think of! at witts end and customer service wont help as its a free product.
Any help would be greatfully appreciated.
Sarah ;-)

Flash Player 6 Code Doesn't Work In Flash Player 7 Or Grater
Hi flashers,

I think some of you know this page http://www.levitated.net
There you can download open source scripts that are quite cool. When I publish on of those codes with the flash player 7 or grater, they doesn't work anymore. Does anyone know why?

thanks
-Tukinu

Firefox Recognizes Quicktime As Flash Player Instead Of Flash As Flash Player
I don't know why when I go to websites and all those old Flash sites don't work anymore, but I get the "Quicktime Question Mark" logo. I've tried reinstalling Flash Player so many times but the quicktime logo keeps coming up. I've tried this both with Firefox and Safari and it just doesn't work.

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