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




Library Question



when you publish a flash movie it doesnt publish everything from the library does it? just the objects that have been placed in the movie? the reason i ask is that i have quite a few files in my library that i havent used in the proper movie, theyre sorta like tests and stuff that ive experimented with, and i was wondering if they get published or not, cos if they do then theyd bump up the filesize of my movie quite a bit and i cant be havin that.

thanks



FlashKit > Flash Help > Flash General Help
Posted on: 02-24-2006, 01:55 PM


View Complete Forum Thread with Replies

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

Sound Only Attaching From Preloader Library Not Main Movie Library
Hi guys, i've got my main movie with sounds used in classes attached from the library via attachSound. works fine when run on its own, but when run through a seperate preloader swf it only works when the sound is in the preloaders library.

Any help would be much appreciated.

Shared Library Problem (Library File Loads Twice)
What I'm trying to do:
Share a button in one Flash file for use in an imported Flash file.

The problem:
My first Flash file is loaded twice for some reason: once for the initial load, and again when the second, imported file calls on the shared library items.

The players:
FLA/SWF - <span style="font-family:'bitstream vera sans mono', 'courier new', courier, fixedsys; background-color:#ccc;">tour</span> (104k)
FLA/SWF - <span style="font-family:'bitstream vera sans mono', 'courier new', courier, fixedsys; background-color:#ccc;">main-entrance</span> (54k)
SWF - <span style="font-family:'bitstream vera sans mono', 'courier new', courier, fixedsys; background-color:#ccc;">loading</span> (5k, preloader)
BT - <span style="font-family:'bitstream vera sans mono', 'courier new', courier, fixedsys; background-color:#ccc;">travel-button</span>, with MC <span style="font-family:'bitstream vera sans mono', 'courier new', courier, fixedsys; background-color:#ccc;">travel-ani</span> inside the button

The details:
The preloader, <span style="font-family:'bitstream vera sans mono', 'courier new', courier, fixedsys; background-color:#ccc;">loading</span> loads 104k worth of data, all of <span style="font-family:'bitstream vera sans mono', 'courier new', courier, fixedsys; background-color:#ccc;">tour</span> shows up. It is sharing a button (see below) in its library, <span style="font-family:'bitstream vera sans mono', 'courier new', courier, fixedsys; background-color:#ccc;">travel-button</span>.
Within <span style="font-family:'bitstream vera sans mono', 'courier new', courier, fixedsys; background-color:#ccc;">tour</span>, <span style="font-family:'bitstream vera sans mono', 'courier new', courier, fixedsys; background-color:#ccc;">main-entrance</span> then loads. The preloader loads 54k worth of data, the entirety of <span style="font-family:'bitstream vera sans mono', 'courier new', courier, fixedsys; background-color:#ccc;">main-entrance</span>.

Here's where the problem occurs:
<span style="font-family:'bitstream vera sans mono', 'courier new', courier, fixedsys; background-color:#ccc;">main-entrance</span> has loaded correctly; the preloader is in the first frame, so we know this to be true.
<span style="font-family:'bitstream vera sans mono', 'courier new', courier, fixedsys; background-color:#ccc;">main-entrance</span> is completely loaded; the file is 54k, and 54k are shown to be loaded as seen in the preloader.
However, after loading, when <span style="font-family:'bitstream vera sans mono', 'courier new', courier, fixedsys; background-color:#ccc;">main-entrance</span> is to go to Frame 2, it chokes. It takes twice as long as <span style="font-family:'bitstream vera sans mono', 'courier new', courier, fixedsys; background-color:#ccc;">main-entrance</span> to load (therefore roughly 108k), before Frame 2 shows up.
After about 20 seconds on a 56k modem, everthing shows up and procedes normally, happily ever after.

What I'm pretty sure is causing the problem:
When <span style="font-family:'bitstream vera sans mono', 'courier new', courier, fixedsys; background-color:#ccc;">main-entrance</span> goes to display the shared button on Frame 2, I'm pretty sure it's loading <span style="font-family:'bitstream vera sans mono', 'courier new', courier, fixedsys; background-color:#ccc;">tour</span> again (104k), in order to get access to its shared library. (Even when I delete the large image so <span style="font-family:'bitstream vera sans mono', 'courier new', courier, fixedsys; background-color:#ccc;">main-entrance</span> is only mere bytes, it still acts like its loading about 104k.) This is obviously no good.

