I'm completly dumbfounded here, I even copied one of my previous projects and it still doesn't work... driving me up the wall.I can't access the button from the stage though my sub object class within the document class. Instances are set right, works when it's actually on the document class. I've passed a reference to the stage as well.I've been looking for hours on the net and can't find anything.
Document Class: (button works here)
Code:
SoundAccess = new soundload(stage);
I am unable to access 2nd element and 3rd element (I can access 1st element) XML : <data> <text1> text1 </text1> <text2> text2 </text2> <text3> text3 </text3> </data> [Code] .....
I am unable to access my MovieClip.1119: Access of possibly undefined property currentFrame through a reference with static type Class.So basically, I want my newly made counter to subtract 1 point from my carriedItem when pressing SPACE. This should only function, when my char_mc is at a specific frame, as well as when the Deployable(xx)_mc is at a current frame. I made the adding work, but working with my Deployable(xx)_mc is giving me some headache.[code]
i have created this matching game from thing ive learnt. but im haveing a prob.when the game over function is run i want to; gotoAndStop("gameover") frame lable but it wont work here is my code
xml_object.childNodes.length will return the number of childnodes there are. But I don't see a way to get at the number of childnodes of a particular type. This will not tell me, for example, how many childnodes of type "b" that "a" has. I can't see Flash XML support being this sparse. Is there a built-in way of accessing the nth child of a node of a particular element name or am I stuck with accessing it only by number.
I've defined two classes, one of which extends the other. The superclass defines a constant and I can't seem to access it through the subclass.
Code: public class BigClass { public static const BIG_CLASS_CONSTANT:String = "Hi Mom.";
[Code]....
Shouldn't polymorphism allow a subclass to access constants of the classes they extend? Does the subclass have to reference the parent constant in some other way than a simple extension? Do I actually have to declare that constant in each and every class that decided to extend from that parent (but then how would the parent refer to it?)? Or (and this is the most likely) is there something completely different that I'm missing?
i wonder why i am unable to access the public properties of this custom class the public var w:Number; and the Public var h:Number; i am tracing them and on an instance of the PreLoader() Class.. and ia m getting NAN;
I will be choosing which mask to use based on users selection of puzzle piece.When I try to use traingular mask by adding puzzle.gotoAndStop(2) the swf just flickers. Thought the holder_mc and mask_mc are exactly of same dimension one comes below lower than other though I have not altered the position of the clips within a puzzle piece.If you want to take a look at my fla here it is https:[url]....How to go to a specific frame 2. Why is position of two clips inside the piece changing
I tried to deploy my otherwise working flex app on a web server (tomcat 6).It threw a Channel.Security.Error.After some research, I became aware that flash movie loaded from flash_movie_domain will not be able to load resource from any other domain.Some suggested adding a crossdomain.xml.However, the crossdomain.xml route doesn't quite make sense.In this case, I am loading resources from a third party web site.My understanding is that I need this third party website to include a crossdomain.xml on their root directory in order for app to function.The third party web service is provided as is. I will not be able to change what's given. Since the third party is providing public access, it already explicitly give permission to the general public. Adding a crossdomain.xml to their root seems to be a redundant act?
import flash.net.navigateToURL; import flash.net.URLRequest; button.addEventListener(MouseEvent.CLICK, action); function action(e:MouseEvent):void { var request:URLRequest = new URLRequest("novosti.php"); navigateToURL( request, "_self"); }
button is instance name of symbol - button, and like that script doesnot work there is error 1009:cannot access.....but when i put symbol with instance name button in form of movie clip, script works.
I want to apply an action to my button so that it plays a mc on frame 2 of the mc, but in the actions palette in the window to add an action it says: Current selection cannot have actions applied to it. This thing is definitely a button but I will say that I have a mc and text box in each of the 4 frames of the button. But why should that cause an issue? With the button on the stage, I can view the up/over/down states by going: control --> enable simple buttons, so it is acting as a button.
Some users are unable to access any of our video content, getting a Server Not Found error.We have our FMS configured to use ports 1935, 433, 80. Our firewall is allowing RTMP traffic to each of these ports. Is there something more I can do from my end to make sure users can access our FMS?
I'm porting a Tetris game I created in Javascript to Actionscript to get a little Flash/AS experience.
I have my main flash file, TetrisMain.fla and TetrisMain.asI put the main background image of the playing field onto the stage here. It displays correctly.
I have a file called TetrisBoard.as ( keeps track of score, level, current row etc)
I have a file called Tetraminoes.as
I inserted a "block" jpg into the library. I inserted a movie clip "Block" into the library, and dragged the block.jpg onto it. When a new Tetraminoe is created in the constructor, it creates "new blocks" which are the tetraminoe blocks. [code]...
I am a newbie to flash. I am having problem to unpause my pause button, it works fine locally in my computer but when i upload the swf file online, it is not possible to unpause it again.Here are my code:
Let's say this is movieclip 1 which i named it as m1. var snd1:Sound = new Sound(); var snd1URL:URLRequest = new URLRequest("c5_1.wav")
I have created a button which swap position after click on it i am giving the swf file in th attachment. now the problem is after inserting it in a movie clip i am unable to give link like getUrl or gotoAndPlay to the button. [code]
I have made calculator from tutorials but i was unable to add a radio button that will add number to the total after calculating two number.here is my AC3.[code]
i have created a character.as class that links to an object sitting on the stage. This class i have initialize var name;
i have created a button that uses on(release){}
the problem im having is, my button does not change the value inside the object.
for example:
my object has a variable called 'name' that holds the value "ayumilove"
and the button on the stage (once click and release) would change that name to "123"
i did 2 traces, before and after. the before trace is "ayumilove", and after trace is "123" However, after i click again (the 2nd time) , it still shows "ayumilove" then "123" shouldn't it be "123" and then "123" ? This shows that the name is not renamed, but overwrite back by the default value in the object.
I have a movie clip button with a dynamic text field inside. I am loading the mc dynamically to the stage. In Full_Screen mode static buttons including the full screen button work without a problem, but the dynamic button event does not trigger when clicked. In this simplified code belwo the dynamic button when clicked should change its message to "You have clicked button 1". This works in normal mode, but not in Full screen.I tried btn_cuePt_1.enabled= true; but without success.
Does it have something to do with not using the fullscreen events? exp. stage.addEventListener(FullScreenEvent.FULL_SCREEN, s_function)
Structure of my button is: Think of it as three layers inside a movie_clip. I used an empty button on the top layer so I would get a pointer cursor, I used a dynamic textfield the one that should change after the event to "You have clicked button 1", and last but not least the button graphic.
as3 Code
PHP Code:
//global variables var btn_cuePt_1; //file definitions
I'm trying (and failing it seems) to teach myself Action script and I'm having a really tough time with what I'm sure is something that quite easy to do. Basically I have one button. When this button is pressed I'd like it play a movie. When the button is pressed again I'd like to stop playing the movie. In the first frame of the movie I've put a stop action so that it doesn;t repeat itself when it finishes playing. In the last frame of the movie I've put gotoAndStop(2);In my main timeline I have 2 layers each of which has one frame. The button is one layer and the movie on the other.
I selected the button on the stage and gave it the actionscript on (press){ gotoAndPlay("vcsound_mc.play(2)");
In my first AS3 project (not used Flash since AS1) I need to use a custom movie clip as a cursor and detect clicking on a button. Using the code below, the custom cursor works as expected, but I am unable to capture clicking on the button.
If I comment out the first line, the trace for clicking works as expected. I have tried changing the order of the event listeners, applying the follow to the button rather than the stage, but cannot get both to work together.
stage.addEventListener(MouseEvent.MOUSE_MOVE,follow); start_button.addEventListener(MouseEvent.MOUSE_UP, playPhrase); function playPhrase(event:MouseEvent) {
I work with Flash Pro allmost 11 hours per day and every while i get a error which messes up everything. Approximetly i get this after about 2-3 hours withevery project.After i get this error there is no chance to test movies afterwards.I see a fast flash of the loader window but it dissapears so fast i cant even really see if it is loader.
I have created a style in which i am defining a font family.When i apply this style to label it reflects the font were as there is no change when it is applied to a spark button.I Tried various way to Apply font style but it doesn't work.Other properties work fine except font family. Even i tried creating skin class and set the font family style of label in it. While previewing the skin i can see the changes but when i apply it to buttonApproach 1