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




If A Movie Is Made For Flash Player 6, Will It Work On Flash Player 5?



I doubt this, but I made an web application using MX features and some of my users use solaris/linux/other strange OS and there is no Flash Player 6 for it. Do I have no choice but to stop using Flash MX features?



FlashKit > Flash Help > Flash MX
Posted on: 09-03-2003, 01:15 PM


View Complete Forum Thread with Replies

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

Need Movie To Work In Flash 4 Player As Well As A Flash 5 Player?
I have created a movie in flash 5 which works fine in a flash 4 player. All except one scene which uses a particular action script that flash 4 doesn't seem to like.
It's an actionscript to change the visibility of a novie clip using the _visible action.

Is there any way of converting these actions in order for them to work in a flash 4 player as well as a flash 5 player?

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

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

thanks
-Tukinu

Made A Media Player For My Mp3s But Will Not Work On Myspace
I created a fash media player for my myspace page using the media controller and media display components and uploaded to my webspace with the mp3s where it works fine. Then I added the normal flash code on my myspace with the web address as the source path. But alas the the sound does not play ...

Any ideas ?





























Edited: 02/02/2007 at 09:52:55 AM by elFranco

Can I Modify The Icon Of The Flash Projector Made Out Of Macromedia Flash Player?
i dont know if my question was right. here's what i wanted to do. for instance i have a swf file currently playing in macromedia flash player then i created a projector for that. can i modify the output (the projector...)? like changing the icon. like in vb6 you can choose your desired icon. do i need to download or even purchase a flash projector? is it possible?

Flash Player 6 To Work In Player 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");

Loader.close Doesn't Work In Flash But Does Work In Flash Player
When testing a movie in flash with simulate download the Loader.close() function doesn't seem to work when trying to cancel a load but it does work in a browser! You'll need to try to load a movie that has sound. The loader looks as if it stops but then the sound that's in the loaded movie will play, proving it hasn't stopped loading

add a button with instance name btnCancel









Attach Code

function onClickbtnCancel(e) {
// damn thing doesn't work in Flash but works online
ldr.close();
/* this stuff isn't even needed
ldr.contentLoaderInfo.removeEventListener(Event.COMPLETE, onCompleteHandler);

for (var i:uint=0; i < container.numChildren; i++) {
if (container.getChildAt(i) is DisplayObjectContainer && container.getChildAt(i).name == "movieclip loader") {
container.removeChildAt(i);
}
}
*/
}
btnCancel.addEventListener(MouseEvent.CLICK, onClickbtnCancel);

var container = new Sprite();
var ldr = new Loader();
ldr.name = "movieclip loader";
container.addChild(ldr);
var urlReq = new URLRequest("file.swf");

function onCompleteHandler(e) {
addChild(e.currentTarget.content);
}
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler);

ldr.load(urlReq);

stop();

//--------------------On another note. Anyone know why I can't add text format styles to List components?

import fl.managers.StyleManager;

// set style for all components such as the List
var tf = new TextFormat();
tf.color = 0x000000;
tf.font = "Verdana";
tf.size = 14;
//StyleManager.setStyle("textFormat", tf); // <- this works but that's not the point
StyleManager.setComponentStyle(List, "textFormat", tf); // this works fine for a TextArea, just not a List??

























Edited: 07/11/2008 at 10:08:19 AM by Cine-Med

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

WHY? My Flash Player Does Not Work
for some reason, when i open an exported swf, the movie will not load. all that is shown is the white box, and if you right click on it, it says the movie is not loaded! when i test the movie in in the Flash program, it works fine, but when i export it, it will not work! i can make swf from swift 3d, they work fine, but when i export it from flash, all that is shown is a white box!!! i tried reinstalling flash player, but it didn't help, what is the deal?!!!

here is a pic of the desktop

Why Will This Only Work In Flash Player 7
I have created a simple popup box that gets its text from a function call. It works great in Flash Player 7, but not Player 6. I can't seem to find any functionality that shouldn't work with player 6.

Could someone please take a look and see if they can spot where I have gone wrong. I need this to work with player 6.

Thanks.

_t

Flash Player Will Not Work In My IE7
After successfully installing IE7 I went to a site normally using a lot of flash and I got the message to install it. Which I did. However, IE7 for some reason either will not acknowledge it or there is an issue with the new Manage Add-On's section. I checked out the permissions and all of the security features and there seems to be no reason for Flash not to work. I went to the new IE7 site with no luck.

Any of you got any ideas?

Does Dot Notation Work In The Flash 4 Player?
Quote:




Originally posted by sapra
It is an endless debate...but yes you should go with flash 5 but just publish in flash 4...so you will learn dot notation programming and at the same time you will learn the interface. SO UPGRADE !!!!!!!!
Cheers
~G




OK.... does this mean that if I code in flash 5 but publish in flash 4 format the dot notation will work?

I must be doing something wrong because when I tried this and viewed the flash 4 file with the dot notation it did not work in the flash 4 player.

HELP!!!!

Will Flash MX (6) Swf Work In A Version 5 Player?
I created a swf using MX, but some people are having problems viewing it with Flash player 5. I can see it without any problems no matter which player I use.


ANy advice please.

Thank you.

Do Functions Work In Flash Player 6?
I made a loader.swf file that uses lots of functions, one after the other to load seperate bits of flash in. It works fine on my PC, i have flash player 7. But my mates PC has flash player 6, and it behaves very strangely on his. Lots of events get looped on his, and they shouldnt be.

Can anyone help?? Im using Flash MX (not 2004)

I can post my code here, if that helps?


Thanks in advance,
Ben.

Why Doesn't This Work With Flash Player >5?
Hi guys!

I was trying to make a sticky button and then I found an example here in movies section. Just that I can't make it work in Flash Player 6, 7 and 8. It works only if I change to FP5 in publish settings. Can anyone tell me why?
on root:
code:
accel = .8;
convert = .2;
Movieclip.prototype.sticky_load = function(menunumber) {
mysound = new Sound(this);
_parent.released = 0;
mynumber = menunumber;
iterations = 5;
xstart = _x;
drag = 0;
ystart = _y;
targetx = xstart;
targety = ystart;
r = 5;
x = (2*Math.PI)*(mynumber/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, gb: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");
mysound.start();
this.swapDepths(2);
drag = 1;
_parent.drag++;
}
} else if (_parent.released == 0) {
_parent["inhead"+(mynumber+1)]._visible = 1;
mycol.setTransform({ra:100, ga:100, ba:100, 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(subname) {
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);
}
}
};

on mc:
code:
onClipEvent (load) {
sticky_load(1);
}
onClipEvent(enterFrame) {
sticky_update();
}
onClipEvent (mouseDown) {
sticky_press();
}
onClipEvent (mouseUp) {
sticky_release("interactive");
}

See the attached fla. Thanks for any advice!

Poco

LoadVaribales Through Flash Player 6 Should Work.. Or Would It?
Hello,
I'm making a movie in which I load and send variables to an asp page using loadVariables.
I'm using Flash 8 as a workspace, however my end users have a restriction of Flash Player 6.
I'm trying to publish the file with the Flash Plyaer 6 compiler (in publish settings), resulting the movie works flawlessly in my computer (FP 7) but in every PC with FP 6 it doesn't load the variables!
The movie loads but the Variables won't load or send.
It's not a caching issue, and I even tried publishing at FP5 with no success.

Please advise how can I make Flash 8's loadVariables work with Flash Player 6!
Thanks.

p.s.
And I've tried using loadVars too but it just won't work...

GetURL Not Work In Flash Player 8
Hi all,..

I use getURL to trigger new page, it works in flash player 7 (publish setting --> flash player 7)
but not works in flash player 8 (publish setting --> flash player 7).

Here is the code :

on (release) {
getURL("javascript: openFullScreen('fc.html','newWin','status=1');");
}

What can I do to make it works in flash player 8


many thanks

Filereference Not Work In Flash Player 8
i am building a sample flash web application which involve using filereference for upload file, server side using jsp. however i find that it only work in flash 9, in flash8, my server side cannot get the file. since this application is for primary school student, it is better to work well in flash 8 environment. did anyone facing the same problem with me?? and how to solve it?

my code is very simple, just like the one in macromedia livedoc.

Flash Player 7 Doesnt Work ?
howdy all~

I'm coding and testing some features on AS2 and surprisingly found the swf published was still with flash player 6 not 7. i tried to locate the swf to 7 but failed, and I install fp7 at Macromedia.com and reboot computer as request, but finally that swf was with fp 6 yet, how can i fix it ???

My StandAlone Flash Player Not Work?
Any idea about that? Some days ago, the Stand alone flash player didn't work. When i try to view the swf file, i will see the menu shows: "about Flash Player 5".
It should be flash player 7. It's very inconvenient
But anything still work well in Flash MX and in the web browser.
Thx you,

Flash Player Doesn't Work
I have a dell laptop running win xp and the latest i.e. browser and I've installed the flash player and get that cute spinning sign saying it's installed but when I go to any site that uses flash (examples: youtube.com, karibyron.com) I can't do squate cause it says I need the player installed.

I have zero issues with my system outside of the wonder flash issue.

Any ideas? Thanks for the help!

Dave

Help Please, Loaded SWF Will Not Work In Flash Player
I have built a portfolio site in which one swf loads into another. I have them in the same directory and they work absolutely fine on the web.


However when I go to play the main movie in a desktop flash player, the 2nd swf will not load into the main movie...it just shows the loader component box and the progress bar as white shapes.
Everything works as it should on the website but not on the desktop flash player.
This is not an external swf but 2 swfs made by me that reside in the same directory.

Flash Player Doesnt Work
i updated my flash player and after that my video wouldnt play for example youtube videos now i try reinstalling the player i try checking if my javascripts are ebalbed and it was so is there anything alse i can do to make it start workign again?

Flash Player Doesn't Work
I have downloaded and installed Flash Player Plug-in 9.0r47 Universal on my Intel IMAC 'successfully'. However, when I go to websites on the internet I keep getting the message that I must install Flash Player Plug-In. The version is correct, the plug-in is in my library internet folder, but no go. Need help! Thanks, Ron

Flash Player Doesn't Work
i have a mac and when i try to watch flash videos on the browser (safari or firefox) the place where it is supposed to be is blank. then on firefox it asks me to get flip4mac, which i do, but it still doesn't play, any ideas?

Flash Player 6 To 8 Doesn't Work..
Hi kirupa friends..

Have a pretty weird problem.. I attached the file.. If you publish it in Flash Player 6.0 the text effect works.. but in Flash Player 8.0 doesn't..

GetURL Not Work In Flash Player 8
Hi all,..

I use getURL to trigger new page, it works in flash player 7 (publish setting -> flash player version 7) but not works in flash player 8 (publish setting -> flash player version 8).

Here is the code :

on (release) {
getURL("javascript: openFullScreen('fc.html','newWin','status=1');");
}

What can I do to make it works in flash player 8


many thanks

Flash Player 10 Doesnt Seem To Work With Ff 3
Im running xp with firefox's latest v3 version. Im having issues installing flash player 10.

I download it, close my browser, install it, the installer runs and lets you close it, seems to have worked. Returning to firefox, you get the same screen, prompting you to download the player again. I see the flash player in my list of installed programs and removed it, and did the process again.. but still no flash content.

edit - oops.. seems to be only a site specific issue. the flash player works on adobes site, but not on thedailyshow where I was having the problem..

Flash Player Will Not Work On My Computer
After being infected by popups in 10/03 and using ad-aware 6.0 full version to get rid of the popups, I have noticed recently (12/03) that flash player no longer works on my computer.  It shows that it is installed in add/remove programs, but fails to initialize.  I have uninstalled and tried reinstalling flash, but it freezes at the install screen.  I cannot play jeopardy or click on any links that need flash to work.  Any suggestions?

Filereference Not Work In Flash Player 8
i am building a sample flash web application which involve using filereference for upload file, server side using jsp. however i find that it only work in flash 9, in flash player 8, my server side cannot get the file. since this application is for primary school student, it is better to work well in flash 8 environment. did anyone facing the same problem with me?? and how to solve it?

my code is very simple, just like the one in macromedia livedoc.

Why Would A Script Work In The Flash Player But Not In A Browser?
I have a script that plays beautifully in the stand alone Flash player, it does nothing in my browsers. I tried IE and Netscape with the Flash 5 plugin installed in both of them.

Any ideas?

-scott

Why Doesn't My Preloader Work In Flash Player 6?
I found & have been using for months, a good example of loading multiple SWF's into multiple levels (completing each swf preload before moving to the next, and managing the task lisk via an array). Unfortunately, while it worked fine in Flash 5 player, I've had very intermittent functionality with Flash 6 player! Can anyone tell me why the following seemed to work fine in F5P & not in F6P?

The problem is that sometimes (but not always), when viewed in F6P, the loader finishes & the music starts playing, but the splash animation doesn't start (leaving you stuck on loader). To make me pull my hair out, other times (after clearing cache) it works fine. Typically it works best if you've been there & haven't cleared the internet cache.

Hopefully the following code from my loader.swf will help someone figure out if it's a loader issue or if something in my splash.swf would be interfering.

Thanks!

---
Frame 1:


Code:
// provide a list with all your movies to load and the levels to load into
moviearray = new Array("flash/audioloop.swf", 100, "flash/splash.swf",2);
// set the index of the first movie to load
actMovieIdx = 0;
// set the initial values of the loading movie display counters
fileNum = 1;
fileNumber = 0;
// provide a list with all the layman's terms for files being loaded
movieKindArray = new Array("audio","splash");
------
Frame 2:


Code:
// get the next moviename and level
moviename = moviearray[actMovieIdx++];
movielevel = moviearray[actMovieIdx++];
// load the given movie
loadMovieNum (moviename, movielevel);
movieKind = movieKindArray[fileNumber];
fileNumber = fileNum++ ;
----
Frame 3:
(blank - this frame allows time to pass)
----
Frame 4:

Code:
// get the actual loaded bytes
actBytes = eval("_level" add movielevel).getBytesLoaded() || 0;
// get the total bytes to load
totBytes = eval("_level" add movielevel).getBytesTotal() || 100;
// calculate the percentage loaded
percent = Math.round(actBytes*100/totBytes);
if (totBytes-actBytes>10) {
// more bytes available, keep on loading
gotoAndPlay (3);
} else if (actMovieIdx<moviearray.length) {
// if we got more movies to load
gotoAndPlay (2);
}
// else go to frame 5
-------
Frame 5:


Code:
// ready, go - here starts your movie
Frame 6:


Code:
// start audio
_level100.gotoAndPlay(2);
// start splash at beginning
_level2.gotoAndPlay(2);
stop ();

Mediaplayback Component - Does It Work Under Flash 6 Player?
When I publish my Flash 2004 Pro file using the mediaplayback component as a flash 6 file - it publishes with no error message - then when viewed in a browser under flash 6 plugin it does not work .
Is the mediaplayback component only a flash 7 thing??
Thanks in advance
Jools

Mediaplayback Component - Does It Work Under Flash 6 Player?
mediaplayback component - does it work under flash 6 player?

When I publish my Flash 2004 Pro file using the mediaplayback component as a flash 6 file - it publishes with no error message - then when viewed in a browser under flash 6 plugin it does not work .
Is the mediaplayback component only a flash 7 thing??
Thanks in advance
Jools

Change In Code To Work With Flash Player 7
i'm using this code in a text scroller in a movie clip :

/text:scroll = Number(/text:scroll)+1;

(along with other code ofcourse)

when i publish the movie in "flash 5" format it works but when i publish in "flash 7" it give me error msg regarding this line (the live above) telling me that the "/" was unexpected ...and the scroller doesn't work...anyone knows how to write this code in order to make it work with flash 7 player plz