Therefore, the million-dollar question is:
Why is my shared library loading twice, when it's shared? In other words: How can I share the library items in <span style="font-family:'bitstream vera sans mono', 'courier new', courier, fixedsys; background-color:#ccc;">tour</span> so that they can be used in <span style="font-family:'bitstream vera sans mono', 'courier new', courier, fixedsys; background-color:#ccc;">main-entrance</span> without loading the first file all over again?

Symbol linkage:
<span style="font-family:'bitstream vera sans mono', 'courier new', courier, fixedsys; background-color:#ccc;">travel-button</span> in <span style="font-family:'bitstream vera sans mono', 'courier new', courier, fixedsys; background-color:#ccc;">tour</span>:
[x]Export for runtime sharing
[x]Export in first frame
URL: tour.swf

<span style="font-family:'bitstream vera sans mono', 'courier new', courier, fixedsys; background-color:#ccc;">travel-ani</span> in <span style="font-family:'bitstream vera sans mono', 'courier new', courier, fixedsys; background-color:#ccc;">tour</span> (<span style="font-family:'bitstream vera sans mono', 'courier new', courier, fixedsys; background-color:#ccc;">travel-ani</span> is an animation that plays when the user rolls over <span style="font-family:'bitstream vera sans mono', 'courier new', courier, fixedsys; background-color:#ccc;">travel-button</span>):
[x]Export for runtime sharing
[x]Export in first frame
URL: tour.swf

<span style="font-family:'bitstream vera sans mono', 'courier new', courier, fixedsys; background-color:#ccc;">travel-button</span> in <span style="font-family:'bitstream vera sans mono', 'courier new', courier, fixedsys; background-color:#ccc;">main-entrance</span>:
[x]Import for runtime sharing
URL: tour.swf

<span style="font-family:'bitstream vera sans mono', 'courier new', courier, fixedsys; background-color:#ccc;">travel-ani</span> in <span style="font-family:'bitstream vera sans mono', 'courier new', courier, fixedsys; background-color:#ccc;">tour</span>:
[x]Import for runtime sharing
URL: tour.swf

Reference External Library Movieclip In Library With AS3
Hello, i am able to load at runtime a library asset in flash cs3. i do this by setting up its linkage property and setting its base class. for eg

Class: MyButton
Base: flash.display.MovieClip

then in my document class, say i had com.kofi.InitializeTemplate, my class looks like this

package com.kofi
{
import flash.display.MovieClip;
import MyButton;

public class InitializeTemplate extends MovieClip
{
var testButton:MyButton;

public function InitializeTemplate():void
{
trace("the button class has been called");
testButton = new MyButton();
addChild(testButton);
}
}
}

however, once i bring in an external library asset(which i have already exported and set it base class etc), i am unable to call this shared library asset with as3. anyone know what i am talking about?

Library Size / Library Optimization
I have a large .fla. My library appears to max out because I am using a lot of bitmap images (trying to create a 9/11 tribute) I convert many of the bitmaps to symbols to get tween / fading effects. Some questions:

1. Does my Flash 4.0 Library have a size limit per .fla ?
If so, is it measured in items (like every time I get close to 120 it seems I can not add anymore) or is it measured in size / KB?

2. Does a symbol require the bitmap? If I delete my JPG the corresponding symbol goes away, should it?

3. How can I get more bitmaps used in my movie? I have a ways to go, and I am fighting the apparent library limit a lot right now.

4. Any tips on how to use a lot of bitmaps? I realize this adds to my movie size.

Any other tips in general would be appreciated.

Thanks...

Asset Library - Any Way To Dynamically "read" All Linked Items Within A Library
I've been meaning to ask this question for some time - hope it makes sense.

Basically - I'm using an asset library for fonts and other items. When that asset swf loads, is there a way to burn through all available linked items within that applicationDomain library and have their class names returned? It almost most makes sense to me that this capability could be a bad thing. I'm not complaining here, because using this method of shared assets sure beats the AS2 systems - but, currently, its a two step process: 1) add item to library, set linkage and 2) declare reference to that item whether within the asset fla Document class, or some other manager class that will be used to retrieve assets.

