Mp3 Player Works W/ Broadband But Not W/ Dail Up?
My Mp3 player streams mp3 files into the play when a song is selected. Song select loads file but it's told to not play yet
the player appears and when play is pressed the song play along with, pause,stop,rewing,fforward. ect.
On broad band it functions fine. On dial up it will not.
The actionscript that loaded external mp3's cam from a tutorial in the book Flash Mx Actionscript Bible.
Here is the player published:: Mp3 Player
Here is the generic tutorial player published ::make sure that you type in dirtinthecitylive.mp3 into the text field
generic mp3 player
THanks for your help Patrick
FlashKit > Flash Help > Flash General Help
Posted on: 04-22-2003, 07:56 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Mp3 Player Works W/ Broadband But Not Dail Up?
My Mp3 player streams mp3 files into the play when a song is selected.
Song select loads file
but it's told to not play yet
the player appears and when play is pressed the song play along with, pause,stop,rewing,fforward. ect.
On broad band it functions fine. On dial up it will not.
The actionscript that loaded external mp3's cam from a tutorial in the book Flash Mx Actionscript Bible.
Here is the player published::
Mp3 Player
Here is the generic tutorial player published
::make sure that you type in dirtinthecitylive.mp3 into the text field
generic mp3 player
THanks for your help Patrick
Mp3 Player Works W/broadband But Not Dial Up?
My Mp3 player streams mp3 files into the play when a song is selected.
Song select loads file
but it's told to not play yet
the player appears and when play is pressed the song play along with, pause,stop,rewing,fforward. ect.
On broad band it functions fine. On dial up it will not.
The actionscript that loaded external mp3's cam from a tutorial in the book Flash Mx Actionscript Bible.
Here is the player published::
Mp3 Player
Here is the generic tutorial player published
::make sure that you type in dirtinthecitylive.mp3 into the text field
generic mp3 player
THanks for your help Patrick
Mp3 Player Works W/ Broadband But Not W/ Dial Up?
My Mp3 player streams mp3 files into the play when a song is selected.
Song select loads file
but it's told to not play yet
the player appears and when play is pressed the song play along with, pause,stop,rewing,fforward. ect.
On broad band it functions fine. On dial up it will not.
The actionscript that loaded external mp3's cam from a tutorial in the book Flash Mx Actionscript Bible.
Here is the player published::
Mp3 Player
Here is the generic tutorial player published
::make sure that you type in dirtinthecitylive.mp3 into the text field
generic mp3 player
THanks for your help Patrick
Works In Test Player But Not On Flash Player
Does anyone know why a SWF that loads another SWF works great in the test player but not in the Flash player?
The problem I have specifically is any _root references in the loaded SWF (calling mehods in the original Timeline) does not work in the Flash player, but works just fine in the Test Player.
Thanks
This Works In Player 6 But Not 8?
This Actionscript has been added to a basic movie clip -- the script was created so the MC will avoid the mouse. It works great when I publish in Player 6, but not 8. Please help. Thanks in advance.
Code:
onClipEvent(load){
homeX = this._x;
homeY = this._y;
magnet = 1000;
}
onClipEvent(enterFrame){
x0 = this._x;
y0 = this._y;
x1 = _root._xmouse;
y1 = _root._ymouse;
distancex = x1-x0;
distancey = y1-y0;
distance = Math.sqrt((distancex * distancex) + (distancey * distancey))
powerx = this._x - (distancex / distance) * magnet / distance;
powery = this._y - (distancey / distance) * magnet / distance;
forcex = (forcex + (homex - x0) / 2) / 1.66;
forcey = (forcey + (homey - y0) / 2) / 1.66;
this._x = powerx + forcex;
this._y = powery + forcey;
}
MP3 Player In 7 Works, Not In 8
how's it going everyone? basically, i made a progressive mp3 player with xml, it's on the site http://h108design.com .. it works fine in flash 7, but when in 8 it doesnt work right. so i tried to recode some things, but it still doesn't work. also none of my sounds work for anything. so, i don't think mysound.start() is working. and i looked around as.org.. for a long time.. trying to find anyone with the same situation.
here's the code that works in 7..
ActionScript Code:
mp3pic = function () {
this.createEmptyMovieClip("emc_mc", 10);
song = new Sound(emc_mc);
song.loadSound("s/mp3/"+mp3+".mp3");
song.start(0, 0);
player = 7;
shell_mc.menu_mc.nav_mc.move = 0;
surf = (Number(Number(ridiculous)-Number(1)));
};
where mp3 is set in the menu i've made with the xml. the function gets tripped when you click a button in the xml, it sends the variable to the function. the sound loads in progressively like i want it to, but the "song.start(0,0)" isn't working. to see what i'm talking about go to the site above and click on mp3 on the lower left side. if youre in fp7 it will work fine, if in fp8 the song will load but never start. the play button's scripts are: onRelease=function(){song.start((position),0)} where position is the song's current position. i have a start button which says the same thing but 0 instead of "position", to make it go to the start and play. everything with it works fine except the starting issue.
if anyone can help me out, that would be great. thanks.
Works As Player 6 But Not As 7 Or 8
This bit of code works if I publish as flash player 6, but not if I publish as flash player 7 or 8 (regardless whether I choose Actionscript 1.0 or 2.0).
if (pressv != 0) {
this.panel = this.panel + pressv;
pressv = pressv * 0.875;
if (pressv < 0.2 && -0.2 < pressv) {
pressv = 0;
}
}
theta = theta + _parent.speed;
xbit = Math.sin(0.01745329252 * theta);
ybit = Math.cos(0.01745329252 * theta);
this._xscale = ybit * this.panel;
this._x = xbit * this.radius;
this._alpha = 30 + (ybit + 1) * 50;
this._yscale = this.panel - 3 + (ybit + 1) * 3;
stack = Math.round((ybit + 1) * radius * 2);
if (stack == 100) {
stack = 101;
}
this.swapDepths(stack);
would anyone be able to point me in the right direction?
Thanks,
Chris
Broadband Vs. Dial-up?
Hi..just a few questions:
01. Anybody know what the scoop is these days on how many percent uses broadband and how many still logs on via dial-up?
02. My site is semi viewable on a dial-up connection exept the streaming mp3 sound clip gallery which really requires a fast connection. Is there any way around this...like using realplayer files or windowsmedia files?
03. My site is all in all about 1mb...is that: small, medium or large...as far as a normal flash sites goes?
Thanks in advance....
Broadband Users - Can You Help Me?
Hi to all the broadband users on here
I am looking for some feedback here, so I hope you can assist.
I have nearly finished a project and the preload time seems to take forever.
If you look HERE you will see the project.
I am testing on a dsl connection and it is pretty slow. How fast/slow is it on broadband?
Also does anyone know if it is possible to save gifs in a way that they load really quickly (black&white) and then bring in the full colour version or is there a way of doing this through action script?
There are 30 pages all with gifs in (ranging from 25k to 120k) does anyone have a suggestion of how I can set up some code so as the pages load into the main book movie and then reload the page with the proper content.
I think I need to get the file sizes down somehow.
Be grateful for any feedback, suggestions etc...
Cheers
D
Flv Is Jumpy, Even On Broadband
I am using a flash video with cue points to guide a user through ERAEurope.com. Even on broadband, it generally is very jumpy. I have two theories as to why:
(1) The video is long & big and is not progressively downloading properly;
(2) There is too much going on and it's sucking up the CPU power.
For the first theory, I thought that an easy solution would be to chop the video into 3 parts, and as the first part was playing, start preloading the second, then as the second was playing, start preloading the third. However, I cannot get this to work because when I go to load the second and third parts, all I get is sound.
For the second theory, I thought that if I just take out a bunch of the cue points, it would let up on the CPU power...however, it still seems to give me the same problem with just the video, so I decided that must not be it.
Another possible solution could be the compression settings -- I am using Sorenson Squeeze to compress the video. Does anyone have suggestions for settings? Unfortunately, I can't recall exactly what I used -- I know that it would probably help to know, though.
Thanks in advance for any and all help!!
Works In Player, Not In Browser.. ?
G'day..
I'm currently trying to finish off a flash project for a multimedia class at university..
In summary of it, the project involves me creating a "Login" / "Create Account" screen in flash..
When the user 'creates an account' they type in a desired username and password into input text fields in flash.. then presses a 'submit' button which, via a php script, creates a new record in a database..
They type in this username/password in the 'Login' section and press 'submit', which via another php script - checks if the username/password exist and match in the database..
If successful, the movie navigates to frame 50..
If unsuccessful, it navigates to frame 60..
When I export this movie - all functions work PERFECTLY when the movie is opened in Flash Player..
When the movie is embedded in an HTML page - reguardless of whether the username/password exist in the database or not, Login continuously fails..
To me this would imply that in the web broswer instance, the swf for some reason isn't connecting/accessing the PHP scripts..
Ive checked all references to the PHP scripts in the .fla file - and they are all absolute URL's, so its not a problem with relevant linking..
Any ideas or previous solutions to this problem that anyones got/come across?
Loader Works In Player 6 But Not 8
I've been using this loader for awhile, works fine when exported to Player 6 but for some reason it doesn't work when exported to Player 8. Am I using some code that has been depreciated or put out to pasture?
The script is attached to the Loader Clip:
onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
percent -= (percent-((loading/total)*100))*.25;
per = int(percent);
percentage = per+"%";
loadBar._width = per;
if (percent>99) {
_parent.gotoAndPlay(5);
}
}
Thanks!
Code Only Works On Player 6
I have this code that only works if published to player 6. It is an mc with a line that randomly goes up and down on the stage area. But if published to player 7 or 8 e moves only one time and stops. I would like to be able to publish it with player 8.
onClipEvent (load) {
w = 420;
h = 720;
xR = _parent._y;
x = random(w)-xR;
}
onClipEvent (enterFrame) {
if (x-_y>-5 && x-_y<5) {
x = random(w)-xR-_parent._parent._y;
}
_y += (x-_y)/20;
}
Thanks.
kuli
Code Only Works On Player 6
I have this code that only works if published to player 6. It is an mc with a line that randomly goes up and down on the stage area. But if published to player 7 or 8 e moves only one time and stops. I would like to be able to publish it with player 8.
onClipEvent (load) {
w = 420;
h = 720;
xR = _parent._y;
x = random(w)-xR;
}
onClipEvent (enterFrame) {
if (x-_y>-5 && x-_y<5) {
x = random(w)-xR-_parent._parent._y;
}
_y += (x-_y)/20;
}
Thanks.
kuli
Preloader Only Works In Player 7
I have a preloader for my web site and I want it to show the percent loaded. I could not get the percent to update, the animation for the preloader does work. Finally I tried dropping down from version 8 in the publish settings to version 7 and it works fine. I tried stripping almost every thing out of the site but I still need to drop down to version 7 for the preloader to work. If I start from scratch and build a simple site the same as my stripped down site the preloader will work in version 8.
Any ideas?
stop();
myInterval = setInterval(preload,100);
function preload() {
var current = _root.getBytesLoaded();
var total = _root.getBytesTotal();
var pctLoaded = Math.round(current/total*100);
pct_txt.text = pctLoaded;
if (current >= total) {
gotoAndPlay("main",1);
clearInterval(myInterval);
}
}
Works In Flash 6 Player But Not 8
I am working with a sample .fla file that produces the snow fall affect. The
issue is that it only works if my publish settings are set to Flash Player 6
rather than 8. I need it get working with my published settings set to 8.
Here is a link to the file and the actionscipt.
http://www.deconcept.com click on the one labeled SNOW
ACTIONSCRIPT:
fscommand("allowscale", false);
stop();
// -------------
stageWidth = 800;
stageHeight = 200;
this.createEmptyMovieClip("snowController", 0);
// --- i added this mask for display on deconcept.com - you are free to
comment it out and the snow will work fine, but don't forget to change the
stage height and width anyway
// --- create the mask to hide flakes that sway too far to the left or
right
this.createEmptyMovieClip("myMask", 9999999999);
myMask.beginFill(0x000000, 100);
myMask.moveTo(0,0);
myMask.lineTo(stageWidth, 0);
myMask.lineTo(stageWidth, stageHeight);
myMask.lineTo(0, stageHeight);
myMask.endFill();
snowController.setMask(myMask);
// -- end mask
snowController.createFlake = function() {
depth++;
this.attachMovie("flake", "flake"+depth, depth);
myFlake = this["flake"+depth];
myFlake._x = Math.floor(Math.random()*stageWidth);
myFlake._y = -5;
myFlake._xscale = Math.round(Math.random()*34);
myFlake._yscale = Math.round(Math.random()*34);
// ------ set vars for movement
myFlake.d = 1.7;
myFlake.a = 7;
myFlake.newX = myFlake._x;
myFlake.newY = myFlake._y;
myFlake.myXspeed = 0;
myFlake.myYspeed = 0;
myFlake.ySpeed = (myFlake._width + myFlake._height)/2;
// -------------------------------------------
myFlake.onEnterFrame = function () {
if (!Math.floor(Math.random()*8)) {
this.xSpeed = Math.round(Math.random()*10)-5;
}
this.newX += this.xSpeed;
this.newY += this.ySpeed;
if (this._y > stageHeight) { // this removes the clip once it reaches a
certain point
this.removeMovieClip();
}
this.myXspeed = ((this._x-this.newX)/this.a+this.myXspeed)/this.d; // this
is just movement code to make is move smoother
this.myYspeed = ((this._y-this.newY)/this.a+this.myYspeed)/this.d;
this._x -= this.myXspeed;
this._y -= this.myYspeed;
}
}
// ----------------
snowController.onEnterFrame = function () {
if (!Math.floor(Math.random()*3)) {
this.createFlake();
}
}
Works In Player V.6 But Not In V.8 Help Needed
We have a color picker tool which as soon as a color is selected, it generates its code, I've added a trace which shows the code of selected color in output window! Everything is just fine when we have choosen the player to publish in player V.6 but when I choose player V.8, it no more trace the code and instead says: undefinded
Strange think! I have no idea how this could happen! I have put the FLA here:
http://emstris.com/sample/colorpicker.fla
(Saved with flash CS3)
Anyone can make this work in player V.8 through publish settings, will make me damn happy!
Player Works, Why Not Browser?
Hey,
I am builiding a text box that loads an external txt file. When I play the movie in the Flash Player, it works fine. When I open up the movie in IE 5.5, it does not load the text files.
FYI I am using MX.
Dave
pedalspeed@hotmail.com[/email]
This Lil Script Works In Player 6
hello,
Howcome this script works in flash player 6, but not in Flash 7 player?
The stopDrag doesn't work at all. The startDrag is a bit funny to.
slideBut.onPress = function() {
slideBut.startDrag("this", false, 0, 400, 0, 0);
};
slideBut.onRelease = function() {
slideBut.stopDrag();
};
Code Works For Flash Player 6 Settings But Not For Flash Player 8...
Hi,
I'm pretty new to Action script and I have a problem here that I can't seem to figure out.
I have this Action Script Code which is attached to a simple movieclip, and it all works IF the general settings are set for Flash Player 6.
It does not work for Flash Player 7 or above, which is probably because this is Actions Script 1 Code...
I attached the .fla file and also here's the code:
Code:
onClipEvent (load) {
accel =0;
rate = 0.05;
trace(_y)
_root.ykoord=0;
}
onClipEvent(enterFrame) {
y=y*accel+(_root.ykoord-_y) * rate;
_y+=y;
if(Math.abs(_root.ykoord-_y)<1) { _y=_root.ykoord; }
}
Do I need to change the code ?
I wanna publish in Action Script 2 for either Flash player 8 or 9.
Thanx for your help in advance !!!
Mike
Code Works For Flash Player 6 Settings But Not For Flash Player 8...
Hi,
I'm pretty new to Action script and I have a problem here that I can't seem to figure out.
I have this Action Script Code which is attached to a simple movieclip, and it all works IF the general settings are set for Flash Player 6.
It does not work for Flash Player 7 or above, which is probably because this is Actions Script 1 Code...
I attached the .fla file and also here's the code:
Code:
onClipEvent (load) {
accel =0;
rate = 0.05;
trace(_y)
_root.ykoord=0;
}
onClipEvent(enterFrame) {
y=y*accel+(_root.ykoord-_y) * rate;
_y+=y;
if(Math.abs(_root.ykoord-_y)<1) { _y=_root.ykoord; }
}
Do I need to change the code ?
I wanna publish in Action Script 2 for either Flash player 8 or 9.
Thanx for your help in advance !!!
Mike
Publishing In Flash Player 6 Works. Flash Player 8 Doesn't.
I'm building a small quiz application in Flash 8. I started out targeting Flash Player 6 but have now decided that I need some of the features only available in Flash 8. When I try publishing to Flash 8 I get some weird behavior.
There aren't any AS errors, but where the application worked fine for Flash 6, now it gets stuck in a loop and never actually loads.
I've tried both Actionscript 1.0 and 2.0 as I'm pretty much just working in 1.0 on this project, and neither works in Flash 8.
Are there any known issues between version 6 and 8 that might cause something like this? I read on another forum that not initializing a numeric value that you're incrementing can cause this issue, but I've checked that and all my variables are being initialized to a value first.
Limiting Broadband Connection
Hi
I need to test how standard 512k broadband users will see my streamed video but my ISP recently upgraded me to a 2MB connection so I can't get a good idea of how the video will load.
Are the any Mac or PC apps that will slow my connection dwon so I can carry out these tests?
Thanks
Tab Order Works In Player- Not In Browsers..Ack
Anyone know why trying to set tab order would work in Flash player but not from in a browser window?
I have seen a number of ways to set the order, the following is what i choose:
onClipEvent (keyDown) {
if (Key.isDown(Key.TAB)) {
// fixed rates //
if (Selection.getFocus() == "_level0.MCvarBoxes.fixRone") {
Selection.setFocus("_level0.MCvarBoxes.fixRtwo");
} else if (Selection.getFocus() == "_level0.MCvarBoxes.fixRtwo") {
Selection.setFocus("_level0.MCvarBoxes.fixRthr");
} else if (Selection.getFocus() == "_level0.MCvarBoxes.fixRthr") {
Selection.setFocus("_level0.MCvarBoxes.jumRone");
} ....etc. etc.
The list is quite long. It works fine directly in Flash player. Does not from a browser.
Thanks for your help!!
Form Works In Player But Not HTML PLEASE HELP
I've been struggling with this for ages.
A form in Flash (I have beared it down to the minimum code to make it easier to diagnose).
I have a text field and the action script attached to the button is as follows:
on (release) {
recipient = "mail@bendesmond.com";
loadVariablesNum("http://www.bendesmond.com/cgi-bin/formmail.pl", 0, "POST");
}
Now if I open the swf file in the stand alone player on my PC it works fine, finds the cgi file and I promptly receive an e-mail with the input.
BUT and this is the bit that is driving me insane, as soon as I put it into an HTML file (whether that HTML file is created by Flash or Dreamweaver) it completely stops working, whether it is uploaded or running from my PC.
Please help. Cheers.
External Swf Works In Player But Not Browser
I have created a flash movie that is made up of 5 external swfs. The first timeline contains this ActionScript: loadMovie("livingrm.swf","host1");
"livingrm.swf" contains this ActionScript: loadMovie("stairway.swf","host2");
And so on. Each external file is called in this way, from the previously played timeline.
This works fine when the movie is played in Flash Player from our file server, but when it is within a browser window (Internet Explorer), the first swf ends and the ActionScript within its timeline, does not call the next movie.
I'm not sure what to do to remedy this situation. Any suggestions?
Code Works In Flash 5 Player - Not In 6 Why?
Hi,
I'm using this code to give an 'elastic' effect to buttons/mc's - The thing is, it works a treat when exported ash Flash 5 but not in Flash 6 format....Any ideas why? Thanks
accel=.8;
convert=.2;
Movieclip.prototype.sticky_load=function(){
_parent.released=0;
number=menunum;
iterations=5;
xstart=_x;
drag=0;
ystart=_y;
targetx=xstart;
targety=ystart;
r=1.5;
x=(2*Math.PI)*(number/iterations);
t=Math.tan(x);
mycol=new Color(internal);
_parent.drag=0;
}
Movieclip.prototype.sticky_update=function(){
if(this.hitTest(_root._xmouse,_root._ymouse,true) and _parent.drag<2 and _parent.released==0){
if(random(5)==0){
counter++;
addcol=random(151);mycol.setTransform({rb:addcol,g b:addcol,bb:addcol})
duplicateMovieClip ("line0", "line"+counter, counter );};deltax=_parent._xmouse-xstart;deltay=_parent._ymouse-ystart;targetx=(_parent._xmouse-deltax/r);targety=(_parent._ymouse-deltay/r);if(drag==0){mysound.attachSound("sound7");mysou nd.start();this.swapDepths(2);drag=1;_parent.drag+ +}} else if(_parent.released==0){_parent["inhead"+(number+1)]._visible=1;mycol.setTransform({ra:100,ga:100,ba:1 00,rb:0,gb:0,bb:0});targetx=xstart;targety=ystart; if(drag==1){this.swapDepths(0);drag=0;_parent.drag--}} else {targety=-170;targetx =(t*85)-56;if(_parent.trigger==1){this.removeMovieClip();} };
xpos = xpos * _parent.accel + (targetx - this._x) * _parent.convert
this._x += xpos
ypos = ypos * _parent.accel + (targety - this._y) * _parent.convert
this._y += ypos
}
Movieclip.prototype.sticky_press=function(){
if(this.hitTest(_root._xmouse,_root._ymouse,true)) {
r=10;
}
}
Movieclip.prototype.sticky_release=function(subnam e){
if(_root.pause==0){
if(this.hitTest(_root._xmouse,_root._ymouse,true)) {
_parent.atext = subname.toUpperCase();
_parent.released=1;
_parent.label=subname;
_parent.atext = subname.toUpperCase();
_parent.gotoAndPlay(_parent._currentframe+1);
};
}
}
Media Player Works Perfect On PC But Not Mac ?
hello all.
i've just spent all day trying some different things, but have gotten absolutely nowhere. i'm having a huge issue with my media player where it works absolutely beautifully on the PC, but not on the Mac. i've tested on two PCs, my mac and had 2 friends check it out on their macs. i've used this media player a lot before as it was a template from my company - the only difference between the two is that my songs are full length big files being loaded in versus the 30 second clips that i would use with the company. Here's what's happening:
www.goodnfilthy.com/indexDEV.html (click on the "Rock Over London, Rock on Chicago" section, only the "chillin" and "shake it" sections are working right now. disregard the "rock my socks off" section.
on the PC: you can hit the forward and backward buttons quickly without pausing and it will do exactly that, show a loader, and then play the song. this all works within seconds and has no lag time. it's exactly how i want it to work
on the MAC: if you hit the forward or backward buttons, it acts like its waiting until the entire next song is completely loaded before it will play it or something. the reason i think this is because a)it takes a LONG time to start playing the next song, but also b)it won't even show the loader. when it finally kicks in, it's like it doesnt need to show the loader because the whole song is loaded (by the way, the loader is set to only check for the first 80 frames of the song).
i've tried taking the exact file that was used for my company site (that works fine on the MAC) and have it call my songs instead of its original 30 second ones and it behaves the same troubling way. so i was thinking maybe its a size issue of my songs - but why would it work BEAUTIFULLY on the PC? do sound cards work differently on macs vs. PC's or something? does anyone have any thoughts at all?? thanks so very much. my brain hurts.
joanne
Works With Settings On Flash Player 6 But Not 7?
EDIT 2: I don't know what to look for really... can someone look through my code and tell me what might not be initialized? I have it posted at the bottom.
EDIT: I think it has something to do with initializing variables. I'll look at it.
I have a movie that is loaded into a parent movie. Originally, both were set to be published with flash player 6. I changed the parent one to player 7, and that works fine. Then I changed the child one to 7 and it doesn't work. It doesn't even do the first line of code on the first frame, which is to set a variable in the parent clip. What should I look for/what could be wrong?
I need it to be 7 because I'm using MovieClipLoader.
code: sendLoad(_root.currAd);
function sendLoad(idNum) {
dataRetriever = new LoadVars();
dataObject = new LoadVars();
dataObject.sendvariable = idNum;
dataObject.sendAndLoad("../dealers/adload.cfm", dataRetriever, "POST");
callOnLoad();
}
function callOnLoad() {
dataRetriever.onLoad = function() {
thumbscroller.maskedthumbs.counter = Number(dataRetriever.cfcounter)+1;
movieLoader = new MovieClipLoader();
mclListener = new Object();
mclListener.onLoadComplete = function() {
_root.phoneDisplay = "trued";
};
movieLoader.addListener(mclListener);
movieLoader.loadClip("URL", "_root.mc.child1.child2.child3");
loadThumbs();
};
}
function loadThumbs() {
_root.arr1 = new Array();
for (i=0; i<Number(dataRetriever.cfcounter)+1; i++) {
thumbscroller.maskedthumbs.attachMovie("displayThu mb", "displaythumb"+i, thumbscroller.maskedthumbs.getDepth()+i);
thumbscroller.maskedthumbs["displaythumb"+i]._x = 95*i;
thumbscroller.maskedthumbs["displaythumb"+i]._y = 0;
thumbscroller.maskedthumbs["displaythumb"+i].dynthumb.loadMovie(".."+dataRetriever["thumbpath"+i]+dataRetriever["thumbname"+i]);
thumbscroller.maskedthumbs["displaythumb"+i].fullimgname = dataRetriever["fullpath"+i]+dataRetriever["fullname"+i];
thumbscroller.maskedthumbs.totwidth = 95*(Number(dataRetriever.cfcounter)+1);
textLoad();
thumbscroller.maskedthumbs["displaythumb"+i].addedheight = 0;
thumbscroller.maskedthumbs["displaythumb"+i].index = i;
thumbscroller.maskedthumbs["displaythumb"+i].onEnterFrame = function() {
if (this._parent._parent._parent.loadedtexts == this._parent._parent._parent.thumbscroller.maskedt humbs.counter) {
this.loopallow = true;
}
if (this.johnny != this.index && this.loopallow == true) {
for (d=0; d<this.index; d++) {
this.addedheight += this._parent._parent._parent.textmenu.maskedtext["textbox"+d]._height;
}
this.johnny = this.index;
}
};
thumbscroller.maskedthumbs["displaythumb"+i].onRelease = function() {
this._parent._parent._parent.textmenu.maskedtext._ y = (-1*this.addedheight);
};
}
}
function textLoad() {
thumbscroller.maskedthumbs.counterdone = true;
textmenu.maskedtext.textbox.autosize = "center";
textmenu.dyntxtmask._x -= 1000;
attachMovie("loadingAnimation", "loadingAnim1", this);
loadingAnim1._x = textmenu._x;
loadingAnim1._y = textmenu._y;
loadedtexts = 0;
for (h=0; h<Number(dataRetriever.cfcounter)+1; h++) {
textmenu.maskedtext.addedheight = 0;
textmenu.maskedtext.createTextField("textbox"+h, h, 0, 0, textmenu.dyntxtmask._width, 0);
textmenu.maskedtext["textbox"+h].textColor = 0xFFFFFF;
thumbscroller.maskedthumbs["displaythumb"+h].adtext = dataRetriever["imgDesc"+h];
textmenu.maskedtext["textbox"+h].text = dataRetriever["imgDesc"+h];
textmenu.maskedtext["textbox"+h].autosize = "left";
textmenu.maskedtext["textbox"+h].multiline = true;
textmenu.maskedtext["textbox"+h].wordWrap = true;
thumbscroller.maskedthumbs["displaythumb"+h].moviename = h;
loadedtexts += 1;
if (loadedtexts == Number(dataRetriever.cfcounter)+1) {
for (j=1; j<Number(dataRetriever.cfcounter)+1; j++) {
holdvar = j-1;
textmenu.maskedtext["textbox"+j]._x = textmenu.maskedtext["textbox"+holdvar]._x;
textmenu.maskedtext["textbox"+j]._y = textmenu.maskedtext["textbox"+holdvar]._y+textmenu.maskedtext["textbox"+holdvar]._height;
textmenu.maskedtext.addedheight += textmenu.maskedtext["textbox"+j]._height;
}
textmenu.dyntxtmask._x += 1000;
removeMovieClip(loadingAnim1);
} else {
if (i == 0) {
textmenu.maskedtext["textbox"+h]._x = 0;
textmenu.maskedtext["textbox"+h]._y = 0;
}
}
}
}
Incompatability Flash 5 And Player 7 NOTHING WORKS
HI all
Has anyone else had this really devestating problem?
You spend 6 motnhs developing a project in flash 5 -whcih is abit old ok- but you know players will be backwards compatible so you finish and then try it out on player 7 and nothing works! no scrolling fucntionality no moving objects no nothing!
I am now looking at another 2 months of possible development time to update to code for flashplayer 7!
<insane laugh>MUAHHAHAAAHHAAA!</insane laugh>
---Thanks Macromedia!
I believe it is possible to compile my games in flash mx 2004 as flash 6 version which allows the games actionscript I have, to function and also allows me the shared objects that I need for my registration to database.
However this is a mighty blow to a person, with clients waiting and not having earned a brass fathing for 6 months of hard slog! including xmas and I am a mum of three!!!
So. If anyone can let me know, that flash MX 2004 (saving flash 5 code-using the flash player 6 saving option) will allow me the Shared object functionilty as well??????(which I am hoping is the case!)
All I can say Is "NOT FAIR MACROMEDIA!!!!!!"
- and I am really really annoyed- so much so I am taking the day off and buying myself a burger king and cola to drown my sorrows.
(bah-what diet?)
Shaf
Swf Works In Flash Player 6.0 But Not Payer 7.0?
I have a xml menu created in flash mx 2004 'AS 2.0' and while it seems to work fine in flash player 6.0 I need o get it working in flash player 7.0.
The main problem when it plays in Flash player 7.0 is that my positions for my created textfields which act as my buttons are all palced at different _x position, where they should all butt up against each other in a horizontal line placed at dfferent _xpositions depending on the length of each individual text position. as i said it all seems to work fine in flash player 6.0 but not in 7.0. I think its something to do with my TextFormat but not too sure can anyone help me please as this is becoming a nightmare!!
Code:
menu_fmt = new TextFormat("menu_font", 10, 0x000000, false, false, false, "", "", "center", 0, 0, 0, 18);
GenerateMenu = function (container, name, x, y, depth, node_xml) {
var curr_node;
var curr_item;
var curr_menu = container.createEmptyMovieClip(name, depth);
for (var i = 0; i<node_xml.childNodes.length; i++) {
// movieclip for each menu item
curr_item = curr_menu.attachMovie("menuitem_mc", "item"+(i+1)+"_mc", i);
// item properties assigned from XML
curr_node = node_xml.childNodes[i];
curr_item.action = curr_node.attributes.action;
curr_item.variables = curr_node.attributes.variables;
curr_item.createTextField("name_txt", 2000, curr_menu["item"+(i+1(i-1))+"_mc"].name_txt._width+curr_menu["item"+(i+1(i-1))+"_mc"].name_txt._x, 0, curr_item.name_txt._width=curr_item.name_txt.textWidth+20, 16), curr_item.name_txt.setNewTextFormat(menu_fmt), curr_item.name_txt.selectable=false, curr_item.name_txt.embedFonts = true, curr_item.name_txt.text=curr_node.attributes.name;
curr_menu["item"+(i+1(i-1))+"_mc"].name_txt._x
boxlength = curr_item.name_txt.textWidth+20;
curr_item.name_txt._width = boxlength;
btn_mc = curr_item.attachMovie("background", "bkgd"+(i+1)+"_mc", this.getNextHighestDepth(), {_x:i*50, _y:0});
btn_mc._x = curr_item.name_txt._x;
btn_mc._width = boxlength-1;
curr_item._y = 14;
curr_menu._y = 20;
curr_item._x = 10;
curr_item.trackAsMenu = true;
if (node_xml.childNodes[i].nodeName == "menu") {
// open a submenu
curr_item.node_xml = curr_node;
curr_item.onRollOver = curr_item.onDragOver=function () {
//var x = 10;
//var y = this._y+5;
trace(btn_mc);
GenerateMenu(curr_menu, "submenu_mc", x, y, 1000, this.node_xml);
var col = new Color(this);col.setRGB(0xcc9966);
};
} else {
curr_item.onRollOver = curr_item.onDragOver=function () {
curr_menu.submenu_mc.removeMovieClip();
var col = new Color(this);col.setRGB(0xcc9966);
};
}
curr_item.onRollOut = curr_item.onDragOut=function () {
var col = new Color(this);col.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0});
}
// any item, menu opening or not can have actions
curr_item.onRelease = function() {
Actions[this.action](this.variables);
CloseSubmenus();
};
}
// end for loop
};
// create the main menu, this will be constantly visible
CreateMainMenu = function (x, y, depth, menu_xml) {
// generate a menu list
GenerateMenu(this, "mainmenu_mc", x, y, depth, menu_xml.firstChild);
// close only submenus if visible durring a mouseup
// this main menu (mainmenu_mc) will remain
mainmenu_mc.onMouseUp = function() {
if (mainmenu_mc.submenu_mc && !mainmenu_mc.hitTest(_root._xmouse, _root._ymouse, true)) {
CloseSubmenus();
}
};
};
// closes all submenus by removing the submenu_mc
// in the main menu (if it exists)
CloseSubmenus = function () {
mainmenu_mc.submenu_mc.removeMovieClip();
};
// This actions object handles methods for actions
// defined by the XML called when a menu item is pressed
Actions = Object();
//loads swf specified in xml doc into level1
Actions.loadswf = function(swfFile) {
loadMovieNum(swfFile, "1");
};
// load XML, when done, run CreateMainMenu to interpret it
menu_xml = new XML();
menu_xml.ignoreWhite = true;
menu_xml.onLoad = function(ok) {
// create main menu after successful loading of XML
if (ok) {
CreateMainMenu(0, 0, 0, this);
message_txt.text = "message area";
} else {
message_txt.text = "error: XML not successfully loaded";
}
};
// load first XML menu
menu_xml.load("scripts/menu1.xml");
It Works In Flash Player But Not In Browser
Hi guys, I am desperate for some help any advice much appreciated! I would be
interested to hear if anyone else has had this problem and how they solved it?
I am working in MX pro 2004 and Learning Action Script and behaviours and have
created a moving character based on these bits of code.
onClipEvent(enterFrame){
if (Key.isDown(Key.RIGHT)) {
_root.sprite._x += 10;
}
(and so on for the up, right and left)
onClipEvent (keyDown) {
if (Key.getCode() == Key.DOWN) {
_root.sprite.gotoAndStop(1);
_root.sprite.down.play();
}
(and so on for the up, right and left)
onClipEvent (keyUp) {
if (Key.getCode() == Key.DOWN) {
_root.sprite.down.stop();
}
Now when I publish it and view it through a browser the character "locks" she doesn't
move properly or play the correct walking animations for each key press until I click
on her! Runs fine as far as I can see when I test the movie or play it through the flash
player, but really wanted it to be eventually uploaded onto the web.
Thanks in advance
Works With Flash7 But Not Flash 8 Player....Why?
Could someone tell me why this code works perfectly when I publisch with Flash 7. When change the publish setting to Flash 8 I get an error.
Here is the code:
if (Number(box_num) < Number(box_total)) {
duplicateMovieClip("box","box" add box_num, box_num);
setProperty("box" add box_num, _x, random(765));
setProperty("box" add box_num, _y, random(735));
setProperty("box" add box_num, _xscale, 100);
setProperty("box" add box_num, _yscale, 100);
setProperty("box" add box_num, _alpha, random(100));
box_num = Number(box_num)+1;
}
AND HERE IS THE ERROR:
**Error** Symbol=randomBoxes, layer=Layer 1, frame=2:Line 2: ')' or ',' expected
duplicateMovieClip("box","box" add box_num, box_num);
**Error** Symbol=randomBoxes, layer=Layer 1, frame=2:Line 3: ')' or ',' expected
setProperty("box" add box_num, _x, random(765));
Total ActionScript Errors: 2 Reported Errors: 2
I hope someone can help
Movie Works In Player Not Browser
Hello,
I made a Flash 8 movie with one frame. I added a behavior to the frame to “load graphic” and pointed it to a jpg. That’s all.
It plays fine (loads the graphic) when I test from Flash 8. I exported the movie. It plays fine (loads the graphic) If I open it from my HD with the player, but if I insert it into a web page (inside a table) using Dreamweaver the movie no longer works. It only gives me the white background, it will not load the graphic anymore.
Can anyone help with this? I know almost nothing about Flash.
Thanks very much
Gone Crazy On Mac Flash Player (works On PC)
I have just made a site in CS3 / AS3 and its is perfect! except when I get phone calls from people on macs who say's it goes flickery and crazy guns on their mac. It seems mac (even with the new flash player) does not like my site????
Is there something I'm missing os some special publishing thing I have to do or some magic fairy that fixes it?
I cannot go back to AS2 or flash player 8 because my site stops working...
Thoughts? Help?
Code Works When Exported As Player 6 But Not 7
Hi, Is there anything glaringly obvious that needs to be changed in the code below to enable it to work when exported as player 7 format. I've been looking for answers here: http://www.senocular.com/flash/tutorials/faq/ but couldn't spot anything...
Code:
fscommand("allowscale", "false");
Stage.scaleMode = "noScale";
targetPhoto._visible = false;
slides_xml = new XML();
slides_xml.onLoad = loadSlideShow;
slides_xml.load("album.xml");
slides_xml.ignoreWhite = true;
function loadSlideShow(success) {
if (success == true) {
rootNode = slides_xml.firstChild;
totalSlides = rootNode.childNodes.length;
currentSlideNode = rootNode.firstChild;
photos = new Array(totalSlides);
thumbs = new Array(totalSlides);
captions = new Array(totalSlides);
tx = 0;
for (i=0; i < totalSlides; i++) { // populate arrays and create thumbnails dynamically
photos[i] = currentSlideNode.attributes.jpegURL;
thumbs[i] = [currentSlideNode.attributes.jpegWidth,currentSlideNode.attributes.jpegHeight];
captions[i] = currentSlideNode.firstChild.nodeValue;
_root.attachMovie("thumb","thumb"+i,i);
_root["thumb"+i]._x = tx;
_root["thumb"+i]._y = 595; // using fixed Y coord
_root["thumb"+i].tindex = i;
tx += 22;
currentSlideNode = currentSlideNode.nextSibling;
}
// initialize values
currentIndex = 0;
targetWidth=thumbs[currentIndex][0]; // get width
targetHeight=thumbs[currentIndex][1]; // get height;
updateSlide();
}
}
function updateSlide() { // load photo, update caption and status fields
targetPhoto.loadPhoto(photos[currentIndex]);
caption = captions[currentIndex];
statusField = (currentIndex+1) + "/" + totalSlides;
}
function slideShow() {
if (currentIndex == totalSlides-1) { currentIndex = 0; } else { currentIndex++; }
targetPhoto._visible = false;
targetWidth=thumbs[currentIndex][0]; // get width
targetHeight=thumbs[currentIndex][1]; // get height;
updateSlide();
}
MovieClip.prototype.loadPhoto = function(fn) { // load external jpeg method + preloader
this.createEmptyMovieClip("holder", 1);
this.holder.loadMovie(fn);
this.onEnterFrame = function() { // NOTE: could use this to display percentage to user
if (Math.floor((this.holder.getBytesLoaded()/this.holder.getBytesTotal())*100) >= 100) {
delete this.onEnterFrame;
}
}
}
Works If Published For Flash Player 6, But Not For 8?
I have a scroll function that works if I publish for Flash Player 6, but not if I set it to Flash Player 8. It's set to Actionscript 2 for both versions.
Is anything in this code problematic for publishing for Flash player 8?
Code:
onClipEvent (enterFrame) {
X=(getProperty("_root.Norman", _x)-(_root.left))*(_root.factor);
newX = oldX - (X+oldX)/(_root.ease);
setProperty("_root.DealsRow.InnerMovie", _x, newX);
oldX = newX;
}
OR
Code:
onClipEvent (enterFrame) {
setProperty("_root.Norman.DarkIN", _alpha, "90");
setProperty("_root.Norman.LightIN", _alpha, "75");
if (status == 1) {
setProperty("_root.Norman.LightIN", _visible, "100");
setProperty("_root.Norman.DarkIN", _visible, "0");
}
if (status == 0) {
setProperty("_root.Norman.LightIN", _visible, "0");
setProperty("_root.Norman.DarkIN", _visible, "100");
}
}
on (rollOver, dragOver) {
status = 1;
}
on (rollOut, dragOut) {
status = 0;
}
on (press) {
startDrag(this, false, _root.left, _root.top, _root.right, _root.bottom);
}
on (release, releaseOutside) {
stopDrag();
}
If there's anything I need to change for it to work in FP8, that would be great!
Works In Flash Player, But Not Browser
Has anyone ever had a problem with playing files in a browser? I'm basically just loading multiple .swfs into multiple levels (nothing special), and when I test in a browser, it doesn't work...
I'm running OS X with MX and IE5.2... I can't figure out the problem since it runs fine locally in the player.
Any help is appreciated.
Thanks.
Preloader Works With Flash Player 6 Not 7
Hi,
I have a preloader that I am attempting to use. The presentation I am developing uses features that will only work with Flash Player 7 (and AS 2.0). When I run my main swf, the preloader does not work. Instead of seeing "23%" (or whatever) in the progress bar, I see "NaN%" and the progress bar does not grow--it's fully grown. I have my preloader placed in frame 1 of my main movie and then the rest of my presentation in frame 2. I have included the AS that is contained in my preloader clip:
//frame 1:
_parent.stop();
//frame 2:
kBytesLoaded = (_parent.getBytesLoaded() +
_level1.getBytesLoaded()) / 1024;
kBytesTotal = (_parent.getBytesTotal () +
_level1.getBytesTotal ()) / 1024;
kBytesRemaining = kBytesTotal - kBytesLoaded;
percentLoaded = 100 * kBytesLoaded / kBytesTotal;
percentRemaining = 100 - percentLoaded;
progress = Math.floor(percentLoaded) add "%";
loadBar._xScale = percentLoaded;
//frame 3:
if (percentLoaded < 99){
gotoAndPlay(2);
} else {
_parent.play();
stop();
}
Is there some code here that needs to be updated to work w/ 7?
Thanks in advance!!
Flash Player Works Then Doesn't
I have installed and re-installed the flash player probably 5 times now. It works for a while then stops working, it is still installed, it just doesn't want to run. What is the problem?
Flash Player Only Works Locally
Im using this tutorial to create a flash player that works for Flash Player 6 & 7.
http://www.communitymx.com/content/article.cfm?cid=12EBE
It works great when I test it locally but not after its been uploaded. I've tried local and absolute url's, again both work only locally. Funny thing is I had bought a third party component for this and it did the same thing. I thought there was something wrong with the component.
Any help would be greatly appreciated.
Amelia
Flash Vid Player Works Only In Windows
hey everyone. I am going to go out on a limb and start very general. I have a flash site i am about done with. It utilizes AJAX and flash. Bottom line is that the user invokes a flash player to show a video after clicking on the HTML video link he/she wants to see. Affter clicking, the swf (with video player) is embeded to the HTML dynamically. The issue i am having is that the user CAN scrub and interact with the video player on a windows computer (firefox or IE) but not on a mac. i think it may have to do with the dynamic html content, but first i thought i would ask around the forum to be sure it is not my player. I scripted the player myself, so it is not a Macromedia "default", persay...any thoughts or insight on the mac architecture to help pin this down?
Flash Movie Player Which Works With FMS 2.04
Hello
I installed a fms 2.0.4 on a linux box. The Admin panel and the daemon is runnig, i created a test site to connect to the fms, but i am not able to get the movie running. I used the flowplayer like described here to connect to my fms
http://flowplayer.sourceforge.net/howto.html
the index.php file holds that
<object type="application/x-shockwave-flash" data="FlowPlayerWhite.swf"
width="320" height="262" id="FlowPlayer">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="FlowPlayerWhite.swf" />
<param name="quality" value="high" />
<param name="scale" value="noScale" />
<param name="wmode" value="transparent" />
<param name="flashvars" value="config={streamingServerURL: 'rtmp://192.168.66.68/film', videoFile:'parade.flv'}" />
</object>
the player plays the flv when i dont use the fms, if i want to connect via the fms it connects but the movie is not playing
I adjusted the debugging and i found the following infos in the logfile
play
stream
2007-04-11
18:05:10
CEST
b.flv
12793
0
0
_defaultRoot_
_defaultVHost_
film
_definst_
192.168.66.21
rtmp
rtmp://192.168.66.68/film
http://devel.roland20.dev/FlowPlayerWhite.swf
WIN 9,0,16,0
140796424
6216
6391
b.flv
0
0.000000
0
0
0
127.0.0.1
0
404
rtmp://192.168.66.68/film
-
-
-
flv
-
rtmp://192.168.66.68/film/b.flv
rtmp://192.168.66.68/film/b.flv
-
-
I also got the examples from http://blogs.adobe.com/dreaming/2006/11/fms_resource_center.html
am am able to get the connection and the usage of this example writes a logfile
play
stream
2007-04-11
19:42:18
CEST
parade
18743
0
2
_defaultRoot_
_defaultVHost_
streams _definst_
192.168.66.20
rtmp
rtmp://192.168.66.68/streams
file://blalba/csimplePB.swf
WIN 9,0,16,0
140802496
6262
6391
parade
-
-
0
0
0
127.0.0.1
0
200
rtmp://192.168.66.68/streams
-
-
-
flv
-
rtmp://192.168.66.68/streams/parade
rtmp://192.168.66.68/streams/parade
-
-
here it tells me the diverense of 200, the first example got a 404 while play
In both ways i see the connection and the streaming in the admin panel, but i dont see the movie.
Can someone send me a Vhost.xml and other init files that i can get the example playing in all cased (I read about virtual key mapping, etc) and can someone tell me which player i can use for test implement to see my video?
All links etc are welcome. I also pay if someone can help me to get it working.
Additional Infos can also sent to me by email, so dont hesitate - marco.kammerer@uibk.ac.at
Bye
Marco
Mark this message as the answer.
BitmapData Works In IDE, But Not Flash Player
I actually have 2 BitmapData objects that are drawing 2 different movieclips, only one works in the browser, both work when testing in flash. Any ideas?
Flash Pro 8.0
Flash Player 9.47
Firefox 2.0.0.6
Code Only Works In Flash Player 6 And Below
Can anyone tell me why this ActionScript only works in Flash Player 6 and not 7 or 8? Thank you!
Attach Code
onClipEvent (load) {
this.elasticScale = function(tar, accel, convert) {
xScale = (xScale*accel)+(tar-this._xscale)*convert;
yScale = (yScale*accel)+(tar-this._yscale)*convert;
this._xscale += xScale;
this._yscale += yScale;
};
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.elasticScale(120, 0, 0.6);
} else if (!this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.elasticScale(100, 0, 0.6);
}
}
Movie Only Works In Flash Player 7?
Hello,
I have a movie that works just fine if its Publish settings are Flash Player 7, but it won't work if it's set to Flash Player 8 or 9.
This movie is a text entry quiz in which the enduser enters letters in input text fields. The variable names for the input text fields are "textEntry1" though "textEntry5".
There are two frames. In the first frame, the answers are set like this:
answer1 = "C";
answer2 = "A";
answer3 = "E";
answer4 = "B";
answer5 = "D";
answer6 = "c";
answer7 = "a";
answer8 = "e";
answer9 = "b";
answer10 = "d";
stop ();
The enduser enters choices in five text fields and then selects a "Submit" button.
On frame two, I have another text field called finalScore that has this scripting:
onClipEvent (enterFrame) {
rightanswer = 0;
for (var i:Number = 1; i<=5; i++) {
if ((_root["textEntry" + i] == _root["answer" + i]) or
(_root["textEntry" + i] == _root["answer" + (i+5)])) {
(rightanswer = rightanswer + 1);
_root["correct" + i].gotoAndPlay (2);
}else{
_root["correct" + i].gotoAndPlay (3);
}
}
finalScore = "You matched " + rightanswer + " of 5 correctly.";
}
Like I said, this works just fine if the Publish settings are Flash Player 7. Can anyone point out to me why it won't work if the Publish settings are Flash Player 8 or 9?
Thanks!
MP3 Player Works Locally, Not Publically
I downloaded this mp3 player: http://www.voetsjoeba.com/lab.php?i=16
I havn't modified the AS, only the vplayer.xml and the size, colors of the player. Now when I execute the swf file itself, the player works just fine, but it will not work embeded into an html file, the player says "Loading playlist, Standby"
I'm trying to figure out the problem, but since I'm a total AS n00b, I'm not in a position to troubleshoot the problem, so here's the webpage:
http://grafdude.dyndns.org/bhs/pages/news.html
As I say, if I play the swf movie it will work!
Any suggestions?
|