When Converting A Custom Compoent To A Compiled Clip Its Parameters Disappear
Hi when convert a custom component to a compiled clip the component parameters in the parameters panel disappear and I can not change their values.
whats wrong? are there any code I need to put or any options in the component definition I had to set?
please help me.
thanks a lot.
FlashKit > Flash Help > Actionscript 3.0
Posted on: 07-08-2008, 10:00 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
When Converting To A Compiled Clip Parameters Disappear
Hi
when convert a custom component to a compiled clip the component parameters in the parameters panel disappear and I can not change their values.
whats wrong?
are there any code I need to put or any options in the component definition I had to set?
please help me.
thanks a lot.
Movie Clip Vs Graphic Vs Compiled Clip Vs Frustration
Hi,
I'm having multiple problems with my new animation, and have been searching for a solution for days now.
First a bit of background:
I tried to be all slick and make a movie clip of a mock debate with my whole animation in it, and then move that around in my main timeline to give the appearance of a camera panning, changing angles, and zooming in and out.
First part of the problem:
The main movie clip has audience noises in it, which are impossible to synch up with the characters' dialogue as the lip synching occurs in movie clips of the characters' heads. (So I've got movie clips inside a movie clip inside my main movie.) I understand that I can see the motion when I make them graphics and must change them back to movie clips to get the audio to work when publishing. That doesn't help me get the speech to synch up well with the audience noises though. I need sound to propagate. I tried compiling the movie clip but that didn't help.
Second part of the problem:
I put the main movie clip on my main timeline and create a motion tween to move it around (see background info above). However, I can't see the motion in the main clip if I don't set it to behave as a graphic (and even then, I can't see the motion of the movies within that clip). The problem is that there are a ton of keyframes and every time I want to preview or publish (to really see all the motion) I have to swich them all back individually to behave as movie clips. This is very time consuming.
AM I MISSING SOMETHING???
Flash can't possibly be this difficult to work with...
Is there no way at all to edit with sound from embedded objects? No components available or anything?
Is there a better way to accomplish my "camera angles" task without having to individually switch every key frame from movie to graphic and then back again?
BTW, I tried to compile the main movie clip first, but since the reference point is in the center, MX 2004 cuts off everything but the bottom right quadrant. It doesn't seem to show movement anyway so I guess that's a moot point. I have no idea how to move the reference point either without moving every single frame in my clip.
Thanks to anyone who even read this whole thing. Any suggestions would be very welcomed.
Dominic
Custom Cursor: Disappear
Oh, and one more question: Is it possible to make a custom cursor disappear (or fade) after the mouse has been dragged away?
I tried some of the settings in Flash but nothing worked.
Compiled Clip?
I received the FLA source file where there is a compiled clip - it makes text effects. I wanted to translate the animation from English into Polish but when I changed the sentence, the whole text did not appear - some letters were missing. I think the compiled clip is responsible for this but I cannot see what is inside it.
Is there a way to look into the compiled clip or should I ask the author of the animation for the source file with the clip which is not compiled?
I will appreciate any hint, as I have never dealt with the compiled clips - this is something new for me and I do not know how to handle it.
Compiled Clip Will Not Publish
I’ve created a movieclip that I would like to compile so that it can be easily used over many applications. It does compile, but flash will not publish a .swf containing it. Clicking Control/Test Movie does nothing. I tried reinstalling flash, but it still doesn’t work. An example file can be found here:
http://www.geocities.com/MichaelGioffredi/ColorWeel.fla
Open the .fla and click Control/Test Movie to see what I mean. Does it work for anyone else? What am I doing wrong? Thanks.
Compiling UI As A Compiled Clip
Hi there,
Does have anyway to compile The Flash UI component in a way that the user cannot change the data such as skins ?
I compiled them by write click on some of the UI components that I used in my library and clicked as a compiled clip but it caused to had a lot of errors.
Any suggestion?
Thx
Component / Compiled Clip
Hey there,
I am having some trouble figuring something out regarding a compiled clip versus a component in the library of the sample FLA I downloaded from Macromedia called "UIComponent_QuickStart.fla".
I understand what the code is doing, thats no problem, just curious how they got "MyUIComponent" to appear in the library as a component, is a component the same as a compiled clip? I could only get my AS file to appear as a compiled clip in the library.
I am definitely missing out on something, hopefully someone can point me in the right direction.
Cheers,
Nathan
Compiled Clip (gotoandplay)
well my experience isn't that great with actionscript 1 and 2 - only had 1 year of C++ so hoping someone can help me out with this problem.
I'm trying to setup a Flash shopping cart which the user can click on an "add to cart" button (which is a compiled clip) and a view status movieclip will appear and notify the user there is 1 item added to their shopping cart.
compiled clip = mybutton
mask = Scene1_frame7
in actions layer(frame 1) -
mybutton.addEventListener(MouseEvent.CLICK, buttonClick);
buttonClick.onPress = function(){
gotoAndPlay("Scene1_frame7");
}
first time posting so i hope i got all the information down that you need to resolve my problem - spent 2 hours trying to figure it out and another hour on forums searching..
thanks in advance
Compiled Clip Won't Loop
Hello. I converted an .avi file in Flash 8 to a Compiled Clip. In the library this is named FLVPlayback. The clip takes up 1 frame on the timeline. If there is a way to edit it I haven't found it. What I need is for the .swf to loop. Nothing I have tried has worked. Any help would be greatly appreciated.
Thank You, WonderWendy
[urgent]compiled Clip
Hello. I have a compiled movie clip in an fla. It has a flv, and a controller for it. How can I open it up to get the the controller? I has no "edit" feature...?
Decompile A Compiled Clip?
hi, can i decompile a compiled clip? i want to use a drop down component (64k!), but want to change the colour of the arrows. if i drag teh halo theme into my movie then it bumps it up to 100k!
cheers
Compiled Clip Will Not Publish
I’ve created a movieclip that I would like to compile so that it can be easily used over many applications. It does compile, but flash will not publish a .swf containing it. Clicking Control/Test Movie does nothing. I tried reinstalling flash, but it still doesn’t work. An example file can be found here:
http://www.geocities.com/MichaelGioffredi/ColorWeel.fla
Open the .fla and click Control/Test Movie to see what I mean. Does it work for anyone else? What am I doing wrong? Thanks.
Compiled Clip Vs Live Preview
Hi
Does anybody know how to create a compiled clip that diaplay when add to the stage. I explaine. The clip I build has an outline to know the diaplay zone. This outline visible = false at the clip ADDED event. It means that when I publish the Fla, the outile desapear. My problem is that when I Compiled it to a Compiled CLip, when I put it on the stage the ADDED is execute. So I can't view the outline to position it to the stage.
I tried to used the Component properties and set the live preview, I put a link to a swf that is exactly the preview of it, but when ADDED to the stage the preview is jsut a small square of 10 px. Not the real preview in the external swf.
I need to have a Compiled Clip that is visisble on the sateg and execute the outshape visible to false on publish only
Any Idea
Compiled Clip Layout Problems On MX 2004
Hello. For the last few days I've been trying to figure out how to build new components which I can use in other places with a minimum of effort. I'm now able to create compiled clips (.swc files) and use them in other projects, but I'm having a strange problem.
I have a component which lays out some radio boxes in a line, using this code:
code:
var container:MovieClip = this.container_mc;
var item:MovieClip;
var len:Number = __labels.length;
var xPos:Number = __margin;
var yPos:Number = __margin;
for ( var i:Number=0; i<len; i++ ) {
item = container[ "item"+i ];
item.move(xPos, yPos);
xPos += item.width + __spacing;
}
This code works perfectly when I preview it before compiling. After compiling the finished component to swc, I import it into another project where I instantiate it using attachMovie() on an empty movie clip.
The component renders, but all of the radio boxes are on top of each other - the sizing code doesn't work.
The first thing I found out was that the function containing this code - the component's draw() function - was not getting called. So I moved the code out to a separate function, made it public, and called it explicitly when I instantiated the component. Now the function was getting called, but the boxes still weren't laying out.
I've since confirmed (using lots of trace() calls) that:
* The container in the above code is successfully found, as are all of the items.
* The item.width is correctly detected
* xPos is correctly incremented.
The only remaining possibility seems to be that item.move() isn't working, although it works perfectly on the non-compiled version of the component.
Perhaps I'm missing something really obvious here. Can anyone suggest what it could be?
Thanks in advance,
Brendon
Convert To Compiled Clip Showing Old Errors.
Hey Everyone!
I'm having some trouble with my component.
Every time I make a change to the code in the linked .as file I have to literally close down Flash and re-open the file before I convert to compiled clip and test it. If I don't do this Flash will display old errors from the previous compilation.
I've tried everything I can think of, but for some reason Flash won't read in the most up-to-date version of the code when I save it, only at startup.
Any ideas? Thanks!
Tim
AS3: Component Parameters And Custom Ui.
Since in AS3 one can't add script on movieclips, and it seems when
converting an MC into a component and adding a parameter then the
parameter/variable isn't being reckognized as existing by the MC/component
... does anybody know a good start point on how to create components in CS3?
Following up, in AS2 one can create a custom UI .swf for a component and
make a parameter customizable in f.e. a texfield by adding
_root.xch.parameter to the Var field in Properties panel ...
Now running into;
1) new phenomena : "WARNING: Text field variable names are not supported in
ActionScript 3.0."
2) _root.xch. I think probably is not valid anymore (not 100% sure though)
Anybody know any good documentation about creating custom UI's for
components in CS3?
T.i.a.
P.
Custom Components And Parameters
People , I need a big help in here...
First, I have a custom component linked to the Class "List" with the
following default parameter(showed in the component parameters painel):
ActionScript Code:
mylist:Array=["one","two"]
code in List.as
----------------
ActionScript Code:
class List{
[Inspectable(name="mylist", defaultValue="one,two",category="1")]
public var mylist:Array;
function List(){
trace(mylist) // trace returns "one,two"
}
}
what I need is that the values defined in the component painel
for "mylist" parameter, be avaliable for any other instances of
the "List" class so I can manipulate those values anywhere.
I have tested and unfortunately it returned "undefined":
Example:
code in Generic.as
------------------
ActionScript Code:
class Generic{
function Generic(){
var my_list:List= new List() // trace returns "undefined" here
}
}
Any help is apreciatted ! Thanks !
Collection Property Causing Problems While Creating Compiled Clip
Hi,
I've already made this component which uses a collection property, I created the collection class named as "com.evalCollection.MMcqCollection".
It works fine when I run the compnent having the class files in their necessary paths.
But this component would be given for integration for our artists, so I decided to make it as a compiled clip. It compiled perfectly, but when the artist tried to integrate it, it showed us an error stating that:
**Error** Symbol=mc_movie02, layer=Layer 21, frame=32:Line 25: The class 'com.evalCollection.MMcqCollection' could not be loaded.
var itemObj0:com.evalCollection.MMcqCollection;
How can this be?!!!
Aren't compiled clips supposed to have the classes embedded .. Then how come I'm having this problem... This is really confusing...
HELP Please...
CS3 Action Script 2.0: Compiled Clip Components Do Not Appear In The Component Panel
Hi,
I have a FLA file containing 3 compiled clip components.
I use a MXP file to copy this file to the components panel, this works fine when using Macromedia Flash 8 or Macromedia MX 2004, but when using CS# the components do not appear in the components panel, only if a use regular component or SWC component it appears in the panel, any reason why?any ideas?
Thanks
Maya
Parameters For Custom Global Functions
I've got an app with oh about a couple dozen global functions defined, all that do something to the same set of custom objects, and frankly, i'm running out of meaningful names for the parameters for these functions.
Is it bad to re-use parameter names when you have all globally declared custom functions?
Custom Functions And Passing Parameters
If i create a function... function blah(A:MovieClip, B:MovieClip, C:String):Void...
is there a way that when i call it i can pass A and C to it and skip passing B and have the function assign a default value to B? I think i saw that you can do that now in AS3... but i cant find a way to do it in AS2.
so what i want to do is something like blah(A, , C); and somehow only be able to send the first and third parameter if i want.
Thanks!
Kyle
How Do I Access Custom MovieClip Parameters?
Hi,
In AS2 you could right-click on a movieclip in your library and select "Component Definition..." Once there you could create custom parameters that would appear in the "parameters" tab. It's basically a way to set initial values of parameters for the movieclip.
This used to work fine in AS2, but now I get this error when trying it in AS3:
1120: Access of undefined property test
Is there a special way you have to access the parameter list now?
Thanks for any help on this!
Custom Function, Passing Parameters
If i create a function... function blah(A:MovieClip, B:MovieClip, C:String):Void...
is there a way that when i call it i can pass A and C to it and skip passing B and have the function assign a default value to B? I think i saw that you can do that now in AS3... but i cant find a way to do it in AS2.
so what i want to do is something like blah(A, , C); and somehow only be able to send the first and third parameter if i want.
Thanks!
Kyle
[AS3] How To Set Optional Parameters In A Custom Class
Im coding in AS3, and i want to make a class that will recieve optional parameters, but i dont know how to identify these parameters as optional.
I tried writing
Code:
public function mydate([language:String]):void{
like Adobe identifies optional parameters, but it doesnt work
Any help will be appreciated
Custom Component And Parameters(inspectable)
I have made a SWC that works as it should but im trying to add in a userdefined parameter
Code:
class blah{
var myparameter
public function set parameter(targetMcStr:String):Void {
myparameter=targetMcStr
}
[Inspectable(defaultValue="= enter the target Movie Clip instance name here =")]
public function get parameter():String {
return myparameter;
}
function blah(){}
}
but when i click in the property area (at the bottom of the flash IDE) with my component on stage and selected it says "this component may only be edited via the component inspector" rather than listing my custom parameter to be edited....
anyone got any idea why?
[edit] If i s4elect my component in the library and select "component definition" it shows my parameter...just not in the property inspector area
When Are Custom Component Parameters Enumerated?
Hi,
I have been doing some tracing around some components I have created and I have found that the [Inspectable] parameters are not read until some time after the constructor has been processed.
That is I have traced in the constructor several parameters and they are null
and then traced the same parameters in the addedtostage event and they are populated?
Does anyone know the order of enumeration for components.
Regards
Matt
Dispatching Custom Events With Parameters
Hi, i'm building a full-flash page than will load several xml files for several different swf files, i'm dispatching custom events from main swf and at each swf i'm listening this event and perform a method than will verify which xml the external swf will have than it load. That's possible?
Adding Parameters (Inspectable) To A Custom Component?
Hi --
I am attempting to build a custom component just to learn a little more
about AS 3.0. I can not figure out where / how in my package declarations I
can "expose" parameters that will be visible to the user in the Flash IDE
when using my component.
Thanks
Rich
[CS3] MovieClip With Custom Base Class Won't Accept Parameters?
I'm trying to link a MovieClip in the library to a custom class (called 'Body') that takes three parameters. If I initialize the MovieClip (in the stage class 'Practice') with these three parameters, Flash returns an error, saying that it expects 1 parameter, not 3. Can anyone tell me why?
I attached the classes and the fla file,
Thanks,
golfjeindezee
Accessing From Flash User Interface To A Custom Component Instance Parameters On Stag
Hi I have developed a component in Flash AS3 and this are on the stage. I want to pass a xml from Custom UI (component Inspector) to the component . The problem is I don’t know how I can set the parameters. Before in AS2 we hade a instance name xch and in As3 don’t exist.
The method name I want call from the Custom UI in flash is
Code:
public function set saveGuiXml(xml : XML) : void {
this.xml = xml;
}
Thanks for all help!
Movie Clip Disappear
How can I make a movie clip disappear in the whole movie without deleting it in every keyframe?
DateField Compoent Woes
I am having an issue with the datefield component where it is opening up the calendar and only half of it is on the stage in the viewable area. Is there a way I can control where the caledar pops up so it is fully viewable and usable on my stage?
Thanks in advance,
Mike
HELP - Converting A Clip To Control A Movie Clip Raher Than Getting A Url - HELP
I've downloaded a movie from the FLASHKIT open source which scrolls to a link when the user types what they are looking for which is great!- see details below
+ + + + + + the clip im trying to convert + + + + + +
Search Window
http://www.flashkit.com/movies/Utili...27/index.shtml
2000-05-03 8.91
Search window with complete funcionality; resizable window with resizable scrollbar , arrow and enter keys functionality implemented, word find. Open source modified from Active Search by Degrees. By Nenad Markovic
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
NOTE- IM USING flash 5 so its automatically updating the scripting when i open the fla file
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
But i want the clip to give a Teltarget and goto comand in order to allow the user to navigate a flash movie rather than linking to external URLs
but i cant get the bastard thing to play ball- ive tried email the original author if the script but their eamil address in no longer valid
please help im on deadline
ross
ross@sevencreative.co.uk
NOTES
HERE IS THE SCIPT I THINK I SHOULD BE CHANGING
on (press) {
n = substring(getProperty("", _name), 7, length(getProperty("", _name))-6);
pressTime = getTimer();
trace (pressTime);
if (Number(n)<>Number(/:selectedButton)) {
setProperty ("over", _visible, true);
setProperty ("../button" add /:selectedButton add "/over", _visible, false);
/:selectedButton = n;
/:selectButtonNew = n;
} else if (Number(pressTime-pressTimeOld)<200) {
// extract button number
n = substring(getProperty("", _name), 7, length(getProperty("", _name))-6);
location = eval("/:link" add n);
getURL ("http:/ /" add location, "_blank");
}
pressTimeOld = pressTime;
}
on (release, keyPress "`") {
setProperty ("../button" add n, _visible, true);
}
on (keyPress "`") {
k = 0;
while (Number(k)<Number((1300-CPUlag))) {
k = Number(k)+1;
}
setProperty ("../button" add n, _visible, true);
setProperty ("over", _visible, false);
}
AND THIS IS WHAT IM TRYING AND IT DOESN'T WORK
on (press) {
n = substring(getProperty("", _name), 7, length(getProperty("", _name))-6);
pressTime = getTimer();
trace (pressTime);
if (Number(n)<>Number(/:selectedButton)) {
setProperty ("over", _visible, true);
setProperty ("../button" add /:selectedButton add "/over", _visible, false);
/:selectedButton = n;
/:selectButtonNew = n;
} else if (Number(pressTime-pressTimeOld)<200) {
// extract button number
n = substring(getProperty("", _name), 7, length(getProperty("", _name))-6);
location = eval("/:link" add n);
tellTarget ("nav") {
gotoAndPlay ("http://" add location);
}
}
pressTimeOld = pressTime;
}
on (release, keyPress "`") {
setProperty ("../button" add n, _visible, true);
}
on (keyPress "`") {
k = 0;
while (Number(k)<Number((1300-CPUlag))) {
k = Number(k)+1;
}
setProperty ("../button" add n, _visible, true);
setProperty ("over", _visible, false);
}
Make DropTarget And Draggable Clip Disappear
I have a simple drag n drop match puzzle.
On the draggable item (to be dropped on a target) I have the following
code:
Code:
on( press ){
this.startDrag();
}
on( release ){
this.stopDrag();
if (eval(this._droptarget) == _root.cookieT) {
this._x = _root. cookieT._x;
this._y = _root. cookieT._y;
_root. cookieM.gotoAndPlay(1);
}
else{
this._x = 320;
this._y = 250;
}
}
When the draggable item has been dropped onto its target I want both items to disappear after a few frames. How can I do this (both are separate movieclips)?
Thanks.
Make A Movie Clip Appear/disappear On Stage
Hi! james_reis here!
I'm try to make a movie clip containing a form in it to appear on stage when the user presses the "view" button and disappear (not pernamently) when the close button is pressed after they're done with the form.
I first used the box_mc.alpha = 100 to make it appear but I faced two problems:
1.) the form boxes are visible even though the rest of the movie clip is invisible. (I know that movie clips are active despite the alpha level. It's still a problem.)
2.) The close button doesn't work with the alpha = 0.
After that I tried to work on box_mc.visible=true/false in the button after the on release and they just don't work period.
How can I make the movie clip appear and disappear successfully? Is there another type of script to do it?
I attached a zip folder with my work file in it. I hope it will make more sense if you guys see what I'm trying to do. If it isn't up there I'll try to repost it.
Make Movie Clip Disappear After Playing
Is there a way to have a movie clip play in a container on the stage and then when it is finished playing, just disappear on its own?
I would appreciate any help.
Flash Compoent Height Issue
when drag any flash component on stage and trace the height of that component, it shows correct height i.e. 22
But when i put same flsh component in a movieclip keeping no other element in the movieclip with registration point 0,0 (or any)and try to trace the height of that movieclip , it shows "100".
What could be the reason?
How To Subclass A Compoent/override A Component Method
If I want to take an exisiting mx component and override one of its methods, how do I do that in ActionSript 2.0?
At first I thought I could just subclass a component class and then override anything that is public. Could anyone point me to an example or get me started?
I would have expected to create a new class that extends the original class and then just create an instance of that class:
--start code--
import mx.controls.MediaController
class MyMediaComponent extends MediaComponent
{
// Contructor
public function MyMediaComponent():Void
{
}
// Override MediaComponent Method.
public function set enabled(is:Boolean):Void
{
// Do something different here
// Now forward the method call to the base class.
Super.enabled(is);
}
}
--end code--
Now I would call an instance of that new subclass rather than the original MediaController, however it doesn't seem to work.
theLevel:Number = 5;
createClassObject(MyMediaController, "mMCobj", theLevel);
Any info on how to override existing component methods would be greatly appreciated.
Calendar Compoent - Embed Fonts Problem
Hi All
I am trying to embed fonts in calendar. But the problem is that i am unable to embed font in 'month name' on top. "November 2006". Any help?
Here is small code to embed font in calendar MC
xxx.setStyle("fontSize", "12");
xxx.setStyle("fontFamily", "Arial");
xxx.setStyle("embedFonts", true);
I have uploaded fla file here...
http://www.amazingcatalog.com/tmp/ca..._monthname.zip
Playing A Video Compoent Go Back To Timeline
on my site i added a play video button to my video. i want this video to play but then go back to the button. right now it loops(cuase its better than freezing on frame 1 of the video) but i want it to end and go back to where i can press the button.
can someone help me out.
also, how can i slowly fade up the video instead of the quick on screen
here is the fla file
http://www.scotlandorbust.com/home.html
How To Make Dynamic Text Appear And Disappear When MouseOver On A Seperate Movie Clip
Hi i hope someone can shed some light on by novice AS writers block.
I am creating a photogallery with thumbnails that reads all the data from XML, this is based on the excellent Kirupa tutorial.
What i want to happen is that the text only appears when you mouseOver the image.
I thought it would be a simple using an if statement but can not get it to work.
you can view the page at http://www.bru-ha.com/roza-flash/art_7.swf
below is the actionscript for the file & the FLA.
Code:
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
media = [];
credit = [];
thumbnails = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
media[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
credit[i] = xmlNode.childNodes[i].childNodes[3].firstChild.nodeValue;
thumbnails[i] = xmlNode.childNodes[i].childNodes[4].firstChild.nodeValue;
thumbnails_fn(i);
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load('xml/art_7.xml');
///////////////////////////////////// preloader
p = 0;
this.onEnterFrame = function() {
filesize = picture.getBytesTotal();
loaded = picture.getBytesLoaded();
preloader._visible = true;
if (loaded != filesize) {
preloader.preload_bar._xscale = 100*loaded/filesize;
} else {
preloader._visible = false;
if (picture._alpha<100) {
picture._alpha += 10;
}
}
};
///////////////////////////////////////next and previous image function
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
text_mc.desc_txt.text = description[p];
text_mc.media_txt.text = media[p];
text_mc.credit_txt.text = credit[p];
picture_num();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
text_mc.desc_txt.text = description[p];
text_mc.media_txt.text = media[p];
text_mc.credit_txt.text = credit[p];
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
text_mc.desc_txt.text = description[0];
text_mc.media_txt.text = media[0];
text_mc.credit_txt.text = credit[0];
picture_num();
}
}
/////////////////////////////////////////////////////////load thumbnails
function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
target_mc._x = hit_left._x+(eval("thumbnail_mc.t"+k)._width+10)*k;
target_mc.pictureValue = k;
target_mc.onRelease = function() {
p = this.pictureValue-1;
nextImage();
};
target_mc._alpha = 30;
target_mc.onRollOver = function() {
target_mc.onEnterFrame = function() {
if (this._alpha<100) {
this._alpha += 15;
//or any other number you like, if it's too fast or too slow
} else {
this._alpha = 100;
this.onEnterFrame = null;
}
};
};
target_mc._alpha = 30;
target_mc.onRollOut = function() {
target_mc.onEnterFrame = function() {
if (this._alpha>30) {
this._alpha -= 15;
//or whatever number you used above
} else {
this._alpha = 30;
this.onEnterFrame = null;
}
};
};
};
//////////////////////////////////////////////////////////text fade
//text_mc._alpha = 0;
//picture.onRollOver = function() {
//picture.onEnterFrame = function() {
//if (text_mc._alpha<100) {
//text_mc._alpha += 15;
//} else {
//text_mc._alpha = 100;
//picture.onEnterFrame = null;
//}
//};
//};
//picture.onRollOut = function() {
//picture.onEnterFrame = function() {
//if (text_mc._alpha>100) {
//text_mc._alpha -= 15;
//} else {
//text_mc._alpha = 100;
//picture.onEnterFrame = null;
//}
//};
//};
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);
}
stop();
any pointers are gratefully recieved.
Cheers
Bo-doodle
Clip Parameters In MX
I'm going through a preloader tutorial that I found on the Macromedia site. It was built in Flash 5. It says:
Choose Window > Panels > Clip Parameters
I'm working in MX and I don't see this, where would I find it? Id did find Window > Component Parameters but there is nothing listed in the window that pops up. I did click on the object that has parameters set to it.
A little help?
Clip Parameters
hi,
ihave downloaded a .fla off ultrashock, and it is a Smartclip Horizontal scroll menu.
im having a little trouble configuring it,.
it says i need to define the Clip parameters,
how do i do this?
And where do i do this.
Thanx
Smart Clip Parameters
I wonder if it is possible to set the value of a smart clip parameter with action script.
Let's say I duplicate a smart clip with a parameter called "loop". The new mc is called newmc. How can I set the loop value of newmc ?
I tried the following code but it doesn't work;
duplicateMovieClip (_root.mc, "newmc", 2);
newmc.loop=true;
Any help will be much appreciated. Thanks.
Clip-parameters And AttachMovie
Hi all,
Am I right in thinking that clip-parameters only work if you manually create the movie clip instance in Flash - whereas if you create the instance with 'attachMovie' instead, the clip-parameters do not exist.
Is this correct? Are there any ways around it?
Any comments/suggestions would be appreciated.
thanks - n.
|