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




Videoplayer.swf Source Fla File?



Hi,Is it possible to get hold of the .FLA source file of the videoplayer.swf in FMS 3.5 please?I would like to be able to theme the colors for our players to the corporate themes if possible.



Adobe > Flash Media Server
Posted on: 01/29/2009 01:03:44 AM


View Complete Forum Thread with Replies

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

Changing The Frame Rate Of Shockwave File Without Having Source File (FLA)
how can i change the frame rate of a shockwave movie without having the source (Fla) file?? please help sooon.......

FILE UPLOAD Check It Out Source File Too
upload anything stupid an I'll have to pull it...

http://actualpixel.com/demo/upload.swf

what do ya think? still a work in progress...

keen for feedback

additions

etc...

luigie PIRATE!

Help With Videoplayer:)
Hello!
Does anyone know about a fla or tutorial that can help me make a video player like this one? (in the middle of the page..)

http://www.oneill.com/

OO VideoPlayer
I'm trying to make an OO video player, but I can't seem to make the NetConnection work when it's in a class. What am I doing wrong?



class videoPlayerAS.Nc {

// CONSTRUCTOR
// ------------------------------------------------------------------------------------------
function Nc(){
var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
ns.play(file);
_root.video_mc.attachVideo(ns)
}

}


Thanks!

Videoplayer
hello Lee we have run out of options what is causing some trouble:

http://www.animation.nl/staging%20animation/index.html

The grey button opens the videoplayer.
The player list contains 6 flv-files

The first item never plays. The second is no problem.
ONLY when the first one is slected again in WILL start playing.

Pointers on how to solve this welcome.
- is it how the .flv was created?
- is the code in the video player?
- something else?

Kind regards - Foxtrot/ Amsterdam
:?:

Help Looking For A Source File.......
Hi guys this is my first post, and i hope i make sense in what im looking for.

Here goes....... ok basically i want an image slider (not sure if that the correct name) Imagine you have a strip of 10 images and a masc so only a few at a time show, when you move the mouse left the picture strip scrolls left and the same with right.
Ive found a few but id like one with buttons, so that rather than moving mouse to the left you have to mouse over the left arrow so that the pictures scroll. As the ones ive seen without buttons just scroll uncontrolably with every mouse movement.

I hope you can help, and if you need any clarification in what im looking for please ask!

Superb site by the way guys!

Help Looking For A Source File......
Hi guys this is my first post, and i hope i make sense in what im looking for.

Here goes....... ok basically i want an image slider (not sure if that the correct name) Imagine you have a strip of 10 images and a masc so only a few at a time show, when you move the mouse left the picture strip scrolls left and the same with right.
Ive found a few but id like one with buttons, so that rather than moving mouse to the left you have to mouse over the left arrow so that the pictures scroll. As the ones ive seen without buttons just scroll uncontrolably with every mouse movement.

I hope you can help, and if you need any clarification in what im looking for please ask!

Superb site by the way guys!

Help With A Source File
Can anyone tell me why this effect does not work when publish settings are set up for flash player 8? im looking over the code and just cant find why it wont work. Any help would be amazing
http://www.flashkit.com/movies/Effec...6578/index.php

Fla Source File
Hi! I wonder is there any fla source file which I can find from the internet. I hope I can learn from fla source file to create special effect. I will happy to hear from everyone. Thanks.

yann

Fla Source File
Hi! I wonder is there any fla source file which I can find from the internet. I hope I can learn from fla source file to create special effect. I will happy to hear from everyone. Thanks.

yann

Fla Source File
Hi! I wonder is there any fla source file which I can find from the internet. I hope I can learn from fla source file to create special effect. I am happy to hear from everyone. Thanks

Yann

VideoPlayer Class
I need to get the total running time, play head time and I also need to fast forward and
reverse the video.

I have read the docs on the site but am still confusssed on how to use the code described in the docs on my site.