Make This Work Whitin Flash Player 7 Or 8?
peepz,

can somebody rewrite it so it works whitin flash player 7 or 8?
i've added the fla!

i think it has something to do with the component or something....

thanks already peepz!




Code:
onClipEvent (load) {
defaultX = _x;
defaultY = _y;
newXpos = defaultX;
newYpos = defaultY;
_root.cross._x = defaultX;
_root.cross._y = defaultY;
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
xDifference = _root._xmouse - defaultX;
yDifference = _root._ymouse - defaultY;
newXpos = (_root._xmouse - xDifference / maxDistance);
newYpos = (_root._ymouse - yDifference / maxDistance);
} else {
newXpos = defaultX;
newYpos = defaultY;
}
newX = (newX * friction) + ((newXpos - _x) * ratio);
newY = (newY * friction) + ((newYpos - _y) * ratio);
_x += newX;
_y += newY;
//updateAfterEvent();
}

Actionscript Wont Work In Flash Player 8/9
Hi,

I have been using this actionscript fromhttp://www.flashkit.com/jump.php?ID=11151&type=movies

to make an interactive scrolling screen. It works perfectly fine if publish for flash player 6. However I have since upgraded to CS3 and I would like to incorporate use of the filters which obviosuly are usable if publish in flash player 6.

Can anyone help guide me as to what I need todo to make the code work in the most recent flash player?

Thanks.


Quote:




x1 = _x;
y1 = _y;
x2 = _parent._xmouse;
y2 = _parent._ymouse;
a = x2-x1;
b = y2-y1;
r = Math.sqrt(a*a+b*b);
escape_x = this._x-(a/r)*Radius/r;
escape_y = this._y-(b/r)*Radius/r;
turn_x = (x-x1)/2;
turn_y = (y-y1)/2;
this._x = escape_x+turn_x;
this._y = escape_y+turn_y;

Actionscript Wont Work In Flash Player 8/9
Hi,

I have been using this actionscript fromhttp://www.flashkit.com/jump.php?ID=11151&type=movies

to make an interactive scrolling screen. It works perfectly fine if publish for flash player 6. However I have since upgraded to CS3 and I would like to incorporate use of the filters which obviosuly are not usable if published in flash player 6.

Can anyone help guide me as to what I need todo to make the code work in the most recent flash player?

Thanks.


Quote:




x1 = _x;
y1 = _y;
x2 = _parent._xmouse;
y2 = _parent._ymouse;
a = x2-x1;
b = y2-y1;
r = Math.sqrt(a*a+b*b);
escape_x = this._x-(a/r)*Radius/r;
escape_y = this._y-(b/r)*Radius/r;
turn_x = (x-x1)/2;
turn_y = (y-y1)/2;
this._x = escape_x+turn_x;
this._y = escape_y+turn_y;

Does Sound Object Work In Flash 5 Player?
Hey, I'm trying to develop something for Flash 5 Player and nothing seems to work. Currently I'm having trouble with the following bit of AS which works fine if I export for Flash 6. But in Flash 5...no sound. Is there a specific way an mp3 needs to be encoded for Flash 5 or does it not even accept mp3s?

code:
// sound object
_soundbuftime=10;
jbsAudio = new Sound();
jbsAudio.loadSound("i/mix.mp3", true);
jbsAudio.setVolume(50);
jbsAudio.start();


I've uploaded an fla so you can see. you'll need to provide an mp3 and chuck it in a folder named 'i'. I can't figure out what the problem is. Thanks for your help.

Won't Work In Flash Player 8 Genius Needed
Hi all,

A while back i asked if any body knew how to do this:
http://www.actionscript.org/resource...ami/Page1.html
ie made what i wanted from the tutorial - thanks very much

Now from making it, it will only work in flash player 4 as the script is old i have designed my whole site to be used in Flash Player 8, can anyone see what i need to do?

