Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




[Flash 8 Pro] How To Make Scrollpane In External MC Jump?



I have two movies, home.swf and scrollpane.swf On home.swf i have an empty MC that holds scrollpane.swf. On scrollpane.swf I have a UIScrollPane component called scrollPane4 that holds a MC called "symbol 1" on this MC I have buttons that make the scrollpane scroll down ... on (release) {_root.scrollPane4.vPosition = 225;} This all works fine untill I load scrollpane.swf into home.swf, now the scroll buttons don't work. Please help. Thanks. Dan



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 01-28-2006, 02:34 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

How To Make Flash 4 Character Jump?
Hi All,

how do you make a movieclip character jump in flash 4? any sample code or tutorials?

Thanks, woktoc

How To Make Character Jump, Walk, Run In Flash 4?
Hi All,

How do i make a character jump, walk, run, etc. in Flash 4 using the keyboard keys? Any tutorials would be appreciated.

Thanks, woktoc

Jump To Page In Scrollpane
http://web.fccj.org/~kmoncada/aptest/test.html


it's not much to look at rightnow, but when it's finished it will allow the teacher to create a test from a testbank and then print the test.

Anyways, i'd like to create a "jump to page function". Basically, on the lower left corner of the scrollpane (with a preview of the test) i'd like there to be "Page 1, 2, 3, 4.....". And when the user clicks on the "4" the scrollpane will adjust so that graphic of "page 4" is at the top of the scrollpane.

Also the number of pages in the scrollpane will be dynamic.

funny...im getting ideas within my head as i type this. =) your comments/ideas are appreciated.

~Kris

MX - Can I Control A Scrollpane To Jump Down Like And Ancor Link?
I have a scrollpane component with a lot of text and images in it. Is it possible to create a links towards the top that forces the pane to scroll down (or jump down) to a specific area of content lower in the window? (and move the scroll bar down as well.) Kind of like an anchor link in html.

My client is asking for this and i'm kind of stumped. any help would be appreciated.

Dave

Jump To A Vertical Position In A ScrollPane From A Button
I have made a scrollPane with a long vertical movieClip as content. It works fine for scrolling. Now I want to have a set of buttons that will cause the scrollPane to jump to certain points along the vertical scrolling positioning. Did I state that clearly? In other words, when I click my button the scrollPane jumps to a point on the scrollPane? I am a beginner, my coding is weak at best, though I am eager to learn. Any help will be remembered when I am rich and famous.

Let me know if you need to see a .swf or .fla

Joe

How Can I Make Obstacles And How To Make Something Jump When Pressing Space
hey im trying to make a flash game but how do you make obstacles that you mite hav to jump over of somthin cos i tried but things just go straight through it. also, how can i make somthing so it jumps wen you press space?
plz help!

How To Make A MC Jump?
I am making a platform game and I need to know how to make a MC look like it is running when you move it and how to make it move and jump using the arrow keys. But i need it to open a movie clip when you click a certain button like if up was to jump it would have a jumping movie clip open and like that for the running! SO PLEASE HELP ME!!!!!!!

How To Make MX Jump Though Frames
I haven't used Flash for a while but seem to rememeber a feature where you can tell a graphic or movie to hold on a certain frame or start from a specific frame when placed in the scene.

I can't seem to find how to do this in MX.

I know I'm not going crazy... the last version of flash had this. This is how I used to do cartoon lip syncs. I used to put the different mouth shapes in a single symbol i tell the scene to jump through.

Any help locating this in MX would be appreciated.


cheers,
Dino

Does Any One No How To Make A Guy Jump And Fall
hi
its me,13 year old. i really will appreciate it alot if you guys could post me a tute on making a guy jump and fall. the mario thing, landing on a piece of brick or something

and i will be very glad if you can post me codes for horizontal scrolling just like mario



Thanks

Can't Make My Character Jump
I am creating a game in flash using spirte sheets of megaman and I have a problem setting up script to make him jump. I am able to have megaman run side to side and also shoot but I can not get him to jump. Here is a sample of my code:

