Flash Player 6 Action Scripts Update Help.
I have some code that needs to be updated to work in Flash Player 8. I've received advice, but because I'm still learning Action Script I'm not able to make sense of it.Here's the code that needs to be updated:on (rollOver) {_root.caption("view project", 2);}on (rollOut, dragOut) {_root.remove_caption();}on (release) {if(_root.xkoord>-538) {_root.xkoord-=221;}if(_root.xkoord==-758) {_root.xkoord=126;}}The advice given was: "It look like not all the script is shown (as you are calling method called 'caption' and there is no caption method there)It looks like the xkoord variable is not initialized .. it needs to be for SWF7 or later.It is also dangerous code there with an == instead of a < in the on(release)"I'm reading documentation and still not having any luck. If someone could help me make a little more sense to this I would really appreciate it!Thank you!
Adobe > ActionScript 1 and 2
Posted on: 02/28/2007 10:08:13 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Player 9 Update-Firefox Update And Bandwidth
Hi,
I have a site of mine online which I created some 2.5 years ago probably with Flash MX--Recently, my hosting company informed me that I had allotted my bandwidth allowance--I had recently installed the latest version of the Flash Player as well as the latest version of Mozilla Firefox--It seems that through viewing my site in the updated Firefox browser with the updated player there was some code in my swf which apparently kept trying to download the mp3 file --Some 271769 hits in a few hours resulting in using 1341.07 GB of bandwidth, all originating from IP address, btw--The hosting company is threatening to charge me at the rate of $10 per 5GB over my allotted bandwidth-I get 20GB free per month--That means they are planning to charge me over $2,600 --
Anyway, here is the code:
Code:
jimi = new Sound();
jimi.loadSound("jimi.mp3", true);
jimi.onSoundComplete = function() {
jimi.loadSound("jimi.mp3", true);
};
Which has not caused any problems in over 2 years and countless viewings until the recent installations of the most current security updates to the Flash 9 Player and Firefox-
Does anyone know if the code is now incompatible with the new player and/or firefox and if there is a way to fix this without redoing the entire site in AS3?
Thanks
---Yvette
Flash Mx Player Update
hey there, i know theres a flash player update for flash mx that updates the browser and standalone and flash intern player, is there a new one for that now that flash player 7 is released? i looked on the macromedia site but could only find the player 6 r79 update...
thanks!
.Christoph
How To Update The IDE Flash Player?
Hi,
I know it's supposed to be easy, but it turned out to be problem. :-(
I wan't to be able to view h264 encoded mp4 videos when I test my site in Flash CS3. However, I can't find a way to update the player. I tried googling it, cause I thought it should be really common case, but I found no useful results.
I have current 9.0.124 players working in both IE and FF. The only problem is the test player in Flash IDE.
Update Flash Player?
Not sure if this is the correct place to post this problem but...
So I have built a couple of sites in flash cs4 using as3.0 and they work just fine on my computer as swfs. I have built a quick site in dreamweaver cs4 where all I do is embed the swf into an html page. I test in the browser and it works great everytime. I upload the page to my server with the js active content scripts etc... and no dice. it always says that I need a newer version of flash to view the content on the page. I don't understand. I have updated and still the same warning. The pages have been published to both player 9 and 10 but still the same problem. As a note I am using bluehost if that makes any difference.
You can go to www.schmacklab.com to view the source code of the html page if you would like. Does anyone else have this problem? I never had this problem with cs3 using as3.0. Am I forgetting something really stupid? This is just really frustrating.
Update My Flash Player Please
Okay I feel really dumb asking this but why in the world doesn't my flash player update? A friend sent me a swf made in flash 8. I have mx04. When I launch the swf it runs in flash player 7! I have downloaded the most recent player and have seen other stuff made in flash 8 but for some reason i can't view all the objects in his swf because it won't run in an updated player. Grrrr . . . I feel so stupid, what am I doing wrong?
thanks all
Update Flash IDE Player
I am trying to update flash ide player in cs3. I downloaded players frome here and put it into players directory in my installation. So player in browsers works and is new, and also when i open swf from hard drive, but when i preview fla in flash it's still old player, how to update it?
http://www.adobe.com/support/flashplayer/downloads.html
Auto Update To Flash Player 8
hello, is there a way to have flash player auto update to the latest version without people having to download the plugin?
Flash Player Update Broke My Swf :mad:
Hi,
I recently updated my flash player and my movie has stopped working!!
I get the following errors
ActionScript Code:
ReferenceError: Error #1069: Property setRenderStyle not found on fl.controls.List and there is no default value.
at MethodInfo-738()
I definitely definitely havnt changed any code that might have of caused this.
I installed the update, went to run my movie, and then bang! No working movie.
Could anyone help me figure out what the hell is going on?
How Does A User's Flash Player Update?
I've read that the Flash Player plugin for Internet Explorer gets updated automatically through ActiveX if the user visits a site that requires a more current Flash Player (and specifies it in its html code).
As for my question, how does the Flash Player get updated if the user is using a browser other than IE on Windows? Does the "codebase" attribute work for these browsers as well, or on a Mac? If not, is there a way we can ensure that everybody viewing our content is doing so with an up-to-date Flash Player? Thanks.
Update Player 9.0.47.0 - Not Reflected In Flash CS3
I just installed the recent player files version 9.0.47.0 in the players directory and updated the browser plugins after uninstalling the old ones as descipes in the tech-note. When I use Flash CS3 and run code to show the version (System.capabilities.version) i get the a string saying "9.0.45.0". If i run the player directly from within the directory C:...Players it give the correct version. Does the update not affect the autering tool? I might have missed something.
The same thing happens with the update for flash player 8.
Problems After Flash Player Update
Hi,
i am writing because i have some strange sensations in my application after i updated my flash player to version 9,0,115,0.
this is the problem:
i have a dynamic textfield with htmlt text, in this html text i have some img-tags which i use to add Sprites into the htmltext that have some kind of user interactivity (rollover, click...).
until now everything worked fine, just with the update i have the problem that i lost the interactivity to this objects.
just some sprites which have embedded assets from a swf have the interactivity (rollover, click...) but also jsut on the embedded symbols and not on the whole sprite.
example: if i put the event on the sprite:
this.addEventListener(MouseEvent.CLICK, doSomething)
the event will be just dispatched if i click on the embedded symbols.
i tried Security.allowDomain('*') but this didnt solved my problem
its like i am getting no focus on the sprite.
like i said before... it was working before the update :-(
greetings and thankful for every help!
Pixelista77
Flash Player Auto Update
Hi,
Looking on the Macromedia site it says there is no way to prevent AUTO UPDATE.
I NEED to prevent this process .. cant have 10k users all going out one at a time to get the update.
We dont deploy flash as standard to our org, as non of the internal web sites need it - eg it just for normal web surfing use.
Anyone know of anything such as a reg key change or is it hardcoded into flash?
Flash Player Update Issues
Hey guys.
I've recently encountered an issue at my work PC where the Flash Player in the IDE is not exporting with the latest flash player. I have repeatedly updated, uninstalled and re-installed the player from my system but continuously run into the same problem.
Basically I've got a project where I'm using HD video, and the latest flash player v: 9,0,115,0 is not used in the publication, instead it defaults back to v: 9,0,45,0. So when trying to preview my movie inside flash I am greeted with a blank screen, however when I view the .swf from my project folder it plays using the 9,0,115,0 player and works fine.
Has anyone experienced this problem? I have torn apart the Adobe website for some patches/fixes but everything I have tried has been ineffective in sorting this problem.
Also, I've used KewBee Plugin Switcher as well, but that doesn't allow me to install a later version either.
Would really appreciate some input on this if anyone has some info.
Thanks guys,
Oz
Need To Make This Work Is Flash 8 Action Script Update Fla Included
ok I have this fla I need to edit for a client. Now if you look at this http://bearbonez.ca
Youll see the real nice fire effect coming from the exaust pipes. The problem is that its a flash 6 file and I need it to be a flash 8 fla. You say well just change the settings! Well when I do that the fire effect doesnt work any more!
No Ive realized this must be becuase of the action script it using.
Now Ive included the fla if you go to last frame, layer 2,and click the fire symbol youll see a time line. Now when you go thru the time line youll see 4 little flames from the exaust. now click into one of them that and youll see this action script on frame one
count = 0;
_quality = "high";
onEnterframe = function () { attachMovie("myfirst", "dot"+count, count++);};
Now if you click into that symbol you see this action script
one the first frame
#initclip
function Dot() {
this.color = new Color(this);
this.color.setRGB(16775372);
this._x = 250+Math.random()*8-2.5;
this._y = 200+Math.random()*8-2.5;
}
Dot.prototype = new MovieClip();
Object.registerClass("myfirst", Dot);
Dot.prototype.onEnterFrame = move;
function move() {
this.age++;
this.relage=this.age/12;
R=255<<16;
G=(255-(this.relage*126)); if (G<0) G=0; G=G<<8;
B=(255-(this.relage*1024)); if (B<0) B=0;
this.color.setRGB(R+G+B);
this._x -= Math.random()*5-2.5;
this._y -=Math.random()*4+2;
this._alpha -= 2;
this._xscale -= 2;
if (this._alpha<5) {
this.removeMovieClip();
}
}
#endinitclip
Now I really need to get this to work in flash 8. I really really really apreciate any help!
http://spyderdesignz.com/justin/index.rar
right now it set to flash 8 so the flames dont work but if you go in publishing settings and change to flash 6 it works. Ive even left the action script to action script 1 and still no luck!
PLease help action script masters!
ActionScript Flash Player 5 To 8 Code Update [F8]
I have a flash 5 movie with an access DB using ASP 3.0 to pass data. It works great, the problem is I need this chunk of code below to work in a Flash 8 movie and I am not sure why it throws errors when I try to compile it into a Flash 8 swf
Code:
on (release)
{
CurrentRecord++;
if (CurrentRecord == TotalRecords)
CurrentRecord = 0;
loadVariables ("flash_test.asp?Record=" add String(CurrentRecord), this);
}
These are the errors I get from the above code when compiling this into a Flash 8 swf.
Code:
**Error** Symbol=AddressBook, layer=Layer 3, frame=1:Line 6: ')' or ',' expected
loadVariables ("flash_test.asp?Record=" add String(CurrentRecord), this);
**Error** Symbol=AddressBook, layer=Layer 3, frame=1:Line 7: Unexpected '}' encountered
}
**Error** Symbol=AddressBook, layer=Layer 3, frame=1:Line 6: ')' or ',' expected
loadVariables ("flash_test.asp?Record=" add String(CurrentRecord), this);
**Error** Symbol=AddressBook, layer=Layer 3, frame=1:Line 7: Unexpected '}' encountered
}
**Error** Scene=Scene 1, layer=Main Layer, frame=1:Line 14: Syntax error.
strPosition = "Record " add String(CurrentRecord+1) add " of " add String(TotalRecords);
Total ActionScript Errors: 5 Reported Errors: 5
The code works great as long as I compile it to Flash Player 5, otherwise it throws errors. I am not sure where the syntax goes wrong or what should be used intstead. Usually Flash will automatically upconvert old /deprecated code so I am confused as to what exactly I need to do.
Flash 8 Wants To Update Player (why) Video Embedded
I have a flash movie created with Flash MX set to Flash Player 7 and Action Script 2.0 with an embedded MOV file.
A user with Flash 8.22 can't see the movie in IE because he gets a need to update Active X message. Unfortunately he does not have admin privileges to allow Flash Player to update.
What I would like an answer to is why is Flash 8 not running this movie in the first place???
Any thoughts greatly appreciated.
Adam
Flash Player 9 Update Causes Security Error
I'm experiencing a security error in the just released Flash 9 Player Update (9.0.60 and higher) that I did not experience in prior versions of Flash 9 player (9.0.47 and below).
The situation I'm encountering:
1. I access a web service over HTTPS from a Flex application hosted on HTTPS on a different server.
2. The HTTPS service being accessed has a crossdomain.xml file in the root permitting access by my Flex application.
3. The service can be accessed without problems when the Flex application is running inside Flash Player 9.0.47 and below.
4. When the serviced is accessed from a Flex application running in Flash Player 9.0.60 and higher on Windows (IE or Firefox), I get a “Security error accessing url” error.
Macromedia Forcing User To Update Flash Player
About 2 years ago I developed an e-learning module using flash 5. Published as Flash 5. I have not touched it since...
However, I got a call the other day from the client saying that they can not access the content and the broweser (I.E 5.5) is asking them to install flash player 7 (They already have flash player 6 installed).
Is this a macromedia thing? forcing all users to update in order to view old content as well? Has anybody witnesses something similer?
note: unfortuntley, the client is a big company with a big firewall, so updating the plater ins't so simple...
Flash Player Auto Update Causing Problems
A Flash mini ap that I created for my university is causing some problems. The issue lies in that some users on campus don't have the latest version of flash player on their computer. When they try to access the page with the mini ap on it the page freezes. The freeze arises when the player tries do download the current version. The University's filter recognizes this as peer to peer for some reason and marks it as low priority in regards to bandwidth. The player takes a long time to download and the page freezes up.
Is there a solution to this? Can I disable the auto download feature in flash?
Need To Flag Browser Viewer To Update Flash Player
I have a Flash file that only displays in Flash 8. Is there a script I can put into page that will prompt user to download new Flash player if Flash 8 is not detected? I'd like to see this prompt come up in place of the Flash graphic, which displays, but with missing elements. I want to add this into html, not the Flash graphic (which was created in an animation program.
The default viewer inn IE 7 must use Flash 6
Disable Update To Version Of Flash Player Reminder
Can anyone please tell me how to disable the reminder that keeps coming up for the updation of the Flash Player version installed on my computer? I do not need to update to a newer version of Flash Player.
Preparing For The Flash Player 9 April 2008 Security Update
Adobe is planning to release a security update for Flash Player 9 in April 2008 to strengthen the security of Adobe Flash Player... and it's quite major.
Read more here:
http://www.adobe.com/devnet/flashpla...ty_update.html
Quoted from Senocular news:
Quote:
Here is a basic run down of some of the changes.
The HTML parameter allowScriptAccess now defaults to sameDomain for ALL SWFs, not just SWFs published to version 8 and above (ho-hum)
Custom headers provided by ActionScript now require explicit permission from a cross-domain policy file in order for the request to be sent to another domain (yikes)
ALL socket connections (even same-domain) require socket-based policy files to successfully maintain a connection (yowza!)
So, get prepared and spread the word!
gparis
Update Flash Player In Flash MX 2004
Hi folks,
I'm having a problem with publishing (and previewing) transitions and reading through the threads think it might be that I don't have Flash Player 8 or higher. Flash Player 9 is installed on my computer for web-browsing but when looking in my Flash MX publish settings, the newest version is Flash 7.
Can anyone advise me how I go about fixing this as it may solve my other problem? If anyone has any other suggestions of how to fix the tranisition problem, they are also appreciated.
Thanks in advance.
ADOBE ANNOUNCE: Preparing For Upcoming April 2008 Flash Player 9 Security Update
Flash Player team is doing some 'pre-communication' around the security changes in the -next- version of Flash Player, releasing in April 2008.
So we're starting with some blog posts, articles and technotes so that these changes can spread to the community. There will likely be more than this by release time as well (and new communication will come at that time).
Blogs:
Emmy Huang:
http://weblogs.macromedia.com/emmy/
Justin Everett-Church:
http://justin.everett-church.com/
Developer Center articles:
"Preparing for the Flash Player 9 April 2008 Security Update" (
http://www.adobe.com/devnet/flashplayer/articles/flash_player9_security_update.html)
Everyone should read and become familiar with the current article on Flash Player 9.0.115.0's 'phase 1' security changes.. this outlines a lot of what's been changed, and gives you an idea what to think about for the upcoming April release. "Security Changes in Flash Player 9" (v9.0.115.0) at http://www.adobe.com/devnet/flashplayer/articles/fplayer9_security.html.
There are a few other articles with specifics about socketpolicyfile handling coming up, but they’re not quite done yet..
Specific technotes w/ code:
“Changes in allowScriptAccess default (Flash Player)”
(http://www.adobe.com/go/kb403183)
“Authorization header does not work for an HTTP request (Flash Player)”
(http://www.adobe.com/go/kb403184)
“Arbitrary headers are not sent from Flash Player to a remote domain”
(http://www.adobe.com/go/kb403185)
“Sockets do not function in Flash Player versions later than 9.0.115.0”
(http://www.adobe.com/go/kb403186)
“javascript:" URLs no longer function in networking APIs (Flash Player)”
(http://www.adobe.com/go/kb403187)[b technotes w/ code:
Flash Player In Flash MX - How Update It?
Is possible update in Flash MX the Flash Player if i test movie?
I think must be, but i dont know how?
I have version = WIN 6,0,21,0.
Can i make test for more versions?
Wath is the best way?
Thanks Jan
[F8] Update A MP3 Player From Ver 6 To 8
Hi
Attached is a zip with the MP3 player. It was written for ver 6. AS 1.
The player works great, here is one problem. In ver 6 when you hit the stop button the artist and title disappear. Thats fine. but when exporting in Version 8 the player displays the text undefined when stopped.
How can I go about displaying an altenative text in the artist and title display, using Version 8?
For example, when the player is stopped the word stop is displayed.
Thanks
ponyack
Player V.7 Detection: Is Moock FPI Update Necessary?
Am still using Moock's FPI to detect Flash Player versions, and wanted to ask if an update to the script's needed to detect the newest version 7 Flash Player?
When the F-Player went to version 6 a while back, I updated mine manually (by adding a new variable); but when I recently checked the FPI at Moock's site, it doesn't seem to've gone beyond checking for version 6.
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();
}
Server Side Player Detection Update.
Hi
In my recent article about Flash Player detection, one of the techniques discussed was server side Flash detection with HTTP-ACCEPT.
Recap - Flash Player 6.0r65 and above add the Flash mime-type application/x-shockwave-flash to the HTTP-ACCEPT header when installed in a browser.
In practice this is a bit tricky - Mozilla does it, IE has a well known bug where it truncates the header to */* on refresh (i.e doesn't tell the server anything about the files it can handle) and Opera < 7.11 doesn't allow any changes to be made (apparently).
I did some testing with some new browser.player combos since FP7 and Opera 7.2b were released.. Opera7.2b with FP7 has the correct mime type installed ( ) in the header while Opera7.11 with FP7 doesn't.
I would guess that this is then an Opera thing although I wasn't able to test FP6r79 with Opera 7.2b.
Also, Mozilla Firebird 0.6 doesn't allow any changes to be made to the header (6 or 7). I'm letting the development team know about this so it can hopefully be fixed in an upcoming release.
Cheers
James
Action Script Doesn’t Work In Flash Player 7,
Hi,
I have the following code:
Code:
function loadPosts() {
xpos = 299;
ypos = -163;
ClearTopics();
for (i=Number(numLDup); i<=Number(numDup); i++) {
duplicateMovieClip(dummy, mc+i, i+10);
var topicName = "Topic"+i;
topicName = eval(topicName);
var topicReplys = "numReplys"+i;
topicReplys = eval(topicReplys);
var fileNameTemp = "File"+i;
fileNameTemp = eval(fileNameTemp);
var startedTemp = "topicCreated"+i;
startedTemp = eval(startedTemp);
var lastTemp = "lastModified"+i;
lastTemp = eval(lastTemp);
var startedByTemp = "topicStartedBy"+i;
startedByTemp = eval(startedByTemp);
setProperty(mc+i, _x, xpos);
setProperty(mc+i, _y, ypos);
setProperty(mc+i, _alpha, 100);
set(mc+i+".Topic", topicName);
set(mc+i+".numReplys", topicReplys);
set(mc+i+".File", fileNameTemp);
set(mc+i+".Created", startedTemp);
set(mc+i+".Last", lastTemp);
set(mc+i+".startedBy", startedByTemp);
ypos = ypos+18;
}
}
function ClearTopics() {
amount = 100;
k = 0;
while (amount>0) {
removeMovieClip(mc+k);
k = k+1;
amount = amount-1;
}
}
but is doesn’t work in flash player 7, can any one tell me why? and please help me to fix it?
cheers
Crossdomain.xml Prohibits GetURL Action With Flash Player 10
Hi,
Let's say, on server www.one.com, I host a swf file called two.swf and a crossdomain.xml. On server www.two.com, I also host a crossdomain.xml and the swf-file two.swf is being called from www.one.com (into a php site).
However, the button actions within two.swf with GetURL don't work anymore with Flash Player 10.
The crossdomain-files look identical:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="*" to-ports="*" />
<allow-http-request-headers-from domain="*" headers="*"/>
</cross-domain-policy>
How should I fix this? Thanx for your help!
Action Script Code That Won't Work Above Flash Player 6
I purchased a template off of TemplateMonster.com and have run into a glitch...there's a piece of Action Script Code that will only work when published to Flash Player 6. In order for my streaming video to play correctly I need to publish to Flash Player 8.
Here's the Action Script:
on (rollOver) {
_root.caption("view project", 2);
}
on (rollOut, dragOut) {
_root.remove_caption();
}
on (release) {
if(_root.xkoord>-538) {
_root.xkoord-=221;
}
if(_root.xkoord==-758) {
_root.xkoord=126;
}
}
Firefox 3 + Flash Player 8.0 On Up Bug (button Action Not Accpeted)
The embedded video player I set up for my employer relies heavily on javascript for swfobject / embed and many controls, along with communication between the player and our backend. The QA department has found that the player's controls will not function with the new build of Firefox (3.0 soon to be released). We support player 8.0 on up and all of these versions will not function within Firefox 3.0. Currently, though all browsers and versions DO function. The button action themselves are your most basic action (i.e. myMC.onPress). We also have other flash elements on the page that do work in Firefox 3.0 however these do not rely on javascript.
Any suggestions or anyone else having similar problems? I checked the Mozilla bug checker and didn't really see anything similar.
Thanks!
Action Script 2.0 With Corp Version Flash Player 6
Hi,
I am in the middle of creating a website for a business that uses the standard form of flash player 6. I am using flash mx 7 pro to create my designs but I am finding that everything I am publishing is not working on the company computers. Can anyone put me on the right track.
Also please check the page out if you have any advise or comments on cosmetics for the site feel free.
http://www.pdc-designs.co.uk/
Update Media Player Worning? For Splash Screen
hi every one.
im not sure if this question should be posted hear. any way.
I have made a site which has a splash screen, then you click on ENTER to open the main site.
What script would you use to detect if the user has the correct flash plug-in and gives them a propt to go to the flash site to download the new driver if they dont have it?
at the moment when the the site is loaded it freezes or just gose blank when content is loaded that the computer cant load. the lamborghini site has a message that tells the user they dont have the latest media player and to go the the website: http://www.macromedia.com/shockwave/...ShockwaveFlash
to update there software, this is a Html page and loads if you dont have the correct flash media player.
Im using Flash mx 2004 profeshional
Any ideas?
thanks
Loop Locking Player User Interface Update
Hi!
In one of my apps, there are some bytearray shuffling going on, and this locks the player (no user interface updates) until ready.
Is there an command/function in AS3 that gives the player calculation time (for handling user interface updates etc.) that would be possible to put inside this kind of attention-demanding loop? I think that I've seen somewhere that there should be...
Regards / Jonas
Old Flash Player 5 Action Script, Need Updated To Flash 7
I have a movie clip with the following code...
onClipEvent (load) {total = int(_root.getBytesTotal());}
onClipEvent (enterFrame) {
StatusColor = new Color(_root.Bar);
Loaded = int(_root.getBytesLoaded());
Percent = int(loaded/total*100);
_root.Percent = Percent + " %";
setProperty ("_root.Bar", _yscale, Percent);
if (Percent >= 100) {tellTarget ("_root") {play();}}
}
This is older and I can't get it to work with Flash Player 7.
Please help! Or send me in the right direction.
I'll send cookies
Action Script For Flash 4 Buttons To Start Media Player
Hi,
I feeling really thick now I cant duplicate this url http://www.pixelfix.com/flash/videoc...hcontrols.html
Can anyone help me Media player code endlosed below
The media side isnt the problem its getting the correct script into flash or maybe Im doing it all wrong
Kind regards
Hobs
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Media Player custom control panel -- windows media</title>
<script language="JavaScript">
<!--
if ( navigator.appName == "Netscape" )
{
//-- This next line ensures that any plugins just installed are updated in the Browser
//-- without quitting the browser.
navigator.plugins.refresh();
// We don't need the APPLET within IE, and APPLET is treated as an implied
// end to the OBJECT tag by the IE HTML parser.
// ***Please note that if you do not need to script events, you can safely remove the next two lines
document.write("x3C" + "applet MAYSCRIPT Code=NPDS.npDSEvtObsProxy.class" )
document.writeln(" width=0 height=0 name=appObsx3E x3C/appletx3E")
}
//-->
</script>
<script event=FSCommand(command,args) for=videocontrols language=Javascript>
videocontrols_DoFSCommand(command,args)
</script>
<script>
<!--
function playVideo()
{
document.objMediaPlayer.Play();
}
function pauseVideo()
{
document.objMediaPlayer.Pause();
}
function stopVideo(){
if (navigator.appName=="Netscape")
{
document.objMediaPlayer.Stop();
document.objMediaPlayer.SetCurrentPosition(0);
}
else {
document.objMediaPlayer.Stop();
document.objMediaPlayer.CurrentPosition = 0;
}
}
function videocontrols_DoFSCommand (command, args) {
if (command == "play"){
playVideo();
}
else if (command == "pause"){
pauseVideo();
}
else if (command == "stop"){
stopVideo();
}
}
//-->
</script>
<style type="text/css">
<!--
p { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px}
-->
</style>
<meta name="description" content="Use Buttons created with Flash to control Play, Pause and Stop methods for Windows Media">
</head>
<body bgcolor="#669966" text="#FFFFCC" link="#FFFFCC" vlink="#66CC99">
<!--start video screen here -->
<p> </p>
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td align="center"><object id='objMediaPlayer' height='120' width='160' standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,902' >
<param name='ShowPositionControls' value='0'>
<param name='ShowTracker' value='0'>
<param name='ShowDisplay' value='0'>
<param name='ShowStatusBar' value='0'>
<param name='ShowControls' value='0'>
<param name='ShowGotoBar' value='0'>
<param name='InvokeURLs' value='0'>
<param name='AutoStart' value='1'>
<param name='TransparentAtStart' value='0'>
<param name='AnimationAtStart' value='1'>
<param name='EnableContextMenu' value='1'>
<param name='DisplaySize' value='4'>
<param name='ClickToPlay' value='1'>
<param name='AllowChangeDisplaySize' value='0'>
<param name='AutoRewind' value='1'>
<param name='PreviewMode' value='0'>
<param name='SendPlayStateChangeEvents' value='1'>
<param name='SendOpenStateChangeEvents' value='1'>
<param name='SendErrorEvents' value='0'>
<param name='SendMouseClickEvents' value='1'>
<param name='FileName' value='http://mfile.akamai.com/2540/wmv/elogic.download.akamai.com/2540/test/itmflove56.asx'>
<embed type='application/x-mplayer2'src='http://mfile.akamai.com/2540/wmv/elogic.download.akamai.com/2540/test/itmflove56.asx' height='120' width='160' pluginspage='http://www.microsoft.com/windows95/downloads/contents/wurecommended/s_wufeatured/mediaplayer/default.asp' name="objMediaPlayer" showcontrols='0' autostart="true" autorewind="true" swliveconnect="true">
</embed>
</object></td>
</tr>
<tr>
<td align="center">
<p><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="180" height="36" id="videocontrols">
<param name="movie" value="videocontrols.swf">
<param name="quality" value="high">
<embed src="videocontrols.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="180" height="36" name="videocontrols" swliveconnect="true">
</embed>
</object></p>
<p> </p>
</td>
</tr>
</table>
</body>
</html>
Standalone Player To Let Client Import Txt, Update Then Export For Use In Site
I have created an intranet application that uses txt files for information feeds, for things such as the daily specials menu in the canteen , local news etc. They want to know, as do i, how easy it would be to create a standalone player that can import information from a text file then the user can change the information at will, then get the player to write a txt file with all the relevant code (html coding for formatting), rather than always have to edit the text file.
I have done alot of reading on writing text files from flash and the standalone player and think it would be possible ot do. I was wondering if anyone had tried this before and if they had, how succesful they were at it. Even if you haven't tried it, would you be able to give me any ideas.
thanks in advance
Latest Player Update (9,0,115,0) - Loss Of HTTP Authentication In Headers
An application that I wrote using the Twitter API no longer works with the latest Flash player update. Apparently it does not allow you to set the headers.
So the question now is how can I use basic authentication to log me into the Twitter api or similar. It take it that has to be done with PHP but this is now getting a bit silly when you have app frameworks like Flex that cannot talk to http web services that require any kind of http authentication.
I have searched but can't find out where I need to start looking to solve the problem. I can see this being a massive issue for adobe as many apps are now going to fail.
Any ideas?
Dynamic Text Field Won't Show Update Until NEXT Update Happens
Hi,
In a very simple Flash file with bascially just a dynamic text field and a button I attached some very simple code to the button that updates the text fields .text parameter, like this:
on(click) {
some_textfield.text = some_value;
}
With trace(...) I have verified that "some_value" is what I want it to be. However, the txt field doe NOT get updated! It gets that (b ythen old) value the NEXT time I press the button!
So when I start the flash movie and click the button nothing happens, the next time I see the value I should have seen the first time, etc. - always one event late. Since the trace() I put inside the on(click) handler shows the correct value I'm really at a loss to explain why the text field is not updated.
Any explanations?
PS: By the way, I'm using font "_sans" so there's no font to embed, but trying Arial with "embed numbers" (I want to display an integer number) doesn't work either. I only mention that because I think to have observed something like the above strange behavior caused by embedding (or not) the characters.
Edited: 09/04/2007 at 09:23:57 AM by Hasenstein
Action To Load A Swf In Another Player
hello...i wanna know if theres an action to load my swf in another player....Im using loadmovie....but is loading on the same pleyer and i dont want to use get url because i dont wanna use html in my project.
is there a way to load a swf in another player...like BLANK on html?
thanx
jorge
FLV Player Action Script Help
I was using this script to run my flv videos using action script 2
flv.contentPath = flvurl;
now I switched to AS3, this code doesn't work. any one has any solutions to this?? please help .....that would be awesome.
Thaks much,
|