ActionScript 3.0 :: E.target.name Traces Wrong Name?
Feb 7, 2009
I place several empty movieclips dynamically on the main stage and load a picture in there with a adress derived from a xml file and some text also from the xml file. Then I add a event listner to the movieclip. On stage the image + text is correctly shown, but when I click the image it traces the name of image and not the name of the movieclip in which it is placed, I need the name of the movieclip because i want to tween the movieclip after it is clicked.
Code:
function LoadXML(e:Event):void {
xmlData = new XML(e.target.data);
[code].....
View 2 Replies
Similar Posts:
Dec 1, 2010
Now, when I click on the button in the area where the movieclip is it will register this movieclip as event.target. I would like to make the button the event.target regardless where I click and prevent flash from registering the movieclip inside the button as the target.
View 3 Replies
Feb 10, 2009
I've now found the code:MovieClip(root).square_mc. rotation= 45;Which has solved the problem fantastically.However my book suggests this format:root. square_ mc.rotation = 45; Also, using the 'insert target path' icon in the AS Window gives a similar syntax. eg for the above it gives this.parent.square_mc.orroot. square_ mc.Neither of which work, and generate the following message 1119:Access of possibly undefined property square_mc through a reference with static type flash display: DisplayObject.Am I doing something wrong, or does this style of controlling multiple time lines just not work?
View 2 Replies
Sep 7, 2011
Iam working with flash action script 1,2,3. How can i see flash traces in browser. Iam Using Flash player 10,3,183,7.
View 1 Replies
Mar 15, 2011
There are a lot of traces embedded in a swc-library I'm using in flash-builder. Can I get rid of them without touching its code?
View 2 Replies
Sep 28, 2011
i'm itterating thru an array of text field objects and tracing the selected focus field when pressing tab, as well as each object.i'm trying to equate these object, but while they trace the exact same they are not.
m_InputFieldsArray = new Array(m_TitleTextInput, m_CommentsTextArea, m_EmailTextInput);
for (var i:Number = 0; i < m_InputFieldsArray.length; i++)
{
trace("Get Focus: " + Selection.getFocus());
[code]....
the first group traces the same, but apparently they do not match. Selection.getFocus() returns a string, while the array index is tracing the text field object. if i add toString() to the text field object it will trace as [Object object] how can i accomplish a match?
View 2 Replies
Dec 20, 2010
[Code]...
it traces to Q23.swf and Q23 I want Q_23.swf where the original value is "Q23" Does anyone see what I am doing wrong?
View 2 Replies
Aug 25, 2010
Flash builder traces out when swfs are loaded and unloaded eg:
[SWF] C:xampphtdocscar_explorerfontsArial.swf - 174,937 bytes after decompression
and
[Unload SWF] C:xampphtdocscar_explorerassetsspinEXTERIORBASE_12.swf
How to disable these types of traces?
View 1 Replies
Jul 24, 2010
I have a strange issue in an AS3 project I'm building. For some reason I am not receiving any traces from a specific class in my project. I can get traces from any other class though. I have a Main.as that loads several classes, one of which is IphoneScroller.as
ActionScript Code:
Tipper: News Scroller
package org.FlepStudio.Tipper{
import flash.display.*;
import flash.events.*;
import flash.geom.*;
[Code] .....
Any reasons why I might not be getting traces? I'd also like to note that I have a container that has several control components as children. I pass the container to the iphoneScroller for scrolling and it works fine...until I click a numericstepper and the iphonescroller breaks. However, other controls like InputTextfields don't break the scoller. These issues are why I've been trying to do traces in the first place.
View 0 Replies
Mar 31, 2011
I'm experiencing a strange behaviour in a for-in loop, has someone ever seen this before? >> I have an Object-variable _files, which contains 3 seperate class instances of the wsaxSingleFileUploader class (which, as you can imagine, is a class to upload files ) My code for removing these instances:
[Code].....
So, in the first line of code, it traces all keys within the object. Then in a similar loop, it triggers all the remove() functions of the instances, and then sets the instance to null. Strangely, as you can see in bold in the trace-results below, it tries pdf_hl twice? Does anybody have any clue why that is? The problem occurs in FireFox with Firebug/Flashbug and the Flash 10.2 debugger plugin.
[Code].....
View 3 Replies
Jun 20, 2009
I have two arrays arrscore and arrname i push the percentage to arrscore when the person has finished the quiz and the name to arrname. when the quiz is done once and i trace both of the arrays it's fine but when the quiz is done twice instead of giving all the results in the arrays it only traces the latest one.
View 3 Replies
Aug 28, 2011
I have a movieclip on the stage with 3 frames. Each frame has a stop(); in the actions layer. I have double (and triple and quadruple) checked the label names.There is a button to toggle between the three frames of the movie clip. A Frame 1 button, a Frame 2 button, and a Frame 3 button. The movie clip (there are lots of them) is then spawned with a mouse click. The movie clips are already declared at the beginng. They are not unlimited so I can just have a for loop go through all of them and change the frame number even before they are spawned and added to the display list.Frame 2 and Frame 3 work just fine. But the button to go to Frame 1 will display Frame 1 on all of the pieces that are already on the stage, but on all new pieces that will be spawned, it just displays whatever other button was pressed last. For instance if I have a movie clip on the stage that's displaying Frame 2 and I hit the buttom for Frame 1, the movie clip will switch to Frame 1. But if I spawn a new movie clip, it will display Frame 2. If I then click back on the Frame 2 button and then again to Frame 1, the movie clip will correct itself.
I can't find where on earth in the code it's going wrong. I've tried using traces but I can't find any problems or inconsistencies. Everywhere I put a trace to tell me what frame the object is at, it traces correctly. I'll click on Frame 1 button, then click on the stage, and it will trace to the output menu that the current spawned movie clip is on Frame 1 when it's very clearly displaying Frame 2.[code]
View 2 Replies
Aug 10, 2010
m working on an Adobe Flex application that loads lots of Flex Modules and other Flash sub-applications and Flash resources. Each time one successfully loads the flashlog.txt and Flex Console show a trace like "[SWF] filename.swf - [filesize] bytes after decompression". Specifically:[SWF] Main.swf - 1,361,299 bytes after decompression [SWF] core/Core.swf - 516,390 bytes after decompression
I don't want to disable traces because I am debugging, but these traces are rather noisy. How can I suppress only the [SWF] loaded traces?
View 5 Replies
Jul 16, 2007
I am attempting to build a xml driven drop down menu where everything is taken from xml. now the problem arises with submenues. I have them being created fine, but it's the mouse out that won't work. I want to use a hittest to check if my mouse is over any of the submenues and if not just to trace something so I know it's working.
The problem is when i mouse of one clip onto the next it fails the hittest and traces. There isn't a space between the two MC's so I dunno what would be causing this. I have read sen's guide but I'm not pulling things from the library. Everything is being created at run time so I can't use the attach movie, so I am just positioning them below each other.
[code]...
View 2 Replies
Apr 28, 2010
I have an application which uses multiple packages of AS3 code and a main .fla file. Whenever I publish the main fla, my traces in the .as files don't show up in my output window. Any reason for this? an example would be:
[Code]...
View 3 Replies
Nov 11, 2011
I have an issue in which outdated code removed long ago code in an actionscript 2 class sometimes gets executed. I can tell this in that the application fails and trace statements removed long ago gets logged to a console.The closest match I've come across is this post:Flash CS4 refuses to let goHere are the things I've triedI hI have searched an uncompressed debug-enabled version for the trace entry. It is not there.I have decompiled the compiled version and searched that. It is not there.I ave deleted all ASO files and tried to recompile.I have not been able to reliably reproduce the conditions in which the situation arises.I've testet 700 times in a row (yes - sevenhundred times - this is a high profile project) and it would not occur. Then tested another time and it occured. No difference in my approach to testing.I have compiled on another, freshly installed machine. No difference.I have ruled out that it may relate to timestamps since I've tried to compile locally and w/o version control.
View 1 Replies
Aug 8, 2009
I've started dabbling in switching out the context menu and adding other functionality to it.I tried creating a new ContextMenu and set it to the property of my stage. No go, it says Stage does not implement this method or property. Which is kind of bizarre since Stage inherits from InteractiveObject which does indeed have the contextMenu property.
So I tried to just trace out the contextMenu, and it returns null on whatever displayobject I try it on. A MovieClip, the stage itself etc..What am I doing wrong? In my world, and according to the documentation, I should be able to change the contextMenu.
View 2 Replies
Feb 12, 2010
So I am able to trace the correct coordinates. However the hitTest fails. Here is my code:
[code]....
View 1 Replies
Sep 1, 2009
Does anyone have a lot of experience with the different runtime debugger tools out there such as De MonsterDebugger? I'm looking for one that will map out the call stacks of different function calls within a tree structure. I couldn't tell if De MonsterDebugger does it, but it doesn't seem to. And I wasn't sure what other options are out there.
For an example of what I'd like, consider the following and the expected output (or something to that effect):Code:
[Code]...
Worse comes to worst, I'll just implement it myself, but I was hoping someone already did
View 3 Replies
Jun 9, 2011
I am having this issue with Flash CS5 Mac version:After making an animation, I export movie as Quicktime. When I view this movie, the animation leaves trails of color when an object moves across the screen, leaving behind little bits of color too. This does not happen when I export a SWF, but it does happen when I export a Quicktime movie. I export using Quicktime, so I can then I can export it into a flv in Adone media encorder.Why does this happen?
View 1 Replies
May 26, 2009
We're making a simple input text comparisons vs. some constant floating point numbers (e.g. 4.35). Using Actionscript 2 to Flash 9 export. Getting totally contradictory traces on two different computers compiling identical code...Here's some simple code we're using to figure out what's going on.
Code:
trace(typeof(Number(435/100)))
trace(typeof(Number(435/100)==4.35))
trace((Number(435/100)==4.35))
[code]....
Also, what behavior do any PC users have? I'm expecting the latter since they're generally intel chipsets too?Note: once i compile the code on my PPC mac, intel macs that run the SWF (but don't recompile the FLA) do return the correct booleans that match the PPC output.
View 1 Replies
Sep 29, 2003
On the attached exercise, is it possible to stop further items being dragged onto a target when the target box is full?
View 1 Replies
Nov 28, 2011
What is the difference between target and currenttarget in flex?What is the difference between Target and Current Target in Flex especially in mouse events.
View 2 Replies
Aug 30, 2010
qi have a movieclip which is added to the stage:
var profileholder:profileHolder=new profileHolder ;
inside of profileholder is another movieclip(infoBtn) that acts as a button.when the mouse is over profileholder i want to do something with infoBtn like:
//profOver is the over state of profileholder
function profOver(e:Event) {
e.target.infoBtn.alpha=1;
}
this doesn't work and brings up this error:ReferenceError: Error #1069: Property infoBtn not found on flash.display.Loader and there is no default value.
at main_fla::MainTimeline/profOver()
i also tried:
function profOver(e:Event) {
var item:profileHolder=e.target as profileHolder;
item.infoBtn.alpha=1;
}
and get this error:TypeError: Error #1009: Cannot access a property or method of a null object reference.
View 1 Replies
Mar 14, 2005
i don't know why this isn't working.i got a button. and when it's pressed, i need it to go and play a frame in a movie clip. i'll test it and then when i click on it, i get this:
Target not found: Target="whoweare" Base="_level0.instance20.instance48.instance49"
this is the code that i am using:
on (press) {
tellTarget ("whoweare") {
gotoAndPlay (51);
}
}
View 14 Replies
Feb 16, 2005
so, i'm making an animated rollover, and i get an output error that says this:
Target not found: Target="_root.icon01" Base="_level0"
i have no idea what the base="_level0" means.
View 1 Replies
Aug 3, 2009
I'm making a flash company profile in the style of a website, except it won't be uploaded online.and i made each button skip to a frame that i already named
some of the buttons are skipping to the wrong frames for some reason,the ones that are not working properly have some pretty big picture files on them,could this be the reason or is it just an action script mistake?
View 1 Replies
Aug 26, 2010
I did a banner in flash CS3. I did 8 things and you see them one after the other one. The first time that it plays it goes on the right order but after it finished, when it normally has to start playing again, it plays in wrong order (the first then the third, the last, the second again the first, last and so on), it just does what he wants and not what I did.
View 1 Replies
Mar 13, 2009
when I type j in the input box (or grid) component it looks like i. is it bug? when typed many j's.only first looks wrong.
View 2 Replies
May 26, 2011
I have built a website that contains two flash galleries on two separate pages.Each .swf galllery is meant to call a separate xml, loading the relevant text and images.The galleries work perfect when using Firefox-windows, Firefox-mac and Safari and on my local machine(macbook)The galleries do not work using IE-windows, the problem being it loads both galleries with the same xml. [URL]
View 3 Replies