Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Save State



Im using a flash logo, and want the state saved as people navigate over the site so the movie dosnt restart, would that require the whole site to be in flash or have the logo in a seperate frame?



FlashKit > Flash Help > Flash General Help
Posted on: 05-10-2003, 05:30 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

How To Save A MovieClip State To The Database
How can state of a movieclip can be saved to the database: For example:
http://www.inanyus.com/ecard/

I am looking for the flash part solution or idea to get this done.

At least I would like to save the movieclip state as a .jpg file in database.

Can Flash Save State In A Cookie?
I have a menu with sounds on rollover with a button to turn off the sound but when i leave the page flash movie reloads and my sound state is set back to default "ON". Is there a way to write a cookie in flash to save the state so that when I change pages it remembers my sound setting?

Thanks,
Lito

Down State In Drop Down Menu-then Return To Up State When Other Button Is Clicked?
Hi - nice to meet everyone,

The drop down menu I'm referring to is located in the main movie. The menu is a movie clip with the buttons inside and I have each button as 'track as menu item' in the properties. The buttons are linked to external swfs that load into an empty movie clip on the main stage. Everything loads perfectly no problem. The problem is that I can't seem to figure out the right code to put on the sub-menu items/buttons in the drop down menu to show the 'down' state when the corresponding movie is loaded (i.e., about-main button, philosophy [menu item], philosophy movie loaded). Then get it to go back to the 'up' state when another button is pressed in the same drop area part of the menu? I hope I explained myself clear enough without confusing anyone!

I would appreciate any help - I think I'm going to lose my mind - this is driving me crazy!!

Thanks - Allee

Active Button State/3 State Buttons
http://www.thecodebehind.com/code/flash ... state.aspx

Does anybody know anything about implmenting the above - but via an external class (.as) file?

I'm still learning, and so it's a bit much to wrap my brain around...

Over State Sound Replays On Down State
I am using Flash CS3 with AS3 and I just can’t figure out why when I put a sound on the over state of a button it plays again on the down state as well.

If you could please try this yourself and let me know what I am doing wrong I would greatly appreciate it.

1. Draw a rectangle 2. Convert to button 3. Double click on button and add key frames for up/over/down/hit states 4. Select the over state 5. Drag a sound onto the stage to add to over state 6. Ctrl + Enter to test movie

If you are having the same problem I am the sound will play on both the over and down states. Let me know if you know what I am doing wrong!

Thank you for your time.

Over State Sound Replays On Down State
I am using Flash CS3 with AS3 and I just can’t figure out why when I put a sound on the over state of a button it plays again on the down state as well.

If you could please try this yourself and let me know what I am doing wrong I would greatly appreciate it.

1. Draw a rectangle 2. Convert to button 3. Double click on button and add key frames for up/over/down/hit states 4. Select the over state 5. Drag a sound onto the stage to add to over state 6. Ctrl + Enter to test movie

If you are having the same problem I am the sound will play on both the over and down states. Let me know if you know what I am doing wrong!

Thank you for your time.

[Moved by Mod]

FMX: Save User-drawn Objects And Save/load DXF/DWG?
Hey everyone. Sorry to seem like a leech, but I could really use the guidance. Usually I'm pretty good for finding the solution on my own without having to trouble people, but this time I seem to be coming up short. So thanks in advance for taking the time to read this.

I'm developing an auto-cad esque flash application (going good so far too). I have no problem storing object information in a database (xy coordinates, rotation, scale etc), but now my problem is converting that data to another format; specifically DXF or DWG. Now I know the flash environment itself can import/export DXF's, but I don't know how to load the user-made data into the environment. Is it possible to have the environment run actionscripts to build these user-made objects and then manually save that to a DXF? (or even better would be a save/load DXF from the flash player)

Essentially I'd need to know if it's possible for the flash environment to read from my database (probably from reading a PHP built XML file), execute actionscript to reconstruct any objects created, and then let me go and manually (or automatically!) export a DXF of that.

Any comments or help would be greatly appreciated =]


EDIT:

The other very viable alternative is if you guys know of an XML to/from DXF/DWG converter.

