Flash8 :: Achievements Appear Once Not Working?

Jan 18, 2010

I'm making an game which i want to intergrate acheivements, I've got everything working to an extent but I've isolated code and put it in a test to show my problem. I have a MC called "ach" (without ") and inside that i have another MC called a1 , a2 , a3. They are animated to disappear after say 45 frames. I've put my acheivements on buttons just to test them, but in my game you get them for say playing for 1 hour or collecting all items and some for clicking hidden buttons etc. but when I click the buttons again the acheive MC keeps appearing. I only want it to appear once.This is the code I have got that doesnt work.

Button Code :

Code:
on (release) {
_root.ach.gotoAndStop(3)
}

[code]....

View 1 Replies


Similar Posts:


[AS2] :: Using SharedObject For Achievements System In Games

Oct 23, 2010

i tried to learn about SharedObjects from here: [URL] ...=00001504.html but i dont really get it In a code like this:

var so:SharedObject = SharedObject.getLocal("userHighScore");
so.data.highScore = new Number();
so.flush();

which variable is actually flushed, the userHighScore or highScore? and how to use the shared objects on boolean variables?

View 1 Replies

ActionScript 2.0 :: [CS4] Using SharedObject For Achievements System In Games?

Oct 24, 2010

i tried to learn about SharedObjects from here:In a code like this:

var so:SharedObject = SharedObject.getLocal("userHighScore");
so.data.highScore = new Number();
so.flush();

[code].....

View 1 Replies

Flash8 :: Preloader Isn't Actually Working?

Mar 15, 2010

my preloader isn't actually working,trying to load the page on a PC with quite slow internet... The story is following - my preloader animation plays, but only after the whole movie is loaded, cuz I noticed a huge delay before the preloader was actually played... And then I used that flash speed testing thing (sorry, but I don't know how it's called) and it proved my theory... That's the code on 1-st frame, where preloader is:

