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




Loading A SWF Before An FLV (Lee's XML Player)



Hi all,I've been reading the Modifications to Lee's NetStream Video Player post that Todd made and it's great it helped me alot trying to edit the player to my desire and how i want it to be.I have 1 question though is it possible to load a SWF file(animation) display before you click on any video and serve like the "hidden file" that is explained in the post.Basically an intro but not only once...but everytime you click on one video or every 2/3 times u click on a video u want to see...something like this person wanted to do but i want it in SWF not FLV.viewtopic.php?f=28&t=12024&p=58657&hilit=swf+before+flv#p58657The code atm is pretty much the same as the one in the post by Todd because i didn't want to change to much in it atm.Code: ar nc:NetConnection = new NetConnection();nc.connect(null);var ns:NetStream = new NetStream(nc);theVideo.attachVideo(ns);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") {     var t = videoList.selectedIndex + 1;      if (t < videoList.length) {         ns.play(videoList.getItemAt(t).data);         videoList.selectedIndex = t;// ns.seek(0);   }}playButton.onRelease = function() {   ns.pause();}rewindButton.onRelease = function() {   ns.seek(0);}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.loadbar._width = amountLoaded * 208.9;   loader.scrub._x = ns.time / duration * 208.9;}var scrubInterval;loader.scrub.onPress = function() {   vFrame.onEnterFrame = scrubit;   this.startDrag(false,0,this._y,208,this._y);}loader.scrub.onRelease = loader.scrub.onReleaseOutside = function() {   vFrame.onEnterFrame = videoStatus;   this.stopDrag();}function scrubit() {   ns.seek(Math.floor((loader.scrub._x/208)*duration));}var theMenu:ContextMenu = new ContextMenu();theMenu.hideBuiltInItems();_root.menu = theMenu;var item1:ContextMenuItem = new ContextMenuItem("::::: Video Controls :::::",trace);theMenu.customItems[0] = item1;var item2:ContextMenuItem = new ContextMenuItem("Play / Pause Video",pauseIt,true);theMenu.customItems[1] = item2;var item3:ContextMenuItem = new ContextMenuItem("Replay the Video",restartIt);theMenu.customItems[2] = item3;var item4:ContextMenuItem = new ContextMenuItem("? 2007 Lee Brimelow",trace,true);theMenu.customItems[3] = item4;function pauseIt() {   ns.pause();}function stopIt() {   ns.seek(0);   ns.pause();}function restartIt() {   ns.seek(0);}_root.createEmptyMovieClip("vSound",_root.getNextHighestDepth());vSound.attachAudio(ns);var so:Sound = new Sound(vSound);so.setVolume(100);mute.onRollOver = function() {   if(so.getVolume()== 100) {      this.gotoAndStop("onOver");   }   else {      this.gotoAndStop("muteOver");   }}mute.onRollOut = function() {   if(so.getVolume()== 100) {      this.gotoAndStop("on");   }   else {      this.gotoAndStop("mute");   }}mute.onRelease = function() {   if(so.getVolume()== 100) {      so.setVolume(0);      this.gotoAndStop("muteOver");   }   else {      so.setVolume(100);      this.gotoAndStop("onOver");   }}var vlist:XML = new XML();vlist.ignoreWhite = true;vlist.onLoad = function() {   var videos:Array = this.firstChild.childNodes;   for(i=0;i<videos.length;i++) {      videoList.addItem(videos[i].attributes.desc,videos[i].attributes.url);   }      //ns.play(videoList.getItemAt(0).data);   //videoList.selectedIndex = 0;}   var vidList:Object = new Object();vidList.change = function() {   ns.play(videoList.getItemAt(videoList.selectedIndex).data);}videoList.addEventListener("change",vidList);vlist.load("videos.xml");videoList.setStyle("selectionColor",0xCCCCCC);videoList.setStyle("textSelectedColor",0x000000);videoList.setStyle("rollOverColor",0xCCCCCC);Thanks for helping me out.



General Flash
Posted on: Fri Oct 26, 2007 1:08 pm


View Complete Forum Thread with Replies

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

Player Not Loading...
I have a mp3 player on my site and I have the songs loaded into my file manager and everything but they wont play, it just keeps saying loading--- http://www.geocities.com/pogoh2/site_start1.html
^ thats my site, the songs that are supposed to work are the 1st and 2nd ones. helpp

Loading Mp3 / Mp3 Player
hi... i'm making a website of a band.. I need to put some of thier song in the site.. how do you put mp3's in the site.. do i need to laod it from external source? and how do i make a mp3 player in the site thanks..

Loading The Player
Hi,

I am new to Actionscript 3. Have worked a lot with Flash 6 AS1. Today I started learning AS 3 and stuck with a problem.

I created files main.fla and Main.as. In main.fla I set the document class as Main. Now I want to check if the main.fla file is loaded. In AS 1 I used _root.getBytesLoaded...getBytesTotal. How can I do this in AS 3.

This is the code of Main.as file.

Any help is appreciated.







Attach Code

package {
import flash.display.Sprite;
import flash.display.Loader;

public class Main extends Sprite {
public function Main() {
//trace(stage.stageWidth + " - " +stage.stageHeight);
var loader:Loader = new Loader();
trace(stage.root);
}
}
}

Loading Flash Player
Hi,

I have a .swf file and when I double click on it the Flash Player wouldn't load.

I used to be able to do it. What happened?

Esael

Down Loading Flash Player
Is there a way to include the flash player with a site so users in a corperate setting without the administrative power to install the player on there computer would beable to get around the security?

Loading Images For An Mp3 Player With Xml
Ok so i have a flash mp3 player and i want it to load an image for each track so every time your on a certain track in a different field it will load a corresponding image using an xml document. Now im not that good with action script so how would i go about doing this. Any help would be greatly appreciated

MovieClips Not Loading When Using Player Ver 7 Or 8
Hello,

The attachment contains a zip file with an FLA and XML file. The FLA is the very beginning of a map editor I started to build in Flash 8 for a turn-based game. So far there isn't much to look at but the problem is I can only use FlashPlayer 6 or lower in the publish settings. If I select version 7 or 8, the hex movieclips (the blue hexes that make up the map) do not load. The hexes are loaded using ActionScript. The FLA in the zip file is currently set to version 6 so it will run properly.

I do not understand what I am doing that is not compatible with the new player version.

To move the map, use the arrow keys or the mouse (left click and drag).

Any help is appreciated...
Brent

Help With Loading Mp3 Player Onto Page...?
hi all!

i'm using coffeee cups web jukebox. it spits out all of the code and swf files for you...so the actual codes aren't a problem, i don't know which way to load this thing into my page.

since i somewhat understand empty mc's i would like to load it that way.
so my music page gets loaded up. i have created an empty mc on the top layer of that page, instance named mp3.
the coffeecup swf file is named myjukebox.swf
i have script that is:
_root.mp3.loadMovie("myjukebox.swf");

so at this point it should load, right? all of my files (index, music, xml, mp3's, html, etc.) are in the same folder.
i get an error opening the url.

here is the html code:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
width="504" height="82" id="CoffeeCup" align="middle">
<param name="movie" value="myjukebox.swf"/>
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="bgcolor" value="#ffffff" />
<embed src="myjukebox.swf" quality="high" bgcolor="#ffffff" width="504" height="82"
name="CoffeeCup" scale="noscale" salign="lt" align="middle" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>

this has not been uploaded to my site yet i'm trying to make it work here on planet earth. lol!

link to music fla.


thanks so much

[F8] Help Loading Exernal FLV Player
Flashers,

I have a nice working FLV player -that works perfectly on the web.
http://www.intromotion.com/player/deploy/

However, when I try to load it into a pre-existing FLA file, I get this:
http://www.intromotion.com/index_08_9.html

Here's the code I'm using to load the exernal FLV player:


Code:
loadMovie("http://www.intromotion.com/player/deploy/flvPlayer.swf", "_root.container_video");
I've gotten this work work with other SWF's - but for some reason, I just can't get this one to work.

Any suggestions?

Loading Flv In Swf Player Through Html
I have a flash player swf skin which loads up flv files. I have embedded it on a webpage which has links to some other flvs as well.

I want these links to load up their respective flv file in the player without reloading the html page. How can I achieve this?

Flash Player Not Loading
I have one swf which playes on most of the machines when loaded in IE. But when I use the same swf on of my PC's it does not load. It shows the activeX confirmation box on all the machines and I confirm to it by clicking 'Yes' on every machine. But on this particular machine it does not load even though allowing the activeX. Its obvious that there are some IE settings which are stopping the player to load.

Can some body provide me a direction??

As ever,
Vinayak Kadam

Loading WMA's In A Seperate Player
Hi everyone,
I am currently constructing a page for a DJ and his friend. They intend to host their music on their FTP server. They have requested though that the WMA's load up in Windows Media Player, seperate to the site, e.g. When you click on the link, it opens WMP. I was wondering if anyone had any ideas on how to do this. I am stuck and dnt have a clue.

This obviously means that they will want to be able to update the name of the link themselves also, therefore i have made the links movie symbols with text boxs linked to external text files (if that makes sence) e.g. when they update the text file, the link name will change.

Any help would be great and its due for completion soon.
Its only my second site iv ever built.

Check out my first here; www.burnonfire.com

Thanks
Skellz

P.S. I keep getting a problem with this code --

this.onRelease = function() {
import mx.managers.PopUpManager;
import mx.containers.Window;
win = PopUpManager.createPopUp(_root, mx.containers.Window, true, {title:"Ryan Skelley Designs", contentPath:"Website.jpg", closeButton:true});
win.setSize(619.6, 464.7);
win.move(win.x + 71.7, win.y + 42.5);
lo = new Object();
lo.click = function() {
win.deletePopUp(mx.containers.Window);
};
win.addEventListener("click", lo);
};

I know that it is because the code is a MX04 code but i dnt know how to update it. It should produce a nice pop-up flash window.

Thanks

Skellz

Mp3 Player Loading Issue
Any ideas as to why my .swa behaves as a direct file link:
http://cellocelli.com/mp3s/MP3s.swf

but not when inserted on a page?
http://www.cellocelli.com/Recordings.htm

The info in the drop down isn't being loaded/found in example #2. I have the xml file in the folder with the .swa. The mp3,s are in files within that directory.

Thanks for any help!
derek

Loading A Youtube Player
I'm trying to add a two videos from youtube in my swf. So, only de frist it's working (I don't know why).

Obs: click "another video" to see him

See my code:







Attach Code

package {
import flash.display.*;
import flash.net.URLRequest;
import flash.events.*;
import flash.text.TextField;

import flash.system.Security;

public class ItsComplicate extends Sprite {
private var video:Loader;
private var window, buttonAnother:Sprite;
private var maskWindow:Sprite;

public function ItsComplicate() {
Security.allowDomain('*');

stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;

this.window = new Sprite();
this.window.name = 'window';

this.video = new Loader();
this.video.name = 'ItsComplicatePlayer';
this.video.load(new URLRequest('http://www.youtube.com/v/Dh_vuplOSR0'));

this.configureListeners(this.video.contentLoaderInfo);
addChild(this.window);
this.window.addChild(this.video);

this.buttonAnother = new Sprite();
this.buttonAnother.name = "buttonAnother";
this.buttonAnother.x = 10;
this.buttonAnother.y = 40;

var buttonAnotherText:TextField = new TextField();
buttonAnotherText.width = 80;
buttonAnotherText.y = 2;
buttonAnotherText.mouseEnabled = false;
buttonAnotherText.text = "Another Video";
this.buttonAnother.addChild(buttonAnotherText);
this.buttonAnother.addEventListener(MouseEvent.CLICK, buttonAnotherClick);
this.buttonAnother.buttonMode = true;
this.window.addChild(this.buttonAnother);
}

private function buttonAnotherClick(event:MouseEvent):void {
this.video.unload();
this.window.removeChild(this.video);
this.video = null;
this.video = new Loader();

this.video.name = 'ItsComplicatePlayer';
this.configureListeners(this.video.contentLoaderInfo);
this.window.addChild(this.video);
this.video.load(new URLRequest('http://www.youtube.com/v/Nby0Nnejo8k'));

}

function configureListeners(dispatcher:IEventDispatcher):void {
dispatcher.addEventListener(Event.COMPLETE, completeHandler);
dispatcher.addEventListener(Event.INIT, initHandler);
}

function completeHandler(event:Event):void {
/*event.target.content.stage.scaleMode = StageScaleMode.NO_SCALE;
event.target.content.stage.align = StageAlign.TOP_LEFT;
trace("loaded: "+ event.target.content.root);*/
}

function initHandler(event:Event):void {}
}
}

























Edited: 11/30/2007 at 10:23:23 AM by lucasfc

Mp3 Player - Loading 'undefined'..
Hello.

I made an mp3 player that works when I load it locally.. But doesn't work when I access it through the link: http://www.guildadimi.com/mp3Player3/mp3Player.swf

And here is the way I am embedding the object:

<font style="Verdana" color="white" size="3"><strong>audio</font><br><br><font style="Verdana" color="white" size="2">__</strong></font><br /><br />
<p align="center"><body tracingsrc="http://www.guildadimi.com/mp3Player3/mp3Player.swf" tracingopacity="100"><embed src="http://www.guildadimi.com/mp3Player3/mp3Player.swf" autoplay="true" controller="true" cache="true" width="160" height="80" /></p><br />

- I also uploaded this player a long time ago, and I have uploaded everything from the root - down since.. What's my issue? I 'hope' it's not server-related..

Thanks in advance.

FLV Player - Loading A Skin
Hey Guys,

BIG BIG BIG problem on my hands here... I have an FLV player that I pass a bunch of data into from an XML file. One of these things is the skin for the progress bar, volume bar, play/pause buttons, etc... I'm hopeful you know what I mean.

ANYWAYS, when I load the .swf in as "skin.swf" it's fine, but if it's "http://www.domain.com/dir1/dir2/skin.swf" the whole app messes up...

I can't get an error to trace, but the .swf just sits there at 0,0 of my app... where when I just use the .swf the buttons go to the spot I tell them to go...

Any ideas?

--d

EDIT: I should mention that when I run it in the IDE, no matter what, either the URL or direct, it works...

SWF Loading With Flash Player 5 But Not 6
We have Flash 5 files in our html which is displayed through a proprietary protocol.  Flash Player 5 loads and plays these movies fine.  If a user has Flash Player 6 installed, the movie does not display.  Our system detects that a flash file is there and it tries to retrieve the file but it finally just stalls and will never display anything.  Therefore, something in Flash Player 6 is not agreeing with our system.  Any ideas on work arounds or what the problem could be?

Problems Loading Flv Player
GREETINGS! I took Lee's tutorial on video basics(thank you Lee)I added an xml video playlist(thanks again Lee)my problem is when I load the player in my home page it loads fine, but the xml playlist doesn't load :? yet on its own page it works fine,just not in my home page,any thoughts thanks in advance. :wink:

Mp3 Player - Loading And Progress Bar
I'm working at one little mp3 player
Every thing is working fine, now I need to know how to make a loading bar and a progress bar for this mp3 player

I don't really know where to start...


This is the code I have until now...
Code:

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

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

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

// Position of music
var pos:Number;

// Load the songs
mySound.loadSound("sample.mp3", true);

// Play the MP3 File
function playSong():Void{
   mySound = 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 = mySound.position;
   mySound.stop();
}

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


// 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();
   }
}

Loading Flv In Swf Player Through Html
I have a flash player swf skin which loads up flv files. I have embedded it on a webpage which has links to some other flvs as well.

I want these links to load up their respective flv file in the player without reloading the html page. How can I achieve this?

Images Not Loading In Flash Player 6?
Hi,

I need to know how to load a image using linkage into a text box with flash player 6 as it only works with flash play 7?

cheers

Help With Loading An External Player From A Web Page
Hey,

Quick, simple question:

How do I tell a button to bring up a .swf file in an external flash player -- and to make it fullscreen?

Thanks.

Loading A 3d File Into Flash Player?
I know this is a 3d question but the problem is an actionscript one.

I have built a test 3d file which works. I want to load this test file into an MC within my pages. Have a look at the test file below:

http://www.moviecardpeople.com/test3d/test.html

Whilst testing the file I have found it only loads if the test.html file is loaded, the swf does nothing if clicked on or called. Using the standard loadmovie commands I have had no luck due to the fact it wants the html file to play the example.

I have tested using getURL, which works as long as it points towards the test link above, giving the option of opening in _blank or _self html page, which does not help.

I want the 3d file to open within my flash design. Am using MX Pro, and am stumped about how to do this. Effectively I want to load a HTML page within an MC.....thanks for any suggestions

(PS can post files if wanted, just let me know)

Can't Stop Player From Loading From Cache
I am working on a page the allows the user, once logged in, to upload information and a picture. The picture is saved as his/her username, and if they upload a different picture, the old one is still displayed unless they leave the site and come back 10+ minutes later.

I tried the HTML no-cahce headers and they don't even help load a new (up-to-date) version of the main movie.

This should have an easy solution, that Adobe should have addressed if they expect flash to be capable of being a dynamic site with user interactivity.

Any help on how to manipulate Flash into preventing it from using the cached files would be great, thanks.

[AS2] Updated... Loading Jpg From XML In Media Player
Round 3... hehe

Im coding a streaming radio - and passing some variables to the player - via an xml file.

the file streams correctly, the text (artist, title, album) passes ok - I was able to pass the jpg variable - but now, once the image is loaded - it overrides the player - and is the only thing that appears...

here is the code im using -


Code:
stop();
playlist = new XML();
playlist.ignoreWhite = true;
playlist.onLoad = function(success) {
if (success) {
_global.songname = [];
_global.songband = [];
_global.songalbum = [];
_global.songfile = [];
_global.songimage = [];
var i = 0;
while (i<playlist.firstChild.childNodes.length) {
_global.songname[i] = playlist.firstChild.childNodes[i].attributes.name;
_global.songfile[i] = playlist.firstChild.childNodes[i].attributes.file;
_global.songband[i] = playlist.firstChild.childNodes[i].attributes.band;
_global.songalbum[i] = playlist.firstChild.childNodes[i].attributes.album;
_global.songimage[i] = playlist.firstChild.childNodes[i].attributes.image;
trace(songname[i]+" "+songfile[i]+" "+songband[i]+" "+songalbum[i]+" "+songimage[i]);
i++;
}
// end while
}
// end if
_root.createEmptyMovieClip("sound_mc",1);
_root.sound_mc.sound_obj = new Sound();
_global.song_nr = 0;
_root.sound_mc.songStarter(songfile[song_nr],songname[song_nr],songband[song_nr],songalbum[song_nr]);
_root.loadMovie(songimage[song_nr],"picLoad",content);
};
MovieClip.prototype.songStarter = function(file, name, band, album) {
this.sound_obj.loadSound(file,true);
this.onEnterFrame = function() {
if (this.sound_obj.position>0) {
delete this["onEnterFrame"];
this._parent.display_txt.text = name;
this._parent.display_txt3.text = album;
this._parent.display_txt2.text = band;
} else {
this._parent.display_txt.text = "loading...";
this._parent.display_txt2.text = "loading...";
this._parent.display_txt3.text = "loading...";
}
// end if
};
this.sound_obj.onSoundComplete = function() {
song_nr == songfiles.length-1 ? (_global.song_nr=0, _global.song_nr=0) : (_global.song_nr++);
_root.sound_mc.songStarter(songfiles[song_nr],songname[song_nr],songband[song_nr],songalbum[song_nr]);
};
};
btn_play.onRelease = function() {
this._parent.sound_mc.songStarter(songfile[song_nr],songname[song_nr],songband[song_nr],songalbum[song_nr]);
};
btn_stop.onRelease = function() {
this._parent.sound_mc.sound_obj.stop();
};
btn_fw.onRelease = function() {
song_nr == songfile.length-1 ? (_global.song_nr=0, _global.song_nr=0) : (_global.song_nr++);
_root.sound_mc.songStarter(songfile[song_nr],songname[song_nr],songband[song_nr],songalbum[song_nr]);
};
btn_rev.onRelease = function() {
song_nr == 0 ? (_global.song_nr=songfile.length-1, _global.song_nr=songfile.length-1) : (_global.song_nr--);
_root.sound_mc.songStarter(songfile[song_nr],songname[song_nr],songband[song_nr],songalbum[song_nr]);
};
playlist.load("playlist.xml");
i can post theFLA if necessary...

XML code is as follows


Code:
<?xml version="1.0" encoding="UTF-8"?>
<songs>
<song name ="Do's and Dont's" band="Omerta Verse" album="Demo 2006" image="omv.jpg" file="overse.mp3" />
<song name ="Be My Baby Tonight" band="Someday Providence" album="The Hidden Vibe" image="sp.jpg" file="bbt.mp3" />
<song name ="Taffy (Acoustic Mix)" band="Taffy" album="All Tied Up" image="taff.jpg" file="taffy.mp3" />
<song name ="To A Better Day" band="A Turn of Phrase" album="Demo 2007" image="atop.jpg" file="better.mp3" />
<song name ="Wide Awake" band="Someday Providence" album="The Hidden Vibe" image="sp.jpg" file="wideawake.mp3" />
<song name ="Raise Up" band="Scripture" album="Demo 2007" image="scrip.jpg" file="raiseup.mp3" />

</songs>
Any help is appreciated!!!

Loading Multiple As2 In As3 Problems? Player Bug?
I've ran tests of loading AS2 swfs inside an AS3 swf. here are the details..

I have an AS2 swf that loads another AS2 swf inside it. If you're thinking of YouTube Chromeless player (which supports AS2 only, as of this time of writing), YES.

But, I tried to simulate the loading by creating two AS2 swfs, as2A and as2B, and
an as3 swf.

Tests:
1. as2a loads as2b -> Works!
2. as2a loads two instance of as2b -> Works!
3. as3 loads as2a only -> Works!
4. as3 loads as2a that loads as2b -> Works!
5. as3 loads as2a that loads two as2b -> Works!
6. as3 loads two as2a only -> Works!
7. as3 loads two as2b only -> Works!
8. as3 loads two as2a that loads as2b -> only instance #2 of as2a has as2b inside it.

I seem to notice that if you manually trigger the loading with a button, triggering test #4, and then clicking another button to trigger another test#4. the first instance is OK, the second instance seems to be OK as well, but control of the first instance is lost. They communicate using localconnection, but if i call another method in as2a from as3 to trace a variable value, it seems to be returning correctly. So i don't think it's been a localconnection issue.

anybody experienced the same thing? the source is at http://wapublic.mynd.ath.cx/multiple_as2_as3_test.zip

Loading Mp3 Player To My Flash Site
I have created a flash site, and an mp3 player for that page.
My problem is the amount of time it takes to load the page for people with dial-up connection. So I used the loadMovie script to load the mp3 player's SWF(mp3.swf) to a MC. I made a MC named box, with an instance name box, and put in on a frame labeled box with this script: loadMovie("mp3.swf", _root.box);

The player loads and starts playing. The stop/play or previous buttons do not work properly, but the next and volume buttons do work.

Does anybody know why this happens, or a better way to load my mp3 player to cut down on load time of the site

Loading An External Swf Music Player
Hello,

my problem is that all the action script contained in the musicplayer.swf seems not to work when I load the whole musicplayer.swf in the main movie.what can I do to resolve this?

here is the code:








Attach Code

//create movie clip for music player

this.createEmptyMovieClip ("loader_mc", -16998);
loader_mc._x=650;
loader_mc._y=30;
//create a MovieClipLoader
mcLoader = new MovieClipLoader();
//create an object for listener
loadListener = new Object();
//register the loadlistener as a listner of hte mcLoader object
mcLoader.addListener(loadListener);

//load the swf of jpg into the movie clip target
mcLoader.loadClip("flash/musicplayer.swf", loader_mc);

Loading Embedded Player Into Flash.
I can load an embedded player from flash, but it opens in a new window,...
how can i make it appear in my flash movie..?
is that possible at all.
thnx

Dynamic Loading Video Player
I'm currently in the process of building a dynamic loading video player but i'm having trouble with the following command:

myPlayer.contentPath = "

Loading A Music Player Into My Site....
I want to load my music player into my site and I just wanna make sure how to go about doing it....I feel like a moron lol...
To load this swf into my site do I just use...


ActionScript Code:
loadMovie ("player.swf");


right?????

Man my mind is soooooo blank right n now...someone help me out here lol!

Dynamically Loading Avi's Into A Flash Vid Player
Right now i'm trying to make a video player in flash that dynamically loads avi's, and possibly even wmv's into the player during runtime. I have it working currently by converting the movies to swf's, but the downfall to this is that it loses major quality and its utterly tedious and time consuming to convert so many videos into swf.

I was wondering if there is a better way to do this, such as maybe how to stream a video into flash directly from its original format.Thanks a bunch if someone can help me with this!

Loading Defualt Music Player
Question and Explanation:

I have a movie that has 10 buttons each button I want on (release) to load a music file using users default media player. Do I use this code:

on (release)
getUrl("filetomovie);
}
????????????????????????????????

Thanks in advance.
MT

Loading Few Swf In The Flash Player ( Levels )
Hi
I am loading different swf in the flash player (local HD) with getURL("second.swf", "_level0");
Because only the first movie got 2 scenes i am having problems giving the right level to the others swf.

the only way I can make it works is to assign at the end of the first movie the action getURL with the order to load the new swf in the _level0 but i got a 3 second of WHITE screen between the two clips.

I would like to replace every single swf next to the other in a smooth way.

structure

1 swf ( 2 scenes )
2 swf ( 1 scene )
3 swf ( 1 scene )
4 swf ( 1 scene)
5 swf ( 1 scene )
6 swf ( 1 scene )

all the movie got same stage size, black bgk, same frame rate ( f/s=10) fscommand full screen

Anyone can help me °?°
THANKS !!!

Loading PLS File Into A XSPF Player
I know its very very possible, Im pretty sure most of you know what a XSPF player is, I need to know how to load a pls file which is known as a winamp playlist file. Any help is appreciated.

Loading A Music Player Into My Site....
I want to load my music player into my site and I just wanna make sure how to go about doing it....I feel like a moron lol...
To load this swf into my site do I just use...


ActionScript Code:
loadMovie ("player.swf");


right?????

Man my mind is soooooo blank right n now...someone help me out here lol!

Dynamically Loading Avi's Into A Flash Vid Player
Right now i'm trying to make a video player in flash that dynamically loads avi's, and possibly even wmv's into the player during runtime. I have it working currently by converting the movies to swf's, but the downfall to this is that it loses major quality and its utterly tedious and time consuming to convert so many videos into swf.

I was wondering if there is a better way to do this, such as maybe how to stream a video into flash directly from its original format.Thanks a bunch if someone can help me with this!

IE Issue In Loading Music Player
Hi,

I am working on my new site, there I am facing one problem in loading my music player in IE.
Its giving some error on load of page.

Here is link, http://www.gigaturn.com/flash-work.htm

Please check and do let me know what is issue.

Thanks in advance.

- Jitendra

[tip] In-Flash Player Specific Loading
Hi, guys.


A lot of you may already be aware of this but I thought I would post it anyway.

In a nutshell: If you publish a SWF for Flash 6 ( for example ) then you can still load SWF files published for a later version of Flash into that movie.

What's the point? Well, this means that you could create a site for Flash 7 and then load enhanced sections of the site for Flash 8 etc without doing any JS based player version detection.

Let's say that your Flash 7 site had a gallery section in it. You could use a default Flash 7 SWF for displaying your images if the user didn't have Flash 8 installed, and you could take advantage of the BitmapData class and filters if the user did have Flash 8 installed.

Here's a quick example:


ActionScript Code:
var playerVersion:Number = getPlayerVersion();
 
if (playerVersion >= 8) {
    // the user has Flash 8+ installed
    viewerMC.loadMovie("image-viewer-f8.swf");
}
else {
    // the user has Flash 7 installed
    viewerMC.loadMovie("image-viewer.swf");
}
 
function getPlayerVersion():Number {
    return getVersion().split(" ")[1].split(",")[0]-0;
}

That's all there is to it really. You probably won't use this technique a lot but it's available if you fancy getting player-specific-creative with your Flash sites.

Video Player Loading Question..
Hey,

I got a video player on my index site but I would like to change the loading so it waits like 3-5 sec before the player starts to load.. this would help the site to load all the pictures and such before the video gets activated.
Is there a way to to this?

Loading Artist Photo In Mp3 Player
I Have a MP3 player and I want to know how to load the artist photo when the song is playing through XML coding if it is possible. i already have the artist and track loading but I need the album to load as while

Dynamic Loading MP3 In Flash Player
I am working on a website that has a large number of sound files. They are available through category pages and search results. While the pages are html based, I would like to embed a flash mp3 player on each page and be able to have the mp3 play in the embedded player.

So far all of the tutorials I have seen are for playing mp3 files that are listed in an xml document. Is anyone aware of a tutorial or information that might be helpful in my current project?

Please see the attached screen shot of what I have built so far. I would like to click on the "play" beside each title and have that play in the flash mp3 player at the top.

thanks advance for any suggestions.

Forrest

Loading Music Player Over Existing Levels
Ok, I have an intro which is on level 0.
The intro has eight buttons which load various MC's which are all on level 0, primarily because I want each to replace the intro when called. Now my problem is this...I have a music player.swf which I want to run through the entire duration, loading with the intro. I tried to load it with the intro on level 1, It loads fine, but when I load other MC's it does not appear. Do I have to re-load this clip with every MC (8 in all). Any input is appreciated. Thanks in advance-Chris

Dynamically Loading Mp3s Into The Flash Player
I notice that in the 'What's new?' section of Flash mx's help menu it talks about being able to 'Dynamically load mp3s into the flash player using actionscript'

Can anybody point me to a tutorial/paste me the script to do this?

Thanks a lot

Mark

Loading Quicktime Movie/player In Flash
I'm trying to load a quicktime movie inside of my flash web site. But I want it to load the player and have the player load the file.

(Usually when I import a .MOV it places all the frames in Flash and you have no Quicktime player.)

Is this possible?

Loading A Text File Externally Into A Mp3 Player
Hey guys.

After 3 years of being an AS surface user, I'm trying to dig a little deeper and utalize it as much as I can, but I'm sort of a newb. I've picked up a few books that focus solely on Actionscripting but Im not comfotable with it all just yet,

So here's my current roadblock:

I'm creating an mp3 player for a friend that sells records online. This player will be used for a huge selection of songs which will be updated on a regular basis.

I have the mp3 player working, but I need to load information about the songs that are playing.

For example: code number for purchasing, Song name, Title, and Artist.

Could I use LoadVars to load from an external txt file? I want to make it as easy as possible for him to update his songlists including song info. It would be perfect if I could design it to where all he needs to do is drop his MP3's in one folder along with a matching txt file that contained the description of the matching song.

Is this possible? if so, could you point me in the right direction?

BTW: Im using MX 2004

Loading Vars Textfile Flash Player 7
Hey guys,
I discovered that for some reason, when i try and load variables from a text file using flash player 7, it doesnt work. But if i do flash player 6 it does work.

The code is pretty simple.
stop();
loadVariables("test.txt", 0);

getURL("http://www.executivenewswatch.com/" +myURL);


any help would be very very appreciated. Thank you
Don

Preview In Flash Player, Loading Movies
Hi,
When I preview my movie in FlashPlayer, with the download settings to 56K, I have the feeling the player doesn't react like it should.

I load several Movies (all between 10 and 20 KB, and with their first keyframe blank and a stop on it) into different levels into a Main movie on the first frame of the main movie. I give them enough time (about 5 seconds) to load by showing a little intro in the main movie. Then I can call the loaded movies to play.

This worked fine on another site I made. But when I preview my current project in FlashPlayer (pressing ctrl+enter two times), I have the feeling that the external movies are not loaded right away, but only when the user calls them by, for instance, pressing the menu buttons.

And I think this will be different in the 'real world' situation, looking at another project i have done.

Could someone tell me please if this is a know problem, or am I making a mistake? It's a lot easier to check the speed of my site in the previewer than to keep asking people to check it who have a slow connection!

thank you!
Jerryj.

Issue When Loading External Swf. Flash Player 6 And 8
Hi,

I am using a tree component in flash and I wish, that it will load in external swf file. For that I use Loader Component. But I have one problem. When loading that tree in main swf it doesn't play scrollbars. I found that this tree is in flash player 6 and I use flash player 8. So, when I tried to publish that tree in flash player 8 it shows these errors:

**Error** Symbol=xmlParser MOVIECLIP, layer=Parser XML, frame=1:Line 386: ']' expected
obj.thisControl = thisObj['cont_' add cont_name];

**Error** Symbol=xmlParser MOVIECLIP, layer=Parser XML, frame=1:Line 419: Unexpected '}' encountered
}

I don't know, maybe this is not main problem, why scrollbars isn't showing in main swf.

Please help me to find a solution for this issue.

I put all files that are required to solve the problem. Thanks...

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