ActionScript 3.0 :: Checking CSV To Display Correct Advert - Projector Crashing
Nov 9, 2011
This is my code currently it checks a csv document to display correct advert. Projector keeps on crashing
ActionScript Code:
//import controls
import flash.events.Event;
import fl.containers.UILoader;
import flash.net.URLLoader;
import flash.net.URLRequest;
[Code] .....
Need to refine code, I thought maybe using a Loader instead of the UILoader so that I could use the unloadAndStop command to release memory leaks.
View 6 Replies
Similar Posts:
Aug 12, 2009
I'm just wondering if this is the "right" way to do the error catching. I have a program that creates a random number of squares (up to 25), but no more, and usually less (like I said, random number). Due to the fact that there's a random number of them, I create an array ahead of time. Only some of the squares in the array get used, and the others sit there and aren't added to the stage. Anyways, at the end of the box creation, the program goes back through and deletes all of the boxes in a loop:
Code:
for(var i:uint = 0; i < boxArray.length; i++){
try{
removeChild(boxArray[i]);
}catch(e:Error){}}
It seems to work okay, but I just want to know if this is the correct way to check for errors. If I put a trace in the catch block, it catches the squares that aren't in the display list, obviously, because they aren't there to remove.
View 1 Replies
Jul 24, 2009
I'm working on a quiz where a user has to drag three movie clips to correct positions then press the 'next'button to move on (calls funtion nxt).I have nxt function to check to see if the three movie clips have been dragged onto the three correct positions (other movieclips),the code works but only if all three are correct.I want the function to check to see if all the clips have hit the right target,
if so, then add +1 to the 'score' and go to frame 'end'
if the clips aren't on the right target then just go to frame 'end'
At the moment the nxt function doesn't work if the answers are wrong.
function nxt(event:MouseEvent):void
{
if (asc1_mc.hitTestObject(blank1_mc))[code]...........
View 3 Replies
Feb 24, 2011
I am after finding out which drag and drops are correct, so I can score accordingly rather than just have a single score throughout. I need to know if the circle was dropped correctly or the square etc. I'd ideally like to have this interaction as a command on a button, but my AS3 is letting me down
var score:Number = 0;
var startX:Number;
var startY:Number;
[code]......
View 5 Replies
Jan 30, 2007
The thing I want is like I will have a input text field for someone to type his email address, but after he presses the send button I want it to check that input field and see if there is the "@" and the "." symbol available in the field or no.
View 11 Replies
Nov 17, 2003
My Stage size is 126*62. (it's a small animation).- When I publish the .SWF, no problem.- When I publish a projector .EXE file for windows, then, the width is still correct, but the height is higher than 62 : I got two small white bands beside top and bottom of my stage,see ?I don't understand why there's such a difference between publishing a SWF or EXE. And I'm afraid this also happens whatever the Stage size is (small or big, I mean) : you always get these blank bands on the top and the bottom, don't you ?
View 1 Replies
Nov 16, 2010
I really need your help on a project I'm doing for work. I have searched the posts but haven't been able to fix my issue. (I'm using Flash CS5 and AS3.)I've recently been given Flash + the job of creating flash presentations for flat-screen displays around the building. The movie only needs to be played on click every now and again so it isn't running 24/7 or anything.So far I've managed to create a simple vector-based movie (a couple of minutes long) and created a projector, which runs perfectly on my computer.I eventually need the exe. to run on the following computer/screen we've already bought for the job:At the moment the movie runs significantly slower on this pc, with the frame-rate struggling, especially with some movie clip zooms and alpha fades.Have you guys got any ideas what I can do to increase playback performance? Have I made any newbie mistakes? How would you maximise frame-rate performance fullscreen without losing too much quality. I've created the movie to the resolution of the screen (1366 x 768). Was this the right thing to do or should I create it smaller then blow it up?
The movie plays fine if I exit fullscreen and reduce the window to about half size. Being new to Flash, I'm afraid I don't really understand why this is the case? The processer is running high but isn't at max, and with 2GB memory I thought it would be able to cope.I've tried lowering the frame-rate from 24 to 20, turning off hardware acceleration on the projector, chopping the movie into smaller swf's to play arfter each other. Nothing seems to be making much difference with those zooms at fullscreen. I've also read that preloaders don't do much for projectors so I can't use that. Is it better to embed text with the swf or have it separate?I really would like to avoid this but, Is the only solution to re-do the movie with less zooms etc?As you can see I haven't got much scripting other than frame 1 and play movie clip commands (not shown), would creating the zooms in AS3 improve the performance? [code]
View 1 Replies
Feb 22, 2011
It goes like this, we need to detect if the display is a Projector (or if the system is connected to a Projetor).the catch is this should be done from within the browser.so is it possible to do so by using anFlashActiveX (this does constrains to a single browser, so not an option)searching so far only reaveals display resolution. expecting if there is something still out there.
View 2 Replies
May 17, 2010
I am trying to format my datagrid column to display the decimal value of the price of the item they have chosen to (2) decimal places. Currently the datagrid is displaying $10 instead of $10.00 & $10.4 for $10.40?
Code:
import mx.controls.*;
import fl.controls.dataGridClasses.*;
[code].....
View 8 Replies
Nov 14, 2004
I tried the digital clock tutorial on Kirupa, but it doesn't display the correct time, For example if my cpu clock says 3:00 PM, Saturday, November 13, 2004 the tutorial clock says 15:00 AM, Saturday, December 13, 2004.
View 1 Replies
Nov 2, 2009
I'm working on a website which has advert banners which link to external pages.I've recently added the ability to have flash banners, but am stuck on how to make the banners link without editing the flash file.
The idea is that clients wanting to advertise on the site send a flash advert which is then linked to their site through the CMS, however unless the client embeds the link into the flash file, or add a flashvar parameter which can then pull in the info from the database, the flash banner doesn't link as it's seems not to link being surrounded by an <a> tag.
This is probably a well known thing, but this is my first time doing flash adverts, so I'm coming to it from a completely novice position.Is this something than anyone creating a flash advert would know about and instinctively do or will it need to be instructed to the client before hand, or is there a way to get it to be a link through html?
View 1 Replies
Nov 14, 2004
I tried the digital clock tutorial on Kirupa, but it doesn't display the correct time, even the example on the tutorial page is wrong. For example if my cpu clock says 3:00 PM, Saturday, November 13, 2004 the tutorial clock says 15:00 AM, Saturday, December 13, 2004. Could someone show me how to fix this,
View 1 Replies
Aug 26, 2008
im trying to create an advert box that loads different files from urls contained in an external xml src. The code for the XML loading works well, but the rest of the code does not seem to work.
what im trying to archieve is:
1. get the list of urls from the XML file
2. trigger the loading of these files as soon as the xml file is loaded
3. loop among these files (5 in total), in a given period of time,
4. Each time they are loaded ,the loading bar should show the progress
here is my code
Code:
_root.start_load_advert = function() {
load_advert_int = setInterval(load_advert, 10000);
};
[Code].....
View 4 Replies
Apr 23, 2010
I'm trying to find out if there is a way of using clickTag and Google Analytics to track outgoing banner clicks. clickTag code:
on (release) {
if (clickTAG.substr(0,5) == "http:") {
getURL(clickTAG);
}
}
Maybe someone can tell me whether the following would work:
on (release) {
if (clickTAG.substr(0,5) == "http:") {
getURL("javascript:pageTracker._trackPageview('/somebannerad');");
getURL(clickTAG);
}
}
like a solution that worked with the standard clickTag code and didn't involve changing any code in the flash file.
View 1 Replies
Dec 30, 2009
I'm trying to get the depths of all the blocks to be at the correct levels at the correct times so that the 3d effect is maintained. I've tried many things, but have had little success. All the instances of the blocks are stored in an array, but since it's adding them in accordance with when they're added to the stage, it doesn't help me locate them to swap depths. Is there a way to arrange them by location on the board?
View 4 Replies
Dec 8, 2009
Is it possible to have a flash Projector control the timeline of another flash Projector.
example: Projector1: has a button to start/play Projector1 and trigger to start/play frame 7 in Projector2 at the same time.
So both external projectors are in sync.
View 0 Replies
May 4, 2010
So after I installed CS5 Design Premium, flash often crashes; luckily it doesn't crash the browser (which I guess is the feature on the browsers these days), so a refresh reloads flash and things usually work a couple times; then flash crashes again.
This a known issue? Or am I the only experiencing this? This happens on both my Macs (Mac Pro and MacBook Pro). I've already tried reinstalling and getting the latest updates. Those don't work (since there are no updates either).
View 3 Replies
Aug 12, 2010
I've created a flash exe presentation. I checked the CD before I sent it out, and it worked fine on the PC that I was testing it on. (it was created on a mac). Anywho... I sent it out and now some people are having issues with flash crashing, while other are having no trouble. I used a CD duplicated, so all the CDs should be the same. I'm thinking it may be a global setting, but I don't normally work on PC and don't know what it could be. Here is the error message they receive:
Error message: Adobe Flash Player 10.1 r52 has encountered a problem and needs to close.Then once I click the error report to read the reporting details it says: this error includes information regarding the condition of adobe flash player 10.1 r52 when the problem occurred; the operating system version and computer hardware in use; your digital product ID, which could be used to identify your license; and the internet protocol (IP) addresses of your computer.
View 1 Replies
Apr 23, 2008
I've been using Flash Video Encoder for quite a while now and never had a problem encoding flash from wmv. But in the last week suddenly encoding crashes on ever attempt. At first I thought it was a change in the format of the video that was being introduced, but then I tired videos that I know that I've converted previously. They crash too. I've also tried on 3 different computers, that have all had success in the past.
View 6 Replies
Nov 29, 2008
I was wondering if anyone else has been experiencing the same problem with flash that I have. For me Flash can't even stay open for 5 seconds without it completely crashing and having to restart.
View 7 Replies
Feb 13, 2010
When I copy and paste an illlustrator file into Flash, it keeps quitting on me. I can't seem to get past the first step. Is there some kind of bug fix i can download. I have a big project to start and I have to get this figured out soon!!
View 12 Replies
Feb 16, 2010
Flash CS4 keep crashing. Is there some kind of bug fix i can download.
View 1 Replies
Nov 3, 2010
I'm building this whack-a-turkey game and every time the countdown clock reaches 00:00, if I try to do anything other than stop the timers, it makes Flash crash.I've commented my code below where it crashes and you can also check ou the app here.[code].....
View 1 Replies
Nov 14, 2010
Flash is crashing when I try playing video in Safari, Firefox or Google Chrome.
Chrome says that I have two almost identical versions of flash installed.
I have downloaded the uninstaller - it completes and says it has uninstalled, but does absolutely nothing.
Installing new versions does nothing either, I have rebooted in between etc but nothing. I've even tried removing the browsers and reinstalling.
View 2 Replies
Feb 18, 2011
i have been using flash cs5 for like a week and almost everytime i try to save, make a movieclip, or test my file flash decides its going to crash so my work often is gone.. non existant after that. The error message that pops up is something about aflamingo.dll.
View 1 Replies
Sep 5, 2011
Since I purchased flash CS4 (upgrading from flash 8), I have gradually shifted from writing code in AS2 to AS3. Now all of my projects are in AS3 except 1, it's an old legacy project written in such a way that conversion would be almost impossible. Earlier today I started to work on it and then tried to compile it causing flash to crash. After about an hour I realised that whenever I compile an AS2 project flash crashed. After trying to download patches, restarting countless times and searching the internet for similar bugs, I uninstalled and reinstalled flash. But to no avail, the bug persisted. So I decided to create an acount and post about the bug I encountered on this form, hoping that somone might know about it.
View 3 Replies
Feb 6, 2012
Flash CS5.5 has suddenly started crashing all the time. It's ridiculous.It's always about 2 seconds after:- Minimizing/Bringing forward another window.- Testing a movie- Opening/closing another fla in CS5.5This is with any fla file. It's incredibly frustrating.The window just tints white and I get a "____________ has stopped working", and my only choice is to close program.I am using Windows 7. am really shocked at how progressively unreliable EVERY Flash Pro has been since CS3, despite being an industry standard.It's been incredibly useful to me since I first started using it in 2004 (MX 2004 that is). However, considering all my other development software, it is clear that it is by far the most unreliable.It is unacceptable.
View 14 Replies
Jan 19, 2012
I'm working on a quite simple native extension for Adobe Air powered iOS app.I'm playing with CLLocationManager class and i ran into really strange problem.When i'm trying to initialize CLRegion object app crashes.
CLLocationCoordinate2D coords = CLLocationCoordinate2DMake(0.0, 0.0);
CLRegion *region = [[CLRegion alloc] initCircularRegionWithCenter:coords radius:100.0 identifier:@"Region1"];`
[code].....
View 1 Replies
Nov 3, 2009
I am a flash games developer, and I am currently working on a game that is truly massive.The main file size is over 250MB.It's been a work in progress for about 4 months of solid work.Due to the size of the file, I prefer to create things like characters and objects in another file. I then need to import it over, replacing old movieclips.
When copying and pasting now, it always crashes, or tells me that its run out of virtual memory.It appears to be impossible to get it all over, even bit by bit.I've saved and compacted, I've saved as, I've moved it onto another disk drive.All of the above seemed to help temporarily, but I'm now at a stage where nothing is working.I don't think the file is corrupted in anyway. I've had no problems with any other component of flash. Just the copying.I just don't understand what's so intensive about moving over an object of about 10-20 mb.My computer is quite high performance, 5.6ghz, 4gb of ram.
I've asked for help on so many forums now, and all i get is criticism at my file size. Well it can't be helped. It's a massive game.I've tried using a runtime shared library, but unfortunately it doesn't allow attachmovie to get it from the library. It seems the identifier is only being used to connect the 2 libraries when you set up a runtime shared library.attachmovie is very important to the code and it can't be done any other way.
View 9 Replies
Feb 23, 2010
I'm trying to remotely debug a problem with another's teams game at work. They have a game, where if you play it through IE, eventually it will crash with the error "This application has requested the Runtime to terminate it in an unusual way".
Typically, being IE, there's no more info to give an idea of what's causing the crash. I did some searches on the web and found a number of things such as memory leaks (going above 1Gb will crash IE). I've forwarded the info, and the team removed their leaks, but it's still crashing.
View 1 Replies