Symbol Linkage
When I give a movie clip 'linkage' and tell it to export in frame one, everything runs fine and dandy. However Exporting in frame 1 seems to cut off the preloader, and leave the screen blank for too long.
This should essentially be a simple question: What alternative is there to exporting a movie clip other than the "Export in frame 1" check box?
FlashKit > Flash Help > Flash MX
Posted on: 08-08-2002, 02:26 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Symbol Linkage - When Are They Loaded?
If I export a symbol from the Library under Linkage,...when is that specific symbol loaded into the .swf? I'm assuming on frame 1. If so, is there a way to somehow load them on a later frame? Only thing I can think of is throw 'em into a separate .swf and load it at that time.
J
Linkage, Export Symbol Help
i need help on sound linkage export symbol, i have a loop sound in the linkage export symbol, but the problem is that i cannot edit the sound because it is in the linkage, the problem is the soundloop have a gap in the beginning and the end, all i need is to edit that little gap so the sound would run smoothly, i try other program like cakewalk to fix it, but when import sound to flash, the gap is still there. can anybody help, any help is appreciated. thank you.
Linkage, Export Symbol (soundloop)
importing sound loop into flash, i know there are a little gap in the beginning of the loop and in the end of the loop, using edit and cut that gap out, the loop would be fine.
but my question is i'm using linkage and export the sound loop, when playing the loop there a gap is still there, cannot edit the loop because it is not in the time line, is there a way i can edit the sound loop, cutting that little gap, and using the linkage export,
i'm making a on off sound button, the on button will automaticly link to the loop.
one again i cannot use edit, to fix the loop, because i linkage and export the sound loop, so there for sound loop is not in the time line
thank you
Advanced Symbol Linkage Understanding
Im tring to understand the linkage limitations as perhaps im using it wrong?
if anyone has used it in this manner please reply.
my goal is to control a symbol from another class instance;
under the Linkage values of a movieclip symbol (in the designer) I enter:
Class: MyNewClip
BaseClase: com.trilec.ui.myMovieClip
export to ActionScript: on
export in FirstFrame: on
I then edit the MyNewClip symbol and enter the following action script(frame1):
(see myMovieClip for class details bellow)
override function draw() {
trace("override draw");
}
override function layout() {
trace("override layout");
}
then create a red box in the symbol for testing
Next create the myMovieClip class
contains:
package com.trilec.ui
{
import flash.text.TextField;
import flash.display.MovieClip;
public class myMovieClip extends MovieClip {
public var internalW:uint = 10;
public var internalH:uint = 10;
//Contruction.
function myMovieClip (cw:uint, ch:uint) {
internalW=cw;
internalH=ch;
createChildren();
draw();
layout();
}
function createChildren():void {
}
function draw():void {
}
function layout():void {
}
function setSize(cw:Number,ch:Number):void {
internalW=cw;
internalH=ch;
draw();
layout();
}
}//class
}
I then create the instance and run using this function:
this is so a name can be used to access the symbol clip in the main fla (or whereever)
public function getMyMovieInstance( val:String,cx:int,cy:int):myMovieClip {
var classDef:Object = null;
var instance:myMovieClip =null;
var skin:Object = val;
try {
classDef = getDefinitionByName(skin.toString());//get from fla file
instance = new classDef();
} catch(e:Error) { } //do nothing
if (instance == null) {
instance = new myMovieClip (cx,cy);
}
return instance as myMovieClip ; //return it as a DisplayObject
}
and so in my main code:
var myClipSkin:myMovieClip;
myClipSkin = getCeMovieInstance( "MyNewClip"); //included in fla as above
addChild(myClipSkin);
now you would think this would work giving a red box with a trace
...but....noooooo.....
Interesting issues:
compiler errors:
1203: No default constructor found in base class com.trilec.ui::myMovieClip.
hmm, ok ill add one.
function MyNewClip (cx:int,cy:int){
}
compiler errors:
adding a constructor to the MyNewClip symbol
1021: Duplicate function definition.
hmm turning export in FirstFrame: off
so I turn off
no errors but no red box and no trace
take out constructor again.
no change.
hmmm..wtf
Symbol Linkage + Preloading Problems Solved
I had trouble when trying to display preloading information on movies that had exported symbols from their libraries, in my case sound clips if you are trying to control that sound using ActionScript.
My solution was to create a seperate 30x30 movie with the sound clip imported. Export that sound as you would in the main movie and in frame one place the following script:
sSound = new Sound(_root);
sSound.attachSound("LinkedSound");
In frame two place the following script:
stop();
_level0._root.sSound_loaded = true;
These scripts allow the sound object "sSound" to be controlled externally by the host movie. Because the linked symbol must load before even the first frame, the variable _root.sSound_loaded wil be set to "true" in the main movie only when its done loading.
In the host movie simply use the following command to load the sound movie into level1 (above the current layer):
loadMovieNum ("sSound.swf", 1);
From the host movie you can issue commands such as "_level1.sSound.setVolume(x);" to control the volume of the clip, "_level1.sSound.start(0,1);" to start it, or use any other Sound object commands you desire.
Additionally you can query the preload status of the movie whilst it's loading in a similar manner by using the command "_level1.getBytesLoaded();", but for complete peace of mind ensure to check the variable "_root.sSound_loaded"
Once again this gives the flash developer ultimate control over exported symbols in your movie's libraries.
Can I Open A Movie Symbol Using The Linkage Properites?
Is there a way to open a movie symbol with a button using the linkage properties in the library? Is that the reason for the linkage so you don't have to load a swf? I just have a movie that is not showing but then want to load it on screen. I'd rather not use the alpha to show it as not visible either. My main concern is seeing what you can do with the whole linkage thing. Thanks
Font Symbol Linkage Identifier Not Working With TextFormat?
I have a problem which is really puzzling me. I'm trying to set the font face of a a dynamically created textfield to a font defined by my font symbols. Everything I have read suggests that this should be done by setting the textFormat.font property to the corresponding font's linkage ID.
Say if I have the font Perpetua, I create a font symbol called font_Perpetua, export it to ActionScript with the same name for linkage ID, I would expect this code to work:
this.createTextField("text1",1,50,50,400,75);
text1.text = "This is a test";
var txtFormat_1:TextFormat = new TextFormat();
txtFormat_1.font = "font_Perpetua";
txtFormat_1.size = 50;
text1.setTextFormat(txtFormat_1);
However, it doesn't. The text in the textfield is displayed as Times New Roman, the default text. The code *does* work, however, if I specify txtFormat_1.font = "Perpetua", the font's actual name (as seen in the font list). For various reasons, this is not satisfactory for me purposes.
What's the point in a font symbol's linkage ID if I can't actually *use* it? This seems, well - pretty darn dumb. What am I doing wrong?
Convert Graphic Symbol To Button Symbol
Howdy,
I have a graphic symbol on stage. I then create a button symbol from the graphic symbol and the registration point jumps up a tad? Why would the registration point move?
Thanks,
mperla
SYMBOL NAME PROBLEMS In SYMBOL PROPERTIES PANEL
hey,
i'm tring to go thru a tutorial for scripting a scrollbar to a movie clip. please take a look at the attached file: container_4.fla
i can't get the btm rt scroll bar to move the movie clip (title list), and i've checked all of my work vs. the tutorial and they seem to jive.
except...
when i inspect the "scroll_target" symbol thru the library, i notice that the symbol name in the top field (Name: scroll_target) is not the same as in the bottom Source/File section (Symbol Name: Symbol 10).
what gives? when i check the tutorial file (which works...) all the symbol names jive in both areas. now i'm wondering if there is a corruption in my app (Flash MX v.6.0) that is mis-assigning symbol names at a code level.
please help.
thanx.
b
Class To Generate New Symbol From Base Symbol
I've searched but can't find a reference to what I need. I'll try to explain the best I can. I have a single symbol that is a "gear tooth" which is in the library and exported for Actionscript with the identifier name "geartooth." I'm trying to create a Class called "gear" which accepts the following parameters: numGears as Number and gearTooth as movieclip. The purpose of the class is to dynamically create a gear based on the geartooth symbol and the number of teeth requested. The class has methods to determine the radius of the gear, to duplicate the original geartooth, and then to rotate each new geartooth instance the requisite angle around the calculated center to create a seamless gear. I want there to be a getter method to return this new gear as a single symbol that can be manipulated as such. Is this possible? If so can someone point me to some relevant examples of similar code? Thanks much.
Newb Help? Putting A Symbol Inside A Symbol.
All I want is to have a man blink.
The man is a symbol, and there is another symbol inside of him. (his eyes.) Which I already set to blink.
Anyways... It doesn't work. It works when I preview it in symbol editing mode, but nothing else.
I am sorry if I was too vague, I'm still learning. Any help?
[MX2004] Movie Symbol As A Button Symbol
I have a scrollout menu for my flash movie, but each of the buttons have to be movies symbols. I try to attach:
on (release) {
gotoand stop(4)
}
But I get the error that this script only works for buttons. Anyone able to lend some assist? I suck at actionscript. ;p
Newb Help? Putting A Symbol Inside A Symbol.
All I want is to have a man blink.
The man is a symbol, and there is another symbol inside of him. (his eyes.) Which I already set to blink.
Anyways... It doesn't work. It works when I preview it in symbol editing mode, but nothing else.
I am sorry if I was too vague, I'm still learning. Any help?
[MX2004] Movie Symbol As A Button Symbol
I have a scrollout menu for my flash movie, but each of the buttons have to be movies symbols. I try to attach:
on (release) {
gotoand stop(4)
}
But I get the error that this script only works for buttons. Anyone able to lend some assist? I suck at actionscript. ;p
Symbol In Symbol Buttons Won't Work
Okey, I made a movie and I have a symbol that has several buttons in it. They will work if I link them to some url or some frame on same scene, BUT they don't work when I link them to a different scene..... why? I had to put each scene on different web page which really stinks because user has to load new page with big flash file each time he clicks on any button....
Refering To Other Symbol From Inside A Symbol
alright i'm editing the actions of a movie clip, called button13. this button is in a movie clip called reproduction_sub. this movie clip is in the root movie. so from inside the button13 i want it to be able to goto a certain frame in the reproduction_sub. yes i do have a button in the movie clip button13 i just want to know the code i needed to put into the balnk for the button to be able to go to another frame in another movie clip. i have flash MX by the way. well thanks very much for any help!
Symbol Within Symbol Buttons Flash Mx
I have a graphic symbol which is within another symbol and within the graphic symbol are buttons. I want the buttons to play something on the timeline in the previous symbol. I have tried using .root_ but that goes to the main timeline, so how do you go one back?
main timeline > symbol 67 > symbol 84 (button here, want to go to timeline on 67)
Target Symbol Inside A Symbol
hey every body i need to target a symbol inside a symbol for a hittest. i really need some help w/ this thanx alot to any body that helps
-yeps
Converting Instance Of Symbol Into A New Symbol
When I convert an instance into a symbol, I have been told it becomes a new independent symbol. But when I try to place that new symbol within the old one (from which the instance came from) I get a message saying "Cannot place symbol inside itself".
Is there a way I can have an instance converted into a new symbol and be fully detached from the old symbol from which it came?
Thanks.
Movie Symbol & Button Symbol
Hello,
CAn someone tell me how to make an animation/movie a button?
www.humanbloom.com/links
The "goverment resources" is a movie symbol and I need it to link to another webpage. Now I have tried to make the button first & then add the animation it has now, but of course it needs the mouse in order to do something. So I am lost on how I get it to do what I want it to animation wise and make it a button too>?
Movie Symbol & Button Symbol
Hello,
CAn someone tell me how to make an animation/movie a button?
www.humanbloom.com/links
The "goverment resources" is a movie symbol and I need it to link to another webpage. Now I have tried to make the button first & then add the animation it has now, but of course it needs the mouse in order to do something. So I am lost on how I get it to do what I want it to animation wise and make it a button too>?
A Symbol Controls Other Symbol's Swap - How?
I'm a teacher and I need to make some sort of simple game.
I need a little guidance on symbol swap coding.
There are two symbols (buttons) on screen. I press the first button and the second button is swapped (not the one i press!)
How to do that?
Targeting An Object/frame In A Symbol MovieClip From Another Symbol MovieClip
I have a base flash file within it are 2 symbol>movieClips I did it this way so that i can coltrol my animations more effectively, but I am trying to have one of these access the other, IE one is a menu the other is a main "page"(set up as a frame. so as I click on something in hte menu I want it to load the correct page/frame from the other movieClip
here is a sample of what I've written:
Zachary Bobo
Attach Code
import flash.display.MovieClip;
fountain_button.addEventListener(MouseEvent.ROLL_OVER,fountain_start);
function fountain_start(event:MouseEvent):void {
gotoAndStop fountain
}
Edited: 03/31/2008 at 05:54:53 PM by boa743
Fading Symbol On Top Of Symbol?
I'm new to Flash MX and Flash in general. I'm trying to create a simple opening splash page for a website. All I want to do is have one image fade out and a logo fade in in it's place every few seconds. I can get each symbol to fade, but the problem is having them on top of eachother. You can see the image layer on top of the logo layer. Is there anyway to do this?
Thanks for the help in advance!
Symbol On Symbol Action
no, its not a porno... im making a game where you can dress up my friend like a pirate, and the flag i made for his hand appeard under his shirt... how do i tell flash to put the flag symbol on top of the shirt symbol?
How To Get Symbol 1 To Overlap Symbol 2?
Hi, i makin a toon and i have graphic symbol of a hat (symbol 1) and a graphic symbol of a head (symbol 2), and i want symbol 1 to overlap symbol 2 so u get the illusion of the hat on the guys head. But when i try to put symbol 1 over symbol 2, smybol 2 overlaps symbol 1 (the hat is behind the guys head). So how do i get a symbol to overlap another? Thanks.
~lunchBoxxx
Using One Symbol To Play Another Symbol
I am new to actionscript, sorry if I am asking a very simple question.
Two symbols, s1 and s2.
Both symbols are movie clips.
I am trying to create an effect that s2 will play when user click on s1. I am able to use on(Press){Play} for the same symbol, but I couldn't figure how to make another symbol to play.
Thanks in advance.
TSL
Symbol With Action, In A Symbol
Is it possible to have a mc inside another mc with an onClipEvent action on it. It doesn't work the second one (that inside the other). Here the .fla file ....
Play Symbol In A Symbol
Basically im making a game and a man has a gun wich he can shoot with, i have 3 symbols all movieclips embedded in one another. like this
Man > Hand > Weapon
but i got the weapon to be animated when he shoots, ive tried everything and dont know how to animate just the weapon in the Hand in its currerntly location, i can do it via a fixed point using the code below;
attachMovie("deagle", "deagle", 4, {_x:50, _y:50});
that will play the animation everytime i click, but only in a fixed location, where i already have the hand moving on an axis, all i really need to know is how to run an animation thats embedded in multiple symbols.
Symbol Changing Into Different Symbol
When I drag a symbol onto the Stage from the Library, I am getting a weird result.
If the location (on the Timeline) is a keyframe directly after a keyframe which contains Symbol X then the Symbol I was dragging turns into Symbol X!
If I separate the two keyframes with some empty Timeline, I can put an instance of the new Symbol on the Stage just fine.... but if I drag the keyframe back to the frame right after Symbol X, it turns the new symbol into X!!!
What's up with that??!
Linkage
Does anyone know of a way to do sound linkage with actionscript instead of hard coding it by clicking and doing it in the library? This is REAL important for me as it looks like Generator's ability to use sound is for ****
Linkage
Hi Everyone,
I'm using an attached sound with linkage.
The problem is that Flash automaticli load it in the first frame and it takes a lot of the time (the user won't c anything meantime)
SO...
I want to put this libary in another swf and to load it.
I do it but I didn't know how can I call the sound now.
I tried this:
------------------------------------------
x = new Sound();
x.attachSound("_level1/song");
x.start(0, 99999);
------------------------------------------
But it's not working.
Any solution?
and how can I know that this new swf is loaded?
Linkage ...
Hi all
My problem is that my movie - a slideshow has a call like
this:
sound1 = new sound();
sound1.attachSound("music");
sound1.start(0, 1000);
function setV (v) {
sound1.setVolume(v);
}
and of course I got a piece off music with a linkage = music
and this works fine.
THIS CALL is placed in an frame after the preloader loop
BUT the movie seams to start load the music in the memory
and that without showing the preloader-ani. Only when the
music is in memory the preloader starts for the hole movie..
Is there a way out of this?
Have a nice day :-) PAUK
Linkage
I want to make a screensaver that detects if the person is online and if so populates the screensaver with new images..using linkage in FlashMX...
Does anyone know how you can make actionscript that can be linked..I tired a link in an MC with code that would effect the main timeline...The MC came in, but not the code
why?
does anyone now any good linkage documents?
Linkage
Hi! i have a little problem. I create a .fla file to use it as a shared library, that file have a lot of movie clips. Once it was created i have the need to change the file name. I was wondering if there is any automatic way to change the url name of every movie clip on the library.
Thanks!!!!
How To Do This... CD Linkage
hello guys
i created a button, and what to add a "GET URL" action to it... to open an HTML page located on a CD, what is the command ?
i tried: on (press) get url (webindex.html)
but it didnt work... it opens the c:webindex.html insted !!
what is the exact command to use ?
Linkage
I am trying to standardise my work, almost make it into a production line and am thinking of using the shared library way. I want to be able to make one button and so forth and then use that in all my work, is using the shared library the best way to do this, and will it mean that if i change the original button it will overwrite wherever that button is used.
Has anybody done it any other way, or is using the shared library the only way.
cheers
lee
Linkage
guys
how to change the link instead of to the website, i want to link to the scene inside the same swf
onClipEvent (load) {
daTextBox = "<a href="http://ww.yahoo.com">When you say nothing at all (Ronan) 4.17</a>
<a href="http://www.msn.com">Run to me (Oscar de La Hoya) 3.41</a>
One in a million (Bosson) 3.36
Better man (Robbie Williams) 3.22
Escape (Enrique Iglesias) 3.28";
}
tq
Plz Help Me On Linkage.
Hi,
I need help on symbol linkage, using linkage we can send action script to another swf file or we can retrieve script from that swf in another swf file I am getting that. But my problem is that I would like to get dynamically updated content.
Thanx
Linkage
Hello
does anyone know if a linkage property of a library item
can be set through actionscript
and does anyone know of a thread on shared libraries
i would really appreciate any help
thank
PDF Linkage
Could anyone tell me how to write the script for opening an external pdf file and how/where to save this file for the published flash to find it?
many thanks in advance.
Shirshiron
Linkage
hey im loading one swf into another swf. Im using the window component here my code to help explain
---------------------------------------------------------------------
on (release){
flashvideoclip = mx.managers.PopUpManager.createPopUp(this, mx.containers.Window, true, {contentPath:flvvideo,<---------- closeButton:true, title:flvtitle});
flashvideoclip.setSize(1240, 930);
lo = new Object();
lo.click = function(){
flashvideoclip.deletePopUp();
}
flashvideoclip.addEventListener("click", lo);
}
---------------------------------------------------------------------
BUTTON1 (below) BUTTON2 (above)
---------------------------------------------------------------------
on (release) {
videotitle = "Carols PV"
realplayerurl.url = "removed";
realplayer.setTextFormat(realplayerurl);
flvvideo = "vp"; <----------------------
_global.flvurl = "removed";
flvtitle = "Carols PV"
}
---------------------------------------------------------------------
vp is the linkage name for a mc in the lower swf file.
meaning its in the 2nd swf that gets loaded not loaded into.
it runs fine untill i load it into the other swf. than the linkage disappears if anyone could help that would be nice.
Linkage Help Please
i have a scroll plane componet, the movie inside is named venders
i need the movie venders to link to another movie on the same level as the componet... any help with this would be great
Linkage
how to link this list.addItem("Because u love me - celine dion"); to an mp3 in flash???
the mp3 file iz already been imported into the library....
Thanks
Linkage
Agh - simple question. I need to link a button to a URL. The URL is to a downloadable file so I don't need to open a new page or anything.
Thanks,
H
|