IDE :: Flash Cannot Load On Mac Local Host
Mar 12, 2009
I am trying to use the localhost server on my macbook for website development (instead of doing testing by ftp). I downloaded the files from my webserver to the Site folder on my macbook. The Apache is running. My site is flash and make use of the SWFAddress class. The AC_RunActiveContent.js file is in the same folder as the index.html file. When I try to open the page [URL] in firefox, the title and favicon loaded properly, but the embedded flash could not be displayed. However, the same set of files works alright on the remote web server.
I thought it might be problem with the directory and I have tried ./swf/home.swf, swf/home.swf, /swf/home.swf in the index.html file but none work. I already tried changing all the swf/home or ../swf/home.swf or whatever to swf/home.swf but still the flash does not load. I am posting this index.html coz despite all the discrepancies, it works on the remote server.
Would this be problem relating to the SWFAddress class?
[Code]...
View 2 Replies
Similar Posts:
Apr 6, 2010
I am a php devloper but I have a task which is related to flash. Here this code I found to connect with tcp/ip but when I compile and run this it give me 19 error. How to connect to localhost server. [URL]. This is the link where I found the code.
View 2 Replies
Aug 6, 2011
I have an actionscript file which provides me with xml data. But I m not being able to save it to the local host machine. The code i m using to save the file is just the normal one i.e
var xml : XML = <save><instruments/></save>;
var fileRef:FileReference = new FileReference();
fileRef.save(xml,"NewFileName.xml");
I've tried saving the data as byteArray first n saving it in a xml file. That didnt work. I've flash player 10 installed and I m working in Flash Professional CS5. I have also used a hex editor and changed my swf file's 7th and 8th bits from 09 to some A0 as directed in a website but I m always getting an error which is
1061: Call to a possibly undefined method save through a reference with static type flash.net:FileReference.
View 2 Replies
Nov 23, 2011
i really sowie coz my english are bad.now i want to root the phpfile using localhost in action script adobe flash pro..can u provide me some example and explaination
i using json array data in my php
View 19 Replies
Feb 15, 2009
i'm trying to do something with no success so i would like to know if it's possible.
I load an external swf in a host swf. Loaded swf dispatchs a customized event.
And i just want to get Event back in host swf file...
I've tried a symply code but it doesn't work :
external swf, class of document
Code: Select all
package monpaquetage
{
import flash.display.Sprite;
import flash.events.Event;
[Code].....
View 1 Replies
Jul 3, 2006
Loading xml file from another domain or host?
View 1 Replies
Mar 11, 2009
Is it possible to load images outside the host's HTTP level?
View 3 Replies
Jun 1, 2009
I have two .swf file : 1- Index.swf and 2-page1.swf. Index file has one frame with the following action :
var loader_mc:Loader =new Loader();
addChild( loader_mc );// Add the loader to the display list loader_mc.load( "d:\page1.swf"));// Load the file
I upload Index file in my site and it can't load page1.swf.
View 11 Replies
Sep 25, 2010
There's a Flash EXE projector There's a XML file in the folder relative to the projector, data/menu.xml Application is launched on a Windows XP box
On one of the XP machines XML fails to load over some awkward reason. In most environments it works fine. The same app runs well on all Macs tested.
View 1 Replies
Oct 16, 2009
I thought that you could load a file into flash using FileReference. But as far as I understand you have to upload the file to a server and then download it from the server into your flash app to access it?It seems a bit like going passed the river for water (bad translation of swedish expression).
View 2 Replies
Nov 14, 2011
I got a very nice article to load files from local disk to flash movie directly.
article link : [URL]
i want to do same thing using as2.0
View 8 Replies
May 6, 2011
I have a Flex application that just load an external SWF, but the application load and unload infinitely my swf.
[Code]...
View 2 Replies
Jul 23, 2010
I'm looking at a tutorial to display placemarks using a KML file on a flex application. I'm using IGN API (openscales) in flex project. The example works perfectly (http:/[url].......
<os:KML url="http://www.parisavelo.net/velib.kml"
proxy="http://openscales.org/proxy.php?url="
numZoomLevels="20"
style="{Style.getDefaultCircleStyle()}"/>
But when I'm hosting the same kml file on my server like that :
<os:KML url="http://www.cycom.org/velib.kml"
proxy="http://openscales.org/proxy.php?url="
numZoomLevels="20"
style="{Style.getDefaultCircleStyle()}"/>
Placemarks don't show up on the map. I tried to host the kml file on different hosts but that doesn't change.
View 1 Replies
Sep 16, 2010
I've been fooling with this problem since AS2.0 (and shared Objects) and I'm not much closer to solving it, partly because every article I read on it is focused on php and server-side stuff that doesn't apply. How to load a String Array from a txt file in local user space (the folder from which the .swf is run). What I need to know: The easiest way for the user to save/load a file. The file has to contain Objects and Arrays reflecting his current status in the game. The goal is to avoid non-Flash apps and languages, and external Classes if possible (I do everything right in the main fla). I don't mind that the user has to initiate and approve the upload/download.
View 1 Replies
Jul 4, 2010
I'm trying to load a local xml file:
xmlLoader.load(new URLRequest("../xml/xmlData.xml"));
But I'm getting this security sandbox violation:
#2148: Only local-with-filesystem and trusted local SWF files may access local resources.
I don't get this error when I embed the XML file directly with the EMBED metadata tag.
View 3 Replies
Jan 7, 2012
I'm developing a game add-on/plugin which replaces a built in feature of an online game. The game loads an .swf therefore, my solution also has to be an swf for it to work 'in-game'.
I would like to be able to have the user press a button in the custom .swf I am making - and this would open an external application (amongst other things). I.e. if there was a button that said Notepad, it would open Notepad.exe on the machine.
My initial thinking was that i could have a XML Socket server 'daemon' runnning (c#) , which i could connect to with flash - however, as both the swf and the daemon are local, flash complained and gave this error: "Error #2010: Local-with-filesystem SWF files are not permitted to use sockets."
The only way i know to fix this - is to change the security settings of flash - not very user friendly!
So! Any thoughts on how I could otherwise go about this? I was thinking a custom http server could do the trick (connected with URLRequest) although i'm not too sure.
View 1 Replies
Jan 24, 2011
I'm using YUI file uploader based on flash, and the flash requests host/crossdomain.xml file. I'm requesting localhost and it requires this file. I was using this before and I have never had this problem and I've never had this file on my server.I've never used any adobe technologies, could please anybody tell me if it is possible to turn it off somehow ?The problem is that I can't have the file on my server, at least at root location...
View 2 Replies
Jan 31, 2011
Is it possible for a Flash Banner to read the CSS values from its host page?
View 1 Replies
Jul 25, 2007
I am making a budgeting program, partly because I need one, and I want to learn more about flash. My main question is this - because I will need to track data over many months, how do I make sure it is saved by flash? Do I have to host it as a website so it is 'always running'? I would hate to think what would happen if the host were to go down, I would lose everything.
Its seems like there would be a way to export the data (via a save button) to xml or some other format after I have finished my session.
View 2 Replies
Sep 1, 2011
in the standard embed code:
[Code].....
the player "FlashMediaPlayback" is loaded from remote ftp adobe server.
How can I load the player from my local machine?
View 1 Replies
Oct 6, 2010
I am building an app that needs to load and add a swf to the stage but I dont know how, I could get the whole "URL" of the file by using the class File for AIR but when I try to load it with a Loader it wont work...
View 2 Replies
Sep 8, 2009
If I run this code locally, the site works well. But, when I publish it in the web, dont work. WHY
[Code]....
View 1 Replies
Apr 29, 2011
I can still create the video and the files and it all works in dreamweaver when I preview in iexplore. When I put the files and the page into the host server it shows the skin and no video. If my paths are wrong I do not know where to check them. I need help MY whole career is on hold until I know how to do this like clockwork/ I need step by step with creating and changing paths and uploading using cpanel or dreamweaver. getting the files made and uploaded is easy part. I have been here before and cheers to the help. I really need an in depth answer about how to do this from start to finish. I have looked at all tutorials and they all make it seem so easy but dont show anything on paths. If my video works in dreamweaver but not online live what is wrong? I am lost and on edge lost many weeks of sleep over this simple process.
View 12 Replies
Aug 9, 2009
AIR seems to keep its own DNS cache when an application is running, and ignores any changes to the OS DNS cache (i.e. ipconfig /flushdns.More specifically, I'm creating multiple URLStream & URLRequest objects over a long period of time in a AIR application. Once the first one connects the host's IP address is cached for the lifetime of the application.And the URLRequest.useCache property,understandably,has no effect on DNS caching.how to force a host name to re-resolve inside a AIR (or Flash) application?
Note: Unfortunately, resolving the IP through a web service and rewriting the URL is not an option as a workaround.The use-case is downloading files from Amazon S3 using signed URLs which are invalidated if modified.
Update: The test results above were gathered on WinXP prior to AIR 1.5.2. Subsequent tests using 1.5.2 show serialized requests with URLStream.load() are re-resolved more frequently but still ignore TTL values.I still haven't figured out what conditions are necessary to trigger the re-resolution, but have noted a couple of cases that prevent it.For instance, if another asynchronous URLStream is active to the same host then requests use the cached IP address and are not resolved. And simply closing and dereferencing all streams to a host is not sufficient to ensure the same host name will be re-resolved in the next request.
View 1 Replies
Jul 8, 2010
I'm using FlowPlayer to replace an existing FLV player on my site that plays videos from Amazon E3. I have many pages and each should show a different video. For each page, I have a value stored in my CMS that is the "streamName". The stream name corresponds to a flashvars paramenter in the object/embed tags that show the video player:&streamName=my-great-video
On my new player, I'm able to get the video using a URL similar to [URL] How Does Flash (or Amazon???) know to add in the .swf extension? There are several video formats used on the site, and the current player works with them all... But, as I mentioned above, on each page the value store for the video (ex="my-great-video") includes no extension.
View 1 Replies
Jul 17, 2011
Coming from Robotlegs/PureMVC, I am pretty familiar with the concept of the view mediator, i.e. a component that pretty much listens to events/requests coming from the "dummy" view and makes a further request, sends an application-wide signal/event, executes a command, etc, based on the request from the view. Can the host component idea introduced in Flex 4 be considered a the same as a mediator? The only thing that slightly bothers me is that host components are still considered views, because they extend SkinnableComponent or any of the classes that further inherit from it. In my view, the mediator should be completely left out of view logic.
Nevertheless, I do not want to write a skin, a host component, and a view mediator for that host component, because that would be quite an overhead, and would lead to more complexity rather than abstraction.Should I use host components as mediators, and put application-level logic there, for instance application level event dispatching?
View 1 Replies
Oct 6, 2011
I do not want to intertop between c# and AS3 or here. I want a full screen content player in C# which can host a Adobe Flash swf file. Is there an example? In full screen, right clicks would have custom behavior attached.I saw one in Visual c++. As per Chris's I checked the link. I tried adding these lines of code:
path = @"D:exampleFlexMainMenu.swf";
axShockwaveFlash1.LoadMovie(0, path);
axShockwaveFlash1.Play();
However, this swf was from Flash Builder and not Flash, hence there were other files like
framework_4.1.0.16076.swz rpc_4.1.0.16076.swz sparkskins_4.1.0.16076.swz
osmf_flex.4.0.0.13495.swz spark_4.1.0.16076.swz textLayout_1.1.0.604.swz
playerProductInstall.swf
View 1 Replies
Oct 8, 2010
I am trying to upload a local swf into a swf app that i have on my server, any ideas about how to do this?
View 1 Replies
Apr 16, 2010
I'm trying to load a radar image over a google map. The problem is, I'd like to load the image from a local file. I understand how to do this remoteley via a url, buit not from a local file. I've read something about embedding, but I don't know what embedding means. I'm going to need this image to change, and eventaully want to have a loop of images playing over the map. Below is what I have so far. You can see I've commented out the line with the url loading, and have a fail attempt at loading locally below it.[code]...
View 8 Replies
Jan 26, 2010
Is it possible for flash to access data from outside of the root directory of the server it resides.i.e.
Root directory = /var/www/httpdocs
SWF = /var/www/httpdocs/flash/file.swf
XML = /var/www/xml/file.xml
View 1 Replies