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




AS 2.0 Script Not Working In Flash Player 7+



This is a simple snowflake script I found online. It works perfecto in Flash Player 6 but then when you publish it for 7+ and trace Radians you get NaN and lose the horizontal movement of the snowflakes. Any idea if there is some deprecated code in the radians part that would be causing complications?


Code:
// snowflakes
amount = 90;
mWidth = Stage.width;
mHeight = Stage.height;
for (var i = 0; i<amount; i++) {
thisFlake = this.attachMovie("flake", "flake"+i, i);
with (thisFlake) {
_x = Math.random()*mWidth;
_y = Math.random()*mHeight;
_xscale = _yscale=_alpha=40+Math.random()*60;
}
thisFlake.yspeed = Math.random()*2+.2;
thisFlake.increment = -0.025+Math.random()*0.05;
thisFlake.radian = 0;//declare for actionscript 2.0
thisFlake.onEnterFrame = function() {
this.radians += this.increment;
//trace(this.radians);
this._x += Math.sin(this.radians);
this._y += this.yspeed;
if (this._y>=mHeight) {
this._y = -10;
this._x = -10+Math.random()*mWidth;
}
if (this._x>=mWidth || this._x<=0) {
this._y = -10;
this._x = -10+Math.random()*mWidth;
}
};
}



Ultrashock Forums > Flash > ActionScript
Posted on: 2007-11-21


View Complete Forum Thread with Replies

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

GetURL Working In Flash Player 8 / Not Working In Player 9
Here I have the portfolio system I'm working at:
http://www.vamapaull.dxwebs.com/portfolio.html

when you click on the big image it should open a URL in a new window
When I test it on my computer is working fine(Flash Player 8), but when I test it in Firefox or IE (Flash Player 9) is now opening any URL... I think is some thing about the Flash Player 8 and Flash Player 9 compatibility... or some thing...
I don't know how to correct this problem... I need my portfolio working on Flash Player 8 and Flash Player 9 because now alot of users have Flash Player 9 on computers. :roll:

Any idea how to fix this issue? :?

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 ;-)

AS2 Working In Flash Player 6 But Not Player 7+
I downloaded this nice little effect and it was in AS1, and had Flash Player 6 publish settings, so i set the publish settings to AS2, and it still worked fine with Player 6 settings. BUT when i publish in Player 7 or higher, using either AS1 or AS2 settings it will not work. And i need it working in Player 8. (or if you dont have flash 8, then Player 7 would be ok 'cause it should still work in 8)

The coding is a little long and this isn't all of it but i think the problem lies somewhere in the code below, so could someone have a look through it and see if there are any incompatibilities with Flash7/8?...

code: #initclip
// constructor
function WordClass() {
// do nothing to initialize
this.tfw.autoSize=true;
this._alpha=0;
this.onEnterFrame = this.fadeIn;
}
// allow ParticleClass to inherit MovieClip properties
WordClass.prototype = new MovieClip();
// instance methods
WordClass.prototype.fadeIn = function() {
if (this._alpha<100) {
this._alpha+=10;
} else {
delete this.onEnterFrame;
}
}
WordClass.prototype.sizeTo = function(sizeX, sizeY) {
// size self to sizeX and sizeY
};
WordClass.prototype.getWidth = function() {
return Number(this.tfw.textWidth*this._xscale/100);
};
WordClass.prototype.getHeight = function() {
return Number(24*this._yscale/100);
};
WordClass.prototype.reportSize = function() {
trace(this._name+" size: "+this.tfw.textWidth+", "+this.tfw.textHeight);
};
WordClass.prototype.setWord = function(s) {
this.txtWord = s;
};
// function fitInto()
// - fit somewhere into the region and recursively call fillregion on extra spaces
WordClass.prototype.fitInto = function(x0, y0, x1, y1, d) {
// region width and height
var rWidth = x1-x0;
var rHeight = y1-y0;
var rOrientation = rHeight/rWidth;
// word object width and height
var wWidth = this.getWidth();
var wHeight = this.getHeight();
var wOrientation = wHeight/wWidth;
if (rWidth<10) {
var percent = 100;
} else {
var percent = random(40)+10;
}
var dWidth = percent/100*rWidth;
var scale = dWidth/wWidth;
this._xscale *= scale;
this._yscale *= scale;

if (this.getHeight()>rHeight) {
// recalculate width to fit height
scale=rHeight/this.getHeight();
this._xscale*=scale;
this._yscale*=scale;
}

if (random(2)) {
// place left
rx0 = x0+this.getWidth();
rx1 = x1;
this._x = x0;
if (random(2)) {
// place top
this._y = y0;
// fill region to right
this._parent.fillRegionRequest(rx0, y0, rx1, y0+this.getHeight(), d);
this._parent.fillRegionRequest(x0, y0+this.getHeight(), x1, y1, d);
} else {
// place bottom
this._y = y1-this.getHeight();
// fill region to right
this._parent.fillRegionRequest(rx0, y1-this.getHeight(), rx1, y1, d);
this._parent.fillRegionRequest(x0, y0, x1, y1-this.getHeight(), d);
}
} else {
// place right
rx0 = x0;
rx1 = x1-this.getWidth();
this._x = x1-this.getWidth();
if (random(2)) {
// place top
this._y = y0;
// fill region to left
this._parent.fillRegionRequest(x0, y0, rx1, y0+this.getHeight(), d);
this._parent.fillRegionRequest(x0, y0+this.getHeight(), x1, y1, d);
} else {
// place bottom
this._y = y1-this.getHeight();
// fill region to left
this._parent.fillRegionRequest(x0, y1-this.getHeight(), rx1, y1, d);
this._parent.fillRegionRequest(x0, y0, x1, y1-this.getHeight(), d);
}
}
};
// Connect the class with the linkage ID for this movie clip
Object.registerClass("mcWord", WordClass);
#endinitclip


Any help much appreciated!!

Stompclient Is Not Working For Flash Player 9 (Flash Player 9,0,124,0)
We are facing issue in STOMP client because of newly implemented restriction on flash player.(http://www.adobe.com/devnet/flashplayer/articles/flash_player9_security_update.html).


Because of this, Our STOMP client is not able to get messages from activemq.


We have tried to add socket meta files as discussed in others article but we were not able to get solutions.

We have done below stuffs.

1) Added LoadPolicy code in stompclient for getting policyfile from server running on 80 port.
2) Also set xmlSocket as load policy to get connection from stompclient to Activemq.


1) PolicyFile.xml(loading this also in STOMPClient.swf)

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd">
<!-- Policy file for xmlsocket://socks.example.com -->
<cross-domain-policy>
<!-- This is a master-policy file -->
<site-control permitted-cross-domain-policies="master-only"/>
<!-- Instead of setting to-ports="*",
administrators can use ranges and commas -->
<!-- This will allow access to ports 123, 456, 457, and 458 -->
<allow-access-from domain="*" to-ports="*" />
</cross-domain-policy>

2) Flash players logs(using debug version of Flash player)

Error: Request for resource at xmlsocket://192.168.1.12:61613 by requestor from http://127.0.0.1/blackwells/bid/stompclient.swf is denied due to lack of policy file permissions.
OK: Root-level SWF loaded: http://127.0.0.1/blackwells/bid/stompclient.swf
OK: Root-level SWF loaded: http://127.0.0.1/blackwells/bid/ladyguinn.swf
OK: Searching for <allow-access-from> in policy files to authorize data loading from resource at xmlsocket://192.168.1.12:61613 by requestor from http://127.0.0.1/blackwells/bid/stompclient.swf
OK: Policy file accepted: http://192.168.1.12/crossdomain.xml
Warning: Timeout on xmlsocket://192.168.1.12:61613 (at 3 seconds) while waiting for socket policy file. This should not cause any problems, but see http://www.adobe.com/go/strict_policy_files for an explanation.
Error: Request for resource at xmlsocket://192.168.1.12:61613 by requestor from http://127.0.0.1/blackwells/bid/stompclient.swf is denied due to lack of policy file permissions.
OK: Root-level SWF loaded: http://mail.google.com/a/sigmainfo.net/im/sound.swf
OK: Root-level SWF loaded: http://127.0.0.1/blackwells/bid/stompclient.swf
OK: Root-level SWF loaded: http://127.0.0.1/blackwells/bid/ladyguinn.swf
OK: Root-level SWF loaded: http://mail.google.com/a/sigmainfo.net/im/sound.swf
OK: Root-level SWF loaded: http://127.0.0.1/blackwells/bid/stompclient.swf
OK: Root-level SWF loaded: http://127.0.0.1/blackwells/bid/bill.swf
OK: Searching for <allow-access-from> in policy files to authorize data loading from resource at xmlsocket://192.168.1.12:61613 by requestor from http://127.0.0.1/blackwells/bid/stompclient.swf
OK: Policy file accepted: http://192.168.1.12/crossdomain.xml
OK: Root-level SWF loaded: http://127.0.0.1/blackwells/bid/stompclient.swf
OK: Root-level SWF loaded: http://127.0.0.1/blackwells/bid/bill.swf
OK: Searching for <allow-access-from> in policy files to authorize data loading from resource at xmlsocket://192.168.1.12:61613 by requestor from http://127.0.0.1/blackwells/bid/stompclient.swf
OK: Policy file accepted: http://192.168.1.12/crossdomain.xml
OK: Root-level SWF loaded: http://127.0.0.1/blackwells/bid/stompclient.swf
OK: Root-level SWF loaded: http://127.0.0.1/blackwells/bid/bill.swf
OK: Searching for <allow-access-from> in policy files to authorize data loading from resource at xmlsocket://192.168.1.12:61613 by requestor from http://127.0.0.1/blackwells/bid/stompclient.swf
OK: Policy file accepted: http://192.168.1.12/crossdomain.xml
Warning: Ignoring <site-control> tag in policy file from http://192.168.1.12:843/policyfile.xml. This tag is only allowed in master policy files.
Warning: Domain 192.168.1.12 does not specify a meta-policy. Applying default meta-policy 'all'. This configuration is deprecated. See http://www.adobe.com/go/strict_policy_files to fix this problem.


3) Setting below load policy files in stompclient.mxml