var hspeed = 0;
var vspeed = 0;
var i = 0;
var d = 1;
stance = false;
jumpspeed = -10
gravity = 2
//var ob = _root.megaman;
//var keyPressed = false;
onEnterFrame = function(){
new_y = current_y - jumpspeed
jumpspeed = jumpspeed + gravity

_x = _x + hspeed
_y = _y + vspeed

//trace(_y);

if (Key.isDown(Key.RIGHT) ) {
hspeed = 5;
gotoAndPlay("sr");
shoot_right.gotoAndPlay("s3");
d = 1;
}

if (Key.isDown(Key.LEFT) ) {
hspeed = -5;
gotoAndPlay("sl");
shoot_left.gotoAndPlay("l3");
d = -1;
}

if (!Key.isDown(Key.LEFT) and !Key.isDown(Key.RIGHT)) {
hspeed = 0;
gotoAndStop("init");
shoot_right.gotoAndStop("stance");
}
if (Key.isDown(Key.SPACE) ){
if (!Key.isDown(Key.LEFT) and (!Key.isDown(Key.RIGHT))){
gotoAndPlay("ss");
}
//gotoAndPlay("ss");
_parent.fire();
}

/*if (!Key.isDown(Key.UP) and !stance and (vspeed < 0)) {
vspeed = 0;
}
_x+=hspeed;
_y+=vspeed;

if (_y < 400) {
vspeed++;
} else {
vspeed = 0;
stance = true;
}
if (Key.isDown(Key.UP) and stance) {
stance = false;
vspeed = -13;
gotoAndPlay("jr")
//jump_right.gotoAndPlay("js")
}

if (Key.isDown(Key.UP)){
vspeed = -50;
gotoAndPlay("jr")
jump_right.gotoAndPlay("js")

} else {
vspeed++;
vspeed = 0;
}*/


I have been trying to do two different methods but they do not seem to work. Any suggestions would be nice.

Help With An External JPEG In A ScrollPane. Flash 8
Hi

I'm trying to have an external jpeg load into a scrollpane called 'champscroll'. The jpeg loads fine but doesn't fit inside the scrollpane or have scrollbars on the side. Help!

I've put the code I'm using on the frame below.


Code:

//LOADS AN EXTERNAL JPEG INTO THE CHAMPSCROLL SCROLLPANE
champscroll.loadMovie = "http://www.sportstv.eu.com/ChampionshipList.jpg";

//PRELOADER FOR SCROLLPANE
loadingBar._xscale = 1;
loadingBar.onEnterFrame = function(){
kBytesLoaded = this._parent.champscroll.getBytesLoaded() / 1024;
kBytesTotal = this._parent.champscroll.getBytesTotal() / 1024;
percentage = Math.round(kBytesLoaded / kBytesTotal * 100);
this._xscale = percentage;

//MAKE THE PRELOAD BAR VISIBLE IF PERCENTAGE IS LESS THAN 100%
if (percentage < 99.9) {
loadingBar._alpha = 100;
bar2box._alpha = 100;
}

//MAKE THE PRELOAD BAR DISAPPEAR WHEN FINISHED
if (percentage == 100) {
delete this.onEnterFrame;
loadingBar._alpha = 0;
bar2box._alpha = 0;
}
}
Any help greatly appreciated.

How Do I Make A Combo Box Into A Jump Menu?
I have created several static combo boxes for a movie, but I want them to behave like Dreamweaver Jump Menus.

In other words, when the selected option changes in a box, go to that option's URL (selection value).

I realize that it probably involves an event handler, but I don't have one.

Can anyone give me the right one or direct me to a tutorial, etc. ??



Thanks in advance.

How To Make Jump Random Frame?
i need to know how to make script to jump random frame like:
better change between 20-50frames and smaller change between 50-65frames and 66-70frames is extremenly small change

so whats the action script for that

Make Icon Jump From One Place To Another
I am working on a simulation of a dual-monitor display that is set up with one over the other with a mouse icon that move along with the actual mouse when it rolls over a specific hotspot. When a particular switch is toggled to LOWER, the icon moves normally moving from the top of the lower screen to the bottom of the upper screen.
However, when the switch is toggled to UPPER, the mouse icon should stop in the middle of the 2 screens (either the bottom of the upper screen or the top of the lower screen). (See the attached image.)
The first part of this functionality works fine now. The problem is in determining when to move the icon from the top of the upper monitor to the bottom of the lower monitor (and vice versa).
Here's the code I have so far:

Code:
this.onEnterFrame = function() {
right = monitors_mc[drag]._x+monitors_mc[drag]._width;
if (sw=="LOWER") {
//If the VIDEO switch is set to lower, mouse scrolls
//up from bottom screen to top.
top = monitors_mc[drag]._y;
botOfUpr = monitors_mc[drag]._y + monitors_mc[drag].top_mc._height;
topOfLwr = monitors_mc[drag]._y + monitors_mc[drag]._height - monitors_mc[drag].bottom_mc._height;
//topOfLwr = monitors_mc.drag_mc._y;
//botOfUpr = monitors_mc.drag_mc.top_mc._y+monitors_mc.drag_mc.top_mc._height;
bottom = monitors_mc[drag]._y+monitors_mc[drag]._height;
} else {
//If VIDEO set to Upper, mouse scrolls off top of
//top monitor to the bottom of lower monitor.
top = monitors_mc[drag]._y + monitors_mc[drag]._height - monitors_mc[drag].bottom_mc._height;
botOfUpr = monitors_mc[drag]._y + monitors_mc[drag]._height;
topOfLwr = monitors_mc[drag]._y;
bottom = monitors_mc[drag]._y + monitors_mc[drag].top_mc._height;
}
if ((monitors_mc[cursor]._y<bottom && monitors_mc[cursor]._ymouse-nowY>0) || (monitors_mc[cursor]._y-10>monitors_mc[drag]._y && monitors_mc[cursor]._ymouse-nowY<0)) {
monitors_mc[cursor]._y += 0.25*(monitors_mc[cursor]._ymouse-nowY);
}
if ((monitors_mc[cursor]._x<right && monitors_mc[cursor]._xmouse-nowX>0) || (monitors_mc[cursor]._x>monitors_mc[drag]._x+8 && monitors_mc[cursor]._xmouse-nowX<0)) {
monitors_mc[cursor]._x += 0.25*(monitors_mc[cursor]._xmouse-nowX);
}
if ((nowY-monitors_mc[cursor]._ymouse) > 0) {
if (monitors_mc[cursor]._y < topOfLwr && inMonitor=="bot") {
monitors_mc[cursor]._y = botOfUpr;
inMonitor = "top"
}
}
if ((nowY-monitors_mc[cursor]._ymouse) < 0) {
if (monitors_mc[cursor]._y > botOfUpr && inMonitor=="top") {
monitors_mc[cursor]._y = topOfLwr;
inMonitor = "bot";
}
}
nowX = monitors_mc[cursor]._xmouse;
nowY = monitors_mc[cursor]._ymouse;
}

How Can You Make An Object Jump Using Actionscript. Please Help
I'm new to action script.

I have a little thing i need to get working.



I have a movieclip with an instance name of "Joe"

I want it so when I click the up arrow for Joe to jump up then go back down, using actionscript.

currently I have this script

if(Key.isDown(Key.UP)){
Joe._y -= 5;
}


this currently makes joe jump up , but he doesn't come back down.

can someone please help me out.


Thanks in advanced.

How Do I Make A Button To Jump To A Cue Point?
Hello all-
I have two MC's named tomBtn and daveBtn. onRelease I want to jump to say cuepoint 5 that I have set through an array, but I dont know how to do it. Could someone please help me out? Here is my AS. Thanks guys.


Code:

var kVIDEO_FILE:String = "01_001.flv";
var kVIDEO_READY:Boolean = false;
trace("kVIDEO_FILE = " + kVIDEO_FILE);
var kVIDEO_DIR:String  = "";
var kSLIDE_CUE_FACTOR = 1;

/******         captions         ******/
// voice captioning times (2 arrays, times and strings)
var captions_ar:Array = [
   "00:00:00.00", "c1",
   "00:00:03.00", "c2",
   "00:00:06.00", "c3",
   "00:00:09.00", "c4",
   "00:00:12.00", "c5",
   "00:00:15.00", "c6",
   "00:00:18.00", "c7",
   "00:00:21.00", "c8",
   "00:00:24.00", "c9",
   "00:00:27.00", "c10",
   "00:00:30.00", "c11",
   "00:00:33.00", "c12",
   "00:00:36.00", "c13",
   "00:00:39.00", "c14",
   "00:00:42.00", "c15",
   "00:00:45.00", "c16",
   "00:00:48.00", "c17",
   "00:00:51.00", "c18",
   "00:00:54.00", "c19",
   "00:01:13.02", "c20" //This isnt really a slide, but needed in order to see previous slide.
];

// Startup inits
var mediaNum:Number = 1;

// just for fun, let's time this
tt = getTimer();

// copy data from big storage array into runtime arrays
var captionSeconds_ar:Array = new Array();
var captionStrings_ar:Array = new Array();

// Init variable for caption cues if not already init'd.
if (capOffset == undefined) {
   var capOffset:Number = 0;
}

// fill the parallel captions-related arrays
for (var i = 0; i < captions_ar.length; i++) {
   // copied from alternating timecode strings (converted to Number) and caption strings
   var time:Number = tcToSeconds(captions_ar[i]);
   time += capOffset;
   if (time < 0.3) {
      // if it's close to 0, back it off so 1st cuepoint will hit while seeking/replaying
      time += 0.3;
   }
   captionSeconds_ar.push(time);
   i++;
   captionStrings_ar.push(captions_ar[i]);
}

// done with data array so free up that memory
delete captions_ar;

function tcToSeconds(tcStr:String):Number {   
   // translate timecode sting into a number of seconds
   // tcStr formatted as "00:08:48.7" for 0 hr 8 min 48.7 sec and splits into a 3-item array
   // where t[0] is hours, t[1] is minutes, t[2] is seconds (probably with decimal)
   var t:Array = tcStr.split(":");
   return( t[0] * 3600 + t[1] * 60 + t[2] * 1);
}

function getVideoFile(slideNum:Number):String {
   // return abs or rel path to video for given slide number. Remember arrays are 0-based but slides start at 1
   //   return(kVIDEO_DIR + slides_ar[slideNum - 1].video);
   return(kVIDEO_DIR + kVIDEO_FILE);      // there is only 1 video
};

this.createEmptyMovieClip("slideHolder", depth++);
slideHolder._x = 525;
slideHolder._y = 110;

//   load text caption cuepoints
for (i=0; i<captionSeconds_ar.length; i++) {
   // text caption cuepoints start with 'c'
   vidPlayer.addCuePoint("c"+i, captionSeconds_ar[i]);
}

/*****************************************************************/
/******      Video Component Playback Event Listeners       ******/
/*****************************************************************/
var myCuePointListener = new Object();

myCuePointListener.cuePoint = function(eventObject) {
   var cueName = eventObject.cuePointName;
   // what kind of cuepoint was it?
   trace("cue point: " + cueName);
   var str1 = cueName.split("c");
   var newNum = (str1[1]*1)+1;
   //trace(newNum);
   slideHolder.attachMovie("c"+newNum, "slide", depth++);
   if (cueName.substr(0, 1) == "c") {
      // if 1st char is 'c' it's a text caption
      var myIndex = cueName.substr(1);
      displayCaption( captionStrings_ar[Number(myIndex)] );
      if (!searchMode) {
         scriptList.selectedIndex = myIndex;
         if (getTimer() > myTimer) {
            autoScroll(myIndex);
         }
      } else {
         // how do you deselect everything in the list?
         
         scriptList.selectedIndex = undefined;
      }
   } else {
      // slide change
      //myBigSlideChanger(Number(cueName));
   }
}

vidPlayer.addEventListener("cuePoint", myCuePointListener);
// scrubbing the video counts as mouse activity with the script
vidPlayer.addEventListener("playheadChange", shrinkTimer);


/**********      OLD FILE SEPARATION   was: code_video.as      ************/
//comment out to enable flv resizer
vidPlayer._chrome._toggleNE.setEnabled(false);

// Get first video and play it
trace("getVideoFile(mediaNum) = " + getVideoFile(mediaNum));

vidPlayer.contentPath = getVideoFile(mediaNum);
vidPlayer.play();
trace("vidPlayer.contentPath = " + vidPlayer.contentPath);


// on current file reached end
var listenForEnd = new Object();
listenForEnd.complete = function(eventObject) {
   vidPlayer.stop();
}

vidPlayer.addEventListener("complete", listenForEnd);

var videoStarted:Boolean = false;
var origVideoSize:Number = 0;

Need To Make Scrolling Text Float Not Jump
I have a scrolling box set to scroll in 30 line incraments. The problem is that it jumps the 30 lines at a time making reading the textmuch harder.
I need to make the text scroll in an smooth animated motion upon clicking the down or up button.
The catch is that the text is dynamic and is pulled from a SQL server so this has to be achieved using action script.
Any one out there that can take this one on?

here is my current script for the up and down buttons:
up button-

on (press) {
if (TextBox.scroll>0){
TextBox.scroll=TextBox.scroll-5;
}
}

--
down button-

on (press) {
if (TextBox.scroll<TextBox.maxscroll){
TextBox.scroll=TextBox.scroll+5;
}
}

Make Movie Jump To A Variable Adress
I want a targetmovie to jump to a variable adress!
"mpump" and "tpump" change instantly according to
the users actions.
Maybe its just a syntax-fault, but i`m dying to figure
it out! Code as below:


Set Variable: "z" = (mpump + tpump)
Comment: Darsteller aktualisieren!
Begin Tell Target ("/body/tkopf")
Go to and Stop ((z) +100)
End Tell Target

I didn't find an answer in the Tutorials- or Movie-
section, so please help me!!!

Help With Actionscript To Make Page Jump Back To Top
Ok so I wanted the page to jump back to the top when the buttons are pressed. I found some help in an old thread. It worked great but for the first button only that i put the script on. All the others don't work at all. Even if its the same button just on a different frame. Not sure what i am doing wrong at all. I really don't know anything about actionscript so if anyone can please help me. Below is the script that i added to the tree buttons and the script i added to the html code.

thanks- joe

Button1:

on (release) {
nextFrame();
import flash.external.*;
flash.external.ExternalInterface.call('pageTop');
}

Button2:

on (release) {
gotoAndStop(1);
import flash.external.*;
flash.external.ExternalInterface.call('pageTop');
}


Button 3:

on (release) {
prevFrame();
import flash.external.*;
flash.external.ExternalInterface.call('pageTop');
}

At the top of my html:

<head>
<script http-equiv="Content-Script-Type" content="text/javascript">
function pageTop() {
window.scrollTo(0,0);
}
</script>

How To Make Movie Buttons Jump In Timeline.
This is a bit of a newbie question:

I have given 5 frames on my timeline labels of (001,002,003,004,005)

I have a movie button and I want to tell that button that on release to go to the next label. And if it's on a label, to go to the next... and if it's on the last to loop around to the first. (kind of like a fast-forward button). I can make it go to the first, but not the sequential ones. I know this must be easy, but can't get it to work. Anyone know?

This is what I have so far:

on (release) {
gotoAndPlay("001");

if (true)
gotoAndPlay("002");

but the code above just makes it jump to label "002"

How To Make Movie Buttons Jump In Timeline.
This is a bit of a newbie question:

I have given 5 frames on my timeline labels of (001,002,003,004,005)

I have a movie button and I want to tell that button that on release to go to the next label. And if it's on a label, to go to the next... and if it's on the last to loop around to the first. (kind of like a fast-forward button). I can make it go to the first, but not the sequential ones. I know this must be easy, but can't get it to work. Anyone know?

This is what I have so far:

on (release) {
gotoAndPlay("001");

if (true)
gotoAndPlay("002");

but the code above just makes it jump to label "002"

Can I Make The Playhead Jump Xx Frames Foreward From Current?
I have made a 3D-animation, and I have rendered it from three different cameraangels. So now I have 3x100 frames.
I want it to be possible to jump between the cameras on a press on a button (3 buttons). I've tried to use the opacity to fade out the two other animations but my computer has a hard time (very hard) to run 3 singleframe animations at once. So my idea is to put the animations in one line so it will fill 300 frames and then call for the playhead position and plus it with 100. So if the playhead is on frame 23 it will make it goto 123 or 223.

My problem is I'm quite new in scripting, so I don't know if it's possible to call the playhead position at all and I'd like some help to put the script together if it's possible.

I would be very pleased if anybody could help me.

Creating A Button To Make It Jump To A Specific Scene.
I have the button, everything is done. I have 2 problems now. First, I am trying to apply this:
on (release) {
nextScene(Scene2);
}
to the HIT frame of my button, but it doesn't seem to work, so I am doing something wrong. If this code is correct, where do I apply it? And if it's wrong, what is the correct coding?

Thanks if advance.

How Can I Make A Actionscript Button Thart Makes You JUMP 200 Frames Into The Future?
How can I make a actionscript Button thart makes you JUMP 200 frames into the future?

It seems like all the turorials make you program each button for a specific scene and I dont want that since I have a very long timeline and wnat to do frequent jumps in my animation to skip parts.

anyone know how?

Simple Jump To External Swf
i have a main swf which i load a separate generic menu swf into.

What code can i use in the menu code to navigate to a new swf (called main2) which will use the same menu again.


rat

Jump To A Specific Frame Of An External Swf
hi all !

NOTE : This is something to do with jumping to a particular frame of an external swf file from another swf file. HOPE I AM CLEAR WITH WHAT I WANT TO SAY ...
please help me out... i am going mad at this.

i have a base file main.swf which calls sound.swf & intro.swf. In the intro.swf, i am calling gallery.swf. In the last frame of gallery.swf, i am calling the base file i.e main.swf (the story ends here).

i want the sound to loop indefinitely without being interrupted.

when the playhead reaches the last frame of gallery.swf, the sound stops abruptly.... sound starts again ... the base movie loads... so on..

can anybody help pls. ???

External Movieclip Into An Empty MC W/ Frame Jump
I need my movie to go to frame 21 inside my movie clip(buttons)and at the same time load an external movieclip into an empty MC with the instant name 2DPhotoholder. Here are the two things I have tried with my code and the results I get for each.

on (release) {
gotoAndPlay(21);
loadMovie("2Dphoto/DropDownnew.swf", "_root.2DPhotoholder");
}

:I get no reults for the above script


Then I tried having my button just go to frame 21 and placing the load function to the movie clip on the frame at frame 21 like so.

_root.2DPhotoholder.loadMovie("2Dphoto/DropDownnew.swf");

:This gives me an error
**Error** Symbol=Buttons, layer=Layer 14, frame=21:Line 1: Syntax error.
_root.2DPhotoholder.loadMovie("2Dphoto/DropDownnew.swf");

Total ActionScript Errors: 1 Reported Errors: 1



Can anyone help me get this to load, and jump to frame 21 then play to frame 26 and stop on the main time line of my buttons movie?

Help To Load External.swf & Jump To A Specifiq Frame
Hello I need somme help please. I' like to get the way to load and external flash movie and jump to a frame (2) for example.
Here my script baut a got a problem. It does'nt work. May be i have to write some script for the receive movie.??

With this, i can load only the external movie but i can't goto the specifiq frame or label.

on(release){
loadmovie("Recepteur.swf", _root.swfContain);
_root.swfContain.gotoAndPlay(2);
_root.swfContain.gotoAndPlay("TestOK");
}

Code To Load External Movie And Jump To Frame 2?
i know this has been asked be fore but sadly not in the conditions that i need it to be, i want to load all my jpg pictures in an external movie there fore wenn someone clicks on button_2 in the home_movie i need the external movie to alsow jump to frame 2 and show picture 2, button_3 to frame 3 and so on. So far i have accompished that the external movie is loaded ontop of the origenal movie with picture 1 but i can't get my code right so that wenn you clicks on button 2 it jumps to frame 2

please excuse my english, it's not my motherlanquage

code: on (release) {
loadMovieNum("home_movie.swf",this, _level2);
onClipEvent (load) {gotoAndPlay(2); =probably wong?? but what do i use instead??

}

Make Scrollpane Transparent
Hello,

My scrollpane works fine, it scrolls one .png.

However, the inside is solid white, and I would rather have it be completely transparent.

So you could scroll the .png, but see the background behind it.

Any help is much appreciated.

- Gabe

Make Scrollpane Transparent
Hello,

My scrollpane works fine, it scrolls one .png.

However, the inside is solid white, and I would rather have it be completely transparent.

So you could scroll the .png, but see the background behind it.

Any help is much appreciated.

- Gabe

After External Movie Finish Playing Jump To A Frame In The Main Time Line
Hi

I'm trying to get a imported .wmv movie (Progressive download from a web server) that once it finish playing to jump to a particular "labeled" frame on the main flash time line.

I'm trying by using a cue point called "End" at the end of the movie, with a function that say something like:

if(cuePointName == "End"){
gotoAndPlay("name");
}

but I can't get it to work

Has any one done this before? any other idea of how to get flash to listen to a imported movie so when it get's to the end, a function will start playing a particular "labeled frame" in the main flash movie time line?

Thanks

Alex

How Do I Make My Scrollpane Scrollable With Mouse?
Hey,

Like the title says, i have an external movie clip that is a scrollpane, that has bunch of text and graphics, etc...

I want to be able to scroll this box with my mouse....

Take a look at my website to know what i mean: www.piercedevelopmentlv.com

Both the "about us" sections as well as the "contact us" sections. I can get text boxes to scroll fine, but the scrollpanes arent working for some reason.

Thanks for any help you guys can offer!!!

- Adam

Make Scrollpane Scrollbar Invisible
Hi

I´ve been struggling a long time to get the scrollbar on a Scrollpane to be invisible, although I still want to be able to control the scrolling via actionscript. Any help is appreciated!

/David - Sweden

How Do I Make A Button Change A SCROLLPANE's Content?
Hi,
How do I make a button change a scrollpane's content? I.e. when you click button A the content of the scrollpane will be 3 pictures of cows, and when you click button B that content will go away and change to 4 pictures of ducks.

Can anyone help me on this one? It would be greatly appreciated!
Thanks in advance,

-Byrax

ScrollPane Thumb--make It A Fixed Size
So I've created a small class extension with an override function to stop the thumb from scaling on the UIScroller...but I can't seem to figure out how to do the same for the scrollpane.

Any ideas?

Below you can see that I extend the UIScroller, override the 'updateThumb()' function in the ScrollBar class and merely comment out one line:

thumb.height = 12;
// thumb.height = Math.max(13,pageSize / per * track.height);

How can I do the same for the ScrollPane?

Here's the UIScroller extension:

package
{
import fl.controls.ScrollBar;
import fl.controls.UIScrollBar;
public class ScrollPane_thumb extends fl.controls.UIScrollBar
{

public function ScrollPane_thumb()

override protected function updateThumb():void {
var per:Number = maxScrollPosition - minScrollPosition + pageSize;
if (track.height <= 12 || maxScrollPosition <= minScrollPosition || (per == 0 || isNaN(per))) {

thumb.height = 12;
thumb.visible = false;
} else {
thumb.height = 12;
// thumb.height = Math.max(13,pageSize / per * track.height);
thumb.y = track.y+(track.height-thumb.height)*((scrollPosition-minScrollPosition)/(maxScrollPosition-minScrollPosition));
thumb.visible = enabled;
}
}
}
}

How To Make An External Swf Close? (Flash CS3)
Hey everyone, I have a (hopefully) quick question that I assume is easy code, but I can't seem to get it to work =.

Using loadMovie, I have loaded an external swf into my flash movie, now I would like it so when you click anywhere off the external swf it will close.

Currently it won't do that, once the external swf opens you cannot get rid of it unless you click on another button on the site (which are all partly covered by the external swf). So how would I tell it to close when you click off it?

Thanks!

How To Make Contents Accessible For Screen Reader Of A ScrollPane
Hi,

I am in a very big trouble....... i am attempting to make contents of a scrollpane accessible for screen reader in flash 8 AS 2.0..... how is it possible?

Please help me out of this. I have used mx.accessibility.ScrollPaneAccImpl.enableAccessibility(); but it seems to be not working

How Do I Make A Slideshow With External Flash Files?
Hello,

This is my first post. I usually like to come here a lot and look at the tutorials an such. I was reading the external swf transitions tutorial on kirupa and got it to work great but I can't seem to get it to autorun, like when one movie is done another one will load up. Could someone please help me or show me what to do?

Thanks

How Do I Make A Slideshow With External Flash Files?
Hello,

This is my first post. I usually like to come here a lot and look at the tutorials an such. I was reading the external swf transitions tutorial on kirupa and got it to work great but I can't seem to get it to autorun, like when one movie is done another one will load up. Could someone please help me or show me what to do?

Thanks

Loading External Jpg Into My Flash, How To Make It More Smooth?
I have an animation that loads diferent jpegs depending on the button pressed.

eg.
I have A, B, C button and a.jpg, b.jpg and c.jpg thats in a seperate folder but is where the swf file of my movie resides.

My animation that makes a blank movie slide from left to right across the window for example.

If I press button A, a.jpg would load into the blank movie and slide from left to right and if I press B, it would load b.jpg into the blank movie that slides left to right.

The problem I am having, is that if the computer is slow, sometimes the blank movie would slide left to right but the image would only appear halfway of the slide because it has not loaded the image into the blank movie yet.

How do I go about doing the following. If button A is pressed, the blank movie will only start sliding if the a.jpg is fully loaded into teh blank movie first.

How To Make A Video Stop In Flash Through An External Button
Hi everyone!

I have a little problem: I made a flash site with its different sections, the first of which has a movie clip which is a "VideoPlaylist". So inside this movie clip I have the player and the videos sequenced one after the other in a TileList component. The problem is:

When I go to a different page, the video in the first page continues to play and so you can still hear the sound, AND WHICH IS WORSE, when you click the button to return to the first page, the video starts again with the sound of the previous time still rolling.

The solution would be, I suppose, when clicking to any of the buttons that link to another section of the flash document, add some action script to make the video stop (having in mind that the video player is inside a movie clip).

I don't know action script, just the navigation basics necessary for the sections. I did the videoplaylist following this tutorial:

http://www.adobe.com/devnet/flash/articles/video_playlist.html

Can anyone help me, please!!

External .jpg In A ScrollPane. 99% There
Hi,

I'm trying to have an external jpeg load into a scrollpane. Everything is working fine, I've even got a preloader for the jpeg. Only thing is that the loaded jpeg doesn't fit get masked by the scrollpane, and the scrollpane doesn't give a scrollbar to move the jpeg.

Here is the code I've used...


Code:
champscroll.loadMovie("http://www.sportstv.eu.com/ChampionshipList.jpg");
loadingBar._xscale = 1;
loadingBar.onEnterFrame = function(){
kBytesLoaded = this._parent.champscroll.getBytesLoaded() / 1024;
kBytesTotal = this._parent.champscroll.getBytesTotal() / 1024;
percentage = Math.round(kBytesLoaded / kBytesTotal * 100);
this._xscale = percentage;
if (percentage < 99.9) {
loadingBar._alpha = 100;
bar2box._alpha = 100;
}
if (percentage == 100) {
delete this.onEnterFrame;
loadingBar._alpha = 0;
bar2box._alpha = 0;
}
}
loadingBar and bar2box are parts of the preloader. champscroll is the scrollpane and ChampionshipList.jpg is the external jpeg, obviously.

Does anyone have any ideas? I've tried to use redraw and refreshPane after the above code but they didn't work.

Thanks for any help.

Scrollpane With External Data
I´m tring to get a text from external txt file and bring to my scrollpane...but this don´t work....how may i do that????


ps. Sorry about my english!!!!

Help: Loading External Swf In Scrollpane
Hi everybody,

I'm trying to load an external swf into a scrollpane.

I've the component, and an empty MC here I placed this:

loadMovieNum("img/test.swf", 1);

Everything is ok except the fact that if the external swf has a preloader it doesn't scroll... Can anyone help?

Thanks,
nolas

<< SCROLLPANE External Content BUG
I have main movie called - 13e.swf
This loads a scrollpane movie - content_main.swf
with contentpath = - pane_menu.swf
into MC - mvmain


All this works fine offline ,
when online it has the MX MAJOR BUG porblem of loading
it too slow for the scrollpane to calculate
so it overlaps the scrollbox size.
(even if extrenal swf is 1k).

I have tried preloader... no good or send me one that
waits till all is loaded then shows up in scrollpane
working online.
(an example of working scrollpane online would
be a novel experience too )

I have read through some similar posts but still im
not able to make it work.

Please show me a fix for this.

are there any other available 3rd party scrollpane
compnents that scroll and load external.swf and works.

I have heard about the scrollpane refresh fix.
but im novis at actionscript and i cant figure it out.

please show an example and where to put it on my movie
and how i can determine when the full content of the
swf has loaded for it to refresh at the righ time.
and not give me a garbled scrollpane result.

macromedia should have a notice saying

SCROLLPANE NOT USALBLE STAY AWAY !!!!

thank you !

windows xp
flash mx 2004

im going to lay down and cry now... !!!

Load External SWF Into Scrollpane
I'm trying to load an external SWF file into a scrollpane of a different SWF in the main movie using a button. What is the code for this? I can get it to work if the info I want to load is a MC with exported AS, but an external SWF file won't load.

What's the problem here?

Thanks.


zzzeeb

External .jpg In A Scrollpane Problem. 99% There
Hi,

I'm trying to have an external jpeg load into a scrollpane. Everything is working fine, I've even got a preloader for the jpeg. Only thing is that the loaded jpeg doesn't fit get masked by the scrollpane, and the scrollpane doesn't give a scrollbar to move the jpeg.

Here is the code I've used...


Code:
champscroll.loadMovie("http://www.sportstv.eu.com/ChampionshipList.jpg");
loadingBar._xscale = 1;
loadingBar.onEnterFrame = function(){
kBytesLoaded = this._parent.champscroll.getBytesLoaded() / 1024;
kBytesTotal = this._parent.champscroll.getBytesTotal() / 1024;
percentage = Math.round(kBytesLoaded / kBytesTotal * 100);
this._xscale = percentage;
if (percentage < 99.9) {
loadingBar._alpha = 100;
bar2box._alpha = 100;
}
if (percentage == 100) {
delete this.onEnterFrame;
loadingBar._alpha = 0;
bar2box._alpha = 0;
}
}



loadingBar and bar2box are parts of the preloader. champscroll is the scrollpane and ChampionshipList.jpg is the external jpeg, obviously.

Does anyone have any ideas? I've tried to use redraw and refreshPane after the above code but they didn't work.

Thanks for any help.

Copyright © 2005-08 www.BigResource.com, All rights reserved