Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Local Runtime Sharing? Local External AttachMovie?



I've been trying and searching through the forums but I think I am searching for the wrong keywords.

Is there ANY way of setting it up so that I can use attachMovie/removeMovieClip on external swf's? I've found these runtime sharing options but I am unable to make much sense of them. What I am creating is something that would always be run locally on a machine and not up on the web.

I want to use this one main 'engine' type of file that loads heaps of different movies into it. All of them swf's. Of course I realise that I could do things the loadMovie way, but it seems in this case like an option not really suitable for what I want to do.

Thanks for any tips



ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 07-18-2004, 09:31 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Local Runtime Sharing URL?
I want to share a font between multiple local swf.

I imported the font into a library and I have checked "Export for runtime sharing" in the Linkage. But I don't know what to write in the URL to use. The linked swf and swf that use it are in the same folder.

Thx

CFK

Is There A Problem Sharing A Local Shared Object Between 2 Flash Files Concurrently?
My client requires 2 separate flash files in his one HTML page. One file is an array of thumbnails. The other is a fullsize display of the thumbnail you rollover. Can I update an LSO when the user rolls over a thumb and have the fullsize file continuously polling the same LSO? Will some kind of file sharing conflict occur? I have implemented this and one of my testers reports that, in Firefox, it works initially but the inter-file communication ceases after a variable time, sometimes 4 minutes, sometimes 90 minutes. My other testers have no problem with this project in their Firefox browsers. No one has a problem in IE6 or IE7.

Importing Local Files During Runtime (swf)?
Hi All,

I've posted in the actionscript section, but didn't get any feedbacks, if anyone can help me out would be great!

does anyone know if a running swf can access or attach images from a users' local computer? Because I know a running swf can read .as files, so I was wondering if flash can grab local jpegs/pngs/swfs in run time. Please let me know if there's anyway that this can be done, thanks!

AttachMovie From One Swf To Another Via Local Connections
I'm having difficulty using AttachMovie method from one swf to another. Here's the code I'm using.

Sender swf

Code:
btn.onRelease = function():Void {
var senderLC:LocalConnection = new LocalConnection();
senderLC.send("targetObj", "doThis");
}
Receiver swf

Code:
var receiverLC:LocalConnection = new LocalConnection();

receiverLC.doThis = function() {

this.attachMovie("button", "button", this.getNextHighestDepth(), {_x:980, _y:534});
};
receiverLC.connect("targetObj");
And for the record, the AttachMovie action works just fine outside this function. That's not the issue.

Any help is greatly appreciated.

Launching A Local Html File From Local Swf ( Flash 8.)
Hello everyone i am having a problem launching a local html file from my swf. i have a button called print that when clicked it is supposed to open the local html file and print out the content. this is the code i used on the button

on (release){
getURL("folder/folder/file.htm","_self");
}

i also tried scripting it on the time line when that didn't work.

any ideas?
Thanks,
kool

AttachMovie Action In Local Connections
I'm not understanding why the following attachMovie code isn't working in the local connection code you see here (between two swfs). The same attachMovie code works fine if it's outside of the function so that's not the issue.

Sender (swf with button)

Code:
btn.onRelease = function():Void {
var senderLC:LocalConnection = new LocalConnection();
senderLC.send("targetObj", "doThis");
}
Receiver (target swf)

Code:
var receiverLC:LocalConnection = new LocalConnection();

receiverLC.doThis = function() {

this.attachMovie("button", "button", this.getNextHighestDepth(), {_x:980, _y:534});
};
receiverLC.connect("targetObj");

And for the record, the AttachMovie action works just fine outside this function. That's not the issue.

Thanks / Help appreciated

Runtime Sharing & External Swf Files
I'm making a flash movie that has a pallete of objects (movie clips) which you can basically drag out onto the screen and create a picture. This has been working seemlessly...until I decided that it would be a good idea to have external pallete that you could load in. I can get the "palletes" (swf files) to load in and share their respective movie clips. However, they seem to only work if I load the new movie into root (which will not work, as it will replace all the current content) or if i load the new movie into another "holder" movie clip and then spawn that movie's movie clips inside "holder" (which also will not work for me, as i need to use these clips in the main stage with others).
Does anyone have any ideas to get around this. Suggestions?

