I added a bit of Action Script 3.0 code into a premade flash file that came with my website template.I wanted to link a navigation button to an external url, heres the code:
While testing the movie within Flash,the Test Movie window randomly goes blank, showing the stage color. The movie is still running, there's no error, it's just blank. When I resize the Test Movie window,everything reappears... Until a few seconds later, when it snaps back to blank... so I resize, it reappears, it disappears, I resize, it reappears, it disappears... over and over.Resizing even just one pixel is enough to get it to come back. Sometimes it happens every few seconds.
This might be related to another issue: If I Test Movie with the Bandwidth Profiler on, Flash CS4 doesn't resize the window correctly to fit my entire movie in it, resulting in a big blank space underneath the Bandwidth Profiler, and that same amount of space being cutoff the bottom of my movie. I haven't seen anything like this in 10yrs of Flash development. This is a Mac Pro, 8-core. The graphics card is ATI Radeon HD XT 2600. 6GB RAM. 10.5.3-10.5.7
The same FLA works without any issues on CS4/XP. The FLA saved to CS3 works without any issues on CS3/OSX and CS3/XP (same machine).I have all but given up on CS4 for OSX. Between the crappy framerates, the crashing, and not being able to TEST MOVIE, I just avoid CS4 on OSX and use CS3 on OSX or CS4 on XP.
Whenever I am trying to open a swf file (any swf file) or test a movie from the flash ide the internal player is blank and output has the msg error opening url "the path of the swf file here".This is not a problem that has to do with loading external files etc. It just refuses to open any swf file and ofc or test any movie cause it keeps saying error in opening url even in blank movies.
The simplest thing New File -> AS3 -> Test Movie -> Error in opening url I can publish the movie with no problem at all and I can run all the swf files outside of flash ide. I can debug movie from flash ide. I can html preview it from flash ide but i can't just hit cmd+enter to test the fraking movie.
I have had this problem for a week now. I keep making code but when I export to .swf it is 99% of the time blank. I do the addChild and stuff but still nothing. Here is my code:
I've seen this in several of my projects, when testing the stage.stageHeight is 100 less than what I've set the property to. I looked around and found at thread from 2004 (AS2) that talks about it, and found one in 2009 (AS3)With this in mind, I almost always have this:
ActionScript Code: var SW:int = stage.stageWidth; var SH:int = stage.stageHeight;
I'm trying to create a sort of tree diagram such that, if you click on one of the circles, its child circles spread outward with some degree of randomness from the original circle, connected by lines. I have this working, but now what I want to do is make sure that none of the circles collide with each other and none of the lines criss cross. You can see the screenshot for what is currently happening. My code is below. How do I change this code so that it checks for collisions and avoids them? I've read up on flash's hitTestObject command, but that only works in the context one object to another. I want to test for one object contacting any display object.
import com.greensock.TweenMax; var sw = stage.stageWidth; var sh = stage.stageHeight;
I'm new to as3 and although I am able to build classes that don't error but also don't put anything on the stage. I have Starter_1.as file stored in a folder called com...this is the script for that file:
Code: package com { import flash.display.Sprite; import flash.text.TextField; public class Starter_1 extends Sprite { private var tField:TextField; public function Starter_1 () { [Code] .....
From what I can see the problem is because the addChild(tField) is not referencing the stage in anyway because the script is in an external .as file and not on the timeline (good coding practice I read somewhere?) I use this on the timeline to try put the text field on the stage: Code: import com.Starter_1; var f1:Starter_1 = new Starter_1(); How do I get this working?
I have created a banner in Flash CS5. It starts with a blank stage and an image tweens on to stage from the right edge. The image stays on the stage for a few seconds and a 2nd image tweens on to the stage and completly covers the 1st image. Similarly 3rd and 4th image cover the preceeding images. When I play the animation, before the 1st image covers the stage, there is nothing prior to it. When the 2nd starts tweening over the stage, the 1st image is still there.
Similarly for the 3rd and the 4th images, there is an image covering the stage. But after 1st loop completes, the animation goes back to a blank stage and the 1st image starts tweening on to the stage. Iwould like to have the 4th image stay on the stage while the 1st image starts tweeing on to the stage. I have started using Flash recently and am not very skilled with the program or ActionScript.
I basically need to scale an object up when the user rollsover the button which I have created dynamically already and I need to make sure the object is fully scaled up before I can allow the user to scale it back down again.Ive tried putting 2 tweens (x and yscale) into a function but not sure how to check if the tweens have finished. Im assuming if I check the function is complete it wont take into consideration the tweens may still be running.
TypeError: Error #1009: Cannot access a property or method of a null object reference. at QuizApp/createStatusBox() at QuizApp()
That's the error message I get when it tries to play. What I have is an swf that loads another when its done, the new swf is blank but has a document class to an AS file. It seems the problem lies when a function is not properly being added to the stage.
The function is added like this.. Code: package{ public class QuizApp extends Sprite{ public function QuizApp(){ createButtons(); private function createButtons() { if (this.stage == null) { trace("STAGE IS NULL!!!"); } var yPosition:Number; addEventListener(Event.ADDED_TO_STAGE, addedToStage); ...
So, I have a basic Tetris game, which runs quite happily at 15 fps. However, the controls are slightly too sensitive at the moment, as you'll probably see here. Is there anyway way to make the controls less sensitive (specifically the left/right controls)?
The first time you navigate to it the movie never runs properly. One of the animations will only advance about half way along it's intended cycle, or else icons will be blinking visible and invisible, or a host of other things.
I'd like to show my print portfolio in different slide shows on Flash CS4 using buttons that correspond to categories such as: brochures, posters, logos, etc. I've made the buttons and I created slide shows in Powerpoint--but if there is a better way in Flash, let me know. How do I code the buttons to play their corresponding slideshows? I don't want them visible until the button is clicked.
I used the 'Advanced Slideshow' template in Flash CS5 to create a photo gallery. The images in the template are not placed inside of the project but are separate files (the photos). I tested it on my harddrive and it works perfectly. Then I uploaded it to my website and it doesn't show the images. The folder structure is the same as it is on my harddrive, all the files are the same.
I was in the middle of developing a Flex applcation, and then I recently switched from Windows XP to Mac. My app is noticeably less responsive on my Mac than on Windows, and today I proved it's not a hardware issue, because I ran the App on my Mac and a Window XP on Virtual Box side by side, and IS much more responsive on XP. Things like repainting in response to window resizing, selecting/unselecting list items, scrolling up and down(I do have complicated list-item-renderers). Has anyone seen this as well? Is flex/flash just not as well supported on Mac? Or are there tweaks I can do to improve performance on the Mac?
I have an existing AIR app whose main content is App.swf.I would like to have another AIR app that hosts and runs App.swf. When I say run it, I mean displays it's WindowedApplication.Here's the code for the 2 AIR projects (imports are omitted for brevity):
// App AIR Project -> App.mxml -> App.swf (it's just a window) <?xml version="1.0" encoding="utf-8"?> <mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml">[code]....
I get the following error while App.swf is being loaded:
TypeError: Error #1009: Cannot access a property or method of a null object reference.at mx.managers::SystemManager/initHandler()[C:autobuildgalagaframeworksprojectsframeworksrcmxmanagersSystemManager.as:3001]
I believe the issue has to do with AirAppHostApplication's SystemManager conflicting with App's SystemManager because they are both living in the same app domain. Can an AIR app be written where a WindowedApplication class isn't statically defined, but loaded at runtime by loading a swf and instantiating the WindowedApplication subclass that's contained in the swf.The reason I want to do this is for an automation scenario where I have to assume I don't have the source code for the app I'm automating, but I do have access to the names of the public classes and their public methods exposed for automation. I have complete control over the environment and don't have to deal with any constraints around that, so I can put 2 AIR apps in the same directory, etc.
Allaboutrajini site tells you to stop your Internet connection to enter the site.I guess it determines whether the connection is on or off with javascript or something like gmail and qoura do.
But how can they store so much of flash animated content locally in the browser in such a short time?
I am working on a piece of software that was written by someone else (that person is no longer available, but part of my job is repairing/maintaining this software).The software has multiple pages, each is a swf that calls loads and plays an FLV file. I've noticed that the audio is inconsistent after multiple runs.For instance, I'll repeatedly run the code in the Flash player by pressing CTRL + E in Adobe Flash (so no html yet). No changes to the code or anything, just play once, close the Flash player, immediately play again, close, and so on. The first few times, the audio loads and plays with no problems. After a few runs, I've noticed that the audio no longer plays.
I put in trace statements to see the state of the player content, and while when it runs correctly, I'll get the usual "playing", "connectionError", etc., on the times when audio does not play at all, the state is "undefined," like the player content was not created.Again, to clarify, this happens with no change in code or file locations. And the problem is always apparent as soon as I run the swf, because on the first page the state is "undefined" if the audio doesn't play (so in other words, it's not like one particular page breaks it partway through). From what I see there is also no persistent data that should carry over from one execution to the next.
I 'm working in a flash website and I used a background music that runs while the flash file is playing, I used action script codes to run this music. Also, I used some simple sounds that plays when the user move his mouse over a button or some items, but I imported these sounds to its frames directly and I didn't use action script to run it.The problem is that I want to make a "MUTE" button to stop all sounds, but the background music only stopped because it was runned through Action Script, other buttons will produce the same sounds when moving the mouse over them Does anybody have an action script code to mute all sounds even if they were imported to frames directly??
There seem to be lots of examples out there of slideshows that the user has to click through to view each image. I basically need a slide show that crossfades from image to image after a few second interval, without thumbnails or clicking next buttons very straight forward no frills.
I am trying to do something I thought would be very simple. It has turned into a much more difficult exercise. I simply want to use this flash movie at Code:[URL] as an index page of site. When the movie has ran, I want to pause for 3 or 4 seconds and then go to the next page of web site (in other words, go to a specific URL).
I'm attempting to make a code which disables two tweening buttons while a timer runs. The timer starts when you click one of the buttons, and stops after two seconds. For some reason though, it isn't working, and I can't figure out why.
I have a button named 'red_btn' which is placed on different keyframes at different positions on the stage. but the function of all the instances is same, on mouse over should move timeline to nextframe. [code]...
This is a (ir)regular confusion - sometimes i can't figure out why a html/swf with an embedded .flv will run locally but not over the web. The settings and other conditions seem similar to those i've dealt with in the past (and rectified), but i can't nail these down this time.All files on server have correct permissions in place and all file names/dependencies are lowercase.