ActionScript 2.0 :: Go To The Second Frame When The Base Mc Are Iquall To Alpha 100?

Dec 6, 2010

I have an exercise like a puzzle to learn how to manipulate the x and y buttons and mc position in AS 2. all the code work ok, just only I dont know how to go to the second frame when the base mc are iquall to alpha 100.

Exercise: on the left of the stage are 4 mc (base1, base2, base3, base4) with an alpha = 0. in the same place are 4 butons (tor1, tor2, tor3, tor4). And there is a button to scramble and a little code to rotate the pieces and change the counter. When I hit this button all 4 pieces change position. When I click on tor1 I have to drag it on his place marked for his xy position(base1), when I drop it, this Tor1 go to another xy position outside the stage and base1 change to alpha 100, and couter sume +1. but I don�t know how to check if all base mc are in alpha 100 and go to 2 frame. Here is the code.

stop();
_root.counter = 0;
store base symbols in array[code].....

View 5 Replies


Similar Posts:


ActionScript 2.0 :: Go To Frame 4 When All Base Symbols Had Changed To 100?

Nov 24, 2010

using array and for loop.I have 4 simbols named base1,2,3,4 with an alpha = 0. and I have 4 buttons named mur1,2,3,4. when I click over "mur1" the symbol "base1" change to alpha = 100. and so on.I need to go to frame 4 when all base symbols had changed to 100; I had tryed meny time but never get it to work.Example:

var block:Array=new Array("base1","base2","base3","base4");
for(var i=0; i< block.length; i++){
if(block = block.length _alpha = 100){[code]...

Realy i dont know if this is the right way of the script, please can you help me to write this action s. or maybe there is another way to put out this final test.

View 10 Replies

Actionscript 3 :: Convert From Base 60 To Base 10?

Jul 29, 2010

I have a method that converts an int to a base60 string (using 0-9, a-z, and A-Z chars), but can't work out how to convert it back again. Here is my method for converting base10 to base60:

public static function toBase60(value:Number):String
{
var targetBase:uint = 60;

[Code]....

Works well. But how do I get the base60 string back into a base10 int?

View 4 Replies

ActionScript 2.0 :: Convert From Base 10 To 16 And Then Base 16 To 36.?

May 17, 2007

Its been a while since i touched flash, which is funny considering i started my web/development career here.Anyway, in PHP there is a nice little function called base_convert (http:url....) which will take any number in any base (e.g. base 10, decimal) and convert it to any base (e.g. base 16, hex).So base_convert (15, 10, 16) will output F, which is convenient.I am wondering, as i cannot seem to find, if there is any similar function in actionscript. I am trying to convert from base 10 to 16 and then base 16 to 36.

View 3 Replies

ActionScript 2.0 :: Last Bit Of Code In The First Frame Set The Alpha?

Feb 3, 2010

Inside a mc on the first frame I have put the following alpha AS fade in;

[Code]...

But this last bit of code gets totally ignored and it doesnt fade out. I know it works because I have tested it in the first frame. Does the last bit of code in the first frame set the alpha for the rest of the mc and override anything else?

View 5 Replies

ActionScript 2.0 :: Change Frame 20 Alpha Setting From Outside SWF File?

Feb 5, 2008

I have 20 frames on a timeline, and a mc in the frames. Frame 1 the mc is _alpha 0%, at frame 20 the _alpha is 100%. A tween between the frames fades up the mc alpha. How can I change the frame 20 _alpha setting from outside the swf file? Say I need the alpha to be 60% at frame 20 BUT I can't open up the FLA, can I adjust the Alpha setting (using Loadvars perhaps) without going back into the FLA? I won't have access to the FLA (when the file is online) and I want to be able to manipulate the frame 20 _alpha setting. I have tried doing this totally in actionscript and not using the timeline, but if I can't get that to work I will need to be able to adjust the alpha parameter without editing the FLA.

View 2 Replies

ActionScript 2.0 :: Getting A Movie Clip To Change It's Alpha When It Hits A Certain Frame In An Attached MC?

May 27, 2005

I'm trying to get in the habit of using AS in the first frame on the main timeline as much as possible. but sometimes i hit a snag. like getting a movie clip to change it's alpha when it hits a certain frame in an attached MC.

View 8 Replies

ActionScript 3.0 :: Set Up A Simple Enter Frame Loop To Adjust The Alpha On A Grid Of Movie Clips?

Aug 25, 2009

I've set up a simple enter frame loop to adjust the alpha on a grid of movie clips ("bubbles") using a distance formula from the mouse pointer.I've got a hunch that while this works fine, there's a more efficient or processor friendly way to do it.

grid of mc's created here....and pushed into an array
 stage.addEventListener(Event.ENTER_FRAME, loop);
 function loop(e:Event):void{    for each (var j in bubbArray)[code].....

View 1 Replies

ActionScript 3.0 :: Setting The Alpha Of MovieClip With Objects Changes The Alpha Separately For Each Object

Oct 23, 2010

[URL] i want the object to fade out but in the object there's a lot of overlapping pictures and each becomes half transparent. how to make the movieclip to change the alpha as it was without objects?

[Code]....

View 2 Replies

ActionScript 3.0 :: Curious Tip: Flipping Sprite.alpha=0 To Alpha=1 Back And Forth With No Logic?

Dec 15, 2011

just spotted this curious trick. If you want to flip something to go invisible on a click, and then reappear on another click (etc etc), try this:

create the sprite, setting alpha to either to 1 OR -1
mySprite.alpha=1; //OR
mySprite.aplha=-1;

[code]....

View 9 Replies

ActionScript 2.0 :: Loading A Movie A Solid Shape Is There With Alpha At 100% Then Over A Period Of 5 Secs Its Alpha Is Reduced To 0?

Jun 27, 2003

using AS, on loading a movie a solid shape is there with alpha at 100% then over a period of 5 secs its alpha is reduced to 0.

i'm new to this......please help if you want to if you don't have a good weekend but think of me struggling onwards and upwards...

View 14 Replies

Set Alpha For Whole Stage Down But Have 1 Mc Full Alpha?

Aug 2, 2011

I want to do aplpha = .5 for the whole app, but then have a MC display at full alpha, is there any way to do this?

View 6 Replies

ActionScript 2.0 :: Dynamic Text Alpha - Find A Component That Allows Alpha Control With A Dynamic Text Box?

Feb 26, 2005

As far as I know theres in no way to cahnge the alpha of a dynamic text box. I put one in a movie clip and when i try to change the alpha of it everything else in it changes its alpha but the not the DT box. Could someone plz verify for me that u can't change alpha and help me find a component that allows alpha control with a dynamic text box. thx in advance.

View 5 Replies

ActionScript 3.0 :: How To Change Base Url

Oct 8, 2009

I've two queIs some way to change base url of whole swf file?Is some way to change base url of loaded swf file?

View 2 Replies

Flash :: Use Base Param In It?

Aug 27, 2011

I have a flash file(full link to flash looks like [url]... which loads mp3-file(link to mp3 I send with php through flashvars)

I've embed dynamically(with swfobject) this swf to my page. It's ok. Then I send ajax-request to script, which reloading div with flash. Div is empty.

Experimentally I found out that I've trouble with relative paths. Flash file embed with this address ./swf/audio/player.swf and mp3-address is ./media/audio/user/1/random.mp3.

View 1 Replies

ActionScript 3.0 :: UiLoader .swf Larger Than Base .swf?

Jan 18, 2011

I have opted to use the UILoader component to load external .swf's of my images. The problems I am running into are that: one, the UIloader does not seem to be loading at all some of the time

and two, I cannot have a UILoader that is larger than the dimensions I am loading the image into.

For the first problem, is there a way to put a progress bar that specifically targets the UIloader so I can make sure that it is actually loading? I've been looking for a tutorial for this, but have yet to find one that explains the code and what it does, making it difficult to customize.

For the second problem, is there any workaround for this, or are the dimensions of the loaded .swf limited to the dimensions of the base .swf?

View 3 Replies

ActionScript 1/2 :: Communicating Between Loaded And Base SWF

Oct 12, 2009

I have a base SWF, and I am loading a another SWF into a movieClip array. I need to communicate from the loaded SWF to the base SWF I tried _root but think this only goes to the root of the loaded movieClip? This is what I tried:
on (release) {
_root.moveContent(2);
}

View 3 Replies

ActionScript 3.0 :: Get The Base Class Of An Object?

Feb 20, 2009

get the base class of an object ?

View 4 Replies

ActionScript 3.0 :: Get A Variable From Base Class?

Feb 22, 2009

How do I pass a variable to the subclass? [code]...

When I run this, I get back. Access of underfined property. How I get the subclass inherit the variables from the base class?

View 1 Replies

ActionScript 2.0 :: Base Movie Fps Different To LoadMovie Fps

Oct 7, 2009

I have a site that is 100 fps and i load in an swf that is 30 fps but the base movie is dominating so the loaded movie is playing at the waaay too fast 100 fps.

View 3 Replies

ActionScript 3.0 :: Change Base Url Of Main Swf?

Oct 9, 2009

I've flash application (mFA) loads by some kind of logic flash applications (sFA) from another folder. Problem is that after loading for sFA base url is the same as for mFA. Does I've some possibility to change base url for loaded swf or to change base url of main swf?

View 4 Replies

Actionscript 2.0 :: Grab Base Domain In It?

Jan 22, 2009

I wanted to know if it is possible for AS2 to grab the base domain and set it as a variable. This would also need to work for any domain possible. For example for [url].. what ever the combination it would always return "yahoo". This would need to work with the domain the swf is being viewed on so the domain wont just be 1 domain.

View 2 Replies

ActionScript 3.0 :: Make A Xml Base Gallery?

May 19, 2009

im am tryin to make a xml base gallery but im running into some problems. according to me is everything fine. xml, fla and images are in the same folder but somehow i get: Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.

now here is the XML:

<GALLERY>
<IMG="images/float_head.jpg" THUMB="images/gaine_thumb.jpg" DESCRIPT="FLoat Head" />
<IMG="images/float_head.jpg" THUMB="images/float_head_thumb.jpg" DESCRIPT="FLoat Head" />
</GALLERY>

[code]....

now....when i change IMG to THUMB, it works.

View 1 Replies

ActionScript 3.0 :: Conflict On Using The Same Base Class

Mar 30, 2010

I'm creating an application with an animated kid figure. All the kid symbols sit in a kidLibrary.Fla file, Each of these symbols have a class named "Kid" linked to it on its Properties >Base Class. This Kid class is responsible for setting the right color and hair type for each kid symbol instance. Every time i need to include one of these kid symbols i drag it to the current .fla file I'm working on. If I place only one kid symbol in the library of the file I'm working on, everything works fine!

Now here is the problem: When i place more than one kid symbol in the library, and then drag it to the stage, then one of the symbols works fine while the other one doesn't seem to access all the properties of the Kid base-class. The result is that only one symbol act perfect while the other one(s) not.

[Code].....

View 5 Replies

ActionScript 3.0 :: Base Class Does Not See Stage Instances

Apr 1, 2010

I'm writing a series of Search windows for an application. I create the FLA files on the stage, each has 3 simple buttons: next_btn, prev_btn, and close_btn. Those all have event listeners which call findNext(), findPrev() and closeWin() respectively. Each search window looks for different things, some with a text box and some with a combo, etc.
 
So I have a base class com.search that extends Sprite and adds the eventListeners at startup (actually, on addedToStage). Like this:
 
function isAddedToStage(evt:Event){
next_btn.addEventListener("click",findNext);   prev_btn.addEventListener("click",findPrev);   close_btn.addEventListener("click",closeWin);}

[Code]....
 
If I add the event listeners in the derived class rather than the base, it works fine. But that seems to defeat the purpose of inheritance, plus it infers that I won't be able to derive new classes/swfs from those derived classes.
 
how does one reference objects created on the stage from a base class of that document's class?

View 4 Replies

Professional :: Symbols + Base-Class Workflow?

Nov 8, 2010

I frequently create a lot of Library Symbols, export for Actionscript, letting Flash auto-generate the Class & extending a custom base-class in order to give them all custom functionality w/out having to create a Class for each, and/or without having to create a FactoryClass for instantiating X number of ClassObjects for each Symbol to be added to.It's really fast for prototyping, and with this workflow I've only hit a few obstacles.  Those are: 

1 - If the Symbol has children you cannot give the children instance-names, else the compiler gives an error related to automatically declaring stage instances. Two workarounds for this are that you can uncheck automatically declare stage instances, and do it manually in your base-class.  or you can avoid using instance-names, and use getChildAt().

2 - If the Symbol is a MovieClip, the timeline doesn't inherit the base-classes imports.  I don't have a workaround for this.are these limitations that could be addressed by Adobe's Flash team, or are they limitations that are unavoidable without altering the workflow?

View 8 Replies

ActionScript 3.0 :: How To Override Base Class Events

Nov 28, 2010

That is i have called one AA class in to stage. AA class is extends from BB class. BB class extends from CC class.CC class extends MovieClip.  In CC class i have given CLICK event trace("this is CC class"). i am also given for AA class CLICK event ("this is AA class ").When I Click the AA in out put panel "this is CC class" ,"this is AA class ") i want to stop CC Class mouseEvents.

View 1 Replies

Flex :: Base Class For Custom Components

Dec 9, 2009

In my flex app I have various custom components done with mxml or actionscript.I want all of them to extend a base-class where I can define properties/event listeners etc.Can someone give me an example how to create that base class and how I can extend it in mxml and actionscript components?

View 3 Replies

Flex :: UIComponent Base Class Not Working

Jan 4, 2010

I have a BaseComponentClass that I am using as the class that all my custom components extend.For some reason, none of my custom components show up at runtime. I am not getting any compile or runtime errors either.I am implementing all the protected UIComponent methods.[code]The Button never shows up at runtime.

View 3 Replies

Flash :: MovieClip Can't See Base Class Methods?

Aug 12, 2010

I have this base class

package sevengames.miranda.front.res {
import flash.display.MovieClip;
import flash.text.TextField;

[Code].....

I then, in the Flash document, create a movie clip which has this class set as the "Base class" in the properties. However, if I then do this.updateText(); in the movie clip's frame script, it complains

TypeError: Error #1006: updateText is not a function.
at miranda_fla::MenuButton_3/frame1()

Why doesn't it work? I know the class is read and compiled, because I had an error there which was reported.

View 4 Replies







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