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




FLVPlayback Strangeness



I'm using FLVPlayback to play FLV videos. It seems that if I leave the content path unassigned in the component inspector and try to merely assign the content path in ActionScript in "onClipEvent(load)", that the flv doesn't play, even though it shows the content path in the variables in the debugger. But if I assign an flv in the component inspector, that I am then able to assign content paths sucessfully in ActionScript when doing "onClipEvent(load)".But after I got it to work when I do it in the "onClipEvent (load)" with this workaround I had to get more real world. My application must read in the name of the FLV file from an external file. I'm trying to excute the same code in "onClipEvent (enterFrame)" so that I can delay starting it playing till the file name is read. It all seems to work fine except where I choose the contentPath. I have watched the data so I know that it is indeed reading the flv file name into the content path, but it doesn't seem to play it with the play() command. In testing I found that specifying the content path in the "onClipEvent (load)" and doing the play() command in the "onClipEvent (enterFrame)" works. And in testing I found that when I specify the content path in the "onClipEvent (load)" and then specifying a different content path again in the "onClipEvent (enterFrame)" and then the play() command in the "onClipEvent (enterFrame)" it plays the file specified in the "onClipEvent(load)".I'm puzzled because it also instantiates a _level0.FLVPlayer.0 as well as the _level0FLVPlayer and the file that it is playing seems to be listed as the content path for the _level0.FLVPlayer.0Does anyone have any ideas?



Adobe > ActionScript 1 and 2
Posted on: 03/12/2007 08:44:10 AM


View Complete Forum Thread with Replies

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

Strangeness
i had to reinstall flash for some reason. now it works. very strange!

XML Strangeness
OK, before i tell you my question i want to say that sctionscripting has provided me with a way to waste enourmous amounts of time with no positive benefit at all, i can play counterstrike for an hour and enjoy myself, and waste time, but this programming s__t is starting to piss me off.

Right, im creating an XML object and trying to load a external XML file created in dreamweaver into the object. I one movie which i created from a tutorial in computer arts mag, it works fine, I can access the nodes and reference them. In another file which i am experimenting on, i load the same external XML file and the when i use a trace function to confirm the data has been loaded i get "undefined", but the onLoad function attached to the object executes.

The code is simple and goes like this:

var myXML:XML=new XML();
myXML.ignoreWhite=true;
myXML.load(tracklist.xml);
var fChild:XMLNode=myXML.firstChild;
var sChild:XMLNode=fChild.firstChild;
trace(sChild.attributes.name);

this returns undefined and ive tried to trace other nodes and attributes from the file and i get no result.

The XML file is very simple

<tracks>
<track name="track 1" path="lorem ipsum"/>
<track name="track 2" path="lorem ipsum"/>
</tracks>

Now ive had alot of trouble with other things in actionscript and its starting to drive me nuts!
Can someone help me? The amount of time im wasting when i want to do something that appears simple is ridiculous. Ive got about six books about actionscripting and i need to keep on refering to them to find a solution and all the reading is a waste of time.

Array Strangeness
Hi,
not really a problem at the moment, though it could end up being..

i am writing a flash app. which has a fair number of variables and arrays on the go, but nowhere near enough to cause problems. Except, flash seems to have imposed a limit on the number of arrays i can initialise in one frames actions. Most peculiar.

i had something like 12 array initilisations such as
temparray=new Array();

and the swf started misbehaving. however, upon removing one of the declarations and placing it in the next frame, no problems at all.

consequently i have shifted all those that can be shifted, cos im gonna have quite a few more that need to be in the first frame. However, at some point it is more than likely the same thing will happen again..

anybody got any ideas what's causing this??

bob

http://www.sensoriumdesign.net/

Keyframe Strangeness
I don't believe this is relevant, but just to make sure:
The FLA was originally created in Flash5 and updated to MX to replace an outdated preloader. When the preloader was updated, the LogoAnimation symbol it contained was NOT replaced. So far so good.

Within that LogoAnimation symbol, there are a number of movieclip symbols which playout until they hit an internal stop on their individual last frames, then tweenfade. Each tween obviously begins on a keyframe, and when the symbols hit that keyframe, they're playing again. Is there a way to keep them from restarting? And is this a new wrinkle in MX or some kind of anomally caused by the preloader or updating?

Scene Strangeness Help
Hi,
I have a flash movie with 3 scenes in it with frame labels set up in each. I have a button in each scene for goto next scene and go back to previous scene at the particular frame labels.
But, when in the 3rd scene the back button automatically goes back to the 1st scene for some reason. The actionscript code below is what is attached to this button, so I'm not sure why it would go back to the 1st scene?
Also, the button in scene 2 does not goto the frame label in scene 1, but back to the very beginning of scene 1. The code is the same as below for this button except the numbers are changed to 1 instead of 2.

on (release) {
gotoAndPlay("Scene 2", "fadein2");
}

To make things stranger, this only happens in a browser. It works fine when previewing the movie from Flash on my hard drive.

Does anyone have an idea why it might be happening? I am exporting from Flash MX 2004 to Flash 5 format. I am on Mac OS X (10.3). It happens in Safari, IE, and Mozilla Firebird.

I have tried re-installing the flash plugin for my browsers, but it doesn't help.
Any ideas?
Thanks.

Strangeness With Timeline
I am working on a creating a dropdown menu in flash. There is some weird stuff going on that I can't figure out. It seems that my "books" layer works fine, The tween is a movie clip and then that turns into a button. I want to do the same for all of the other tweens, which are movie clips. But as you can see in the JPEG I've posted a link to below, The "posters" layer doesn't have a separation between the movie clip and where I want to create the button (after the tween ends). I've tried recreating the tween, but it won't let me break that apart. Notice on the books layer that there is a dividing line between where the tween ends and the button (in gray). I can't for the life of me figure out how to create that dividing line so that I can have a separation between the movie clip and the button. Also because I can't do this, I believe it is effecting the way the dropdown menu functions for some reason...which is another thing I can't figure out why that would happen.

Anyway maybe one of you kind souls has a suggestion for me?


Here's the JPEG
http://www.realgone.org/weegs/example.jpg

If you need me to post my .fla file I can do that as well

Thanks in advance,
greg

Ultimate Strangeness
ive got a strange problem.

there are 2 moveiclips, a spaceship, which stays in the middle of the screen, and a map, which moves about, so itsa form of sidescrolling game.
the movement is done using xeef's coding he sent me a while ago, which is below.
i have a shooting script too, but my intresting problem is, how do i make the bullets spawn INSIDE the map movieclip, so as to simulate realistic physics on them.
in other words, at the moment, bullets spawn, outside the map, and move regardless of anything else at a steady speed towards the edge of the screen, which isnt what they would realisticially do, what i need them to do, is when they spawn, spawn inside the map moveiclip, thus inheriting its movement.
there are likely to be a LOT of bullets flying around, i suppose it needs to be fairly non-processor-draining

my shooting script:


Code:
depth = 0;
speed = 5;
nose = 7;
blast = function () {
angle = _root.ship._rotation;
angle = angle*Math.PI/180;
++depth;
name = "pea"+depth;
this.attachMovie("pea", name, depth);
this[name]._x = ship._x+nose*Math.cos(angle);
this[name]._y = ship._y+nose*Math.sin(angle);
this[name].xmov = 0
this[name].ymov = 0
_root.es.sendMessage("public", "bang");
this[name].onEnterFrame = function() {
this._x += this.xmov;
this._y += this.ymov;
if (this._y>=660) {
this.removeMovieClip();
}
if (this._y<=0) {
this.removeMovieClip();
}
if (this._x<=0) {
this.removeMovieClip();
}
if (this._x>=800) {
this.removeMovieClip();
}
};
};
and the movement script


Code:

onClipEvent (load) {
TS = 0;
TV = 0;
MS = 0;
MV = 0;
}
onClipEvent (enterFrame) {
count++;
mcount++;
if (Key.isDown(88) && count>=delay && energy>=energycost) {
_parent.blast();
count = 0;
energy -= energycost;
}
if (Key.isDown(37)) {
this.TV -= rotspeed;
_parent.pausevar = 100;
} else {
_parent.pausevar = 10000;
_parent.moveupdate();
}
if (Key.isDown(39)) {
this.TV += rotspeed;
_parent.pausevar = 100;
if (_parent.stuff == "0") {
unloadMovie("_parent.map.base");
}
} else {
_parent.pausevar = 10000;
_parent.moveupdate();
}
if (Key.isDown(38)) {
this.TS += speed;
_parent.pausevar = 100;
} else {
_parent.pausevar = 10000;
_parent.moveupdate();
}
this._rotation = this.TV;
TX = Math.cos(this.TV*Math.PI/180);
TY = Math.sin(this.TV*Math.PI/180);
MX = Math.cos(this.MV*Math.PI/180);
MY = Math.sin(this.MV*Math.PI/180);
ResultX = this.TS*TX+this.MS*MX;
ResultY = this.TS*TY+this.MS*MY;
Result = Math.sqrt(ResultX*ResultX+ResultY*ResultY);
ResultA = Math.atan2(ResultY, ResultX)*180/Math.PI;
this.MS = Result;
this.MV = ResultA;
if (this.MS<-maxspeed) {
this.MS = -maxspeed;
}
if (this.MS>maxspeed) {
this.MS = maxspeed;
}
this.TS += -this.TS/5;
_parent.map._x -= this.MS*MX;
_parent.map._y -= this.MS*MY;
_parent.stars._x -= this.MS*MX/7;
_parent.stars._y -= this.MS*MY/7;
dx = this._parent.ship._x-this._parent.spaceShip._x;
dy = this._parent.ship._y-this._parent.spaceShip._y;
d = Math.sqrt(Math.pow(dx, 2)+Math.pow(dy, 2));
if (d<this._parent.ship.r+this._parent.spaceShip.r) {
this._parent.ship.MV = 0;
}

}
help would be nice, and ill probbaly stick you on the credits, alonmg with xeef, of course, cos im sick and tired oftrying to solve this, ive been at it for 3 days -.-

NetStatusEvent Strangeness
Dear Flash Experts,

I'm running an actionscript 3 application which I made using Flex Builder. I have the following method:

public static function logNetStatusEvent(event : NetStatusEvent) : void {
var retVal : String = "NetStatusEvent - ";
var info : Object = event.info;
for (var p : String in info)
retVal += (p + " ");
}

Seems pretty harmless, right? When I call NetConnection#connect, this method gets hit twice. the first time the event object is perfectly fine. When I inspect the variable it looks like a NetStatusEvent object. The second time the method is run, the event object has no properties whatsoever. When I am running in debug mode, the second line of this method will crash the browser. If I am running in the Flash Player, the second line of this method (ostensibly) will crash the Flash player. I actually have a picture of the variables inspection section of my Eclipse editor in case nobody believes me about the NetStatusEvent having no properties.

Has anyone ever encountered this behavior? It is upsetting because I would like to log NetStatusEvents.

Thanks very much,
Adam

SwapDepths() Strangeness
Hello,

I’ve been trying to get swap depths working for a long time and it seems to be giving me random results.

My problem is that I have a bunch of clips on the stage that are added randomly at random y-positions. The higher y positions must be a higher depth then the ones at a lower y position. Basically, bottom clips, overlap clips above it.

The first way I tried was that every time a new clip is added (they aren’t added all at once, but via user interaction) was to store all the chips into an array and sort them by y-position, so the lowest value y (the highest clip on the stage) would appear first. Then I go through the whole array again and call “clip.swapDepths(parentClip.getNextHighestDepth())”.

My reasoning was that the first clip would get set to the nextHighestDepth overlapping all clips. Then the next clip in the array would get set to the nextHighestDepth, overlapping the previous clip before, and so forth until the last clip in the array would get set to nextHighestDepth, overlapping all of the clips.

The result of that ended up to be very odd looking like:
Index 0 – depth 4
Index 1 – depth 1
Index 2 – depth 0
Index 3 – depth 2
Index 4 – depth 5

Notice that it also skips depth ‘3’.

I then discovered that I can set depths directly by passing in a number And if a clip existed in that depth value, it would just get swapped instead of replaced. So I then tried going (after sorting): clip.swapDepths(counter); -where counter is the array index it is in:

for(var counter:Number = 0; counter < array.length; counter++){
array[counter].swapDepths(counter);
}

But that resulted in about the same result as the first method.

Just for fun, I decided to go (in my above loop) “array[counter].swapDepths(counter * 2);”

But when I traced out the depth, I got depths like 3,5,9,11 –not even numbers.
This leads me to conclude there is something not right with my expectation of swapDepths().
Any ideas on what's going on with swapDepths() or a better way to solve the problem?

Strangeness With Updating Variables
i posted a question yesterday about vars in an array - and discovered that the problem i was having was not with the array but with the variable.

So, does anyone know why the following is the case - or a way around it.

lets say that you have a dynamic text field set to var1 that extends over two frames.

in frame 1 you have the following:

var2 = "whatever"
var1 = var2


you will get "whatever" dispalyed in frame 1. obviously.

now, in frame 2 you have the following:

var2 = "something else"

theoretically you should have "something else" displayed in frame 2 - but you don't - you have "whatever" - unless you add:

var1 = var2


isn't this redundant??? now, in this simple example you could eliminate the one var refering to another - but there's situations as in arrays (like i posted last night) where you need a variable to point to another variable or to something else.

does anyone have an answer to this??

Targeting Strangeness W/ Xml-populated MCs
On level 0 I have 11 galleries (named "galleryOne" through "galleryEleven"). The galleries are 11 instances of a MC that has on its timeline 3 MCs ("one", "two" and "three") that get populated with jpegs from an xml file. Then there are timeline alpha tweens with those 3 jpegs.

Before I populate the 3 MCs I can get the bytes loaded fine like this, using a button on level 1 to find how big MC "three" is in "galleryEleven"

bytsLoadedField = _level0.galleryEleven.three.getBytesLoaded();

The problem: after I populate the field with images, this no longer works -- the field is just blank, like it's not even finding my target MC "three" any more.

Any ideas on why this is? What I'm trying to do is create some kind of preloader, so that none of the timeline tweening starts before all the images are loaded.

An example of what I'm talking about is below. If you click "check bytes loaded" while just the placeholders are there you'll see 12, but after the jpegs get imported it's just blank

http://www.sonic.net/~jkanuch/bw/wedding/weddings.html .

Targeeting Strangeness W/ Jpegs From Xml
I have a set-up w/ 2 levels. On level 0 I have 11 galleries (named "galleryOne" through "galleryEleven"). The galleries are 11 instances of a MC that has on its timeline 3 MCs ("one", "two" and "three") that get populated with jpegs from an xml file. Then there are timeline alpha tweens with those 3 jpegs.

Before I populate the 3 MCs I can get the bytes loaded fine like this, using a button on level 1 to find how big MC "three" is in "galleryEleven"

bytsLoadedField = _level0.galleryEleven.three.getBytesLoaded();

The problem: after I populate the field with images, this no longer works -- the field is just blank, like it's not even finding my target MC "three" any more.

Any ideas on why this is?

An example of what I'm talking about is below. If you click "check bytes loaded" while just the placeholders are there you'll see 12, but after the jpegs get imported it's just blank

http://www.sonic.net/~jkanuch/bw/wedding/weddings.html .

A second thing I want to do is check whether *all* the images have loaded before doing anything.... but that's complicated by the fact that they're loaded from outside.

Thanks for any help.

Flash Projector Strangeness
Hi, I'm wondering if anyone has experienced this problem and has any idea what might be causing it. I am developing an interactive cd projector file. I have several buttons in it that go to different scenes as well as a button to launch the company's web site and one to quit the projector.
The buttons that go to different scenes are set up like so:
}
on (release) {
gotoAndPlay("catalog","1");

}

where catalog is the name of a scene. Now when I previewed the projector file yesterday everything worked as planned. The buttons all went to their corresponding scenes when clicked. Today, after adding some content to several of the sections, and NOT touching the actionscript for the buttons, when I previewed the projector the buttons merely go to the next scene in the movie no matter which one is clicked, and not the proper scene that they are set up to go to. However, the web site and quit buttons still function properly. Why would this happen and does anyone know how I can fix it?
Thanks,
Tim

[F8] Decimal To Clock, Strangeness
Hello,

I've got a nifty function that takes a decimal value and returns a time (e.g., 4.75 -> 4:45 AM, 20.5 -> 10:30 PM, 11.0 -> 11:00 AM, etc.). Everything works fine if I hard code the value I pass in. Trouble is, when I try automating it with this little bit of code it returns undefined whenever I pass a value with a .5 on the end. It should return 7.5 as 7:30 AM, etc, but it doesn't.

Help!

Thanks too.


Code:
on (click) {

if(_root.interval.value==30){
for(var i=0.00; i<=24.00; i=i+0.5){
j=i;
if(j%1==0){
j=j+".0";
}
j=getClock(j);
trace(j);
}
}

function getClock(decimal:String):String{
var decimal:String = decimal;
var a:Array = decimal.split(".");
trace("decimal.split: "+decimal.split("."));
trace("a: "+a);
if(a[0]==12){
if(a[1]==5 or a[1]==0){
a[1]=Math.round(Number(a[1]*.6))+"0 PM";
return a.join(":");
}
else{
a[1]=Math.round(Number(a[1]*0.6))+" PM";
return a.join(":");
}
}
else if(a[0]>12){
a[0]=-12+2*(a[0]/2);
if(a[1]==5 or a[1]==0){
a[1]=Math.round(Number(a[1]*.6))+"0 PM";
return a.join(":");
}
else{
a[1]=Math.round(Number(a[1]*0.6))+" PM";
return a.join(":");
}
}
else if(a[0]<=11){
if(a[1]==5 or a[1]==0){
a[1]=Math.round(Number(a[1]*.6))+"0 AM";
return a.join(":");
}
else{
a[1]=Math.round(Number(a[1]*0.6))+" AM";
return a.join(":");
}
}
}
}

Bitmapdata And FillRect Strangeness
Hi everyone,

I've got a problem with trying to draw an opaque rectangle on some BitmapData; for some reason the rectangle always appears fully opaque, no matter what I set the alpha value to. Here's my code:


Code:
private var canvas:BitmapData = new BitmapData( STAGE_WIDTH, STAGE_HEIGHT, false, 0 );

canvas.fillRect( new Rectangle( 0, 0, STAGE_WIDTH, STAGE_HEIGHT ), 0xFFFFFFFF );

canvas.fillRect( new Rectangle( 0, 0, STAGE_WIDTH >> 2, STAGE_HEIGHT >> 2 ), 0x77FF0000 );
In this case I would expect to see a red rectangle in the top-left corner of the screen drawn with 50% opacity so that it appears to be pink, but I just get a red rectangle drawn at 100% opacity. Any ideas where I'm going wrong?

Cheers,

Mike.

Strangeness With CS3 Flash Debugger
Hello friends,

I'm relatively new to Flash, but since I bought the new CS3 this summer I've made a concerted effort to learn how to use it in my projects. One thing I've never been able to understand is the debugger -- it just seems inconsistent? If I set a breakpoint and Debug the SWF *sometimes* the debugger will correctly stop on the appropriate line of code. From there, I can load the panel which shows the active variables, state, etc. More often than not, when debugging with breakpoints (or even a SINGLE breakpoint) the debugger will stop when it encounters the breakpoint, however the little arrow that shows where the execution has stopped is not there -- its still just a little red circle indicating a breakpoint. I can use the step in/step out commands, but I see no feedback as to where the execution is taking place. Usually I end up just issuing a "Continue" command, but that defeats the whole point of a debugger. I'm quite familiar with debugging with Visual Studios, Borland products and GDB on Linux. I feel like there is a deficiency (or something I'm not aware of) with the CS3 Flash debugger. Has anyone else experienced this bizaare behavior?

Your comments are appreciated.

Thanks! :)

PS: Initially I thought this problem only existed when I typed AS3 in the frames of my SWF (because it seemd to work when I wrote a separate .as class and linked it to the SWF as the document class, however now even that assumption is failing me.





























Edited: 01/09/2008 at 10:10:28 PM by MikeSDCA

Loadvars Domain Strangeness
Hya Guys,
Ive successfully been calling loadvars from a php fiel into flash on my domain.

This works fine when you acces my site with a www infront of the domian....if u simple use http:// before the domain witth no www the vars just dont load....has anyone had this problem?

Any suggested work arounds?!

Loadvars Domain Strangeness
Hya Guys,
Ive successfully been calling loadvars from a php fiel into flash on my domain.

This works fine when you acces my site with a www infront of the domian....if u simple use http:// before the domain witth no www the vars just dont load....has anyone had this problem?

Any suggested work arounds?!

XML Looping / Variable Strangeness
Hi all - been rather dumbfounded by the following behaviour in F6MX when looping through XML.  My loop is similar to this
CODEdo {
    //trace ("nodename = "+itemNode.nodeName);
    if (itemNode.nodeName == "item") {
        itemType = itemX = itemY= itemTextID = itemImageID = itemURL = "";
        itemNum ++;
        itemType = Number(itemNode.attributes.type);
        itemX = Number(itemNode.attributes.x);
        itemY = Number(itemNode.attributes.y);
        //if (itemNode.attributes.textid != null) { itemTextID = Number(itemNode.attributes.textid); } else { itemTextID = ""; }
        itemTextID = Number(itemNode.attributes.textid);
        //if (itemNode.attributes.imageid != null) { itemImageID = Number(itemNode.attributes.imageid); } else { itemImageID = ""; }
        itemImageID = Number(itemNode.attributes.imageid);
        //if (itemNode.attributes.url != null) { itemURL = itemNode.attributes.url; } else { itemURL = ""; }
        itemURL = itemNode.attributes.url;
        //trace ("type: "+itemType+", x: "+itemX+", y: "+itemY+", textid: "+itemTextID+", imageid: "+itemImageID);
        switch(itemType){
            case 1: // Infopoint
                var thisItem_mc = imgItemsMC.attachMovie("info_mc", "Item_mc"+itemNum,itemNum);
                thisItem_mc._xscale = thisItem_mc._yscale = iconScale;
                thisItem_mc._alpha = iconAlpha;
                thisItem_mc._x = itemX;
                thisItem_mc._y = itemY;
                trace ("x : "+itemX+", y: "+itemY+", textid: "+itemTextID+", imageid: "+itemImageID);
                if (bInfoBox) {
                    thisItem_mc.onRollOver = thisItem_mc.onDragOver = function(){
                        SetText(infoMC.info_text, Text_arr[itemTextID], infoTF);
                    }
                    thisItem_mc.onRollOut = thisItem_mc.onDragOut = function(){
                        SetText(infoMC.info_text, imageNode.firstChild.firstChild, infoTF);
                    }
                }
            break;

Loading Movie Strangeness
Hey all,

I'm having a really bizarre problem. I'm working on a project where a number of swfs are all published into a directory, and we create a shell which loads them into its viewer.

The swfs exist, but the loading is incredibly erratic. There are three types of swfs (articles, images, and interactive modules). If one type is loading, only that type will load properlythe others will simply hang.

Im not doing anything incredibly complex When the content clip initializes, I call:

this.createEmptyMovieClip("mClipHolder",this.getNextHighestDepth());

mClipHolder.unloadMovie(); and then:


ActionScript Code:
public function LoadMedia(inMedia:String, inXOffSet:Number):Void
{
mXOffSet = inXOffSet;
var theClipLoader:MovieClipLoader;
theClipLoader = new MovieClipLoader();
       
var theClipListener = new Object();
theClipLoader.addListener(theClipListener);
theClipListener.onLoadComplete = Delegate.create(this, TriggerPositionMedia)
theClipLoader.loadClip(inMedia, mClipHolder);
       
theClipListener.onLoadError = function(target_mc:MovieClip, errorCode:String, httpStatus:Number) {
 
theClipListener.onLoadStart = function(target_mc:MovieClip) {
 
theClipListener.onLoadProgress = function(target:MovieClip, bytesLoaded:Number, bytesTotal:Number) {
 
    }


Then, the shell triggers each load by first calling The file always seems to loadlogging the loadProgress confirms that data is being loaded, and its being completed.

So, is it a bad idea to load all of these swfs into a single holder? Somehow theyre interfering with one another, and Im not exactly sure how or why. Can someone offer me a better suggestion how to handle this?

Thanks in advance

Accessibility Yellow Box Higlight Strangeness
I have a particular small ui control (custom which under certain browser acts differently)
With tabbing one gets a yellow box surrounding accessible buttons in flash. But im getting this plus a very faint yellow box around other buttons, im really lost as to how I can get into the yellow box code, probably cannot. So im trying to understand what might be a workaround. But im guessing no one has ever seen this before.

Flash Compression Mp3 Vs Wave Strangeness
A follow up on music files. "Old" said to put settings at what i like. Okay got that. But I'm still curious about what else affects file size other than settings.

Here's why. This just happened...

I received a music mp3 at 3.97 MBs. I put it into its own flash file and published - now it stands at 3.74 mbs.

But if I go into soundforge, import original mp3, save it as a WAV file, then back in flash, import that now huge WAV file and publish it... guess what i get: a new file size of 1.89 Mbs.

huge difference.

why did this happen? Why did flash seem to compress a wav file better than an mp3? Is this "normal".

Because if what i have discovered is true then i need to go adjust all 60 some odd songs using this work around method. please advise
thanks
Hoss



AS3 - Transparent Bitmap From MovieClip Strangeness
I'm going crazy over here..

I have a MovieClip on the stage that has a bunch of static text in it. I'm creating a BitmapData object, drawing the MovieClip, and creating a Bitmap display object. The resulting Bitmap never has a transparent background, regardless of how I set it up.

Here's my code:


Code:
/// "page" is my MovieClip instance on the stage
var tmp:BitmapData = new BitmapData(page.width, page.height, true);
tmp.draw(page);
var bmp:Bitmap = new Bitmap(tmp);
Does anyone have any clue what's going wrong?


Thanks!

FLVPlayback Changing Another FLVPlayback
Hi,

I have a movieclip with an FLVPlayback component and a second movieclip on it. In that second movie clip, there's another FLVPlayback component. I was wondering if there was any actionscript I could use in the second movieclip to change the contentPath of the first FLVPlayback component upon the completion of the second FLVPlayback component.

This is the code I tried, but didn't work:

var listenerObject:Object = new Object();
listenerObject.complete = function(eventObject:Object):Void {
this._parent.flvp1.contentPath = "vid2.flv";
}
flvp2.addEventListener("complete", listenerObject);

(flvp1 is the first FLVPlayback component, flvp2 is the second, and vid2.flv is the file to be played in flvp1)

Also, I know that the listenerObject function is working because I tested a trace() command earlier, and it worked.

If anyone could point me in the right direction, I would appreciate it.

Thanks,
Brad

[MX] Strangeness When "onLoad" Is Applied To Frame Code...
Okay, say I've got this bit of frame code:

Code:
object.onLoad = function() {
trace ("It works!")
};
For some reason, the function doesn't work. I'm not sure why.

But if I add something tiny and insignificant to the object's code, the above code starts working. For example, even something like this:

Code:
//
What's that all about? Why do "onLoad" functions within the frame code only work if I've added something to the object's code?

From where I'm standing there doesn't seem to be any logic in this.

[CS3] FLVplayback
My FLVplayback is different to the one in the adobe tutorial. Its got an ugly blue playbar! ... I have applied the latest updates i.e v.9.0.3 and its still not the same. Anyone know why?

[F8] Help On FLVPlayback
Hi all,

I have FLVPlayback component and contentPath is being taken from flashVar.
The player is set autoPaly false and until user click on play button the player embedded area is empty.
1) So i need how to cover that?
2) Is there a way to get a frame of video and display that?
3) What we have tried was to use anther player on top original player with out skin and assigning same content path to that and using seekPercent() to move it forward.

But the problem is the top player doesn't call seekPercent() until it buffer full video.

Once it buffered the tactic looks fine.

This is what we were trying without clear idea about FLVPlayback on flash,So this might be stupid.

So any practical idea is appriciated.

Thx!

Using FLVPlayback With FMS - How?
Hi,

I'm new to the FLVPlayback and somewhat of a newbie to Flash in general, but luckily I have managed to stream video from FMS using the MediaPlayback component. Unfortunately, I'm not having too much luck with FLVPlayback.

Macromedia says in order to use this component with FMS, contentPath must point to a SMIL file. Is this true? Should FLVPlayback work out-of-the-box without writing any Action Script (like MediaPlayback does)? If so, I would greatly appreciate some help with some very basic code to get this component to work.

Thanks.

Flvplayback A No-go?
I'm a newbie so be gentle, but I have an flvplayback 101 question. I'm using the video wizard to import my movie into an existing project. However, once I drag the flvplayback component to the stage and execute, neither the video nor the skin appear no matter how or where they are placed. Things work if I drag into an empty flash file. How do I begin to figure out what's wrong? Thank you!

FLVPlayback
Hello,

I am creating a flash movie using the FLVPlayback component that uses a skin. After exporting, the skin is visible in the swf playback but once imported into DW CS3 and tested in IE7 the skin is not visible. The swf skin file is included.

I never encountered this issue in Flash 8. The only difference I see in parameters is second from the bottom version_1_0_1.

Does anyone know how to get the skin visible in the browser?

Thanks.

Flvplayback And Xml
i am trying to play a " flv " file in the flvplayback component via an xml file...please help... i have searched high and low for tutorial's... please take a look and let me know what i need to do to fix it...

here is the action script in frame 1

import mx.video.*;
this.attachMovie("FLVPlayback", "my_FLVPlybk", 10, {_width:320,_height:240,_x:100,_y:100});
my_FLVPlybk.skin = "file:///C:/Program Files/Macromedia/Flash 8/en/Configuration/Skins/SteelExternalAll.swf"
my_FLVPlybk.contentPath = "rtmp://Documents and Settings/Angie/My Documents/video/videos.xml";

and here is the xml file it is supposed to pull the flv from

<smil>
<head>
<layout>
<root-layout width="320" height="240" />
</layout>
</head>
<body>
<video src="mikegundy.flv" />
</body>
</smil>

i dragged the component and placed it on the stage and then editted the " as "... right now i get a black screen with the player control's searching... finally no error's... it just isnt finding the file...

thanks
trey

FLVPlayBack
Hi there,
I am trying to control video in fullScreenTakeOver mode and having some issues. Robert, you've replied to several video questions and I hope you know this one too... :)

I have a simple FLVPlayBack component on the stage with its skin that has a fullscreen button, simple enough...
When it goes in fullscreen I want to be able to control the size of the video and a black background... I've tried this with several properties with no success. The closest I get, is with "player.scaleMode = VideoScaleMode.NO_SCALE;". This centers the video in its original size with black background... I want to be able to custom its size ... how would I do this? I am trying to avoid fullScreenTakeOver= false and having to remove all the elements on the stage except for the video, then relocating/resize it...

I hope it makes sense, thank-you

How To Use More Than One FLVPlayback?
I am creating a website in Flash. I have a page with 3 buttons on it to allow people to see 3 videos i have created. Each button moves the flash file to a separate frame. On each frame is a new FLVPlayback instance. Each one refers to a different externally referenced .flv file.

Only the first FLVPlayback video will play. If i go to the second frame, the FLVPlayback video will not play.

If i delete the first FLVPlayback frame, then the second frame will play its video.

How do i fix this?

FLVPlayback
The FLVPlayback for playing FLV is not working correctly for me, the video plays fine but the controls doesnt show. When playing in flash player localy it does, but on the webpage it doesnt appear, only the video. Any ideas?

FLVPlayback
How do you make the FLVPlayback component to repeat its content over and over again, until the user pushes the stop button?

thanks

FLVPlayback
I am building a site with multiple videos (FLV) for the user to choose from. I really like the ease of using the FLVPLayback component. My issue is using several instances of the component. How can I use one instance of the component and change the "contentPath" with actionscript? The instances are NOT on the same frame, I move from frame to frame to load in new movies. If doing this is not an isue with over loading the player then I am fine with using several instances.

Thanks for the help!!!
RUss

Flvplayback And As3
Hi all,
I have one flvplayback intance name is videom, i just want to konw if the user clicked play button.

Besause i want to hide a picture when the user clicked play button, hiding picture is easy, but how can i konw if the user clicked play?
I use cs3

FLVPlayback
I have a FLVPlayback component on my stage with the instancename "my_FLVPlybk"
And then I have my flv files "movie1.flv", "movie2.flv", and "movie3.flv"
How would I with actionscript randomly load one of these into my FLVPlayback when the movie starts?

Flvplayback
Hello,
I would like to stream flv files.
I read few posts and some documentation but unfortunately I could not get any positive result.
I have two basic but important questions.
1) what should I put in main.asc file
2) I s there anything to add after dragging the flvplayback component appart the rtmp address where the flv file is located.
I would very much appreciate a fully illustrated answer which can I apply successfully.
Thanks very much indeed.

FMS/FLVPlayback
FMS is installed. I have my .flv file under my directory for the application. Trying to use the FLVPlayback in Flash 8 to call it using rtmp://myserver/myapp/_definst_/myvideo.flv. Publish and it just brings up a blank screen. never plays. I know the .flv file works ok. I can see it connecting to the FMS so I know that is working ok. My application does use UC/LC combination and i read something that says it might be a problem. Any help??? I have the main.asc file from the Flash8 components sample (although that does say it is for the old 1.5 server).

FLVPlayback And MP3
From everything that I have read, FLVPlayback should be able to handle a streamed mp3 file using FMS. Whenever I try to put in my stream source address, rtmp://mydomain/myapp/myfile.mp3, I get an error that says

"Unable to make connection to server or to find the FLV on server"

I know the FMS is setup correctly because I can stream video FLV files without a problem.

Does anyone know how to connect to a streamed mp3 using FLVPlayback?

Using FLVPlayback
Hi,

Scenario

I have multiple video files, which on click should be played.

Problem

I'm using FLVPlayback component to play flv files. When user clicks on selected FLV videos it finds path and plays that video. During the time of video being palyed if, user selects another video it doesn't play.

Below is the code that I have when user click on the video list.
---------------------------------------------------------------------------------------------------------------------

if(flvPlayBack.state == PLAYING ||
flvPlayBack.state == BUFFERING)
{
flvPlayBack.stop();
flvPlayBack.source = uri;
flvPlayBack.load(flvPlayBack.source);
}

thanks for your help and time.

FLVPlayback AS3, Help Please
Is there a way to get the FLVPlayback to work correctly in fullscreen if the stage is set to fullscreen?

some gen. info about the file, and what I would like to happen:
The project I'm working on is 1600 x 1200. On the left side is a navigation menu with dropdowns and so forth. All of the sublinks bring up an 800x600 movie on the right side. So when a sublink is clicked I just want the movie to be shown at 800x600 on the right side. Then, if the user wants, they can click the FLVPlayback fullscreen button to make the video fullscreen. The videos should only be full screen after the button has been clicked.

What seems to be my problem is that I need the stage to be fullscreen, no windows or border or anything. Currently I have
stage.scaleMode = StageScaleMode.EXACT_FIT;
stage.displayState = StageDisplayState.FULL_SCREEN;

If I have the FLVPlayback property fullScreenTakeOver = true; the video loads fullscreen, bad. If I have fullScreenTakeOver = false, when the fullscreen btn is clicked the stage is taken out of fullscreen. The only way i can get close to getting what I'd like is by Not setting the stage to fullscreen and setting the takeOver property to true(Everything works fine, but the swf does not take up the whole screen, it is in window mode).

Thanks to all in advance!! If I need to explain it better, please let me know.

FLVPlayback
Hey!
Im working on a flash clip, that has to be able to contain atleast 5 Flvs. Well easy as hll i thought

The problem:
First i tried to load each flv externally from another swf and the loop code in each of those, unfortunatly this didnt work...Looping each of the flvs. If i have the same flv in all "holders" they loop fine with this code:

on (complete) {
this.seekSeconds(0);
this.play();
}

Also tried using this:

on (complete) {
flvmov1.seekSeconds(0);
flvmov1.play();
flvmov2.seekSeconds(0);
flvmov2.play();
} and so on...

When i then add diffrent flvs to each container none will loop? What am i doing wrong here?

Thanks in advance!

FLVPlayback
Iam trying to create a Videogallery,
and since i've imported a couple of videoclips, im having three FLVplayback and im getting
this message

**Warning** The linkage identifier 'FLVPlayback' was already assigned to the symbol 'video/FLVfolder/FLVideo3', and cannot be assigned to the symbol 'video/FLVfolder/FLVideo2', since linkage identifiers must be unique.

the thing is that the page works just fine, but it's enoying!

FLVPlayback And Vod On FMS
My FLVPlayback component works well with vod folder on my FMS3 but my FLV files need to be in separate sub folders. So how can I work with vod an separate sub folders?

FlvPlayback Help
I am using the flvPlayback component from the flash library and when my video is done I want the playhead to advance to a new frame. I am trying to make sense out of the help file but I not having any luck. This is my code the play function is working but I am not sure how to integrate the the stopped function.

Any help appreciated.


Code:
stop();
//trace(video);
my_FLVPlybk.contentPath = "";
import mx.video.*;
my_FLVPlybk.autoPlay = false;
var listenerObject:Object = new Object();
listenerObject.ready = function(eventObject:Object):Void {
my_FLVPlybk.seekPercent(0);
my_FLVPlybk.play();

};
listenerObject.stateChange = function(eventObject:Object):Void {
if (eventObject.state == FLVPlayback.STOPPED) {
trace("State is "+FLVPlayback.STOPPED);
}
};
my_FLVPlybk.addEventListener("ready",listenerObject);
my_FLVPlybk.contentPath = "videos/"+video;

Flvplayback Actionscript, Please Help
Hello guys. I'm an intermediate in Actionscripting and so I want to ask you with a problem I am having.

I used an flvplayback component and used actionscript because the flv that it would be running would be dynamic. It went great. With it, I also used the skin feature in actionscript (I somewhat tweaked the existing skin). This seems to be the problem.

In IE it worked good. In mozilla, at first seemed ok. Everything is there and functioning. But when I refreshed it, the skin didn't seem to load up, so I was left with a playing flv which dont have any control. I thought at first, there must have been something that I tweaked in the skin. But when i tried to load up a fresh unedited skin, the same result ensued.

I have tried another method, using LoadVars: and it seemed to work again at first because when I refreshed it (in Mozilla) the skin was still there. But then it maybe there, but I cant move any of the controllers at all.

It seem in my program, that I must take out the skin variable out of the mySkin.onload = function()....but, when move it out, the result of the variable is undefined.

Please help me with this problem, I really really appreciate it. Here's the code:

import mx.video.*;
myPlayBack.contentPath = "videoViewer.flv";
myPlayBack.autoPlay = true;

mySkin = new LoadVars();
mySkin.load("mySkin.txt");

mySkin.onLoad = function () {
nowSkin = mySkin.nextSkin;
}

trace(nowSkin);
myPlayBack.skin = nowSkin;
myPlayBack.scaleX = 150;
myPlayBack.scaleY = 100;
myPlayBack.autoSize = true;
myPlayBack.autoRewind = true;



Thank you so much.

SOS....FLVPlayback Buffering %
hey guys
i neeed your help

- i use flvplayback component(flash 8) for streaming video from vitalstream.com
- interface as on productorials.com
- flvplayback and flvplayback custom ui components are skinned individually
- so question is - HOW CAN I SHOW BUFFERING %? - because flvplayback doesn`t have any property similar to NetStream.bufferLength property. It shows progress bar only.
------------
sorry for duplicating message
it is related to 3 forums, but i dont know how to make links in several forums to one message.

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