User Defines Local Image And Add It To A Local Swf(CD) ?
I have to run flash (swf) locally, which in my case means a CD.

What I want to do is allow the user to have a browse (local) function and pick an image from his hard disk and use that image to see a flash movie (swf) with his/her selected image in it!

Then after the user watched the movie with his/her photo on it, the user should be able to send this movie in a site(upload it). then naturally the user should be able to see it online at that site as well!

So my questions are how to have a browse function that puts the selected image somewhere I would like it to and then use this image in a flash movie (that will be a game with the photo on it).

And I guess then to send it online I do not really have to publish a new swf with the image in it, I can send seperately the swf (game) and the image file to the server through php? Did i get that right?

So far I know flash 8 has a new class for browsing, but how do I take a file selected from a user locally and use it in the movie again locally? load variable can do that but I should know the name of the file selected and also be possible to even select a local file??

Basically it is for educational movie. It will run from a CD. there will be many interactive exercices. At the end of the section there will be one game that in order to make it more personal I want to allow the users to add their photo at the game. So far everything should take place locally. Then if the user desires should be able to send in a specific site the movie he/she just watched(which means with their photo in it).

ANy ideas how I do that.

Even general ideas will help!

Thank you

Problem With Local File And Local Link
Hi to everybody,

I have installed a new version of flash player (9,0,28,0) and when I open a local file like:
c: estindex.html

When I click into some link that point to some local file like as:
c: est est.htm

I don't obtain nothing the page still remain index.html.

If i put the test directory into some server everithing working fine.
I have tried to change some machine and i have tried some old flash file but still the same!

How can solve it without upload all file everytime into some web server and without install some local web server?

Thanks in advance to everybody for any tips and sorry for my bad english!

John

How Can I Get A Local Path Of The Local Disk With Swf
Since FileReference.download() doesn't download multiple files, I want to download files with php ftp_get by FTP.
I need to pass the local path of the local disk where I can download the files from a remote serveur. How can I get a prompt to have a user choose a folder on his computor (local disk), if any way possible?

Runtime Sharing Problem - Sharing Swf Unknown At Compile Time.
Hi All

I use run time sharing extensively in a lot of my flash projects but I can't get it to work in this case.

Usually I have main.swf and elements.swf. Elements.swf has movie clips that I drag into main.swf and it all works fine.

However, I am now working on a site that is to be used for many different clients of our client. There will be one main.swf that is set up with an xml config file to look different depending on which client it will be used for.

This config file specifies which content to load, colours ect but also which swfs to load with shared movie clips in.
In this case elements shared in clientButtons.swf are unavailiable in main.swf. I assume that this is because I have not dragged elelemts from clientButtons.swf to main.swf at compile time.

Is there any way of getting main.swf to load clips from clientButtons.swf without specifying clientButton.swf at compile time.

Many thanks.

Local Streaming Of External FLV's
I have 8 external FLV's (mpeg's converted with Squeeze 3.5) which I would like to play one after the another from a single .FLA

I have learned (from reading this forum and from trying over and over)how to load the first external .FLV using the Media Display component and it works just fine. This is for a continuously running presentation so I am not using the media components with playback buttons. What I can't figure out is how to load the second external .FLV once the first once finishes...and then how to load the third once the second finishes and so on until it finishes the last.

If anyone has a tutorial regarding stringing together multiples external .SWF's or .FLV's, or if anyone has actionscript which already does this I would greatly appreciate the help.

"I hate being stupid but at least that means i will learn from the best."

Using Mediacontroller With Local External FLV?
Hi,

I'm trying to make a CD-ROM and I want to use external FLV's
How can i controll the playback of the movies? Mediacontroller? How?


Can anyone help me with this?

External Movies Not Showing Up On Web But Do On Local?
I am not sure what I am doing wrong.

I have a flash file that loads external flash files. When I view the file on my computer it runs fine. It shows up and works fine. When I publish it to the web, all the the parts of the movie that are not external movies work fine but the rest (the external movies) don't show up. Yes I made sure the external movies are in the same directory as my main movie =).

Any clues?

Thanks!

External Swf Will Not Load When I Upload It, Only In Local
Hi everyone,
It is an experiment with AC for better understanding as I am fairly new to flash.
I have the following problem.
I am loading into my main movie an external swf and it works fine in local mode but if I upload it its not loading.
I am using Mx2004 prof. but I publish it in ver.6 AC.1.0
The code is as follows:

loadMovie("projects/" + _root.currProj + ".swf", _root.projSwfContainer);
for (i = 1; i < _root.numProjsTotal; i++)
{
projStr = "project" + i;
if (projStr != _root.currProj)
{
_root.thumbs[projStr].gotoAndStop("clear");
} // end if
} // end of for
stop();

Can someone help me with this?
Thanks,
Dragen

Local Connection Using External As-file
Hi there everyone!

First some background. I am using Flash 8 (screen based project) and now a problem has occured that can be related to the LocalConnection class. All code in this project by the way is in external AS-files.

I have two swf-files that communicate with each other and everything works just fine. But, ONLY if I put the actionscript related to the LocalConnection class on the first frame of the timeline of the two swf-files.

Now the problem is that I have to move the code from the timeline to the constructor in GamePage.as(it needs to run when the GamePage loads/starts). By doing this the code/syntax needs to be adjusted for the class file and that is why I need your help.

This is the code suited for the timeline that I need help with, to modify it to work/run in the constructor of the as-file.


Code:
var isOpen:Boolean;
var gameOpenSend_lc:LocalConnection = new LocalConnection();
gameOpenSend_lc.send("lc2_name", "gameIsOpen", isOpen);

var receiving_lc:LocalConnection = new LocalConnection();

//this function works on the timeline, but of course not in the constructor
//of an as-file. How do I change it?
receiving_lc.userGameID = function(tableObj:Object, userObj:Object) {
_global.tableObj = tableObj;
_global.userObj = userObj;
}

receiving_lc.connect("lc_name");


I hope that you understand my problem but if you don't, please just tell me and I will try to further explain myself.

I would be greatful for any help in the right direction.

