ActionScript 3.0 :: Goto Selective Frames Depending On Foot MC
Jun 22, 2009
I setup this conditional statement. My intention was that if the object
foot_mc was on point0_mc then it will go to frame 5
OR
if foot_mc was on point1_mc it will go to frame 10....
function Oncheck(evt:MouseEvent):void{
if(foot_mc == point0_mc) return;{
gotoAndStop(5);
} if(foot_mc == point1_mc) return; {
gotoAndStop(10);
} if(foot_mc == point2_mc) return; {
gotoAndStop(15);
}}
I get no errors but it will always go to frame 15. Instead I want it to go to the selective frames depending on where foot_mc is...
View 5 Replies
Similar Posts:
Jun 22, 2009
i setup this conditional statement.my intention was that if the object foot_mc was on point0_mc then it will go to frame 5
OR
if foot_mc was on point1_mc it will go to frame 10....
function Oncheck(evt:MouseEvent):void
{
if(foot_mc == point0_mc) return;[code]....
i get NO errors but it will always go to frame 15.... instead i want it to go to the selective frames depending on where foot_mc is...
View 4 Replies
May 7, 2011
I need to make a function (inside Flash) that will let a swf find out what date it is (each time it is loaded from a server) and then - according to the date - display a frame designated to that date. Optionally, I could have the swf load another swf based on the date.Originally I had planned to make some php wrap-around that would do the loading of different swf's for me - but this is not an option since the swf may soon be uploaded to a server that I cannot feed with php-documents (I don't get access for that - swf only!)So now I must find a way to do this within the swf. But as of right now I am clueless.
One thing I did learn during my googling the past many hours is that the "Date class" in Actionscript is risky - in that it 'reads' what date the end user has on his/her machine. So in the event that some user has the date misconfigured that will screw up what my swf will display.Therefore I am hoping that I could somehow do a variation of php's "echo date" and get the date from the server - but inside Flash. And then have that bit of data call for a certain frame/scene/loaded swf.
View 6 Replies
Dec 23, 2009
This is one of those rich media interactive ads, that have the ability to launch another SWF using _root.myPR.openPanel(1); The user has 3 choices identified as option1, option2, option3. I would like to not just openPanel on pr_submitBtn.onRelease, but to have the panel open & advance to a particular frame depending on which option the user chooses in the poll. I have the following launching the panel but not going to different frame labels in the panel launched. All 3 options simply stop on frame "one".
Code:
if (option1 = true) {_root.myPR.openPanel(1, "one");
}
if (option2 = true) {_root.myPR.openPanel(1, "two");
[code].....
View 3 Replies
Oct 4, 2010
I have five images on five different frames in my example. I always want to display the first two images (frames 1 and 2), but only show 3, 4 or 5 depending on the current month.
If it is January, I want to display frame 3 and then loop back around to frames 1 and 2. If February, frame 4 and loop back to frames 1 and 2, etc.
Right now I'm just testing it with a "4" for the month hard-coded in and it just plays the whole slideshow.
So, I have the following actionScript for frame 3:
stop();
var theDate;
var month;
var month_frame;
[Code].....
View 0 Replies
Jun 8, 2004
I know this can't be to hard too achieve, but my actionscript skills aren't quite up to it yet.
- I have 5 frames within a MC.
- In this MC there is text saying "center", "left", "right", "up", "down" on each frame.
- All I want to be able to do is make the MC change to frame 3 "right" when my mouse moves to the right of the MC.
I know the script below is wrong, but would it go something like, this. Would I have to use angle and math or is there a simpler way to achieve this?
onClipEvent (mouseMove)
get x position
get y position[code]......
View 1 Replies
Jun 8, 2004
I know this can't be to hard too achieve, but my actionscript skills aren't quite up to it yet.
- I have 5 frames within a MC.
- In this MC there is text saying "center", "left", "right", "up", "down" on each frame.
- All I want to be able to do is make the MC change to frame 3 "right" when my mouse moves to the right of the MC.
onClipEvent (mouseMove)
get x position
get y position
if statement x= > -180 and y=> 0 (something like that)
_root.myMovieClip.gotoAndStop(3)
View 1 Replies
Jun 16, 2006
I'm just trying to have a textbox on my main stage display certain values depending on what frames are being played. So having not done actionscript in a LONG time, I would assume is it something like this:
[Code]...
View 3 Replies
Jun 14, 2010
I added a website preloader in a separate scene to the main frame of my website and scripted it to go to and Play the main scene or frame of the website when finished loading. I then put a command in the first frame of the main scene for the movie to stop (); at that point. The problem is that now the buttons on the main page don't respond to any behaviour commands to go to and stop at other frames in the main scene. I'm not sure if this is a conflict between the stop(); command in the main scene and the button behaviour command to go to and stop at another frame or an error with the way I'm identifying the scene and frame.
View 5 Replies
Mar 11, 2007
After "googling" without success, could some provide a URL or code sample that would illustrate how to output the following:
"This Is Not A Love Song"
Where the first letter of each word is capitalized.
[Code]...
View 7 Replies
Sep 26, 2008
I've got a quirk here I'm having a difficult time hammering out.I've got a control object with a sound object as a child. This global sound object has another sound object as a child:
Code:
Master = {};
Master.soundManager = new Sound();
Master.soundManager.BGM = new Sound();
\
In the main loop of my program, I have a function (VNELineReader()) with a switch looking for particular cues, one of which is loading a sound into BGM:
Code:
case "bgm_load" :
Debug.trace('Loading music: Sound/'+args+'...');
Master.soundManager.BGM.onLoad = function() {[code].....
Now, when I run this in the Flash 8 IDE, no problems. The script waits for the sound to load, resumes, and later on plays BGM with a case "bgm_play". However, if I compile the program and play it with the external flash player, the loadSound call causes the player to freeze, eat up about 600MB of memory in task manager, and then crash. It also does this if I open the .swf in Internet Explorer. However, it works fine in Firefox.
View 1 Replies
Feb 17, 2010
I want to show in data grid only few dataProvider rows. For example my arrayCollection has 30 rows and I want to show in dataGrid only rows from 15 to 30. Is there a way to do this on dataGrid class or should I filter the arrayCollection?
View 3 Replies
Aug 23, 2010
I have several layers all of which I have applied a "stop();" to, however I want one of the layers which is simply just text that spins around using a default preset motion, to carry on spinning whilst the rest of the layers have stopped.
How can I do this? It as though I want to remove one of the layers from the "stop();" code.
View 3 Replies
Sep 4, 2003
I have created a user interactive colour sample system that sends accumulative preferences from an external swf to the _root timeline when different colour sample buttons are clicked.The code looks as follows:
on (press) {
_root._root.myvariable += "
colour1";
[code]......
View 14 Replies
Mar 1, 2011
I have a flex UI which communicates with server using spring blazeds. I have a very typical requirement of Live data streaming on a panel in UI. Requirement is like this, We have an object say, Person and server keeps pushing its data on blazeds message destination where UI panel consumer has subscribed and hence user can see this live data in a panel. User can open multiple panels in same browser to view data for different Persons at the same time (e.g id=1,2,3 respectively). There can be multiple UI users who may be viewing the same data for person id=1 at a given time, lets say.
Basically I want to separate data between UI panels. UI panel opened for person id=1 must not display data of that for person id=2. I am doing this using headers-selectors, but apparently I found out that the differentiation to select and display what data happens on UI which is causing performance issues. I learned that using subtopics may improve performance. But, before proceeding for it, I want to know, will UI browser end up in receiving data irrespective of subtopic assigned to data and then consumer will decide to accept it or not?
View 1 Replies
Nov 16, 2009
I want to create a preloader that plays a certain amount of frames as it loads the rest of the frames. So, I have labels on the frames basically and need a preloader to play the "loading" frames as it is loading the "content" frames. Does that make sense? I have no idea how to even start this one... p.s. I am using AS 2.0, but if it can be done in 3.0 easier, I can switch over its no biggie
View 4 Replies
May 2, 2011
there seems to be no accepted method of playing multiple flv using buttons. My latest attempt has me putting multiple instances of the flvPlayback component in different frames and using buttons to navigate to those frames. It works but nothing anyone has posted anywhere will result in removing the flv when you go to a different frame and instance. This was simple in AS2. Load movie to a traget and each time you load a new movie the other one goes away. REALLY goes away.
View 7 Replies
Nov 24, 2011
basically im making a quiz on my main timeline ive got my questions and answers and on the last frame i want it to say how many answers the user got right. ive made a movie clip on this last frame. in the movie clip ive got 11 frames with the posible totals so frame one would be 0/10 frame 2 would be 1/10 etc what i want to do is when the user clicks the correct answer on the other frames i want flash to make the frames within the movie clip to go 1 step forward.
View 2 Replies
Mar 26, 2009
I have a function that counts days and some other variables and displays the values via dynamic text.
[Code]...
I have to place the incrementCount(): function every 12 frames so that it increments the values. Seems like it would be easier to simply modify the script to count "every 12 frames" but I can't find anything that tells me how to "count frames" in flash. Seems to be this is probably basic but I've searched unsuccessfully....so how do you do this. How do I get my script to work so it's frame based so I don't have to put incrementCount() every 12 frames?
View 16 Replies
Jan 7, 2010
Is it possible to have an movieclip of about 50 frames and navigate between these 50 frames? As if u put a marker on frame 10 and one at frame 30 and if u use a button it plays to frame 10 and stops and use another button to go from frame 10 to frame 30 and stop... and reverse if u use the earlier button.
View 5 Replies
Jan 8, 2010
I want to preload all of the voiceover swf files before a lesson starts so that they are instantly available when each frame / page that incorporates a voiceover is first visited.
View 4 Replies
Oct 13, 2008
I know this may be a basic question, however.how to encode a Flash Video (possibly with Flash Video Encoder using Cue Points?) and when the video ends, direct the user to a specific url. In other words when the video is over the browser automatically refreshes to a specifc page.
is there a tutorial for somtehing like this?
Are there any code examples?
Can I use Flash video encoder and cue points, Or should I use Flash WITH video?
View 33 Replies
Aug 18, 2008
I have an flv video playing from a FLV Playback component. I am trying to have the movie goto the next scene at the end of the FLV video. I have go through numerous tutorials online to get the action to do this, but to no avail. I have tried both addeventlisteners and NS. way to have the movie advance to the next scene after the flv and where the AS has to be to get the movie to function properly.
View 5 Replies
Jul 16, 2009
I need to load a SWF depending on a parameter in the URL ... how do I do in order to make flash recognize the RUL parameters? For example, I want that: [URL] load the index.php with an animation for utah, [URL] load the index.php with an animation for texas, and so on... how do i achieve this?
View 3 Replies
Jan 19, 2010
i want to trigger a shine i labeld the frame shine created a hit area by making a box on a seprate layer and converting it to a symbol in the properties box and gave it an instance of shineStart
its not working im getting an error 1120: Access of undefined property _OVER.
my code is
shineStart.addEventListener(MouseEvent.ROLL_OVER, _OVER);
function _click(event:MouseEvent):void
{
gotoAndPlay("shine");
}
View 1 Replies
Jul 22, 2009
I have "inherited" some projects. One question I have is about a project that directs a user to a particular HTML page when a button is clicked. I have searched through the Actions and Behaviors and I can find no reference to the page it currently calls so I don't know how to change the page activated.
View 4 Replies
Nov 22, 2010
I have a scene where my movieclip loops between frame 1 and 2.In frame 3 there is a gotoAndPlay (1);.Is there a code that I can put in frame 1 where it tells to jump to frame 4 every 7:th second?
View 1 Replies
Sep 24, 2009
I'm currently working on a crossword puzzle and need some help.The crossword boxes have an instance names - b1 to b59.my issue is: When the user types in a letter the i-beam cursor will move to the next letter of the word.[code]
View 2 Replies
Nov 27, 2009
I'm sitting here doing some C# programing and in one of my switch statements I ended up using the goto keyword. Well just out of curiosity I booted up FDT and created another switch statement in ActionScript 3. Well to my surprise there is apparently no goto keyword in AS3 or at least I couldn't find a substitution.
View 6 Replies
Feb 7, 2003
i have 3 scenes: loading, menu and animation.when i'm playing the animation scene, i have a slider. I wanna use it as a on/off switch to go back to my scene "menu" so it goes like that:the bouton (instance "onoff") of my slider (on root of "animation"):on (press)[code]i have a movie clip also on root of "animation" that does a small loop between its frames 1 and 2 and i added the script:[code]So my question is, why can it control a MC and not jump to a scene??
View 14 Replies