ActionScript 3.0 :: Target An External File Located Up One Level

Feb 25, 2011

I was trying to upload an external .txt file which is located up one level from my .fla file but I couldn't make it work, this is what I have...

This code works just fine if I put my external .txt file in the same folder as my
.fla

var myRequest:URLRequest = new URLRequest("MaterialRef.txt");

but when I try something like... where the .txt file now is in a folder called "Materials" which is located up one level, it just doesn't work.

var myRequest:URLRequest = new URLRequest("../Materials/MaterialRef.txt");

View 6 Replies


Similar Posts:


ActionScript 3.0 :: Target An External File Locate Up One Level?

Feb 25, 2011

I was trying to upload an external .txt file which is located up one level from my .fla file but I couldn't make it work, this is what I have...This code works just fine if I put my external .txt file in the same folder as my .fla

ActionScript Code:
var myRequest:URLRequest = new URLRequest("MaterialRef.txt");

but when I try something like... where the .txt file now is in a folder called "Materials" which is located up one level, it just doesn't work.

ActionScript Code:
var myRequest:URLRequest = new URLRequest("../Materials/MaterialRef.txt");

View 0 Replies

ActionScript 2.0 :: Changing Level / Target Of New Movie Stop Old File From Playing?

Jun 27, 2003

[code]That is the code used to solve the cache problems, but i dont' really get the second line. How does changing the level or target of the new movie stop the old file from playing?!i also searched what "?" does in flash, but i couldn't seem to find it.

View 3 Replies

ActionScript 2.0 :: Load 'sample_mc1' To A Movieclip Located In A External Swf File?

Aug 7, 2009

i know that:

sample_mc1.loadMovie("example.swf",1)
//will load "example.swf" into the current "sample_mc1" of the same swf file

however how can I load 'sample_mc1' to a movieclip located in a external swf file?

View 4 Replies

Actionscript 3 :: Access Function In External Class Located In External Swf

Oct 22, 2011

I am trying to access a function in a loaded swf that has external class.. I would like to avoid having to put the function on my "Main" Doc class in the external swf and instead access the function directly from the class

This is what ive tried so far and it's a no dice:

