ActionScript 3.0 :: Trace In Browser And Flashlog.txt?
Apr 16, 2009I would like to use trace in firefox and the firefox plug-in needs to use flashlog.txt.
This file doesn't exist on my mac.
I would like to use trace in firefox and the firefox plug-in needs to use flashlog.txt.
This file doesn't exist on my mac.
Problem installing Flash Player debug in order to run trace() on browser: I have CS3, have unintalled flash player and reinstalled Flash Player 9 Active X control debugger for IE. A right click should show the debugger, however, I still do not see a debugger installed.
View 2 RepliesI can't seem to get any logging in flashlog.txt. I've read through both articles:
[URL]
My home in XP is H:. So currently I have the flashlog.txt file here: H:Documents and Settings(username)Application DataMacromediaFlash PlayerLogs
mm.cfg is here: H:Documents and Settings(username)
mm.cfg contains:
TraceOutputFileEnable=1
ErrorReportingEnable=1
MaxWarnings=0
i have flash debugger version 10. The click on the app is initiated using a test tool and flash logs are collected locally on user machine. The log file is getting cleared every time the user logs out of the application.
Tried PolicyFileLogAppend=1 line in mm.cfg file at the user terminal. But no luck. The log file gets clearned when the user logs out of the app. My test is like login1>do task1> logout1 > login2 > do task 2 > logout2 When login2 gets executed the file gets cleared. finally it holds the log of the task2 alone.
EVERY SINGLE WEB SITE that has a flash file embedded on it causes my flashlog.txt file to display the following message, usually multiple times while a flash file is loading...
Warning: 'flash' has no property 'prototype'
This happens literally every single time I load a web page that contains a flash file embedded on it, regardless of where.
Otherwise it seems to trace all other errors and trace commands just fine.
Is this something I actually need to be concerned with in my development? I am assuming no since I get this warning in the flashlog.txt for every single flash file I open in my browser.
EVERY SINGLE WEB SITE that has a flash file embedded on it causes my flashlog.txt file to display the following message, usually multiple times while a flash file is loading.
[Code]...
Line 1 Frame 1:
[Code]...
I am trying to trace the results of my listener when the browser is resized...no avail. Are you able to see what I am doing wrong?
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,
[Code]...
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...
[Code]...
I suddenly find that there are many "normal" trace in my file flashlog.txt (supposed at your Window's location:{SysDrive}:Documents and Settings{yourName}Application DataMacromediaFlash PlayerLogs).
normal
normal
normal
normal
normal
normal
1/10/2011 15:32:13.008 [INFO] org.spicefactory.parsley.core.view.impl.DefaultViewManager Add view root: null/flash.display::Stage
normal
normal
normal
But when I run the application with the FlashBuilder, the logging in the consul page is ok, it doesn't include any "normal" String.I thought that the output of the flashlog.txt file should be the same as that of the consul of FlashBuilder.And I don't think I have added such a stupid trace in my code.The question is how can I find out where these "normal" trace come from and how to remove it.
take a look at the results of these traces:
trace(imgGal); //traces "1"
trace(itemClip1._y); //traces "32"
trace(itemClip[imgGal]._y); //traces "undefined"
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?
[Code]...
var dane:Array = new Array();
dane_xml = new XML();
dane_xml.ignoreWhite = true;[code]....
and this last trace gives me undefined while trace(temp) gives me what I want
in other words, suppose I want to send data, like text, programmatically from a Windows app (such as a browser plugin) to a Flash app running in the browser. Well, conceptually, an example of this might be a Flash instant messenger with a textbox and button "Send"; so let's say I want to be able to programmatically paste the text and press Send or otherwise activate it. That's NOT what I am trying to do here in reality (i.e., no,I am not trying to spam other people's chat rooms or anything)but just an illustration of a similar situation.I can include in it whatever widget or hack that may be necessary.The reason why this problem is arising for me is that AFAIK the SDK that is providing me the data I want cannot be directly accessed from Flash, so I need a way to pipe the data from a regular app into Flash. can I have the Flash app interact with other apps through localhost IP? Or are there draconian restrictions on which server Flash in browser can and cannot interact?
View 1 RepliesI have a standalone Flash projector running off CD. Currently, I use
getURL("http:url....);
to open the page on default browser. Only problem is the browser window is opening at the size it was last used. I like to see it opens full screen.
The title essentially is the question, how do I open the .swf without the browser's control bar junk? and maximize the window?
View 2 Replies I have a PHP mailer form on my site which needs to be published in action script2 to work, but I also have a script set up to open browser windows of a certain size & location which needs actionscript 1 to work? The PHP mailer form has a "Name" field, "Email" field & "Message" field, theses can all be reset with a button. The button clears off any text in the 3 boxes to wipe them clean. The script on the reset button is:
on(release) {
_root.myForm.formNameField.txt = ""
_root.myForm.formEmailField.txt = ""[code].....
This works fine with section script 2 but not with as1. Does anyone know of a script that resets the .text field on as1 Alternatively is there any way of opening browser windows from a flash movie with browser win controls, eg. centre win, no scrollbars.
Trying to detect a browser close event and send some data to the database when the user closes the browser window...but can't seem to get it to work.[code]
View 6 RepliesI have looked around for this and haven't found a way that clearly explains how to do this. More often than not the button will close the browser window in one but not another browser.
Is the a simple way of closing a browser window in all types of browser ( Or mainly Firefox, IE and safari on both Mac and PC ) with actionscript?
I created a photo album viewer which grabs an XML file from my web site, and then parses the XML to get the paths to all the photos to be displayed by the album viewer. The code makes use of the URLLoader class to fetch the XML. The problem, though, is that in google Chrome it works-- but in IE8, it doesn't work. For example, the XML code and the image fetching code work seemlessly on Chrome. But in IE8 and in IE6, it seems to not be able to fetch such information.
I've read somewhere that you need a crossdomain.xml file at the root directory of your server. But I'm not crossing any domains! It's all coming from my server where the swf is being hosted!
[URL].. Anyone know the AS to make it automatically check the size of the browser for the listeners_notice when you resize the browser it works perfectly...but not when it first loads up.
[Code]...
often than not the button will close the browser window in one but not another browser.Is the a simple way of closing a browser window in all types of browser( Or mainly Firefox, IE and safari on both Mac and PC ) with actionscript?
View 5 RepliesTo clarify when I ask about browser to browser communication I mean without a server in between forwarding message. I would like to implement something like this for a game. If p2p in websockets isn't possible are there similar alternatives?
View 1 RepliesI am not trying to track clicks or anything like other people - I just want to put a browser within a browser that can go back, forward, refresh, accept user-entered URLs, and store bookmarks. Can flash/silverlight/ajax/whatever do this? If so, how?
View 4 Replies 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]...
View 1 RepliesI wanted to ask that what is the method to trace the attribute in the xml file. I am trying a code but its saying undifined. The xml file looks like
[Code]...
This successfully traces that the cue point has occurred
how do I add tracing the name of the cue point?[code]...
I have a movieclip on stage.I load external image in it.Now on mouseclick over it I want to trace the image name eg "Andrew.jpg"How can I do this.
View 8 RepliesI 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.
View 7 Replies