ActionScript 3.0 :: Enable Outside File When Loaded Via Main SWF?

Jul 21, 2009

If I have a main.swf which loads, for example, outside.swf, is there a way to make outside.swf useless if run on its own, but working when loaded via main.swf? The purpose would be preventing people from running parts of a presentation on a CD, forcing them to use only the main.exe projector file. I tried making a Boolean variable called "allowed" in outside.swf telling the movie not to play if it's set to false, and then tried changing this property from main.swf after loading it by calling loader.content, but it didn't work.

I did this:
ActionScript Code:
button1.addEventListener(MouseEvent.CLICK, loadaj);
function loadaj(e:MouseEvent):void {
var MVloader:Loader = new Loader();
var req:URLRequest = new URLRequest("outside.swf");
MVloader.load(req);
attacher.addChild(MVloader);
MVloader.content.allowed = true;
}

View 3 Replies


Similar Posts:


ActionScript 2.0 :: Add One To The File That Is Loaded Into The Main Movie Main Movie That Is Loading The File?

Aug 3, 2003

using the command:

loadMovie(_root.section, _root.content);how would i work in a preloader bar?? add one to the file that is loaded into the main movie or on my main movie that is loading the file?

View 1 Replies

ActionScript 3.0 ::loaded A Swf Into Main Swf File

Nov 17, 2009

i want to loaded a swf into my main swf file. How do I place it on the main timeline in the main swf. To be exact I have a frame label called about. Where i want the swf to be.[code]

View 7 Replies

ActionScript 2.0 :: Control Main Swf File From Loaded Swf?

Jun 26, 2005

In my main swf, I m loading 1 swf file which is having 1 mc and in that there is 1 btn.

what i want is when a user will click this btn of my loaded swf i want to move to another scene of my main swf.

How can i do it? I tried to search the ans in forum bt could not trace out.

View 6 Replies

ActionScript 2.0 :: Text Disappear When It's Loaded As An External Swf Into The Main File?

Nov 30, 2003

I am using the transition preloader on url]... to load in external swfs (http:url...). I have Spark's calendar component on one of the external swfs. All text appears fine when testing the calendar page itself but the text seems to disappear when it's loaded as an external swf into the main file. Is this a path issue?

View 3 Replies

Professional :: Multiple Fla Projects - When Loading Main Swf File 3 Other Swf Files Are Also Loaded

May 31, 2011

I am new flash developer, and inherited a project which has 4 fla project files. When it runs inside a browser, it appears "window" which occupies whole browser. This project is write in Flash CS3. I have few questions:

1). When loading main swf file, 3 other swf files are also loaded. These swf files are communicating with each other through message. When debug the mail swf with CS3, I can set breakpoint and the program can stop only at limited AS files. My questions is how to debug other AS files in other swf file?

2) I used CS5. It seems that I can stop at more AS files, which does not belong to main swf file. Why?

My questions is should I use CS5, which might makes debugging easier? Is it right direction to go to debug multiple swf? (For CS5, I need to fix some code in order to make the program fully working as CS3)

3) What's best tool to use for such project since CS3 is very old. Should I use Flash builder, Flex. Amethyst?

View 1 Replies

ActionScript 3.0 :: External Loaded Swf Completes Playing Should Jump To Main File Specific Frame

Nov 28, 2009

when a external swf file gets loaded into main swf file, i need to detect while playing external file reach to end so that i can unload that file and move to another frame on root of main file. I am not getting how to identify external swf play reach to end so that i can unload swf and jump to root specific frame of main swf.

View 1 Replies

Flash - How To Enable Control Bar For SWF File

Sep 28, 2010

The code below works great except the user has to right click the video and then left click "play". Is there a way to add the control bar via param?

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="[URL]" width="360" height="270">
<param name="movie" value="File1.swf">
<param name="quality" value="high">
<param name="play" value="False">
<param name="enabled" value="True">
<embed src="File1.swf" quality="high"
pluginspage="[URL]" width="360" height="280"></embed></object>

View 1 Replies

IDE :: Enable Flashvars To Point To A XML File?

Jul 11, 2009

How can I change this code to enable flashvars to point to a XML file?