private function startLoad(){
var loader:Loader = new Loader();
var req:URLRequest = new URLRequest("one.swf");

[Code]....

View 1 Replies

ActionScript 3.0 :: Call Root Level Function And Variables From External Loaded Swf File?

Jul 15, 2010

I have small issue in as3.  I am load "mainmenu.swf" file into "main.swf". through loader class. so now "main.swf" is parent "mainmenu.swf" file children how can call "main.swf " variable & function from "mainmenu.swf" .

View 2 Replies

ActionScript 2.0 :: CS3 Loadmovie Into Target Mc - Not Level?

Apr 5, 2009

got a file that contains scripting that creates and animates a carousel effect in a faux 3d space - it all works great on a mac and some pc's but on a lot of pc's it doesn't play nicely! i have added some script to carousel script so if the carousel item is clicked it rotates that item to the front and then loads the specified swf into level 1

pc's don't seem to recognise the alignment of the loaded swf and brings it in half cropped off the screen - appearing in the top left of the stage area.how do i tell the loaded swf to centre in the middle of the stage just like the rest of the elements in the movie? how to make the target mc sit at the highest level/depth - in other words above the carousel? this is my onclick script:

Code:
function released()
{
output.text = this.txt_label.text + " has been selected";[code].........

View 1 Replies

ActionScript 3.0 :: Target The Event To The Second Level Of Sprite?

Sep 21, 2011

If i have a container, with some sprites and this sprites containes other sprites, wich is the best way to target the Event to the second level of sprite?
 
Container:
 
- sprite1 ---> contain n sprite
- sprite 2 --> contain n sprite
- sprite 3 --> contain n sprite[code]....

View 7 Replies

ActionScript 2.0 :: Possible To Change Target Level Of MovieClip?

Feb 9, 2007

is it possible to change the target level of a MovieClip? So I have two instances of the same MovieClip, both on level0.[code]Basically, now btn2 will disappear, and btn1 will remain visible.

View 1 Replies

ActionScript 2.0 :: Load One Xml File To Swf File That Located In Different Servers?

Aug 21, 2008

i want to load one xml file to swf file that located in different servers...

like

[URL]

but i have only one xml file that update of those flashes..

how i can to do allowdomain to the xml file?

this is what i have and it's not work

Code:
System.security.allowDomain("www.studiomor.com");
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("http://studiomor.com/upload/google_AD.xml");

View 2 Replies

ActionScript 2.0 :: F8 Pause Music Located In An External SWF

Jan 18, 2010

I have a site that loads an external mp3 player. Now I want to pause the sound when the "video" button is pressed. In the mqin swf file, there is a movie clip called "MP3_Player", in that clip is the loaded mp3 player. I used this method to call the mp3 swf file.[code]Now what path/s do apply to the button in the main swf file to get the music to pause.

View 2 Replies

Media Server :: Play A FLV File Located In A Second FMS?

Jun 23, 2009

How to play a FLV file located in a second FMS not directly accessible by the flash client?

- I am publishing an audio stream from the flash client to a FMS;- This FMS then publishes the stream to a second FMS, which records the stream to a FLV;

How can I play in the client the FLV audio file that I recorded in the second FMS?

- The first FMS is accessible by the flash client, but the second FMS is only accessible by the first FMS.

View 1 Replies

ActionScript 3.0 :: GotoAndPlay Another .swf File Located In The Same Folder?

Apr 1, 2011

Im trying to write a function that used to work real wll in AS2

on(release){
loadMovie("name.swf", _root;
)
 
This script would load a swf movie located in the same folder as "the calling swf)
The calling movie "unloaded" and the loaded movie "name.swf" would load up by itself.
 
I have tried different functions in AS3 including

//Name of the button: back
back.addEventListener(mouseEvent.CLICK,mouseClick);
function mouseClick(event:MouseEvent):void {

[Code].....

View 8 Replies

ActionScript 3.0 :: Crossdomain Policy File On Root Level Cannot Be Deployed On Root Level? 

Jan 14, 2009

Situation:

- We have a Flash application located on a SAP EP (let's say ep.x.com)

- We have a SAP ABAP Application (Webservices) on a SAP WebAS
server (abap.x.com)

- Clarification: This is not about Flash islands / but a normal Flash application communicating with WebAS ABAP via WebServices

Problem: Due to the changed security policy in Flash 10 this scenario does no longer work.

- A crossdomain policy file on root level cannot be deployed on root level

- The WebServices http/s headers cannot be modified, since the WebServices are generated by the WebAS IDE.

Comment: Technically there is a way to patch a WebAS ABAP,but this is not a practical / acceptable way in a normal SAP WebAS infrastructure.

Conclusion:- The above scenario (Flash from EP content / WebAS ABAP as backend) is a quite normal scenario in the SAP world.

- SAP / Adobe always features the close relationship between their technologies.

Question:- What could we do?

- How does the Visual Composer works around that problem?

View 1 Replies

Php :: Check Where Is Located Flash File Sending Request?

Apr 5, 2012

I have a flash file that is located on my website and I have a php file wich gets requests from flash file every 5 minutes. I want to be shure that flash file wich is sending request is located on my website and not somewhere else. How can I do it. Is there anything in PHPs global variables?

View 2 Replies

ActionScript 2.0 :: Play .wav File Located On The Client Side?

Jun 21, 2004

I would like to know whether is it possible that Actionscript play .wav files that are stored on the client side? If yes, how? Otherwise, what are the alternatives to enable playback of wave files on the user's computer? I plan to create a button that will playback pre-recorded speech(mp3 format stored in the server) as well as user recorded speech (.wav format stored on the client side after user recorded the speech). How can I do so? I would want to make it away that it appears like a Q&A conversation session between the computer (mp3) and user (recorded wave).

View 5 Replies

ActionScript 3.0 :: Accessing File Located On A Separately Mounted Volume (mac)

Oct 24, 2008

This is not web-based. It is a projector file running locally off my my hard drive and connecting to files on another server on my network.

I'm trying to link to this file through the following code:

loader.load(new URLRequest((path == null) ?
"file:///10.10.100.255/my_file.xml" : path));

(obviously that IP is not real)

but it can't see it. However, it works fine connecting locally.

Does URLRequest not work for finding files on another server?

View 1 Replies

Flash :: Passing Arguments Into A Function Located In A Separate File?

Jun 24, 2011

I'm an AS3 noob who is trying trying to get more comfortable with passing arguments into functions.why when the following code is all in one AS3 file as seen below it works and draws the purple square...

package{
import flash.display.*;
public class Main extends Sprite{[code]............

Flash CS5 gives me an error message 1137 saying that it was expecting only 1 argument in the code line --> Fill(square_commands, square_coord);I need to pass the arguments square_commands and square_coord into the function in the second AS3 file?

View 2 Replies

ActionScript 2.0 :: "Target Not Found" - Building Stacks Of Buttons Dynamically Then Labeling Them From An External Text File

Dec 2, 2008

So I'm trying to get cute again by building stacks of buttons dynamically, then labeling them from an external text file. The code I have so far is as follows:

[Code]...

But I keep getting the error message: Target not found: Target="undefined" Base="_level0" I'm not sure what this means.

View 3 Replies

ActionScript 2.0 :: Cannot Get The Script To Open An External Swf Into A MC (named "container") That Is Located On The Main Timeline

Mar 20, 2005

Problem: cannot get the script to open an external swf into a MC (named "container") that is located on the main timeline Desc: MC "container" is located on main timeline... button is housed within MC "clipAbout" which is located on main timeline

Code:
on (release) {
if (_root.currMovie == undefined) {
_root.currMovie = "pages/about";
_root.container.loadMovie("pages/about.swf");

[code]....

View 2 Replies

ActionScript 2.0 :: Load Another File In The Quicklinks File To A Level

Apr 24, 2009

I have a movie from this directory "childmovies/quicklinks_menu.swf" which is loaded using loadMovieNum into level 3, in the root file. I am then trying to load another file in the quicklinks file to a level. This is called contact_us.swf. Im just getting confused as to how to load this contact_us.swf movie. with all these levels involved.

View 1 Replies

ActionScript 2.0 :: Unloading 2nd Level External Swf?

Aug 18, 2011

i have a main swf...from the main swf, an external swf is loaded which is a SubMenu.From the Submenu, a SECOND external swf is loaded. I would like a button that closes the SECOND external swf, but the submenu remains.

View 3 Replies

ActionScript 2.0 :: Transition B/w External SWF's On Second Level?

Nov 22, 2005

I am trying to use the code to make a top level navigation with subnav options.I have gone to the next level "_root.container.containerContent"For this subnav, I have got the SWF loading, but then it will not transition to the next SWF at the subnav level.I am not really sure which parts of the code need to changed, but I know that what I have changed allows the SWF to load, just not transition.This is a sample of the button code:

Code:
on (release) {
if (_root.container.currMovie == undefined) {

[code]......

View 1 Replies

ActionScript 3.0 :: Bring The External .SWF To A Desired Level, Which Is Always On Top?

Oct 29, 2011

The following code works fine but always this external .SWF file stays on Top ot other Layers. How can I bring it down to the desired level (Say, if I have 10 layers and I would like this external .SWF on 5th layer).

[code]var mySwf1:SWFLoader = new SWFLoader("AnalogClock.swf", {width:225, height:225, container:this, onComplete:completeHandler1});
mySwf1.load();

[Code].....

View 7 Replies

Css :: Overriding Tag Level External Flex Control

Jul 21, 2009

I have an external CSS file which defines the style for the Button tag.Button {fontSize 11; blah...}I'm trying to override this style for the buttons of a ToggleButtonBar:<mx:ToggleButtonBar dataProvider="{pm.portalNavigation}" fontSize="16" />Unfortunately, this doesn't seem to work. The fontSize stays at 11. How can I override the external CSS to resize the buttons in my ButtonBar?

View 2 Replies

ActionScript 2.0 :: Loading An External .swf Movie On The Top Level?

Jan 10, 2003

how do I load an external .swf files in order for them always to load on top of the one loaded previously. I've tried to put all of them in the same level but the transition is abrubt. I want the transition to be smooth and each .swf file to load on top most level.

View 3 Replies

ActionScript 2.0 :: Random Loading Of External Swf Files Into Level 2

Nov 10, 2011

I've got main time line as Main.swf (level 0) and few external swf files: Message_01, Message_02, Message_03 etc.By the end of the main time line there is a key frame with the script (AS2).The script should call randomly one of the external swf and load it to level 2.

View 5 Replies

ActionScript 2.0 :: Setup To Load An External .swf To Level 1 When The Movie Is Finished

Feb 7, 2007

I'm using xml to load .flvs into a movie player. I have it setup to load an external .swf to level 1 when the movie is finished. My goal is to have the .swf on level 1 select the next .flv from the xml array by way of simple buttons. Needless to say, it's not working. Anyone care to give it a crack?

[Code]...

View 3 Replies

ActionScript 3.0 :: Linking External Swf - Stop The Graveyard From Playing Once The New Level Is Accessed?

Apr 1, 2011

I am creating a vertical shooter game for one of my assessments. There are 4 levels in the game, the object of each level is to shoot as many enemies (spawn via an external as file) to build up your score before the time runs out. Once the time reaches zero, you get linked to the next level. The first level is called the graveyard which has skulls as enemies. Once the time reaches zero, this swf automatically links to the next level which is called haunted_house.swf. The only problem is the skulls from the first level continue to spawn on the new level. How do I stop this? The coding for the timer and to link the first level to the next is below:
 
[CODE]...

View 2 Replies

ActionScript 2.0 :: Create A Level Select Screen So The Buttons Unlock Complete A Level?

Apr 22, 2011

im trying to create a level select screen so the buttons unlock as you complete a level, so far i have this on each button:

on(release){
if(this.number <= currentItem){
gotoAndPlay(3);
}
}

[Code]...

View 0 Replies







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