ActionScript 3.0 :: Playing A Label, Reading From Var

Apr 8, 2010

on my website there a short animation playing when u click one of the links the animation is in a MC on main timeline, when the animation is at frame 30, the main timeline needs to jump to a specific label

so until now, if u click portfolio, MC starts playing, and after 30 frames this codes brings the maintimeline to label "portfolio"

Actionscript Code:
MovieClip(this.root).gotoAndStop('Portfolio');

With this code, i can only jump to portfolio from MC so i need to code to be more dynamic

so i thought, i create a var, and fill it with a string every time a link is clicked

Actionscript Code:
var geklikt:string = "Home";

then the code in MC checks the content of the var, and then plays the matching label

how should i recode the first line of code, so that it plays the label matching the var?

View 5 Replies


Similar Posts:


ActionScript 3.0 :: GotoAndPlay Label - Reading From A Var

Apr 8, 2010

on my website there a short animation playing when u click one of the linksthe animation is in a MC on main timeline, when the animation is at frame 30, the main timeline needs to jump to a specific label so until now, if u click portfolio, MC starts playing,and after 30 frames this codes brings the maintimeline to label "portfolio"

[Code]...

View 1 Replies

Flex :: Accessibility - Reading Out A Label/text?

Nov 28, 2010

I need to make a small app accessible to screen reader.I'm managing to make buttons accessible, but I would also like to have a section of text accessible by screen readers so that users can hear what the text says.

I can't seem to work out how to do this.. I've tried various text controls and set them as focusEnabled, tabEnabled, i've set the accessibility* attributes too but it never seems to work, I cannot tab to a text label and hear the content.

I'm honestly a little new to accessiblity in Flex so apologies if i'm missing something obvious.

View 1 Replies

ActionScript 3.0 :: Playing A Frame Label In A Parent?

Nov 24, 2008

I was just getting used to actionscript 2 now 3 comes along.. I have this segment of code: this.parent.videoOne.gotoAndPlay("playing") it doesn't work in AS3, in the parent I have a movie clip instance called "viedoOne" with a frame labeled "playing". Anything I do that doesn't involve movie clip instance names gets the job done. But what else do I do to make this work when instances are involved?

View 1 Replies

ActionScript 2.0 :: Playing Mc Label After Tween Is Finished?

Apr 28, 2010

I have a tween on this mc and after its finished its supposed to play "goal", a label inside it (code is on the main timeline and the label inside the mc). But, well, i dont know why but it doesnt.. Heres the code:

Code:
stop();
import com.greensock.*;

[code].........

View 2 Replies

Actionscript 3.0 :: Loading And Playing External Swf After Going To Frame Label?

Feb 8, 2011

I have a button on the main timeline. When clicking it, I would like to move the main timeline to a frame label called "history" and load and play a movie clip called "slideshow1".

I have the "gotoAndPlay" code working properly but can't seem to get the external swf "slideshow1" to load and play.

I've inserted the following code into the frame label "history" actionscript.

var myrequest_history:URLRequest=new URLRequest
("http://floramultimedia.com/musicGarden/main/swfs/slideshow1.swf");
var myloader_history:Loader=new Loader();
myloader_history.load(myrequest_history);

[Code]....

View 1 Replies

ActionScript 3.0 :: Flash Loading And Playing External Swf After Going To Frame Label?

Feb 7, 2011

I have a button on the main timeline. I would like to move the main timeline to a frame label called "history" and load and play a movie clip called "slideshow1".

I have the "gotoAndPlay" code working properly but can't seem to get the external swf "slideshow1" to load and play.

I've inserted the following code into the frame label "history" actionscript.

[Code]....

View 1 Replies

ActionScript 3.0 :: Reading LoaderInfo Flashvars Then Chaning Them And Reading Them Again Fails

Oct 24, 2011

I am changing the flashvars variables v1=value&v2=value ect then after the flash movie runs I am changing the variables externally by javascript, so far so good.when flash first loads it reads the vars correctly.when I try to read them ( after the change ) it keeps reading the old values.[code]everything works except I cannot seem to read the changed FlashVars.

View 1 Replies

