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








Button That Saves Time Of Release In Asp


Any tutorials or basic help would be apreciated.

I got a button that when i release it i want it to store that time in an asp document i can do the asp but how would i do the AS in flash?

Any hints or tutorials about the subject would be greatly apreciated, im seriously starting to go insane and i dont know what to do im more than a newbie but i sure aint solving this one on my own. Im practicly finnished with my site but until i can get this to work i cant do squat, since moust of the variables on the page depend on the time the button is released.




FlashKit > Flash Help > Flash Newbies
Posted on: 10-30-2003, 08:04 AM


View Complete Forum Thread with Replies

Sponsored Links:

Please HELP Fla Saves Differently Each Time
I would be extremely grateful if someone can help

I recovered an old project of mine, (whose fla I had accidentally deleted) using ******* SWF Decompiler...I start to continue work on that site like before and everything was going smoothly

But what started to happen is that everytime I saved the fla...certain symbols would get swapped...graphics would be moved left to right...and basically everytime i saved, the fla would changed internally in unexpected ways...I tried using both MX and MX Pro.. I tried copying all the frames and saving them to another timeline...nothing works...Each time I make any further changes to the FLA and Save it...IT opens up different...and just to let u know- just before I save it...I publish it to check if all is well...it is...then after the save...both the fla and further swfs i publish are completely different...graphics are interchanged and all over the place...masks are suddenly visibly and in the wrong place...responding to buttons that they had no link to!!!

Please help?? (((((((((

View Replies !    View Related
Rollover And On Release Button At The Same Time?
Does anyone know if this is possible?


Code:
on (rollOver) {
gotoAndStop("one");
}
on (rollOut) {
gotoAndStop(1);
}


on (release) {
adme._visible = true;
close._visible = true;
cda._visible = false;
crp._visible = false;
;
}
I can get one to work at a time, but not both on (release) and on (rollOver)/on (rollOut)

Thanks for anyone's help!

View Replies !    View Related
How To Make Button That Saves File To Disk
Hi, everyone!
Does anyone know what code to use to make a button on your website that lets a viewer
save a file to his/her hard drive. It used to be as simple as getURL in actionscrip 2, but I have now idea how to do that in Actionscript 3.
Any help would be great.

View Replies !    View Related
How Do You Make A Button Thats Saves The Contents Of The Movie As A .jpeg File?
ive been checking out actionscript commands in the dictionary but i could not find any to use for a save button.

Does anyone know how to make a save button that when pressed saves the content of the movie window as a .jpeg image file?

It would be even better if when pressed the user gets a window were he can choose file name and location to save file to.

thanks vic

View Replies !    View Related
How To: On (release) Telltarget (play 2 MC At The Same Time)
could anyone please help me with this??? i need to play 2 different MC's at the same time triggered with an on (release) tellTarget ("_root.MC1") gotoandplay (2) ("_root.MC2") gotoandplay (25).... now i know that is not the proper code I'm just using it to try and explain what I want to happen... any help would be wonderful... thanks
James

View Replies !    View Related
Measuring Time Between (on Press) And (on Release)?
Hi,

Is there a method to work out the time between an (on press) action
and a (on release) action when a button is pressed.

Thanks for the help..

View Replies !    View Related
Buttons - Using RollOver, RollOut AND Release At The Same Time?
Can anyone help me please?!

I'm using a movie clip with a button embedded so I get movie rollover and rollout effects. But now I want it to be clickable as well (to jump to the next scene) and it doesn't seem to want to do this!
Any ideas?

View Replies !    View Related
User Saves Something Done In Swf?
I'm working on a dynamic historical timeline that has tons and tons of data going into it that the user can filter down. The client wants the user to be able to save their timeline out once they are done and reopen it next time they log-in or even view other peoples saved timelines.

Is this possible? Can it be done? Does someone want to come and do it all for me whilst I go up the pub? There's a pork-pie and star wars comic in it for you...

Seriously, any help will be gratefully received.

View Replies !    View Related
Game Saves
need help making a savepoint. example...my game has a room were you can place objects anywhere you like, how can I make a game save to keep the user from losing all their hard work...??

View Replies !    View Related
SWF Decompiler That Saves As Is
I need a Flash SWF decompiler or reverse-engineer type program that will allow me to resize some object in the movie and then save out again and have it work correctly.

Any specific program out there to do this? Thanks.

View Replies !    View Related
Saves PHP Instead Of JPG File?
I'm using the JPGEncoder and PHP to export a JPG of a movieclip instance out of my flash movie. Basically the end user hits a "save" button and they should get prompted to save to desktop.

Currently my code is prompting the end user to save my PHP file and not the JPG of the movieclip. Here's my AS3 code


ActionScript Code:
import com.adobe.images.JPGEncoder;
var serverPath:String = "";
function createJPG(m:MovieClip, q:Number, fileName:String)
{
    var jpgSource:BitmapData = new BitmapData (m.width, m.height);
    jpgSource.draw(m);
    var jpgEncoder:JPGEncoder = new JPGEncoder(q);
    var jpgStream:ByteArray = jpgEncoder.encode(jpgSource);
   
    var header:URLRequestHeader = new URLRequestHeader ("Content-type", "application/octet-stream");
               
    var jpgURLRequest:URLRequest = new URLRequest ( serverPath+"jpg_encoder_download.php?name=" + fileName + ".jpg");      
    jpgURLRequest.requestHeaders.push(header);       
    jpgURLRequest.method = URLRequestMethod.POST;            
    jpgURLRequest.data = jpgStream;
   
    var jpgURLLoader:URLLoader = new URLLoader();   
    //jpgURLLoader.load(jpgURLRequest);  
    navigateToURL(jpgURLRequest, "_blank");
}
save_btn.addEventListener(MouseEvent.CLICK, saveBtnPress);
function saveBtnPress(e:Event):void
{   
    createJPG(sketch_mc, 90, "sketch");
}

I'm thinking the problems may lay either in the line:

ActionScript Code:
var jpgURLRequest:URLRequest = new URLRequest ( serverPath+"jpg_encoder_download.php?name=" + fileName + ".jpg");
Or line:

ActionScript Code:
var jpgStream:ByteArray = jpgEncoder.encode(jpgSource);

View Replies !    View Related
Flash Game That Saves?
Just wondering, lets say that I make a really long flash game to play offline. Is it possible to make a flash game that saves?

View Replies !    View Related
Text Input That Saves To Web So Others See It
Trying this question a little differently...

What I want to happen...

On my page I have a text input box and a submit button. Above these I have a display box where the typed text from the visitor will appear. When the visitor types in their text and hits submit, the text appears in the display box. When other users from the net visit the page, they see the new quote.

I am totally lost on where to even start on this one. Am I making sense?

View Replies !    View Related
Text Input Box That Saves To Web...
I am not sure if my title is adequately explaining what I want to be able to do. I want to have a text input box on my animation that when the site is visited, someone can type in a short quote, hit submit and have the quote appear in another textbox on the animation. The catch is that I want the new text to be displayed for any new visitors on the site. (basically want to have a visitor type in a favorite quote or whatever that will be displayed on the web for everyone until someone submits a new quote, then that one is displayed....etc.)

I am thinking that when I hit submit, the new quote will have to perhaps save to a txt file on the server that is accessed whenever the SWF is reloaded. Am I on the right track? If so, how do I accomplish this? I assume that I will need some sort of backend, but I am very lacking in that kind of programming.

Thanks for any and all help!

View Replies !    View Related
Capturing Where A User Saves Their File To
I have written code to download a file. How can I get the location of the file that the user has just saved it to on their local machine? Do you grab it when using the select listener for the file ref. class? I am going to post it to a textfield like such:

ActionScript Code:
results.text = "You have saved the downloaded file to this location: " + localFileAddress;
// the result will have the path to the file on the users machine

View Replies !    View Related
Submit Button Doesn't Work First Time, Does Second Time (using Variables And Php)
I've got a button with the following actions:

code: on (press, keyPress "<Enter>") {
if (!enterEmail.length || enterEmail.indexOf("@") == -1 || enterEmail.indexOf(".") == -1) {
EmailStatus = "Please enter an E-mail address";
} else if (!FirstName.length) {
EmailStatus = "Please enter your first name.";
} else if (!LastName.length) {
EmailStatus = "Please enter your last name.";
} else if (!enterCity.length) {
EmailStatus = "Please enter the city/province/country in which you live.";
} else if (wanna = 1) {
loadVariablesNum("emailtest.php", 0, "POST");
EmailStatus = "sending form ... please wait";
output = "I would like to be a part of World of Trout's mailing list!";
loading = "YES";
nextFrame();
}
}


Which connects to this php script.


PHP Code:




<?php
$msg = "";

$user      = "myusername";
$password  = "";
$db        = "test";

$link = mysql_connect("localhost", $user, $password);
    if (!$link) die ("cant connect to mysql");

mysql_select_db($db, $link) or die ("cannot connect");

$query = "SELECT email FROM tablename WHERE email='$enterEmail'";
$result = mysql_query($query) or die (mysql_error());
if(mysql_num_rows($result)){
echo "&EmailStatus=A person with this email address has already entered.";
}
else {
$name=$FirstName." ".$LastName."";
$city=$enterCity."";
$email=$enterEmail."";
$subscribe=$wanna."";

print "&name=".$name;
print "&city=".$city;
print "&email=".$email;
print "&subscribe=".$subscribe;

print "&loading=NO";
}
?>







Here is my problem: if you hit the above mention button once, it spits out the EmailStatus message, but appears to do nothing else. No loading=Yes, no nextframe(). Tthe script is supposed to spit back the loading=NO message, which will take my movie to the appropriate frame, which it does not.

However, if you hit the button a second time, it functions normally, and does everything it is supposed to including recieving the loading=NO message, which moves my movie to the appropriate frame.

To make it simple: I hit the submit info button once, it doesn't function properly, if I hit it again, it works properly.

Is my scripting wrong, my php wrong, or is my server doing something weird?

Hopefully this all makes sense...

View Replies !    View Related
Flash Form Writes To Txt File Or Saves SO
I need to take the input of a user in several form fields, and write this to a text file locally. My goal is that the next time the user uses this program, I would use a load vars command and load the vars in that text file created upon the previous use.


I suppose if i could figure out how to do this using the sharedObject rather than text file, that would be ok also.
Any help would be appreciated.

View Replies !    View Related
On Button Release..
I am using flashmx 2004. How do I go about playing 5 seperate movie clips at once upon button release?


My entire movie is contained to the first frame of many layers.. so goto and play wont work.


Thanks for any help.

View Replies !    View Related
Button - On Release
i'm trying to link a button to the next part of the movie... this used to work fine i don't see what's wrong...

onRelease = function (){
gotoAndPlay();
;
};


**Error** Scene=Scene 1, layer=Layer 4, frame=265:Line 2: Wrong number of parameters; gotoAndPlay requires between 1 and 2.
gotoAndPlay();

**Error** Scene=Scene 1, layer=Layer 4, frame=265:Line 1: Statement must appear within on handler
onRelease = function (){

Total ActionScript Errors: 2 Reported Errors: 2


that's the error message from output.

buttons used to automatically put in the on release variable, now when i try it just says gotoAndPlay() and creates error messages.

anyone know what's wrong?

View Replies !    View Related
Button Release
Hello,

I'm building a HTML site with flash movies in frames. I made a flash navigation with mc buttons. The mouse-over and mouse-out work fine.
Their up state is an alpha of 70% and the over state is a alpha of 100%

Now i want to leave the buttons white or alpha on 100% when the button is pressed (usability). And stay that way until another button is pressed. I read the post about the classes posted resently but i was wondering if there is an easyer way to do it in my navigation?

I put the navigation .fla file online at: www.spektakle.nl/Top2.fla

Thank's!

Gr. RiAnimator

View Replies !    View Related
Button Within MC On Release
I have a button within a movie clip which triggers actions. There are multiple instances of the MC on the stage. How do I set each MC button to have a different action onrelease (ie go to a different page). I know this can be done as I've used it before, but can I remember how I did it?! No!

monkey

View Replies !    View Related
User Enters Text Fields - Saves In Database?
I don't even know if this is possible, or how involved but...

I would like to create a United States map, where a user could click on a state to add his or her website. When they click on the state, a form comes up. They fill in the info and a little pin/marker automatically shows up in the State where they originally clicked. Then, other users can click on that marker and it will pop up a box with the info the person entered about themselves.

I'm guessing you would have to have some kind of database set up that flash can save to and pull from???

I know this is probably very complicated, but if anyone knows of a Tutorial that does something similar or if you have other ideas/comments... that would be great!

View Replies !    View Related
Flash Webcam (clientside) Saves Images On Server
Hi,
Flash can connect to a local webcam and show the 'movie' in the flashplayer in the client browser.

Is it possible that the user on the clientside makes a snapshot of him/herself and send that snapshot to the serverside?

I'd like registrants to submit their photos with their profile. (it's for a college campus)

greetings
Patrick

View Replies !    View Related
Save Feature That Saves Data Inside A Swf As A Jpeg
how can i create a button/function that will save whatever is inside the swf as a jpeg??

pete

View Replies !    View Related
Flash Webcam (clientside) Saves Images On Server
Hi,
Flash can connect to a local webcam and show the 'movie' in the flashplayer in the client browser.

Is it possible that the user on the clientside makes a snapshot of him/herself and send that snapshot to the serverside?

I'd like registrants to submit their photos with their profile. (it's for a college campus)

greetings
Patrick

View Replies !    View Related
Swapping A Button On Release?
Hi everyone!

Does anybody know how to replace one button for another on clicking the button?

I have a button called "Contact me", and on release of this button, it will target a movie clip which displays a bar at the bottom with selection icons such as email, phone number, etc.

I want this button changed to "Hide Me" on release, so that you have an option to close the whole display bar at the bottom.

How to exchange one button for another on release?

I would appreciate your advice.

Thanks!

View Replies !    View Related
On Release Of Button...got To Another Scene
Hey guys I'm a newbie so be easy with me! I have a button in my first scene. Upon release of that button I want to go to my next scene. What script do I write out for this, I've been trying this forever and still can't get it to work! Thanks

View Replies !    View Related
Conditinal Button Release
I had posted earlier on getting a music button to react properly - I got tremendous help but there is a little more to the problem - I need a conditional button release. I've got something wrong though it doesn't seem to recognize the options.

on (release) {
if (_currentframe==2) {
_root.synth.gotoAndPlay(2) +_root.music.gotoAndPlay(2) + _root.sound.gotoAndStop(1);
}
if (_currentframe==3) {
_root.synth.gotoAndPlay(2) +_root.music.gotoAndPlay(600) + _root.sound.gotoAndStop(1);
}
if (_currentframe==3) {
_root.synth.gotoAndPlay(2) +_root.music.gotoAndPlay(600) + _root.sound.gotoAndStop(1);
}
}

View Replies !    View Related
On (release) Action With A Button
Hi,

I think this is a very easy question,

I've got 6 buttons, and when I press one of the buttons I want a movieclip to be displayed for as long as the movieclip length. It works fine when I edit the button and on "down" keyframe I place the movieclip. Only problem is I have to keep the button pressed.

so, i quess it has to be done using actionscript.
On (release) ........ but then? I want to place the movieclip on an exact position, and when the movieclip ends, it has to dissapear.

Thanx,

Laurens

View Replies !    View Related
On (release) Action With A Button
Hi,

I think this is a very easy question,

I've got 6 buttons, and when I press one of the buttons I want a movieclip to be displayed for as long as the movieclip length. It works fine when I edit the button and on "down" keyframe I place the movieclip. Only problem is I have to keep the button pressed.

so, i quess it has to be done using actionscript.
On (release) ........ but then? I want to place the movieclip on an exact position, and when the movieclip ends, it has to dissapear.

Thanx,

Laurens

View Replies !    View Related
Waiting After Release Button ?
How can i tell a movie that it should wait for some seconds (or frames) before starting an action ? It must be variable, so i cant solve the problem by inserting frames.

Thanks and greetings fom Germany
Juergen

View Replies !    View Related
Button (on Release) Or On Press...
Not very good with flash, and I want to be able to make a button. The button and its animation is already done. I just want so that when I click the button, it jumps to the next scene... Any simple ideas or tips please?
Thanks alot in advance!

View Replies !    View Related
Button Instance On (release)
my students and i are trying to insert a goto action on a button. our actionscript looks like this:

on (release) {
gotoAndPlay ("Scene 2", 2)
}

i personally have made this work in the past. now, though, i'm getting an error that says "Mouse events are permitted only for button instance on (release)".

we're using flash mx.

currently, all of us are getting this error. help!

View Replies !    View Related
Getting A Button's Instance Name In On(release)
Just wondering if anybody know if there is a way of getting the button's instance name that was clicked inside the button's on(release) function. Similar to UI button where the component is pass to the event handler function, so you know what UI button was clicked. I can convert the button to a movie clip and use this._name to get the instance name, but just want to know if there is a similar way to do it with a button.

View Replies !    View Related
Disable MC As Button After Release
Hi, I've got an inbetween problem here....I can get my MC to act as a button but I can't get it to do 2 very important things at once after the onRelease action. Here is the code I am using ATM:


Code:
about_hot.onRelease = function() {
_parent.screenflicker_mc.gotoAndPlay("flicker");
_parent.sub_hold.attachMovie("about_sub", "about_in", 30);
loadVariables("about1.txt", _parent.sub_hold.about_in.textbox);
};
about_hot.onRelease = function() {
if (selectedButton != 1) {
selectedButton = 1;
if (Number(test) == 1) {
test = 0;
} else {
test = 1;
trace("work");
}
}
};
What I am trying to achieve is when the user releases the button, an MC loads with a text field and show the content of that section, but at the same time the button will disable it's 'clickability' but retain it's rollOver and rollOut attributes. Each section of the above code works on it's own, but I cannot 'join' them together in one chunk, the button won't disable. Any help that someone can offer is much appreciated. I get the feeling someone is going to respond with a 'You cannot have 2 functions that are named the same doing different things...'

View Replies !    View Related
On Rollover & On Release On 1 Button
I have a list of buttons (used for nav) across the top of a page. I want it so if the user rolls over the top button a dropdown list will appear under that button. However the user will then need to click on their selection to view that page. this will include the main (rollover) button. So in other words when you rollover the main button a dropdown list will appear. However if you click on the main button you can go to the page for that button. Is there a way I can have a on rollover & a on release on the same button?

TIA

Bran

View Replies !    View Related
Go To Next Frame In Mc On A Button Release
I would like to know how I can go to the 2 frame in a mc after i pressed a button im my main scene.

Thx

View Replies !    View Related
On Release Problem Of Button
I wanted to do an on release command to load a swf and then redirect
to an url. However the swf and url loads together, causing the swf
to load halfway and redirect to url.

What I did was

on (release) {
_root.loadMovie("StartEnd.swf");
_root.getURL("IntroductionPage.htm");
}

How do I make it that the swf loads finish and then the redirect of
url take place?

Thnx in advance...

View Replies !    View Related
Problem With Button On Release
Ok, I have this script on my button and it worked fine until I added a large movie clip to the scene.

on (release) {
stop();
gotoAndPlay("music", 1);
}


I want the button, on click, to take the user to scene "music". This all worked great until I added a large movie script into the scene.

Now when I click the button it forwards to the movie clip and not the next scene.

What gives?

Thanks
Ryan

View Replies !    View Related
Xml To Load On Button Release
have some AC loading xml and creating dynamic content in a scrolling movie clip.. no prob it works.

but i cant seem to get it to do the same thing when i initiate it from a button release.. will only work when the movie first loads.

i dont want it to load when the movie starts. just when someone clicks on a button. since i am going to have it end up loading 6-7 different xml files for differnt sections.

any suggestions please?

stop()

//function loadxmlfile(){

var web_xml = new XML;
web_xml.onLoad = startImages;
web_xml.load("downloads.xml");
web_xml.ignoreWhite = true;
//}

//startImages======================================= ==================
function startImages(success){
if (success == true){
rootNode = web_xml.firstChild;
nodes=rootNode.childNodes;
for (i=0; i<nodes.length; i++){
newClip = _root.downbox_mc.toploader_mc.list_mc.attachMovie( "contenttab","tab"+ i, i);
newClip._x = 5;
newClip._y = newClip._y + 15 + (i*35);
newClip.thumb_mc.loadMovie(nodes[i].attributes.jpegURL);
newClip.desc_txt.text = nodes[i].firstChild.firstChild;
newClip.maker_txt.text = nodes[i].firstChild.nextSibling.firstChild;
newClip.rating_mc.gotoAndStop(nodes[i].firstChild.nextSibling.nextSibling.nextSibling.fi rstChild);
trace(nodes[i].firstChild.nextSibling.nextSibling.nextSibling.fi rstChild);
//for (var i=0; i < nodes.length; ++i){
}
}
}

View Replies !    View Related
Button (rollover,out,release) And MC
Well,

I searched a bunch of forums out there but did not find anything
that helped me solve my problem.

So, If someone can help. Thanks a lot.

Button with 3 Actions:
1. Onrollover
2. Onrollout
3. Onrelease

The button should control a MC (or Picture)like this
1. On rollover, gotoAndStop (like a preview)
2. On rollout, "Hide" MC with gotoAndStop (Frame 1 is empty frame)
3. On release, let MC on stage until another button is selected

BUT!!
If the button is pressed and then moved away the rollout effect
takes place.

How to get rid of that? Here is my code.
If you have a better solution about handle my button.. Let me know.



CODE:
on(rollOver) {
with(AboutMeClip) {
gotoAndPlay(2);
_alpha = 70;
}
with(AboutMeTextClip) {
gotoAndPlay(2);
_alpha = 70;
}
with(AboutMeTopLine) {
gotoAndPlay(2);
}
with(AboutMe) {
_alpha = 30;

}
}

on (rollOut) {
with(AboutMeClip){gotoAndStop(1);}
_root.AboutMeTextClip.gotoAndStop(1);
_root.AboutMeTopLine.gotoAndStop(1);
with(AboutMe){_alpha = 100;}
}


on (release) {
with(AboutMeClip) {
gotoAndStop(10);
_alpha = 70;
}
with(AboutMeTextClip) {
gotoAndStop(15);
_alpha = 70;
}
with(AboutMe) {
_alpha = 30;

}
}

View Replies !    View Related
Replacing A Button By Another On Release
Hello,

I would like to replace a button by another once I've clicked on it, so the appearance and actions would change. I've searched the whole Flash Help file and the net, but I found nothing... I'm not even sure if it is feasible?

Here is the detail of what I'm trying to do:
There's a "speaker on" button that tells you the sound is on, but if you click on it the sound will be muted. So I want to change the "speaker on" button to a "speaker off" button once you've clicked on it. When clicked, the "speaker off" button would bring back the sound and go to frame X and play, and of course come back as the "speaker on" button on release. I could figure out the actions I need except for the replacement.

Any help would be greatly appreciated!

View Replies !    View Related
Mouse Button UP (release)
HI,
I need to control a timeline by mouse buttons, arrow keys, and movieclip buttons at sametime.

I have some dificulty to do a timeline control by mouse buttons.
Left mouse botton --> nextframe.
Right mouse button --> prevframe.

I made this code but is to fast.. any mouse slow click, jump 3 or 5 frames...
I try to make a timer , but donīt work...

the code:
var flag:Boolean=true;

stop();
this.onEnterFrame = function(){
if(flag){
if (Key.isDown(1)){
nextFrame();
}
if (Key.isDown(2)){
prevFrame();
}
}
}



any help thanks..!!!

View Replies !    View Related
Button Animation After Release
I am making a page looking like this right now: http://www.neat.no/Henrik/Bill/example.jpg

The house icon you are seeing appears when you move your cursor over the home button at the bottom of the page. After clicking it, I want it to play an animation and disappear, or at least just disappear so that the content can show without the icon obstructing the view. Any suggestions on how I can do this?

All help greatly appreciated!

View Replies !    View Related
Hiding Button After Release?
I'm using flash 8 pro and building a Jeopardy-type quiz game. This consists of a number of buttons which are linked to movie clips containing the questions &
a selection of answers.
The buttons should only be used once, but I can't figure out how to remove it from the root once clicked.
right now I'm using:

on (release) {
_root.A1_Button._visible=false;
gotoAndStop("Q1");
}
on the actual button,where frame Q1 contains the relevant clip. I've also used

on (release) {
_root.gotoAndStop("go1");
_root.A1_Button._visible=false;
}
in the buttons inside the clip which return to the root menu, but neither script will remove (or hide) the button instance from the root timeline.
Can anyone help with this ?

View Replies !    View Related
How Do I Set A Variable And It's Value On Release Button?
I'm clueless on what can i use to do that. I'm creating a standard flash + php mail form. 8 variables but i need to add one more, wit a mark button.

Here is what i thought:

I can create 2 buttons with 2 frames each (marked and not marked), on click i set the clicked to go to marked frame and the other to not-marked frame, and vice-versa. Till here i'm ok, the problem comes with "how do I set a variable and it's value on release button?"

Thanks in advance!

View Replies !    View Related
[CS3] Multiple On Release On One Button
I have prepared the buttons and sub buttons for my site on the slide down menubar. it has a on release function for sliding sub buttons. now i want to link the .htm pages to each button.

on (release) {
this.NewY = this.A.OrigY;
this.gotoAndStop(1);
this._parent.B.NewY = this._parent.B.OrigY+this._parent.Control.AH-this._parent.Control.ButtonH;
this._parent.B.gotoAndStop(1);
this._parent.C.NewY = this._parent.C.OrigY+this._parent.Control.AH-this._parent.Control.ButtonH;
this._parent.C.gotoAndStop(1);
this._parent.D.NewY = this._parent.D.OrigY+this._parent.Control.AH-this._parent.Control.ButtonH;
this._parent.D.gotoAndStop(1);
this._parent.E.NewY = this._parent.E.OrigY+this._parent.Control.AH-this._parent.Control.ButtonH;
this._parent.E.gotoAndStop(1);
this._parent.F.NewY = this._parent.F.OrigY+this._parent.Control.AH-this._parent.Control.ButtonH;
this._parent.F.gotoAndStop(1);
this._parent.G.NewY = this._parent.G.OrigY+this._parent.Control.AH-this._parent.Control.ButtonH;
this._parent.G.gotoAndStop(1);
this._parent.H.NewY = this._parent.H.OrigY+this._parent.Control.AH-this._parent.Control.ButtonH;
this._parent.H.gotoAndStop(1);
this._parent.I.NewY = this._parent.I.OrigY+this._parent.Control.AH-this._parent.Control.ButtonH;
this._parent.I.gotoAndStop(1);
this._parent.J.NewY = this._parent.J.OrigY+this._parent.Control.AH-this._parent.Control.ButtonH;
this._parent.J.gotoAndStop(1);
play();
}


after writing the on release command on this code which is like this -

on (release) {
getURL("art.htm");
this.NewY = this.A.OrigY;
this.gotoAndStop(1);
this._parent.B.NewY = this._parent.B.OrigY+this._parent.Control.AH-this._parent.Control.ButtonH;
(rest the same)


i get error. even on the sublinks i get error.
please help

View Replies !    View Related
Help With An Animation On Release Of A Button
Hey everyone,

I'm stuck in a situation where I am trying to get an animation to play after a button has been clicked on.

What I'm trying to do is... I have button of a star, when the user rolls over the star I have an animation where the star slowly spins, but if the user clicks on the star, I want the star to then spin fast and then suddenly go toward the screen and disappear. I have the animations done and converted into movieclips. But when the user clicks on the button the animation will only play all the way through if the user holds down the button. If they let go it stops. I just want it so if they click on it once it will then play without having to hold it down.

Any help or advice would be greatly appreciated.

Cheers,

JCuellar

View Replies !    View Related
[CS3] Button (on Release) Question
Hi folks,
I have a button that I want make launch an external file, eg,


Quote:




on (release) {

openfile ("/flash/movie1/test.pdf)

}




I know this isn't real code but I want something that does the above

Any ideas,
Thanks

View Replies !    View Related
Loader -> .swf W/ Button. On (release)?
Hi,

I tried a search using a few keywords, then I tried browsing through the tutorials. I apologize if this question has been asked and answered several times. I'm usually pretty good about finding answers on my own. I'm new to using Loader component instances, so that's my excuse.

I have a Loader instance on the Main Stage that loads an External .swf movie. The External movie has buttons that do spiffy things.
When the Main Stage plays, the External movie loads and I can RollOver (etc) those nested buttons.

Let's say I'd like to have these buttons perform some function on the Main Stage, like (in the MainStage) _root.GotoAndStop(x), or in another Loader instance's .swf movie, like AuxWindow.value=x. (This is an .swf of Thumbnail buttons)

How do I address these functions, values from the buttons in the External .swf?

I tried _root, _parent, super, (AuxWindow), etc., but the problem seems to be that this is a button being accessed through a Loader component. What am I missing? I can't put new buttons on the Main Stage either over or under the Loader; either (over) the loader doesn't register the spiffy RollOver things, or (under) I can't click the Main Stage buttons. I tried having the Main Stage access values from within the Loader instance, and failed. I'm actually hoping the answer isn't too obvious. (ow, my ego)

Any thoughts are appreciated. Thank you.

View Replies !    View Related
Copyright Đ 2005-08 www.BigResource.com, All rights reserved