PHP :: How To Bind SWF Files To Run On Specific Host

Jan 13, 2012

I'm working on a major Flash project that is going to be the core content of a site. As most of you well know, almost any site can be entirely copied by copying the cached files and the hierarchy (files and folders structure), and it would run without problems on an Apache server with PHP enabled, if used. What I would like to know is: How to bind SWF files to run on a specific host?

The SWFs will be encrypted, so outsiders won't have access to the methods used to stop the SWF from running on a different host, question is: what method to use? I think the solution could be hardcoding the host IP inside the SWF, so if the SWF is looking for 123.123.123.123, only a host with that IP would allow the SWF to run further. The issue is that AS3 alone can't discover the host IP or could it if it's trying to load a resource file? Can you secure your swf so it checks if it is running on a recognized environment?

View 5 Replies


Similar Posts:


Creating Link To Host AS Files On Site (Error 404)

Dec 1, 2009

Why creating a text link to a .as hosted on my site creates a 404 error? If I change it to .txt it works fine but I'd really like the user to be able to open the file directly into Flash.

View 3 Replies

ActionScript 3.0 :: Video Files Are Not Playing Progressively Off The Host Server?

Jul 6, 2009

My video files are not playing progressively off the host server. They do in simulate download: Here's the code for one simple module that plays 3 different f4v's on radio buttons. In theory they should stream progressively in a flvplayback instance called qualtestplayer when a radio button is pushed. But they fully download before starting to play.

[Code]...

View 2 Replies

Flash - How To Know Which Files Are Available In A Specific Web Folder

May 19, 2010

I would like to build an image gallery in Flash with AS2 or AS3 that detects automatically the number of images available in a specific folder (say a level below the swf file).The goal is to don't have to config any xml files with the images to show.

View 1 Replies

How To Get Name Of Every Files From Specific Folder Into Array

Jun 29, 2010

I'm trying to get the name of every files from a specific folder into an array, but I get this error and I can't find why...
TypeError: Error #1009: Cannot access a property or method of a null object reference.

Here's my code:
import flash.filesystem.File;
function getFileList(directory:String):Array {
var folder:File = new File(directory);
var files:Array = folder.getDirectoryListing();
var fileList:Array;
[Code] .....

View 2 Replies

Professional :: Save A Specific Set Of Open Files?

Feb 9, 2011

I'm trying to figure out if it's possible to save a specific set of open files in Flash so that when you close the app and then reopen it, you would either see the files that were open when you closed Flash or at least have the option to select it and it woud then open those files in the order that you left them.
 
With all my class files open at one time, I hate having to reload them into the order that makes sense to me every time I launch Flash.I was looking into the Projects panel which seems like it's in the direction of what I would like but I can't seem to find anwhere that saves open files.

View 1 Replies

ActionScript 2.0 :: Preloader Not Working In Specific Files

Jan 23, 2009

I have a page in flash 8 that I want to add a preloader to. I have a movie clip with the instance name bioLoader, and this is my code (applied to the bioLoader movieclip, not a frame):

Code:
Select allonClipEvent (load){
total = _parent.getBytesTotal();
}onClipEvent (enterFrame){
loaded = _parent.getBytesLoaded();
percent = int(loaded / total * 100);
[Code] .....

The preloader is on it's own frame and has a stop action on the same frame. There is also a stop action on the first frame of the preloader movie clip. I'm confused because this same preloader has worked on every single other page I've added it to. Another thing is, I believe it is working, but it doesn't show up until the movie is loaded, considering it flickers when the movie plays (and the dynamic textbox shows 100%). In this same swf, I'm loading in text files with loadVars.

View 2 Replies

ActionScript 2.0 :: Listbox To Display Only Xml Files From A Specific Directory?

Mar 20, 2007

I really don't know where to start with this. I have many xml files in a specific directory and would like to have a listbox become populated with only those xml file names when a button is pressed.

View 6 Replies

ActionScript 2.0 :: Loading External Files Into A Specific Sized Movieclip?

Aug 16, 2009

I'm trying to load an external swf file into a specific sized movieclip. This is what I have written:

loadMovie("example1.swf", "pane_mc");

It doesn't work when I test it. Do I have to specify the dimensions of the movieclip? If so how do I do that?

View 1 Replies

ActionScript 2.0 :: List All The Files Inside A Specific Folder Using Flash 8

Nov 2, 2006

I was wondering if it was possible to list all the files inside a specific folder using Flash 8 Action Script. Just that I have an image gallery that has all the image names in an array. What I would like to do instead is get the image names from the folder they are in. Is something like this possible without the use of a server side programming language like PHP since the flash file will not be on a PHP server.

View 6 Replies

ActionScript 2.0 :: Flash Standalone Menu Open Pdf Files To Specific Pages?

Aug 12, 2010

I need to have my flash standalone menu open pdf files to specific pages.

Is there a way to do this with get url? or some other easy method?

View 1 Replies

ActionScript 3.0 :: Loading Multiple Files Into Movieclip In Specific Order In Scrollbar

Feb 18, 2011

Our site will be built in Actionscript 3.

1. A navigation menu that, when a button is clicked, will scroll the site quickly to a specific Y position using swfaddress.

2. The entire site is controlled by a flash scroll bar, which will be scrolling a single movieclip.

2A. The movieclip will load content corresponding to the navigation categories, all which is organized into zipped files (using this to extract the contents of each section, example: about.zip for the about section of the site)

2B. The movieclip will load multiple zipped files one by one that correspond to the navigation, in order, making the site appear to be very tall.

What we are in need of is understanding how to load multiple zipped files into a movie clip, in a specific order, and having them scroll between one another through the navigation. The separate navigation categories can be in movieclips instead of zipped files if that is easier.URL...

View 2 Replies

ActionScript 3.0 :: Loading Multiple Files Into A Movieclip In Specific Order In Scrollbar?

Feb 18, 2011

We are trying to build a site with these features:

Our site will be built in Actionscript 3.

1. A navigation menu that, when a button is clicked, will scroll the site quickly to a specific Y position using swfaddress.

2. The entire site is controlled by a flash scroll bar, which will be scrolling a single movieclip.

2A. The movieclip will load content corresponding to the navigation categories, all which is organized into zipped files (using this to extract the contents of each section, example: about.zip for the about section of the site)

2B. The movieclip will load multiple zipped files one by one that correspond to the navigation, in order, making the site appear to be very tall.

**What we are in need of is understanding how to load multiple zipped files into a movie clip, in a specific order, and having them scroll between one another through the navigation. The separate navigation categories can be in movieclips instead of zipped files if that is easier.

View 1 Replies

ActionScript 2.0 :: Preload Multiple External Swf Files Into Specific Frames Of Parent File?

Dec 15, 2009

I am trying to eliminate the Loader component from a project. Run locally, the Loader is sufficient to load-up the voiceover swf files that exist on many of the frames in the parent file. On the web, the short download delays at runtime due to the Loader are causing timing issues. I'm not sure if there is a way to preload multiple swfs into specific frames of a parent file so that they are available before runtime.

View 4 Replies

Actionscript 3.0 :: 1046 Error - Sync To Mpr3 Audio Files At Specific Points?

Mar 21, 2009

Following this tutorial: http:[url].....But I keep getting this error message:1046: Type was not found or was not a compile-time constant: CuePointEvent.

how to sync to mpr3 audio files at specific points?

View 1 Replies

ActionScript 2.0 :: Playing Specific Sound Files Based On Letters In User Entered Word?

Nov 19, 2006

I was thinking that it may be possible to create a primitive, yet usable actionscript based text to speech system for Flash movies (One that is platform independent).

Is it possible to right a series of actionscript commands that would play a collection of certain sound files based on what word or words the user has entered?

For example:

If the user types "Red Pen"

Can actionscript tear apart those two words and play sound files "Arr", "ee", "Dee", "Pee", "ee" and "EN"?

If it is possible, and if someone could help me out on it, then I'll start figuring out what phonetic sounds I'll need to record and program, and see if I can't build a simple text to speech program for flash movies.I have no immediate commercial application for it, and I don't plan on one.So if I can pull it off it'll be free to everyone, source code and all. Of course, it may be in my voice, but it shouldn't be hard to take what I plan to do and use it as a template for anyone else's voice recordings.

View 2 Replies

ActionScript 2.0 :: Flash 8 - Load Specific Swf Files When The Screen Is Refreshed Or When Someone Clicks On The Home Or Index

May 29, 2007

awhile back I completed the load random swf tutorial provided here on kirupa. But now I want to load specific swf files when the screen is refreshed or when someone clicks on the home or index. here is the code, can anyone point me in the right direction?

[Code]...

View 1 Replies

ActionScript 2.0 :: Reaching .xml Which On Another Host?

Aug 20, 2009

i got 2 web domains. for example first one isi put my swf in [URL]i can reach the xml file but i cant load photo if photos are in hosts.

View 5 Replies

Actionscript 3 :: How To Get Host Ip In Flex

Jun 26, 2011

When it in PHP, we already know using $_SERVER['HTTP_HOST'] we can a host IP, what if it in AS3?

View 1 Replies

Host Adobe Presenter Presentations On FMS?

May 27, 2011

We are running Adobe FMIS 4.0.  We have five "applications" which host stream video material just fine.  Recently I was asked to host an "Adobe Presenter" presentation (html file, viewer.swf and a file full of xml and swfs) I have spent three days trying to get it to run.  I can link to the Presenter presentation if it is hosted on public network storage, but I can not seem to get it to run under an application in FMS?

View 1 Replies

Actionscript 3.0 :: Load An External Swf In A Host Swf?

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

ActionScript 2.0 :: MP3s Not Allowed With Web Host?

Jul 22, 2003

I use a free web host for a site but they don't allow uploading of mp3 files (they filter and block them)

I want to offer visitors a choice of background music that would have to be streamed or loadMovied'ed as mp3 files, here lies the problem.

I thought a work-a-round would be to have a small empty movie off stage that contained the swf music file but I then thought that someone might have a more elegant solution.

When you use loadMovie to download a swf file into a parent movieclip, what's the best way of initially filling the parent movie BEFORE anything is downloaded, assume you use attatchMovie - is this correct ?

View 6 Replies

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

Media Server :: Creating A Virtual Host In FMS 3.5?

Apr 24, 2009

I've done the following:

created a folder /fmsRoot/conf/_defaultRoot_/stream.example.comcopied in Application.xml and Vhost.xml from _defaultVhost_specified a new apps directory here: /home/stream.example.com/fms_app/ then added

[code].....

View 15 Replies

ActionScript 3.0 :: ContentLoaderInfo Doesn't Seem To Work From Host

Jul 4, 2009

I have a preloader function that uses contentLoaderInfo to load swfs ont the stage. It works fine in simulated download in the Flash Player. When I run it on my host the swf file finishes downloading before the preloader appears to run. I use the word appears because I only sometimes spot a glimpse of a graphic that indicates the loading process.
 
Are there known discerpancies between host and Flash Player realities?
 
Are there any subtlties with using with contentLoaderInfo?

View 8 Replies

Can't Playback Flv From Host Server But Can With Ease From Desktop?

Dec 4, 2009

I gave the wrong url it should have been: [URL]..

View 2 Replies

Professional :: Host Movie - Several Buttons In One File

May 12, 2010

I am creating a Host movie, where 5-6 buttons will be loaded from. However, I am having difficulties coding each button to open an swf file. Here is the code I have to try and load my ipod button.

stop();
ipod_btn.addEventListener(MouseEvent.CLICK,ipod_btn);
function ipod_btn(event:MouseEvent) {var request:URLRequest = new URLRequest("ipod.swf");
var loader:Loader = new Loader()loader.load(request);
addChild(loader);}

However, it doesn't do anything and I get these compiler errors
1023: Incompatible override.
1021: Duplicate function definition.

View 4 Replies

Include Server Host Name In RTMP Address?

Oct 19, 2010

I install FMS on my hosting server (linux).For testing the installation status i opened start screen page and click on stream video (RTMP) it showing error massage like..' The connection timed out.If you are viewing this page remotely, please make sure you are including the server hostname in your RTMP address'.

View 1 Replies

ActionScript 3.0 :: Get The Host Name Of The Computer Running An AIR Application?

Nov 2, 2011

I am writing an AIR desktop application which needs to know the host name of the compute on which it is running.

How do I get the host name?

View 3 Replies

ActionScript 3.0 :: Disable Date Updates From Host

Jul 6, 2010

Is there a way to disable a Date object from responding to a change in the system time of the host computer? currently if i have:

[CODE]....

View 1 Replies







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