I would like to trace the full hexdecimal value from a xml attribute color="0x000000". I don�t know if there is a special datatype for hexdecimal values so i declared it with color:uint;
If i try tracing it out i only get the first letter "0" instead of "0x000000"
I am having issues with a global array. I have an actionscript file called MyGlobal.as at the same level as my main FLA:
[Code]....
I am able to trace that first element while trace is called within the function... but if I try to trace that first element outside of the function it is "undefined". Do I need to return the array at the end of the function? I tried that but I cant seem to get it working correctly.
I've been playing with prototype a bit and I've noticed that either it isn't as static as it should be or that some functions are protected from altering, or that in some cases the prototype actually extends a function. For example, I was trying to modifiy the global trace function to output the current time of a trace action, something like this :
Code:trace("lulu"); // output 12:48:17.286 lulu I DID achieve something close to it, but it seems that I haven't actually modified the global trace function, but rather it's "_root" counterpart,
ive got a loaded xml list for an mp3 player. from playing track1, when i select track 2, it traces "track1" but then after a second click it traces "track2" and stays on that. the actually music for track2 does load on the first click though, but not the trace. anyone know why on the first click it would still trace the previous track? here is the code for that function...
why does the last trace not trace "32" like the second trace? I want to insert the variable "imgGal" onto the end of the mc "itemClip", how can I do this?
i'm preparing to do a tile based game, but i'm going to probably have access to at least maybe 20 tiles so i wish to do my tile map like this
var myArray:Array = [[001,001,001,001], [001,000,002,001], [001,015,000,001]];
that's a rough example. but to develop a map editor i need to be able to string a number will 0s preceding anything that is less than 100. is there an API for this or would i have to go with something like
if (a < 10) { string = "00"+a; } else if (a < 100) { string = "0"+a; }
I have define complete event handler and want to return value . But I lose "myString". I do not know how to return "myString" from loadXMLFile.[code]...
I just bought CS5 like a week ago. I'm finally getting around to using it for older content and now my trace output doesn't work for anything. The output window opens up, but nothing prints out. I'm also getting TweenMax errors in something I haven't touched in weeks.
I'm new to flash but I have over 15 years in software and 20 in IT.In everything I have worked with so far in Flash I've used trace( message ) to put a message in the output window. Then it just stopped.
I chose new actionscript file(3.0) and wrote as simple as trace("Hello World");, but it is not working. I have flash player 10 and i also made sure i have not checked omit trace statements in publish settings.
I wonder if there is a function in ActionScript that can let me trace a bitmap file on the fly though scripting: something like myimg.TraceBitmap(), instead of having me to open a *.fla and work it there.
How can I use trace to trace "x" by feeding it the variable x, as in not the value 5 but the variable name?Since I need to know what variables were passed in my functions for debugging.
i am creating a card game. useing a tutorial i got from a paid training site.i now want to evolve what i learned into something more advance.so far i have a blackjack game. i want to now create a new game.but im stuck already i ahve been playing around with it for hours. i want to check EACH player card SUIT to the dealer card SUIT but i cant work out how.numbers and score are easy and fine just cant work out how to do the suit.
card class ActionScript Code: package com.lynda { public class CardDeck
I'm familiar with AS2 and just now beginning AS3. I have a main or root SWF that will call other SWFs. In the past I would put them on levels but now I know with AS3 that isn't so. I will only load one swf at a time. Each will replace the other. I'm using addChild and it seems to work.I really want the Stage SWF to check inside the added child SWF for a String. What is the correct syntax for that in AS3. I have done many attempts but nothing. The last trace I ran was:trace(MovieClip(clipLoader.content)); and that gave me [object MainTimeline]. FYI - The string is "BtnName".[code]
i have the movie clip name in a string;for example var="mc1";how can i trace the value _x of the mc1 using the var variable?i need to use this on a with(var) action.
I have a array where I put the products id and the amount of that same product in it.when I trace the cart array, flash walks trough all the keys (from 0 to 23443) and that takes a long time.Is there a other way to do it? like this maybey:[code]How can you trace the key of an array in AS?
This has never happened before. One of my .fla's suddenly won't trace at all. Anywhere I put a trace statement, it does not work. On the main timeline, in an MC, in a function... nothing!
Is there an option that I could have accidentally turned off or on?
I am trying to things efficiently and put as little code as possible on the timeline.
I have a document class loading and working at runtime.
It creates a button that takes me to a different frame on the timeline.
I have a movie clip there. I put a trace in the constructor of the class of that movie clip but it will not show the trace comment in the output window-its not working. There are no errors.
I also tried instantiating the same movie clip from the document class-which worked-but the trace in it's class's constructor still does not output.