ActionScript 3.0 :: Scaling A SWF In A Scrollpane?

Dec 7, 2009

I have a SWF file, with it's own buttons and events etc. that I am trying to load into a scrollpane in a parent application, and have it be scale-able (i.e. zoom in and out).It doesn't need to animate zoom, click to new scale is ok for now.[code]Everything seems to work except the scale statements at the end, they generate a compiler error:TypeError: Error #1009: Cannot access a property or method of a null object reference.at InspectorShell()

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Click A Button Inside A Scrollpane And Make It Load A Swf Outside The Scrollpane?

Feb 16, 2011

I have a MovieClip inside a ScrollPane. Inside this MovieClip i have buttons. What i want to know is: how to click a button inside a Movie Clip, that is inside a scrollpane, and make it load a swf outside the scrollpane?

View 2 Replies

ActionScript 3.0 :: TextField Inside ScrollPane - Scrollpane Wouldn't Scroll To The End?

Mar 30, 2010

import fl.containers.ScrollPane;
recentMsg_bt.addEventListener (MouseEvent.CLICK,resentMsgClick);
var sp:ScrollPane = new ScrollPane();[code].......

Everything works just fine, except for the last msg gets only half displayed as if the scrollpane wouldn't scroll to the end.

View 3 Replies

Flash :: Drag From A ScrollPane To A Target Outside Of The ScrollPane?

Nov 22, 2010

I haven't been able to find a non-hack way to use Drag and Drop with the AS3 ScrollPane component.

Here's what I'm doing:

I create a container mc, which I then add a bunch of children to. The children are what I want to drag.

However, dragging is constrained to the boundaries of the ScrollPane. This seems to me like a limitation of the ScrollPane component.

I know it can be worked around with attaching a dupe mc to the cursor pos, then manipulating other mcs on mouse up, but..

View 1 Replies

ActionScript 2.0 :: No Resize/scaling A Movie Clip On The Scaling Stage?

Mar 11, 2008

I've search through all the threads with "scaling" and "resizing" and can't find the solution.

Basically I have a GUI element on a gallery that I don't want to scale, while the rest of the page is free to resize/scale.

I think I need to add a listener of some sort to the stage, but I'm not sure how to do this.

View 2 Replies

ActionScript 3.0 :: Scaling Button Background Without Scaling Text?

Feb 23, 2009

I'm building some navigation that extends all the way from left to right across my SWF. When the window resizes, I'd like the nav buttons to get wider but not have the text on the buttons get wider.

The buttons themselves are rectangles with a vertical gradient and a stroke around the outside. I'm using 9-slice scaling so the stroke doesn't scale, but the middle (gradient) gets wider or narrower.What'd be great is to be able to select an object or layer and say "don't scale, even if the rest of this movie clip scales". Is there a way to do that, or will I have to do it via actionscript?

View 1 Replies

ActionScript 3.0 :: Scaling Movieclip Not Scaling But Repeating?

May 20, 2010

i have a diagonal movieclip that I am trying to scale along with the background video. The background video scales perfect, I am attaching the diagonal movieclip (br in the code as bottomright) with addChild
Instead of scaling with the window, it seems to repeat such as the image is displaying. this is the main section of the code that is doing the scaling
 
var br:mc_bottomright = new mc_bottomright();
addChild(br);
//proportional scale
if ((stage.stageWidth / stage.stageHeight)> (owidth/oheight))

[code]....

View 4 Replies

ActionScript 3.0 :: Scaling A Movieclip Without Scaling Its Contents

Apr 10, 2009

I am trying to achieve an effect of scaling a movie clip on click...very similar to [URL] When the user clicks on See, Hear, Play and Shop boxes, the boxes expand. I have created a box movieclip that has a bar on top. This bar is a movie clip inside the box movieclip. When i try to scale the main box movieclip, the internal bar movie clip scales as well. How to stop this?

View 2 Replies

ActionScript 2.0 :: Non Scaling In Scaling Part

Apr 18, 2004

really sorry to bring this one up again. I've managed to create quite good working gallery. What I'm trying to now is create a menu that is attached to the scaling part but does not scale it self - in other words just changes position. here's an example of what I mean: galleru #1

View 14 Replies

ActionScript 2.0 :: Non Scaling In Scaling Part?

Apr 18, 2004

What I'm trying to now is create a menu that is attached to the scaling part but does not scale it self - in other words just changes position. here's an example of what I mean: galleru #1

View 13 Replies

Create A Scrollpane From Scratch?

Apr 21, 2009

I googled this online, and almost all of them start with dragging the scrollpane from the component toolbar.

I don't like the way this scrollpane looks. How to change the color, shapes, etc. Can I do this through altering the code, or do I need to start from scratch?

View 5 Replies

ActionScript 3.0 :: CS4 / Set To Use Handcursor On The ScrollPane?

