ActionScript 2.0 :: Flash Program Functions Differently For Different Domains?
Apr 15, 2012
I have a linux distribution server, SME Server, and I use it to direct several domain names to a website on the server. My Flash program is a data driven directory that uses PHP constructed XML files to create the directory. I have been successfully using this Flash directory for some time using one particular domain, ictytranscripts.dyndns.org. I've since added a second domain name that I want to replace the first with, but for some reason the Flash program cannot read the XML files, or something. Whatever it is, the directories are not showing up.
There is nothing in the ActionScripts that have any reference to the old first domain name. I cannot imagine what is making the difference. Here is a test page showing the Flash program working successfully (I assume):
[URL]
And now the same page from different domains that direct to the same page:
[URL]
Notice that in the first the Flash program comes up, but there is no data displayed and in the second, there is no Flash program displayed at all.The XML files seem to be generated without any problems. [URL]
I am programming in AS3. I've made a game that functions correctly every time on every computer I've tried except for one.I don't get any errors, but a movie clip that should be stopped seems to be playing through its sounds. The animation doesn't play, though! I can't reproduce the problem on any other machines, but it happens every time on that one.
I started making my first complex game and ran into a problem that made me just stop everything I was doing and I have laid the project to rest until I can find out how to fix it.The problem is simple. I have a timer in a public class. The timer is private, but the function to start the timer is public. Only one class calls it. But as soon as the program starts, the timer function executes.Now that aside, why are some public functions being called at the time of the program being executed? The class that executes the function isn't even called until later/instantiated.
Does anyone have an idea as to why this happens?The dropdown menus work fine (they are a flash app)The dropdown menus do not work.I'm unfamiliar with how to make a redirect if they just type the url without the 'www'
I am loading an xml file using AS2.0. On Mac, all the elements load completely, but as soon as I run it on Windows, only the first element of type item loads. When I run it on Mac, the elements are loaded in and all item's are separate buttons. When I run it on Windows, only one button appears and its name is ch1. Virgin Group Holdings. None of the other item elements load. I don't have a Windows versions of Flash to work on, so I cannot debug.Is there another way to determine if this has to do with the XML file loading incompletely or with the depths of the Movieclips? Here is the URL
I am now running this file from a remote server (Linux box), but still only the first element loads on Windows, with no siblings. On Mac, everything loads fine, I am at a dead end, my deadline (draft #2) for this is in about 12hours and I still need to get a night's rest in. Does anyone have the slightest inkling what this could be? Any pointers or advice will be cordially accepted. The url.
I am now debugging in Windows and have found that the XML file does get loaded completely eventually. What is odd is that I trace the _x and _y values of all the movieclips, and all change constantly to an acceptable value, but still only the first-added movieclip is visible on the stage. I have traced their depths which do in fact differ, they are enabled (traced), they are _visible (traced that also), everything works perfect on Mac, except when I run it on Windows, so clearly, Flash Player in Windows in doing something unexpected, has anybody encountered this before?
ave anyone run into a SWF acting differently when loaded in IE8? I just finished a banner/header for a client that is working perfectly except when loaded in IE8, here is what is happening...
[URL]
Basically my masks are not being loaded on init()... I'm loading external XML so I'm thinking it might have something to do with that.
I have one swf, and roughly 4 or 5 classes. when the swf loads, the document class places 3 movieclips onto the stage- one of them animates across the screen. Using the tween class, I listen for the COMPLETE tweenEvent, which when triggered, instatiates a slideshow class. the slideshow class loads in a series of pics.On safari(mac), linux, no issues. on firefox(mac), the 3 mc's never appear, but instead, there is the same time delay as if the animation did play, and then the pics DO load. my client says everything works fine on first load, but returning back to the page after navigating away causes the same problem I described above. THey are on IE- probably 7.
I recently built a game and tested it on a few computers. It seems there are 3 different ways that it loads. One doesn't seem to load properly the first time so I have to refresh once, one loads fine, and one loads but something is wrong so the user can't play and refreshing doesn't fix it.What can cause flash to be loaded so differently between computers? Is it the browser? is it the flash player? Is it the OS?
I am trying to create a login system where a user would be able to login inside of one flash game on say, [URL], and then that same login data would be preserved for all the games on [URL] and also the games on [URL] and [URL] I am new to shared objects in flash so if anybody knows of a way to do this in either php, as3, html, js (or a mixture of all) then that would be great.
(PS. I would prefer not to use a method that requires a javascript bridge to retrieve cookies as this is impossible for games that are played on game-portal sites where only a swf file is used)
I am building a flash banner ad which I will traffic among some major ad networks. Is it possible for me to track what sites (or domains) my ad has appears on, without relying on their reporting?
I am creating a flash banner using a layered psd. The account team is happy with the look of the psd. BUT, when I bring the images into flash and publish the file, the colors look different. I import them into flash at the highest quality yet they don't look the same.
i have created an online calendar, you can see it on this link this application uses php as well which is called through the actionscript it works fine on firefox browsers, and some versions of IE, the version i have is explorer 7 (which i really dont like), and it doesnt work well at all. dont know if it works on safari or other browsers, i havent checked it out yet (the main problem is trying to write more than one message, it isnt displayed on the messageboard on IE).
A client has sent me a Flash CS3 website template she was working on. I'm supposed to do some work on it. When I load it, it displays incorrectly. The body type appears incorrectly. It's different then what it appears on her computer. Causing all the body text to overlap each other. She has Windows Vista with Flash CS3. I'm using Windows XP Professional with Flash CS4.
When I open the file, it says that 'tahoma' font is missing on my computer. And asks me to select a replacement. Obviously, I have Tahoma on my computer -- everyone does. I even got her to send her version of Tahoma to me from her Windows Font Folder. When I tried to install it, it says "font already installed". So, I pointed it to my Tahoma font as a replacement. This could be the problem. But why does it not recognize my version of tahoma?
Im trying to add an exit button onto my program so when its clicked it exits the program completely.. I've tried some of the suggestions on the forums but they arnt working. what I have been using and its not working..
// CLICK to Exit exit_Btn.addEventListener("mouseUp", goExit); function goExit(evt:MouseEvent) { fscommand("quit"); };
I need to program a timer for a typing tutorial program. It needs to go to 5 minutes. When the timer gets to 5 minutes the movie has to go to frame 13 which displays the results of the typing test.
I have created a flash program and I would like to run a second flash program from inside the first. To explain, say I am running a program that draws a circle and fills it with a color. Then, I have designed a second program that will divide a circle into sectors by entering percentages, to turn that circle into a pie chart. Is there a way to be running the "draw a circle" program and have a button that opens the "divide the circle into sectors" program in a new window and then passes information from that program to the first program. I am sure I will have to send the information from the second program to an XML file and then have the first program recieve it from the XML file (which I can do), but I don't know if I can run the second program from inside the first program.
Let me give the context first. A user opens a local html file which has a reference to a network url of an swf file to embed.
(1) If the embed swf requests a local image file , will Flash allow the request? ( 2) If the embed swf requests an image file on a non local url other than one of the swf file, will Flash check a crossdomain.xml file on the url?
I have a SWF that contacts a php script all on the same domain. In the first case both are hosted behind the same domain and communicate with no problem. Everything is working great.However when I take the same markup that embeds the SWF and paste it on another site (using a full qualified path for the swf in both the locally hosted and remotely hosted code), the SWF no longer communicates with the php script I wrote. I added a cross domain file to my site which looks like this.
<?xml version="1.0"?> <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
I am working on a project that uses SharedObject and I have a question. I've made a button that downloads a flash screensaver and at the same time also creates a SharedObject which stores a specific id for each screensaver being downloaded. When later the screensaver is installed and run, it should get the SharedObject and read the id from it. When tested locally it works perfect since both the buttons´ and the screensavers´Sharedobject are stored in the same localPath. But when the button is online and the screensaver is local the SharedObject paths don't match.
Is there a way to solve this and make the local screensaver swf read the SharedObject from the same path as the online download button has stored it's SharedObject in?
This is the relevant code in both my swfs:
var _mySo:SharedObject = SharedObject.getLocal("name", "/");
If this won't work, does anybody have another solution to my remote to local screensaver thingy??
My client's site exists on both http:// and http://www. and I have a flash navigation system on the site. All links are absolute values and work fine from the www subdomain but do not seem to work from the http:// domain. It seems strange to me as the links are absolute paths...
I just recently created a news ticker using the tutorial on Kirupa; however, I have not been successful at getting my xml data to show up on the news ticker. I have my xml file stored on and my website will be stored on Savannah State University's server. I do not want to have my xml file on the same domain as my website because it will be on my school's server and they don't allow access to their server. I want to be able to update the news ticker freely.
So I have an SWF8 file as a player on one domain (unsecure). It loads and plays an SWF8 from another (secure) domain. So far so good. Trouble is, I need the player to send variables to the files it's playing so that links in that SWF will, well, link. I also need the player to receive some movie control commands in return. There must be a rule or two I'm violating, because while the file plays, anything that depends on a variable is just dead.
A note: Both files started out as SWF6. I understand I can only do what I'm trying to with SWF8, so I went through the code and fixed the case sensitive issues and did the conversion.
I have an application with embed swf thatis called from javascript using handleEvent, This was working fine when they were both on same domain but now when i seperated them it returns an error .