flash.system.Security.loadPolicyFile("

Flash Player Not Working
Does anyone know why an (older) computer would not be able to view a site created in Flash 8 even after downloading a flash player? It's strange because some of the site is visible, but none of the text or buttons are.

thanks!

Flash Player Not Working In IE7
I'm not sure why this is happening but recently the flash player stopped woring with some instances of flash content but not others. For instance, I can't view the flash content on the Adobe.com home page but if I go to the Adobe Studio home page the flash content works just fine. I have no idea what's causing this problem or where to begin fixing it. I can't even view teh Flash Player advanced settings because they require flash. Anyone else having trouble like this with IE7?

Flash Player Not Working In IE7
Ever since I upgraded from IE6 to IE7, on web sites with Flash content I'm getting a message box that says "We're Sorry! You need to update your Flash Player". When I click on the link it takes me to the Adobe Flash Player Download Center. I Click on "INSTALL NOW" and it says "Adobe Flash Player Successfully Installed", but it still doesn't work on the various web sites (About.com, zillow.com, ...etc)

Running Windows XP sp2, IE7
I disabled my firewall, checked IE advanced settings, ...etc.
Help?

Flash Player Not Working
Hello, I just got Windows vista installed and now im using IE7. I have got a few few sights that requires Adobe flash player so I downloaded it and it said the download was sucsessfull! I go back to these sites and it still says I need the flash player? Is there a setting im missing because this Vista is full of settings... Thanks!

Flash Player Not Working In IE7
i saw some similar threads around but no solution worked for me, so i decided to post this.

im using window vista business 32 bits, IE7 and firefox.

flash player worked perfectly well in IE7 until many months ago i update the flashplayer to ver9.0.124.0. when i tried to watch a video in youtube, it'll tell me to install the latest version although i'd alrdy had. but i still clicked on the link to install the latest version. when i tried to install it, i was told "Internet Explorer had blocked this site from using activex control in an unsafe manner. as a result, this page may not display corectly." then, after a while, it'll load to another page which tell me flashplayer 9.0.124.0 had been installed successfully. but flashplayer still wont work. i need to uninstall it, and reinstall. things will work fine, but the same problem come again everytime i reboot my com. i was always told that i need to install the latest version. my security setting of IE is medium btw.

flashplayer in my firefox works quite well. i tot it might be a crash when i got both versions of flashplayer, so i uninstalled flashplayer plugin for firefox. but it still did not solve the problem. i was told to try e beta version of flashplayer10, but the problem worsened. flashplayer for both IE and flashplayer wont work.

(i used the uninstaller program found in adobe to uninstall)

sorry, i know i'd written quite a long post. please reply me as simple as possible because im kinda like a computer idiot.

Flash Player Not Working
My flash player has stopped working I just get a picture of some cogs with the message "VIDEO WILL BE AVAILABLE SOON" I have uninstalled and reinstalled version 10 to no avail. Help!

SWF Not Working In Flash Player
Hi
Thanks for your time

When i try to open any SWF from my system, its s not opening
and gives an error saying : the device is not ready
[see attach Gif]

computer affected any virus ?

Nasih

SWF Not Working In Flash Player
Hi
Thanks for your time

When i try to open any SWF from my system, its s not opening
and gives an error saying : the device is not ready
[see attach Gif]

computer affected any virus ?

Nasih

Flash Player Not Working
Hello,
I don't know if this is the right place to ask, but here goes. I cannot view any flash files at all. I have tried the info from Macromedia, uninstall re start, reinstall restart, ect. I can see the plugin in the WINNT/system32/macromedia/flash folder, but I can't ead any swf files. I have W2K Pro, I.E.6, which I reinstalled all to no avail.It was working at one time and I have checked for viruses. Any ideas?
Thanks, Dave

Flash MP3 Player Not Working
Hi all,

I've completed the first part of Lee's tutorial and when I run the first part it says URL/undefined... I'm assuming this means it can't load the songs but I have been over Lee's tutorial 5 times and have done everything perfectly... Any help would be greatly appreciated!

Flash Player Not Working ....
I've created a flash music player, embedded it on the page and and it works fine on this page all by itself:

http://www.dannydlive.com/test/test.html

But it doesn't work on my main web page ... It displays but does not start playing like it should:

http://www.dannydlive.com/index_1.html

Can anyone tell me what might be wrong? Any input is most appreciated.

I have a feeling it has something to do with this AC_RunActiveContent.js thing that Dreamweaver adds to the page. I did upload that file to the Scripts directory on my site, otherwise the test page probably would not work either.

Thanks ! - Dan

Preloader Not Working In Flash 6 Player
Hi all,

I built this site with Flash 5 and it works fine with the flash 5 player in IE, Netscape and on pc & mac. It works fine on my local drive with the flash 6 v.29.0 player but once I upload it to the web it does not work properly anymore. The bytes loaded and total bytes just display 0 while it loads. It sometimes only tells one of the swf files to start playing after they are all loaded, sometimes it doesn't tell any of them to start and just stays blank. Here's a link to the site and my preloader fla:

http://www.chalonevineyard.com/index_new.html
http://www.chalonevineyard.com/index.fla

Any help would be greatly appreciated.

-cooker

Key Press Not Working In Flash Player 6
hello,

I'm making a small presentation and to go to the next page im using "on key press enter' but when i publish the movie and view in flash player 6 it just stops...even when i press enter. This never happed in my old player version.

And another question......i have a movie made in flash 5, and i want to open it in MX...but it won't. I tried copying the frames from the old movie and opening a new MX file and pasting the frames but it wouldn't do it.

i'm clueles...help!

RemoveMovieClip() Not Working In Flash Player 6?
Hi guys

Here's my movie
http://www.ecs.soton.ac.uk/~jtp/temp/titleLong.swf

My little dudes are meant to die after a certain amount of time, which they happily do on flash player 7 or 8,
however on flash 6 they don't. They shrink (as they're supposed to) but the removeMovieClip(this) command doesn't work....

Any ideas?
I'm currently placing removeMovieClip(this) within a class file.

Any suggestions?

Many thanks.

Flash Player Not Working In Browser(FIX)
Hello to anyone who has had issues with Flash not playing or installing in Internet Explorer.

I thought I would post some troubleshooting I have found.
This is case specific to Windows > Internet Explorer.

The best solution for me was a direct link to download the Flash player.
Using Internet explorer goto www.macromedia.com/go/full_flashplayer_win_ie

Other Troubleshooting:

1. Check that Macromedia is a Trusted Publisher.

a. Goto Tools > Content (tab)
b. Select Publishers button under certificates
c. Select "Untrusted Publishers (tab) to make sure Macromedia is not in that list.

2. Make sure your pop up blockers are set to off

3. Make sure your firewall is not blocking Flash Player

Anyone with similar problems or solutions please feel free to add to this post so that we may alleviate fellow Flash users frustrations.

Set Property Not Working In IE But Does In Flash Player
Hi all,

I have this script (below) it works fine in flash through flash player but when I view it in IE explorer on the web it doesn’t work.. does any one have any ideas why? I assume it is simple but I just cant get it.. also is there a way I can view the trace output in ie like in flash? I would like to see if my mouse click is still being registered??

Code:

onClipEvent (mouseDown) {

setProperty(_root.backgroundmove.crosshair1, _visible, 0);

setProperty(_root.backgroundmove.crosshair2, _visible, 0);

setProperty(_root.backgroundmove.crosshair3, _visible, 0);

setProperty(_root.backgroundmove.crosshair4, _visible, 0);

setProperty(_root.backgroundmove.crosshair5, _visible, 0);

setProperty(_root.backgroundmove.crosshair6, _visible, 0);

setProperty(_root.contact_mov, _visible, 100);

trace("contact us");

with (_root.contact_mov) {

gotoAndPlay("start");

}

}


Thanks heaps, I hope someone can help..

Flex FLV Player Not Working In Flash CS3
Hello everyone,

I am trying to clarify some .as import problems – not only for me, but also for those who hit the same problems - I'm sure I'm not the only one around.

I use a training DVD containing video tutorials over Actionscript 3.0 (from Lynda.com), but all the videos are related to Flex IDE. I never worked in Flex, and I don’t intend to, since this is a Flash project. I have run into multiple problems before getting no errors, but it still doesn’t work now – only shows blank where the FLV video should be.

It’s about a custom FLV player using NetStream. It was working perfectly when it was embedded in the FLA, but I want to change it to OOP. What am I doing wrong?

Folder structure:

Code:
[ Flash devel ]
||
|- [ assets ]
||
||moviePlayerMain.as
|- [ Movies ]
|
calltones-demo.flv
Demos v0.9c.fla
moviePlayerMain.as:

ActionScript Code:
package assets    {
    import flash.display.MovieClip;
    import flash.events.*;
    import flash.net.NetConnection;
    import flash.net.NetStream;
    import flash.media.Video;

    public class moviePlayerMain extends MovieClip
    {
        private var videoURL:String = "Movies/calltones-demo.flv";
        private var stream:NetStream;
        private var connection:NetConnection;

        public function flashVideo()            {
            connection = new NetConnection();
            connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
            connection.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
            connection.connect(null);
        }

        private function netStatusHandler(event:NetStatusEvent):void {
            switch (event.info.code)            {
                    case "NetConnection.Connect.Success":
                    connectStream();
                    break;
            case "NetStream.Play.StreamNotFound":
                    trace("Unable to locate video: " + videoURL);
                    break;
            }
        }

        private function connectStream():void   {
            var stream:NetStream = new NetStream(connection);
            stream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
            stream.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
            var FLV1_1:Video = new Video();
            FLV1_1.attachNetStream(stream);
            stream.play("Movies/calltones-demo.flv");
            addChild(FLV1_1);
        }

        private function securityErrorHandler(event:SecurityErrorEvent):void {
            trace("securityErrorHandler: " + event);
        }

        private function asyncErrorHandler(event:AsyncErrorEvent):void {
            // ignore AsyncErrorEvent events.
        }
    }
}

Demos v0.9c.fla:

ActionScript Code:
stop();

import assets.moviePlayerMain;
var flashVid:moviePlayerMain = new moviePlayerMain();
//import assets.moviePlayerControls;

//==  Additional Controls   ====================================
function clickMovie1_1b( pEvent:MouseEvent) {
//  symbolFLV1._stream.close();   [i]//returns compile error #1119[/i]
//  symbolFLV1._stream.close();   [i]//returns compile error #1119[/i]
    gotoAndPlay(1);
    trace("Frame4: Detected click on back button, going back");
}
Movie1_1b.addEventListener(MouseEvent.CLICK, clickMovie1_1b);

When exported, there are no errors, I can move around the frames using the buttons, but the FLV movie simply doesn't show up (I only see the background behind it). There were errors reported in the .as file, but I solved them, so the import is correctly used.

Also note that I linked the MC to the corresponding AS class and still no effect (besides some addFrameScript error that I also solved).

I really need help on this. Solved a large amount of problems and extensively learned AS3 is the last 2 weeks using text and video tutorials, references, and try-outs, but I struggle with this problem for 3 days and still have no clue of how to solve it.

I appreciate any help.

Script Not Working In Flash 8 Player
Hi,

Thanks in advance for your help...

I have an interface built in Flash MX Version 7, which I opened in Flash 8 and exported as an executable and an HTML for Flash player 8 and actin script 1.0. When I first tried opening and playing the file, I received a security warning telling me that the script was attempting to access other files on my computer and I needed to adjust my settings to allow it. I went back in and exported again with the publish settings in Flash set to Local Network Security: Access network only. This did away with the security error, but the code on the "close presentation" button no longer works: instead of closing the window, it opens an empty browser window.

Here is the code, which worked perfectly in Flash 7:

ActionScript Code:
on (release) {
getURL("javascript:window.close('mainMenu')", "");
}

Can anyone help???

Flash Player Not Working In Safari
I installed the latest version of Flash Player for the Intel Mac.
For some reason it has erased flash player and I can not see any swf files on the internet webpages.

I uninstalled and reinstalled serveral times.
Cleared history and cache and restarted the computer.

I have tried everything and still flash files dont show up in the safari browser.
I never ever had this problem with Macromedia was in control. Since Adobe took over.
I have had nothing but technical problems.

Can anyone help me?

Local Flash PLayer Not Working
I have version 9.0.28.0 of the flas player according to Adobe's test site at http://www.adobe.com/products/flash/about/

However, I have Macromedia Design Suite 8 and as part of that it appears to have installed Flash Player 8. When I click a local FLV file, it starts up this version 8 of the player, and in it I see nothing. Just a blank white screen. Also the Play and all other items under the control menu are greyed out.

Any solutions to this problem?

Thanx.

Flash Player Not Working In Firefox
Suddenly Firefox will not play flash player content called when I play games online. It worked fine a few days ago.

When I click on the link, it opens the game page, but where the game should appear, I see a blank black box. When I click on the "Play online game" link I also get a large empty black box.

I am running Windows XP on an HP Pavilion ze2315us laptop. I recently installed trial version of Adobe Acrobat 8 Pro.

In efforts to fix the problem I tried the following:
Removed adblocker addresses that might conflict.
Checked blocked sites
Removed and reinstalled Flash Player.
Reinstalled Firefox.
Set folder options to use Firefox to open SWF files
All to no avail.

I tried the web site in IE. Had to download and install Flash Player again but it works fine in IE.
Afterwards, it still did not work in Firefox.

Any tips would be greatly appreciated.

Thanks.

Flash Player Not Working For This Site
Hi All,
When I am at the site down in this message, my flash isn't loading and it is asking for flash download. only in IE in firefox it's working ok. Do you have any suggestions?
The site is www.nedfinity.com

Get URL Working In Flash Player But Not Once Uploaded
Can anyone help me?
I have my main .swf file hosted. Everything is now working perfectly on the hosted file or as a .swf file in the flash player.
Once as an embeded object on the final destination site -- the external links are not working. The links within the .swf movie all work but not the get URL actions. hmmmm....
Can anyone help me please?

Thank you.

GETURL Is Not Working In Flash Player 9.0.124.0.
Dear Friends,

My swf and my html are in different domain so i got a issue in GETURL function , It is not working in flash player 9.0.124.0. in IE browser so that i add one parameter like allowScriptAccess =always then its working fine.but my question is what will happed if they will introduce any new flash version in future please tell me what is the permanent solution for this issue.

Thanks

AS Not Working In Flash Player 8. Works In 6.
Can someone take a look at this AS and see if they notice any reason it wouldn't work in Flash Player 8?