Local Streaming Of Multiple External FLV's
I have more fla`s and i want to stream them localy. I tried several methods and the closest i get to work is like this:



Code:

arr = new Array();
max = 3;
arr[0] = "1.flv";
arr[1] = "2.flv";
arr[1] = "3.flv";
arr[3] = "4.flv";
cnt = 0;

my_nc = new NetConnection();
my_nc.connect(null);
my_ns = new NetStream(my_nc);
my_video.attachVideo(my_ns);
my_ns.onStatus = function(info){
trace(my_ns.time);
trace(info.code);
if(info.code=="NetStream.Play.Stop") {
trace(cnt);
cnt++;
if(cnt>max) cnt=0;
my_ns.play(arr[cnt]);
}
};
my_ns.setBufferTime(10);
my_ns.play(arr[cnt]);

The code i think is good, but after the second fla (2.fla) the cycle stops. Is there anything wrong in the code? How to loop the entire set ? (after the last fla is played to begin with the first one again)

Local Connection Using External As-file
Hi there everyone!

First some background. I am using Flash 8 (screen based project) and now a problem has occured that can be related to the LocalConnection class. All code in this project by the way is in external AS-files.

I have two swf-files that communicate with each other and everything works just fine. But, ONLY if I put the actionscript related to the LocalConnection class on the first frame of the timeline of the two swf-files.

Now the problem is that I have to move the code from the timeline to the constructor in GamePage.as(it needs to run when the GamePage loads/starts). By doing this the code/syntax needs to be adjusted for the class file and that is why I need your help.

This is the code suited for the timeline that I need help with, to modify it to work/run in the constructor of the as-file.


Code:
var isOpen:Boolean;
var gameOpenSend_lc:LocalConnection = new LocalConnection();
gameOpenSend_lc.send("lc2_name", "gameIsOpen", isOpen);

var receiving_lc:LocalConnection = new LocalConnection();

//this function works on the timeline, but of course not in the constructor
//of an as-file. How do I change it?
receiving_lc.userGameID = function(tableObj:Object, userObj:Object) {
_global.tableObj = tableObj;
_global.userObj = userObj;
}

receiving_lc.connect("lc_name");
I hope that you understand my problem but if you don't, please just tell me and I will try to further explain myself.

I would be greatful for any help in the right direction.

Using External Interface On Local Content
We're using External Interface for interfacing between Flash and
JavaScript on the HTML page. All works fine online. When we try to
localize the pages though (so that a Salesperson can have a CD full of
demos), none of them seem to work.

Is this an over-sensitive Flash security issue? We already have
allowscriptaccess='always' and swliveconnect=true in the object/embed tags.

What can we do that doesn't require changes on each individual machine
to set trust paths or any other kind of browser configuration? Not only
do we want to have this content working on the machine of a salesperson,
we may get clients that want to deploy content offline (kiosks, machines
without any network access).

~dd

External Text Loading Local But Not On Web? Help
Ok I have a text box named "output"

When I load my swf locally it works when i get it on the web the external text doesn't load. In fact it doesn't even give me my "Error loading CSS file!" ??

Anyone know why?



ActionScript Code:
var format = new TextField.StyleSheet();var path = "../css/news.css";format.load(path);format.onLoad = function(loaded) {if (loaded) {output.styleSheet = format;myLoadVar = new LoadVars();myLoadVar.load("../data/newsData.txt");myLoadVar.onLoad = function(success) {if (success == true) {        output.variable = "content";        output.htmlText = myLoadVar.content;}};} else {output.text = "Error loading CSS file!";}};


Thanks,
Case

Local To 'other' Local Coordinates
Hi, I have a clip with twenty points in it.

I am trying to do a point hit test with these and a shape a few clips down - but nowhere near the _root.

I have used local to global before but would really like to just see what the coordinates would be on the other clip.

?? Cheers, M@)

Local Exe Can't Load Local Swf's Into It?
Hi!

I have created a presentation with Flash that has an exe file which loads swf files to it with loadMovie command.

Some of our clients have had problems with this. They can execute the exe file fine, but it doesn't load any of the swf's or other external files into it. All the files are local on users computer on the same folder.

At some computers this works fine, so it seems like it is some sort of security thing that an exe file cannot load anything external to it. Has anyone had similar problems?

-sumo-

External Text Files: Local Vs. Server
I'm trying to load text from an external .txt file. It works perfect when its on a local machine, but when I put it on the internet the text will not show up. I checked that the .txt file is in the same folder as the .swf, but still it does not work. Is there a different procedure for calling .txt files from the internet?

Loading External Files From Local Harddrive?
Hi there!
I was wondering if its possible to load external swf files into a flash movie off of somebodys local harddrive.

In other words...
To save on download time I want the users to be able to have swf files stored on their harddisk and the actual flash movie load them directly from their system.

Is that possible? And if so, could somebody possibly point me to an example fla. file?

Thanks so much for your time...

External Jpgs View In Local Swf NOT On Server
what can i be missing? using the following code to call jpgs into the container instance--they DO display locally--they do not on server and the folder assignment is identical

//buttn
on(release){
i++;
container.loadMovie("image"+i+".jpg");

}


//first frm of movie
i=0;

External Interface> Local = Ok Server = Nope
Hi, guys!

A interesting problem:

I have a function on my fla that executes many things. All these things depends of a number parameter.

Ok. No problem with this. But now I must call this function through a html link at the same flash´s page.

So, my way is the External Interface class.

When I try it at my local pc, everything is great. But when I upload it, it stops working!

The flash code:


Quote:




// importing the flash external interface:
import flash.external.ExternalInterface;
// the function:
function pedirAnunciante(codigoAnunciante) {
// many codes here....
}
// the addCallBack method:
ExternalInterface.addCallback("pedirAnunciante", this, pedirAnunciante);




The HTML code:


Quote:





<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>interna_javascript</title>
<script language="JavaScript">
var flash;
//
window.onload = function() {
if(navigator.appName.indexOf("Microsoft") != -1) {
flash = window.vitrine;
}else {
flash = window.document.vitrine;
}
}
//
//
function comandaFlash(num) {
flash.pedirAnunciante(num);
//alert(num);
}
//
</script>
</head>
<body bgcolor="#ffffff">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="775" height="630" id="vitrine" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="interna_javascript.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="interna_javascript.swf" id="vitrine" quality="high" bgcolor="#ffffff" width="775" height="630" name="interna_javascript" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
<br>
<input type="Button" value="Anunciante 508" name="flashInfoButton" onClick="javascript:comandaFlash(508);" style="width:100px;" />
<br>
<input type="Button" value="Anunciante 49" name="flashInfoButton" onClick="javascript:comandaFlash(49);" style="width:100px;" />
<br>
<input type="Button" value="Anunciante 427" name="flashInfoButton" onClick="javascript:comandaFlash(427);" style="width:100px;" />
<br>
</html>

External Loaded SWF, Access To Local Files
I don't know how/if this is possible: SWF#A runs on localhost. SWF#A (as3.0) loads SWF#B (as2.0). SWF#B internal loads config.txt from the same folder as SWF#B is positioned in. SWF#B is developed by an external company, I can't change any code here. The problem is that I recieve an error reporting that external swfs can't load local files. Therefor I think that SWF#B is loading the .txt through an file://-path, pointing relative to the same folder as SW#B. Any suggestions how I work around this problem?

Local Time Of My Country And Local Time Visitor
Dear all,

For a client's website in Holland, I would like to display the current Dutch date and time and I want to show for instance American visitors their local time.

Could anyone help me by providing the code for the Dutch time (as I know how to display the local time of my visitors)?

Thank you very much!

Michiel Schenkius

Help With Loading Variables From External Text File On Local Machine.
Hi guys,

I am a relative newcomer to Flash MX and although I can solve most probs that i come across, can take considerable amount of time doing so.

Therefore some help with the following would be great:

I am trying to load variables and their values from external text file on my local machine into a Flash movie. I am currently experimenting with the LoadVar object instead of the XML object.

I have the following code so far:

myLoadVars = "new LoadVars()";
myLoadVars.load("variables.txt");

where variables.txt is the external text file.

Some questions:
1. Have i referenced the text file correctly?
2. What format/syntax does the text file need to be in?
3. How do I use an event handler to access the variable values in the Flash movie?

Many thanks for any help that I receive.

[F8] Possible To Set Runtime Sharing Path At... Runtime?
After a weekend of pulling my hair out on this problem it looks like the paths for runtime sharing are relative to the HTML page, not the SWF. This is a problem because the client wants to be carefree in distributing the SWFs around the server. (In fact is demanding it.) So I need a way to set the runtime sharing path at runtime.

Or put another way...
"child.swf" is looking for fonts and graphics in "master.swf" If I move them all (including "master.swf") to some/random/folder/ and embed them from a HTML page at /a/different/folder/ the linkage breaks, even though the files load fine. (The paths to the SWFs are sent via XML.)

Any ideas? I really can't hard-code this and I probably can't compile new versions each time they feel like moving stuff around.

Worst case I'll skip the runtime sharing, but it would make the files needlessly big and slow.

(Publishing to Flash 8 AS2)

Playing An Audio Clip From Local Library, When Clicking On An External SWF Button
Hi there..
I'm currently getting stuck on a project i'm working on. So far this place has been a tremendous help and taught me a lot in a short amount of time..

Here is my situation: Hope you can help

I currently have random external swfs of "Buttons" loading and unloading into mc_containers into my main movie. These load and unload every couple of seconds.

What I would like to do is have sounds associated with these.. So if you was to click on one of the buttons, it would play a sound.

I have tried this by placing the sound in the button "down" section. However, it starts to play the audio and then as soon as the SWF unloads to load the next, the audio stops.

My question is: Is there a way that when you click on the external SWF loaded button - that it would then link to an audio file in the "main" timeline/library ? This way the audio would continue playing even though the SWF has unloaded.

Any questions - please feel free reply on the post or PM me..

Thanks so much


Johnnybaby

How Do I Preload Runtime Shared Libraries Without "import For Runtime Sharing"?
Hi, i have a big shared font library. I want all the font symbols to reside in fonts.swf. I have a loader.swf loading main.swf, and fonts.swf. Even though fonts.swf loads completely, the fonts aren't available to main.swf. I don't want to choose import for the font symbols in main.swf, because that will make Flash compile fonts.swf every time I publish main.swf, won't it? How can I get main.swf to use fonts in fonts.swf without "import in first frame"?
Thanks!

Runtime Sharing :: Url?
Do runtime shared library symbols NEED to be posted on a server with a fully qualified URL in order to work? You can't just use the name of your library swf if it resides in the same folder as your other SWF's?

Runtime Sharing
Hi
I have one swf (main.swf) with a list with let's say 20 buttons, each of which will load an image into a container to the right of that list.
Since there will be 20 images I thought I would stream them in order not to have to load a 800KB file.
So I have another SWF (pics.swf)loading silently inside the main swf with all the pics in the timeline every 5 frames, and in every keyframe an action to make visible the button that calls the corresponding pic.
This way the buttons show "loading image" and when pics.swf stream every button is make clicable and displays "image loaded".
I have no problems with this part, but with what's next.

Buton1 must be able to call pic1 from the library of pics.swf and it must appear immediately since that pic is already loaded (I guess)
I think I must use attachMovie but I don't know how to do it properly.
Also must the pics be inside a MC? Do the pics have to be exported for runtime sharing?

Someone who has done this before may be can point me to the right way.
Thanks

Runtime Sharing
Hi,

Is it possible to pull in Shared Library assets at runtime, not using the IDE, but only using an application compiled with the MXMLC compiler?

Regards, snapple :]

Runtime Sharing?
is it possible to "attachMovie" a movie clip that is from a external swf file? is it known the technique of runtime sharing? I think if it is like the case of importing functions in DLL file to a exe program. How to do that in Flash 8 professional?

Your helps are highly appreciated.

Regards,
pixelmana

AS3 & Runtime Sharing
hi,
i've made the following simple test:
in a movie called 'sharedLib' i've crated a MC containg some graphics, and
in its linkage dialog-box i've checked all the 3 'export' check-boxes, named
the class 'myIcon', and in the url put 'sharedLib.swf' (the base-class was
automaticaly set to 'MovieClip'). in another movie, called 'destination'
i've added an empty MC, placed it on the stage, and checked the 'import for
runtime sharing' check-box in its 'linkage' dialog-box, named the class
'myIcon' and in the url put 'sharedLib.swf'.
when previewed the graphic from 'sharedLib' is seen in 'destination'.
however, when i add the following code to the 'destination' first frame -
var newIcon:MovieClip = new myIcon();
i got a compile error saying 'call to a possibly undefined method myIcon'.
so how do i approach a runtime-shared clip?
btw - when i turned both movies to AS2 and changed the code to
'this.attachMovie(...)' it worked fine.

thanks in advacne,
eRez

Runtime Sharing
Last edited by Markosef : 2004-02-17 at 09:38.
























I have a problem with using runtime sharing MC's. I want to attach them to _root but i just cannot do that. When i drag them on stage they appear with no problems but that's not what i want to do. I want to use outside library of MC's and then attach those MC's when needed. How do i do that?

Export For Runtime Sharing
I created a shared library for the following website.

http://www.dicotaus.com

For some reason when you load different sorts, which are
linked to the shared libraries the images and text take
a few extra seconds to load.

I am using MX and I have a preloader which looks like this:

perc = Math.round((_parent.getBytesLoaded()/_parent.getBytesTotal())*100);
xperc = perc/100;
barlength = 200;
if ((perc == 100) and (bar._width == barlength)) {
_parent.gotoAndPlay(2);
} else {
nperc = perc+"%";
bar._width = barlength*xperc;
bar._x = -100+(bar._width/2);
}

Please check out the site to see the problem before you email.

fredsega@telocity.com

Export For Runtime Sharing
If i have a swf file in which i have 100 MC's and in every one there is a picture, if i exported them for runtime sharing, will all of them be loaded when i need just one, or will just that MC be loaded?
I have main swf and that other swf with data in many different MCs, what i need is to load just 15 MC's max and other to be left alone, how can i achive that?? will exporting for runtime do the trick ?

Runtime Sharing Problem
Hello,
I have make a main swf with a component
exported for runtime sharing.
From a loaded swf on the main i can use the
component anytime without having to reload it.
No problem! It works fine.
I made all of them in FLASH MX.
When I publish my movies from FLASH MX 2004
and do the simulate download the external swf seems to reload the component.
What is going wrong.
Please Any help???
Thank you in advance.

Runtime Sharing + Sounds
i have found out that all sounds that i use with ATTACH are beeing pre-loaded in first frame which makes my preloaded animation usless!

so i tried to load sound from another file under a URL like in the
flash help but it didnt work (using runtime sharing!!!)

does any 1 knows why?
thnaks in advance
peleg

Runtime Sharing Problem
I wonder if anyone can help me on this. My testing is simple...In program A where it attach textArea component, there is no physical textArea component in the library, just the runtime shared asset link (with url) to point program B which holds a list of CS3 components.

In Flash 8, I've no issue in creating runtime-sharing swf for movieclips and components. But now, this isn't working anymore in CS3. My reason of using runtime sharing swf is to reduce the bandwidth.

Would appreciate your help. Thank you.

Question Runtime Sharing
I can't believe I'm stuck on something so simple -

I'm new to CS3 and I'm trying to share library assets between swfs and add them to the stage at runtime

in AS2 i used to say

_root.attachMovie("mc", getNextHighestDepth())

In AS3 i say

var instance:MovieClip = new mc();
addChild(mc);

it says variable mc cannot be found

When I look in the help it talks about linkage identifiers, which AS3 doesn't use any more.

Is it to do with the automatic class file creation?

Problem With Runtime Sharing
hi all

i have a problem with flash runtime sharing. i have about 30 sharing components which are linked by a single fla file [named main.fla].
the problem is that lately from time to time the flash IDE had crashed when i had tested main.fla. when i regressed to an earlier version it did not happen.
as the code grew larger and larger the crashes became more frequent up to this moment where a crash is almost absolutely likely to happen.

i tried singling a problematic linked swf file but it seems that no single swf file is to be blamed.
i regressed to the early version [which has the same number of linked components] and nothing crashed. as i recompiled more and more of the newer versions crashes started to appear and the more newer compiled components i introduced the more frequent the crashes became.

this affects both flash IDE and flash Active-X control yet does not affect flash player.
flash IDE - flash 8 pro
flash player - flash 8
flash activeX - flash 9

if anyone has any idea how to solve this problem i'll be more then grateful as it made the development of project come to an halt

thanky you in advance.

Symbol Runtime Sharing
first time using runtime sharing, and i found that the sharing symbol are not load when the swf start,
it only load the symbol(swf) when required by next frame.

my questions is:
1. is there any way to get notice that the shared library(swf) are being loading (AS3.0)?
2. how the runtime sharing actually work? as the Flex external link which load the swf into same ApplicationDomain?

thankyou very much

Export For Runtime Sharing?
I have an external movie that I want to load on my web page.

The 'internal MovieClips' for my 'external swf' have the folling LINKAGE settings: "Exported in first frame".

The reason I have told the movie clips to be exported into the first frame is due to the fact that they will not load if I dont make their linkage settings as such.

Should I use Runtime Sharing?

I have read the flash help file about runtime sharing but do not know exactly what exactly it means & how I should apply it to my online flash web page.

Does anyone know how I can apply this to my site in order for it to become quicker & smoother?

It is a problem because my preloader will not display before the movie is loaded because all my BMP Movie Clips are being exported into the first frame.

Any help or advice would be much appreciated. Whenever you load movies on a web site that are big in size what method of preloading do you use?

Really really need help

Linkage / Runtime Sharing
MX04 Pro | AS2

Lets say i have two movies.
1.swf (contains movie clip in library with linkage ID "thing")
directory/2.swf

Inside of 1.swf I load 2.swf inside of a emmpty movie clip.
On the root of 2.swf I attach the "thing" from 1.swf's library:

Code:
attachMovie("thing","test_mc",this.getNextHighestDepth());
Nothing happens. The movie is not attached.

Do i need to use runtime sharing? Or am I missing an extra undocumented parameter. Because everything i've read on runtime sharing, specifies both movies in the same directory so i'm trying to avoid it. >.<

Using Sound Via Runtime Sharing
I tried to use shared Sound from main movie. (Import for runtime sharing)
But for attachSound must be the Sound in the library of the same SWF.
Is there any way how to use once loaded Sound from main SWF for external SWFs?
I mean the similar way how we use shared Fonts, Graphic, etc.

Copyright © 2005-08 www.BigResource.com, All rights reserved