ActionScript 2.0 :: Dynamically Changing Base Folder Of App At Runtime?

Nov 17, 2010

I have a flash file in folder "/" which loads another flash file in folder "/xyz/". The second flash file will load several resource files on its own. Now flash is looking for the resource files at the base folder "/" and instead of the other loaded flash's folder "/xyz/". The second loaded flash file is provided by a third party and can't be modified. Is there any way to dynamically change the base folder of the "application" at run-time? I've heard about the html swf tag "BASE" so I've tried loading the second flash file with a ".....?BASE=/xyz/" but it doesn't work.

View 0 Replies


Similar Posts:


Professional :: Dynamically Changing Stage Size On Runtime

Mar 31, 2010

I need to change the stage size dynamically. When I try to do this?
size_mc.onRelease = function(){
trace(Stage.height);
Stage.height += 100;
trace(Stage.height);}
It comes always the current stage size.

View 3 Replies

Flex :: Changing Image "source" Dynamically In Runtime?

Mar 12, 2010

i am trying to modify during runtime an image in my application, this image is located inside assets folder, so thats why i dissable -use-network=false flag, then i call something like this:img.source="../assets/pict.png";but it's not working.

View 1 Replies

ActionScript 2.0 :: Loading External SWF And JPG Using Base Folder

Oct 21, 2004

My Flash app doesn't work in FireFox (but works in IE). The problem I know is associated to loading external SWF and JPG files when using a BASE folder. Without the base folder it works fine. Here is some syntax I use:
[On Frame 1 of the base SWF, i.e. one frame before the preloader frame:]
....
_root.logo_mc.loadMovie("FlashFiles/Logo.jpg", "GET");

This file never gets loaded into the BaseApp.swf. The object html tag looks something like this:
<OBJECT....
<PARAM NAME=movie VALUE="[URL]">
<PARAM NAME=menu VALUE=false>
<PARAM NAME=quality VALUE=high>
<PARAM NAME=bgcolor VALUE=#FFFFFF>
[Code] ....
What's the easiest resolution to get it working in FireFox as well as IE?

View 3 Replies

ActionScript 3.0 :: Set The Base Class Of A Library Asset At Runtime?

Mar 27, 2009

I'd like to set the base class of a library asset at runtime,rather than specifying it before. Is this possible? I'd like it to just extend movieClip, but at runtime change that to extend a custom class.

View 1 Replies

Actionscript 3 :: Pass A Base Path To A Swf Loaded At Runtime?

Nov 11, 2010

I have a main.swf which loads a module.swf and the module.swf loads some assets.The module.swf works standalone and also needs to work when loaded by main.swf.But unfortunately the module.swf can't find the assets when loaded by main.swf because the assets aren't located relative to the main.swf, but are located relative to the module.swf.As I can't touch the module.swf and I'm also unwilling to change the directory structure, I am looking for a solution close to the a "base" parameter which can be used when a swf is embedded into html

View 3 Replies

ActionScript 3.0 :: Finding A Flash Library Object's Base Class At Runtime?

Feb 9, 2009

determine the base class of a Flash library object at runtime, using Actionscript? The toString method gives me the class of the object, but what I'd really like to determine is the superclass of the object. So, if I have an Actionscript class called "Fruit" and I created many different Fruit types in the Flash library ("Cherry", "Apple", etc.), is there a way in code I can determine that an "Apple" is a child of "Fruit"?

View 2 Replies

ActionScript 3.0 :: Changing Base Class Permanently In Flash

Dec 28, 2010

For some reason Adobe doesn't allow us to change the size of the handle in the default slider component. This handle is small and hard to click on quickly. If you try to increase the size of it graphically it just gets resized back down to 13x13 pixels. I've looked into the Slider.as code found in:

Program Files(x86)/Adobe/Adobe Flash CS4/Common/Configuration/Component Source/ActionScript3.0/User Interface/fl/controls/Slider.as

And found that on line 803 there is the code thumb.setSize(13,13). I tried changing that to 60,60 but it doesn't change the size of the handle. I don't know much about classes and I didn't think you had to compile these. I thought that in Flash when you clicked on the Components button that it loaded these classes in at that point but I must be wrong.

ActionScript Code:
override protected function configUI():void {
super.configUI();
thumb = new BaseButton();
thumb.setSize(60, 60);
[Code] .....

View 5 Replies

Flash :: Changing The Direction Of A Ball On Collision Base On Speed

Jan 4, 2010

I am creating a ping pong game. And I want to create the ability to control the direction of the ball based on the impact on the paddle. If the ball is coming down at vy = 4; vx = 4;

and the paddle is moving to the left at vx = -5; I want the ball to slightly change its course depending on how fast the paddle is moving. It would probably reduce the balls vx speed on collision, therefore making the ball move more straight (close to the Y axis) when it is moving back up.

I figure the solution for probably doing this would be to measure how fast the paddle is going. My problem is the paddle is controlled by the mouse and has no certain speed. I am trying to figure out how I can measure the speed of my mouse traveling on the x axis.

I am probably going to create a timer that fires every few seconds to determine where the mouse was and where it is at. figure the difference and that will be the speed

View 3 Replies

Changing The Depth Of A Folder?

Nov 13, 2009

I have a movie clip that has about 20 layers that make up four different groups. (Five of the layers work together)Any one of the four groups has to come to the front of the others at any time.Is there an easiesh way to swap depths of these groups?EG. Can you swap a folders depth for example?

View 1 Replies

Flash :: MovieClips Don't Keep Their Base Class If Childed To A Movieclip That's Added Dynamically

Dec 19, 2010

I have a holder movieclip, its base class is foo.[code]I put a trace in the constructor of bar so I can tell if it's being loaded properly, and when I drag out foo onto the scene and run the clip, all the little bars within it fire off correctly. However, when I add it to the scene dynamically, such as like this in the Main class:[code]Suddenly, all the little bar movieclips within foo revert to regular old movieclips and don't fire. What's interesting is if you typecast one them as Bar at some point, and their normal class is set to Bar (within the movieclip itself, rather than base class), it works and the constructors all fire, like this:[code]However, if you want multiple different types of Bar clips, and give each a base class of Bar, this won't work. They all spawn as generic movieclips. It DOES work if you go through and typecast them as either Bar1 or Bar2, but that means in practice you would have to try to typecast every child as every top-level object type every time you added the clip to the stage. You also can't have a bunch of movieclips of the same type since Flash doesn't allow it, so each one needs to be a new class, and have that class typecasted when the parent is placed on stage. Kind of defeats the purpose of OOP.

This seems to be a bug in Flash itself, but is there any way to fix it?You can download an example file here with a couple extra traces to show off what's going on: url... It still has its children, they're added and displayed, but their type changes to MovieClip, ignoring the base class.

View 1 Replies

Media Server :: Changing The Default Path Of Application's Folder In Fms?

Jul 24, 2009

Actually I am the application is for recoeding live stream. The recorded videos are placing in the folder named live_test as specififed above.But I want to change this path. There is a folder named public in the root directory. In the "public" folder  we have a folder named Recorded_Videos, I need to place the recorded videos on this folder. How can I do this.Another issue that occurs while recording is NetStream.Record.noAccess. This is occuring while the recorded video is placing on client's flash media server with the path that i specified above. But when i running it in the local flash media server(developer version), its working well. The recorded files are placed on live_test folder. In the client's server the stream is not recording, instead its showing  an error like "NetStream.Record.noAccess". The code that I am using for recording live stream is follows:

stop();
var nc = new NetConnection();var CommPage = 'http://68.233.8.57/videos/destination';System.security.allowDomain(CommPage);

[code]....

View 3 Replies

Professional :: Instance Name Changing At Runtime?

Jan 19, 2012

I have a FLA in which I've added three movie clips, each with a unique name. I've set the MC name through the properties panel as well as giving the MC a name when converting it from a image to a MovieClip (by clicking F8).

When I run the swf and output the names of the children in the swf, I find that the name of one of the MovieClips changes, for example from myFirst_MC to instance8.

To output the MovieClip names I loop through all the children of the swf and output the name like this:

for(var i:uint=0;i<numChildren;i++){
var display:DisplayObject = getChildAt(i);
trace( display.name );
}

Why does the instance name of a MC change? And how can I stop this from happening?

View 1 Replies

Professional :: Changing Frame Rate At Runtime?

Mar 28, 2008

I just went to the site www.aroots.com, according to its interface, the frame rate (fps) is changing.

is it possible to change the frame rate at runtime?

View 6 Replies

Flex :: Changing Css Properties For Selector At Runtime?

Oct 27, 2009

I have a css that defines de skin-class for a custom component, like this :

view|PlaceHolderView {
skin-class:ClassReference('view.skin.PlaceHolderSkin');
}

Is there a way to change that value at runtime, so that all instances of the component switch skin?

View 1 Replies

Actionscript 3 :: Changing 'top' Property At Runtime In Flex?

Feb 9, 2010

In the follow Canvas, how do I change the property top at runtime?

<canvas top="10"/> I tried:

<canvas top="{ topVariable }"/>

But the binding doesn't seem to take effect. How can this be achieved?

View 4 Replies

Flex :: Changing Enabled Value Of Button During Runtime

Jun 15, 2010

I want to make a button disabled if a datagrid is empty and it should be enabled when there is atleast 1 entry. The entries in the grid are made at runtime. I tried this this is the button:
<mx:Button id="update" label="Update Contact" enabled="{isButtonEnabled()}"/>

And the function is defined as where dg_contact is the datagrid:
public function isButtonEnabled():Boolean {
if(dg_contact.selectedIndex==-1) {
return false;
} else {
return true;
}}

View 1 Replies

Flash :: Changing A Library Symbol At Runtime?

Apr 18, 2011

I have a problem and I'm not really sure where to start. What I have is an animation of a character in the library. The Character is made up of a few movieclips for the body that move about and one for the face that holds a stock photo.I have a camera section that grabs an image of the users face and now what I need to do is swap the stock face photo for the one taken in the last scene.

View 1 Replies

Actionscript 3 :: Changing The Stage Size During Runtime?

Mar 23, 2012

Can we change the stage size during runtime?

I need to change the size of the stage dynamically during the runtime when the swf receives a flashvar from the html page. Can this be done?

View 2 Replies

ActionScript 3.0 :: Changing TextField Font At Runtime?

Jul 29, 2009

change the font of a Textfield at runtime. I know how to embed fonts into an SWF and I know a little bit about the TextFormat() Class, but I can't seem to be able to change fonts when there is text already in a dynamic or input TextField

View 3 Replies

ActionScript 2.0 :: Changing Global Var On Runtime From Within Button?

Apr 26, 2005

I've been playing with writing a simple script that would entirely depend on a few variables declared right on top of it. Is there a way of changing them (in my case values of p, q, a & b) with a button if the button is part of the script? Here's the script (just copy and paste entire thing into the first frame);

[Code]....

View 2 Replies

Professional :: Changing Color Of An Object On Stage During Runtime?

Mar 4, 2010

I was wondering if there is a way to change the color of an object during runtime.

View 1 Replies

AS3 :: Flash - Setting Changing Class Type At Runtime

Mar 14, 2011

i have a class and trace its type with flash.utils.describeType(this)

class Data extends EventDispatcher
{
public function Data()

[Code]....

Is it possible to override this information e.g type.@isDynamic, as well as extendsClass.@type, at runtime? without bytecode?

View 5 Replies

ActionScript 3.0 :: Changing Pixel Bender Values At Runtime?

Sep 30, 2009

I've being playing around with a pixel bender tutorial from hereI implement the filter like this

Code:
var shader:Shader = new Shader(new KernelClass() as ByteArray);
var filter:ShaderFilter = new ShaderFilter(shader);

[code]........

View 1 Replies

ActionScript 2.0 :: Changing The Thickness Of The Line Being Drawn At Runtime?

Apr 17, 2007

I am working on a interactivity wherien i draw lines using a pen/pencil just as in MsPaint application in Microsoft. Ia m done with the pencil/ pen tool and its working fine but I basically want to change the thickness of the line at runtime by using a slider functionality.

Code:

drawing_mc.lineStyle(1, 0x99CC00, 100);

View 1 Replies

Php :: Automating Folder Structure Dynamically?

Sep 2, 2009

I want to create a folder structure through Flex or AIR... is it possible? I mean the Flex or AIR will receive the inputs on what the folders and file names will be and when i press create, it should create a directory structure...

It is possible in PHP through fileSystem, but i am not sure whether it is possible in FLex or AIR....

View 1 Replies

ActionScript 3.0 :: How To Load Image From Folder Dynamically

May 14, 2008

I wanted to load image from a folder. I wanted to load the last 30 images to the stage. How can I do it?

ActionScript Code:
var l:Loader;
var r:URLRequest;
var loc:String = 'cards/card%.png';
function loadCardNum(n:int):void {
l = new Loader();
r = new URLRequest(loc.replace('%',n));
trace("Will load card from: "+loc.replace('%',n));

Currently the code I'm using can only load picture with the file name starting from 0. And it will stop loading the image if there is any image missing between the 30 images. How can I make it load from the last 30 images uploaded and enable to continue load in the images if there is any image missing in between? I have the limit of 30 set on somewhere else. Where it will stop loading after it reached 30.

View 1 Replies

ActionScript 2.0 :: Dynamically Loading Pictures In A Certain Folder?

Oct 18, 2004

Hello again. Well I dont have too long to write this down so I'll make it short and sweet. Heres the problem.I need to load pictures into a file. However I want it to load all the pictures in a certain folder. Does anyone have any suggestions, or questions as to what i am trying to do? I want to load pictures into the movie at runtime. And I want it to load all the picture within a folder. I could name the pictures in a certain way if needed. aka pic1, pic2.

View 2 Replies

ActionScript 2.0 :: Dynamically Load The Contents Of A Folder

Oct 8, 2005

i am trying to dynamically load the contents of a folder (containing swf`s) into a flash movie and order them into a list based on there file names.

View 4 Replies

ActionScript 2.0 :: Load Fonts Dynamically From A Folder?

Apr 12, 2007

i'm making an application in flash and my client simply wont agree to anything but this. the application should be able to load fonts dynamically from a folder. it could be on the server. i'm prepared to use php if its necessary.

the tool is supposed to give the end user a wide range of choices for fonts for the text he enters.

View 11 Replies







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