//
// LOAD XML
//
loadXML = function (loaded) {

[Code]....

View 3 Replies

Actionscript 3 :: Enable The File Upload Permission?

Dec 12, 2011

I'm trying to upload images generated in my Flash application to an album on Facebook.This was working earlier in the year, but revisiting the code I now get the following OAuthException:#324) Requires upload file am using the most recent version of the ActionSccript Facebook API. The setup works like this:irst I do the authentication check with PHP to ensure users have granted permission before having to wait for the Flash to load. I'm requesting the publish_stream and user_photos permissions. The access token comes back correctly.Once the user is authenticated the Flash is loaded and performs its own initialisation, passing fileUpload=true as part of the init object:

var initObject:Object = {
channelUrl : "myChannelURL.html",
fileUpload : true

[code]......

View 2 Replies

ActionScript 2.0 :: Disable Current And Enable Other Buttons Using Class File

Jun 24, 2010

I have a simple class file for buttons. on Rollover the movieclip plays frame no 2 and on Rollout it plays frame no 11. This is working fine. Now I want to disable the current button on click/release and enable others. I don't know how to get the other buttons because the this keyword always refer to the current button that is rolled over of clicked.

ActionScript Code:
class ButtonClass extends MovieClip {
var buttonName:String;
public function ButtonClass() {
this.onRollOver = over;
this.onRollOut = out;
[Code] .....

View 0 Replies

ActionScript 2.0 :: Command External SWF-file To Play Outside Of The Main Movieclip Via Button From Main?

Jan 17, 2012

I Have a flashmovie thats almost done and will soon hit the internet, but I want to add some animations into the website it�s two gears that I�m about to put at the bottom of the page and when a button releases in the main flashmovie the two bottom gears will turn a few frames and just stand still.These three movies are all separate (main movie, first gear and second gear).

It's a homepage designed in HTML and flash that has this "main flashmovie" in the middle of the screen, the size is about 1500(width)X800(height). And the gears is about 800wX200h placed at the left and right side bottom of the page. Dont worry the site is easy to apply to any screen resolution.I have been looking everywhere for any soul out there who suffering from the same problem but no success. Is it possible to script a button in the main movie to launch two separate movies in their own contents?

View 2 Replies

Enable Page So That It Shuffles Songs And Plays A Random Song Every Time Page Is Loaded

Nov 25, 2010

I have a site up that is a "music" site, it is XML and flash and I would like to know if it would be possible to and how would I enable the page so that it shuffles the songs and plays a random song every time the page is loaded.URL...

View 2 Replies

ActionScript 2.0 :: Load Main Swf File (main.swf) On Top Of Background

Sep 24, 2004

I have a background swf that has been coded so that it scales with the browser. I want to load the main swf file (main.swf) on top of this bg so that it is always centred on the page.

View 2 Replies

ActionScript 3.0 :: Remove / Unload External Swf File(s) From The Main Flash File And Load A New Swf File And Garbage Collection From Memory?

Sep 12, 2009

I can't seem to remove / unload the external swf files e.g when the carousel.swf (portfolio) is displayed and I press the about button the about content is overlapping the carousel (portfolio) . How can I remove / unload an external swf file from the main flash file and load a new swf file, while at the same time removing garbage collection from memory?

View 15 Replies

ActionScript 2.0 :: Control One Loaded SWF File From Another Loaded SWF File

Feb 7, 2005

Is it possible to control one loaded SWF File eg.(MOVIE-1.swf) from another loaded SWF file eg.(MOVIE-0.swf) on a different level? eg. with a syntax like:

onRelease
_MOVIE-1.SWF.gotoAndStop (4)
or:
onRelease
gotoAndStop (MOVIE-1.swf, frame4)

View 1 Replies

ActionScript 2.0 :: MXML Project In Flex 2 - Make SWF File As Main Executable File?

Nov 26, 2006

I have to make a project for school. It will be like a tutorial, but into an application. I already made a part of it in MXML and a bit of action script but I encountered a few problems that are over my newbie limits. So the Flex Builder 2 makes a SFW file, in the main folder of the "project". I want to make that SWF file my main executable file. I have a folder with some pics, and another folder with Action Script Files. The code lvl that I know atm is ABSOLUTE BEGINER... I don know how to make my SWF file have a specific name when I run it.Here is a picture of a training exercices that should make thing more clear:Some people told me that I should use a HexEditor and stuff. Is it ture(what u think?).

Next problem. I dont know how to make the Stage to be fix. I mean.. I dont want the stage to be resizeble. I tryed to change the stagescalemode but that wasn't it. I toke a look at the help files of Flex from the net, about the Resize action and SystemManegment, but I didn't find out what I wantend.

View 4 Replies

ActionScript 3.0 :: Flash - Pass Variables From One Movie Clip's AS File To Main AS File?

Jul 7, 2010

how to pass variables from one Movie clip's AS file to my Main AS file. Let say my Movieclip's AS file is calling damage = 1; so how the Main AS file retrieve the damage value from the Movieclip's AS?

Code:
public class robotMC extends MovieClip
{
public function robotMC()
{

[code]....

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

ActionScript 2.0 :: Load Variable From Text File To Main Movie (swf File)?

Jan 14, 2004

i want to load variable from text file to my main movie (swf file).what should i put in the second parameter of the function loadVariables ("target" parameter) - should i insert _this? _parent? _global? (nothing works.

View 3 Replies

ActionScript 2.0 :: Lock FPS Of Loaded SWF In Main?

Jun 11, 2009

I am using loadmovie to load in swf in my main swf.

The FPS of my main timeline is : 20FPS

The SWF I am loading is : 8 FPS

When i load it in it is automatically changed to 20 FPS.

Is there anyway to lock FPS?

View 2 Replies

ActionScript 3.0 :: Return From Loaded Swf To Main?

Mar 13, 2012

I have some swfs that i want to combine: I have the main.swf that containes buttons, and i want each button to lead to an external swf. I have already done that.What i dont know is how to return to  main.swf. I want all external swfs to have a button called "Back to menu" and go back to main.swf

View 3 Replies

Access Main Swf X,Y From Externally Loaded It?

Jan 7, 2010

I have a site that I'm working on that I am loading an external swf page into a main one. The main one is based on a totally liquid state and stretches the background to fill the browser and the components are relatively position based on browser window dimensions.

Now inside of the main swf I load an external swf through the loader command. This swf has a set dimension and stays centered in the stage.

I am trying to make a button in this swf that loads yet another swf that is stretches the full browser. However I do not know how to access the properties of a main swf from this external one, or if this is even possible.

View 3 Replies

ActionScript 3.0 :: Overlapping Loaded Swf To Main Swf?

Jan 4, 2011

I am loading an external swf and I want it to overlap my main swf. I have been trying to figure this out for days. Check my link to see what I am talking about

[URL]

when you click on about the swf loads, but it leaves a little space on the right where you can still see the main swf underneath... you can also check my FLAs if you want...download here

[URL]

View 1 Replies

ActionScript 2.0 :: Second Swf Works By Itself But Not When Loaded Into The Main Swf

Mar 18, 2003

i have a movie that loads a 2nd movie on a button action. The second movie has some other buttons ("co" & "me") that makes some text pop up with easing. This is the code below. The problem is, the second swf works by itself, but not when loaded into the main swf. I've tried changing _root to _parent as well as various others, but to no avail? Is _root my problem??

[Code]...

View 1 Replies

ActionScript 2.0 :: Loaded Swf Controlling Main Swf?

Oct 25, 2005

is it possible for a loaded swf to control the timeline of the main swf or even to tell the main swf to unload the loaded swf just by pressing a button in the loaded swf.

View 2 Replies

ActionScript 2.0 :: Possible To Run FLV Inside SWF Loaded Into Main?

Sep 26, 2006

I have a website up at [URL]. The thing is that I have flv files being loaded by swfs that are loaded on a movieclip of a main swf. Locally everything works fine but as soon as I move it up the web or even try to run in over my home network, the flv files won't run. Can the flv run inside a swf that is loaded into another swf? I have set the paths to relative already, this taking into account the main swf!

Something like this:
loaded_swf_folder/flv_folder/flv_file.flv
If I didn't take the main swf into account it would look like this:
flv_folder/flv_file.flv
But I tried this already and it didn't work at all. Except if you run one of the loaded swf directly instead of through the main swf.

View 2 Replies

ActionScript 3.0 :: Control Main.swf Through Loaded.swf?

Jun 7, 2009

I'm trying to control my main.swf through a loaded .swf.

My goals are. 1. load the external swf into main.swf and have a movieclip in the external swf play. (the movie clip in the external swf should play without any code, however, when the external swf loads, the movie clip goes to the last frame of itself for some reason)

2. I have an "X" button on the loaded.swf itself that should dismiss the loaded swf and cause my navigation on my main.swf to reappear.

Here is my loader code in main.swf:

Code:
var _urlx:Loader = new Loader();
_urlx.load(new URLRequest("loadBlank.swf"));
var _url1:Loader = new Loader();

[Code]....

As of now, my navigation in main.swf does reappear when the "X" in the loaded.swf is clicked, but I need a way to unload the currently loaded swf when the "X" button is clicked..

I've tried remove child, checking to see if the loaded child is not null, but that didn't work either...

View 3 Replies

ActionScript 2.0 :: Including External Swf File With Preloader In Main Swf File

Apr 21, 2008

I'm creating a flash 3d website for a company. The idea is that there is one overall swf file - this holds the navigation and design. Once the user clicks on a button, it goes to frame 10, I have included the following script to load a swf file

loadMovie("deepbartesting.swf", maincontent);
this.onEnterFrame=function(){
if(movieClipName._currentframe==5){

[Code]....

the preloader works, but instead of going to frame 2 of that swf file, it goes to frame 2 of the overall swf that holds the navigation. Does anyone know how to get around this so that it goes to frame 2 in the same swf file as the preloader?

View 1 Replies

Action Script :: Swf Is Loaded Into Main Movie?

Apr 29, 2008

My site consists of a main swf file ('home.swf') which then has other swfs loaded into it via an empty movie clip.I have created one such swf. file (news.swf) which features 2 simple scrolling text buttons (one to move text down, and the other to move it up).http:[url].....

Everything works fine when I preview the news.swf on its own, but when I preview the home.swf and view the news.swf loaded into it, the button which should move the text up doesn't work.I think it's something to do with using the term _root. but i don't know what to replace it with.This is the script I have on the button that doesn't work:

//Events during mouse click
on(press) {
_root.controller.gotoAndPlay (2);[code]........

Is it just a case of changing the _root. term, and if so what should I change it to, or is it trickier than that.

View 9 Replies







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