This is in lew of a post I replied to earlier: http://www.kirupa.com/forum/showthread.php?p=2379337

MC2 In The Library Control MC1 In The Library
Hi all,
I've got a problem making a 4button within an MC2 control the MC1 diferent frame label:
How can i tell a MC1 to go to frame label(mv) using a button in a MC2?
I use code:
on (release) {
tellTarget ("MC1") {
gotoAndPlay ("mv");
}
}
and:
on (release) {
_root.MC1.gotoAndStop(2);
}
and:
on (release) {
_root.gotoAndPlay("mv");
}

Please Help Me!

[Edited by Aare on 12-26-2001 at 07:34 AM]

Calling Items From Library And Getting Number Of Items In Library
If i have a folder named questions in my library and i want to get the number of items in that folder how would i do that. I tried the code below but was unsucessful. Is this possible threw code? Or do i need to hard code my array.

var qst = new Array
trace(questions.length)
for(i=0;i>questions.length;i++){
qst[i] = questions.items.length
trace(qst[i])
}

Thanks
Josh

Fla Library
does anyone know a great library of fla files and sources ?
Please let me know and send me some links thanks

Library....?
Hi, If i have many graphics,movie clips, bitmaps (that i'm not using in the movie) in my library this will affect the size of my final movie ...... thanks!!!

3d Library
i just finished up a simple 3d library. it allows you to simply apply perspective, translation, rotation to any movieclip. yours for the taking. hope it is useful.

samples and zip with instructions:

http://www.bit-101.com/3dlib/

Library
Just started using program. Can not it seems following directions put files in sound library. Using Flash 4
Thank you,

Library.. Or Outside Swf.?
I'm still somewhat of a Flash Newbie.. and i was just curious about loading a mc into a project. When you are loading a movie up, does it load everything that is in the library.. even if it isnt being used yet, or only the movie clips that are in the frames. well what im really trying to find out.. for loadablity reasons, is if it would be better to load a MC from an outside swf. or just have it on deck and load it from the library of the main movie? i guess that makes sense.. i hope you guys can make sense of that, i really dont know any other way to word it. anyway.. any help would be apprectiated. thanks -j

Help With Library
Can any1 tell me how to export .bmp files from libary to other applications such as photoshop without copy/paste
Thx Stugwi

Library
Help


When i open the library a error dialog opens up and closes flash, because it says it has generated errors.
What the hell is going on??

Library
help...

every time i open a file, then open the library for it, windows opens up a dialog saying, flash.exe has generated errors. it everytime i open the LIBRARY for a file.
what the hell is going on??

Library BUG
I'm creating a movie from a series of images, tweening those images to create a panning feel (each photo goes to the right a little more than the last one).

- All images have been made into library items to avoid creating additional tweens.
- All images are on the same layer.

img1 tweens fine.
img2 tweens fine.
but NOW, when I put img3 on the next frame, it appears as img2.

I delete it, put img3 in there again, and poof, it appears as img2. So, I drag img3 in there again, and it appears as img3.

So, then, okay, I delete the first instance of img3 that is APPEARING as img2, and POOF, the second instance on the same frame now changes to appear as img2.

WHAT is UP with THIS?

Anybody encountered this bug before? Any way how to fix this? I need help.

I've saved as a new version. I've created another version in the library, img3b, and it hasn't worked.

Library
is there any reason why flash saves two same tween in the library?

Your Library
For some reason I cannot drag a button from my library onto my stage.. is somethind disabled? please help!

The Library
When I import photographs into Flash, they automatically go to the library, right. Next, I go to the library into the properties to change a couple of settings. Next, I drag the bitmap onto the stage and convert it to a symbol (MC) This puts an addtional copy in the library. Does this add to my file size?
Russ

Library
is there a way to check what files are in the library of a flash document ?

Use Of Library
Hi,

ok this is the situation. I want to have a movie clip made up of graphic images. This will be a library of sorts. I then want a series of other movie clips to be able to use (and duplicate) the graphics in that library .swf. instead of having to manually put all the graphics from the library .swf into the other movies. How can I do that? All the ways I looked into, don't allow you to duplicate the loaded in library images, is this something I could now do in Flash 8? any ideas appreciated.


regards
boombanguk

3D Library?
Anyone got a 3D library for creating 3D pics?
Like drawing from a player point of view

[MX] SWF In The Library
I have checked around and can't find this answer so i'll take it as unasked.

I have a External Preloader swf which works fine, the problem is i now need to add it to the main SWF so it's not 2 different files for a complex-ish reason. I have been able to import it to library but it converts the file and the code nolonger works as the SWF preloader. I have already done the changes from external 'LoadMovie' to internal 'attachmovie' but it just doesn't really want to import it as a SWF Object. I was wondering if there was a way to have an SWF container or do i do the quicker and probbly easyer way of just copy and pasting the frames into a movie clip.

Library
Hi, thank you for being on FK.

I have tried to post, but it did not work out. I try again.

Willing to create a database on my site, I would be very grateful if somebody could help me to create a search engine tool for finding books in my personal library of my website.

Is there a link who might be a source of inspiration, pointing to a search enging with specific criteria like : name of the auhtor, type of book, year of publiction, themes (medecine, sport, literature...) ?

I hope you'll help me with my first posting !

Thank you in advance for your kind reply.

All the best,

(with Flash-CS3)

Where Is The Library?
I just upgraded from mx2004 to cs4, and was very disappointed that I cannot find one of my crutches.

In mx2004 under the help menu there was an actionscript library that contained every command and what I does and how to use it.

Am I missing something here?

Where Is The Library?
I just upgraded from mx2004 to cs4, and was very disappointed that I cannot find one of my crutches.

In mx2004 under the help menu there was an actionscript library that contained every command and what I does and how to use it.

Am I missing something here?

Library
When you create a fla and you add say a jpg and other stuff but then change your mind and delete it from the stage. It is still in the libary does the libary get complied into the swf file with the no longer used jps etc or does flash discard the no longer used jpgs?

Second question If I have a MC in a libary like a preloader can I get it out of the libary and put it into a new fla? In other words can I use the old libary with a new file if so how. I have several things like preloaders that I often use and realy want a libary to keep them all in.

Add MC From Library
I have a MC in my library and I want to add it to the scene with AS.

This doesn't work: -

attachMovie("Picture", "Picture1", getNextHighestDepth());
_root["HotBase"];
_root["HotBase"]._x = 100;
_root["HotBase"]._y = 100;

What am I doing wrong?

Php Gd Library
can flash supports the multimedia file such as jpg, mp3 which generates from php?
for example
http://www.myServer/php/image/myPic.php (the .php is the image itself, not using <img>)

i've tried using MovieClipLoader() to load it but it shows nothing in the swf
or i used wrong class to do so?

AS3 CB Library
Hi,

I just downloaded the AS3CB class library and I'm having bother using it.
All of the classes in it reside in a folder named as3cb.

I stuck this folder in my current project folder and used

import as3cd.*; but I cant use the classes.

I also tried putting the classes in C:Program FilesAdobeAdobe Flash CS3enFirst RunClassesFP9flash

and that didnt work either.

What am I doing wrong?

Thanks
dub

Using The Library
Hi,

What is the point of the library in flash, should I load all my images into there or can I not just use blahblah.loadmovie(image) to load my images as I go along?

is there any advantage? - a good tutorial on how to use the library would be nice aswell.

cheers

Cannot See In Library
Hello

In my Library folder I have a bitmap image which I need to convert to a symbol. I have dragged it to the stage and clicked on 'Convert to symbol' and chosen 'Movie Clip' and saved it. It is now in the Library, but I cannot see it in the Library's preview window (it should show, as the
original did, a long purple line).

Thanks.

Steve

Library Help
After importing PNG files into your library how do you compress them in the library?

Any help would be appreciated...

Respectfully,
Mike Jones

One Library To Multiple SWF
Can i have multiple swf using the same library? But only load the symbols once??
ex:

in my library i have a symbol with 100kb and as i load the second swf (that has the same symbol) he doesn´t need to load that symbol again, does it uses the previously loaded one?

Thanks

Library Question?
Is there a way to save my MC's, buttons, graphics in a folder somewhere that they are accessable through any MOVIE/FLASH I might make? For example..if I create a button I really like...can I save it somewhere so when I make another MOVIE/FLASH I can use that button/MC again??
Thanks! The library is a mystery to me!! -whispers-

Exporting Library Mc To .swf
I have a library with several movie clips -- One of them was exported to the local directory as an SWF -- I do not know how this happened -- but I am using that for a pop-up window w/ the 'loadMovieNum ("filename.swf", 2);' command.

How do I get the other files to export to an SWF as well? I wish to use the method above as well w/ them.

Please help.
-thx

Purging The Library
Is there anyway to purge unused symbols and such from the library before publishing?

As I am learning Flash, I find that I add stuff and decide later not to use it. It is still in the library when I publish. Does that add much to the file size? If so I would like to delete unused symbols but not have to delete each symbol individually.

TIA for any help

Eric Stewart

Shared Library
I made a shared library.swf with 20 images and i want the images shown in the main movie (with the laodMovie action in a placeHolder) On click in the main movie, the next Image must be shown, on click the next one, etc. So how can i control the images in the shared library.swf
thanx for your answer
kind regards
lexder

Loading MC From Library
Hi ... I need to know if ther's any way to "loadMovie"
from the library

A Good SFX Library
does anyone know where i can get good sound effects, not like cats or dogs or doors, but like the SFX that http://www.2advanced.com uses? like more digital type sounds for buttons or motion tweens, thanks!

Library Graphics
no, my problem is at run time.
when the movie is running, imagine that i point the mouse at position (x,y), and when i press the mouse button, i place a library graphic there.

Random Pic From Library ?
Ok I want to have a rather lengthy MC with pictures flashing in the background . I've got alot of pics and it would be to much trouble to do this frame by frame . I was wondering if there was anyway of loading a file fron the library into an array and then randomly call pics from the array to apper in a MC, one at a time of course . If somebody could please give me an example it'd be very helpful . This is both my first time using arrays in flash and trying to load somthing form the library . Thanks in advance .

MX Library When Publishing...
Hi All,

I was told a while back that in Flash 5, when you publish a movie, it use's EVERYTHING in your library...regardless of wether or not it is actually used...

Now i have read (somewhere) that in MX, when you publish your movie..there are some smarts thats uses ONLY the stuff you actually need...therefore no need to worry about deleting stuff out of your library before final publish..

Is this correct??

Thanks All

Flash Library
I have a question about the flash library.
i noticed that as i work on an animation, tweens build up in the library. Some of which are no longer even referring to things in the movie (maybe the objects they are referring to have been deleted).
Do these tweens in the library make a significant difference to file size, and should i get rid of them if they're no longer relevant??

Actions In Library
Hi, in case of having scripts attached to objects in the library which do not appear at the stage, only when publishing, and using attach command - only then they appear : this actions (the ones attached to the obj in the lib) can be seen some place on work mode - through Movie Explorer i don't see them.

thanks in advance!
Maya.

Cleaning Library
Hey Everybody,
I want to clear out my library of all the junk that I'm not using in my movie. Is there a way to do it without manually doing it myself? I'm afraid if I do it I will delete stuff I need. (It never fails when I try.)

I'm using Flash MX.

THANKS!
Christina

MC Alignment In Library
How do you move the crosshairs in the Library? I am following along with the http://www.one-motion.com tutorials, with isometrics. The MC in his library shows the crosshairs at the top, mine always stays in the middle. I can't believe I am stuck on something like this.

thanks for any help

Library Don't Get Smaller
hi,

when i import a wav sound intro the library, save the fla, delete the sound in the library and save the fla again, the fla remains the same filesize.
where is the wav hidden? ist this a bug of flash?

Importing .swf's To Library...?
Hi All,

I have a very small .swf file (that comprises a few different MC'c) that i want to use in another movie...Instead of importing the MC's that can re-make the Movie...is it possible to import the whole .swf ??? What are the problems that i may have to look out for??

Cheers

Shared Library
Dear Friends,
I am calling a sysmbol to the main flash file from the a shared library. Apart from the this sysmbols there are other symbols. I am also using XML for maintaining database of my file. I have two layers . One for symbols and other for action. I am displaying the shared symbol in the 4th frame after the XML being loaded. My file is used on WEB. I have faced a problem while testing my file in an NT server.

The shared symbole is not getting displayed for the first time. If I refresh the browser then I shared symbol is getting displayed.
Please help me why such problem is coming.
Thanks
Rashmi

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