ActionScript Code:
function portfolioList() {    // array of link names used in the dynamic text field name dText    linkArray = ["AAA", "BBB", "CCC", "DDD"];    folio_arr = ["a", "b", "c", "d"];    // our starting depth    depth = 6;    // our starting coordinates    startX = 45;    startY = 97;    // our multiplication number so the clips are stacked on each other    n = 0;    // our loop that creates a link for each element in linkArray    for (var i = 0; i<linkArray.length; i++) {        // if i equals have the array length        // we should start a new row        if (i == Math.ceil(linkArray.length/2)) {            startX += 130;            n = 0;        }        // attach the movieClip to _root's timeline         var x = this.attachMovie("dynamicLink", "dlink"+depth, depth++);        // put them in their places        x._x = startX;        //x._y = startY+(x._height*n);        x._y = startY+((x._height-1)*n);        // assign their text        x.dText.text = linkArray[i];        x.currindex = i;        // incriment the number        n++;    }}portfolioList();// ------------------------------------------------------------------function clearPortfolioList() {    var _mc;    var d = 6;    var t = linkArray.length;    for (i=0; i<t; i++) {        _mc = this["dlink"+(++d)];        trace("unloading "+_mc);        unloadMovie(_mc);    }}// ------------------------------------------------------------------var aSectionTxt;var iSectionIndex = 0;trace(iSectionIndex);_global.portfolioSection = function(a) {    targetX = 527;    path = _root.sectionMC_03.folioClip;    maxWidth = path.section_mc._width-529;    velocity = 4;    aSectionTxt = a.concat();    path.section_mc.initEnterFrame();    path.forward_btn.onRelease = function() {        if (targetX>-(maxWidth-370)) {            targetX -= 370;            var dir = 1;            if (iSectionIndex+dir>=0 && iSectionIndex+dir<=aSectionTxt.length) {                iSectionIndex += dir;            }            // iSectionIndex must be set here -- not at the end of the enterframe func.             path.section_mc.initEnterFrame();        }    };    path.back_btn.onRelease = function() {        if (targetX<527) {            targetX += 370;            var dir = -1;            if (iSectionIndex+dir>=0 && iSectionIndex+dir<=aSectionTxt.length) {                iSectionIndex += dir;            }            // iSectionIndex must be set here -- not at the end of the enterframe func.             path.section_mc.initEnterFrame();        }    };};MovieClip.prototype.initEnterFrame = function() {    path.section_txt.text = "";    if (mcMovieToRemove != null) {        removeMovieClip(mcMovieToRemove);    }    this.onEnterFrame = function() {        trace("Running Enter Frame");        this._x += (targetX-this._x)/velocity;        if (this._x<(targetX+1) && this._x>(targetX-1)) {            trace("Stopping Enter Frame");            this._x = targetX;            setSectionText();            delete this.onEnterFrame;        }    };};_global.setSectionText = function() {    if (typeof (aSectionTxt[iSectionIndex]) == "string") {        path.section_txt.text = aSectionTxt[iSectionIndex];    } else {        mcMovieToRemove = path.attachMovie(aSectionTxt[iSectionIndex].linkage, "mcSectionMovie", 10);        mcMovieToRemove._x = aSectionTxt[iSectionIndex].x;        mcMovieToRemove._y = aSectionTxt[iSectionIndex].y;    }};// ------------------------------------------------------------------unloadMovie("folioClip");

Button Not Working In Flash Player 8?
Hi, can anyone help with this script?

The buttons work in flash player6, i have now changed the setting to publish in flash player 8 as i have added some filters, but now the buttons do not work!

The buttons are really movieclips with code!

Can i modify the code?

Here is the code within the button MC:

//
stop();
this.onEnterFrame = function() {
if (rewind == true) {
prevFrame();
}
};
this.onRollOver = function() {
rewind = false;
play();
};
this.onRollOut = function() {
rewind = true;
};
this.onRelease = function() {
_root.gotoandStop("home");

};

Cheers!

LoadMovieNum Not Working In Flash Player 5?
Hi all

I can't get loadMovieNum to work in flash player version 5?
Looking at the documentation, it should work in flash player 4 and above!!!

here's my code:

loadMovieNum("shrug.jpg", 1);

I cant see anything wrong with that can you?


Does anyone have any experience with this?

Flash Video Player Not Working On Mac?
I have made a flash flv video player using a fla template from sitepoint's flash anthology book, I am very pleased with the results, which work fine on a pc but when I view it on a mac with safari the video player comes up but the video does not play for some reason

could anyone help me out as its making me pull my hair out !!!!!!

thanks in advance

Jeroenwijering's Flash Mp3 Player Not Working
Hi!
Kindly visit following url:
http://labelfreeartists.com/view_pro...?member_id=173

My problem is : I have PHP generated XML file in different folder and my uploaded songs are in different folder.

I am giving following XML file path in flash mp3 player:

http://www.labelfreeartists.com/xspf/173.xml

[The xml file is opening, so it is the proof that xml file has no problem]


When I download songs from path mentioned in XML file, they download without any problem [this proves that songs path is correct].

But flash mp3 player is not getting XML file and not running songs.

Can any one give me clue/solution of my problem.

Thanks in advance

Detect Flash Player Not Working...
...on some browsers, seams to be one that have javascript disabled... which would make sense why these users aren't getting the download flash player promt. Is there a way around this? I have full access to the web server, so any files/scripts that would help, i can give a try.

The html code I'm using is the default code when you embed a swf into cs3;


Code:
<tr>
<td height="100" align="center"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','600','height','450','src','Fla/Main','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','Fla/Main' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="600" height="450">
<param name="movie" value="Fla/Main.swf" />
<param name="quality" value="high" />
<embed src="Fla/Main.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="600" height="450"></embed>
</object></noscript></td>
</tr>
Any help greatly received.

Thanks
Wayne

Flash Player 9 Crossdomain Not Working
Hello, I am new to this forum, and work in some flash/php/html applications

right now I am doing a dynamic list of data, wich means that I am doing several loadvars to different domains, reading their html, looking for the values I want and present them.

The problem is that, for some reason, since flash player 9 is installed, the flash doesn't work in the browsers (neither ie, neither firefox), at best it gives me a warning for trying to access another domain

I have seen this kind of problem before, on flash menus with external linking. But this was solved with a little program you could download from adobe (troublesome as it is, it worked).

However, now that there are no symbols on the stage, and the actionscript is more complex, the code works while testing the movie alone, but not in browsers.

I have tried:

1.adding to the actionscript
System.security.allowInsecureDomain("*");
System.security.allowDomain("*");

2.adding to the html the allowScriptAccess=always and allowNetworking=all, I added it everywhere, even to the AC_RunActiveContent parameters, knowing it is not implemented within the javascript

3.running the program adobe provides (LocalContentUpdater), wich works on menus, but not in the more complex projects I am in.

4.swearin on adobe/macromedia (didn't work either)


As a matter of fact, I don't wan't the web user to need to specifically allow this flash (solution suggested by adobe. My users are not computer experts, if prompted about anything, a few will know understand what to do. most will not)

If anyone knows how to solve this, I will be deeply grateful

Thank you

the function that fails to work is the next:

CODEfunction expee(maindata) {
    var valuefirst:LoadVars = new LoadVars();
    valuefirst.load("http://firstdomain.com/scripts/valuefirst.php?varobjective="+maindata);
    valuefirst.onLoad = function(successc) {
        var supradata:LoadVars = new LoadVars();
        supradata.load("http://seconddomain.org/secondary.php?valuethat="+valuefirst.valuefirst+"&varobjective:"+maindata);
        supradata.onLoad = function(success) {
            var suprastring = supradata.toString();
            //function to get the variable finalvalue from suprastring, too long to put here
            var my_lv:LoadVars = new LoadVars();
            my_lv.load("targetphp.php?error=0&expee="+finalvalue+"&varobjective="+maindata);
            rankfinal.htmlText = finalvalue;
            trace("ranking = "+finalvalue);
        };
    };
}

AS Working In Flash Player 6 But Not A Version Newer ?
I downloaded this nice little effect and it was in AS1, and had Flash Player 6 publish settings, however i set the publish settings to AS2, and it still worked fine. BUT when i change it to a newer Flash Player version it will not work. And i need it working in Player 8. (or if you dont have flash 8, then Player 7 would be ok 'cause it should still work in 8)

The coding isn't too complex or long so i was hoping someone could get it to work in Player 8? You can download the source on the link above, but i'll paste the code below anyway...


ActionScript Code:
// que of fill requests
fillRequests = new Array();

// word sets
// emotional words
vernacular = "Abandoned Abhor Ablaze Abominable Abrasive Absorbed Absurd Abused Abusive Accommodating Acknowledged Acquiescent Acrimonious Admonished Adoration Adored Adventurous Adverse Affected Affectionate";
// array of words
wordList = new Array();
wordList = vernacular.split(" ");

// fill the page with words!
fillRegion(0,0,700,200);

this.onEnterFrame = function() {
    // pull fill requests from que and execute
    if (fillRequests.length>0) {
        freq = fillRequests.pop();
        fillRegion(freq.x0, freq.y0, freq.x1, freq.y1, freq.d);
    }
}

// required because of extra long comment layers
stop();


ActionScript Code:
function fillRegion(x0, y0, x1, y1, d) {
    // pick one of the words and place
    n = random(wordList.length);
    word = wordList[n];
    // place the word object
    nombre = "word"+String(depth++);
    neo = this.attachMovie("mcWord", nombre, depth);
    // set word
    neo.setWord(word);
    neo.fitInto(x0, y0, x1, y1, d);
}
function fillRegionRequest(x0, y0, x1, y1, d) {
    // request has been made to recursively fill a region
    // only allow if reasonable
    rWidth = x1-x0;
    rHeight = y1-y0;
    if ((rWidth>2) && (rHeight>2)) {
        addFillRequest(x0, y0, x1, y1, d+1);
//    fillRegion(x0, y0, x1, y1, d+1);
    }
}
function addFillRequest(x0, y0, x1, y1, d) {
    // que up a request to fill a region
    var freq = {x0:x0, y0:y0, x1:x1, y1:y1, d:d};
    fillRequests.push(freq);
}

Any help much appreciated!!

Flash Video Player Not Working In IE. Any Suggestions Why?
Hi guys,

We have been building this Flash based video player for our website which uses a php back-end to upload and administrate the various movies (all of which need to be in .flv format). The problem that we have is that it works on both PC and Mac platforms in various tested browsers except in the IE browser on PC only... Hmm...

We have checked through the actionscript, php and paths etc, but can't see anything wrong.

Please go to this page to check it out (the videos in their at present are just placeholders for testing purposes) http://www.360scenes.tv/redesign_html/. If anybody can offer any suggestion as to why this is not to working in IE (PC version), please enlighten us as this would be fantastic (and perhaps we can all sleep a bit more soundly)...

Thank you in advance.

Ian

Content Not Working Correctly In Flash Player 9
I have built some content for a client which was working perfectly well in Flash Player 8 for IE. When I upgraded to Flash Player 9 the content does not work.

The content is published as flash 6 (AS 1.0) due to limitations on the client side.

The content works like this:

There is a main engine driving the content, this loads the next screen when it is requried.
There is a main menu which links to all of the sections of content
Content screens.

When I launch it in Flash Player 9 the menu loads fine, when I choose the first section in the menu the first screen of content loads fine. As soon as the next button is hit (in any section) the next screen does not load.

Can anyone help me with this?

Flash Player 8 Global Settings Not Working
Platform:
======
OS X 10.4
Safari 2.0(412)
FP 8

When I go to macromedia (adobe) site and open global security settings for FP 8 it doesnt show the add localtion combobox. Below is the screen cap.

anybody any idea ?

Script For Button Not Working Flash 8 Player?
hi, can anyone help me with this script?

The buttons work in flash player 6, but i have recently added some filters to the site and changed the settings to flash player 8, now the button links do not work!

the buttons are movieclips with script!

Any ideas, can i modify the script?

here is the script:

//
stop();
this.onEnterFrame = function() {
if (rewind == true) {
prevFrame();
}
};
this.onRollOver = function() {
rewind = false;
play();
};
this.onRollOut = function() {
rewind = true;
};
this.onRelease = function() {
_root.gotoandStop("home");

};

Help Please Scrolling Gallery Not Working In Flash Player 8
Hi there,
Can someone help please, I am at my witts end with this one!!

I have a scrolling image gallery. Very simple, scrolling thumbnails on the bottom, image pops up when thumbnail is selected. Thumbnails scroll left/right when the arrow buttons are pressed down on. This was created in mx2004.

I have moved this gallery over to Flash 8, and the scrolling no longer works. Everything else is ok (image pops up when thumbnail is selected) .

I have been killing myself redoing the actionscript over and over, trying new things, I even redid the whole gallery in Flash 8 hoping this would solve the issue. But no such luck!

I just realized that when I switch the Flash Player settings to 6 from the default 8, that the scrolling works fine. The problem is, that once I switch to Flash Player 6, other components of my document no longer work. So I need to find a way to make the scrolling gallery work in Flash Player 8.

Thanks so much!

Code Working For Flash Player 6 Settings But Not For 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

Pass Variable To Custom Function Not Working In Flash MX For Flash 6 Player
I have a Flash application that I built in Flash 5 that I want to now output in Flash MX (not 2004, though) for Flash 6 Player. The problem is that part of my code, which works fine if published for Flash 5 Player, breaks if published for Flash 6 Player. I am loading text from an external text file, and then passing the text contents of each variable to a function (to strip line breaks). Following is the code... does anyone know how to rewrite this so that it will work as Flash 6 Player swf? The contents of the variable are not getting passed, and eval does not work on left side of expression... I've tried everything I can think of...

Thanks in advance for help.

-S



PHP Code:



/* content, correct, Q1, Q2, Q3, etc are all variable loaded from external text file. I am trying to pass contents of variables, which is why I need to eval them. This worked in Flash 5, but not in Flash MX if I publish as Flash Player 6 file.  */   
temp = stripLineBreak("content");
temp = stripLineBreak("correct");
for (i=1; i<=10; i++){
     z="Q"+i
     temp = stripLineBreak(z);
}
     
function stripLineBreak(x) {
     tempArray = new Array();
     tempArray = eval(x).split("
");
     eval(x) = tempArray.join("");
     tempArray.splice(0,tempArray.length);
     tempArray = eval(x).split("
");
     eval(x) = tempArray.join("");
     tempArray.splice(0,tempArray.length);
}

Flash Working In Flash Player, But Not When Inserted In A Html Page
Hello guys. I have a very strange problem.
I have created a dynamic banner, made up of two simple combo boxes, with 3 parts actionscript.
The ideea is, when first loading the banner, the first combo box receives a lists of artists and it populates itslef with them. After selecting an option, it will send the id and receive a second list of tracks that belong to the selected artist.
After you select a track, you will be redirected to the page where you can listen to it.
MY problem is that while testing it, it works just fine in flash player, but after publishing it, my computer gets frozen up, untill a popup message appears, saying that my computer will become unresponsive do to the script.
This happens when i've uploaded the swf on the server. On my local computer, it only started to work in HTMl after i've modified the settings and set it up as trusted script.
ANy ideea how i can make it work in the browser?
Thank you for your help and here is the code of the banner:

!st code goes int he first frame:


Code:
myData = new LoadVars();
myData.load("http://website.com/banner/banner.php");
myData.onLoad = function() {
total_var=this.variabile;
myComb_cb.addItem({label:["Select an artist"]});
for (var i:Number = 1; i<=total_var; i++) {
myComb_cb.addItem({label:this["variabila"+i] },{data:this["variabila"+i]});
}

};
2nd code goes in the first combo box:

Code:
on(change) {
_root.myComb2_cb.removeAll();
var reply_lv = new LoadVars();
var send_lv = new LoadVars();
send_lv.id = this.selectedIndex;
send_lv.sendAndLoad("http://website.com/banner/banner.php", reply_lv, "POST");
reply_lv.onLoad = function() {
total_var=this.variabile;
_root.myComb2_cb.addItem({label:["Select a track"]});
for (var i:Number = 1; i<=total_var; i++) {_root.myComb2_cb.addItem({label:this["variabila"+i] },{data:this["id"+i]} );

}
}
}
And thirs code goes in the second combo box

Code:
on(change) {
getURL("http://website.com/banner/banner.php?id_piesa="+this.selectedIndex, "_blank");

}

Installed Flash Player 6 -> Site Stopped Working
Hi,

I have this flash movie which uses LoadVariables to load some data into a movie clip.

After the command has been executed, the movie sits in a loop waiting for one of the incoming variables to trip it.

When this has happened, the movie moves to a different frame and displays the variables.

However, with the Flash Player 6, this rarely happens.

Instead, the loop trips and none of the variables are visible. If one moves to the next frame and back the variables then appear as they should.

Incidentally, the variable which trips the loop is the very last variable written to the page requested with LoadVariables.

Also, this page is requested using https.

Any thoughts...

I.

Reading In Vars From Php File Not Working With Flash Player 6?
Hi guys

I've got a flash movie that reads in variables from a php file in the form:

&blah=monkey&boo=banana

This works fine using flash player 7, but it will not read in the data with flash player 6....

Any ideas?

Many thanks

_root.onEnterframe =function(); Not Working With Flash Player 7
_root.onEnterframe =function(); not working with flash player 7
anyone knows if there is a way round this problem .. its driving me nuts..
Help me out guys

Flash Player 8 Stopped My Print As Bitmap Working
I have built a program in flash which printed as bitmap some content. It printed fine using flash player 6 and 7. I have now tried to go back and use it in flash player 8 and the print is no longer working. How can I get this to work?

Connection To Server Not Working When I Export For Flash Player 7 Or 8
My following connection works when exporting for Flash Player 6 but everything comes up "undefined" when exporting for FP7 or 8.

Of course the "server" name has been edited for secuity reasons.
----------------------------------------------------------------------------
var connection:mx.remoting.Connection = mx.remoting.NetServices.createGatewayConnection( "http://www.server.com/flashservices/gateway/");
var server:mx.remoting.NetServiceProxy = connection.getService(betaDirectory + "cfc.serverInfo", new getResult());
var server2:mx.remoting.NetServiceProxy = connection.getService(betaDirectory + "cfc.serverInfo", new updateResumeResult());
var server3:mx.remoting.NetServiceProxy = connection.getService(betaDirectory + "cfc.serverInfo", new updatePortalResult());
var server4:mx.remoting.NetServiceProxy = connection.getService(betaDirectory + "cfc.serverInfo", new TemplateStateGetter());
----------------------------------------------------------------------------

Any suggestions?

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