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


Similar Posts:


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

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

Locate And Check The Date Of An External File (either .exe Or .swf) And Return That Date String To A Variable In Flash

Dec 11, 2009

I'm using flash CS4 and actionscript 2.0. I have a situation where I need to locate and check the date of an external file (either .exe or .swf) and return that date string to a variable in flash. I then need to display that date to a piece of dynamic text within the flash file. Is there a function within action script that will check and retrieve the file date of an external file.

View 4 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 :: Preloader Can't Locate File

Jan 23, 2010

I'm in the process of migrating my 1st flash game from my PC to a web site. I have a preloader that will load a couple of .swf files to start but it stops when requesting the 1st URL.

Here is my code:

var l1:Loader = new Loader();
var l2:Loader = new Loader();
var completeTimer:Timer;

[code]...

This is not the entire preloader file, just the part until it halts.

Is it possible that I need to publish with specific settings? After all, everything was working fine until it was copied on the server.

View 2 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 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

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 :: 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

ActionScript 2.0 :: Tell Target For External Swf?

Sep 25, 2004

Ok. I have a main flash movie (to be the base site actually) that loads 4 preliminary swf's.One of them is the top nav bar. Basically there are small squares on the main flash movie where the movies should load. They replace the squares and load perfectly. What i want to do though is when i press a button in a movie in one square, on release, it tells another square on the main flash to load it's movie.P.S. I did not attach the actual flash files becuase, for one they are too big, also there are way too many layers and stuff for anyone to be able to back track through my sloppy work. I did however attach the swf's and a jpeg outline of the square loaders im talking about

View 3 Replies

ActionScript 1/2 :: OnLoad Working At _root Level But Not At Mc_target Level?

Aug 26, 2010

I have two layers in my FLA both with empty movie clips as follows:In mc_Empty1, I attach a faded background movieclip as I wait for mc_Empty2 to load a SWF.  Once the SWF is loaded into mc_Empty2, I want to remove the faded background movieclip from mc_Empty1.  When I load the SWF from the main timeline, the onLoad() function works and removes the faded background from mc_Empty1.  However, when I load the SWF from mc_target, the SWF loads, but the onLoad() function does not.  Here's my AS2 code:
 
//Loading SWF from main timeline
mc_Empty1.attachMovie("mcFadedBg", "mc_FadedBg", 1);
mc_Empty2.loadMovie("My.swf");mc_Empty2.onLoad = function():Void{    trace("loaded"); //This works    removeMovieClip(mc_Empty1.mc_FadedBg); //This works}

[code]....
 
I know I'm targeting properly because the SWF loads as it should, but the onLoad() function does not. 

View 3 Replies

ActionScript 3.0 :: Application Level Vs Document Level Class Paths?

Oct 2, 2010

This is making me a little kooky today. I thought I could defined a library path in PREFERENCES > ACTIONSCRIPT > ACTIONSCRIPT 3.0 SETTINGS then that library would be available to all AS3 FLA files, but that doesn't seem to work for me. If I use the PUBLISH SETTINGS and define the library path everything is fine.

Is there something that I could have done to disable the application level class path functionality? I guess I'm trying avoid having to set the library path for every new FLA I'm making.

View 1 Replies

ActionScript 2.0 :: Target A Certain Section Of External Swf

Feb 27, 2005

I have a problem whereby I want to, on a click of the button on the main scene, it will target a certain frame label instead of playing from the start of an external movie clip. Is it possible? Something like gotoAndPlay("Scene 2", "play"); but it is an external swf.

View 2 Replies

ActionScript 2.0 :: Apply A Tell Target To An External Swf?

Sep 25, 2004

how to apply a tell target to an external swf. How am i asking it to be applied u ask? I have a main flash movie (to be the base site actually) that loads 4 preliminary swf's. One of them is the top nav bar. Basically there are small squares on the main flash movie where the movies should load. They replace the squares and load perfectly. What i want to do though is when i press a button in a movie in one square, on release, it tells another square on the main flash to load it's movie.

I did not attach the actual flash files becuase, for one they are too big, also there are way too many layers and stuff for anyone to be able to back track through my sloppy work. I did however attach the swf's and a jpeg outline of the square loaders im talking about.

View 3 Replies

ActionScript 2.0 :: Target A Certain Section Of External Swf?

Feb 27, 2005

I have a problem whereby I want to, on a click of the button on the main scene, it will target a certain frame label instead of playing from the start of an external movie clip. Is it possible? Something like gotoAndPlay("Scene 2", "play"); but it is an external swf.

View 2 Replies

ActionScript 2.0 :: Load Swf From Third Level Into Container In First 'home' Level

Dec 26, 2011

I'm doing a bigger aplication in flash (as2).Image, there is a main "home" flash with several menu buttons.Clicking these buttons, I load external swf into an empty container in this "home" flash.[code]clicking buttons in this second level, will load external movies into an empty container in this SECOND LEVEL swf.This works fine, but now, coming to the THIRD LEVEL (don't think there will be more in the future) problems come up, some scripts won't work.Now (I'm a as2-beginner) I think, loading external swf ALLWAYS into containers in the first "Home" flash should solve the problem.But I don't know, how to load an swf from the third level into a container in the first "home" level.In the "home" level, I have a "close" button, that will unload the container content.I need to go to a certain scene "content_2" in the home swf, too.

View 7 Replies

ActionScript 2.0 :: LoadMovie - Jump To Level 2 Upon Completing The First Level?

May 9, 2004

i have game im doing, and i want it to jump to level 2 upon completing the first level, but the problem is, the level 2 is a seperate swf, i've tried to use

Code:
on (release) {
loadMovie("level2.swf",2)
}

View 3 Replies

ActionScript 1/2 :: Lower .swf File Affecting Mouse On Top Level .swf?

Feb 19, 2010

I have a zooming map .swf file loading in behind a navigation button interface .swf. The map.swf turns your mouse to a hand cursor so you can pan when you zoom in on it.Eveb though the map file is behind my nav file,when I roll over my nav file, the mouse is still turning to a hand cursor. Is there any way around this? The only time it turns to an actually pointer is when it rolls over the actual buttons on the nav file, so the mouse flickers back and forth between the hand and the pointer.How can I get the lower .swf to not effect the .swf on top?

View 8 Replies







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