Actionscript Code:
stop();var loaded:Number = getBytesLoaded();var total:Number = getBytesTotal();var percent:Number = Math.floor((loaded*100)/total);if (loaded == total){gotoAndPlay (2);}else{    _preloader.gotoAndPlay(percent);    //loadBar.percentage.text = percent;}[code].....

View 5 Replies

Flash8 :: Embedded Video Not Working?

Jun 22, 2009

This is driving me nuts folks. I've imported a video clip to my stage, added a skin for stop, play, pause etc. I test the Flash file using Control --> Test Movie and everything appears exactly as I want it to.

The problem is that when I upload the files to my server the embedded video clip does not appear, nor does the skin. Just a blank space

View 6 Replies

ActionScript 2.0 :: Flash8 Suddenly Not Working In IE?

Apr 29, 2010

I have a photo gallery I developed using AS2 in Flash 8 Pro. You can find it at [URL] I used a loadMovie to import different swf files into the main swf file when a button is clicked. It works great in Firefox and Safari but suddenly stopped working yesterday in IE. It worked in IE (6, 7 and 8) since last Friday when I uploaded it but stopped yesterday. I am using IE on Windows XP. I did try IE on Vista yesterday when I started having trouble with my XP IE and it seemed to work...however, this morning I can't even get my IE Vista to come up so am not sure it is still working on that version.I removed the preloaders that are in the imported swf files but it didn't help so I put them back in. I am using the following code in my html to embed the flash:

Code:

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,24"
width="815" height="570">

[code]....

I thought maybe there was a change in the way my server was serving the flash so I uploaded onto another server...still not working in IE. I also checked to see that the server did not store my swf files in all lowercase names.

View 3 Replies

Flash8 GetURL Not Working In Browser?

Jun 2, 2010

So iv been flash designing for about a year now, and i thought i was pretty good, however having never usd the geturl script before i am stumped whats going on. my AS is

Actionscript Code: on (release) {    getURL("index.html", "_self");} which works fine when playing the movie in the flash preview (pressing ctrl+enter) but as soon as i publish the movie and view it embbeded in an HTML document it doesnt work. this should indicate its my browser settings? however iv tried disabling my pop-up blocker and still nothing.

View 1 Replies

ActionScript 2.0 :: Flash8 OnRelease Function Not Working?

Mar 5, 2009

i have a movieclip on the main timeline, and inside that mc I have 1 button on first frame and 1 button of second frame...From the main timeline i run this script for frame 1 button...

publisering2.avpubliser_btn.onRelease = function(){
publisering2.gotoAndStop(2);
}

And this works fine.. however, i run the exact same script for the button on frame 2, ofcourse changing the path and gotoAndStop(1) instead... And this isnt working.. The button's over frame works so its activated...

View 3 Replies

ActionScript 2.0 :: Flash8 Dropdown Menu Not Working?

Oct 6, 2009

I'm having an issue with my dropdown menu, and I know how It's not working, but not why. See, I have an mc in my menu that I have a rollOver and rollOut function on. This makes it swap between frame 1 and 2 (2 beeing the frame with dropdown). Here's the issue: When I have the rollOver/Out function on the main item, the submenu items don't do anything when clicked. But when I remove the rollOver/Out function and just go directly to frame to from start, they work.

View 1 Replies

ActionScript 2.0 :: Flash8 Suddenly Not Working In IE - Won't LoadMovie

Nov 10, 2009

I have a photo gallery I developed using AS2 in Flash 8 Pro. You can find it at [URL]. I used a loadMovie to import different swf files into the main swf file when a button is clicked. It works great in Firefox and Safari but suddenly stopped working yesterday in IE. It worked in IE (6, 7 and 8) since last Friday when I uploaded it but stopped yesterday. I am using IE on Windows XP. I did try IE on Vista yesterday when I started having trouble with my XP IE and it seemed to work...however, this morning I can't even get my IE Vista to come up so am not sure it is still working on that version. I removed the preloaders that are in the imported swf files but it didn't help so I put them back in. I am using the following code in my html to embed the flash:

[Code]....

View 8 Replies

Flash8 :: Adobe CS4 Flash Preloader Not Working?

Jan 25, 2010

I am making a preloader for a 360* product viewer and i'm having some trouble. the preloader works fine and when placed by itself loads the second the page requests it. but once i put it in my .fla project something causes the preloader to not load. and instead starts playing once the file is completely downloaded.

there are only two frames. the first frame just has the preloader movie in it. the action code for the preloader movie is:

Code:
_parent.stop();
this.onEnterFrame = function() {
if (_parent.getBytesTotal()>1) {

[Code]...

View 1 Replies

ActionScript 2.0 :: [Flash8] OnRelease Not Working For CreateEmptyMovieClip?

Nov 3, 2006

Its suppose to create a Movie called container which has a text field in it then when the container movie clip is clicked on "Goodbye World" pops up in the trace window.So far the only thing this code does is display "Hello World" but no action is taken when it is clicked on.

Code:
var container:MovieClip = this.createEmptyMovieClip("container", this.getNextHighestDepth());
var label:TextField = this.createTextField("label", 1, 0, 0, 150, 20);
label.text = "Hello World";

[code]....

View 9 Replies

Flash8 :: Buttons Not Working In Browser But Fine When Tested?

May 1, 2009

Ok so here is the problem:

Using MacOSX 10.4 Tiger
Flash Professional 8
Firefox, IE, Safari

I created a flash movie. All of the pictures fade in and out perfect. There is a button on each of the pictures and these buttons take you to the picture�s respective page. When I test the movie the buttons work fine. When I export the movie as (.swf) and try it again the buttons work. I am hosting it on a GoDaddy domain that has been purchased and am referencing it on another site that I own. When I embed it onto my website, the movie plays fine but the buttons are not functional. Here are the things that I have tried to rectify the problem:

- Tried exporting and publishing to Flash Player 7 and 6 DID NOT WORK
- Instead of:
on (release) {
getURL(http:// . . ._self)
}

I created a new layer and gave the button an instance name and used it as an action layer:

MyButton.onRelease = function() {
getURL(www . . . ., _self)
}
DID NOT WORK

View 7 Replies

ActionScript 2.0 :: Flash8 Dynamic Text Box With Scroller Not QUITE Working?

May 8, 2009

this post references the files listed at:i've implemented a dynamic text box that calls a txt file into it. it uses a scroller that i found a tutorial on:i've got everything working splendidly - everything EXCEPT the scrolling bar... as you can see, it scrolls up and down just fine, but doesn't control the text.i've pretty much exhausted my search through the actionscript to locate the problem and i can't find it.

View 8 Replies

ActionScript 2.0 :: Flash8 Score Function Not Fully Working?

Jun 2, 2009

I've got two textboxes txt7 and txt9. First shows percentage right (working) and second is conditional if less than 70% shows "should repeat this" (working) but if 100% the "well done" doesn't show.

txt7var = Math.round((new_score/4)*100); // convert score to percentage
txt9var = "";
this.onEnterFrame = function() {
if (this._currentframe == 'score') {

[Code].....

View 4 Replies

ActionScript 2.0 :: Flash8 Simple Button Not Working Within Movieclip

Mar 2, 2010

I have a simple getURL button within a movieclip within another movieclip. Does anyone have any clue why this isn't working? The button is in the top layer of the child movieclip, and the child movieclip is in the top layer of the parent movieclip, so what am I missing here? I attached a simplified fla to show the issue. In the end, the main red box will be a country on a map and the popup box will contain info about the country and links to pictures and sites.

View 4 Replies

ActionScript 2.0 :: Flash8 Simple Game Score Not Working?

Mar 28, 2011

I'm following a tutorial to make a simple game. The aim of the game is for a player to evade a flying enemy ; the higher the score, the faster the enemy. The main elements in the game are the enemy the player and a score card.

However, from following the tutorial, and adding the dynamic text field etc....the score doesn't actually work.

This is the code that I was instructed to place on the first frame of the Scripts layer:

//Game Variables
enemySpeed = 5; //Set Enemy initial speed
numberEnemy = 4; //Change this to add more Enemies
score = 0; //Set initial score to 0

[Code].....

View 2 Replies

ActionScript 2.0 :: [Flash8] DuplicateMovieClip Not Working Inside A Function

Jun 27, 2006

I have duplicateMovieClip action inside a fuction and it doesnt work, however it works when placed outside of this function, right where the function is defined, 1st frame.

[Code]....

View 2 Replies

ActionScript 2.0 :: [Flash8] Multiple Scrollers Working On A Page

Apr 19, 2007

Has anyone found a solution to having multiple scrollers work on the same page? I tried applying different instance names on all components but that didn't work either. The AS below only allows for one scroller to work.

[Code]...

View 1 Replies

ActionScript 2.0 :: Flash8 - OnRelease Functions Not Working With Attached Button?

Jan 12, 2010

I'm loading an item to the stage and trying to apply a function to it but it doesn't seem to work.

Code:
_root.attachMovie("FullScreenBTN","FullScreenBTN",_root.getNextHighestDepth());
_root.FullScreenBTN.onRelease = function(){
trace("test")
}

When I press the button nothing happens, but when I remove the attach code and just put the button on the stage with the appropriate instance name it does work.

View 5 Replies

ActionScript 2.0 :: Flash8 Previous Working Fla's Return Multiple Errors?

Dec 7, 2005

I've found out that when publishing with Flash 8 my previous MX's working fla files, I get multiple errors.I've had a look at the Export publishing settings and I think they're all correct: - Exporting version: 8- AS Version: 1.0So, I guess it must be a silly thing I'm doing wrong but after a long while I haven't been able to know what's wrong. Perhaps AS compatibility is not that accurate?The most common error I get is:"A ')' or ',' was expected" or"An unexpected '}' was found"(I'm using Spanish Flash 8, so I don't know if this is the exact message you're given in English Flash 8) The 'supposed to be wrong' code seems to be in lines like[AS].posicion = posicion+eval("abc" add i)+gap;abc=eval("_parent._parent.abc" add _parent.n)[/AS]and I even get a "Declaration must be inside a on/onClipEvent controller" here:[AS]._xscale=abc*1.4;[/AS] ...while ALL of this code worked perfectly in Flash MX, I get up to 104 errors in Flash 8

View 7 Replies

ActionScript 2.0 :: [Flash8] Game Score (A Simple Timer) Not Working?

Mar 28, 2011

I'm following a tutorial to make a simple game. The aim of the game is for a player to evade a flying enemy ; the higher the score, the faster the enemy. The main elements in the game are the enemy the player and a score card.However, from following the tutorial, and adding the dynamic text field etc....the score doesn't actually work.This is the code that I was instructed to place on the first frame of the Scripts layer:

//Game Variables
enemySpeed = 5; //Set Enemy initial speed
numberEnemy = 4; //Change this to add more Enemies
score = 0; //Set initial score to 0

[code].....

View 1 Replies

ActionScript 2.0 :: Flash8 : File Upload Not Working With Flash Player 10.1 In Firefox?

Jul 14, 2010

I have a file upload script to upload pictures to a server. It has been working fine in all browsers but when I upgraded the flash player to 10.1 in firefox 3.6.6 yesterday it stop working.I retested with another computer and as soon as i installed the flash player 10.1 it stopped working.I did some debbuging and noticed that the error return from the FileReference listener is I/O error.It doesnt make sense because the file is in the server and it works fine in all other browsers.I changed allowScriptAccess from "samedoamin" to "always" without luck. it works perfect in other flash player versions.the HTML that embeds the movie:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="550" height="300" id="test" align="middle">
<param name="allowScriptAccess" value="sameDomain" />

[code]....

View 5 Replies

Actionscript 3 :: Image Is Working After Compilation But Not Working Once The Executive File's Location Is Changed?

May 25, 2011

package
{
import flash.display.DisplayObject;[code]....

View 1 Replies

Flash :: Working Fine In Local System ... Not Working In The Live Site

Nov 5, 2009

I have a flash project, its working fine in local system, but the same file is not working in live here is the link of the site, its showing blank page, the flash contents are not loading... [URL]

View 12 Replies

Flash Working Fine In Local System / Not Working In Live Site

Dec 14, 2009

I have a flash project, its working fine in local system and checked this file with uploading in someother websites, its working fine there too, but the same file is not working in live here is the link of the site, its showing blank page, the flash contents are not loading.URL...and here the same file which i have uploaded it in other server its working fine.URL...

View 2 Replies

ActionScript 2.0 :: UTF-8 French Characters Working Locally, But Not Working On Server?

Apr 21, 2009

I missing a file that needs to reside on the server to get this working?

View 1 Replies

Professional :: Button Link Not Working In Safari, But Working In Firefox?

Apr 18, 2011

[URL]
 
The ad on the bottom right of the screen (the one with lightning flashing) has an invisible button in its Flash file (CS5) linking to [URL]. This file is imported as SWF in Dreamweaver CS5.
 
The hyperlink works in Firefox, but not in Safari. Maybe it is just my computer.

View 1 Replies

Actionscript 3 - Flash Player Is Not Working In Domain / But Working If I Provided IP

Oct 14, 2010

I have developed a player in AS3. It is working if i provide the IP of the website. But, it is not working when i provide the full domain name. Even, i provide the crossdomain.xml for global access.

View 1 Replies

ActionScript 3.0 :: Flash - Url Picking Not Working On Server But Working Locally

Mar 17, 2012

i have a "swf" file which is picking url from xml & displaying the image, when i tested it locally it works fine, which means it picks up URL from XML & displaying corresponding image. After i uploaded it on server, it doesn't show anything.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved