I have an issue with a web gallery that i am building and i was hoping for some help?
1. I have a stage and I add some title text to my stage and align it right and height centered.Im preview it looks fine but when i publish its in the center of the screen
2. I have menu items that are loaded from a XML file. I have added two test lines to this file that get added to the menu one text displays as "Contact me" and another called "Links"when this text is click I want to activate a Links movieclip/ wepart and a Contact for the other.I see the logic something like If clicked.text in menubar = "Contact Me" then run contactform else If clicked.text in menubar = "Links" then run Linksform End if.I am a vb.net programmer not flash any help would be great on both questions
I've been struggling with an issue for a while now and can't find a solution. I've got a series of movieclip buttons that I have going between states on ROLL_OVER, ROLL_OUT and CLICKED. It's very straightforward - except for the fact that I can't get the CLICKED function to take precedence over the ROLL_OUT and I was wondering if there was a way to make the ROLL_OUT conditional on the click. ex:
ActionScript Code: //this is coded on a series of 5 buttons, only 1 is shown as example: paintings2000_but.addEventListener(MouseEvent.ROLL_OVER,onPaintingsOver); function onPaintingsOver(state)
[Code]....
So my issue is that I need the ROLL_OUT to be conditional based on whether someone has clicked the button or not; but I can't find a solution for how to do that in this context!
I'm trying to get it so whenever the object is clicked it reduces in opacity by 10% each time, and if it gets to 10% and it's clicked again it stays at 10% instead of going to 0. I got it to keep going down in opacity fine I just don't know the code to keep it from going lower. this is what I have so far
function fadeOut(e:MouseEvent):void { instrument.alpha -= .1; } if (instrument.alpha<.1) { instrument.alpha = .1 } else { instrument.alpha -= .1; }
I'm trying to get it so whenever the object is clicked it reduces in opacity by 10% each time, and if it gets to 10% and it's clicked again it stays at 10% instead of going to 0 I got it to keep going down in opacity fine I just don't know the code to keep it from going lower. this is what I have so far
I have a button which opens a gallery when clicked .. this is the code:
Code: on (release) { ssp.toggleGallery(); }
I also have a dynamic text box and I want that exact same action to be performed when the text inside the text box is clicked. This is what I have in my txt file but it's not working,
Code: article=<font size="11" color='#FF0000'><a href='asfunction:ssp.toggleGallery()'>Open gallery of current projects</font></U></a>
i am really stuck with a quite tricky problem i have with my e-learning software i am creating.The on screen text is written onto the screen one character (animated) at a time using a peice of code and then each scene i MAY want a prompt box that appears on the stage AFTER the text has completed writing.I am currently using this code to write my text onto the screen which works brilliant,
Code: Select allvar textToAnimate:String; function startToAnimate() {
Having a few problems with what I thought was a simple if statement. Here is the code:
[Code]...
I can't quite figure out the small problem with the code. It seems to just bypass the first requirement of the if statement when I do type in the proper input and go straight to the else statement.
The Flash movie contains 2 Text files, one Component button, and 1 component checkbox.The purpose of the application is to load an XML file(works)Populate 2 text fields with information from the XML file(works)Compare the two text fields, if they contain the same information then the checkbox, via AS is told to be selected. (Heres the problem);
The idea behind this app is that its an electronic form. The user fills it out, the information is then sent to a newly created XML file, months later the open the XML file in flash, and Flash fills out text fields and check and or unchecks Checkboxes based on the XML data.CheckBoxes are mandatory.But I don't see how I'll be able to use them if i can't create and condition statements based on the loaded Data.
I have a dynamic text box (called navgxchangeBox below) that is being fed by an xml file.Depending on the output (weather positive or negetive) I'd like the text to display green (for pos) or red (for neg). I know I need to write a if conditional statement but not sure if it is correct. The text is displaying in color, but I don't think the condition loop is executing. Can anyone look at my code below and tell me what I am doing wrong?
i cant seem to get a simple if/then statement working with an input text. Here is my AS
[AS] on (release) { password = inputName if (password == "test") {
[Code].....
For some reason when i type in test in the movieclip inputName it still sends me to ign.com. Everything is in the same frame and i just cant get it working.
I have created a box with 5 buttons with their corroesponding color names beneath them at the left. When you click on a button it will change the box to that color. How do i get the color name that is clicked to show up under the box?
when i click some mc in the list it shd be red and the rest white and on rollover it shd be black and on rollout white the clicked mc shd be disabled and all other enabled
Hi, I'm making a simple target shooting game in Flash CS3, and need to know how to make it so when you click on a movie clip, it adds 1 to a dynamic text box reading 00.
I have a textfield that has a mouse click event, and when the user clicks on the text field, I would like to make the text bold, but the following code doesn't work:
ActionScript Code: private function onTxtMouseClick(e:MouseEvent){ var el = sng.getChildByName(e.target.name); // The text field[code].........
I have created a delete button and have linked it to a text box along with another button that displays "1" in the text box when clicked. I need a button that will then delete this "1" out of the text box when clicked.
I have a TextField, containing some characters. The TextField is bigger though and containes some empty space. Now I need to determine if on a mouse click on this TextField, the user hit the text or if he hits the empty space.
I have a code that clear textfield when you click inside. My problem is that I have to many text fields so i am trying to write some function that can be used for all the text fields.
What I can't do is to add some other property to the textfield like I can do with any variable. So my code is:
// nome is a textField var nome:TextField; nome.text = "ol�" // text displayed inside the text field
I have a button that when clicked it displays a few lines of text. Some of the text is large, bold and some of it is normal and smaller size. The first time I click the button the text displays properly but if I click on it a second time then the text is messed up. I am new to flash and have tried several different things.
I posted a question like this yesterday but I was not clear in the description....i have an app i'm making in flex and I'd like to have a button's text change to a random entry within an xml when the button is clicked....the xml is in the assets folder and is titled games.xml. I would like to have a random game name be selected from the XML when the button is pressed.[code]...