ActionScript 3.0 :: SWF Behaviour Changes For No Apparent Reason

Sep 30, 2010

I have several two-sided ecards made with Papervision and TweenLite to flip them over.A couple of days ago the "flip" animation changed behaviour. This is in ecards I made several months ago. The ecards work OK but the PPV object is not positioned correctly.On the server, in IE the object is displaced to right and down by about 20 px. In FF it is displaced to up and left by about 10 px.In Chrome and Safari the display is OK.(Just to confuse you further, the display in FF is OK on my localhost).This effect seems to be local to my PC.

I have scanned for malware etc twice but nothing. I have the latest Flash player and browsers.

View 1 Replies


Similar Posts:


ActionScript 1/2 :: F8as2 - Headscratcher!  += Incrementation Stops For No Apparent Reason?

Jul 8, 2009

In trying to respond to a question I wrote a bit of code that just adds 0.01 to a number.  It is displayed in a dynamic text field.  If I start counting from 0 it only counts to 0.06.  The counting stops but the onEnterFrame keeps running.
 
The Code:
 
var num:Number = 0;this.onEnterFrame = function() {      num += .01;      trace(num);      num = Math.floor(num*100)/100;      trace("           "+num);};
 
The Output:
 
0.01
0.01
0.02
0.02

[code].....
 
Why did the code stop incrementing after 0.07?

View 3 Replies

Actionscript 3 :: Bug Apparent In Browser But Not In Flash CS5?

Jan 27, 2011

I have a custom "StagedSprite" class that extends Sprite. Its purpose is to automatically align itself to the stage's border whenever the stage gets resized.NOW, I load a PNG file "ybmp" (Bitmap) and add it as child to "loadingIcon" (StagedSprite). In Flash CS5, the PNG is shown correctly on screen (aligned too). But if I publish and run the SWF from within Firefox or IE, the PNG IS NOT SHOWN!

What is even MORE strange is what the following code produces :

//var ybmp:Bitmap = the loaded bitmap
//loadingIcon is a StagedSprite
loadingIcon.addChild(ybmp);
trace(ybmp.bitmapData.width,ybmp.bitmapData.height);
trace(ybmp.width,ybmp.height);
trace(loadingIcon.width,loadingIcon.height,loadingIcon.getChildAt(0),loadingIcon.stage);

I put the "trace" results in a TextField on screen. In CS5, the code above produces :

215 200
215 200
215 200 [object Bitmap] [object Stage]

In Firefox and IE, the code above produces :

215 200
215 200
0 0 [object Bitmap] [object Stage]

What on earth is that?!? In the browsers, the Bitmap IS added in "loadingIcon" but "loadingIcon" still has its width and height set to zero. ?I could paste the StagedSprite code here too, but it's a little big and has no scrollRect property. After all, what could be the reason for it running in the Flash authoring tool but NOT in the browsers..?

View 1 Replies

ActionScript 3.0 :: Use Apparent To Optimize SWF Files?

Oct 16, 2011

I'm just installing Apparat, and I'm interested in using it to optimize my SWFs.

On its google code page some optimizations are listed out .. sliding window, flowgraph ... so is it possible to make use of these optimizations? how?

I have heard of the -reducer command, does it perform the optimizations? are there other commands you can use? or do you have to build apparat yourself and access it via scala?

View 0 Replies

ActionScript 2.0 :: Attaching Movie Clips With Apparent Delay

Jul 20, 2005

I've been trying to figger this one out. How do you create a delay effect when dynamically attaching mc's to another mc, the stage, whatever.

say you're building an xml driven menu which is essentially a stack of mc's attached to another. how do you make them appear to fade in one by one, starting at the top and working toward the bottom? (i can create the effect, just not sure how to script it).

it's gotta be fairly straightforward since i see it lots of places. I tried creating it with frames but that doesn't work since the mc's get attached so quickly.

View 7 Replies

Xml :: Xml - Different FireFox Flash Behaviour?

Jun 23, 2011

I have a flash component written in flex which reads a xml file and shows up its data. This works fine in IE and Chrome, but not in Firefox.When i used fiddler to check for the problem, it started working fine.And now i have come to the conclusion that when fillder is running in the background and i access the flash component it works fine (reads all the xml data and shows it up), but when i close fiddler and do the same....i get the following error, "Error reading {myfilename} file."

View 2 Replies

DataGrid Data And Behaviour Modification?

Sep 10, 2009

