ActionScript 3.0 :: AIR Strange Lag On Buttons?
Jul 7, 2010I'm working on a large AIR-app. When I run the project from Flash CS4, everything works fine. But when I run the installed app, some buttons will react very slow.
View 7 RepliesI'm working on a large AIR-app. When I run the project from Flash CS4, everything works fine. But when I run the installed app, some buttons will react very slow.
View 7 RepliesI can't figure out why there is a display problem around the "Green Printing" button. Each of the button is created the same way, using the same graphics. Only this one displays incorrectly when the swf is produced.
[URL]
I have quadruple checked position and all the buttons are correct. No overlap. If you right click and zoom in on the button in question, it looks perfect. only at 100% is the display problem visible and only on that button/area of the flash swf.
When I'm working on the .fla I don't see anything unexpected, but when I view the .swf or export it there's a little red square in the animation. It moves with some of the stuff I have moving in the animation like they're attached somehow, but I can't find it in the fla to get rid of it.
View 1 Repliesi've created a movieclip that i'm applying a simple blur filter to and in Flash when i play the timeline it runs with no problems although when i publish the movie the blur doesn't display - i've run out of ideas about why this could be! I've looked online and can't find any suggestions either - does anyone know what i'm doing wrong?
View 1 Repliesi really like this effect and i was wondering if anybody could point me to a tutorial that does something similar to this: i deleted the link because the site is not working anymore
View 2 RepliesYou click on tv, then on the first thumbnail and the video starts playing.When you resize the browser window the video stays centered.Thats exactly how I want it to
You can see the same example as before, but this time there are playbackcontrols which would be perfect if it wasnt for the fact that if you now resize thbrowser window, the video jumps almost its own width to the left.
I have a website. You can see that website both by typing in(not REALLY my website...I'm just using examples here)This website has a flash intro that at the very end enables the user to either choose to go to the html version of my site or the flash version, each option represented by a button.The strange thing is that if I'm on theURL of my site, everything works ok there. However, if I'm on the version with the "www" added into the URL, those buttons don't work. You still get the little "finger" indicator, but when you press, nothing happens.
View 4 RepliesI created a movie clip that i want to act as a button. Inside that movie clip i place 2 graphic symbols (in different layers) that each have a tween of 30 frames. In a different layer i put a stop(); at frames 1 and 30. Then i create a fourth layer writing the following code for all 30 frames:
Code:
var rewind:Timer = new Timer(10);
var rootButton:MovieClip = MovieClip(parent);
rootButton.RR_mc.buttonMode = true;
rewind.addEventListener(TimerEvent.TIMER, rewindHandler);
[Code]...
1. On mouse over the movie clip (RR_mc) start playing normaly untill frame 30 where stops.
2. On mouse out the movie clip starts rewind going frames backwards. Now if i put my mouse over the movie clip, before rewind reach frame 1 the rewind stops and the movie start playing again. 2b. If the movie clip reach frame 1 after rewind, then is not stopping and continues to give frame 1 (if you put a trace(this.currentFrame(); you get infinite 1s). On mouse over the movie clip afterwards i can see that trying to start play but it's progress is max 2-3 frames before the rewind routine pull it back at frame 1.
3. If i transfer the timer and it's function to the parent directory then everything work fine.
I want to write all the code for the button inside the child directory of that button, is it possible?
I've made [at least I'm trying to] a class that will make able to communicate flash with PHP [and MySQL].I've done this once before on the main time line and it worked perfect. This one is working as well but I get strange variables from PHP in Flash. Here are the codes:
[Code]...
I am beginner in FLEX programming , I am trying to implement a very simple LOGIN system using PHP, FLEX, MySQL.
protected function button2_clickHandler(event:MouseEvent):void
{
var create_new_user:Users= new Users();[code]..........
I have added the "alert.show" to check the sequence , it was really strange to find out the it is executing "6,5,4,3,2,1"..?? Which mean user is created before checking the verification result?
I need to check (for my own good reasons) whether the cursor is located within the bounds of a particular object. I'm using a simple code to do this...
if(mouseX > hsSlot1.x && mouseX < (hsSlot1.x + hsSlot1.width) && mouseY > hsSlot1.y && mouseY < (hsSlot1.y + hsSlot1.height))
{
//My code
}
This, theoretically, should work perfectly! However, there is an offset (and one I did NOT set, mind you!) of about 16 between the hsSlot1's visual position (where it appears to start on the screen) and hsSlot1.x. There is a similar offset on the y axis, but I haven't measured it yet.The only thing I can think of for this is that hsSlot1 is an instance of a button (one with only one state at that) that was scaled to fit. However, I don't think that is it, because the numbers show that the entire object is merely offset at its current size.
Im trying to put a video in my website and im getting a strange result. on my computer everything is working fine BUT when im trying to run it over the internet its showing me only the skin of the video player but not loading the video. The strange part is when im loading the file stright from the ftp server, its working fine...
View 2 RepliesI made a spiral in pv3d using a mc for material and added a listener for the mouse events.Now the problem is that when i rollover my mc the rollover tween start and directly start the roll out tween.The clickhandler is rendered useless.So before adding tweenlite to the class everything works fine?
View 2 RepliesCode:
base_scale = 70;
my_scale = 1;
scale_mod = 30;
[Code]....
EDIT: In fact, it is working now (behavior changed with updated TweenMax...?!), BUT still, when I zoom with mouseclick, everything goes well. When I zoom with a keypress, the image is resizing... but if the image is not centered, the registration point (set to center of the image) - the image is moving - for no reason...
Different results with the SAME function, no parameters etc.
I'm having some problems with importing images. (RGB jpegs)
When I import them, the colours, brightness and contract look totaly different.
I haven't got a clue what could cause this. And I really need to have the colours right.
I have found a strange inconsistancy between the textfield created in the Flash IDE and the textField created within Actionscript. Test 1: Create a textfield on the stage within the flash IDE, select the "render as html" check box, Embed the font, then in ctionscript set the textfield to condenseWhite and load in some external html file with line breaks <br> or <br /> into the htmlText. The result is as expected, the text is formatted with html, the white spaces are removed, and the <br> tags display line breaks.
Test2: Create a textfield on using Actionscript and Embed the font, condenseWhite and set the htmlText to load in some external html file with line breaks <br> or <br />. The result is not as expected, the text is formatted with html, the white spaces are removed, and yet so are all the <br> line breaks!
Test3: The exact same as above in Test2 except this time the external file loads into .text not .htmlText. This also means the condenseWhite is ignored as according to the docs, "The condenseWhite property affects only text that was set by using the htmlTexttext property. If you set text by using the text property, the condenseWhite property is ignored. " The result is as expected, the text is not formatted with html and the html tags are visible within the text.
[Code]...
I created a button that once clicked an input box will pop-up. The input box can receive some numbers and then you can close it either by pressing ENTER or by clicking on the button that i used to open it.When i press ENTER it closes fine and then i use the button to reopen it.When i CLICK on the button it closes fine and then i use the same button to reopen it.But after i have closed it by CLICK on the button and then i try a second time to close it by pressing ENTER i get the following error:[code]
View 4 RepliesI am loading multiple images and interesting bug appears. After loading them their colors changed.
As you can see on the images they are red, but should be brown. I have no idea why this happens with this images. There shouldn't be any problems while loading something.
I've created a movie clip and exported if for AS, naming the class "Char." The movie clip has a couple of frame labels with a couple of pictures in it on each label. As the SWF opens, it gets dynamically added to the stage like so: var charMC:MovieClip = new Char();addChild(charMC);charMC.x = 164;charMC.y = 624; This works fine with no errors. However, further down I have a function that is going to call this clip and move it to a different frame. Like so:
[Code].....
I create a few squared sprites and then remove the first one and display the coords.[code] The x coordinate is still 0, though width has changed,getBounds shows correct values.I would expect x to change as well.Because of the wrong value of x, globalToLocal and localToGlobal work incorrectly.If you click somewhere on the left side of the second (still visible) rectangle you get: 2 28 (x=2, y=28)which is good for nothing. The values in brackets should be in stage coords and they are not.[code]
View 1 RepliesI'm not sure exactly where this is happening, but what I'm trying to do is make a scrolling ticker using flex, and it works fine when there is one of them on the screen, but when there are two, strange things happen.The way I have designed this for live updating, when the child of my hbox goes off the screen, I remove it and add another child to the end of it.This happens to reset the X position of the hbox, which isn't too bad, but it also resets the X position of any other hbox I have on the screen.Here is code that demonstrates what I'm seeing:
To use this, run the flex program, then click in the first hbox to set its x position to your mouseX. When the x position of the second hbox (hbox3) is reset, so will the first hbox's (hbox2) X position.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application creationComplete="addToBoxes()" xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" >
<mx:Script>[code]..............
How can I prevent this from happening, or what is a better way to make an updating ticker like I am trying to do?
I have the following xml declaration:
public var reqData:XML = <root>
<Requirement ID="REQ-GEN-0.1" title="exigence gen 1" description="blabla 01" testable="true"/>
[code]....
I'm using BulkLoader for loading a background image and an image. When the preload start it makes strange movement instead of going straight to the end. If you don't understand you can see it live here: [URL] This is very annoying because i don't know what is the problem unless it's a library (bulkloader) problem (i hope no
[Code]...
I'm a .net developer making a small website on Flash. I noticed that when I initialize a static variable during runtime in one place I cannot get its new value at another place, why?
View 2 RepliesI tried to write a function that inserts values into a Vector. After writing my first function, I started to notice some strange results. Sometimes, the Vector appeared to lose values for no reason. My original code looked like this:
[Code]...
Are the images showing up out of center? I'm having intermitent problems with the images not coming in the right place. Then if you click on one for a second time it may show up in the right place???Below is the code used to load the images... it was from a tutorial... I don't see
Code:
spacing = 10;
containerMC._alpha = 0;
[code].....
I don't know if it's with flash8 but my actionscript editor is exhibiting some strange lag when I type. This only seems to happen when I'm typing in AS on a frame. Not when I'm typing AS in an *.as file.
View 1 RepliesI have a main movie where everything is in the first frame. In that frame external swfs load both into MCs and levels, plus some tweened MCs. All this works perfect without putting in a preloader. I want to have a preloader to this movie but have some minor problems with using one. I put the preloader in the first frame and move the main movie to frame 2 with a stop. The preloader works in that way that when total bytes are loaded it jumps to frame 2. The problem: When the preloader is done the main movie opens but some swfs that are loaded into levels and MCs get strange coordinates. But if I put the main movie in frame 5 and keep 2-4 empty then it works.
View 1 RepliesI'm sure this is a really basic problem and hope someone can steer me in the right direction.I have moving objects on stage all with a width of exactly 100 pixels. They're part of a collision array. I need to know their radii so I created a variable that looks like this:radius = objectName.width/2;You would think that this would result in 50. However, when I do a trace of their values in an enterFrame loop, I get a range of numbers that looks like this when the objects are standing still:
Code:
51.325
52.075
[code]....
I have created this contact form and it works when i hit the submit button but for some reason when I load the page for the first time I get some junk that appears into the box.
Is there anyway to have it not show anything in the box? In edit mode I dont have anything in the text boxes, but when the the flash loads it puts that junk in there.