Can someone point me to a how to that explaines how to call the classes i need?

If someone could break this info linked below down into a realworld flash app and post it that would be great!

http://livedocs.macromedia.com/flash...=00003544.html

4 Buttons And A VideoPlayer
Problem:

I have 4 Buttons called:

vbtn_1
vbtn_2
vbtn_3
vbtn_4

and one Videoplayer component called "videoplayer"

now i want load different videos inside the component by clicking on of the buttons ...

can anyone point me in the right direction?

thanx in advance

As3 Videoplayer Problem
I created a class to play videos called the Videoviewer.

My issue is with long clips, if doesn't play the first time around. I have to refresh it and it plays fine then.

Anyone have a solution for this??


www.artbycg.com/temp/largeVideoPlayer/

Videoplayer + Xml + (list) Help Please
greetings all,
i've hit a wall and i could use some help.
i'm working on a dynamic video player, and i'm trying to add a list component.
All content (video and titles) are loaded from an .xml

i have the video playing fine, and the titles are displayed in the list.. so far so good.

My problemo:
i'm trying to get the correct video to display when the list is clicked.

i can get it to step forward but (i can't get it to step back)

i'm lost.. i've fould some video playlists online
but it seems everyone is built with the FlvPlayback component. mine is not
the only component is the list.. i don't even know if this maters..

any help would be grand...



Code:
public class VideoJukebox_daily extends MovieClip {
/**
* The amount of time between calls to update the playhead timer, in
* milliseconds.
*/
const PLAYHEAD_UPDATE_INTERVAL_MS:uint = 10;
/**
* The path to the XML file containing the video playlist.
*/
const PLAYLIST_XML_URL:String = "playlist.xml";
/**
* The client object to use for the NetStream object.
*/
var client:Object;
/**
* The index of the currently playing video.
*/
var idx:uint = 0;
/**
* A copy of the current video's metadata object.
*/
var meta:Object;
var nc:NetConnection;
var ns:NetStream;
var playlist:XML;
var t:Timer;
var uldr:URLLoader;
var vid:Video;
var videosXML:XMLList;

/**
* Constructor
*/
public function VideoJukebox_daily() {
// Initialize the uldr variable which will be used to load the external
// playlist XML file.
uldr = new URLLoader();
uldr.addEventListener(Event.COMPLETE, xmlCompleteHandler);
uldr.load(new URLRequest(PLAYLIST_XML_URL));
}
/**
* Once the XML file has loaded, parse the file contents into an XML object,
* and create an XMList for the video nodes in the XML.
*/
function xmlCompleteHandler(event:Event):void {
playlist = XML(event.target.data);
videosXML = playlist.vid;
main();


/////////******************** PASS TITLE / VIDEO TO LIST
for (var i=0; i<playlist.vid.length(); i++) {
vid_select.addItem({label:playlist.vid[i].@desc, data:playlist.vid[i].@src});
}

vid_select.selectedIndex = 0;
ns.play(vid_select.getItemAt(0).data);

vid_select.addEventListener(Event.CHANGE, clickit);
}





////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////// This is the problemo
function clickit(e:Event) {
trace("selected" + e.target.selectedIndex);
//ns.play(vid_select.getItemAt(vid_select.selectedIndex).data);
//ns.play(vid_select.getItemAt(e.target.selectedIndex));
ns.play ("selected");
}
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////// This is the problemo END





//vid_select.addEventListener(Event.CHANGE, clickit);
/**
* The main application.
*/
function main():void {
// Create the client object for the NetStream, and set up a callback
// handler for the onMetaData event.
client = new Object();
client.onMetaData = metadataHandler;
nc = new NetConnection();
nc.connect(null);
// Initialize the NetSteam object, add a listener for the netStatus
// event, and set the client for the NetStream.
ns = new NetStream(nc);
ns.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
ns.client = client;
// Initialize the Video object, attach the NetStram, and add the Video
// object to the display list.
vid = new Video();
vid.attachNetStream(ns);

/**
* Event listener for the ns object. Called when the net stream's status
* changes.
*/
function netStatusHandler(event:NetStatusEvent):void {
try {
switch (event.info.code) {
case "NetStream.Play.Start" :
// If the current code is Start, start the timer object.
t.start();
break;
case "NetStream.Play.StreamNotFound" :
case "NetStream.Play.Stop" :
// If the current code is Stop or StreamNotFound, stop
// the timer object and play the next video in the playlist.
t.stop();
playNextVideo();
break;

}
} catch (error:TypeError) {
// Ignore any errors.
}
}
/**
* Event listener for the ns object's client property. This method is called
* when the net stream object receives metadata information for a video.
*/
function metadataHandler(metadataObj:Object):void {
// Store the metadata information in the meta object.
meta = metadataObj;

}
/**
* Retrieve the current video from the playlist XML object.
*/
function getVideo():String {
return videosXML[idx].@src;
}
/**
* Play the currently selected video.
*/
function playVideo():void {
var src:String = getVideo();
ns.play(src);


}

/**
* Increase the current video index and begin playback of the video.
*/
function playNextVideo():void {
if (idx < (videosXML.length() - 1)) {
// If this is not the last video in the playlist increase the
// video index and play the next video.
idx++;
playVideo();
// Make sure the positionBar progress bar is visible.
//positionBar.visible = true;
} else {
// If this is the last video in the playlist increase the video
// index, clear the contents of the Video object and hide the
// positionBar progress bar. The video index is increased so that
// when the video ends, clicking the backButton will play the
// correct video.
idx++;
vid.clear();
}
}
}
}

Source File Problem Please Help
Hi all

Problem with source file, that i made graphic adjustments, i have changed the layout and made the buttons smaller and made them closer together, because the space available to me is limited the only changes i made to the actionscript was to change the text from (german - i think to english).....the source file that i changed is

Calender- andreas- 6136 - it is a kind of schedule calender in the movies section

Problem is that in making changes to the layout the alligment of the date buttons with the days is now all skew wiff ( not in allignment) .......i cannot seem to find how to fix this, i found the mcs in the library, and made changes to teh button - primarily to make it smaller .......what i cannot find though is how to fix the alligment to what i have now got...
can anyone out there help me pleasee..........
I don't know whether it is a hidden clip of some sort or actionscript related

Please help

Thanks

J

The Price Of A Source File?
He people!

I've got a sticky situation here.

I have customer, who I have previously done work for (Flash presentations), who have just asked me for the source files of the work so they can send them to another company that specialises in Voice-Overs to go in the files.

However, there was never an agreement that I would release the source files ever.

This Voice-Over company is also a design agency - so I'm sure yuo can imagine my dilemma - don't want to annoy my customer and loose any possible future work, but also don't want my source files going to another design agency, when I could put the sound files in myself.

But....

What if the customer was to ask to buy the source files?

What kind of a percentage on the original price do I charge him?

Cheers

Deadhands

Source File List
Hi All,

I am trying to find a thread that contains a list of game resoucre site (open files etc) there used to be one on here somewhere but I can't find it anywhere and I've run out of search options as far as keywords go!

I know this is a shot in the dark - but hopefully one of you will know the thread I mean!

FLA Source File Website HELP
OK calling all people interested in being part of a website dedicated to fla's!

What we want to do is start up a web site with a huge stock pile of fla's all under dedicated descriptions for example Pre-Loaders, Tweening, Action Script ect ect ect.

Anybody interested in helping with the design of the site or donating some fla's please post here.

Please Help Me Unpack This Source File
Hello,

I have downloaded this .fla file as I would like to create a similar effect. However, I'm a bit confused as to what exactly is going on.

I'd be really grateful if someone could just explain the basic principles and I'll take it from there.

Many thanks

How Do I Link A Txt File As A Source
say i have a fla, and in that i want one scene to have a block of text that is displayed based on a seperate txt file, from notepad or simpletext or whatever.

how do i go about making something like this?

Help.. How To Source From Text File?
From like notepad or soemthing.. using flash MX ? thanks

Source .fla File For An Mp3 Player?
I've been using a primative player in past versions of my site, but I'd like to have a player that has a loading indicator before a song begins to stream, and also << and >> buttons. A text field displaying the current track would be good too. And a list to choose from.

Uhh, sounds like a lot, but I've frustrated myself for two days working on one, so I decided to ask here if there was an fla I could examine...

Basically what I want is a player similar to 2A's. (http://2advanced.com)

Any help is greatly appreciated.

[MX04] Looking For A Source File
Hiya,

I've seen an effect used on a few different sites where an image is placed underneath a masked area and when a button is selected the image moves UNDERNEATH the masked area to the selected part of the picture. Its a nice but simple effect and i used to have a source file for this but i can't seem to find it anywhere in the movies section of flashkit since i don't know what to search under...

I've seen it used within menus for websites or even image galleries...

anyone have any ideas where i can find this... or what to search for it as?!

Thanks in advance

Help I Can't Open My .fla Source File.
Hi,

For some reason i cannot open my source file! Gulp!
Can someone please try and open it for me?
On my PC or Mac Flash 8 just freezes.........

The file can be downloaded from:

http://www.gqtestsite.co.uk/Andy/warley_plans_final.zip

Andy

Using A Loaded SWF For Which I Don't Have The Source File
Hi everyone,

Hopefully this is an easy one for you... I have a loaded SWF that plays through and stops at the end. Once it ends, I'd like the main timeline to proceed to the next scene, to continue with the demo.

Is there a way to do this without having to have access to the FLA for the loaded movie?

Thanks!

I Cant Get The Source File To Work
Here is a source file i got from this site
http://www.senocular.com/flash/source.php?id=0.107

i have tried to recreate it by copying everyting in it, it still isn't working
if anyone can look at this and help me out that would be great!

My File

Save My Source File
The swf files download to temporary internet folder before showing up. I want to know is there any way , a script or technique in flash that the swf file does not download into the temproray internet folder so that my source file is safe from any person using decompilers.

Swf Resolution Is 3/4 Than In The Fla Source File
say if I use milimeters as unit, and draw a line 4cm long, and export, then in the swf , the size will be only 3 cm if you measure it on the screen with a ruler.
Is there any way, you can make the swf play as the same size in fla design interface?

Source AS File For NetConnection?
I've been reading the source code for the Flash Remoting classes. Connection.as extends NetConnection.as which appears to be a class native to Flash. I can't find the source for it. I searched my entire hard drive and found two classes that appear to be just interfaces -- they don't do anything (see below). Where is the source for the NetConnection class?

I also found a file called NetConnection.aso which appears to be some kind of compiled binary file. I'm guessing the functionality is inside it.







Attach Code

// C:Program FilesMacromediaFlash MX 2004enFirst RunClassesNetConnection.as
intrinsic class NetConnection extends Object {
var isConnected:Boolean;
var uri:String;

function getDebugConfig( id ):NetDebugConfig;
function getDebugID();
function getService( serviceAddress, responder ):Object;
function setCredentials( principal:String, password: String ):Void;
function setDebugID( id ):Void;
function trace( obj ):Void;

function connect(targetURI:String):Boolean;
function close():Void;
function call(remoteMethod:String, resultObject:Object):Void;
function addHeader();

function onStatus(infoObject:Object):Void;
function onResult(infoObject:Object):Void;
}




//C:Documents and SettingsJaitheLocal SettingsApplication DataMacromediaFlash MX 2004enConfigurationClassesNetConnection.as

//****************************************************************************
// ActionScript Standard Library
// NetConnection object
//****************************************************************************

dynamic intrinsic class NetConnection
{
var isConnected:Boolean;
var uri:String;

function NetConnection();

function addHeader();
function call(remoteMethod:String, resultObject:Object):Void;
function close():Void;
function connect(targetURI:String):Boolean;

function onResult(infoObject:Object):Void;
function onStatus(infoObject:Object):Void;
}

How To Modify Swf Without Source File?
I will append a button to a Swf file,but the button wasnt inside the SWF file and I wasn't have the SWF file's source file?

Please tell me which software can do it ?

List the name or URL,Thankyou!

-----
Sorry,I have a little English.

Using The FLA Source File Components
How do I put those examples to good use? The one I got (this one) uses only one instance for all the buttons...

...anyway I can change that?

Source File Instructions?
Sorry, new guy... Are there instructions on how to use (customize) the downloadable fla source files?

Weeds Fla Source File
i was wondering if someone could explain a few things about the code in this fla. it's found under the experimental actionscript, last page of the fla source files section.

i've been studying it for a couple days nows and i still cannot figure out how the position of the weeds are being set. i've been trying to change it so that the line_x is at the top of the stage and the weeds point downward, but i'm having no such luck.

i'm guessing the position has maybe something to do with this section of code:

ActionScript Code:
_root.attachMovie("line", "line" + _root.level, _root.level);
    myLine = _root["line" + _root.level];
    _root.level++;
    var line_x = random(_root.myBounds.xMax - _root.myBounds.xMin);


if someone could just break it down what's happening that'd be great! it's been driving me crazy that i'm not figuring it out.

here is the code on the 1st frame:

ActionScript Code:
fscommand ("allowscale", false);
var total_num = 12;
var level = total_num+1;
var myBounds = boundbox.getBounds(_root);
for (i=0; i<=total_num; i++) {
    attachMovie("dot", "dot"+i, i);
    myDot = _root["dot"+i];
    myDot._x = random(myBounds.xMax-myBounds.xMin-50)+26;
    myDot._y = random((myBounds.yMax-myBounds.yMin)-60)+31;
}
stop ();


and this is the rest on the dot:

ActionScript Code:
onClipEvent (load) {
    var follow = false;
    var min_dist = 10;
    var max_move = 20;
    var force = 1.4;
    var a = 3;
    var d = 1.6;
    var newX = _parent._x;
    var newY = _parent._y;
    var myXspeed = 0;
    var myYspeed = 0;
    _root.attachMovie("line", "line"+_root.level, _root.level);
    myLine = _root["line"+_root.level];
    _root.level++;
    var line_x = random(_root.myBounds.xMax - _root.myBounds.xMin);
}
onClipEvent (enterFrame) {
    myXspeed = ((_parent._x-newX)/a+myXspeed)/d;
    myYspeed = ((_parent._y-newY)/a+myYspeed)/d;
    // check mouse distance
    if (Math.abs(_parent._x-_root._xmouse)<min_dist && Math.abs(_parent._y-_root._ymouse)<min_dist) {
        follow = true;
        this.gotoAndStop(2);
    } else if (Math.abs(_parent._x-newX)>max_move || Math.abs(_parent._y-newY)>max_move) {
        follow = false;
        this.gotoAndStop(1);
    }
    if (follow) {
        myXSpeed += (_parent._x-_root._xmouse)/force;
        myYSpeed += (_parent._y-_root._ymouse)/force;
    }
    _parent._x -= myXspeed;
    _parent._y -= myYspeed;
    // adjust line
    myLine._x = _parent._x;
    myLine._y = _parent._y;
    myLine._xscale = line_x - _parent._x;
    myLine._yscale = (_root.myBounds.yMax-_root.myBounds.yMin)-_parent._y;
    myLine._alpha = 20;
}
onClipEvent(mouseDown) {
    newX = random(_root.myBounds.xMax-_root.myBounds.xMin-50)+26;
    newY = random(_root.myBounds.yMax-_root.myBounds.yMin-60)+31;
}

Videoplayer, Rewinds When It Ends
Hi,

I've constructed a videoplayer with the video object. Everything works except one small thing. The progress bar works fine. When the video is playing, and you hit the rewind button, the progress bar also goes back to the start of the video. BUT if the video has played through and you then hit the rewind button the video plays from the start, but the progress-bar doesn't go back to the start of the video. It just stays where it is.

This is my code. I can post the swf file, if needed:


Code:
//--------NETCONNECTION SETUP--------------
var nc:NetConnection = new NetConnection();
nc.connect(null);

//--------NETSTREAM SETUP------------------
var ns:NetStream = new NetStream(nc);

ns.onStatus = function(info) {
if(info.code == "NetStream.Play.Start") {
progressBar.onEnterFrame = videoUpdate;
}
if(info.code == "NetStream.Play.Stop") {
delete progressBar.onEnterFrame;
}
}

ns.onMetaData = function(info) {
ns.duration = info.duration;
}

//--------ATTACHING NETSTREAM--------------
video.attachVideo(ns);

//--------PLAYING EXTERNAL FLV-------------
ns.play("http://jahallo.dk/linked_files/case2.flv");

//------------REWIND BUTTON----------------
rewind.onRelease = function() {
ns.seek(0);



}

//------------PLAY PAUSE TOGGLE-------------
playPause.onRollOver = function() {
if(this._currentframe == 1) {
this.gotoAndStop("pauseOver");
}
else {
this.gotoAndStop("playOver");
}
}

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

playPause.onRelease = function() {
if(this._currentframe == 10) {
this.gotoAndStop("playOver");
ns.pause(true);
}
else {
this.gotoAndStop("pauseOver");
ns.pause(false);
}
}

//------------LOADBAR-------------
loadbar.onEnterFrame = function() {
this._xscale = (ns.bytesLoaded/ns.bytesTotal)*100;
if(this._xscale == 100) {
delete this.onEnterFrame;
}
}

//------------VIDEO UPDATE-----------
function videoUpdate() {
progressBar._xscale = (ns.time/ns.duration)*100;
timecode.text = getTimecode(ns.time);
}

//------------VIDEO SCRUBBER----------
loadbar.onPress = function() {
progressBar.onEnterFrame = videoScrub;
}

loadbar.onRelease = loadbar.onReleaseOutside = function() {
progressBar.onEnterFrame = videoUpdate;
}

function videoScrub() {
var dist:Number = (_root._xmouse-loadbar._x)/loadbar._width;
ns.seek(Math.floor(ns.duration*dist));
progressBar._xscale = (ns.time/ns.duration)*100;
timecode.text = getTimecode(ns.time);
}

//------------TIME CODE----------
function getTimecode(theTime) {
var t:Number = Math.round(theTime);
var min:Number = Math.floor(t/60);
var sec:Number = t%60;
var s:String = "";
if(min < 10) {
s += "0";
}
if(min >= 1) {
s += min.toString();
}
else {
s += "0";
}
s += ":";
if(sec < 10) {
s += "0";
s += sec.toString();
}
else {
s += sec.toString();
}
return s;
}

//-----------AUDIO CONTROLS----------
this.createEmptyMovieClip("vidSound",2);
vidSound.attachAudio(ns);
var vSound:Sound = new Sound(vidSound);
vSound.setVolume(75);

volScrub._xscale = 75;

volBottom.onPress = function() {
adjustSound();
this.onMouseMove = adjustSound;
}

volBottom.onRelease = volBottom.onReleaseOutside = function() {
delete this.onMouseMove;
}

function adjustSound() {
var dist:Number = Math.floor(((_root._xmouse-volBottom._x)/volBottom._width)*100);
if(dist >= 0 && dist <= 100) {
volScrub._xscale = dist;
vSound.setVolume(dist);
}
}

The code is from a tutorial file.

Does anyone know how to make the progress-bar start over when the video has played through and has stopped and you then hit rewind?

Can't Get My Videoplayer To Resize The Html...hrm...
I've coded a flv videoplayer that loads clips dynamically from a MySQL db. The problem I have is as follows:

Some of the loaded clips are big, some are small, and I've designed the videoplayer to resize when a new flv is loaded - that part works. But when you export the swf, the size of the swf is hardcoded into the html. This means that you can't get the html window (which will be a pop-up) to resize to the new size of the swf. Am I clear enough?

Hope someone understands what I'm trying to ask...

VideoPlayer Class Problem
Hi guys,

I am trying to create a video player class that allows me to get all kinds of information from a video i'm playing like duration, current position etc.

I let a function run every half second in order to trace the current video position, but it just won't work!
When I trace getVideoPosition(), it only says: undefined.

Do you have any idea how to make this work?

Thanks a lot!


Code:
class videoPlayer {
var netConn;
var netStream;
var meta;
var duration;
var interval_id;

function videoPlayer() {
this.netConn = new NetConnection();
this.netConn.connect(null);
trace("NetConnection established");
this.netStream = new NetStream(this.netConn);
trace("NetStream established");
var t = this;
this.play("test_video.flv");

this.interval_id = setInterval(getVideoPosition, 1000);
trace(getVideoPosition());

}

function getDuration() {
return this.meta.duration;
}

function getVideoPosition() {
return this.netStream.time;
}

function play(url) {
if (url != undefined) {
this.netStream.play(url);
return;
}
}


// CLASS END
}

[xml + Videoplayer] Somethings Wrong, But What?
Help!
I´m getting some weird behaviors on my videoplayer.
I´ve built it based on the gotoandlearn.com tutorial.
The player alone works fine, but when I load it inside
a movieclip and make it play various flvs, loaded from
an xml, something goes wrong. I´ve browsed through
my as, xml, etc, but can´t find the problem.

This is what happens: the first time I play a video from it,
everything works fine, but when I close the player...


ActionScript Code:
function closevideo() {
    loadvideoplayer.ns.close();
    this._parent.unloadMovie(loadleitura); 
}


... and select another video to load it again, the "scrub" thing
goes wild.... seems like the drag doesnt work as it should...

Here's the relevant part of the code for my videoplayer:

ActionScript 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 = true;
    }   
    if(info.code == "NetStream.Play.Stop") {
        ns.seek(0);
        ns.pause();
        this.botplay.gotoAndStop(20);
    }
}
 
//"selectvideo" is a var that holds the current flv to be played
 
theVideo.attachVideo(ns);
ns.play(_parent._parent.selectvideo);
 
var videoInterval = setInterval(videoStatus,100);
var amountLoaded:Number;
var duration:Number;
 
ns["onMetaData"] = function(obj) {
    duration = obj.duration;
}
 
//230 is the width of my loadbar
 
function videoStatus() {
    amountLoaded = ns.bytesLoaded / ns.bytesTotal;
    loader.loadbar._width = amountLoaded * 230;
    loader.scrub._x = ns.time / duration * 230;
}
 
var scrubInterval;
 
loader.scrub.onPress = function() {
    clearInterval(videoInterval);
    scrubInterval = setInterval(scrubit,10);
    this.startDrag(false,0,this._y,230,this._y);
}
 
loader.scrub.onRelease = loader.scrub.onReleaseOutside = function() {
    clearInterval(scrubInterval);
    videoInterval = setInterval(videoStatus,100);
    this.stopDrag();
}
 
function scrubit() {
    ns.seek(Math.floor((loader.scrub._x/230)*duration));
}


Any ideas?

Thanks in advance!

Working Off Of A PRAYSTATION Source File
Praystation has a source file called "Basic Scrollbar with Content". It's basically an inertia horizontal scroll bar.

What Im trying to do is shorten the length of the horizontal scrollbar. Right now it starts at (Left:333) and (Right:700). I want to change the right to 500 so I can have my scroller shorten in length but still scroll the long content.

Here's the code in the content actions:

scrollpos = getProperty("/scrollbar", _x);
postoset = Number((scrollpos*-2))+665;
setProperty ("/content_w_mask/content", _x, postoset);


I guess the "Number((scrollpos*-2))+665" needs to be changed to make t his work..I just dont know what to put. Any suggestions?

Text File As Source..prob
I have a text file which contains the data as &textfield1="......"
&textfield2="...L&T...."
In the textfield2 after "&" the text is not appearing.
Help me out with this prob friends...
Thanks

Do You Want The System Of Exchanging Source File
Anyone who is eager to learn about web-tools(mainly flash)
just visit at http://www.ywd.cc and leave your message in the common forum.
Then, you'll get a FTP approach authority through your Email.

I pay for the web-space. you pay nothing.
As for as I know. the web-space support PHP and mySQL.

Do you have any doubt why do I do this?

I want to learn about flash and so forth.
So I thought I need to have a system of free exchanging source file, analyzing a webpages. helping each other.

We have only 200 MEGA for this.
So the limitation of members is essential.


We can believe someone who we don't know.
That is the reason we can share our FTP approach.

We want someone who want to exhange source files
and exhanage opinions eagerly.

Text File To Load From An Outside Source
I am trying to get Flash to display a text file from another source in Flash.

Basically, i want to make it that this content, say it's 'About Us' where the client talks about what their business is, i want to make the flash file look for a text file and display the text file, so the client can change the descriptive text, but without having to get me to add it in manually each time.

Is there a way I can achieve this?

Thanks

ScrollPane Component - Source A Txt File?
Is is possible to make a .txt file the source of a standard MX scrollpane component? I've seen a number of custom mc's in the 'movies' section of FlashKit, but haven't seen any code snippets to do so with the standard scrollpane.

The next question would then be...can you set a typeface for the scrollpane??

Thanks a Ton!

BlueRhino

Altering Actionscript For A FLA Source File
Hello. I have downloaded a free sourcefile from www.ultrashock.com and I cannot seem to get the interface to work with me correctly. The item im reffering to is in the FLA SOURCE FILES> under NAVIGATION AND INTERFACE> called "3d Spiral Menu". It involves a single movie clip being multiplied 9 times and set behind an invisable button. However, insted of being able to create the movie clip with different names (for example, "main", "forums", etc) they all say the same thing as the first instance "Option". If anyone could show me how to make the options different, it would be most helpful. Thank you!

Here is the Source File

Export Source Of Symbol To New FLA File
I want to build a bunch of movieClips and test them on a test stage.

Once I have got them working, is there a way to export the resulting Symbol and all the graphical elements into a new FLA file?

I know I can export a symbol as a compiled (tokenized) swf, but I want to keep all of my project's FLA's separate...

Please Show Me Where To Add Song Source In This File?
Please can somebody show me how and where to place a song source in the actionscript of this zip file.

It's just a basic flash control that loads and plays one song source.

Symbol Properties- Source; €˜file: €™?
You can find this if you right click on a symbol in the library and select properties. And in the Source section there is a browse button for a file.

I have a remote library set up on a few symbols in a project I am doing and thought that it would relate. However I can’t seem to find any info on what this is. Does anyone know what this ‘source file’ is and how it can be used?

Changing Swf Source Flv File Using Javascript
I am using the stock progressive flv flash player that dreamweaver gives me. All works great. But now I am trying to change the flv file that gets played through javascript and I am getting nowhere. I can make the swf control invisible and get the number of frames using javascript but cannot change the source flv file. Anyone know how this can be done?

Liquify Image Tut Source File?
Where is the source file for the liquify image tut???

In the tut it says it is at the bottom of the page, but i cannot see it?

Can someone help me?

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