ActionScript 2.0 :: If Else With States And Zipcodes?

Jun 5, 2006

I'm making a form that directs you to the proper person in that area.When I try inputing another state such as NY it keeps outputting "John Doe 2" instead of the proper name.Here is my script. I don't know if I can't switch up zip and state..

on (release) {
if (zip>15000 && zip<16899) {
name = "John Doe";[code]....

View 4 Replies


Similar Posts:


Button States Not Working?

Jul 25, 2009

I work with Flash all day at work, and I've made a million buttons. But today, I decided to make a few at home for my personal website. I made a rectangle, turned it into a button symbol, and made keyframes on each state. When I tested it, it didn't work. If I go to Control -> enable simple buttons, it works just fine, but either testing it with ctrl-enter or opening up the SWF gives me a dead button with only the up state.

I uploaded the fla. How could something so simple not work?

It was created in flash CS4, but I saved it down to CS3/Flash player 9 for the sake of compatibility.

View 1 Replies

CS3 To Change States Of Button?

Feb 22, 2010

ive got an image with text pasted on the top. i want to turn into a button as when the mouse rolls over it i want it to go lighter. so i changed it into a button by pressing f8 convert to button and changed the alpha value in the over status, the brightness changed but the text diasappeared.take 2 - tried the same again minus the text, converted just the image to a button but now when i double click it to get the various hit, over down etc stage theyre not there! i tried to select edit but seemingly that just edits the alpha property but not in any particular stage

View 12 Replies

Professional :: Up-Over-Down-Hit States Of Button Gone?

May 9, 2010

Well I've got some problems changing the Up, Over, Down and Hit state of my button. For example when I have created 4 of those states, and I just normally save my flash file, the next time I open it my states are gone but when I play my animation the button still works with the correct states (the created Up, Down, etc. states). But then again when I enter my editor to create those Up, Over, Down, and Hit states they're just missing?

View 1 Replies

Flex :: Implementing States In App

Apr 24, 2010

I'm trying to work out how to use states in my Flex app.I've created two states, State1 and Stage 2. Both are based off the base state. I've created a few visual elements for State1, and given each of them includeIn="State1".But when I'm in design mode and click on State2, these elements are still visible?If I try to delete them while State2 is selected, all that happens is RemoveChild is added to the State2 tag.

View 1 Replies

Flex :: How To Add More States To Button

Aug 11, 2010

I would like to know if there is a way to add states to a button in flex 4 in addition to the default states that are present.

View 1 Replies

ActionScript 3.0 :: Gallery With 3 Button States?

Jul 21, 2010

What i need is a series of pictures on a row that is mouse sensitive, if you move the mouse the gallery move in a loop, (no stop!)All theese pictures need thees effects:

Normal state: blur
rollOver: unblur
rollOut: blur
click: unblur and desaturate
clicked: all picture pressed remains desaturate until you reload gallery.

what i have done is this:

Code:
import gs.*;
this.buttonMode = true;

[code]....

This works but i would like to have unblur the last button pressed...[URL]

View 3 Replies

ActionScript 3.0 :: Create Buttons States For MCs?

Nov 25, 2009

I am creating a generic website that would have abstract MCs that would load jpg or TXT fields for the user interface to allow for fast updates to the site. The MCs that would make up the user interface would be empty and load things into it using XML or PHP later on. How would I create button states for the user interface MCs.  I started creating a function for every MC button state but I thought there might be a more efficient way. 
 
and is using URLRequest the way to link to pages with in a movie well the flash movie that is the site it's self?
 
/*---------------------------- THE START OF MY ACTION SCRIPT ------------------------------*/
var waywardLogo_mc:MovieClip = new MovieClip;
var theCollection_mc:MovieClip = new MovieClip;

[Code].....

View 3 Replies

Flash -:: Viewstacks Vs States In Flex?

Jul 23, 2009

I have an app that I am currently using a viewstack to display each page and I am wondering is this the right way to go, or should I use different states (or something else).

The site is powered by a menu bar with the top level items of Home, Tools, Support. Underneath the Tools menu is a submenu with Tool1, Tool2, Tool3. Currently when the user clicks on any of the tools in the Tool submenu I bring up a child container from the viewstack (each child is actually in a separete component).

View 3 Replies

Actionscript 3 :: Flash FLVPlayback States?

Mar 12, 2010

I'm writing my own class to manage a skin for an FLVPlayback component. It works 90% of the time, but sometimes the state get really messed up. Specifically, the video is playing, meaning I can see it play and the VideoEvent.PLAYHEAD_UPDATE event is firing, but when I poll the FLVPlayback component about its playing property, it returns false. Instead the buffering state is set to true.I assume this may be because 'buffering' is kind of a subset of 'playing', but I cannot confirm this in the documentation. I guess another way to ask this question is, "Does the FLVPlayback component ever buffer while it is in a stopped state?"

View 1 Replies

Flex :: Inherit States With Mxml?

Oct 18, 2010

I have the following panel component called AdvancedPanel with controlBarContent:

<!-- AdvancedPanel.mxml -->
<s:Panel>
<s:states>

[Code]....

Using the CustomAdvancedPanel inside an application component shows an empty panel with the "Go to edit" button. But when I click it, the "Extra edit button" becomes visible, but the "Show in edit" button inside the controlBar doesn't.

When the CustomAdvancedPanel is empty, without redeclared states and "Extra edit button" the panel works just fine.

I think it is because the State object declared in AdvancedPanel isn't the same as CustomAdvancedPanel, so the state is different, even if they have the same name. However. I can't use the states of AdvancedPanel inside CustomAdvancedPanel without (re)declare them in mxml.

Is there any way to achieve this kind of state-reuse? Or is there a better way to obtain the same result?

View 5 Replies

Flex :: Use Global Application States?

Mar 8, 2011

I am trying to use global application states to manage roles in my application. How can I use <properties.state> everywhere in my application if I declare it in my top level application?

View 1 Replies

Flex :: ViewNavigatorApplication States And FirstView?

May 17, 2011

I'm having a crack at making my first Flex mobile application (although I'm not new to Flex), and I've tripped at the first hurdle.

I cannot get ViewNavigatorApplication to display a view when trying to use firstView with states e.g. firstView.phone, firstView.tablet.

I'm just left with a blank action bar and content area.

If I try setting setting firstView with no state (e.g. firstView="view.HomeView") the view loads fine.

[Code]...

View 2 Replies

Flash - Building Interactive Map Of All States

May 23, 2011

I've been tasked with building an interactive map of all the states in the US and just wondering what the best way is to go about this? I know I could build this fairly easily in Flash but one of the requirements is for it to work on an iPhone so obviously that rules Flash out!

Requirements:
Must work across all browsers and handheld devices.
Must be updatable via Wordpress.
Must include a small info box that pops up when each state is hovered.
The look of the map will be designed by us (we'd want complete control of this as we're graphic designers!) so this also rules out a custom Google map.

I've done a search on here and found two examples, the first is exactly the kind of thing we want but is done in flash - example I don't think I'll be able to create popup bubbles when hovering over each state. An example I like is - Transmit's feature section. How was this built and how could I recreate something like that?

View 1 Replies

Actionscript 3 :: Flex 4.5 Scope Between States?

May 29, 2011

I am creating an interface that has a few different states for the different steps. For those steps, there is data that I am pulling in from a database to fill certain fields. As of right now I am doing one db query to get all of the data back and want to fill in all of the fields at the same time but it is giving me "access to a null object reference".

It seems as though there is a scope issue when you are trying to access a text input field with actionscript when the state that the text input is in, isn't the current state.For Example (This would throw a "Null object reference" error):

<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
creationComplete="init()">

[code]....

View 2 Replies

Flex :: Air - Backkeypressedhandler Not Launching With States

Jun 9, 2011

I'm developping an mobile program with the Flex 4.5 SDK, this for my thesis for school. I have a bug in my program that I can't fix. I have a view where I have 2 states. When I change from state my program doesn't listen to the backKey event anymore.

[Code]...

View 1 Replies

ActionScript 2.0 :: Resetting Movieclip States?

Jan 16, 2006

I know there are similar questions here that have been answered, but after trying to make sense of it, I still can't get this to work.Based on an array, I attach a number of MovieClips from the Library.On release they go to a certain frame, representing the "pressed" state of the button.The problem is, that I can't figure out how to reset the last pressed button back to it's original state...Here is the Actionscript code I have so far:

ActionScript Code:
stop();
daCap.play();
scrollUp._visible = false;[code]......

View 5 Replies

ActionScript 3.0 :: Button Rollover States?

Aug 5, 2009

I have a mouseOver and mouseOut stage of a button. Each button has some text in it. When I rollover the button the button does some animation, however, as soon as I rollover the text, which is inside the button, it triggers the rollout event. The text is inside the button and is inside another movie clip with no actionscript applied to it. The text is even non-selectable. What am I doing wrong?

[AS]
for(var i:Number = 1; i<4; i++){
var tmpMC:MovieClip = getChildByName('main_link'+i) as MovieClip;

[code].....

View 8 Replies

ActionScript 2.0 :: Toggle On And Off States On Buttons

Jan 13, 2011

how to toggle on and off states on my buttons. Once a user clicked one it fades and disables ok as I want but i also want it to enable and fade back up again when they select another button. Below is my code:

PHP Code:

function GenerateShapes(shape_xml) { 
_global.shape_images = shape_xml.firstChild.childNodes; 
_global.disableShapeButtons = new Array();

[Code].....

View 1 Replies

ActionScript 2.0 :: Double Click With Two States?

Jun 30, 2011

see the attached file, i want to have double click event which will zoom in the clip first time and second time double click will zoom out the clip, also on the start when the movie moves on mouse movement it shouldnt go over the stage limit from all sides,

View 2 Replies

ActionScript 2.0 :: Coded Button States Mx?

Jan 26, 2004

I am trying to complete my navigation bar. I have the onRollOver / Out and Release states finished, my only problem now is that onRelease is not reversable. Once I click on another button, my previously pressed button is still in its down state. All my buttons have been created dynamically with no timelines involved. He is the button code that is within a for loop:

[code]
navBar["myBtn"+i].onRollOver = function() {
//create pointer mc over button

[code].....

View 3 Replies

ActionScript 3.0 :: Loading Swfs And Button States

Sep 5, 2009

I have a movie that loads 5 external swfs. I want the buttons (or Movie clip buttons) to have up,over and down states and show the section loaded. Here is my code. I worked out all the errors. I figured I would work out the buttons first. I can't get them to hover or click at all.[code]

View 10 Replies

Buttons Effecting Parent Level States?

Oct 27, 2011

As I am finally dipping my toe's into AS3 from years of AS2, I am having an issue for my menu buttons (which are within a movie clip) effecting the activation of movie clips that are featured on the main timeline.

I can get this to run how i want it when each menu button is on the main timeline (by using the 'the click to go to Frame and Play' code snippet)...but when these button are within a movie clip, I can't figure out where in the code i have to add the _parent. command ?

I have attached the .fla to see what I have done. I am keen to keep using the code snippets scripts.

View 2 Replies

Rename States In Macromedia Flash Professional 8?

May 14, 2009

but how do you rename states in Macromedia Flash Professional 8?I need to rename states to finish what I've been working on for the last 2 weeks.

View 3 Replies

Flash :: What Is Difference Viewstack And States In Flex

Jul 21, 2009

In my flex project i used one option like Link button . If i like it will be open new page contain more information and components . Which container is suitable one ? Where is used viewstack and stages ?

View 2 Replies

Flex - Degrafa States Memory Management?

Nov 10, 2009

I was recently profiling my application that uses Degrafa States in the skins and noticed that doing so uses more memory than I expected. Between the SetProperty and State, they were using about 10% of the total used application memory.

Would it be better to use css for the state changes and a new skin for each state? or Are there some simple tips to reducing the memory footprint of degrafa?

View 1 Replies

Flex :: Animate Between States In A Programmatic Skin?

May 12, 2010

I have a button with the various states (up/over/down etc) that uses a skin file to render the display. I want to achieve animation between the states. For instance, between the change from 'up' to 'over' I want to fade in a color and a border.

The way I am doing this at the moment is to use viewstates and animate between them using transitions and the mx:AnimateProperty. However, using this method I can only animate one property per viewstate. So only the border, or the color can be animated.

Does anyone know how I can achieve multiple animations on multiple properties of a programmatic button skin?

View 3 Replies

Flex :: Declare Component States In ActionScript?

Sep 15, 2010

In mxml you declare states like this[code]...

How do you acheive the same in an ActionScript class? Apparently it's the same in Flex 3 and Flex 4, whatever it is.

View 2 Replies

Flex :: 4 - Is There A Way To Have Global 4 States (user Roles)

Sep 16, 2010

I am having an issue with flex states in my application. What I am looking to do is on creation complete of the application, obtain a user role guest/user/superUser (based on username and password) from a server, then set the state client side based on that information. My .mxml classes need to include certain graphic elements based on that state. I am running into the issues of including elements based on the states defined at the Application level of the project. I am trying to avoid having to define the states in each .mxml file that needs it.

[Code]...

View 1 Replies

Flex :: Flashbuilder 4 Gumbo States Are Sometimes Blank?

Nov 19, 2010

Below is a very simple example, randomly, if I click the step2 button the state will change but the Step 2 panel will not be there.

I suspect the children of the state are not getting created for some reason, which is why I set the itemCreationPolicy to "immediate", but it makes no difference This is catastrophic for the application because the user is left in limbo and is forced to refresh

<s:BorderContainer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
creationPolicy="all" currentState="step1">

[code]....

View 2 Replies







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