ActionScript 2.0 :: Movie Clip Finish Playing When A Button Is Clicked And Then Go To The Frame Label Associated With The Button

Jun 2, 2011

Anyway what I need to do is have a movie clip finish playing when a button is clicked and then go to the frame label associated with the button. I hope I'm explaining myself ok. So if I had say 4 buttons Home Gallery About Contact If Contact is clicked then I want the Home page to play (Which is a fade out) and then go to Contact Page (which will fade in). Then If Gallery is clicked then I want Contact to fade out and then go to Gallery page and fade in.

View 6 Replies

Actionscript 3 :: Change A Frame Label Within A GotoAndStop('label') With The Parameters In A Function?

Feb 29, 2012

Is it possible to change a frame label within a gotoAndStop('label') with the parameters in a function?I'm playing around with updating code as I learn more and more techniques, and at the moment the code is a basic click-a-button to select the object shape, and on press the button disappears:

// Change the object into a circle.
circle_btn.addEventListener(MouseEvent.CLICK,function(){changeShape_fun(circle_btn,circle);});
// Change the object into a square.
square_btn.addEventListener(MouseEvent.CLICK,function(){changeShape_fun(square_btn,square);});

[code]....

However I can't/don't seem to know how to change a frame label through function parameters, or if what I'm trying to do is even possible.Also to note, while I'm all ears for any more efficient ways of doing what I'm trying to do, I would still like to know how/if you can change frame labels through function parmeters.

View 1 Replies

Actionscript 3 :: Class - Reading All Classes Under A Package Or Reading Classes With Same Metadata

Jun 19, 2011

I am doing an Actionscript 3.0 project which involves introspection. I am wondering if there is a way to get all the classes within a given package structure.

[Code]....

View 3 Replies

Actionscript 3.0 :: If Press Play Button While The Sound Is Already Playing It Has The Same Song Playing In The Background

Nov 13, 2010

I have a sound clip that I'm loading externally into my flash file. The code I'm using looks like this and is placed in the as layer on the first frame,

var mySound:Sound = new Sound();
var myChannel:SoundChannel = new SoundChannel();
var myTransform = new SoundTransform();
var lastPosition:Number = 0;
mySound.load(new URLRequest("introaudio.mp3"));
myChannel = mySound.play();
[Code]....

View 14 Replies

Professional :: Playing Scenes In Test Movie Animations Stop Playing?

Dec 4, 2011

I am using AS2 in CS5.5.I am creating a project for a class that introduced me to adobe flash.  The issue is I have gotten to a certain point about 15 scenes.  During say the 15th scene scrolling through the timeline animations works fine, playing it on test scene works fine.  When I go to play it on test movie it stops at a certain point.  At first I thought it might have been a misplaced stop action but there is none to be found.  The weird part is every other scene I create after that continues to freeze as well, the images are there, but the animations won't play.  All my previous animations play before those with the issue, it's justThese new ones won't play for some reason in test movie, but work completely fine in test scene and the timeline.

View 4 Replies

ActionScript 3.0 :: VIDEO Stops Playing, Continue Playing Flash Movie?

Aug 7, 2009

I am loading an external SWF file into my main timeline. The external SWF file contains an FLV video. At a certain point in my main timeline, the SWF file loads and plays the video. Is there a way to say...

If the VIDEO (FLV) is done playing, gotoAndPlay(X)?

View 4 Replies

ActionScript 3.0 :: Detect Cuepoints Playing From FLV Movie That Is Playing From FLV Playback Component?

Oct 9, 2009

I was wondering, what was the best way to for actionscript 3.0 to detect cuepoints playing from a FLV movie that is playing from an FLV playback component?

View 1 Replies

ActionScript 3.0 :: Detect When A Playing Audio File Has Reached The End (stops Playing)?

Aug 31, 2009

I have some animation (programmatic, I'm NOT using keyframed animation in timeline), and some music I want to play in the background. Once the music file reaches the end (about 30 seconds long), I want to trigger the end of the animation functions.I figure I could either use an actionscript timer to trigger the end of the animation or a keyframe with actionscript that is placed on the timeline near the end of the song but these methods assume knowledge about the duration of the wave file. If I changed the framerate or updated the external wave file, these triggers would possibly no longer sync upIs there some sort of event listener or other detection method for an audio file to signal it has finished playing? Or maybe there is a way to get the duration of the audio file to use in the timer

View 3 Replies

ActionScript 1/2 :: Stop Other Sounds From Playing While Current Sound Is Playing?

Apr 10, 2011

I am creating a game that has 6 movieclips all on the main time line of the game. Each movie clip has three buttons that when clicked plays, pauses or stops a sound clip.When I press any of the sound clip play buttons that sound starts playing, the problem is when I click any of the other sound clip play buttons those sounds also start to play. Is there a way I can disable the other sound clip buttons while the current sound is playing then enable all of the buttons when the current sound has stopped.
 
This is the code that creates one of the sound objects

[Code]...

View 3 Replies

Stop The Playing Sound And Start Playing The Button?

Oct 3, 2009

So I made a few buttons with sounds within them and when I publish it they work just fine. But what I want them to do is;

Say I click a Button.The sound starts playing.Then I click it again, before the sounds done playing.I want it to stop the playing sound and start playing the button I just clicked on, whether it be the same button, or a different one.Right now it just ends up sounds like an echo because it'll play it as many times as you click it.

View 2 Replies

ActionScript 3.0 :: MP3 - Stop Whatever Song Is Playing And Start Playing The New One?

Apr 13, 2010

The problem I have is I click the play button and start playing. Then I click next and when I click play for another song the songs overlap. How can I stop whatever song is playing and start playing the new one? Has to stop the prev song when I click play_brn.

[Code]...

View 2 Replies

Professional :: Stop A Sound From Playing If It Is Playing Already

Dec 6, 2011

ok so i have a button that plays an animation for fire when held down. and when realsed goes to and stops and frame one. when it reaches the end of the time line it goes to and plays at frame 10 and goes back to the end of the timeline. I have a sound for the fire animation that plays for the effect. The problem is the sound keeps going untill its over even if the button isnt held down. and when the playhead reaches the end of the timeline it goes to and plays and frame 10 and it replays the sound. if i hold it down it will just keep playing the sound over and over from start to finish. what i want it to do it when i hold the button down i want it to play the sound and when released it stops the sound where ever it is at. I also dont the sound to play again if there is a sound already going to stop it from playing 20 sounds at one time it gets loud and you need asprin after about 5 seconds of that.

View 2 Replies

ActionScript 2.0 :: MX PRO AS 2.0 Incongruity In 1.swf Between Playing 1.swf & Playing 1.swf In 2.swf?

Mar 23, 2007

I am learning how using flash is like using legos. if you have two eight hole pieces, and you put them together using only two holes, the lego structure will not be as strong or work so well. seems like you have to cover the entire basis (put all eight holes into the eight pegs) for the program to work, and I am reading the help section for this, although if anyone knows of some good books that hold valuable knowledge and wisdom, I would certainly like to know about them, as I am dedicated to learning flash.

I have 1.swf, that in order to get it to operate as I have programed it, I must play it in the flash player. Playing it in Flash Professional does not work in its entirety because of conflicts in the enter key's duties. The 1.swf works as it should when played in the flash player outside of Flash Professional MX 2004.When I am loading 1.swf into presentation style 2.swf, and then play 2.swf in the Flash Player, the key board functionality of 1.swf (most specifically the enter key) does not operate as the 1.swf Actionscript 2.0 defines. I have created a projection file as well, to see if there was any other behavior that might occur, but the result were the same. Here is the section of the code dealing with the keys:I have tried separating the different if(Key.isDown(Virtual Key Code) statements into different keyboard listeners, but to no avail.If in order to solve this issue - if the kind Kirupian reading this stuff needs more

code, let me know, as I'll have the rest of the comments finished shortly.
//1.swf is loaded into a empty MC from within 2.swf.
this.createEmptyMovieClip("a_mc", 0);[code]

View 1 Replies

Reading XML From URL Link?

Apr 19, 2010

The project will have a web based interface but the actual presentation will be in flash. So the premise is you create a presentation, flash then reads the XML data, creates a menu and presents the other XML data in a linear fashion and my first question is whether the XML is in the correct format. I am not the one programming the XML side of things we have a .NET programmer doing that and he has not worked with Flash too much and this is also something new for me as well.

Code: Select all<presentation>
<info>
<name>My First Presentation</name>

[code].....

View 3 Replies

Swf Files Are Not Reading On Website?

May 31, 2009

I recently made a website and the links for the main page do not seem to link properly to their rightful pages when I put the site online (but it does work well when Im just testing the site on my computer in my Flash program) I know that the website I made is very large - so I was wondering if that could be a reason for why the pages don't load properly - also one of the pages links to another site and although that seems to work on my swf when I play it in my Flash player - it doesn't work when I put it online-

Finally my sound quality is not that great for the site. The songs are in mp3 format - would it be better to make them .wav files?

Or are all these problems related and its just that my computer does not have enough power to convert this massive flash website into a proper swf file? If this is my problem. What do I do?

The site that I made is [URL]

View 2 Replies

ActionScript 3.0 :: Reading Classes Cs4?

Jul 14, 2009

I have a move that reads class files located in folder called 'src' and has been working once I changed the path to absolute. for some reason now my movie has decided not to work.

this is how I create the path:Go to porperties and click 'Edit' then clicking the AS3 'settings'. I then go to the 'Source path' tab and click 'browse folder' icon to the folder of the classes.having done all this my movie still does not work.

View 7 Replies

ActionScript 3.0 :: Reading XML Into Flash?

Feb 17, 2010

I have an XML doc that was exported from FileMaker Pro that I need to read into flash to get the variables from. The XML doc is laid out like this (shortened for brevity):

<FMPXMLRESULT>
<ERRORCODE>0</ERRORCODE>
<PRODUCT BUILD="06-20-2006" NAME="FileMaker Pro"/>
<DATABASE DATEFORMAT="M/d/yyyy"/>

[code]....

It keeps telling me a term is undefined and has no properties. This I've isolated to the backgroundArray.push statement. Just not sure how to fish the data out of that XML doc properly. What call would I use to iterate thru the different ROW tags to get to the DATA info?

View 2 Replies

ActionScript 3.0 :: Reading XML And Displaying Value?

May 14, 2011

I'm creating a interactive 'thing' where I've got buttons which when clicked show a an image and display text relating to the value in the XML file.

The XML is working and I can trace the any percentage(value I'm looking to find).

Code:
function LoadXML(e:Event):void
{
xmlData = new XML(e.target.data);

[Code]....

View 1 Replies

ActionScript 3.0 :: Reading All The Keys?

May 28, 2009

using the authoring tool to test,I find I can only read certain keys via:stage.addEventListener(KeyboardEvent.KEY_DOWN, keyDown);
 
But when I test in a browser, I can indeed read all the keys. So the IDE must be intercepting certain keypresses. E.g., I can read w and d but not e.

How can I read all keys? Testing in a browser all the time is a bit inconvenient

View 1 Replies

Recommended Reading For Beginner?

Jul 20, 2009

benefit a Flash/Action Script beginner?

View 2 Replies

Reading SOL File From A C/C++ Application

Oct 19, 2009

I would like to have two applications communicate with each other. One app is a Flash running the browser and the other one is another app of ours that is distributed as *.exe file. We need the C/C++ application to read some info out of the SOL file, that is written by the Flash app.
 
Any other mean that can be used to read the SOL file from a C/C++ application? How often is the format of the SOL file being changed ?

View 1 Replies

ActionScript 1/2 :: Reading Variable From Php?

Nov 4, 2009

I know there is a way to read variables from PHP, i have seen the many tutorials. What I want to do is slightly different. I need to load the flash file with a variable.I want the user to have a url containing a variable, the PHP will then get the posted variable and load it into the flash file on the page. Is there a way to load the variable into the flash file?URLtest.php?var="list.xml"Inside PHPget posted variableload flash file and load the var into the actionscriptFlash embeded on page or on a redirect pageActionscript uses variable which was originally embedded in the URL

View 3 Replies







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