Use of Scrollbar for movieclips
I have created a script that duplicates movieclip in an other
movieclip with instance "mainmovie_mc" the problem is just that
mostly the clip becomes bigger then the stage can some please give
me a script or tell me how to create one that checks the movieclip
after every duplication and if the clip size is more then 700 px it
creates a scrollbar for viewing the clips that are below like
windows explorer I hope I made sense
Here is the code of the movieclip in which other movieclips
are duplicated please if you can fix some bugs which causes the
loaded images in "sam_mc" flicker and dissapper also I was unable
to use for and next loop cause this is my first script and I can't
get it working please help me out :
quote:
_root.createEmptyMovieClip("target_mc",
_root.getNextHighestDepth());
loadVariables("..\\..\\Bin\\user.img", _root.target_mc);
function checkParamsLoaded() {
_root.ad1 = _root.target_mc.ad1
_root.ad2 = _root.target_mc.ad2
_root.ad3 = _root.target_mc.ad3
_root.ad4 = _root.target_mc.ad4
_root.ad5 = _root.target_mc.ad5
_root.ad6 = _root.target_mc.ad6
_root.ad7 = _root.target_mc.ad7
_root.ad8 = _root.target_mc.ad8
_root.ad9 = _root.target_mc.ad9
_root.ad10 = _root.target_mc.ad10
img_mc._x = 360;
img_mc.name = _root.ad1
loadMovie("..\\..\\Bin\\" + _root.ad1 + ".jpg",
img_mc.sam_mc);
img_mc.sam_mc._height = 48
img_mc.sam_mc._width = 48
if (_root.ad2 == undefined) {
//nothing
} else {
duplicateMovieClip(img_mc, "newImg_mc",
this.getNextHighestDepth());
newImg_mc._x = 360;
newImg_mc._y = 160;
newImg_mc.name = _root.ad2
loadMovie("..\\..\\Bin\\" + _root.ad2 + ".jpg",
newImg_mc.sam_mc);
if (_root.ad3 == undefined) {
//nothing
} else {
duplicateMovieClip(img_mc, "newaImg_mc",
newImg_mc.getDepth() + 50);
newaImg_mc._x = 360;
newaImg_mc._y = 232;
newaImg_mc.name = _root.ad3
loadMovie("..\\..\\Bin\\" + _root.ad3 + ".jpg",
newaImg_mc.sam_mc);
if (_root.ad4 == undefined) {
//nothing
} else {
duplicateMovieClip(img_mc, "neqImg_mc",
newaImg_mc.getDepth() + 50);
neqImg_mc._x = 360;
neqImg_mc._y = 304;
neqImg_mc.name = _root.ad4
loadMovie("..\\..\\Bin\\" + _root.ad4 + ".jpg",
neqImg_mc.sam_mc);
if (_root.ad5 == undefined) {
//nothing
} else {
duplicateMovieClip(img_mc, "neeImg_mc", neqImg_mc.getDepth()
+ 50);
neeImg_mc._x = 360;
neeImg_mc._y = 376;
neeImg_mc.name = _root.ad5
loadMovie("..\\..\\Bin\\" + _root.ad5 + ".jpg",
neeImg_mc.sam_mc);
if (_root.ad6 == undefined) {
//nothing
} else {
duplicateMovieClip(img_mc, "nebImg_mc", neeImg_mc.getDepth()
+ 50);
nebImg_mc._x = 360;
nebImg_mc._y = 448;
nebImg_mc.name = _root.ad6
loadMovie("..\\..\\Bin\\" + _root.ad6 + ".jpg",
nebImg_mc.sam_mc);
if (_root.ad7 == undefined) {
//nothing
} else {
duplicateMovieClip(img_mc, "neoImg_mc", nebImg_mc.getDepth()
+ 50);
neoImg_mc._x = 360;
neoImg_mc._y = 520;
neoImg_mc.name = _root.ad7
loadMovie("..\\..\\Bin\\" + _root.ad7 + ".jpg",
neoImg_mc.sam_mc);
if (_root.ad8 == undefined) {
//nothing
} else {
duplicateMovieClip(img_mc, "negImg_mc", neoImg_mc.getDepth()
+ 50);
negImg_mc._x = 360;
negImg_mc._y = 16;
negImg_mc.name = _root.ad8
loadMovie("..\\..\\Bin\\" + _root.ad8 + ".jpg",
negImg_mc.sam_mc);
if (_root.ad9 == undefined) {
//nothing
} else {
duplicateMovieClip(img_mc, "nemImg_mc", negImg_mc.getDepth()
+ 50);
nemImg_mc._x = 360;
nemImg_mc._y = 592;
nemImg_mc.name = _root.ad9
loadMovie("..\\..\\Bin\\" + _root.ad9 + ".jpg",
nemImg_mc.sam_mc);
if (_root.ad10 == undefined) {
//nothing
} else {
duplicateMovieClip(img_mc, "neemImg_mc",
nemImg_mc.getDepth() + 50);
neemImg_mc._x = 360;
neemImg_mc._y = 664;
neemImg_mc.name = _root.ad10
loadMovie("..\\..\\Bin\\" + _root.ad10 + ".jpg",
neemImg_mc.sam_mc);
clearInterval(param_interval);
var param_interval:Number = setInterval(checkParamsLoaded,
50);
stop();
Similar Messages
-
Horizontal scrollbar for JComboBox
Hi,
I want to use Horizontal scrollbar for JComboBox which i have used as an editor for table column cell and the matter in drop down list is larger but the width of column of a table is relatively small
Any suggetions!
Thanks and regards,
NileshHi,
I want to use Horizontal scrollbar for JComboBox which i have used as an editor for table column cell and the matter in drop down list is larger but the width of column of a table is relatively small
Any suggetions!
Thanks and regards,
Nilesh -
Before I started using Dreamweaver, I used notepad. And I
would use textarea scrollbars for excessive text.
http://www.funky-chickens.com/tarea.shtml
...At the bottom, where it says Textarea allowing HTML. I usually
use that on my previous websites. But using dreamweaver, when I
install that snippet it creates problems and the tables stretch and
screws up the whole site. How do I make that function work. I
looked around and couldn't find that option
Can anyone help me?
A reference to how I use it:
http://leyendarecords.com/biography.html
... Theres a website I made for someone. If you check out that
page, you can see that I have scrollbars and text inside it. A
friend made that template on Dreamweaver and I did everything on
Notepad. Exactly how do I do that?That code is SO ANTIQUE it's unbelievable.
<ilayer name="scroll1">
<div id="scroll3"
style="width:100;height:75;
background-color:COLORHERE;
overflow:auto">
TEXT HTML TEXT HTML
</textarea></div>The <ilayer> tag is not
recognized by any browser than
NN4x, and that browser is nearly extinct. In addition, they
even omit the
opening <textarea> tag and the closing </ilayer>
tag, so in addition to
being hopelessly antique, it's invalid too.
> But using dreamweaver, when I install that snippet it
> creates problems and the tables stretch and screws up
the whole site. How
> do I
> make that function work.
That's not surprising. DW doesn't know what to do with this
markup.
You could try just removing the <ilayer> tag -
<div id="scroll3"
style="width:100px;height:75px;background-color:COLORHERE;overflow:auto"><textarea>
TEXT HTML TEXT HTML</textarea></div>
but all form elements are required to be within an explicit
<form>, so
you'll have to add that -
<div id="scroll3"
style="width:100px;height:75px;background-color:COLORHERE;overflow:auto"><form>
<textarea>TEXT HTML TEXT
HTML</textarea></form></div>
And then both the form tag and the textarea tag have some
necessary
attributes, so you'll have to add them too....
I recommend you not use something like this, anyhow. There is
a good
discussion on this forum from just today about why it's a
poor layout/design
decision....
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"streekd" <[email protected]> wrote in
message
news:[email protected]...
> Before I started using Dreamweaver, I used notepad. And
I would use
> textarea
> scrollbars for excessive text.
http://www.funky-chickens.com/tarea.shtml
> ...At
> the bottom, where it says Textarea allowing HTML. I
usually use that on my
> previous websites. But using dreamweaver, when I install
that snippet it
> creates problems and the tables stretch and screws up
the whole site. How
> do I
> make that function work. I looked around and couldn't
find that option
>
> Can anyone help me?
>
> A reference to how I use it:
http://leyendarecords.com/biography.html
> Theres a website I made for someone. If you check out
that page, you can
> see
> that I have scrollbars and text inside it. A friend made
that template on
> Dreamweaver and I did everything on Notepad. Exactly how
do I do that?
> -
How to use Synth LookAndFeel for scrollbar?
Hello there,
I read many articles on Synth ookAndFeel but in any article I could not find how to use Synth LookAndFeel for ScrollBar.
How can use SynthLookAndFeel without using any extra LookAndFeelHi,
what u do is this:
<style id="button">
<state value="DEFAULT">
<imagePainter path="Synth/testdown.png" sourceInsets="6 6 6 6" paintCenter="false" stretch="true"/>
<color value="#3333FF" type="TEXT_FOREGROUND"/>
</state>
<state value="SELECTED">
<imagePainter path="Synth/test.png" sourceInsets="6 6 6 6" paintCenter="false" stretch="true"/>
<color value="#0000FF" type="TEXT_FOREGROUND"/>
</state>
<state value="PRESSED">
<color value="#0000FF" type="TEXT_FOREGROUND"/>
<imagePainter path="Synth/test.png" sourceInsets="6 6 6 6" paintCenter="true" stretch="true"/>
</state>
</style>
<bind style="button" type="region" key="BUTTON"/>the <bind> element applys the style 2 the object (JButton). It's actually a region, u can get all the regions at
http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/plaf/synth/Region.html
good luck!
DirectXMan
P.S. If u find more sites on Synth please post them. -
Best AS2 resizing scrollbar code (movieClip)
I need some good functioning dynamically resizing scrollbar
code for actionscript2 for a movieclip. I need it to dynamically
adjust itself based on the content of the movieclip. I have some
scrollbars, but if you need to adjust the height of the scrollbar
for a particular interface, it requires that you edit some numbers
manually - and at this point its behaving quite buggy for me. I
would prefer if there was some code that managed that itself (or
was very clear how to edit). I would also prefer if I could
customize the graphics. Could some please link me to either a great
tutorial (or preferably an FLA) so I can get past this frustration.
i would really appreciate itThanks for your response. I should be more accurate here...
I am using two movie clips here. The first one is the "frames" in container and the second one is "re-sizer". "_root.cont.frames" gets the _x and_y positions according the to x, y positions of the "_root.cont.frames.re-sizer.re-sizer_btn".
The UI scrollbar I am using here is a flash component, and is a child of "_root.cont.frames"
This is my first thread ever! So I am learning the things here. Thanks for your guidance. I will be more accurate moving further..
Thank You,
Srinivas -
Apex 5.0, Horizontal scrollbar for Interactive Report and Pivot Format
Hi,
i would like to know how to have an horizontal scrollbar for an interactive report (5.0) after making a pivot from the user interface; i have a lot of columns and without the pivot the horizontal scrollbar appears . After it doesn't appear.
I tried with the Region Header <div style="overflow:auto;"> and Region Footer </div> but without success.
Regards
GianpaoloHi gianpagi,
gianpagi wrote:
i would like to know how to have an horizontal scrollbar for an interactive report (5.0) after making a pivot from the user interface; i have a lot of columns and without the pivot the horizontal scrollbar appears . After it doesn't appear.
I tried with the Region Header <div style="overflow:auto;"> and Region Footer </div> but without success.
Please mention the theme and template you are using for the Interactive Report.
Can you re-produce the issue on apex.oracle.com and share the workspace credentials, so that can have closer look at the issue?
Regards,
Kiran -
I cannot seem to get a browser (in this case IE 7) to show
scrollbars for any Flex application. While I know how to use Flex
scrollbars, they do not make up for browser scrolling, especially
considering the flex scrollbars themselves have a tendency to get
clipped out of a browser window. Is there a solution for this, or
does using Flex automatically preclude a browser's ability to
scroll.
I noticed that on sample applications, like the Flex Store,
this is an issue as well.
Any advice would be much appreciated.We are having this exact problem. This is a pretty crazy
problem. It seems like inner containers are not "pushing" the outer
containers out far enough. The only resolution that I can find is
to set a bunch of static sizes for containers, but then we lose the
flexibility. Any ideas? The scrollbars are ridiculous cause they
are constantly getting cut off by the browser or are there when
they shouldn't be. Is there a better way for apps with multiple
layers that are larger than the normal height of a screen? -
How to Freeze Table/Column Header "without using additional scrollbars" ?
hi people,
I am hoping someone can help me here. I have a large table and would like to freeze the first row. Scrolling down the table "_*using the existing scrollbars*_" in the browser while ensuring the header rows are still visible (like Excel when you freeze panes). If you scroll to the right the header rows should stay frozen and not follow.
I know there are other threads which talk about freezing table/column header, but my requirement is to have it "without using additional scrollbar".
Thanks in advance,
RAKESHHi,
there is no default key for this. You will have to code your own JavaScript for this. Also, I am not sure you want the column to be selected but a field in the column for the row you are in - correct ?
Frank -
Using custom images for radiobuttons
Hi
I'm looking for help with creating a radio buttons with external images (fetched from XML/Javascript file) cause, I don't want to use standard looking radio buttons from components. I wish to use different images for each state of the button.
Any one can help me with some ideas how to change look of then radio buttons?To manage homegrown radiobuttons as a group, you would incorporate an event listener function that manages the group. That function would know which radio button was selected via the event target and would act to reset all of the other radios while setting the one selected. I don't have a specific AS3 example, but below is a rough draft of the function/scenario. In this, I am using 3 radio buttons that have numerically differentiated instance names (rb1, rb2, rb3)...
var selectedRadio:MovieClip;
function manageRadios(evt:MouseEvent){
// first reset all radios
for(var i:uint = 1; i<4; i++){
this["rb"+String(i)].gotoAndStop(1); // frame displaying deselected state
selectedRadio = MovieClip(evt.currentTarget);
selectedRadio.gotoAndStop(2); // frame displaying selected state
trace(selectedRadio.name);
rb1.addEventListener(MouseEvent.CLICK, manageRadios);
rb2.addEventListener(MouseEvent.CLICK, manageRadios);
rb3.addEventListener(MouseEvent.CLICK, manageRadios);
In this case, each radio button is simply a two framed movieclip, with stops for each frame... frame 1 displays the unselected state, and frame 2 displays the selected state.
For the code shown, I include an external variable (selectedRadio) that can be used to target information related to the selected Radio button. So if you assigned each radio with a variable (let's say you name it varName) that would hold data to be used in the processing elsewhere, you can get it using: selectedRadio.varName -
Hi
I have added a scrollbar on window for Tab canvas but remains inactive even the layout goes beyond the window.But it works for Content canvas.
Can somebody plz tell me is there any way to use scroll bar for tab canvas
RaviThe scrollbar works for tab canvases as well as content canvases. Not sure what you mean by "remains inactive even the layout goes beyond the window".
-
How to render Inline scrollbars for a table
Hi All,
I'm using a large table with nearly 30 columns with the width property of the table set to 2200 and No wrap is set to TRUE on all the columns.
Is there any possible way to render inline horizontal scrollbar for the table instead of rendering the scrollbars on an OAF page ?
Please help me.
Regards
Srikanth EnuguruI cant help you with the Inline scroll bar you are looking for (dont think we have anything like this in OA Framework). But you can ponder over the idea of showing another region using hide/show feature. You can use this region to show all the additional information for which you need so many columns.
Regards
Sumit -
Hi,
I'm using forms6i.
Is it possible to add a scrollbar for a multiline text item??
ThanksYes, set its Functional -> Multi-line property to YES
Francois -
Hi all,
I have a tree which when expanded doesnt fit in the window , so i have to scroll down the page to browse the entire tree. Is there any way to provide a scrollbar for the region alone to which the tree belongs ?
Thanks in advance
- AzihasYou can use a DIV tag and a define it's style like this:
<DIV style="height:300px;width:200px;overflow:auto">
..... your tree .....
</DIV>
There are several places, where you can place the tags:
1) In the properties of your Tree region - as a region header and a footer
2)You can define your new region template and place the tags around the #BODY# substitution string
3)In the Tree definition - the Before Tree and After Tree properties -
Use SWC class as MovieClip baseclass?
I currently have a generic class library I use across
projects for creating UI elements.
To use them, I set up an asset in the Library, then set one
of these classes as the baseclass (say com.xyz.gui.Button) and it
adds all the functionality required. In all cases I have
'Automatically declare stage instances' set to false in flash and
the stage instances are declared within the base classes.
All pretty simple stuff and it works fine.
My problem is that I now need to use SWC's to distribute the
Library classes across projects and now any classes like
com.xyz.gui.Button will not work. When added as an SWC using
Library Path, the fla throws Compilation Errors.
1152: A conflict exists with inherited definition
com.xyz.gui:Button.defaultOut in namespace public.
This is the same error as I would get if I turned
'Automatically declare stage instances' back on, which I haven't.
If I dont use the SWC and set the fla back to using the
classes in the source path it compiles fine again.
Has anyone else had this problem? Is there a way around it?
Thanks in advance.
JFurther update:
If you have a class in a SWC which you'd like to subclass visually into a MovieClip, create an AS class to represent that subclass in your client code, and, in the MovieClip properties panel, specify the name of your AS class as the linkage class. This seems to prevent the compiler complaining about namespace conflicts.
Example:
You have a class MyBasePanel in your SWC which extends Sprite / MovieClip.
In your client code (i.e. the code using the SWC), create a MovieClip *and* and an AS class to link that MovieClip to. Extend the base class in the SWC via ActionScript, e.g.:
public class MyActualPanel extends MyBasePanel
then link the library MovieClip to MyActualPanel.
Sorted. -
Use one account for apps and other for itunes match
Hello everybody
My question today is quite simple. I use one account for apps and tv shows, but inwant to use a different itunes account for purchasing itunes match. How can I use them both on my devices? Will it be asking for my user-pass each time i play a song? What other thing should i consider?
Thank you in advanceI would strongly recommend you not do this. You will regret it.
I have played with this issue a lot. You have to remain signed into match in order for it to show up on your phone. If you sign out to purchase an app or redownload one from your appstore id you use then match will be removed from your phone and when you go into your music app the icloud will not be there. You then have to go sign back out of the store id you used for your app purchase and then sign back into match and everything will have to go though the download to your device process again. This really is not what you want to do.
Sign up to match with the apple id that you know you will use the most or has the most purchased items and use that for all purchases, i.e. books, apps, movies, and music. You don't want to go though the other process.
Plus apple will start not letting you sign into match because you signed out and back in, in to short a period of time.
all store purchases on an iphone are linked to the store id. if you sign out of your match id on the appstore and sign into another account to purchase an app then itunes match will sign out in the music app. You can't have two store id's signed into your iphone at the same time. They are all linked together.
Maybe you are looking for
-
Acrobat Pro 9.4.4 occasionally prints web pages as garbage
Hello All, When I'm on a secure site like online banking, when I try to print a confirmation page it sometimes prints the DATA out as special characters, etc. Even using the page's "Print" command doesn't help. I'm not sure if this coincides with a
-
HI All, In the em console , all the urls hostnames are invalid , So the URLs are not working proerly. ex: http://*2002:4b90:1bf3:16:b43a:e855:c778:a869*:9001/wsm-pm How to change this hostname in em ? Please help me ot this issue. Thanks Govindan P
-
HT201209 I just redeemed a movie code and now I'm stuck
On my iPad I said download later isn't there a way to go back and download it? Or do I have to do it from my computer?
-
Any field status group there in CO area.when i am creating cost center this time bussiness area filed is req field. how to this field optional. Thanks
-
I have RAC 11gR1 (11.1.6.0.1) and I want to upgrade the database only (to 11gR2). I have that upgrade the ASM to (11gR2) obligatorily???? How i do it? thanks so muchhhhh