Professional :: GoToAndPlay Doesn't Work Second Time
Nov 21, 2010
I have made a simple animation using only the timeline. The animation is covered by a button "Knapp" (alpha 0) wich activates the actions. The whole thing works fine the first time. The last action says go to and play frame 2, wich has two actions: stop + go to and play frame 4. But this action does not work the second time. I tried to set the action to frame 3 instead of 2 and the same problem occured on another action on the timeline as well.
Here is the last action on my timeline:
Knapp.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndPlayFromFrame_11);
function fl_ClickToGoToAndPlayFromFrame_11(event:MouseEvent):void{ gotoAndPlay(2);}
[Code]....
View 7 Replies
Similar Posts:
Jul 12, 2009
When a variable reaches 0 gotoAndPlay frame 4
ActionScript Code:
//Variable Name: ammo
if(_root.ammo = 0;
_root.gotoAndPlay(4);
Doesn't work maybe?
View 1 Replies
Nov 21, 2008
XML text to be used as a link within my flash site.What I mean by this is I have a XML file with a list of shows and at the end of each title and short description and I would like to have a link to the show's dedicated page.I know how to do a URL link but a gotoAndPlay / Stop link doesn't seem to work the same way.. Here is an example of what I mean:
Show Name 1:
Short description
link to dedicated 'page'[code]....
View 1 Replies
Jul 22, 2009
I have a box ("bg_box") that I resize and move up and down using the tween class based on what button you select. Once it is resized the text ("textBox") for that box fades on. It works fine on all the other buttons except for one! I added in a scrollpane with a strip of photos ("gross_scroll") on the button that doesn't seem to want to work. It is just a basic _alpha tween so I am not sure why that would cause a problem.
The weirdest thing is that it only has an issue the first time the button is clicked. It skips the tween and just jumps right to the size and position it should be. Once you click on another button and click on the troublemaker again, it works just fine.
Here is my code:
Code:
easeType = mx.transitions.easing.Strong.easeOut;
var box_start = bg_box._yscale;
var box_end = 100;
[Code]....
View 1 Replies
Feb 1, 2007
I have built this AS2 game that uses quite a few classes and library symbols.It works fine the first time you play the swf. But if you try to do the whole ctrl + ENTER in the Flash IDE, it doesn't seem to load any of the assets that are dynamically attached to the stage.This also happens if you have another swf use loadMovie to load it.I have all the dynamically attached symbols assigned with the linkage and set to export on the firstFrame. There is an include .as file on the first frame of the fla.
View 3 Replies
Nov 9, 2007
For some reason i'm having problems swapping scenes in my flash movie. At first i put the action in a "actions" named layer and a link to a button. So basicly when scene1 loads the frame 1 action is "stop ();". The viewer clicks on button1 which has a code of;
[Code]...
View 1 Replies
Oct 13, 2010
For this website I've put a preloader on the 1st frame and the site on the 2nd.I've tested the site after having created a small animation which makes appear the main menu, a logo and an image.Everything did work good, so I went on building the site.Now that I have created some pages I've tested again the whole site and the preloader doesn't work anymore.Testing the site on the "ctrl+enter" window and simulating the download I have a white background (both the preloader and website background are yellow) then I see the preloader for a fraction of second and suddenly the site appears.
Publishing the site on my web space the background is correctly yellow, but the preloader doesn't appear, the browser's loading bar stops at half then the preloader appears again for a fraction of seconds and suddenly the site appears (tested on Firefox, IE, Opera, Chrome and Safari, same behaviour with all of them).It looks that the preloader is become part of the site and that there is an invisibile preloader.The setting in: Publish settings -> Flash -> Script Settings -> Library Path -> Default Linkageis set to "Merged into code"the same happen if I set "Runtime Shared Library" and "Custom Preloader Loop".
View 15 Replies
Nov 24, 2007
Here's an unexplainable problem, at least for me... I'm trying to use Edit --> Find and Replace in Flash CS3 to replace a line of code that occurs in many frame scripts throughout the FLA, but when I click "Replace All", it says "No items found". I'm sure everything is set up correctly in the Find and Replace window:Search in: Current Document, for: Text, and I'm sure I'm typing everything correctly. I have "Frames/Layers/Parameters" and "Actionscript" checked below, and everything else unchecked.
View 7 Replies
Mar 17, 2010
I created a website and exported the project into an swf file. Unfortunately some of the pages exported are correct and others show something else but not the stuff I created in CS4. Actually it is only text so nothing difficult. The result I get is something I had before, only bolt text parts or only the grey letters and not the colered letters...Iam using version 10.
View 4 Replies
Nov 24, 2010
I am using Adobe CS4 Web Premium on Windows 7 Home Premiukm 64 bit. I am in the learning stages and my tutorial is explaning the 3D rotation tool and its use. However, I can not get the tool to show up on the stage, much less use it.
View 2 Replies
Nov 25, 2010
I have Flash CS5 and I'm trying to export SWC from it to use as a library with Flex SDK (FlashDevelop). I have "Export SWC" checked in publish settings and for a while it worked. Now, even if it still is checked, SWC isn't created (at least in the same directory as SWF). I even tried creating a completely new FLA and copied everything from the old library in there. Still it doesn't work.
View 6 Replies
Nov 26, 2010
This sounds quite ridiculous but my space bar doesn't want to work in Flash CS3. I'm a web designer and started recently for a new company. They asked me to include a flash image on one of our websites. When I try to add text to the stage, I can't make spaces. That is all. I've used flash before and I've never ran into this problem
View 2 Replies
Feb 1, 2011
I have a flv that is loading from a subdirectory off my flash swf.Everything works fine when I load the video from [url].....However, when i start the video from mysite.com, the video is not located.What can i do to remedy this? I'm not using an absolute url in the component parameter inspector.For example
myVidDirectory/myvideo.flv
should I use a different path?
View 3 Replies
Feb 16, 2011
I have created a Buttons Menu and then using Flash CS4 AS3 3D Rotation Tool Just added tilting effect using manual tweening and added the following code:
[Code]...
View 2 Replies
Mar 25, 2011
When I draw something, the line doesn't show at all - I get a box outlining the area that I created the drawing in, but I can't see anything in the box itself. I tried previewing (View>Preview mode), but that showed as a hairline and I wasn't able select it to DO anything to it
View 4 Replies
May 5, 2011
I have read that the FLVPlayback component has been optimized for the iPad, but I can't get it to work at all.I had it working, albeit poorly, in CS5.But the same app, published with CD5.5, just shows a flickering FLV icon instead of video.
View 1 Replies
Jun 17, 2011
I recently updated my flash to cs5.5 and my iPad (1g) to the IOS 5 beta. Since then I haven't been able to publish my apps to any IOS device. The apps run in adl and as swf on my macbook pro, but on my iPad (IOS 5) and iPhone 3gs (IOS 5) they just start up and freeze at the stage. I use a loader to load a soundfile and image to the stage right at the start but they just don't show up.
The weirdest thing is that my colleague uses cs5.5 on windows and cs5 on a mac to publish to the same iPad and his apps do work! When I tried to publish on another mac in cs5 I just got the same problem as before.
I hope someone knows a solution for this problem because it is getting on my nerves.
View 3 Replies
Jun 20, 2011
When I played Pogo Payday Freecell, if I'd right-click on a hidden card it would show that card. Now (on Flash 10.3) if I right click I get a pull down menu with show card - press space bar, Global setting and Adobe written.
I've also noticed on a number of other sites that right click now bring up this pul down menu with Adobe written on the bottom. How can I change the settings so they work like they used to?
View 3 Replies
Jul 26, 2011
I load multiple SWFs into a single SWF for seamless user navigation and playback. This allows me to have multiple scenes and a single menu from which to jump to them. Now on to the problem...As you can see in my current site, the LoadMovie function works properly when the SWF "loader" sits on an URL>..HTML page opens with an SWF on it, which correctly loads a movie file(s) into it.However, when I put the exact same SWF "loader" file into a prettyPhoto lightbox: URL...(click the Clinical Ink thumbnail to see the lightbox)The first SWF loads fine but it doesn't load the movie into it.I've tried multiple SWFs that also work fine on an HTML page, all with the same result.
View 3 Replies
Jan 22, 2010
Why the preloader doesn't work in IE 8 but works in FireFox?
Attachments:
index.swf (224.8 K)
index.html.zip (3.2 K)
View 16 Replies
Jan 28, 2010
I'm new and am having a bit of trouble loading one swf into another for a preloader and main program. If u open up flashSite.fla or the swf, everything works, but when I load it into a mc container of preloaderMomSite, the animated buttons no longer work. If someone could take a look, I would love to find out what I'm doing wrong. All files are located on in the same directory.
[Code]....
View 2 Replies
May 30, 2010
OK, I have my custom class defined in a file called "rootInstace.as". This is what it contains:
[Code]...
View 3 Replies
Jun 23, 2010
I was surprised to see the following message when opening a flash CS3 fla in CS5
<<
Slides and Forms documents are not supported in this version of Flash. open in a previous version.
>>
Is there any known work around to be able to maintain a Forms flash project in CS5?
How long will CS3 or CS4 be supported?
View 3 Replies
Jan 23, 2011
I have a 2.93 Core 2 with 8 Gb of RAM.I have a Flash video containing animations, graphics and text. It is 2 minutes long. The SWF works fine. ActionScript 3.0. 900x500 resolution.When I first attempted to export as quicktime, it gave a message very close to this:
"Warning: Runtime Shared Libaries (RSL's) failed to be associated with the file due to Quicktime Publishing Settings."
The wording may be a bit off, this is from memory. Keep in mind I am not even trying to publish at this point, I am exporting. Not that I could tell you the difference.So after showing this message, the progress bar continues to fill until it is completely full, and then nothing happens. The bar jus sits there full, doing nothing.So then after I explored the publishing settings, I found under the 'Flash' tab, a dropdown menu that let me choose "Merge into code" as the integrating the Runtime Shared Library with the file.Then I hit publish. The progress bar fills and disappears, I press okay. Still, I can not find any movie file (or even the place to choose where published file go) on my computer.
After this, I try exporting. The warning the appeared previously is gone, but the progress bar still freezes when it is full, and no file is produced.One thing I have been thinking is maybe it has to do with the number of frames in my file. I have inserted the stop action at the end, so the video stops and does not loop when previewing the SWF, however there are still many blank frames, that don't contain any objects or tweens or anything like that. The setting is currently "stop encoding at last frame" which I assume means the last frame of my video before the stop function. I cannot figure out a way to make the empty frames after this point dissappear, I just figure it is part of the program itself.
View 12 Replies
Feb 12, 2011
I´m working on a project for a presentation, but there is a weird bug...When I test the project in Flash, it works properly, but when I open the .exe or .swf file in my pc, it apparently does not work.The proyect is set to be in full screen, but while testing the .exe, if I press (ESC) to leave full screen mode, then it works perfect!
I need my proyect to be full screen, so removing that feature is not an option.The bug makes my proyect to stop in a frame, but if I press ESC, I can see that the project never stoped, and it's in the frame that it should be.I uploaded my proyect so you can download it if you want and help me. It weighs 3Mb, and contains a video.[URL]
View 3 Replies
Feb 17, 2011
My FLVPlayBack integratino doesn't work : menu don't show, the video don't loop .
It's here :
[URL]
And the code generated by flash CS5 pro :
<div id="flashContent">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="385" height="282" id="pic-du-midi-fevrier-2011" align="middle">
<param name="movie" value="videos/pic-du-midi-fevrier-2011.swf" />
[Code]....
View 2 Replies
Mar 15, 2011
I am having the same problem as a lot of other folks. I have searched through this and other forums and nobody seems to have an answer - at least I can't find one. The set up is this: I tried to view a video - received a message that I need to download the latest version of Flash Player - did so and everything seemed normal - tried the video again and got the same message. I have tried everything suggested on the official Flash Support page as well as this and several other forums and nothing changes.
I haven't seed this tidbit in other threads and it is probably worth noting that when I go to the page on the Adobe site where you can check which version is installed - it says no version is installed even though it apears normally in the Programs and Features window and can be removed from there. Off-the-shelf version of Windows 7 Home Premium , 32 bit running on an HP Pavillion Notebook. No problems with Flash Player unitl 3 days ago.
View 2 Replies
Jul 9, 2011
In the first frame of that movieclip, I'm importing an external swf with Loader class,(Using actionscript2 but my main flash page using Actionscript3),It is loading well but when i pass to second frame and return to the first frame again, the Loader doesn't work. (i'm using addChild(); to show external swf)
View 9 Replies
Sep 23, 2011
I have a simple graphic, a rectangle with 3 rounded corners with 9-slice scaling applied. When I scale it non-proportionally, the round corners keep their shape as expected. BUT if I then rotate it the round corners lose their shape and become ellipticaly distorted! If I rotate first and then scale the same thing happens.
View 3 Replies
Feb 22, 2011
I have set up my buttons so that are each a movieclip with 'over' and 'out' states/frame labels. They exist on the main timeline. The actionscript controlling them is situated in a frame on the main timeline and the frame holding that actionscript is on the same point within the main timeline where the buttons are introduced. I am using actionscript 3.
The buttons have been set up so that they navigate to another frame on the same main timeline and on that frame is a movie. The movie dimensions are smaller than the main stage so the buttons are still accessible when each movie is played. The problem is my buttons are only working once - by that I mean they go to the correct place when clicked the first time, but when they are clicked again they navigate elsewhere. Here's the code I used for the buttons...
[Code]...
View 4 Replies