There is only a couple of alterations to be made i think!
This is the code that will need changing:

colnum = "1";
startnum = 1;
endnum = 19;
numberofItems = 19;
mouseposX = int(getProperty("../dragscale", _x));
mouseposY = int(getProperty("../dragscale", _y));
i = startnum;
m = startnum;
filledSpace = 0;
gapspace = 0;
if (Number(myInit) == Number(FALSE)) {
//on first run make an array of all the text Y Pos.
while (Number(i)<=Number(endnum)) {
set("textY" add i, getProperty ("text" add i, _y ) );
i = Number(i)+1;
}
i = startnum;
myInit = TRUE;
boundleft = getProperty ("../boundbox" add colnum, _x);
boundright = boundleft + getProperty ("../boundbox" add colnum, _width) ;
boundtop = getProperty ("../boundbox" add colnum, _y);
boundbottom = boundtop + getProperty ("../boundbox" add colnum,_height);
if (Number(mouseposX)>=Number(boundleft) and Number(mouseposX)<=Number(boundright) and Number(mouseposY)>=Number(boundtop) and Number(mouseposY)<=Number(boundbottom)) {
while (Number(i)<=Number(endnum)) {
myDif = (eval("textY" add i) ) - (mouseposY - boundtop);
//percentage increase
scaleAmount = 250-((myDif*myDif)/16);
alphaAmount = 100-((myDif*myDif)/6);
if (Number(alphaAmount)<50) {
alphaAmount = 50;
}
if (Number(scaleAmount)<100) {
scaleAmount = 100;
}
setProperty("text" add i, _xscale, scaleAmount);
setProperty("text" add i, _yscale, scaleAmount);
setProperty("text" add i, _alpha, alphaAmount);
i = Number(i)+1;
}
//*** add up total Y pixels taken by text ***
while (Number(m)<=Number(endnum-1)) {
filledSpace = filledspace + getProperty ( "text" add m, _height);
m = Number(m)+1;
}
//*** find total Y pixels not taken by text
totalheight = getProperty ( "text" add endnum, _y) - getProperty ( "text" add startnum, _y);
gapSpace = totalheight-filledspace;
avgDistance = gapSpace/numberofitems;
m = Number(startnum)+1;
while (Number(m)<=Number(endnum-1)) {
setProperty("text" add m, _y, (getProperty ( "text" add (m-1), _y) + getProperty ( "text" add (m-1), _height)) + avgdistance);
set("watchheight" add m, getProperty ( "text" add m, _height));
m = Number(m)+1;
}
} else {
//*** shrink text back when mouse rolls out
i = startnum;
while (Number(i)<=Number(endnum)) {
if (int ( getProperty ("text" add i, _yscale ) ) >= 100) {
//return scale back to original state
setProperty("text" add i, _yscale, int ( getProperty ("text" add i, _xscale ) ) - 1);
setProperty("text" add i, _xscale, int ( getProperty ("text" add i, _yscale ) ) -1);
}
if ( getProperty ("text" add i, _y) < eval("textY" add i)) {
//return y position back to original state
setProperty("text" add i, _y, int ( getProperty ("text" add i, _y ) ) + 1);
}
if ( getProperty ("text" add i, _y) > eval("textY" add i)) {
setProperty("text" add i, _y, int ( getProperty ("text" add i, _y ) ) - 1);
}
if ( getProperty ("text" add i, _Alpha) > 50) {
setProperty("text" add i, _alpha, int ( getProperty ("text" add i, _alpha ) ) - 1);
}
i = Number(i)+1;
}
}

REALLY appreciated if someone can help me
Thanks

How Can I Get This Simple Preloader To Work In Flash Player 7
I have finally found a preloader that I like and works well and fairly simple in code....but for some reason it only works if published in Flash Player 6....I would like to publish it in Flash Player 7 and eventually 8 but it stops working. I have been over it and over it and cant find why it would stop working...

am I missing something simple....can anyone tell me how to make this work for Flash Player 7 without completly rewriting the code.

the file is attached

thanks to anyone who can help!!

Flash Player 9 Doesn't Work On My Server
We host several flash ads on our servers that affiliate websites link to remotely. Browsers with Flash 9 can view the banners but when clicked, nothing happens (they're suppossed to link to our homepage). The banners work correctly in browsers running Flash 8 and below. Also, the banners work in Flash 9 when I host them on a different server.

So this all leads me to think that the problem is on the server end, but our server guys don't know what the problem is. Any suggestions?

Adobe Flash Player Doesn't Work
Ok, so I am using Windows Vista, with Firefox version 3, and when I download adobe flashplayer it says that I need to close all other browser windows, yet all windows have been closed, and I can't continue with the installation. Can anyone help me?

Why Does My Button No Longer Work In Flash Player 8?
Hi,
I have built a site in Flash MX a while ago. Now I’d like to upgrade things a bit while testing the new Adobe Flash CS3.

To be able to use a new function (“anti-alias for readability”) the program warns me that “this feature is not supported by Flash Player 6. To use this feature, you must target Flash player 8.”

So I change the setting to Flash Player 8, leaving Actionscript to version 2.0.

However, now one of my main menu buttons no longer works! When I change settings back to Flash Player 6, things are fine again. What am I overlooking?

Below is the script for the button (which has an instance name). Does anything change with the actionscript in CS3?

Thanks for any advise!


on (rollOver) {
gotoAndPlay("s1");
}
on (releaseOutside, rollOut) {
gotoAndPlay("s2");
}
on (release) {
_root.Play();
}































Edited: 05/05/2007 at 10:32:35 PM by Caspt

Script Doesn't Work In Flash Player 7
Hi All,

Does anybody know why this script won't work in Flash Player 7?

frame 1:

ActionScript Code:
spring = .5;speed = 2;MovieClip.prototype.bounce = function(targetY){    diff = targetY - this._y;    growth += diff*speed;    growth *= spring;    this._y += growth;}

on the "circle" mc:

ActionScript Code:
onClipEvent(enterFrame){    bounce(targetY);}on(release){    this.targetY = random(300);}


Works fine in player 6.

Thanks for your time.

Falling Snow 2.0... Does Not Work In Flash 7+ Player
I am using the Falling Snow 2.0 scripting for some effects in my swf, but come to find out that Flash 9 player will not play the effects unless it is published as a Flash 6 document. The scripting bogs it down and then gives the error message saying the script is running rampant.

That being said, does anyone know how to fix this, or have a repalcement script that will work for the same effect when published as a flash 8 document? I really need to use the abilities of Flash 8, but having this falling snow script is pretty important to my sites design.

Anyone have any ideas? Thanks

Sean D.

Does Sound Object Work In Flash 5 Player?
Hey, I'm trying to develop something for Flash 5 Player and nothing seems to work. Currently I'm having trouble with the following bit of AS which works fine if I export for Flash 6. But in Flash 5...no sound. Is there a specific way an mp3 needs to be encoded for Flash 5 or does it not even accept mp3s?


ActionScript Code:
// sound object_soundbuftime=10;jbsAudio = new Sound();jbsAudio.loadSound("i/mix.mp3", true);jbsAudio.setVolume(50);jbsAudio.start();


I've uploaded an fla so you can see. you'll need to provide an mp3 and chuck it in a folder named 'i'. I can't figure out what the problem is. Thanks for your help.

Action Script Will Not Work Above Flash Player 6 Please Help
Can some one please help me, I have been working with an old action script file that works in flash player 6 but not any thing above that. Any help would be great. And if some knows how to make it more efficient that would be great as well .As a side note the spline function no longer works either.

If I change the player version it works fine.

I have been staring at this for days...

onClipEvent (load) {
function x(t) {
var __reg1 = t;
if (__reg1 != 0 && __reg1 != 1) {
xspline = Math.pow(1-__reg1, 3)*x0+3*Math.pow(1-__reg1, 2)*__reg1*x1+3*(1-__reg1)*Math.pow(__reg1, 2)*x2+Math.pow(__reg1, 3)*x3;
}

if (__reg1 == 0) {
xspline = x0;
}

if (__reg1 == 1) {
xspline = x3;
}

return xspline;
}

function y(t) {
var __reg1 = t;
if (__reg1 != 0 && __reg1 != 1) {
yspline = Math.pow(1-__reg1, 3)*y0+3*Math.pow(1-__reg1, 2)*__reg1*y1+3*(1-__reg1)*Math.pow(__reg1, 2)*y2+Math.pow(__reg1, 3)*y3;
}

if (__reg1 == 0) {
yspline = y0;
}

if (__reg1 == 1) {
yspline = y3;
}

return yspline;
}

function evalangle(x1, y1, x2, y2, linedist) {
lineangle = Math.asin((y2-y1)/linedist)*180/3.14159;
if (x1-x2>0) {
lineangle = 180-lineangle;
}

return lineangle;
}

function drawLine(xp1, yp1, xp2, yp2, linedepth) {
var __reg1 = lineDepth;
_parent;
var __reg3 = xp1;
linedist = Math.sqrt((xp2-__reg3)*(xp2-__reg3)+(yp2-yp1)*(yp2-yp1));
lineangle = evalangle(__reg3, yp1, xp2, yp2, linedist);
_parent.attachMovie("line","line"+__reg1,__reg1);
_parent["line"+__reg1]._x = __reg3;
_parent["line"+__reg1]._y = yp1;
_parent["line"+__reg1]._rotation = lineangle;
_parent["line"+__reg1]._xscale = 10*linedist;
}


function drawSpline() {
i = 0;
while (i<nsplinepoints) {
xpspline = x(t);
ypspline = y(t);
t = t+step;
++i;
}

i = 0;
while (i<nsplinelines) {
drawLine(xpspline,ypspline,xpspline[i+1],ypspline[i+1],i);
++i;
}

var t = 0;
}

function moveflower() {
_parent;
var crdzx = _parent._xmouse;
if (_parent._ymouse<0) {
var crdzy = _parent._ymouse;
}

if (crdzx>crdx) {
crdx = crdx+(crdzx-crdx)/20;
}

if (crdzx<crdx) {
crdx = crdx-(crdx-crdzx)/20;
}

if (crdzy>crdy) {
crdy = crdy+(crdzy-crdy)/20;
}

if (crdzy<crdy) {
crdy = crdy-(crdy-crdzy)/20;
}

if (crdx == 0) {
crdx = 1;
}

if (crdy == 0) {
crdy = 1;
}

distance = Math.sqrt(crdx*crdx+crdy*crdy);
angle = Math.asin(crdx/distance)*180/3.14159;
x3 = radius*crdx/distance;
y3 = radius*crdy/distance;
_parent.dragme._rotation = angle;
_parent.dragme._x = x3;
_parent.dragme._y = y3;
}

var nsplinepoints = 11;
var nsplinelines = nsplinepoints-1;
var step = 1/nsplinelines;
var t = 0;
var x0 = 0;
var x1 = 0;
var x2 = 0;
var y0 = 50;
var y1 = 33;
var y2 = 0;
var radius = 40;
var xpspline = [];
var ypspline = [];
}
onClipEvent (enterFrame) {
moveflower();
drawspline();
}

Script Doesn't Work In Flash Player 7
Hi All,

Does anybody know why this script won't work in Flash Player 7?

frame 1:

ActionScript Code:
spring = .5;speed = 2;MovieClip.prototype.bounce = function(targetY){    diff = targetY - this._y;    growth += diff*speed;    growth *= spring;    this._y += growth;}

on the "circle" mc:

ActionScript Code:
onClipEvent(enterFrame){    bounce(targetY);}on(release){    this.targetY = random(300);}


Works fine in player 6.

Thanks for your time.

Flash Player Wont Work On Websites?
When I visit a site that has flash init like youtube.com it asks me to upgrade to version nine of flash player but I already got it. It also asks that I may of turned off javascript but I didn't? What can I do??

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