[F8] Im Going Gray By The Secound Save Me Somone, Save Me :(
Thanks for taking the time to have a look
This problem is driving me mad so i hope you can help, i will try and ex plane to problem as best i can.
programme :flash 8
i'm trying to load a external swf in a main motive use a movie clip holder, useing
loadMovie("name.swf", "_root.Mc_holder"); the move loads but the coding don't work( i.e. animation) the effect within the swf was made in action script 1 using Absolute and the motive is 2 using relative also the player setting on the swf are for player 6 unlike the movie which is 8
it does work if i use levels but overlaps on to the main movie which does'nt look great
and not what i need.
this is very hard to ex plane so any help would be great.
i will post some links if it helps please let me know
thanks

AS 2 Save Image With Open / Save Dialogue
I am wanting to use fileReference to open an OS save dialogue so my users can save jpgs to their hard disks.

I been trying to get this working but I can't can any one please give me some code or some idea how to get this working.

I just want to be able to click a button and the save dialogue appear asking where to save the file.

Thanks

Save Image With Open / Save Dialogue
Hi

I currently have a button that when click opens a new browser window so a user can right click on an image and save it to their PC using getURL.

Is it possible to have a button open the save dialogue box of the users operating system?

So as soon as the button is click the OS save dialogue box appears.

I'm using Flash CS3 but with AS2.

Thanks

Richard

E-card Save Capture And Save
I have created a drawing palette, now when the end user draws there picture I want them to beable to email it as an ecard.

any ideas


thanks

How To Save X-y Coords In One Array And Save'n'such
Hello evryone.

just fighting with those array functions in flash.

well, i have a mouserecorder "Paintthingy" which records the mouse coordinates into 2 array's, after that the arraydata will be saved over a php script into 2 textfiles.

works fine, but i have to open 2 url's for that and 2 seperate phpscripts to write x and y seperated in 2 files.

is there a way to save both x and y over 2 own identifiers in an array ? that would help alot, because i have to load that textfile after that, to put the textfiledata in the array again.

easily said it's a very simple paintprogram with save function so that after a refresh the last painting won't get lost.

check the attached file!

Save Button To Save Dynamic Mc's?
If anyone could help, I would really appreciate it.

Problem in short :
Working on interactive kiosk - have button that creates dynamic copies of my parent movieclip (picture of lion) The user would click on button to create copies and using "drag" move the lion to where she saw it on the map.

Once the lion "sightings" have been visally logged on the map, and need to be able to give them a "save" button to save what you see on screen.

Because this is created dynamically by the user, I need a way for the user to save it at runtime.

How would one go about this?
p.s I need to be able to show the new saved file from a remote pc.

Any help - you are my hero

Can't Save File And Can't Save As Either
Sometimes, usually after I've been working with Flash for a while, it won't let me save my work. I get an error dialog saying the file is opened read-only, or another user has the file open. What is most disturbing is that I can't even do a "Save As"--I get the same message. What's even worse, if I quit without saving, it deletes the file on disk! This happens with XP x64 as well as XP Pro.

Any suggestions?

Save File In Server And Save File In Clients Hd
i dont know how to do that using actionscript 5
i need 2 codes
one to write to the server a txt file
and other to write to clients hd
someone told me that you can do that, but i cant find it


if anyone can help, thank you!!

Over State
Hi I am trying to make some buttons for my flash video that have an over state that trigger a picture at the left to fade in after about 2 seconds as well as adding a little fx to the roll over. Is this possible? PLEASE HELP!!!!

THANKS!!!

Over State
I am wondering if you can add that popup text that is so helpful on the web you know when you roll over a button or a picture and you get that text that tells you what it is and maybe a brief description. I want to add that to my buttons. I am using those cheesey arcade buttons that flash provides for you to use in the libary. How can this be done??

Thanks!!

Down State
My Objective: if the home page is loaded then the home button is pressed down so the user knows thats where they are.

Idea to do this: Pass the movie a variable which tells it the page and then tell the movie to load and show the down state of the button.

How far I have got: I am using some asp.net code to pass a flashvar into the movie which all works. For this example it passes the value "btnhome" to the movie. I have then created this actionscript.

var topressdown = _root.topress;
if (topressdown == "btnhome") {

}

Problem: I don't know what to put in the curly brackets.

Can anyone help?

Hit State MC
Is there a way to set the hit state of a movie clip or does it always use whats default on the stage which is what its doing at the moment. Its messed up because my whole stage loads an animation so to trigger an out state you have to move the mouse off the screen. Is there a way to set a hit state to overwrite the default one that MC use or can i set a individual layer to be noticed as the hit state? thanks.

Hit State
I know that the hit state in the button is not visable is ther a way to make it visable so that you know that you have used that button allready

Example

You have a dynamic button that is the same for every option on your page and i would like to be able to make a chck mark on the button so that you know that you have picked that option all ready.

Thanks

You Are Here State
I'm trying to find a way to write one flash menu that has different links (home, about, contact) etc. What is the easiest way to have the final swf know which page it's on /about.php vs /contact.php, for example. That way, if you're on contact, you can see the 'over' state.

I don't know AS3 well at all, so please dumb down your advice as much as possible.

Thanks much for any help you can give.

While Down State?
Hi peeps.

Yknow how on some websites, when u click a button, and goto a page, the button correspoding to that page if a different color, so users know what page they are currently on.

Is there a way to do something with flash, kinda an over while down state thing.

i am trying to create something that works like a radio button style so that multiple buttons can be "on" at once.
:)

please help folks :)
paul.


Help With Hit State
hey guys, i have some buttons with the up,over,down and hit states. my up over and down work well but once i unclick or roll off it goes back to the up how do i make the button so that once clicked it stays as the down state...any help would be awesome and happy holidays

Button Down State
I am trying to create a flash simulation of a security keypad. One of the required features is that a different action occur if the user holds down the button for 3 seconds rather than just releasing it. To accurately mimic the real-life keypad after the button has been held for three seconds certain lights should begin to flash and events trigger before the button is released.

I have tried countless things and none of them seem to be working. Is there a way to check the state of a button so I could do a "Do while" loop based upun it still being pressed?

Any nudging in the right direction is very appreciated.

Where To State A Function
Does it matter where you state a function, ie where you initiate it.

I have found that if you want to call a function from within a movieclip then the function must have been initiated on say frame one of that movieclip.

I would like to be able just to initiate all variables at the start of my movie on the main timeline. If this is posible do you use paths to navigate to a function?

eg

function clipXPos (clip,a) {
clip._x=a
}
if this was stated on frame one of the main timeline and then in another movieclip i had a button to try to call the function

on (press) {
clipXPos(ballClip,50);
}

This doesn't seem to work - it does work though when i call the function from the main timeline as opposed to within a movieclip


A little confused or maybe i am working to hard!!!!!

Any help would be greatfully appreciated

Mc On Down State Of Button
If I create a movie clip that is the down state of a button how do I get it to finish playing even after button is released? Thanks

Mouseout State?
hi folks

can anyone help me. ive created a button with a static image in the mouseup state and an animated movieclip in the mouseover state. This is all good until you mouse out again, as it jumps back to the static state without finishing the mouseover animation.

Is there anyway of controling mouseout states?

thanks

BUTTONS In The Down State
What is the ezist way to keep the button in the down state while the view is in that part of the movie

Down State Buttons In Nav Bar
Hi!
This is what I want to do. In a navigation bar I want the buttons to stay in the down state when pressed, until another one is pressed.
How do I go about this?
Thanks for any light shed upon my feeble mind.

How Do You Set The State Of A Button With AS?
how do you set the state of a button with AS?

i have a button on the bottom of the stage, and another instance of the same button at the top of the stage (for visual effect). i'd like to make it so that when you roll over the instance of the button at the bottom of the stage, the instance at the top of the stage would show the rollover effect. any ideas? thanks in advance.

State Of Button
My requirement is that when I press a button the look of the button needs to change.In my case - a pause button - when clicked should change to a play button.

I've a deadline and I'm not getting anywhere.

Thanks

Hit State Button Help
ok, I put in an image inside of the already existing button, on the hit state of the button, how do i make it work when i click it????

Hit State Button Help
ok, I put in an image inside of the already existing button, on the hit state of the button, how do i make it work when i click it????

Hit State Button Help
ok, I put in an image inside of the already existing button, on the hit state of the button, how do i make it work when i click it????

Permanent State
I am trying to build a list of options using checkboxes that I need to retain their state beyond the frame they reside. In short, how do I make an object maintain the user selected state throughout the duration of a movie? Thanks in advance for sharing. I'm sure this is an easy one for somebody.

Sound In Over State
When I use MX to put a sound on the over state of a button then test or preview movie in a browser I get no sound? I put keyframes in each state then chose an imported sound from the drop panel. If I save movie as flash 5, then add sounds in flash 5 they work. Then I can open the flash 5 movie in MX and the preview works and I can save as flash 6 and it works but I can't find the problem?

Help?

Thanks

Down State Of Buttons
Hey, guys. I read a few posts here earliler today about using the "down" state of buttons, and just wanted clarification.

Is there no script that would group a set of buttons (like radio buttons) and only allow one of the group to be on the down state at a time?
even if the grouping is not possible, is there no script, aside from telling the button to stop on a certain frame, that would leave a button down, like _root.button._down = true or something?

thanks,
-myk

Hit State Problems
I'm having some serious problems with multiple buttons inside a movie clip. I have attached the .fla file. I have one large circular button that when rolled over, a movie clip of multiple buttons form a circular arc around the main button. on mouse off, I need the buttons to retract. I have this workig just fine. The problem I'm having is, when I move the mouse to one of the retracted buttons, It is actually rolling off the main buttons, and my smaller buttons retract. I tried to compensate for this by making the hit state of the main button very large so it engulfs the area of the smaller buttons. The problem with this is that the hit state is over the smaller buttons, and they are not being recognized as buttons. I have attached the file so you can get a better understanding. I'm appraching my deadline and would appreciate any help.

Thank you.

On And Off State Of Button
Hi,
I have a button and it is suppose to bring up a pop up menu when a user hits it and when it is hit again (while the pop up menu is still up) the menu will disappear. This is what I have:

on (release) {
if(state=="off"){
state="on";
_root.gotoAndStop(65);
}
else
state="off";
_root.gotoAndStop(45);
}

However, this code doesn't work, I understand I need to initialize "state" somewhere, but I dunno how to or where to. how can I initialize the state? can someone help me please?
Thanks.

Orignial State
I cant figure out how to make the movie return to its orginal state. If you click on display ads online a box rolls out to display icons. My problem is after you click another button (such as aboutcolumbia,cars.com, ad desk or etc.) as to leave the link that you are looking at it will make the boxes disappear but if you return to the displayads link a click it the boxes are right were you left them except this time they roll back in. Can any one help, I attached the swf file because the home file is just a tad bit big.

Button State
Hi there,

In my main swf i have 4 buttons.What I want to accomplish is this.

When I hit but 1 for instance the butons stays in the hit state.
If I then hit but2,3 or 4 but1 is back in the normal state but2,3or 4 is in the hit state visible.How do this?

You can see what I mean by going to this site for instance:
http://minkipark.com/

Hope someone can help.Big thx in advance.

Grtz

How Can I State This With A Loop?
How can I state this with a loop?

b1.airDate = _root.loadContent["airDate1"];
b2.airDate = _root.loadContent["airDate2"];
b3.airDate = _root.loadContent["airDate3"];
b4.airDate = _root.loadContent["airDate4"];
b5.airDate = _root.loadContent["airDate5"];
b6.airDate = _root.loadContent["airDate6"];
b7.airDate = _root.loadContent["airDate7"];
etc. etc.

The variables are loaded with LoadVars()

Thanks

Two State Buttons
I want to creat two state buttons... ie on/off

I want to control a movie with one button but I don't want to do it by skipping back and forth between frames.

Is there a simple actionscript way?

ie

if button is off turn on
if button is on turn off

Button Over State
How do you enable the over state to remain visible after clicked, then go away when a different button is clicked and perform the same function?

Button Up State
Hello.

I am making a naviagation that fades out ounce you roll out of a button.

I have an up state with a nested movie clip to fade out.

It works, but it plays when you first enter the movie. This is annoying. How can I keep this wonderful roll out and get rid of the roll out animation when you first enter the movie.

Thank-you.

Button Down State
I'm not really a newb with flash but, I have never figured out an easy way to keep the state of a button, once it is selected, down. I used to just superimpose a phantom image of the button's down state over it when the timeline jumped to a selected frame. Is there an easier way to do this? Im no longer jumping to frames but instead loading movies, so this tactic doesnt work (and its a pain in the
$%#!)


Thanks for any advise. Much appreciated.

Button State?
Hi,

I have a button that has a different gfx for over, down and hit states.

I want to be able to have the button display one of these states when the user presses it and moves the mouse off.

How would I go about this?

Button State
Hi All,

Is it possible to disable a particular button state in the run time. i.e., A button having over, down state, when moves from frame 1 to 2 the down state should be disabled and when it comes back to frame 1 it should be enabled, I can't have two buttons for that and it got to be the same button

Hope its clear!!

Thanks in Advance

State Variable
on(release){
if (ButtonState = 0){
~~~as~~~
ButtonState = 1
}
if (ButtonState = 1){
~~~as~~~
ButtonState = 0
}
};

I want this so that when i click the button a variable "ButtonState" changes from 1 to 0 or 0 to 1, right now I am caught in a loop and it always outputs ButtonState = 0 because as reads from top to bottom.
please help
Love,
Radler

Copyright © 2005-08 www.BigResource.com, All rights reserved