ActionScript 3.0 :: Listeners Not Working When Published?
Jun 30, 2009
I have a project that when tested in Flash works perfect. But if I just run the .swf from my machine, or publish to an .exe various listeners do not seem to be working - specifically the MouseEvent.CLICK listeners - my rollovers work fine, using TweenLite, but I can't click some buttons... some buttons I can. I've not seen this before and it's quite frustrating at the moment.
I have a preloader bar which I get no errors on but when i publish on the web it does not work and it does not appear to work when I use the "simulate download feature" of flash cs4. Code: stop(); addEventListener(Event.ENTER_FRAME, preload) function preload(e:Event):void { [Code] .....
I am loading external swf files into a single container( Instance: contents). when I test the movie inside flash it works fine but when I use the generated swf outside flash one of the swf files don't unload the way it is supposed to and therefor the other swfs can't load either. The swf file that dose not unload, contains videos using xml with a list component. Actually I used the tutorial from this website (Flash Video Basics). Here is the code I am using. It is probably kind of crude but I don't understand why it works only when I test the movie.
I have a rotating banner that is suppose to start on a certain point in the timeline randomly when the movie is loaded. It works fine when the test the movie in flash but not once it's published and opened in firefox. I have the script in the first frame, and after that the movie starts it never plays frame 1 again. It's an actionscript 2 file working in CS3.the code looks like this:
var array:Array=new Array(2,60,120); var dummy:Number; dummy=Math.floor(Math.random()*array.length)
Below is a link to an example web service that I'm hoping you guys can tell me what I'm doing wrong. I have this dictionary app that works great when I'm in flash and preview it, but when I publish it and view it on the web, it simply doesn't work. I'm not sure what I'm missing. The link below has links to the project in CS5 and CS4.
I have made an animation, when i veiwed it as a preveiw in flash CS4 it works fine.So I published it as both a HTML fie and SWF.The HTML file runs perfectly fine, but the SWF file is missing almost all of the illustrations and the play button at the begining, the sounds all work fine however.
I have 3 mc's that I have placed a tween on that fades them from 0% - 100% Alpha (simple fade-in effect). The animations are fine if I test the movie within Flash. However, after publishing, I lose all those tweens in my swf, and all I see are abrupt changes from 0% - 100% alpha. What could I be doing wrong?
I have a problem with the following code:[code]The problem is that the code is working when I test the scene (ctr+alt+enter in flash), but after I publish it it doesn't work... not sending any request nor redirect.What I want to do is to log in a file on the server what the users typed (related with Related with: Flash actionscript - save a text file on server).
everyone out there that is smarter than me. I have made this little prototype video player, and it isn't working. It'll eventually become a nice little player show videos from our summer camp for the last few years, but first I want to make it work in a basic stripped down version. There is a playback component with one of the skins right above the three buttons.
Here's the ActionScript: btn1.addEventListener(MouseEvent.CLICK, vid1);btn2.addEventListener(MouseEvent.CLICK, vid2);btn3.addEventListener(MouseEvent.CLICK, vid3);
function vid1(e:Event):void{vidPlayer.source = "Video1.flv"};function vid2(e:Event):void{vidPlayer.source = "Video2.flv"}; function vid3(e:Event):void{vidPlayer.source = "Video3.flv"};
It runs fine when I test in in flash and even the .swf file runs fine alone, but when I put it in a .html file via Dreamweaver and in the published .html it doesn't run. What up?
I have a class called OfficeGame, which is working fine, except in that class I instantiate a class called OfficeSchmuck which is the character of my game. The problem being that the character is not responding to my event listeners which tell him to move. Here are the two classes:OfficeGame.as
I have been programming using flex 4 on adobe flesh builder 4 in order to create a website. The site require a connection to java and hence I decided on using blazeDS, in order to do so I updated the flex project's properties and set the flex server from "noneother" to "j2ee" as is required for the use of blazeDs. Ever since this change the site no longer runs as it should, as all the images are not being displayed and all action listeners are no longer working.(The problem is due to the flex server as when I changed it back to none the site worked fine)I need the j2ee server, and cant go by without it.
I have two components in my movie,how to write out the code for the listeners.Is it possible to write one listener that listens for changes in both components or do I have to write a separate listener for each? How would this look like written out?
The problem is I get Error: Error #2094: Event dispatch recursion overflow. Why does removechild keep getting called if this.parent does not exist? Why doesn't removing event listeners work?
*Can two CS4's produce different published .swf from the same fileset?I have a flash suite written by a young man in China.When I test the .swf file in the suite it works fine.However I need to make some minor redesigns so I need to change the .fla file - but before I do I found that when I publish a new .swf from the .fla file (with all the necessary action scripts/xml etc in the right place) it doesn't produce the same outcome. Instead the navigation (next page, items per page etc) is missing.
When he does the same thing (I trust his integrity) he gets the new .swf with the navigation in tact.You can see the two outcomes at the web address below (mock data).There are no code changes, no library changes that I can find.So I thought maybe there is something about different settings or 'environments' that can affect the outcome?
I have a kind of unusual problem... Im building a prototype for a UI wich you can navigate around in. And we use a mockup-prototype-model with a numeric keyboard built in and connected trough USB to fetch keypresses and use that as a joystick to navigate around and get a feeling how it would feel like to navigate around using a joystick in your hands. The problem is that it sends kind of unusual keypresses from the joystick. Everything works fine when I test the movie in Flash CS5 on a mac (cmd + enter). But not on a PC or in all of the published modes (.exe, .swf or .app). The codes I use in my if statements to navigate that doesnt work is:
I can't get my "dock" to center horizontally when i publish the movie for full browser flash(100%/no scale).It works fine when you test the movie. I don't get it. heres the code
I'm working on a project where I want to use a transparent png, and when authoring in Flash CS3 (using actionscript 2.0) the png image appears transparent just as it should. However when I test it the .swf file loses the transparency entirely. The png image was saved for web from photoshop as png-24.
I'm working on a project in Flash Builder 4 and I've run into an odd situation. The changes I make to the code do not seem to be published in the swf that pops up when I build and run. I can actually delete the entire main class and (even though I get lots of compile errors), the swf will still run just fine. This is actually a project I imported after it had been setup by a previous developer. We may be using different versions of Flash/Flex Builder.
For my class' final project, I created a little eBay search tool platform. It
1) performs a search (and the link generates affiliate coding so commissions would result if an eBay affiliate used this application on their website),
2) it shows a few eBay-related news feeds, and
3) it shows some beginner's videos showing how to buy on eBay.
Playing the swf as a movie on the desktop, within Flash, works fine.However, since I've published the swf into a webpage, the search function and one of the RSS feeds do not work. My application is at: [URL]I've read about crossdomain policy issues, but I'm stumped about that. Using FireBug, I see an error message:"NetworkError: 404 Not Found - [URL]This is the domain where I'm calling the RSS feed. Because this domain does NOT have a crossdomain.xml policy in place, does that mean that no matter what I do, I'll never be able to draw from it? I've set up a crossdomain.xml file in my website's root and it consists solely of:
This works when I cut and paste a sample URL into the browser, say, when I substitute a search term minAmt and maxAmt into that gobbledegook. The search never returns anything when this app lives on a published html page...
Using FLash CS5 and everything looks jagged when I view hte published version of my movie.Back in Flash 4 there was no jagged edges so what have I missed?Here's an image to show you what I mean.See the Black outline of the movieclip is flipping out. It's a normal vector based movieclip, no image or nothing.
I am creating a simple flash animation in Flash CS5 of a hip hop group, where when you mouseover their picture, their name pops up over their head.
I made each image a button and created the frames for up, over, down, and just a black rectangle for the hit area.
The problem I have is that in Flash when I have simple buttons enabled, it works fine and flawlessly, but when I publish it the hit area is sketchy and doesn't always react when moused over.
I just published a short movie from Flash CS4 and placed the entire set of files at this URL[URL] and when my web designer or me for that matter double clicks on the HTML file the movie doesn't play. We get a black screen and at the bottom of the frame in the progress bar there's a little green & white zebra like moving line. I'm pretty sure this is how I've delivered movies from CS3. I'm obviously missing something obvious here, but I haven't a clue. If I double click on the HTML file on my machine that has Flash installed it works great. The .FLV file plays correctly in media player also.
I am testing Flash CS4 at the moment, but something is wrong with it. What I did hundreds of times in CS3, here it just doesn't work.I used Adobe Media Encoder to make F4V from AVI. Then I imported that file to flash (load external video with playback component). Then I previewed it (ctrl+enter) and everything was fine, but once I saved (or published) it, the movie didn't play anymore. There was just background and no movie nor playback component.I tried encoding that file to FLV, even for older flash versions (I have the newest one installed), but that didn't help.
I have a project that consists of 11 invisible buttons laid over a map of a building; when the user mouses over a "room," the name of the room appears. The building map is on an angle so I rotated and skewed the button text to match the map. All the text looks fine within each button symbol, but when published 4 or 5 of them lose their skew...the rotation seems to still be intact.
The Flash file that I've attached plays very slow on my other, older computers. It plays fine on mine, but these older computers play other flash files (i.e adobe.com) fine. I want to know if I'm missing something here as to how making this play efficiently. I understand that I am using photographs - rasterized images - but, is it really supposed to take that much power to play it?
I have just switched to CS4. When I updated some text in a movie on the site (originally built in an older version of Flash from back in the Macromedia days) things went fine until I published the document. The movie file looks fine but random characters have disappeared and some portions that were Italics have become regular. Everything stays good in the movie file, but the published one loses characters. I tried publishing for flash 5 but that made no difference. What should I be trying?
I'm including a video with it's controls into a frame in flash.When I try it and publish it as SWF the control bar of the video shows but when I publish it as a .app for mac or a .exe for windows and run itthe video shows but not the controls
I'm using the FLVPlayBack component to show the video
My main project loads an external .swf ("room") depending on which button the user clicks. Once that external .swf ("room") is loaded, the viewer chooses a ("demo") .swf to view. For each button click, a loader is to appear showing the viewer that the desired room or demo is loading. All of this works fine for the web...please click the link below to view. The problem exists when I try to publish as an .EXE. We'd like to send these out to prospects on CD and thus I need an .EXE to autorun when insterted in a PC. I've publised the main .SWF (overhead map) as an .EXE and burned a cd containing all necessary files. Now when the user clicks a room and then a demo, the loader that shows up fine on the web does not appear.