AS GURU WONTED How To Skin Textfield Of Component?
i bilding simple BtnComponent which should be skinable. i drived my btnClass from FUIComponentClass and i was able to register all other skins over registerSkinElement but my label textfild refusing to use globalStyleFormat wenn i say on my main timeline globalStyleFormat.color=0xffccff; NOTHING HAPPEN
does anybody knows how to register "color" property of my component to the globalStyleFormat?
i watched it in debuger and under listeners i could see that globalStyleFormat listening to btn_mc(which is instanc of my comp) but dispite of that it doesnt work i even tryed to force it inside my comp class-constructor over globalStyleFormat.addListener(this); but again nothing happen. do i have to do some more inheriting from some other classes or what? PLEASE HELP? (ok, i know i could do it over textColor property of Text format or over comp-defined parameters but i wont it to be skinnable via Actionscript dynamicly) BEGGING FOR HELP!
FlashKit > Flash Help > Flash ActionScript
Posted on: 07-31-2003, 05:48 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Global TextFormat (guru Wonted)?
as u probably know TextFormat has no global style
like FStyleFormat so i thought i could make one?
1. idea)
i could wrap createTextField() in some fns which then assigns automaticly some TextField-propertys and sets setTextFormat.
THE PROBLEM
with that is that not all of my TextFields are generated via script, some r created by authoring-time.
2. idea)
is to change the prototype."someproperty" of the TextField,
THE PROBLEM
TextField is not created via standard "new" constructor
so something like TextField.prototype.embedFonts=true;
DOES NOT WORK as well.
3. idea)
i could simply traverse all instances on stage and ask if the instanz is TextFeld and then assgin some fns which makes the formating
THE PROBLEM
i dont know how to do that?
couse if i ask
trace(typeof t_txt.__proto__);
it just givs "object" not TextField or so
---------------------------------------------
does anybody knows how to make kind of global TextFormat
for createTextField()-generated as well as for authoring-time generated TextFields?
this is very general problem, so i think i can't be the only one with that problem
Mac OS X Component Skin?
Hello Everyone, just a quick one really. I was wondering whether anyone had come across a decent OS X LookyLikey skin for Flash's UI Components. I bit lazy I know but I don't really feel like re-inventing the wheel at the moment! Cheers.
[F8] How Do You Skin A Scoller Component?
Hi All,
I have a scroller component in my flash website that I am building but I really need to change how it looks by default to the design I attached to this post.
How do I do this? The information in the Flash help isn't very useful. It keeps referring me back to 'themes' but I do not understand why I need to rebuild an entire theme for a simple scroller component. The gray background is just the background....
any help is greatly appreciated.
Component Skin Question
Is there any way to change the skin of a TileList component with the skin changes appearing ON TOP of the source image? I want to take some basic images from my TileList and make the skin so that it appears to be in a film strip. So I want to change the TileList or CellRenderer skin so that it looks like a film strip.
Any way to do this? if so, how? any change I make to CellRenderer skins appear BELOW my source image!!! HELP!!!!!
Have FLA Component But It Will Not Skin Programmatically
I have an FLA based component but I'm trying to set it up for skinning. I can do it manually, but I can not do it programmatically like:
window1.setStyle("lBarSkin", leftbarsilver);
window1 being the component instance name.
leftbarsilver being a movieclip in the library exported for as.
how do I define the skins and then how do I change them programmatically? Thanks
Any help? Suggestions? Advice? I've racked my brain on this for about 2 weeks now and don't know where else to go. Thanks.
Component Skin Question
Is there any way to change the skin of a TileList component with the skin changes appearing ON TOP of the source image? I want to take some basic images from my TileList and make the skin so that it appears to be in a film strip. So I want to change the TileList or CellRenderer skin so that it looks like a film strip.
Any way to do this? if so, how? any change I make to CellRenderer skins appear BELOW my source image!!! HELP!!!!!
Skin Scroll Bar Component
have found this url http://livedocs.macromedia.com/flash...e=03_cus17.htm in order to skin the scrollbar of a List component component in flash mx 2004 but dont work for me, my new arrowdown is missing when i click on the down arrow, have u an issue about that ? thanks.
Component Skin Question
Is there any way to change the skin of a TileList component with the skin changes appearing ON TOP of the source image? I want to take some basic images from my TileList and make the skin so that it appears to be in a film strip. So I want to change the TileList or CellRenderer skin so that it looks like a film strip.
Any way to do this? if so, how? any change I make to CellRenderer skins appear BELOW my source image!!! HELP!!!!!
Skin Scroll Bar Component
have found this url http://livedocs.macromedia.com/flash...e=03_cus17.htm in order to skin the scrollbar of a List component component in flash mx 2004 but dont work for me, my new arrowdown is missing when i click on the down arrow, have u an issue about that ? thanks.
Component Skin Resources
Does anyone know of any websites out there that have pre-made skins for components that one could just load into their movie? It can be such a pain making your own and if there's ones available to download else that fit your design it would make life so much easier. Anyone?
Skin The List Component
Hi everybody
It 's my first post on the forum, nice to meet you ! ( i m french so my english is not so good !!! )
I would like to know how can i skin the list component ?
is ti dynamicly or passing by the librairy ?
Somebody can help me please
Guru's? Game Component.. Pls Help
Hi,
I have a character which moves around the screen using the cursor keys from a birds eye view. I would like it so that when you move the character, up, down, left or right, a movie clip moves over the top so that it looks like a scrolling background, i have all this working ok.. i cant quite get the correct syntax to enable the character to move around freely in the middle of the screen, but when the character gets near the edge of the screen the backgound mc begins to scroll in the relavant direction..
I dont know the correct syntax so that when my "man" movie clip is a certain co-ordinate on screen (on the edge) it will trigger the background to scroll, so the man is left to run freely in the middle of the screen, but if he wants to move the screen he walks to the edge
my stage is 800---450px working in flashmx..
ne help on how to achieve this is much appreciated
i have this script attached to my character
onClipEvent (load) {
moveSpeed = 5;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
_root.lastpress = 6;
_root.man.gotoAndStop("right");
this._x += moveSpeed;
} else if (Key.isDown(Key.LEFT)) {
_root.man.gotoAndStop("left");
_root.lastpress = 4;
this._x -= moveSpeed;
} else if (Key.isDown(Key.DOWN)) {
_root.man.gotoAndStop("down");
_root.lastpress = 2;
this._y += moveSpeed;
} else if (Key.isDown(Key.UP)) {
_root.lastpress = 8;
_root.man.gotoAndStop("up");
this._y -= moveSpeed;
} else {
_root.man.gotoAndStop("stop");
}
}onClipEvent (load) {
moveSpeed = 5;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.RIGHT)) {
_root.lastpress = 6;
_root.man.gotoAndStop("right");
this._x += moveSpeed;
} else if (Key.isDown(Key.LEFT)) {
_root.man.gotoAndStop("left");
_root.lastpress = 4;
this._x -= moveSpeed;
} else if (Key.isDown(Key.DOWN)) {
_root.man.gotoAndStop("down");
_root.lastpress = 2;
this._y += moveSpeed;
} else if (Key.isDown(Key.UP)) {
_root.lastpress = 8;
_root.man.gotoAndStop("up");
this._y -= moveSpeed;
} else {
_root.man.gotoAndStop("stop");
}
}
and this script attached to my scrolling background
onClipEvent(load) {
speed = 5;
}
onClipEvent(enterFrame) {
if (key.isDown(key.LEFT)) {
_x += speed;
} else if (key.isDown(key.RIGHT)){
_x -= speed;
} else if (key.isDown(key.DOWN)){
_y -= speed;
} else if (key.isDown(key.UP)){
_y += speed;
}
}
thanx speakerz
Halo Skin For Tree Component
Hi all
I am working on a project where I need to use the tree and accordion components. I want them to look the same for a seemless feel. However I cant seem to get the tree to skin with the halo skin. I want to get rid of the folder icons etc and have the gradiant background like the accordion. I have managed to do some custome styles and such but not quite there. Has anyone done this? any help would be great.
thanx
dave
Create My Own Component - How To Do Like FLVPlayer 8 Skin
I have create a component.
The problem was always the same, component v2 was hard to customize. Well that is my opinion. With Flash 8 a new way to customize has been created. If you look at the FLVPlayback, to customize the player you can go to a Fla and do what you want, publish it, and then you load it as a skin.
Is there a tutorial or something that can show me how to do that with my own component
Tanx !
Change Skin Of Component On Runtime
Hi guys,
I have a urgent need. I am in trouble to change skins of UIscroll bar . I want to change the skins of UIScroll Bar on selecting values from combo Box or else. Any one have the idea how to change that.
with extrem hopes,
saurabh
FLV Playback Component Custom Skin
I am struggling with trying to figure out how to make my own custom skin that will display the elapsed time of the FLV being played. I need the code to be within the actual skin on not within the FLV playback component...For example in the skin I have my seek bar and above the seek bar is where I want the elapsed time to display so it has to be in the skin itself. I am using Flash CS3 with actionscript 3.0. Any help would be great. I have been searching most of the day for a way to do this but haven't had any luck
Skin Listbox Component Flash 8
How do you skin the listbox component in Flash 8? I can change the color of the scrollbar but nothing else. Anybody have an example?
Change Scrollpane Component Skin?
Hey Guys can you change the ScrollPane component ? if so how ? I was following the tutorial of Lee but I couldnt find the ScrollPane assets ....
any idea ? thanks.
Flash Component Guru's Please Advise
I need to know how to make the text fields in the ListBox component HTML friendly. Some of the options I want bold and some I don't so it'd really be nice to figure this out. Thanks!
MX Component UI Frustration (guru Helpie)
I cant figure this out
I've got a lot of ui radio buttons and chekboxes (around 50 or so) and when some are ON, some turn off and are unchecked... most of it is pretty easy except for a few options that have insane amount of logic to em,
I'm using name.setEnabled(true), getEnabled, setValue, getVal..bla bla bla,
And each button calls a master function that has all the rules for each box (i'de break it up but all the buttons are related to each other somehow and need to check everything at any change)
Now I've gotten some of it to work except i keep getting an infinite loop when i turn options on,
I traced my script and found out every time i setValue(true) to a button it activates my script all over again... so if i hit a button that turns on 10 buttons, my script runs like 50 times and crashes
How can i get around this ?
Can i set a radio button to true without calling its Handeler ???
[F8] Skin Listbox Component, Transparent Border
Heh guys,
Have been scouring the web for some time now in search of a way to skin the listbox component and specifically, either remove the listbox border or make it appear transparent. I have found that to skin the listbox, you need to first skin the UIscrollbar as desired (done that), and then use setStyle upon rectBorder.. how is this done?? and is there a way of making the border appear transparent?
I've been searching high and low, everywhere I can think of to answer this question but am pulling dead ends wherever i turn so any help is really appreciated.
Thanks in advance,
Dave
Dynamically Customise Button Component Skin
Hi all,
I building a CS3/AS3 touch-screen kiosk application using a Flash GUI embedded in a .NET wrapper to allow for db/hardware integration.
I'm trying to allow our clients to dynamically customise the colour (and therefore skins) of the pre-built component buttons. This used to be possible in AS2 with an external class although I believe it is now deprecated (according to Adobe livedocs anyway).
I can access/customise the button labels for size and colour, but not the actual individual skins for overSkin, downSkin etc. Is there anyway to do this dynamically so that I can change the colour at run time from some settings in an external XML file ?
Alternatively, is it possible to access the Component Assets in the library at runtime and change the colours/skins for all the buttons there? I'm guessing they're beyond editing at this stage as they have been compiled.
Any suggestions gratefully received!
thanks,
Joel
SwapDepth - FLVPlayer Component And Custom Skin
How would I do a "swap depth" for actionscript3?
I am trying to reskin and customize the FLVPlayer component in Flash CS3 (AS3). I am calling the component and creating settings via actionscript (not by dragging the component to the stage) and I would like artwork to appear both above and below the component, and the custom player components and buttons to appear above the video. Right now, the stacking order is such that the player appears on top of everything, even UI elements, and even on top of artwork that is on a layer above the layer with the AS that calls the FLVPlayer.
How can I properly set the stacking order? I know I can't do swapdepth with AS3.
This is the code I currently have:
Code:
import com.liquidprint.video.FLVPlaybackPro;
var fpp:FLVPlaybackPro = new FLVPlaybackPro();
fpp.x = 103.5;
fpp.y = 22;
fpp.playPauseButton = myplayBtn;
fpp.seekBar = myseekBar;
fpp.height = 400;
fpp.width = 533;
fpp.source = "http://www.liquidprint.com/services/liquidprintvideo.flv";
fpp.autoPlay = true;
addChild(fpp);
List Component Skin Or Style Problem
I am building a scrolling list that pulls data from a xml file, and binds the data to a list component
I am trying to figure out how to change the look of the list component.
I need to create a rounded backgound for each list item and I would like to use a symbol for this.
I can't find a setStyle property to change this and if I try to adjust the HaloTheme.fla there is no List symbol to change.
How do I access the graphic being used by the list component?
Thanks for any help
Change Media Playback Component Skin
I've managed to add video using .flv format in a media play back component. But i can't change the controls buttons' look and feal. I knew that flash MX 2004 professional has a set of external fla files that is controlling the skin of the these components.
One of the documentation in my machine shows that using the "Open external library" in File >> Import command. And then drag that library file to our file's library and change the movie clips. But the changes are not reflected here. Since the media play back is a compiled movie clip we can't do anything directly on it.
This has totally destroyed all my plans on this movie'
Adding Skin Header To Accordion Component
I'm trying to add different header icons for an accordion component. I have multiple movie clips with different skins in each one and I can't apply multiple skins to each child of the accordion. This is the code that I'm using but I need it applyied to different headers of the children
onClipEvent(initialize)
{
trueUpSkin = "LeftPanel0";
trueDownSkin = "LeftPanel0";
trueOverSkin = "LeftPanel0";
trueDisabledSkin = "LeftPanel0";
}
I used this code but it wouldn't work.
onClipEvent(initialize)
{
_parent.myAccord.getChildAt(0).trueUpSkin = "LeftPanel0";
_parent.myAccord.getChildAt(0).trueDownSkin = "LeftPanel0";
_parent.myAccord.getChildAt(0).trueOverSkin = "LeftPanel0";
_parent.myAccord.getChildAt(0).trueDisabledSkin = "LeftPanel0";
_parent.myAccord.getChildAt(1).trueUpSkin = "LeftPanel3";
_parent.myAccord.getChildAt(1).trueDownSkin = "LeftPanel2";
_parent.myAccord.getChildAt(1).trueOverSkin = "LeftPanel2";
_parent.myAccord.getChildAt(1).trueDisabledSkin = "LeftPanel2";
}
Any ideas??????
Changing A Button Component Skin In MX 2004
Hi, how do you change the button skin in flash mx 2004??
or make it light a different color other than green??
any ideas??
Regards,
Martin
Gaming Help And Info:
http://gaming.webrevolt.biz
Skin Listbox Component, Transparent Border
Hi,
Is there any way to remove the border around the listbox component?
I've scoured the web and help, completed Lee's skining V2 components tutorial and read all the posts relating to this problem but am still not getting it. From what I understand from reading some of Hasan's comments and stuff in help; to skin the listbox effectively, you must first skin the UIscrollbar (done that) and then use setstyle on the rectBorderclass which, will apparently respond to 'borderStyle'.
I've tried every variation of code I can think of but nothing seems to affect its appearance.
My question therefore is, how do I setStyle this border so that it appears transparent
Thanks,
Dave
Adding Extra Features To FLVPlayback Component Skin
Hi There,
Can I add Textfields to a "FLVPlayback Component Skin" entering values like playheadtime & totaltime.
Other than that... how can I have additional Moviclips... because I was my created MCs are not reflecting.
Thanks in Advance,
Siraj R Khan
khan_siraj@yahoo.com
---
Avoid Auto Hide In FLVPlayback Component Skin
Hi all,
I dont want my FLVPlayback skin to hide. I tried myFLVPlayback.skinAutoHide = false .. but it doesnt seem to help. Does anybody has any idea how to do it thru AS3??
Thanks in Advance,
Siraj
Avoid Auto Hide In FLVPlayback Component Skin
Hi all,
I dont want my FLVPlayback skin to hide. I tried myFLVPlayback.skinAutoHide = false .. but it doesnt seem to help. Does anybody has any idea how to do it thru AS3??
Thanks in Advance,
Siraj
Scaling Problem Using Masked Layer In Component Skin
Hi,
My artist is fond of making clips with a masked layer where the animation in the mask layer is larger than the mask.
I'm having problems using these effectively as component skins, because the component logic wants to scale the skin so that it is the same size as the component. To do this it's basically taking the height and width of the skin and scaling it so it matches the size of the component.
The problem with these masked clips is that the total height/width of the skin is apparently determined by that big masked layer, not the actual visible size of the mask. It seems weird because the actual symbol's height and width matches the visible size, not the size including the masked layer. But for whatever reason, the component logic uses that "hidden" size for its scaling, with the result that the skin shows up visibly smaller than I want it to be.
This may be hard to understand from the written description, so I've made a demo FLA. The hidden masked layer is roughly twice the width of the mask. When used as a progress bar skin, it only fills up about half of the progress bar track when bar is full. (Enter 10 in the text box for a full bar.)
(I posted this demo FLA on a different forum that allows file attachments, so you can grab it from there: Masking Skin Demo FLA)
Anyone know a way to work around this problem?
Change The Skin Of Media Play Back Component
I've made a video play back (flash FLV) usng media play back components in flash mx 2004. Everything perfectly workng but i want to change the look and feel of the control buttons. I couldn't find any options for the same. Any idea. Is there any other video play back components available ...
thanks in adavnec
How To Disable A Single Button In FLVPlayback Component Skin?
Hi,
I have a few videos that have no audio, so I don't want any volume or mute controls at all. I chose a skin that doesn't have a volume button, but there isn't one that also has no mute button. Basically, I was wondering if there's a simple method for simply turning off the mute button, visually, and functionally? Nothing really any more fancy than that.
I've read this little tutorial on it, but can't figure out how to adapt this to disabling the mute button only:
http://nerdabilly.wordpress.com/2007.../#comment-2119
If anyone can give advice on this I'd be much obliged!
preesh,
blunderbus
Change The Skin Of Media Play Back Component
I've made a video play back (flash FLV) usng media play back components in flash mx 2004. Everything perfectly workng but i want to change the look and feel of the control buttons. I couldn't find any options for the same. Any idea. Is there any other video play back components available ...
thanks in adavnec
How To Skin The TextArea Component Scrollbar Face And Track?
Hello, everyone.
I am currently working on a Flash file making use of a few pre-built components. One of them is the text area component to load some external content.
I should like to be able to style its scrollbar to my liking, i.e. I should like it to receive the haloOrange theme in its entirety. I applied some skinning now visible on scrollbar arrows (top and bottom), but was unable to extend it to affect the scrollbar face or track. I checked the Flash help on this subject and there were no parameters to this effect, so I concluded this was not possible. However, I remembered seeing the desired effect (haloGreen in their case) applied earlier on Macromedia (now Adobe) Exchange (see the image below), and should be most grateful if somebody suggested the piece of ActionScript code necessary for it to work.
This is the code I have applied so far:
Code:
_global.styles.TextArea.setStyle("backgroundColor", "false");
_global.styles.TextArea.setStyle("themeColor", "haloOrange");
_global.styles.TextArea.setStyle("borderStyle", "solid");
Adding Textfields/MCs To A "FLVPlayback Component Skin"
Can I add Textfields to a "FLVPlayback Component Skin" entering values like playheadtime & totaltime.
Other than that... how can I have additional Moviclips... because I was my created MCs are not reflecting.
Thanks in Advance,
Siraj R Khan [khan_siraj@yahoo.com]
Please Help Explain: Difference Btw Seekbar In A Skin And Seekbar Standalone Component
Hi,
I am confused about the follwing, can someobe please enlighten me.
I noticed that the "Seekbar" component inside any of the default skins (e.g StellOverAll.fla) is just a place holder, it has 2 layers with one layer having just an outline of a rectangle. And the SeebarProgress and the SeekbarHandle are place somewhere else inside the Skin component. However, if I select the "Seekbar" component from the component window and place it on the stage and double click to look inside, I can see 4 layers, with the SeekbarProgress component in one layer and the SeebarHandle on another layer.
So my question is the following:
1. Is the "Seekbar" component in the skin DIFFERENT than the "Seebar" component from the Component Window?
2. How does the "Seekbar" component in the skin interact with the "SeekbarProgress" and "SeekbarHandle" components in the skin, when they are OUTSIDE the "Seekbar" component?
Any answer will be greatly appreciated.
Expert Wonted "export In First Frame" By Font Symbol
is it possible to prevent the exporting of embeded-font symbols
in first frame?
on my embeded-font symbols "export for as" is turned on
and even if "export in first frame" is turned off my font symbol
loads before firs frame.
does anybody know any workaround?
GOIN' CRASY WITH THIS
TextField Component
I'm trying to use the textfield component from the DRK and having difficulty setting a variable to be associated with the textfield.
Scenario:
Textfield component named 'mytextfield_txf' et to input
normal dynamic textfield with a variable named 'sMyVar'
What I expect/want is for text entered into the component to update the variable 'sMyVar'
I have tried:
mytextfield_txf._variable = sMyVar
&
mytextfield_txf.variable = sMyVar
&
mytextfield_txf.text.variable = sMyVar
&
mytextfield_txf.text.variable = "sMyVar"
&
mytextfield_txf.text._variable = sMyVar
&
mytextfield_txf.text._variable = "sMyVar"
&
mytextfield_txf._variable = "sMyVar"
&
mytextfield_txf.variable = sMyVar
and cannot get text I type into the component to update a variable.
What is the correct syntax to do this? Anyhelp greatly appreciated.
Thanks,
Matt
Textfield In Component
Hi,
I have a component with a textfield in it. The textfield gets its value from a component parameter.
Is it possible to have the value of the parameter appear in the editor?
SendKeys To A Textfield Component
Is there a command like SendKeys so I can define the target and send it an specific key?
Something like...
ActionScript Code:
myTextField.sendKeys("M");
What I want to do is to write to a text field without worring of where the text cursor is, so I don't have to worry of TextField.replaceSel(). Something just to add or delete characters to where the text cursor is.
Thanks.
Textfield As List Component?
hi guys..
im a newbie. is it possible to have a textfield function as a listbox? i want to make a textfield lists records like a listbox and also it can be selected like a listbox. is this possible? if there are threads about this topic previously posted, i'l be very glad to be redirected..
thanks
Calander Component- Insert To Textfield
Greetings
Can anyone tell me how I can use the calander component to insert a date into textfield?
I have a flash form and I want the user to be able to select a date from the calander component and have that display the selected date in a date text field - with formating.
Thanks for any help
TextField Inside The Label Component.
Could you please tell me how to access TextField inside the Label class. I just need to work with it, because it has .maxhscroll property, but Label does not. I just want to cut "out of scroll" text. In case of TextField I can do the following:
TextField.prototype.cutExtra = function() {
while (this.maxhscroll>0) {
this.text = this.text.substring(0,this.text.length-1);
}
}
But where can I find TextField inside the Label?
Thank you, guys!
Textfield Component Doesn't Like Mask :(
Hey,
I've made a textfield component, which is being masked using the simple layer technieque. The only problem is, is that the text from the components doesn't get displayed.
I know this can be fixed with normal textboxes, by including the font. But you can't do this with components, so I was wondering if anyone knows how I can fix this.
Thanks,
Sph
|