Sep 25, 2009

I know that you can access the scrollpane's content by writing: scrollPane.content...But how can I access the scroller - with that I mean the thumb and up & down arrows...I would like to do something like this for example:

Code:
scrollPane.scroller.buttonMode = true;

View 2 Replies

ActionScript 2.0 :: CS3 MC AttachMovie In Scrollpane

Oct 8, 2009

for (i=0; i<policy.length; i++) {
newOpt = Stocklist_MC.attachMovie('Option', 'Option'+i, i);

I've got a ScrollPane on the root stage. This loads a MC called 'Stocklist_MC' (this also has a linkage/export name of 'Stocklist_MC'). When I try to use '.attachMovie' to the movieclip (Stocklist_MC) inside the ScrollPane nothing appears. All the AS is on frame 1 of root. Everything works when I use '.attachMovie' with _root. for (i=0; i<policy.length; i++) { newOpt = _root.attachMovie('Option', 'Option'+i, i); Also, if I drag Stocklist_MC to the stage I get everything working but list gets cut off at bottom, which is the reason why I need it in a scrollPane.

View 1 Replies

ActionScript 1/2 :: Using ScrollPane To Load Some Swf?

May 25, 2009

i am using ScrollPane to load some swf. I zoom content and use "scrollDrag = true and false ". But if i use scrollDrag = true, and than scrollDrag = false and in the content was some movie clips, that have some AS on it(maybe onPress) it will be DISABLED! every script is disabled on the MC-s what was in the content of the Scrollpane.

View 3 Replies

ActionScript 1/2 :: Loading Another Swf Into A ScrollPane

Aug 20, 2009

I have a swf that is loading another swf into a ScrollPane. The swf being loaded is large...around 4mb. My problem is that sometimes it loads fine, sometimes it loads without the scrollbar, and sometimes you need to refresh the page before it loads fully and correctly. My question: How can I easily test that it has fully loaded and that the scroll bars are displaying? I've tried various scenarios with ProgressBars, etc., but even when 100% loaded, the scroll bars do not consistently load.

View 1 Replies

Get Rid Of Scrollpane Active Border?

Nov 3, 2010

get rid of active border of the default scrollpane component in flash CS5. I am working in Actionscript 2.0.

View 1 Replies

ActionScript 3.0 :: How To Set Scrollpane BackgroundColor

Jun 29, 2009

how to set the scrollpane's background color in AS3 with CS4?You can't seem to use _Globals, setStyle,and opaqueBackground doesn't seem to work
effectively.

View 0 Replies

ActionScript 2.0 :: Dragging MC Out Of Scrollpane

Feb 29, 2012

I can't seem to drag a movie clip out of my scrollpane. It works fine inside the pane, but it won't show when I drag it out!

View 2 Replies

Scrollpane Not Working Correctly?

Oct 6, 2009

I have used a scrollpane on my new site, it scrolls but only if you click the arrows or click in the scroll bar, if you actuall try and scroll by dragging (which people would because it's long) it vanishes![URL]

View 1 Replies

ActionScript 2.0 :: Buttons In Scrollpane?

Sep 3, 2004

i was wondering whats up with the scrollpane. Ive got it loading my swf files into it but for sum reason u can press the buttons even if theyre not showing. see below

see the button on the top left how it is darkened, this is the over state, but the mouse isnt actualy on the button, its above the scrollpane area, but its still being selected and is able to be clicked.

View 3 Replies

ActionScript 2.0 :: Mc Not Attaching To Scrollpane?

Dec 21, 2004

In the first frame of my main movie i include a AS file.In that as file there is a MC attached from the liberary named shoutbox_holder. In the shoutbox_holder mc I attach 5 movieclips window1, window2.. also from the liberary. This works very well, because I see the mcs in the debug mode.

shoutbox_holder
|_window1

window2

window3

I want the shoutbox_holder to attach to a scrollpane, so i did drag a scrollpane to the main stage from the componentspanel, deleted it and drag a instance from the liberary to the stage, then In the contentpath field I insert shoutbox_holder(pointing to the mc created in the as file).

View 3 Replies

ActionScript 2.0 :: Swf Not Loading Into ScrollPane?

Oct 9, 2006

I am loading a menu consisting of a library of items, based on my XML file into a combo box. I have menu working correctly. When I click on an library item in the combo box, it's supposed to load the items into my scrollPane called "thumbs". Now what is happening is, the appropriate number of items are getting loaded to the scrollPane in the form of a movieClip called appropriately "thumbs_mc", but the actual swf doesn't get loaded. I can't seem to figure out whats going on.

Code:
var myXML:XML = new XML();
myXML.ignoreWhite = true;
libraryList_ar = new Array();

[code]....

View 2 Replies

ActionScript 2.0 :: CheckBoxes Within A ScrollPane?

Mar 30, 2009

I have checkBoxes within a scrollPane on the main stage. The buttons associated with those checkBoxes are also on the main stage (can't be withing the scrollPane). But I can't get the actionscript to work.

Checkbox for Blue (placed on main stage) work's fine Checkbox for Red is the problem one Instance = the instance name of the scrollPane Identifier = the Identifier name of the content within the scollPane

Code:
button.onRelease=function(){
if (chbox_BLUE.selected) {
BLUE._visible = true

[Code]....

View 1 Replies

ActionScript 3.0 :: Scrollpane Won't Scroll Far Enough

Apr 29, 2009

I have a scrollpane and I have set it's source to a Sprite:

Code:
_pane.source = spriteContainer;

Before hand, I added all of my labels and components to the container itself. The scrollpane works in that it will scroll up and down for me... the problem is that it won't scroll down far enough - it cuts off half of the last textfield.

I have done a lot of searching and have tried adding a ".invalidate();" method... I've even tried resizing the sprite itself, but to no avail.

View 1 Replies

ActionScript 2.0 :: Add Images To Scrollpane?

Aug 7, 2009

1. Go to hexapartners.net/Application2. Click on "Upload own graphic"3. A new window will open, upload ur image in that.4. Click on "Icon" on hexapartners page and select "Uploaded" category from combo box.5. You will see ur uploaded image in the scrollpane and when u click on that it will be loaded on the right sideFor static images i have done as follows :-1) Convert image to button and add on press event in it. 2) In on press event, i added loadMovie(url,mc) so image gets added to movieclip.3) Then i converted this button to movieclip as i wanted to add it to a scrollpane.4) After that i used attachMovie() to add this movieclip to scrollpane.

View 4 Replies

ActionScript 2.0 :: Can't Load XML In Scrollpane?

Sep 20, 2009

I'm using AS2 in Flash CS4. I have a web site that needs to show either Japanese or English text, depending on which option the user selects. My code works well, but when I try to load the text boxes into a scrollpane on the news page, the text doesn't show.so my code is very simple.

Code:
function loadXML(loaded) {
if (loaded) {

[code].....

View 1 Replies

ActionScript 2.0 :: Use The OnEnterFrame For The ScrollPane/MC's?

Jan 5, 2004

I am using createEmptyMovieClip to create MC's based on values from an array. The MC's are placed into the FScrollPaneSymbol component. They load ok however the getURL that should be loaded from the array doesn't work. I've only been able to get it working if I put in an onEnterFrame function but that makes it assign the last url from the array to all the MC's.

Code:
foo.onEnterFrame = function() {
for (q in portfolio.sections[0].items) {
//loader[thumbX] is a dynamically created MC[code].......

If the array values are 1,2,3 it assigns the geturl for each of the MC's to "3";Do I even have to use the onEnterFrame for the ScrollPane/MC's?

View 2 Replies

CS3 Inserting An Accordion Inside A ScrollPane?

Mar 10, 2009

I've just used the accordion component in flash to successfully load some external data into it.For the purpose I want to use it, the accordion is a good option.However, as you keep adding more and more elements into it (and, presumably, there will eventually be lots of them in this project), the headers start to take up more and more space, up to the point that you can't see the content.So yes, I made it so that the accordion adjusts its size depending on the number of elements it needs to display each time. And that works fine.BUT... then, there's a point where the accordion is just too big for the stage... so it doesn't fit, and you can't see part of it.I thought it would be possible to insert the accordion inside a ScrollPane, but I can't make it work.

The first step would be to put the accordion component inside a new MC. But when I do that and test the movie, I get a very weird behaviour of the component. It loads the content, but at first only half of the component shows up. Then when you click some items, they don't display properly and do weird things.Still, I went forward and tried to put that MC inside a scrollPane (gave the MC a linkage name, etc.), but still the scrollPane seems to display a "blank" accordion inside it, not the one with the content.Is it possible at all to get a working accordion inside a ScrollPane? If not, can you think of any other way to make the accordion component "scrollable" so that it can have whatever size is needed, and still be usable?

View 2 Replies

ActionScript 2.0 :: Control The Content Of The ScrollPane?

Mar 12, 2009

I'm using an AS2 ScrollPane component and I want to be able to control the content of the ScrollPane....like change it's _x/_y or _height/_width....how do I do this?

View 6 Replies

ActionScript 2.0 :: ScrollPane Content Rotation?

Mar 25, 2009

I'm trying to rotate the content within a scrollPane. The catch is that the content is a movieclip which dynamically loads an external JPG image.How can this be accomplished. I've been trying this process:Load JPG into movieclip container. (scrollMovieClip) ** In libraryAssign scrollpane contentPath to movieclip container.Rotate and position movieclip within scrollpane.

PHP Code:
var mcMain:MovieClip;
function init() {

[code].....

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved