ActionScript 2.0 :: Ceratin Part Of Script Make Certain Values
Apr 17, 2003
Is there anyway to have a ceratin part of a script make certain values a certain value for only that part of the script and then have the same script later on but have to show different values.. that was confusing right?[code]and i then want to repeat this script but with a chang that all the "1"s are "2"s and all the "a"s are "b"s (atxt become btxt for example)Im not really sure how to do this.. i was think of like having a loop function and everytime it does the script it changes thoose values but then im not so sure how to change a into b.
I have a website and I made a empty movie clip and put it on Scene1 called "contents" where I want to load my movies. Look at what is happening. I would like to know how I can load the second part of the movie and make the first one go away, because right now it's showing both.
Here is my code on the button in scene 1. on (release) { loadMovie("main.swf", 1); } Here's what it looks like: [URL]
TheProfileRoot.EngineeringText.text = "Level " + PlayerEngineerLevel + " Engineer - level up in " + PlayerReqEngineer + " xp"; I want the "Level " + PlayerEngineerLevel to be bold. And the rest to be plain.
I have a part of a movie that I want to make it scrollable. for example I have a square, and put it things (text fields)when it fills the square I want to make the square scroll. for example in this fla (test.fla)....in the 5th frame the 'hi' get's out of the square...and I want to scoll.
i want to make this menu which a part of it rotates. I have a circle with text besides it. This are the buttons. On this circle i have some kinda thing which points the button of where the users mouse is on. So each time the users chooses anothe button, the pointer has to rotate to that button. If there is no mouseover or anything, the pointer has to point the button on where the user is on the site (so in home the point has to point to home button)
I have a question, not necessarily about coding, but about setting up a file. I want to create an expandable ad, but I don't know how they work. Do I make the stage the size of the expanded part? How do I only have the unexpanded part act as though it is a different, smaller size.
There is this one scene in this movie I am making which is CPU extensive.. what is the actionscript to make it automatically low quality and then when it is over go back to full quality?
I have a replay button that is already working great, but I want the arrow part of the button to spin in the 'Over' state. What I tried was creating a looped frame. I went inside the button itself, (button composed of an arrow symbol and text). I then went to the 'Over' state and went to edit the arrow symbol itself.when I drag the playheader in there, it seems to loop just fine, but when I export it it's not working.
I need to make part of a flex skin non-focusable/non-clickable, i.e. so that when the mouse clicks that part of the button, it doesn't actually get clicked. Basically, I want that part to be a shadow or highlight or background or whatever you'd like to call it.It's done somehow with drop shadows but I want to have finer control than using filters.Example code:
Take a look at this demo, how do they accomplish the Inline Changes feature? To me it looks like they are floating a movieclip over the textarea. What I can't figure out is how they anchored the movieclip to stay in the correct position. If you type something before the movieclip it moves position along with the text, the movieclips even move to the next line when the text word wraps. Does anyone have an idea?
Is there a way in flex (Flash Builder 4) to make regions like in c#, to group a part of the code allowing us to collapse it and see through our project more easily?
I need to underline particular character of the tab header(like Account) A has to be underlined. We are using tab navigator and canvas container controls to create the tabs in our screen( Canvas label has to be underlined).
Within my flash file, some of the layers/objects go off of the sides of the document as I want them to. When I play the file within the test movie function within flash, the file plays fine and none of the layers that extend of the document cause problems(the samething happens when I play it in flash player). But when I open the file in a web broswer the layers that extended off the edges of the document show up. Is there anyway to get rid of this without having to redo the whole file? (ie, crop around the main document size, or set it to export only everything within the document and nothing that extends off of it?)
For example: Say the application has two VBox with vertical layout. There is a Button in first VBox and when clicked, there is a custom modal popup being shown. By default the whole background of the application remains blur, but I want the second VBox to be visible. Is this possible? If yes how can i accomplish this?
I'm going to use a particle system to create some smoke to simulate the tattoo burning into his skin. I can do that part just fine.What I'm not sure about is how to make the smoke only come from the "inked" part of the tattoo.I'm assuming I have to cast the tattoo as a BitMap and then run some sort of logic to see if a pixel exists and if so, to generate my smoke.Just not sure how to do that. The smoke generation I can do...it's the other part with the pixel bitmap thing that I'm confused about.
How can I make a action script controlled print screen that will save a part of a screen And can I filter a color out of it (so that only that one color will NOT be visible on the saved img) with AS
Ok perhaps ive bitten off too much here...I know you are not supposed to parse xml/html to regex but the thing is there just arent many other options.Im using AS3.im parsing the source of textflowlayout text to a different format.
string to parse :
< fontFamily=Verdana encoding=unicode fontWeight="bold"> some text < fontFamily=Verdana encoding=unicode > some text < fontFamily=Arial encoding=unicode fontStyle="italic"> some text < fontFamily=Arial encoding=unicode fontWeight="bold" fontStyle="italic"> some text
what i really need is:
< fontname=Verdanabold encoding=unicode> some text < fontname=Verdana encoding=unicode > some text < fontname=Arialitalic encoding=unicode > some text < fontname=Arialbolditalic encoding=unicode > some text
logically i think of it as taking apart the string into substrings
checking if there are fontWeight or fontStyle in the substring
if there is then appending the font name with the weight or style so so that the font name becomes font NameWeightStyle.then rebuilding the string.The font could be any font with variouse styles or weights..so far:
pattern = /<(.*?)>/gixsm; var matches:Object = pattern.exec(str); var finalstring:String = "";[code]...........
How can i make a function that changes the value of variables that are passed into it. For example:
[Code]....
I want the example above to add 5 to the variable pie1 (or whatever variable is passed in) and change pie2 to the cosine of pie3. Hope this makes sense :P
I would like to make a function which randomly calculates values which I later use in the setTransform thingie.If I hardcode the random script (see the commented lines) it works ok.But the function won't work the values don't transfer.Below is the whole script of the enterFrame:
onClipEvent (enterFrame) { if (something) { function alco(arg) {[code]....
I have a main FLA and when a button is cliked few swfs loads in to it. I need to get a fill colour applied to a object depending on whcih button is cliked.E.g. my_btn - click - loads my.swf & applies #333333 to "my_mc"I'd like to involve a MySQL db here since I'm loading some data with the same buttons' onPress command.
I have an xml with an xml-schema. The xml-schema defines an abstract complex type with 2 optional attributes that have default values. Then I have several complex types that extend the base one. And finally nodes of the types defined.So I load the xml and when I parse each node, the optional attributes are not present at all.I've tried fooling around with the namespaces, even[code]...
No luck. Something similar was being experienced by this guy on codingforums, but that was like 5 years ago. Same is happening to me with firefox 3.0.11 - the xml is shown without the default attributes.For now I'm setting the default values in code, but isn't there a way to make them available from the xml-schema?[code]...
i been trying to figure out a way to make sure my property values from my xml file are fitting sweetly into my classes.
using 'property is XClassType' pretty much tells me if its an array, boolean, number. But strings are a bit weird. Even though the property is declared public var some:String the below test doesn't trigger it being set to a String. Are Strings different than Boolean, Array, Number, etc.?
Code: if (myTarget[i] is String) { trace("prop is string"); myTarget[i]=String(mySource[i]); }
I'm having my first go at creating a custom component that lays out items in a grid. I have made a selection of inspectable properties accessed though getter/setter methods. Some of these parameters are dynamic, and change when the user resizes the component or changes another linked value. Is it possible to make the parameters panel update with the new values when a change takes place. Without this, the user will not have accurate feedback on the values stored in the component. Does anyone know if this is possible (or difinitely impossible)?