stop();
import fl.events.DataGridEvent;
function endEditHandler(evtObj){ trace(DataGrid_Main.getItemAt(evtObj.rowIndex)

[code].....

View 7 Replies

Arrow Up / Down Default Behaviour In A TextField

Jun 19, 2009

I am making a input field for keywords, and while the users writing I'm displaying suggestions for keyword on a list underneath the caret position.The input field is single line, so I am using the arrow up/down key to select a suggestion and Enter to insert it.And it's mostly working, with the big exception that the up/down key also changes the caret position to the begining/ending of the TextField.

I've tried using preventDefault() and stopImmediatePropagation() in the KeyboardEvent.KEY_DOWN event listener that I also use to change the selected suggestion, but that does not change anything.I checked the carret has not yet moved when KeyboardEvent.KEY_DOWN event is fired, bu visually I can see that it is being move before key is released (key up).

View 4 Replies

Flex - Security Behaviour In Adobe Air?

Apr 15, 2010

I am trying to load external SWFs in my Adobe AIR App. The loaded SWF is trying to access an URL to retrieve some informations via XML. When starting the SWF by itself it works fine. When loading the SWF from the File.applicationStorageDirectory i will get an Security-Error because the loaded App is executed in a local-with-filesystem Sandbox appareantly. First Question: Is there a way to change this? That the loaded SWF is running in a network Sandbox?

Since that first attempt didn't worked i've moved the SWF to the app:// directory.Now i'll get a Security-Error because there is no policy file on the Server available where the XML data should be retrieved. Second Question: Why is the policy file not necessary when running the SWF by itself, but is necessary when trying to load the data from the application Sandbox? What am i doing wrong?

View 1 Replies

Flex :: Alternative Behaviour Of && Operator

Mar 9, 2011

I've faced such situation. I've used to program in C#, and such code:

[Code]...

was asking both, condition1 and condition2 to be true (the case when they both are giving false and the end-result is true, could be achieved in other way). In Flex, same code would perform "some actions" if the both conditions are false. I just was wondering if is there any chance to make it break after finding first false in a queue, or I have no choice and should write nested if's?

View 2 Replies

ActionScript 3.0 :: The Reason For The Different Behavior Of The Object

Aug 1, 2011

I should like to understand the cause different behaviour of the metod "drawPath" in this situations:
 
[code]...
 
If move comments on other metod ".drawPath(" two color will available.

View 3 Replies

Professional :: Flash Closes For No Reason

Feb 28, 2012

For some reason my flash program closes on me. The strange thing is, it is only 2 MB. I have a good amount of shapehits in it as well. Would that cause it to crash?

View 1 Replies

ActionScript 3.0 :: Function Getting Called Twice For Some Reason?

Jul 10, 2009

I've got a function 'fullReset' which resets the stage and places several movieclips (which are balls) back to a starting area. Within this function is a call to the 'unlockBallfunction within the Ball class (see bottom of code below).

ActionScript Code:
private function fullReset(event:Event):void
trace("RESET BUTTON HIT");

[code].....

View 1 Replies

ActionScript 2.0 :: Array Is Splicing For No Reason?

Sep 15, 2006

Code:
var remoteListArray:Array = new Array();
var listArray:Array = new Array('a0','b1','c2','d3','e4')

[code].....

View 2 Replies

ActionScript 2.0 :: MovieClip Gets Deleted For No Reason?

May 4, 2008

I'll cut to the chase, here's my code:

Code:
function loadThumbs(){
for (var i = 1; i <= totalImages; i++){

[code].....

View 3 Replies

ActionScript 3.0 :: Error For Absolutely No Reason

Jul 23, 2009

TypeError: Error #1010: A term is undefined and has no properties.

I get the above error when I run the below code:

[Code]...

View 1 Replies

ActionScript 3.0 :: Cant Retrieve Data For Some Reason?

Mar 7, 2012

I call the constructor from a fla file but i cant get a hold of the GamaDataArray via the getGameData() Function it keeps saying that the GameDataArray is Empty, but if i trace within the class it works, when i go to the fla file it says its empty. Can somebody please tell me what i am missing, i know its something super small

[Code]...

View 4 Replies

Professional :: Adjust The Seek Behaviour Of An FLV In Playback?

Feb 2, 2010

How does one adjust the seek behaviour of an FLV in playback? youtube videos work the way I expect them to: As you click and drag the seek bar it shows you the current frame. Any of the players I have experimented with don't do this. What they do is show you a still frame and update the video window only after you release the seek bar.

View 5 Replies

Professional :: Undefined Display Behaviour With AS Animation

Mar 18, 2010

I'm currently dealing with a very annoying problem, for which I can't find any solution, because - as I think - it does not result from a AS coding mistake but more or less has to do with the rendering of the swf.I am generating a seamless tileable stripe out of a few symbols. Then I am creating an endless animation that scrolls that stripe up. The scrolling is implemented as follows: I'm creating a second BitmapData of 500pxl height, that with every frame scrolls all its pixels 10 pixels downwards and then copies the 10 "missing" pixels at the top from the appropriate position of the prepared seamless tileable stripe.

During the animation there seems to be (at least on less performant systems) some kind of flickering (stripes tthat look like the animation wouldn't use a seamless tileable stripe - ALTHOUGH IT DEFINITLY DOES!!!)...The only guess I have - that it could result from a unsynchronized rendering of the swf..To the right you see a section of the prepared seamless tileable stripe from which these 10 pxl sections are copied.

View 2 Replies

Professional :: Can't Find Rewind Behaviour In Tutorial?

Oct 27, 2010

working through the tutorial to familiarise myself with basic terms and concepts. I have been working through the behaviours section, assigning behaviours to the video buttons in the example. I've done the play and pause, but when I try to assign a behaviour to the rewind button, there is no rewind behaviour listed in the embedded video section of the add behaviours function. I am using education version 7.2.

View 1 Replies

ActionScript 3.0 :: Erractic Behaviour In Button Movieclip?

Mar 13, 2012

I'm working on my first button and, instead of making simple symbol buttons, I chose to make some complex stuf like animations for the rollover, rollout and click state. I've been following some tutorials on this of course, and I've completed my first button. The problem is that I'm getting weird erratic behaviour because of this Text (TLF) layer I've got (I animated color and size) in a classic tween.if I delete the layer, everything works great. I can't figure it out!

[Code]...

View 14 Replies

Flex4 - Funny Behaviour From Adobe Transitions?

Oct 23, 2011

No matter what I do, my transitions won't work as expected. I'll explain the issues and then place the code at the bottom. There are 4 States in my application.

goButton is present only in "State1" and "State2". State1 and State2 are nearly the same, but the y property of the goButton is diffrent in each. So I've made a little transition that moves the Button back and forth. Good so far.

However, both "State1" and "State2" can also be Transitioned to "State3". But there's no goButton in "State3", so I've used the <s:Fade> and the <s:RemoveAction> effects to get rid of it.

[Code]...

View 3 Replies

Xml :: Flex Children() Method Strange Behaviour?

Feb 20, 2012

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]....

View 1 Replies

ActionScript 3.0 :: Attach Button Behaviour To DisplayObject?

May 13, 2007

If I am using Loader to load external swfs, can I give them button behaviours?

View 12 Replies

ActionScript 2.0 :: Change The Behaviour Of A Movie Clip?

May 31, 2007

just wondering if there is a script that could let me change the way that a movie clip behaves, for example, I have movie clip "a" and in a certain frame I have the function;

a.onRollOver = function (){
gotoAndPlay ("that");
}

can I later have a script that removes the onRollOver property so that the movie clip is once again JUST a movie clip and not a movie clip button?

View 1 Replies

Professional :: Unload Movie Not Working For Some Reason?

May 19, 2010

im having troubles unloading a swf file that is 2 levels above my main movie. Basically I have a main movie and I have actionscript on the timeline which corresponds to a button which loads a swf (eg my web portfolio work):

digitalbut.onRelease = function() {disableBtns();_root.createEmptyMovieClip("container",1);loadMovie("Digital/Digital_2.swf","container");container._x = -22 ;container._y = 40 ;

This all works....Then in this swf I have another button which again loads another swf on top to show a particular piece of work and the code on the timeline to correspond to the button is:

[Code]....

This works also....but I come into problems when I want to create a button in this third swf file which then closes this Dior.swf so you are left with the bottom two still showing. I already have a close button on the Digital.swf which works a charm to get you back to the main movie and the code for this is:

[Code]....

View 3 Replies

ActionScript 2.0 :: Unload Movie Not Working For Some Reason?

May 19, 2010

im having troubles unloading a swf file that is 2 levels above my main movie. Basically I have a main movie and I have actionscript on the timeline which corresponds to a button which loads a swf (eg my web portfolio work):

[Code]...

Then in this swf I have another button which again loads another swf on top to show a particular piece of work and the code on the timeline to correspond to the button is:

[Code]...

View 3 Replies

ActionScript 3.0 :: Reason To Set Max Simultaneous Loader Connections?

Jun 26, 2010

I'm learning on how to make que loader system. I'm loading in 30 images at once when the swf loads onto stage that contains moderate tween animations. I was wondering would I get better performance if I only allowed to load 5 images at once then next set 5 ect ect. rather than to load 30 images at once? I can't tell because my computer is very good so I can't hardly tell. Is this common practice?

View 2 Replies

Actionscript 2.0 :: XML Slideshow Loads Random For Some Reason

Mar 18, 2010

Testing locally works fine but as soon as its on a server - published live - the images load random. It loads fine when you publish in flash.

Here is the code and below is the file she sent me.

Code: Select allthis._lockroot = true;
import mx.transitions.Tween;
import mx.transitions.easing.*;
var myShowXML = new XML();

[Code]......

View 1 Replies

Flash :: Strange Behaviour In A String Matching Algorithmn

Aug 13, 2011

I know my 'algorithm' isn't useful at all, but I think I encountered a very strange behaviour.

[Code]....

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved