ActionScript 3.0 :: Refer To A File In Server?

May 25, 2011

what i have is a sub folder with a swf file... i need the .swf file to refer to a file at the main folder... how can i do that? my structure is like this:

[Code]....

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Refer To External SWF File Using If Statement?

Nov 22, 2011

I have a main swf file that is loading multiple external SWF file when a menu button is clicked. Now I want to target a specific swf file to add an extra child from library or from another swf when that specific swf file is loaded. How should I do that? What should I put within the if statement?

var newswf:URLRequest= new URLRequest("./swfs/"+ event.target.name +".swf");
loader.load(newswf);
addChild(loader); //loading swfs dynamically

[Code].....

View 2 Replies

ActionScript 3.0 :: Refer To Movieclip On Stage Through .as File?

Jun 25, 2009

I have a movieclip on stage, but I want to move it or animate it with the use of an .as file, how do I refer to a movieclip on stage through a .as file?

Is this even possible or do I have to pass the actual movieclip as a parameter to a function of the class?

To make things more clear, here is my code:

Code on main timeline:

Code:
var myBox:Box = new Box();
myBox.x = 80;
myBox.y = 160;

[Code].....

View 2 Replies

ActionScript 3.0 :: Refer To A Movie Clip From An As File?

Apr 13, 2010

i have some thumbnails and a holder on the stage(all are movie clips).clicking on each thumbnails will load an external swf in holder mc.I have made a class for thumbnails,but dont know how to refer "holder mc" from that class, to load those swfs?

View 4 Replies

ActionScript 2.0 :: Refer To A Variable In A Class File Separate From The Other One?

Feb 24, 2010

Is it possible to refer to a variable in a class file separate from the one you are working in? Say Class1.as had a variable named "exampleVar", and in Class2.as you wanted to put something like "exampleVar++;". Is this possible and if so how would it be achieved?

View 1 Replies

Css :: Embedding Font In Flex Locally With A Installed Font Works, But With Url To Refer To A Ttf Font File Doesn't

Feb 7, 2011

I'm trying to embed a font in my project by using url("font.ttf") rather than local("Font Name"), but it doesn't seem to pick it up. The font in question is called "Gotham Bold". When i view the details of the font, the font weight is regular, however when i use local("Gotham Bold") in the css i have to specify fontWeight: bold or else it wont pick it up. But when I use url("folderGotham-Bold.ttf"), and specify fontWeight: bold, it says that font weight is not found for that TTF. If i remove the fontweight, there's no errors, but the font is not applied to the text.

View 2 Replies

Media Server :: Save To File Live Video Stream In Server?

Apr 27, 2009

I use FMIE and FMLE.how can i do save to file Live Streaming in server installed fms, not local system ?

View 1 Replies

Media Server :: Write Bytes Server Side With File Class?

Sep 18, 2009

Does anyone knows if it's possible to write some bytes received from an AIR or Flex client in a server side file using the File class ? I have been trying for hours without any result.My goal is to store on the server side a swf file sended by a client in a ByateArray.Here is the code I have ended with, assuming that myfile.swf alreadey exists on the server prior to the code execution, and is at the right place, and that pBytes is a ByteArray received from the client which contains a swf file :

function writeFile( pBytes )
{
var myFile = new File( "myFile.swf" );

[code]........

View 2 Replies

Media Server :: Dynamicstream.f4m Not Working From Index File Of New Install Of 4.03 Server?

Oct 17, 2011

I'm doing a test install before we update our old server to 4.03.I've got the server software installed and configured (4.03 server, using iis for web).All the test stuff on the sample index page works, except for the dynamic stream tab.I've eyeballed the .f4m file, and tried putting in a complete url to the samples...but no luck.i just keep getting the stock connection timed out message. 
 
Where do i need to look to start confiriming where this issue may be coming from?I've made made sure I can reach all the test videos by making flash players for them, calling them via rtmp... no problems.It's got to be something dumb with either the f4m file, or the way it's being served   (btw, i have added all the mime types to iis , including .f4m as video/mp4....which is one of two ways I've seen it added).

View 3 Replies

ActionScript 2.0 :: Upload File Which Works In Php4 Server But Dont Work Inphp 5 Server?

Jul 15, 2010

i have used the following code to upload file which works in php4 server but dont work inphp 5 server.The flash code is as follows:

import flash.net.FileReference;
import gs.TransformManager;
//Allow this domain[code]....

i am uploading the php file.

View 1 Replies

Media Server :: Run FMS On Same Dedicated Server As Regular File Hosting?

Apr 17, 2010

Im picking up a dedicated server it will be CentOS and be well above the minimum req for FMS 3.5 Interactive.
Question: I want to use my dedicated server for more then just the FMS. Is this possible? Basically I want to use the same server for FMS and for the file hosting of my site. Obviously I would give it a different IP but am not sure what I will need to do specifically

View 3 Replies

Python :: Flex Mxml File Being Run On Server As Swf / Html File Be Made Non Cachable?

Apr 28, 2011

I have a application developed in flex deployed on server. In the application data is filled by user and saved in cookies so as to be available even when the user closes the application. However if new version of application is released the user can still access the older version saved in the cahe. How can it be assured that whenever a new version of application is released the application is loaded from the server and not from the cache and at the same time data saved in the older version (in cookies) can also be accessed in the new version.

View 2 Replies

Media Server :: Connection Failed When Loading .asc File On Main.asc File

Jan 6, 2011

Got a really big problem here. I keep on getting "NetConnection.Connect.Failed" when I load a .asc file on my main.asc file, i use the method load() in my code. I really don't understand why this happens, but when i comment out the code that loads the asc file, I can successfully connect to fms. I can't figure out what's happening here. Btw, i'm using fms4 in windows 7 32bit.

View 6 Replies

Media Server :: Setting File Name Of Captured File In DVRcast application

Jun 29, 2011

I've looked through the scripts in the scripts/ directory, but haven't seen anything obvious.

I would like to be able to specify the file name to capture the stream to. At present, the capture file is always named the same as the stream, which means if I stream for a bit, stop, then restart, the originally captured file gets overwritten. I'd like to be able to incorporate something, i.e. the stream start time, into the capture file name.

View 3 Replies

Media Server :: Advantage Of Writing A SSAS File Over An External AS3 File?

Jul 23, 2011

I do understand the differance between ssas and as3. Not all, but all most everything I see written in SSAS can be writen into a external AS3 file. This leads me to quite a few questions I'm hoping you kind people can shed some light on for me.
 
1)  What is the advantage of writing a SSAS file over an external AS3 file?
 
2) Can I write an .asc file in AS3 or do I have to use AS1? Please understand I'm using tuts from fmsguru.com and the books "Learning Flash Media Server" (pdf) and "Programming Flash Communication Server". I'm not a javascript programmer so nothing I do in AS1 seems to make any sence while everything I do in AS3 does. It may not seem like it to you people that are programmers, but to those of us that aren't, AS1 and AS3 are miles apart.
 
3) kind of off topic, but a security question. I'm not a "hacker" and don't like the jerks that are. My question is on external AS / SSAS files and swf files. When my fla is compiled into a swf does my external AS files remain external? I assume they do, but then what is the threat of the swf being decompiled? In most projects I would do I could care less if somebody had access to my fla as long as they don't have my actionscript files.
 
I don't know. Maybe on questions one and two I'm getting confused becasue I'm using out dated material. Again I assume that even though fms was built off of the javascript engine it should be able to read and execute my AS3 file. Other wise what was the point of the evolution of actionscript into a fully functional programming language?

View 1 Replies

ActionScript 3.0 :: Let My Local Running Swf-file Access A Xml-file That Is On A Server?

Mar 9, 2011

How to let my local running swf-file access a xml-file that is on a server?

I have been to the "Global Security Settings panel" but dont really understand.

View 2 Replies

ActionScript 3.0 :: Upload A File On Server Using File Class

Feb 21, 2012

I am trying to upload a file on server using File class. Its working fine on local machine. But when i a placing the php file on server, it is giving Error #2038: File I/O Error.

[Code]...

View 0 Replies

ActionScript 2.0 :: Refer To A Url?

Jun 10, 2010

How do you refer can i refer to a Internet url in actionscript 2

View 4 Replies

ActionScript 3.0 :: Classes That Refer To Each Other?

Nov 24, 2008

I'm having trouble getting classes that refer to each other to compile:

package People {
class Pairing {
var Father:Person;
var Mother:Person;

[Code]...

View 3 Replies

ActionScript 2.0 :: [FMX] Refer To A Certain Layers X Value?

Dec 4, 2003

Is there any way to refer to a certain layers x value, or visibility, or any of those? And if not, what is usually done to preform an action on a whole layer? Should I just make a new symbol out it?

View 2 Replies

ActionScript 2.0 :: Refer To An Array From Within It?

Sep 3, 2004

How do i refer to an array name inside an array?[code]...

Now i need something like stuff=array1[3]; (this makes an array called stuff which is a copy of array2, hopefully) and then myvar=stuff[3] (which is "succes").. get it?

View 4 Replies

ActionScript 2.0 :: Multiple Swf's Refer To One Xml Doc?

Nov 23, 2007

Is it possible to have one xml doc for more than one swf, so that i would only need to edit one xml doc as opposed to 12?

View 4 Replies

ActionScript 2.0 :: [FMX] Refer To A Certain Layers X Value

Dec 4, 2003

Is there any way to refer to a certain layers x value, or visibility, or any of those? And if not, what is usually done to preform an action on a whole layer? Should I just make a new symbol out it? And what effect does groups have in actionscript?

View 2 Replies

Media Server :: Convert A .mpg File To .flv File?

May 1, 2009

I can convert .mov to a Flash file, but I can't even get an .mpg file to open.
 
Is there anyways I can convert this using Flah CS3 or any freeware that exist out there?

View 5 Replies

Compare A File In Cache With File In Server?

Feb 14, 2011

I have a flash movie that displays a list of movies. It uses an xml file to get this list.The xml file changes frequently.I'd like to know if there's a way with JavaScipt, to compare the xml file in the cache and the one in the server, if they are different, the script alerts the user and then refreshes the page.

View 1 Replies

Refer To Balls That Are Created By DuplicateMovieClip?

Dec 12, 2008

I have balls (...sounded pervert) that are created by duplicateMovieClip, yes, they spawn, but right on top of each other, and I don't seem to be able to do anything to them, I tried ball+i.onEnterFrame = function(){} typed in several different ways ("ball"+i, ["ball"+i] etcetc...) And I just couldn't find How to refer to them. i'm trying to spawn them to random positions and make them move in random directions (got the moving part already coded but like I said I can't name them -> can't use it atm.)

Short version: How to refer to balls that are created by duplicateMovieClip?

View 2 Replies

ActionScript 3.0 :: Refer To Object On Another Timeline?

Oct 1, 2009

I have a container movie which loads another movie into a Loader object which then gets added to the main timeline. The loaded movie has a main class which controls all the other classes in that movie. The container movie has one other element - a scrollbar which scrolls the loaded movie (which is longer than the container) up and down.

When content changes in the loaded movie I need to pass a message to the scrollbar. If I trace parent.parent.parent from the init() function of the loaded movie it traces [object MainTimeline]. My scrollbar, sBar is a direct child of the main timeline, but tracing parent.parent.parent.sBar doesn't work So how can I pass a reference to the scrollbar to the loaded movie? Here's the code in the container movie:

PHP Code:

var ldr:Loader = new Loader();
var sBar:Scrollbar;
ldr.contentLoaderInfo.addEventListener(Event.INIT, initHandler);

[code]....

View 3 Replies

ActionScript 3.0 :: Refer To Movieclip Within Array

Mar 16, 2010

I have an array that movieclips are added into depending on the users actions. When they are added to the the array, they are also added to the display list of another movieclip on the stage.I'm trying to refer to them later so I can remove them from this movieclip's display list, but I can't work out the wording.[code]

View 2 Replies

ActionScript 3.0 :: Refer To The Stage From A Class?

Jun 7, 2010

I have a class that places objects on stage with addChild(obj) it allowes me to position objects using pixels( say obj.x = 10; obj.y= 50; ) just fine but if
I try this:  obj.x = stage.stageWidth / 2;  I get a message that I Cannot access a property or method of a null object reference

View 4 Replies

ActionScript 1/2 :: Refer To A Movieclip Within The Root?

Jul 15, 2010

I am using the load movie from my main file (main.swf) as:
 
mc_zoom.loadMovie("detail.swf");
  
I then have a loader as a movieclip with the detail.swf
 
when the movie (detail.swf) is loaded the preloader I am trying to make/set the play to go:
 
_root.gotoAndStop(2);
 
But this does not work - it works locally but when used with the main file (main.swf)

View 5 Replies







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