Is there a way to make the flash as3 compiler require static typing? I've got a bad habit of not doing it, and it'd be nice to make it throw compiler errors. In the publish settings for as3, I turned on "strict" but that didn't really change anything.
Is it possible to make the content assist in Flex Builder to pop up as soon as I start typing and not just after pressing CTRL+SPACE? It does pop up by itself after a '.' (foo.) or a ':' (var foo:). But to get a list of available variables and methods I have to press CTRL+SPACE.
URL...I've set menu items with an elastic Y position prototype.What I need to do now is make the menu tabs collapse with the elastic force. So if i was to click the top tab, the bottom 4 would fall. If i was to click the 2nd tab, the bottom 3 would fall and the top 2 would go up.
I've been working in CS5, with an older FLA I originally built in CS3. On the timeline, I have different MCs and button symbols which need to stay in the same coordinate position. Usually if I notice some sort of 'wiggle', I will go and check the position coords by hand, updating the x/y position by typing numbers directly in the Properties panel.
However today, I repeatedly saw the coordinates change -by themselves- after I typed and hit Enter. For example, typing '165' in the Y field changed immediately to '164.95'. With one symbol, this behavior continued, no matter what I typed, with the number changing by 10 pixels sometimes, every time I just selected the symbol. Not only was I not able to keep the symbols at the same coords (I tried making them all 164.95), the 'automatic decimal' numbers would actually change further, as I was trying to correct them. I was only able to resolve this by creating an entirely new MC symbol in the Library, and placing it on a new timeline layer.
I've noticed this sort of behavior before in CS3 and CS4 (the CS4 Alpha slider never wanting to go to 0 or 100%), but never to this extent, or as consistently. It's gone from an annoyance to a genuine problem in my workflow.
I am modifiing a flash-application and have got quite far. However, I am stuck with a problem: it is not possible to type in the Danish letters ������ in the application UI, it does simply not respond to these. This is probably because the letters were not embedded/included in the external font file (which is a swf), that the application use as a resource. I have tried to swap the font swf-file with a homemade one but it does not seem to be wellformed, since the application now does not allow any writing at all.
I'm tryng to make a public static method call another method, but Flash throws error 1180, sayng that the method called by the static method is undefined.
Flash file wont show up on page unless you type in direct location. I am working on a website called phocusmag and I am trying to get it to have coming soon on it so I created a swf file called index but it wont play unless you type in. Phocusmag.com/flash/index.swf
For the life of me I cant figure out why it wont go to it...im using dreamweaver cs3 to create the page <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL]"> <html xmlns="[URL]"><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> [Code] .....
If I only instantiate a class once should I make its vars static? I understand how this is of benefit if I make multiple classes, clearly you use less memory as it creates a reference to the same place for each class. Are there any other benefits for creating static vars or functions ?
For example I have my class 'MainMenu' which I create once (might even be my document class). In it I create a Code: private var someHolderForStuff:Sprite = new Sprite();
Should I rather create Code: private static var someHolderForStuff:Sprite = new Sprite();
How do I make dynamic text look static while the HMTL tagging is enabled?
I have a dynamic text filed where I am setting the text value through a variable. Now, I need that text to look static on run time and HTML tagging on the field enabled.
Is there a way to make an static method act over an object of its class that is already on the stage, without using the keyword "this"? I mean, like "generic object of this class: do what I'm telling you to do, wathever your instance name".My goal is to create an method that get called by any object of this class, based on the changing on the value of an external variable, but since I cannot use the "this" keyword to reffer to each instance, I could not figure out a solution.
I'm trying to make a scroller for a movieClip, with a static text inside does any one Know how can i do it. (I don't need the arrowfor this case but only the code for the scrolling bar)
I have a dynamic text field where I am setting it's text value through a variable. Now, I need this dynamic text field content to look like static font on runtime. I tried embedding the text field but that makes my file so heavy and most importantly, it disables the HTML tagging on the text field.
1. Static var(an Array) stored in a class. 2. You create a variable reference to the static class in a separate class. 3. Splice some items from the reference variable in the separate class. 4. Trace the static class and the items have been removed from that too. 5. Verify several times. 6. Get confused. 7. Post on Kirupa.
Ok, so I have a bit of a mess here (Which I'm probably not doing right anyway, which could be my problem...). I have a document class, I'll call it as Body.as, that creates an object from another class known as Headgear.as. There are also other objects created from other classes, or will be in the future. Now, amoung all this, Headgear.as and all of the other classes Body.as will use to make objects require the use of dragging functions (starting and stopping dragging). On stopping drags, position checks are then made to compare a particular hidden movieclip with the dragged MC.
To try and save myself some hassle (from making the same functions over and over to ensuring that when the objects are created I don't need to send a complete crapload of variables just to ensure the position checking function would work), I had the functions for the event listeners (Which are set-up on the draggable MCs in Headgear.as) just direct to functions in Body.as
If I created a static method. say I decide to call on other methods within that static method. Do those methods I call on need to be static as well? what If I used some of the properties. Not to store data permanently, but just within that process. Do those properties need to be static ??
Yesterday I found myself wondering, what is the difference between either having a class with methods that are all static, or simply giving your class the static attribute?
Alright, so I have a class that is linked (via the linkage panel) to a scrollbox class. I'll paste the class here:[code]Ignoring the formatting, the commented out functions are the ones causing the issue. Adobe says that it's a static class and I can't use non-static functions. The way I wanted to use it was:
1. Call the page button generating function above.
2. In the main code in my program is this line:scrollbox.setClickFunction(historyContent.generate Page);So when the buttons that are supposed to be generated are clicked, the scrollbox class can call the History pages generatePage function and pass it which page to show. (I did this because there was a lot of text and a limit on how much would display, so small chunks sounded logical).
3. In the onClick function (which I haven't finished yet because the rest wont work), when you click one of the buttons it calls the set function. Its that simple.
Im working on a game and I need for when the player types in something like two or 2, too go to the next fame after typing it an and pressing OK. How do I do this?
Is there a way where in if I click outside the textbox the blinking cursor will go away? so users have to click on the box before typing. then click away to and the blinking will be gone.
I am trying to create a simple login page but coming across a number of problems. Firstly I have a text field - in the properties section it is classic text and Input text. However when I runt the flash file. I am not able to input anything in the text input, Why?
I should mention I am using CS5 - I get a silly runtime warning: Fonts should be embedded for any text that may be edited at runtime, other than text with the "Use Device Fonts" setting. Use the Text > Font Embedding command to embed fonts.
best way to create an effect as if text was being 'typed' onto the screen (i.e. text appears 1 letter at a time, not as a single block)?I was considering creating an array containing each letter that needed to be typed, then using a timer to display each letter in turn... but this seems rather inefficient, is there a better way to go about this?
I've got a submit form and my script points the blank fields with a error message (movieclip). How do I make the error movieclip ._visible = false when a user begins typing in a the relevant text box?
I am trying to make a small game and I am having trouble adding a code to an "object" or MC. So, I drew a circle using the ellipse tool, I selected the black cursor, clicked on the circle, F8 - made it into a Movie Clip. Now, I right-click it and select "Actions" and it says "Current selection cannot have actions applied to it." What am I doing wrong? How do I start typing code in a Movie Clip?