ActionScript 3.0 :: Presentation Control Button (SWF Files In Array)
Jun 16, 2010
I'm working in actionscript 3.0. I have a set of swf files in an array. I have buttons (play controls) at the bottom (previous movie, pause movie, start/play movie, and next movie). I have an empty movieClip container positioned on the stage to load the movies. However I cannot get the play controls to act on the swf files. There is also a tab menu listing the different movies and that loads the movies seperately fine but the buttons do not seem to respond and I'm not sure why they are not working on the movie array.
Code
// ActionScript 3.0
import fl.transitions.Tween;
import fl.transitions.TweenEvent;
import fl.events.ListEvent;
import flash.display.MovieClip;
import flash.net.URLRequest
// Array of external clips to use. Variable index refers to next clip to be displayed.
[Code] .....
I created a presentation in Flash. And I embedded the following keyboard control scripts so that I can pause the slide by pressing "Spacebar" and play it again by pressing "Enter".[code]I also embedded getTimer script to delay the speed of the flow so that key-point can be loaded one by one.[code]Other than the above keyboard control, I also add four buttons at the right bottom so that I can play and pause, fast forward and rewind by clicking those four buttons.
1. the 1st and 2nd slide cannot be paused by the above keyboard control command.
2. the play and pause buttons at the right bottom is not functional in the 1st and 2nd slide.URL...
I'm making a Flash presentation that I want to be handled from a control. I did a lot of this presentations with this code:
Code: var myListener:Object = new Object(); myListener.onKeyDown = function() { if (Key.getCode() == Key.LEFT) {
[code]....
but now the handle control was changed ( for a logitech R800) and doesn't function with this code. Anybody knows how is the code for this handle control for the prev next buttons.
I'm making a Flash presentation that I want to be handled from a control. I did a lot of this presentations with this code:
[Code]....
but now the handle control was changed ( for a logitech R800) and doesn't function with this code. Anybody knows how is the code for this handle control for the prev next buttons.
I'm trying to use text effects, but cannot get them to work in a slide presentation. Is there anyway to utilize AS3 in this AS2 based function? I need to use a slide show so that the presenter can control the speed of his presentation.
I'm just looking for a simpler way to control button states instead of writing separate onRollOver, onRollOut, onRelease for each button. I tried to control them all through an array. The button Movieclips are nested in two movieclips. main_nav has 5 movieclips and main-nav02 has 2 movieclips. I have a general idea of how an array works, how to set up elements and how to access each node (not sure about that last one).
This is my code so far. Select all ////////MAIN NAV ROLLOVER CONTROLS var navArray:Array = new Array("main_nav.one","main_nav.two","main_nav.three","main_nav.four","main_nav.five","main_nav02.one","main_nav02.two"); var indexNav:Number = Math.floor(navArray.length); [Code] .....
I made a little flash presentation where a bulb increases in brightness as the mouse goes over it and decreases as the mouse goes out. I set up the object on the stage and created a motion tween equal to 30 frames in which the object starts dull and increases in brightness. To control it, I made this little script:
ActionScript Code: stop(); addEventListener(Event.ENTER_FRAME, startScan); mcBulbLit.addEventListener(MouseEvent.MOUSE_UP, startShow); function startShow(event:MouseEvent):void { gotoAndPlay(31); } function startScan(event:Event):void { [Code] ..... For some reason the bulb only goes back one frame and then stops at that frame.
Someone here recently helped me immensely with a question I had about creating a previous button in my flash file that would allow the user to click on the button and view the previous swf file. I'm hoping someone can help me with making the Next button now, too.
I have a movieclip that loads an array of external swf files. I thought making the next button would be as simple as changing just a select few things to the previous button.However, that's not working. When I try that, the movieclip doesn't even load the swf files. Below is my AS2 code for my file. I bolded the part at the end that is for the previous button. Does anyone know how to make the previous button?
I am making a flash presentation I have buttons on the top presentation that will navigate to differnt slides.The question i have is for each button I have the behaviors set to show the screen I want and hide all of the other screens.I have to go to each button and do a hide each screen one by one, I have about 40 of them. Is there a easy way to do that in bulk. I.E. If i have button 1 I want it to show only screen 1 and hide screens 2-40. Button 2 will show only screen 2 and hide screens 1, 3-40
I have a .swf movie that is accessed through a link on a website. At the end of the movie are two buttons: one for "Back" and the other for "Replay." I have the buttons working so the Back button goes to the previous URL and the Replay button, well, replays. However, the Back button opens a new window. Is there a piece of Action Script 3 that I can add to the following to close the window in my .fla Action Script Window to close the window as it jumps to the URL? Here is the script.
I've been having a bit of a hard time understanding how to get a button which I have created in Flash to navigate to the next slide of the PowerPoint presentation which it has been added into.
I understand that I somehow need to make use of fscommand in ActionScript, but I'm not sure how I can get Flash and PowerPoint to communicate between themselves.
I am new to adobe forums and flash platform. I am using flash cs3 / 8 for almost a year now (timeline with some basic actionscript - AS2). What I need for my projects is a playback skin for the produced swf's. I tried captivate, but when I import the skin actions don't work any more (i tried several tactics - synchronize ... ect). Is there any other way to add a player skin with start /stop buttons and active scrubber bar (slider bar). I can easily create custom start/ stop buttons that does the job but I can figure how to make a scrubber bar that will respond to my flash project user interaction (e-learning purposes).
As it is said here: [URL] "If you do a Google search today for "MVVM and Flex", the first post is by somebody who claims that MVVM is not a good fit for Flex. I couldn't disagree more. Out of the box, the Flex framework makes it much easier to implement a Presentation Model than similar MVVM implementations in Silverlight. That is not to say that there aren't good third-party libraries that make it easier in Silverlight, but without any help, it is easier to do in Flex." So MVVM as LOGICAL CONCEPT can be implemented in both but the way it is implemented in Silverlight requires more Plumbing than Flex.
What prevents Silverlight MVVM to be implemented like Flex ? Doesn't Silverlight have same capability in event system to do the same? If yes why does Silverlight do things more complicated what's the advantages then ? Is it about using Class Interfaces which are more strongly typed? What are the disadvantages also ? For example as for implementing MULTIPLE VIEWS for 1 View-Model does Flex implementation make it also more obvious?
I have a custom build swf player, which has basic functions of play, pause, quit etc. It plays swf created with flash. I created a demo using captivate cs5, then exported it to flash. The captivate swf does not works with my swf player, it loads and starts playing but play and pause button does not work at all with it.[code]...
Have built a gallery that holds animation files (60 fps) and flash video files (30 fps). The gallery file speed is 30 pfs to match fhe video files. in this configuration my animation files play very slow while the video files play good. When I change the speed of the Main Gallery file (the one that holds the animation and flash video files) to 60 fps. The result is inverted. The animation plays OK while the video plays very slow.
How do I change the speed of the animation files so they play at the correct speed. I have a hint but do not know how to script it. Animation files ( playSpeed X2 or something equivalent).
I have five videos playing at the same time in a .swf. They are each .flv files of the exact same length, I'm keeping them external rather than embedding the files within the Flash, and it's imperative that they each play at the exact same time so I'm avoiding using streaming.They all need to be kept at the same time code as any other of the movies at any given time. Is it possible to make a scrubber or other controls that will allow the viewer to move positions within these videos simultaneously?
Is there any way to create a keyboard shortcut using a the control button plus a key button. For example, if I want to print the screen, I would press control + p.
I am working on a project and I want to know if it is possible for flash to control the playback speed of sound files (mpeg). I dont care if they are external or imported since the project will only run locally. IT is a game where I want to slow down and speed up the sounds playing.
I need to load an into and exit .swf files into my project. I have the code to load the swf but it is an animation (with sound) and it continues to loop. What I need it to do is play once then move (and stop) on the next frame of the main timeline. [code]...
I need 6 buttons to control the same array. it's a list of 12 things.
Button1 loads the first image in the array
Button2 loads to the next image in the array
Button3 loads to the previous image in the array
Button4 loads the 1st image in the array (yes two buttons to do the same thing but it's necessary)
Button5 loads the 4th image in the array
Button6 loads the 7th image in the array
Button7 loads the 9th image in the array.
on top of that if no button is pressed the next image in the array moves forward after 15 seconds.how to do this with a set of images. Eventually the Array will become an xml document which accesses images, and two text fields.
Im trying to populate a tree control with an external xml file brought in via arraycollection but i need to group the xml data to display in the tree Okay my external xml file is called parts.xml and it looks like this:
[Code]...
additionally what i intend is for the user to have huge tree of parts and they select a node at the partnumber level and drag an drop it on to a datagrid where all the other tags of the part gets displayed.
Ive tried and tried many things without any luck. even now im thinking maybe if i looped through the array-collection and created a new array just for the tree to get it to display the way i need it, then when the user dragged and drop a part onto the grid i would have code that would look for that part number in the original arraycollection and add it to a new array just for the datagrid... i still dont know how i would create that new array for the tree!! cause the xml data is grouped by partgroup and then grouped again by parttype before you get the individual part numbers
I'm trying to create the very basics of a isometric map. My engine creates to map fine, but it's when I want to then control the movie clips.I'm adding each cell in the grid using and array:
Code: for (var X= 0; X < Engine.Var.GridWidth; X ++) {
i've a problem about checking array with if statement.. my code is above and i can't see "it works" text on trace. I want to take the first value of an array after shuffle function, and i want to check it with if statement.
Using AS3, I was wondering how to control one object, a ball, while another ball bounces around. I'm modifying code from "Foundation ActionScript 3.0 Animation" by Keith Peters.
I'm pretty new so I'm probably making some obvious mistakes here. First of all I thought I could refer to the balls as ball[0] and ball[1] since they are in an array called ball. Is this correct?