ActionScript 3.0 :: Loading Local HTML Files Into A DIV?

Jun 28, 2011

I'm creating a portfolio sitethat has an AS3 Flash navigation in one div (#main-left) and what I'd like it to do is load local .html files in the div next to it (#main-right). I had gotten it working by placing an iframe inside the right div, and calling it with:

ActionScript Code:
function contactURL(e:MouseEvent):void{
e.currentTarget.gotoAndPlay("hit");

[code]....

View 2 Replies


Similar Posts:


Flash :: Playing Local Video Files In HTML?

Jan 7, 2011

A project has various local HTML & video files for pages. We need to be able to embed these videos in HTML pages - but because all are local files we have no server-side streaming.

Can I still just use SWFObject? Are there other well-known controls that will let us play .mp4, .swf/flv, .wmv files? This solution is targeting HTML4 across Chrome, FF and IE (I don't know if IE6 is needed).

View 2 Replies

ActionScript 3.0 :: Error #2148: Only Local-with-filesystem And Trusted Local SWF Files May Access Local Resources

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

ActionScript 2.0 :: Browsing And Loading Files From Local Disk?

Aug 20, 2010

Im not sure if this is possible in AS2 but i will ask anyway! Would it be possible to have a standalone SWF which gives the user the ability to browse their computer files and then load a picture for example? I know this can be done in AIR but im restricted to AS2 only!

View 1 Replies

ActionScript 3.0 :: Progress Display For Loading Big Local Files

May 9, 2011

i am currently building an application ( projektor) which loads big local files (no webserver) for some reason the flash player freezes until the whole file is loaded. i cannot display the load progress. the same code works fine when used with streaming from a server.

View 2 Replies

ActionScript 3.0 :: Loading Local Files With Query Strings

Sep 14, 2009

I have a strange problem loading external assets from local files with Loader() Class in AS3. If i use query string in the file name, the asset don't loads.

[Code].....

if i dont use the '?id=33' it works. More strange... in Flex with SWFLoader it works

View 3 Replies

ActionScript 3.0 :: Flash Loading Remote Files From Local Swf?

Nov 8, 2011

I have a problem when i try to access the internet from a swf that is run localy.I want to load other swf files from diffrent domains into my main file wich works fine when the swf is on some domain but when i download the file and run it localy it doesn't work.

Can i change the sandbox type from actionscript? Mochi Media does it after enctypting your swf but i don't know how.

View 2 Replies

Loading Things Like Html An Fla Files?

May 23, 2009

Is it just me or are others having problems loading things like html an fla files?

View 3 Replies

ActionScript 2.0 :: Loading The HTML Files?

Mar 3, 2005

When the web page is loaded the flash (and PHP) is going to load up a Yahoo! page [URL]and somehow load the daily Couples horoscope into my dynamic text box. If you look at the source of that HTML page, it has the following:

Code:

<b class="yastshdotxt">Daily Couples:</b><br>Intellectual curiosity helps keep you young at heart. Take a trip to the library together, or head out to your favorite neighborhood galleries.<br><br>

My question is, how do i get actionscript & PHP to load that horoscope into my text box? My current source is attached (in MX 2004 format).

View 2 Replies

ActionScript 2.0 :: Launching A Local Html File From Local Swf?

Jan 16, 2007

i am having a problem launching a local html file from my swf. i have a button called print that when clicked it is supposed to open the local html file and print out the content. this is the code i used on the button

on (release){
getURL("folder/folder/file.htm","_self");
}

[code].....

View 4 Replies

ActionScript 2.0 :: Loading Random .swf Files Into .html Document?

May 29, 2007

When person goes to site [URL] they are presented with a different .swf file each time they visit or refresh the page - currently I have three different .swf files that can served up.

What I've done so far to make this outcome a reality: I included a javascript array in the .html document that selects one of three .swf files to present in the page. Here is the javascript:

<script language="javascript">
<!--
files = new Array();
files[0] = "crayolas_pre.swf";

[Code]....

View 5 Replies

ActionScript 3.0 :: Uploading Local Files Without Requiring User To Select Files?

Feb 3, 2009

My users upload a certain kind of text file that sometimeshas references to images stored locally on their hard drive. I needto check this file either on the server or within a flash app tosee if it has these references and then grab those images in aflash app to upload to my server.So I can use FileReference easily enough to have users uploadlocal images. But FileReference requires users to select their files with a dialog box. I can't have that. Myusers wouldn't know where to look and there are typically way toomany files, sometimes with the same name but in differentdirectories.

I can also just use URLLoader with a local URL, I guess I canprobably just use Loader too? That works great. The problem here isI can't communicate with both the server and the local filesystemin the same flash application due to Flash's security sandboxrestrictions. So I can get out of those security restrictions byplacing or editing a trust file in designated locations on variousOSes. I then need to install this trust file which is more invasiveand confusing to users then I want to be...Java's method of accessing local files from a web applet bysimply signing the applet with a certificate and having a dialogbox popup where the users grants access is ideal. Is there anything

View 4 Replies

Javascript :: Access An Local Image (not In App Workspace) From A Local HTML File (in App Workspace)

Mar 12, 2011

I have a HTML box and load a local html file from the project. In this HTML file I use jquery and I want to load an image from my user directory. I see the image from my user directory but jquery doesn't works. I get this error:

[Code]...

But if I load an image from the app workspace, everything works fine (I see the image and Jquery works). Is this a policy problem? The error says that is a "null object reference" problem, but this can't be true...

View 2 Replies

ActionScript 3.0 :: Downloading Local Files?

Oct 1, 2008

I have wmv files that i need available for download from answf (both swf and .wmv's will be on a DVD or CD). The wmv files arein a folder named WMV which is at the same level as the swf. I justwant the user to be able to click on a button and select "Save As"and download the file. I've been trying to use the download()method but keep getting IO Errors and also tried usingnavigateToURL but it tries to download it through firefox (no "SaveAs" option, just tries to open with Windows Media Player) andwindows media player says it can't find the fil

View 7 Replies

Getting Error Opening URL-local Files-mac

Jun 8, 2010

I'm using a var and an Array code on an empty move clip. The code is set on an "Actions" layer. The code checks good. All files are on my desktop.When I test movie I get 'Error opening [url]...I'm on Mac running CS3. Flash setting is set to "Access local files only" I searched hours for a solution to this problem.[code]...

View 4 Replies

ActionScript 3.0 :: Lik The Images And Swf To Local Files?

Sep 24, 2010

I want to lik the images and swf to local files but I'm not able to do so. I took the code from an accordian menu tutorial

[Code]...

View 1 Replies

ActionScript 2.0 :: How To Load Local Files

Apr 28, 2004

is it possible to load something thats in you library, as a external movie. or is it possible to "preload" a external .swf?

View 2 Replies

ActionScript 3.0 :: Controlling Sound Of Separate Html Files Within Same Html Page

Sep 11, 2010

I need to allow users to preview audio files for purchasing. I have CF pages that return records form a SQL database. Each record contains the same swf file however, each swf file points to a different mp3 for previews of different audio examples. So far, everything is working fine. My problem is that I need to be able to stop the sound from one swf when I click to play a second swf .The only solutions I see in Flash forums deal with loaded swf files. These are not loaded files they are separate files within a page. The question is: How do control one swf from another swf in the same page.The following items have not worked: soundChannel.stop();,soundMixer.stopAll()

View 2 Replies

Professional :: Flash Files Don't Work On Local Pc?

Oct 14, 2009

i have the problem of local files of flash not working in any browser. to explain further i have html pages with headers in flash in my hard disk with links of the connecting pages. when i open such pages in any browser the links dont work. the page just stays as it is. when i click on the links only the state of the rollover changes when clicked on a link. the links when clicked dont go to the linked page. but when i upload these files to the server, they open and work perfectly in any browser.

View 8 Replies

ActionScript 3.0 :: Opening Local Files Using A URLRequest?

Nov 16, 2009

is it possible to open a file from say C drive when your flash file is in C:somefolder?

View 1 Replies

Professional :: Standalone App (AIR) For Playing Local FLV Files?

Apr 29, 2011

Can someone point me to a desktop app (Windows and Mac) that can play local FLV files?

View 4 Replies

Flex :: VideoDisplay Cannot Load Local Flv Files?

Jun 28, 2010

I have noticed that I have to put flv files in the same or sub-directories of the application file, for example myproject/bin-debug/flvs/1.flv, and use videodisplay.source="flvs/1.flv" to load.

If I put it in myproject/flvs/1.flv, I cannot load it in VideoDisplay, using videodisplay.source="../flvs/1.flv". However the metadata (duration for example) is retrieved, but play() cannot start it.

View 1 Replies

Release - Flex Build Use Local Files?

May 26, 2011

I have a very stupid problem. I'm using Flash Builder (Flex) 4. My application displays a video using VideoDisplay component and some images. The video filename is always named video.mp4 and the images are inside a folder called "real/". The video file and the real folder are in the SAME location of the .swf built.

The video source in the code is set like this: videoDisplay.source = 'video.mp4';

and the images, loaded dynamically, are like:

img.source = 'real/' + imageFilename;

[Code]...

View 1 Replies

Flash :: Player 11 - Can't Play Local Swf Files?

Nov 30, 2011

in older versions of flash player if I opened a swf file in a web page locally it would bring up a security settings box where I could allow files to play locally - but this doesn't seem to happen in flash player 11 - how do I enable my swfs to play locally?

View 3 Replies

ActionScript 3.0 :: Allow Access To Both Local And Network Files?

Jul 27, 2009

The reason Ordinarily I would just host everything on the server, the swf file and images and serve them out using something like apache. However, we're working with an embedded device with hardware limitations. So we thought we could avoid this by hosting the images locally on a cd.But Flash player moans about the security settings. I know a way to overcome this would be to give the user instructions to change the global security settings- hence allowing both network and local access. But we feel that this would be too much to expect the end user to do.We want our model to work out of the box so to speak. Or as best as possible.

View 1 Replies

ActionScript 3.0 :: Files Not Working Local Vs Internet?

Jul 26, 2010

I had to change my global settings to be able to view my project on my local machine (clicking on index.html and have it open with explorer). Everything runs fine, locally.Videos play, music sings, everything is great.I put it online, no videos will play.All files are where they should be. I've checked 50 times and will do #51 soon.My swf does do some activex calls (this will eventually only be run locally on machines in a wrapper so its like a kiosk)

View 4 Replies

ActionScript 2.0 :: Access Local Files From Website

Oct 25, 2010

without explaining why, I need to run a flash slideshow from a live web page and it is for a photo exibition: The problem is that the slideshow, while running on a love site, must read the image files from the local computer that it is browsed from. If the computer is always the same and the files are in the same directory when it was developed, how would I tell flash that the files are not on the server, but on the local computer?

View 1 Replies

ActionScript 2.0 :: Load Local Files From Disk?

Jul 26, 2011

I've posted this in the AS3 forum, but I was told its supposed to go here...I need to know if it is possible to do this in AS2...

Code:
w w w.kirupa.com/developer/as3/loading_files_disk_pg2.htm
(cannot add links... since I have less than 50 posts)

[code].....

View 5 Replies

IDE :: Retrieving Local Files With Flash Player 9?

Jan 8, 2010

I've recently encountered a problem whilst coding when trying to upload local files to flash. With Flash Player 10 you can use the following code to load local files into flash.

[code]...

This is not available in Flash Player 9 which is causing me issues as I only have a copy of CS3. All I need to do is retrieve a local jpg from the users computer and temporarily display it in my flash application. So to clarify, uploading to the server isn't required unless this is the only way to do this with Flash Player 9?

View 1 Replies

ActionScript 3.0 :: Access Both Network And Local Files?

Jul 13, 2010

Is it possible to access both network and local files, flash player 9/10?

Here is the situation:

I have an SWF which runs locally on the client's machine.

It communicates, via XML socket, to a C++ server.

It also needs to read some configuration files from the local file system...

c:config.xml <---> test.swf <---> C++ server

So I need the SWF to be fully trusted, as if it was ran from the Flash IDE.But I can't tell my clients to set it to be fully trusted using Adobe's Global Security Settings Panel

What I can do is alter my C++ server code, somehow granting permissions to the SWF.

View 3 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved