Scene Trouble/possibly Actionscript
created a piece of flash which, when dragged from left to right, and vice versa, the movie clip would slide along and seem everlasting. I had it working fine
i then tried to incorporate it into my project, but when i put it into SCENE 8 (or any other scene from 2 onwards) the piece didnt work and the movie clip was draggable (not locked on the x as it should be) and it didnt work. I then moved the scene to the top of the pile of scenes (new order 8, 1, 2,3 etc), and the piece worked fine!!! I cant understand why it dont work when its placed after scene 1. Theres 3 frames and each frame has actionscript:
Frame 1
mo2._x= getProperty("mo1",_x)+500; mo2._y= getProperty("mo1",_y);
moW =getProperty("mo1",_width);
Frame 2 mousex=_xmouse;
mo2._x= getProperty("mo1",_x)+moW; mo1._x= getProperty("mo2",_x)-moW; mo1._y= 0; mo2._y= 0;
if (mo1._x<-moW){ mo1._x =getProperty("mo2",_x)+moW;
}
if (mo2._x<-moW){ mo2._x =getProperty("mo1",_x)+moW;
}
if (mo1._x>=moW){ mo1._x =-moW; mo2._x =0; }
if (mo2._x>moW){ mo2._x =getProperty("mo1",_x)-moW;
}
Frame 3
gotoAndPlay (2);
i have tried changing it to gotoAndPlay ("Scene 8", 2); but that dont work either!
Anyone got any idea as to where im goin wrong, its driving me nuts!
THE FLA CAN BE DOWNLOADED HERE
consolevolution.pwp.blueyonder.co.uk/tarot.fla
FlashKit > Flash Help > Flash General Help
Posted on: 01-20-2004, 04:08 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Possibly Simple Actionscript Question
Help! Please!
When a button is pressed, I want a parked movie clip on the stage to play and then when it reaches its last frame, go to another frame in the main timeline. BUT, I do not want to assign any script to the movie clip itself (except for the initial stop action on its 1st frame).
I know how to make the movie clip start playing from the main timeline, but I don't know what script I can assign to the original button to get the last frame of the movie clip to go to another frame (without putting that script directly on the last frame of the movie clip).
If anyone knows, please helpppp!!!!
Thanks,
Kirsten
you can email me the answer if you want!
Kittiesister@hotmail.com
Thanks!
Won't Change Scene...neither With Actionscript,neither From Scene To Scene
I have a big problem...why won't my movie change from my intro to scene one...I built my intro, i built my scene one but it won't skip from one to another. At the begining i had a loop problem on my intro,and it would never go on to the next scene,and now even if i build a new page it won't change to another scene either....HELP PLEASE!!!
Calling Actionscript Menu From Scene To Scene
PLEASE HELP!!!
I'm using an actionscript menu that shifts up an down on one scene. Inside one position of the menu I have lots of small pictures that I'd like to open in another scene using the same movement like menu and on the second scene I have diferent positions for each pictures. How can I call a position in the second scene from the first (take under consideration that I use only the first frame of the main movie clip on each scene - from there the script does all the work).
thanks
PS. U can take a look at www.dtpmedia.ro
Trouble Testing Scene
I am building a flash site, and was testing a particular scene of my movie. Everything was working fine (buttons, scripting,etc). I didn't change any thing and went back to retest the scene, and now all of a sudden it sticks, it won't recognize the actions.
I've attached the fla source file and its the environment scene that is having problems.
Can anyone help?
Thanks
Having Trouble Just Testing Scene
Just started to build a scene to display several items, I set a script on frame 10, goto and play Frame 2, and the "testscene" is hopping back and forth from the first to the final screne of the movie. Not really sure why this is happening, if anybody could clue this rookie in, it would be greatly appreciated.
THANKS
Trouble With Adding A New Scene
Hi,
I have a main scene that begins with a animation. Now when i add a new scene to house a preloader and place it above the main scene and play the movie the preloader works fine but when it plays the next scene everything stops at frame 1. At 1st I thought it was my preloader but i tripled checked it and it was fine, I also just added a blank scene but i get the same problem. Im using flash 8. ne 1 ever get this problem?
thx
Scene Jumping Trouble - Could Someone Check This Out?
Hi, I posted a message here a while ago, but realized no one would really be able to help unless I showed them the actual problem.
One problem is the Loading Screen: I can't get it to work. I temporarily set the screen to simply jump to the next page to help you view it, but otherwise, it won't load properly.
The other problem is with my menu screen. When I click the GAMES button, it won't go to the next scene, it just resets.
The link is here: http://www.geocities.com/datadogg/Menu.fla
Thanks in advance.
Goto And Play Scene... Having Trouble
This should be very simple so I must be doing something stupid wrong, but heres what I have.
A movie with 3 diffent scenes. On each scene is a navigation menu on the left. When you click one of the buttons this is the code;
on (release) {
gotoAndPlay("Tour"); also have tried it with gotoAndPlay("Tour", 1);
}
Shouldn't this goto scene "Tour" and play it?
Instead it goes to the scene that follows the current scene and if its on the last scene it starts over by going to the first scene. What am I doing wrong? Thanks in advance...
Problems With Actionscript (scene To Scene)
hum....I know this is a silly question but working in a new site (my first) with flash on one of the buttons i wrote on the action panel:
on(release) {
gotoAndPlay,(Scene 2, 1);
and when I tested it, an error message appeared:
**Error** Scene=Scene 1, layer=boton caste, frame=255:Line 2: ')' expected
gotoAndPlay,(Scene 2, 1);
Total ActionScript Errors: 1 Reported Errors: 1
what exactly I'm a doing /writing wrong???
Ale drowning in a glass of water
Trouble With Scene Parameter & Root Timeline
Hi all,
I am using a drop down menu in a flash movie, and I am having trouble with the
scene parameter in the gotoAndPlay function.
Basicaly, my buttons are in a movie clip, and since they are not located in
the root timeline, it won't send the playhead to the ("scene", "frame") that I
specify.
I understand that you can use the scene parameter only on the root Timeline,
not within Timelines for movie clips or other objects in the document. So I am
wondering if there is any way to inform the button that I am refering to the root timeline?
This is a problem for me because I am using transitions between sections and my drop down menu really needs to be in a movie clip, I cannot make it work on the root timeline.
Thank you for your precious help.
Catherine
Trouble Importing Video Into Flash 8 Multi-scene Movie
A Quicktime movie that I import into a twenty scene Flash 8 Pro document refuses to play or even to appear when I Test Movie (or Test Scene). However, the same Quicktime movie has no trouble playing when I import it into a new Flash document. I get the same results with streaming or progressive importing and I am repeating the same exact steps in both cases.
Can anyone tell me what I might be doing wrong?
Trouble With ActionScript....
title = "_root." + this._name;
//title = _root.figure;
bytes = title.getBytesTotal();
(I'm using one preloader._movieclip inside movieclips that contains some data, and I want to preloader-clip to get the bytes of movieclip inside whitch it is + it's own bytes...)
hierarchy>>
_root.
------>figure.
------------->preloader
the problem> if i use thatsord of address as shown on the first string, THE FLASH don't recognize it as object name because of "", but how else is it possible to show the name to the movieclip from inside.
Hope that was simple to understand... If not, feel free to write questions, I'll try to answer them all...
thanks
Actionscript Trouble
ok... i have a MC named "MC1" which contains several buttons &c. One buttons has script to drag it. In the timeline of MC1 i have the following code:
this.useHandCursor = false;
this.onRelease = function() {
//code
};
stop();
the problem i am facing is that with MC1 acting as a button, the buttons inside it dont work anymore. is there anyway to change this?
Actionscript Trouble
i have 5 MC's named p0,p1,p2, &c
without having to explain what the code is doing, i need to find a way so that when i click on one MC, it does certain code and at the same time, the rest of them does another set of code.
where the "i need code" sign is i used to have _root["p"+t].onEnterFrame &c (which worked). i need an equivelent to this without using root (parent would be acceptable if you know how to make it work)
the following code is in the main timeline:
numpics = 5;
x = 0;
var control = setInterval(attachThumb, 88);
function attachThumb() {
tan = attachMovie("pic"+x, "p"+x, x);
tan.tag = x;
tan.onRelease = function() {
for (t=0; t<numpics; t++) {
if (this.tag == t) {
this.onEnterFrame = function() {
.
.
.
};
} else {
//I NEED CODE TO PUT HERE!!!
//I NEED CODE TO PUT HERE!!!
//I NEED CODE TO PUT HERE!!!
}
}
};
if (x>numpics-1) {
clearInterval(control);
}
x++;
}
stop();
Actionscript Trouble
hey everyone..Ok my situation is that I'm having trouble with the actionscript in a movie to load another movieclip when a button is clicked.
Now orginally the buttons were kept on the main stage of the movie but I decided to put them inside of an "MC" to have them fade-in. Now the actionscript that I have is...
stop();
but1.onRelease = function() {
// set a variable that stores the next external movie to be loaded
nextMovie = "flash/content1.swf";
// tell the cover mc to play its closing animation
cover.gotoAndPlay("close");
};
but2.onRelease = function() {
nextMovie = "flash/content2.swf";
cover.gotoAndPlay("close");
};
but3.onRelease = function() {
nextMovie = "flash/content3.swf";
cover.gotoAndPlay("close");
};
The button is in an an MC named "foldmenuclip". How can I tell that button to call on the "MC" that I want to load inside the current movie?
Any suggestion?
Actionscript Trouble
hi
i haven't used flash for a long time i feel lost,i need help on a actionscript for the following
it's for a series of 20 different text-buttons:
Each of them should work - when roll over a image is visible, when click the same image is also visible and stays visible, when click on the button and the image again no visible
clear?
thanks
rx
--
Having Trouble With Actionscript
Hello, I'm very new to flash, so new that I just started yesterday. I completed a couple tutorials and I'm trying to get the following code working for my works website. Everything looks fine to me but I'm a noob so I'm sure I'm missing something easy. Anyway on to the problem. When I click the next button it will cycle through all of the text fields correctly (all 10), however when it gets to the 5th image it defaults back to image0uri and stays there until I get back to the beginning. I need it to cycle the images correctly. I'm taking the images / text out as I don't think it's relavant but if it is then PM me and I'll send you that as well. Someone please help, and thank you in advance!!
Scott
/*The following four sections contain the data
/*for each menu item.
/* 0 */
var image0title:String = "";
var image0desc:String = "";
var image0uri:String = "";
/* 1 */
var image1title:String = "";
var image1desc:String = "";
var image1uri:String = "";
/* 2 */
var image2title:String = "";
var image2desc:String = "";
var image2uri:String = "";
/* 3 */
var image3title:String = "";
var image3desc:String = "";
var image3uri:String = "";
/* 4 */
var image4title:String = "";
var image4desc:String = "";
var image4uri:String = "";
/* 5 */
var image5title:String = "";
var image5desc:String = "";
var image5uri:String = "";
/* 6 */
var image6title:String = "";
var image6desc:String = "";
var image6uri:String = "";
/* 7 */
var image7title:String = "";
var image7desc:String = "";
var image7uri:String = "";
/* 8 */
var image8title:String = "";
var image8desc:String = "";
var image8uri:String = "";
/* 9 */
var image9title:String = "";
var image9desc:String = "";
var image9uri:String = "";
var currImage:Number = 0;
var totalImages:Number = 10;
menu_mc.title_txt.text = this["image"+currImage+"title"];
menu_mc.description_txt.text = this["image"+currImage+"desc"];
for (var i:Number = 0; i<=totalImages; i++) {
slideShow_mc.slides_mc["holder"+i].loadMovie(this["image"+(i)+"uri"], slideShow_mc.slides_mc.getNextHighestDepth());
}
slideShow_mc.slides_mc["holder10"].loadMovie(this["image0uri"], slideShow_mc.slides_mc.getNextHighestDepth());
// function for the Next button
function nextMenuItem(eventObj:Object) {
slideShow_mc.gotoAndPlay("slide"+(currImage));
if ((currImage+1)>=totalImages) {
currImage = 0;
} else {
currImage++;
}
menu_mc.title_txt.text = this._parent["image"+currImage+"title"];
menu_mc.description_txt.text = this._parent["image"+currImage+"desc"];
}
// add the event listener for the button
next_btn.addEventListener("click", nextMenuItem);
Actionscript Trouble.
For some reason this code isn't working for me. i have my buttons named button1MC-button5MC. The onRelease code for them is:
button1MC.onRelease = function () {
if(whoIsOn != this) {
whoIsOn.gotoAndPlay(15);
whoIsOn = this;
navigate(this._name);
}
}
navigation function is here:
_global.navigate = function(x) {
_global.pressed = x;
if (pressed != already) {
_global.already = pressed;
name = String(x);
which = name.charAt(6);
contentMc.section = String("section"+which);
contentMc.play();
}
}
nothing happens when i click the buttons, any help would be great.
Actionscript Trouble.
For some reason this code isn't working for me. i have my buttons named button1MC-button5MC. The onRelease code for them is:
button1MC.onRelease = function () {
if(whoIsOn != this) {
whoIsOn.gotoAndPlay(15);
whoIsOn = this;
navigate(this._name);
}
}
navigation function is here:
_global.navigate = function(x) {
_global.pressed = x;
if (pressed != already) {
_global.already = pressed;
name = String(x);
which = name.charAt(6);
contentMc.section = String("section"+which);
contentMc.play();
}
}
nothing happens when i click the buttons, any help would be great.
Actionscript Trouble...
Hi, Im pretty new to actionscript and Im having troubles getting my project to do what I want.
Its driving me nuts and need some help b4 I tear all my hair off!
The project is a friends rollerdoor company. When the user makes a selection in the menu a rollerdoor drops down, makes a MC behind it visible then the rollerdoor rolls back up revealing the info.
The problem I have is that when the user then makes another selection, I dont know how to wait untill the rollerdoor goes down and then change frames on the MC behind it.
When the user makes a selection in the menu, the MC proceeds to the selected frame b4 the rollerdoor has gone completley down....making the whole concept of the rollerdoor thingy look dodgy!
Please check out the link, youll understand what I mean... HERE
If you have any idea how to fix this...please download the source FLA and see what you can do... HERE
Any help would be greatly appreciated
Actionscript For Go To Scene
I'm using Flash MX 2004 professional and being a non professional at actionscript i need a bit of help.
I need the script for when button is pressed it goes to a scene called "b1" and frame "1"
Any help please
Next Scene Actionscript
I am new to actionscripting so bear with me here. I have a scene with 3 buttons on it. I would like to be able to click the button and move on the to a specified scene. Will the following code work or do I need to used something else?
Quote:
on (release) {
_root.contents.loadMovie("locations.swf");
}
Can I replace the locations.swf with one of my scene names or do I need to find another piece of code? Thanks in a advance
Next Scene Actionscript
I am new to actionscripting so bear with me here. I have a scene with 3 buttons on it. I would like to be able to click the button and move on the to a specified scene. Will the following code work or do I need to used something else?
Quote:
on (release) {
_root.contents.loadMovie("locations.swf");
}
Can I replace the locations.swf with one of my scene names or do I need to find another piece of code? Thanks in a advance
Browser / Actionscript Trouble?
hi all, this is for flash 5
firstly this message goes to gparis before i start...
GPARIS, I DID POST REPLY BUT FOR some reason it says you were last to reply on other post.
MY PROBLEM
i have completed my first flash site and apparently some people upon entering it get the "DOWNLOAD Macromedia flash player" even if they have it installed, is there an actionscript or anyway to stop this from happening ???
http://dguide.co.za
if you do not get this box appearing please post a reply so i at least know what is happening
thanks
protocol
Flash MX: Actionscript Trouble
Hi. I'm making my own flash site.
The problem is I dont now how to make a button take you to a diffrent scene. You see.. I have this one button named Index, and when you relase this button you're gonna be taken to Scene 2. I've tryed some action scripts, but I can't work it out.
Can you guyes give me some help maybe som examples?
Having Trouble With Basic Actionscript
I am making a navigation panel for a project. The mouse clicks the symbol, and the symbol changes, slides over, and a panel fades in. When the user clicks again, the symbol changes again. However, the last command will not work. Any suggestions?
Actionscript: Ground Trouble
Once again, I'm having trouble with AS in flash =/ Attached is a .fla with a character, coded to move right and left, and jump. But whenever he jumps, he falls through the MC with the instance name of ground. Can anyone help? Thanx.
Actionscript 2.0 Trouble, Using Buttons
hey there, i can get my game to work using actionscript 1.0 but when i change to AS 2.0 i dont get errors but the following button will not work
code:
on(keyPress "<Left>"){
//code here
}
this worked finewith AS 1.0 im having trouble with all keypress buttons in AS 2.0, any help would be helpful
thanks in advanced
Kriogenic
[F8] Simple Actionscript Trouble...
Ahoy.
I'm a complete Flash idiot.
With that out of the way, my basic script isn't working at all, even though it seems it should.
What I'm trying to do: I have a scene where the person is supposed to drag some fruit into a basket in order to progress in the movie. So, I used the hitTest feature to see if it was in the basket, and then gave it the command to gotoAndPlay to the next scene I wished. However, it didn't respond. I tried a trace to make sure the hitTest was working, and it was, it just completely ignores the gotoAndPlay. Why is this?
Oh, and my code looks like this...
onClipEvent (enterFrame) {
if (this.hitTest(_root.kiwi)) {
gotoAndPlay("Scene 65",1);
}
}
I also tried a different approach, where the hitTest would set a variable "fruitinbasket" to true, and then the 'player' of sorts could press a button and progress. That didn't work either. I know, I know, I need to go out and play in traffic. This really shouldn't be this difficult. Thanks for any help in advance. (Oh, and I would have posted this in the actionscript forum, but I figured this so basic it belonged in the newbie category.)
[F8] Actionscript Looping Trouble
The code below is part of a graphic I'm putting together in Flash. Basically, what it is supposed to do is create a new object that is a simple, dynamically drawn square. Then it is supposed to replicate that square into a grid pattern using a time interval.
Getting the initial object works fine and the names of the new objects are being created, but I don't know if the clips are actually being created based on the names. For sure, they aren't being laid out in a grid. Here's the code:
PHP Code:
this.createEmptyMovieClip("grid", 10);
grid._x = 0;
grid._y = 0;
drawRectangle(grid, 33.6, 38, 0x99FF00, 100);
//change size of grid squares here
function drawRectangle(target_mc:MovieClip, boxWidth:Number, boxHeight:Number, fillColor:Number, fillAlpha:Number):Void {
with (target_mc) {
beginFill(fillColor, fillAlpha);
moveTo(0, 0);
lineTo(boxWidth, 0);
lineTo(boxWidth, boxHeight);
lineTo(0, boxHeight);
lineTo(0, 0);
endFill();
}
}
var xspace:Number = 1;
//spacing between grid squares
var yspace:Number = 1;
//spacing between grid squares
var j:Number = 1;
var i:Number = 1;
var numGridX:Number = Math.floor(_root._width/this.grid._width+xspace);
var numGridY:Number = Math.floor(_root._height/this.grid._height+yspace);
var gridWidth:Number = grid._width;
var gridHeight:Number = grid._height;
function doGridX() {
if (j<=numGridX && i<numGridY) {
if (j<numGridX) {
var gridClipName:String = "grid"+j+"-"+i;
trace(gridClipName);
var newX:Number = (gridWidth+xspace)*i;
grid.duplicateMovieClip(gridClipName, i+""+j);
this[gridClipName]._x = grid._x+newX;
this[gridClipName]._y = grid._y+newY;
trace(grid._x);
j++;
} else {
//reset and increment vertical
j = 1;
i++;
var newY:Number = (gridHeight+yspace)*i;
}
if (i == numGridY) {
clearInterval(Interval1);
}
}
}
Interval1 = setInterval(doGridX, 100);
[CS3] Actionscript 2 While Loop Trouble
I'm having trouble getting a while loop to work. I am creating a rock, paper, scissors, game where i need the computer to select a random number between 1 and 3. can someone take a look at my script and give me an idea of where i've went wrong? i want to learn and fix the problem, i'm just not sure of where i've messed up. any help would be greatly appeciated.
Trouble Locating Actionscript
I'm a bit confused with this one.
I downloaded a movie from flashkit. In the debugger dropdown menu it says:
--------------------------------------------------------------------
Actions for [no instance name assigned] (menu_button_open)
on (release) {
if (_name == 'Menu1') {
_root.Menu_Blok_Text = _root.t1;
}
if (_name == 'Menu2') {
_root.Menu_Blok_Text = _root.t2;
}
if (_name == 'Menu3') {
_root.Menu_Blok_Text = _root.t3;
}
if (_name == 'Menu4') {
_root.Menu_Blok_Text = _root.t4;
}
if (_name == 'Menu5') {
_root.Menu_Blok_Text = _root.t5;
}
_root.Menu_Item_Opened = true;
// _root.Timer.gotoAndPlay("Menu_Closer");
newTextBlok = "TextBlok_New";
duplicateMovieClip ("_root.TextBlok", newTextBlok, 345);
this.gotoAndStop("Menu_Open");
}
-------------------------------------------------------------------
The action script I want to edit is in there, but I can't actually edit it. And in the library, under menu button open, it has no actionscript assosiated with it? "Current selection cannot have actions applied to it". How do I get to where this action script is so I can mess with it?
Here is the link to the file:
http://www.flashkit.com/movies/Inter...8685/index.php
P.S. I'm using cs3
[F8] Trouble With ActionScript 2 Syntax
Hi, I have Difficullty with ActionScript Syntax.
I can not indicate in code frames from 3 to 7.
FLA contains 12 frames. in First frame is this code:
onEnterFrame = function () {;
if (_currentframe==3) {trace("From 3 to 7");
} else {trace("It's not!");
};
I want to Indicate in this script instead "3" (_currentframe==3), frames From 3 to 7.
I can not find right Syntax for this. Please help me to do this.
Thanks in advance.
Regards
George
georgmorb@yahoo.com
ActionScript Trouble Shooting
1st time flash developer here. I've gotten myself right to the end of my site build, but I'm having a few problems.
Specifically, a few lines of actionscript that I've written in my buttons won't work. All the other lines of actionscript within that button execute, but for several of the buttons, one line each just doesn't work. They are all
_root.MovieClip.gotoAndPlay("frameName");
with varying movieclip and frame names.
Any ideas on what would cause one line of action script to work and none others?
Trouble With Layers And Actionscript
Hi!
I'm learning flash, so i'm not so good at it. I'm trying to make a progress bar. When the progress bar ends, it will jump to next layer. On the next layer there is a smiley shaking and laughing.
The problem is that the smiley disappears after 1 second. I want the smiley to laught until someone closes it.
Sorry for my english.
Thanks for all help.
I have attached the files
Actionscript Masking Trouble
I have a project where I am creating a XML driven photo viewer. So far I have everything working the way I would like it aside from the mask that I need to make the photos larger and look good. Here is the code as it stands now...
ActionScript Code:
#include "includes/XOMClass/XOMClass.as"
var presentation_xom = new com.tinlion.XOMClass();
presentation_xom.addListener(xomListener);
presentation_xom.load("http://www.flickr.com/services/feeds/photos_public.gne?id=37488314@N00&format=rss_200");
var xomListener = new Object();
preloadIA = [];
presentation_xom.onLoad = function() {
i = 0;
do {
rclip = _root.FlickrFrame_mc.flickrViewerHome_mc["flickrPhoto" + i + "_mc"].mask.createEmptyMovieClip("newLoad_mc"+i, 10);
rclip.loadMovie(presentation_xom.docRoot.rss.channel.item[i]["media:content"].attributes.url);
rclip._y = -28;
rclip._x = -59;
rclip._xscale = 25;
rclip._yscale = 25;
rclip.ivar = i;
preloadIA[ i ] = setInterval(preloadF, 100, rclip);
function preloadF(mc) {
if (mc.getBytesLoaded()>0 && mc.getBytesLoaded()>=mc.getBytesTotal()) {
clearInterval(preloadIA[mc.ivar]);
mc.setMask(_root.FlickrFrame_mc.flickrViewerHome_mc["flickrPhoto" + i + "_mc"].mask["flickrPhoto" + i + "_mc"]);
}
}
i++;
} while (i<9);
};
// Flickr Drag Function
this.flickrBack_mc.onPress = function() {
startDrag(_root.FlickrFrame_mc,false,20,94,436,20);
}
this.flickrBack_mc.onRelease = function() {
stopDrag();
}
this.flickCloser_mc.onRelease = function() {
unloadMovie(_root.FlickrFrame_mc);
}
This is the URL of the site that this is driving....
http://www.huntel.net/kjohnson/test.html
What I would like to happen is that the images that are being loaded would be masked by the frames that I have created on the movie clip. Any help would be much appretiated! Thanks!
Basic Actionscript Trouble In CS3
In MX, and in Flash 8 I had no problems with making buttons and putting some basic actionscipt on it. In CS3 for some reason when I make a button, look in the properties window and the button windows there (which tells me I'm on the buttons layer) but when I go to put the actionscipt in, it doesnt allow it. It says "Cannot add actionscript because blah blah". It only allows it with the frame, not the button if that makes any sence. Why is this?
Button Actionscript Trouble
Hi all, I am new to the forums, and I realize this is an actionscript question, but I wonder if there are any other ways asides from actionscript to do this.
I have a button in which contains a movie as part of the roll over. The movie is basically a fading, slightly opaque colour box. when rolling over the button it will play the movie, scrolling through the colours. What I want to happen is on the RollOut, for the movie to pause. basically giving the user the chance to leave whatever colour they are on when on the rollOver to keep it that colour on the rollOut. I have tried various scripts which do not seem to work with what I have.
any help would be much appreciated.
cheers,
scott
Trouble With Sound Using Actionscript
I'm using this script to play sounds when hitting a playbutton:
on (release) {
mySound = new Sound(this);
mySound.attachSound("soundfile");
mySound.start(0, 1);
}
How can I make this script better so the soundfile will not start over and over again when hitting the playbutton?
Button Actionscript Trouble
Hi all, I am new to the forums, and I realize this is an actionscript question, but I wonder if there are any other ways asides from actionscript to do this.
I have a button in which contains a movie as part of the roll over. The movie is basically a fading, slightly opaque colour box. when rolling over the button it will play the movie, scrolling through the colours. What I want to happen is on the RollOut, for the movie to pause. basically giving the user the chance to leave whatever colour they are on when on the rollOver to keep it that colour on the rollOut. I have tried various scripts which do not seem to work with what I have.
any help would be much appreciated.
cheers,
scott
Naming A Scene In Actionscript.
I'm trying to creat a proloader for each one of my scenes. My delema is up until now I just had my whole movie be on the preloader. IE: '_root._framesloaded'. Now I want to have different scenes load when they are come to. Such as having intro (scene name "Intro") load first, then when the person goes to home for it to have a proloader for home. I know how to do MC's (_root.intro._framesloaded) but intro is not a mc neither is home they are seperate scenes. I found it easier to work w/ scenes instead of MC's. Please help!
Change Scene With Actionscript
i've made a movieclip with buttons to navigate my site.
I want the buttons to change the scenes on the main-movie.
i have tried to attach this code to the button in the movieclip:
on (release) {
_root.gotoAndPlay("gestebog",1);
}
It doesnt work
I want the mainmovie to change scene to the one called "gestebog"
is this understandeble or am I babbeling?
on fore hand thx
ActionScript: Loading A New Scene
Hi, i have some problems ..
I have a button as a symbol. I have two scenes. When i click the button on scene 1 i want to load scene 2.
Code:
onClipEvent (mouseDown) {
nextScene("2");
}
Something like this, i guess.
Anyone got the exact format?
Thanks.
Velta
Actionscript To Goto Next Scene?
Im making a little navigation screen with an intro in the same scene.. the intro would play and in the end it would have an "enter" button.. when pressed, I want it to goto the next scene, which would reveal the navigation bar.. is there a way to do this with action script?
ActionScript: Copying A Scene
I created a scene with this script:
Code:
_root.createEmptyMovieClip("MyScene", 15999);
I already have OldScene. How do I copy MyScene to OldScene through script?
Scene Jump Actionscript
I have a reference pic...so you guys have a visual of what I'm talking about.
Basicly in each scene the viewer jumps to with in my site I want a related object to slide-in from the right of the scence and stay in the bottom right corner...then as the viewer jumps to another scence have that object slide back out...and a new object slide in....indicating the new scence the viewer is now in.
Of course I know how to make the object slide-in at the begining of the scence jump.
The problem is the actionscript to make the previous object leave-then have the scence jump and new object slide-in
The reference pic is my "portfolio/work" scene...so the object is a pic of a portfolio (I know... clever)
Hopefuly this is clear enough for you guys to help.
Big Thanks to all that contributes!
ActionScript State When Going To Another Scene
Is it possible to save the state of all the actionscripts set in one scene when you go to another, so that when you go back the previous scene looks the same as it did when you left?
Just curious b/c I coded my program all in 1 frame in 2 scenes, using actionscript, but when I switch scenes, it resets everything.
It's too late to change it all now, cos the thing's due on Fri. morning. But any help or clarification would be appreciated!
|