Xml Works, Can You Make It Scroll?
Hi,
With a lot of help and a lot of sleepless night, I have my movie pretty close to what I need. I hate to give up, but that's what I'm doing. I've tried everything that I can. I just don't have the experience to know what to do next.
The attached movie works just like I want it to, except the list of words in the dark blue section (not the entire movie) needs to scroll using the buttons that appear above and below the list. Please let me know if you can finish it. I'd be glad to pay you for your time.
Thanks, Debbie
FlashKit > Flash Help > Flash ActionScript
Posted on: 06-08-2005, 04:40 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Scroll Works Sometimes
I'm trying to make a simple scroll bar to scroll text. I'm using Flash MX 7. I first create the text, I make the text area really small. I make it "Dynamic Text" - "Multiline" and I name the "Instance Name" something like 'award'. I then drag in the "Scrollbar" icon from Flash UI Components. In the "Target Textfield" I name it 'award'. It works sometimes. Mostly when I make the text small in the beginning. But when I make it a little bigger or make the font bigger the scroll bar doesn't work. Extremely frustrating problem. Please help!!!
Scroll Works Sometimes
I'm trying to make a simple scroll bar to scroll text. I'm using Flash MX 7. I first create the text, I make the text area really small. I make it "Dynamic Text" - "Multiline" and I name the "Instance Name" something like 'award'. I then drag in the "Scrollbar" icon from Flash UI Components. In the "Target Textfield" I name it 'award'. It works sometimes. Mostly when I make the text small in the beginning. But when I make it a little bigger or make the font bigger the scroll bar doesn't work. Extremely frustrating problem. Please help!!!
Scroll Bar Component Only Works Sometimes
Hi,
I have a dynamic text box to which I attached a scroll bar. My publish settings are to version 7 and script version 2.
The problem is that when viewers access the page, sometimes the control buttons on the scroll bar are there and sometimes not. What can I do to get past this problem?
thanks
I did search here for an answer but haven't found one yet.
[F8] Scroll Wheel Works In IE, But Not In FF?
Hey gang,
I can't figure out why on earth it's doing this, but a datagrid I am using will not enable the scroll wheel when viewed in FireFox. Basically, I wanted to use a datagrid so that I could control 3 columns of xml-driven text with one scrollbar. I set the background component of the datagrid to invisible, which also got rid of the datagrid functionality (sorting by column, rollOver, clicking), which was fine with me since all I need for this project is non-interactive textboxes that I can control with one scrollbar. It works fine in IE, but in FF it doesn't. Anyone have a clue why?
PHP Code:
showDG.showHeaders = false;
obj = {_visible:false};
_global.styles.ScrollSelectList.setStyle("backgroundColor", obj);
_global.styles.ScrollSelectList.setStyle("vGridLines", false);
showDG.mouseWheelEnabled = true;
showDG.setStyle("borderStyle", "none");
showDG.setStyle("fontFamily", "arial");
showDG.setStyle("color", "0xB2A399");
showDG.setStyle("fontWeight", "bold");
showDG.setStyle("fontSize", "11");
showDG.columnNames = ["showDate", "showVenue", "showLocation"];
var temp = showDG.getColumnAt(0);
temp.width = 115;
temp = showDG.getColumnAt(1);
temp.width = 160;
temp.setStyle("textAlign", "center");
temp = showDG.getColumnAt(2);
temp.setStyle("marginLeft", "20");
temp.width = 152;
//------ Begin XML Search ----//
var myXML:XML = new XML();
//ignore the white space
myXML.ignoreWhite = true;
myXML.load("shows.xml");
//Search XML file for results
myXML.onLoad = function(success) {
if (success) {
var showNode = this.firstChild.firstChild;
while (showNode) {
var insert_obj = {showDate:showNode.childNodes[0].firstChild.nodeValue, showVenue:showNode.childNodes[1].firstChild.nodeValue, showLocation:showNode.childNodes[2].firstChild.nodeValue};
showDG.addItem(insert_obj);
showNode = showNode.nextSibling;
}
} else {
trace("There was an error!");
}
};
Any help is most appreciated!
Scroll Wheel Works
i whish to type some code here but it's going to be only example :-)
i saw few posts here and there - and everybody say it's imposible - i'm using IBM USB mouse and scroll wheel works here
after you open everything in menu on left side scroll bar will apeare, it's very interesting i wonder if it works for everybody?
ycc
Scroll Script Works In Flash 6, But Not In 9
I have a simple scroller script that works fine for scrolling a movieclip in Flash 6, but when I publish in anything later, it no longer scrolls. Both are set to AS2. Is there an obvious reason that anyone can see of why this should be? When I test the script syntax in the actions panel, it says there are no errors in the script. By tracing I can see that there's no trouble with targeting the up and down buttons or scroll slider, and the slider still drags, but the content MC doesn't move as it should. Thank you very much for your help, in advance. Here's the script, in case the answer isn't obvious from the description:
Attach Code
scrolling = function () {
var scrollHeight:Number = scrollArea._height;
var contentHeight:Number = content_mc._height;
var scrollSliderHeight:Number = scrollSlider._height;
var maskHeight:Number = contentMask._height;
var initPosition:Number = scrollSlider._y;
var initContentPos:Number = content_mc._y;
var finalContentPos:Number = maskHeight-contentHeight+initContentPos;
var left:Number = scrollArea._x;
var top:Number = scrollArea._y;
var right:Number = scrollArea._x;
var bottom:Number = scrollArea._height-scrollSliderHeight+scrollArea._y;
var dy:Number = 0;
var speed:Number = 24;
var moveVal:Number = (contentHeight-maskHeight)/(scrollHeight-scrollSliderHeight);
scrollSlider.onPress = function() {
var currPos:Number = this._y;
startDrag(this, false, left, top, right, bottom);
this.onMouseMove = function() {
dy = Math.abs(initPosition-this._y);
content_mc._y = Math.round(dy*-1*moveVal+initContentPos);
};
};
scrollSlider.onMouseUp = function() {
stopDrag();
delete this.onMouseMove;
};
btnUp.onPress = function() {
this.onEnterFrame = function() {
if (content_mc._y+speed<contentMask._y) {
if (scrollSlider._y<=top) {
scrollSlider._y = top;
} else {
scrollSlider._y -= speed/moveVal;
}
content_mc._y += speed;
} else {
scrollSlider._y = top;
content_mc._y = contentMask._y;
delete this.onEnterFrame;
}
};
};
btnUp.onRelease = function() {
delete this.onEnterFrame;
};
btnUp.onDragOut = function() {
delete this.onEnterFrame;
};
btnUp.onRollOut = function() {
delete this.onEnterFrame;
};
btnDown.onPress = function() {
this.onEnterFrame = function() {
if (content_mc._y-speed>finalContentPos) {
if (scrollSlider._y>=bottom) {
scrollSlider._y = bottom;
} else {
scrollSlider._y += speed/moveVal;
}
content_mc._y -= speed;
} else {
scrollSlider._y = bottom;
content_mc._y = finalContentPos;
delete this.onEnterFrame;
}
};
};
btnDown.onRelease = function() {
delete this.onEnterFrame;
};
btnDown.onDragOut = function() {
delete this.onEnterFrame;
};
btnDown.onRollOut = function() {
delete this.onEnterFrame;
};
if (contentHeight<maskHeight) {
scrollSlider._visible = false;
btnUp.enabled = false;
btnDown.enabled = false;
} else {
scrollSlider._visible = true;
btnUp.enabled = true;
btnDown.enabled = true;
}
};
scrolling();
2 Scroll Buttons On One Page, Only One Of Them Works
the problem:
while pressing on a button, the text should scroll down continuously while pressing. the problem is that it only scrolls down one line at a time while pressing, so you have to keep clicking instead of keep on press.
the problem only occurs when there are 2 sets of scroll buttons (first for dynamic text field 1 and second for dynamic text field 2). if there is only one, then it works fine. when there are both sets, only the second one works and the first does not. (i deleted the code for the second set of scroll buttons, and when i do that, the first set now scrolls fine while pressing.)
any clue as to why this is happening? here's the code:
TIA,
decibelle
//SCROLL ARROWS1
up_btn.onPress = function(){
press1 =true;
move1 = -1;
play_text.scroll = play_text.scroll + move1
};
up_btn.onRelease = function (){
press1 = false;
};
down_btn.onPress = function(){
press1 =true;
move1 = 1;
play_text.scroll = play_text.scroll + move1
};
_root.onEnterFrame = function(){
if (press1 ==true){
play_text.scroll = play_text.scroll + move1
}
}
down_btn.onRelease = function (){
pressing = false;
};
//SCROLL ARROWS2
up2_btn.onPress = function(){
pressing2 =true;
movement2 = -1;
play2_text.scroll = play2_text.scroll + movement2
};
up2_btn.onRelease = function (){
pressing2 = false;
};
down2_btn.onPress = function(){
pressing2 =true;
movement2 = 1;
play2_text.scroll = play2_text.scroll + movement2
};
down2_btn.onRelease = function (){
pressing2 = false;
};
_root.onEnterFrame = function(){
if (pressing2 ==true){
play2_text.scroll = play2_text.scroll + movement2
}
}
Loading Scroll Mc Into Level Works, But Not Into Target Help
Hi everyone,
There has got to be a simple solution to my dilemma.
I have been literally searching for days with no luck. Finally I decided to give in to posting and be helped by the "experts."
Here is what I am trying to do:
I have an mc called "view" that is masked and two buttons for up and down scroll. The scroll works fine in the main timeline by itself. I exported the mc to an .swf called
scrollmc. Now, in the main timeline of my site, I've got a button with the code:
on (release) {
loadMovie ("scrollmc.swf", _root.myTarget);
}
this code disables the scroll buttons. BUT when I load using level, the scrolls work but it is by itself somewhere on top of the screen. If anyone knows this, please reply. Thanks in advance.
samantha
One Works And One Wont..arghh (dropdown/scroll)
One my flash website I have one page with a scroll downbar and a drop down menu. The drop down is basic when you drop to the one you want and click it opens another htlp page popup window. The scroll bar is for text due to the length I had to use it or the page would be to long. What is happening is the drop down menu worked great until I added the scroll bar and if I remove the scroll bar the the drop down works fine again. Why would there be an issue ides?
Help please.
Thanks
[F8] (CS3) Scroll MC Works When Set For FP6 But Not Greater, Worth Working On?
Hi all,
Happy Holidays. I'm a total noob and happy that this forum exists! Thanks first of all in advance for any help given.
Working in CS3. Making a text scroller (scrolling static text made into a MC, not dynamic text). I have code that I've downloaded from the resources area (thanks again!). I've managed to make the scrolling work when the Flash Setting is Targeted to Flash 6 player. I'd like to target this to Flash 8 player so that the text renders better.
1. Is this a waste of time b/c Flash automatically antialiases text with a mask and drag scroll for animation anyway regardless of 6 or 8?
2. If this isn't a waste of time and worth doing... how do I do it?
BTW the reason its not dynamic text is that there is a bit of formatting in the text that I want to keep.
3. And finally, this seems to stop too high in the mask. How do I adjust the code so that the bottom of the text hits the bottom of the mask when the scroll reaches the end?
File attached
I can live with what I have but I'd love it if this looked better.
Vertical Scroll Pan Class Almost Works Fine
I've built a scroll pane class that almost works.
Demo on this page with source code zip
Unfortunately it seems to be clipping a few pixels from the bottom of the "page" (the clip behind the "mask" window). I'm sure this is Flash doing a crap job of the math. Or perhaps it isn't.
Could someone take a look please as this is a nice and simple way to create home-made scroll-panes with all your own assets and without the 40-50k penalty of using a Flash component.
Here's the AS2 class that is instantiated on the timeline (you just hand over the MC names and how many pixels the arrow buttons make the page jump, it calculates the rest):
Code:
// Assigns a vertical scroll bar, MovieClips used must be of exact proportionate sizes
class YSlider{
// scroll bar track
var track:MovieClip;
// top cap of bar - a child of bar
var topCap:MovieClip;
// middle of bar - a child of bar - a 1px tall expandable MovieClip
var middle:MovieClip;
// top cap of bar - a child of bar
var bottomCap:MovieClip;
// scroll bar
var bar:MovieClip;
// the movable content behind the mask
var page:MovieClip;
// the window through which the page can be seen - align beforehand
var mask:MovieClip;
// move the bar and content up by their unit lengths
var topArrow:MovieClip;
// move the bar and content down by their unit lengths
var bottomArrow:MovieClip;
// the unit length of the page
var pageUnitLength:Number;
// the bar unit length by ratio to the page
var barUnitLength:Number;
// constraints
var bar_min_y:Number;
var bar_max_y:Number;
var page_min_y:Number;
var page_max_y:Number;
var track2PageRatio:Number;
// hack to deal with the page being shorter than the mask
var movable:Boolean = true;
var g:Object;
function YSlider(page:MovieClip, mask:MovieClip, track:MovieClip, bar:MovieClip, topCap:MovieClip, middle:MovieClip, bottomCap:MovieClip, topArrow:MovieClip, bottomArrow:MovieClip, pageUnitLength:Number){
this.page = page;
this.mask = mask;
this.track = track;
this.bar = bar;
this.topCap = topCap;
this.middle = middle;
this.bottomCap = bottomCap;
this.topArrow = topArrow;
this.bottomArrow = bottomArrow;
this.pageUnitLength = pageUnitLength;
bar["slider"] = this;
bar.onPress = function(){
this.startDrag(false, this._x, this["slider"].bar_min_y, this._x, this["slider"].bar_max_y);
}
track["bar"] = bar;
track["slider"] = this;
track.onPress = function(){
this["bar"]._y = _ymouse - (this["bar"]._height * 0.5);
if(this["bar"]._y > this["slider"].bar_max_y){
this["bar"]._y = this["slider"].bar_max_y;
}
if(this["bar"]._y < this["slider"].bar_min_y){
this["bar"]._y = this["slider"].bar_min_y;
}
this["slider"].setPage();
this["bar"].startDrag(false, this._x, this["slider"].bar_min_y, this._x, this["slider"].bar_max_y);
}
bar.onMouseUp = function(){
this.stopDrag();
}
bar.onMouseMove = function(){
this["slider"].setPage();
}
topArrow["slider"] = this;
topArrow.onPress = function(){
this["slider"].stepUp();
}
bottomArrow["slider"] = this;
bottomArrow.onPress = function(){
this["slider"].stepDown();
}
topArrow.useHandCursor = false;
bottomArrow.useHandCursor = false;
bar.useHandCursor = false;
track.useHandCursor = false;
bar._y = track._y;
setBarHeight();
}
function setBarHeight(){
var mask2PageRatio = Math.min((1.0 / page._height) * mask._height, 1.0);
var trackOperationalLength = track._height - middle._height - topCap._height - bottomCap._height;
var middleLength = trackOperationalLength * mask2PageRatio;
middle._yscale = (100 / middle._height) * middleLength;
topCap._y = 0;
middle._y = topCap._height;
bottomCap._y = topCap._height + middle._height;
bar_min_y = track._y;
bar_max_y = track._y + track._height - bar._height;
page_min_y = page._y - Math.max(page._height - mask._height, 0);
page_max_y = page._y;
track2PageRatio = (page._height - mask._height) / (bar_max_y - bar_min_y);
barUnitLength = pageUnitLength / track2PageRatio;
var currentMovable = page._height > mask._height;
if(currentMovable != movable){
movable = currentMovable;
bar.enabled = movable;
topArrow.enabled = movable;
bottomArrow.enabled = movable;
track.enabled = movable;
}
}
function setPage(){
var barmoved = bar._y - bar_min_y;
var pageMoved = barmoved * track2PageRatio;
page._y = page_max_y - pageMoved;
}
function stepDown(){
bar._y = Math.min(bar._y + barUnitLength, bar_max_y);
page._y = Math.max(page._y - pageUnitLength, page_min_y);
}
function stepUp(){
bar._y = Math.max(bar._y - barUnitLength, bar_min_y);
page._y = Math.min(page._y + pageUnitLength, page_max_y);
}
}
Button Scroll Works But Drag Bar Doesn't (Scrolling MC)
Hi there,
I followed a tutorial that enabled me to scroll an MC with buttons and a drag-able bar. The original tutorial was for a vertical scroll, but I changed everything Y to X and modified what I thought were the correct things, to convert it all to a horizontally scrolled MC, but alas, only the buttons work. The drag bar does a weird thing when you click it, and scrolls vertically and moves up on the stage. I have been experimenting for hours but my brain is squish. Can anyone pleeeaasse help me figure out what Im going wrong?
Here is a link to a page that shows the SWF, and you can download and please look at my FLA:
http://www.lucid-life.com/scroll-mc.html
Many many many thanks in advance,
Cheska
[F8] Flash Scroll Bar Issue, Works Then Doenst Work?
I am using this very simple flash tutorial on installing a scroll bar http://www.lukamaras.com/tutorials/g...component.html
I am able to create this with no problem in a flash file with just this scroller. But once I insert this into a flash website I am using (a modified template) the text shows up but the arrows on the scroller do not show up. I am thinking there is a conflict somewhere ... maybe with the items in my library?? Im not sure and really frustrated. I have attached two images of what the file looks like when its just the scroller .. (as you can see it looks great .. and it does work too) .. the the other image is when I have inserted that same exact file .. into my already created flash website..... this scroller seems so simple .. it literally takes 30 seconds to make.. Im not sure why it works when its in a file by its self and then when I follow those same steps in my flash website it will not work ..
anyone that can help Id be very grateful for your help.
Scroll Bar Component Issue - Works Locally But Not On Server
Hi,
I got scrollbar components in my movie that work locally but only appear as black outlines when viewed from our webserver?
I am preloading classes and components using the method of placing an instance of all library linkage items on frame 5 and exporting classes on the same frame.
I'll post a link or an fla if anyone cares to help me with this.
Thanks.
Flash Image Gallery Thumbnail Scroll Sometimes Works...
this is probably an easy fix but i am at odds... I built my gallery and import it a parent page (foo)... Sometimes the scroll of thumbnail scroll works... it is choppy.... Sometimes does not work at all.... When i view the movie outside of foo - it works beautifully... Any ideas how to troubleshoot this - i took it word for word from the tutorial...
Thanks!
How Do I Make .exe That Works Out Of A.swf And A_controller.swf?
I am really new to Flash. I have 2 questions:
1. I recorded a .ppt presentation with hotspots using CamStudio, which give me 2 swf files: a.swf and a_controller.swf. I am using SWFKit to create a standalone .exe. I cannot get it to work. If I add the a.swf first, the presentation would not stop on Hotspots. But if I add the a_controller.swf first, the presentation does not even start at all.
How can I solve this?
2. I have never used a Flash Editor before. I am not sure if I need it for this purpose. Is it possible to click on a Hotspot from Camstudio and open another .exe?
Thanks in advance for any help!
It Works But Does It Make Sense?
I got these buttons working pretty close to how I went them.
I would like to get it so the text doesn't select and screw the buttonMode state up.
I turned off select text icon butt hat jumping still occurs.
But really I'm ehre to find out if I'm using the best method to build buttons with Tweened animations?
I made the top of my one modular which is great and cuts down alot I have learned, but the Tweening at the bottom gets a little long.
Code:
import fl.transitions.Tween;
import fl.transitions.easing.*;
function butPosition(buttons:MovieClip, xPosition:Number, yPosition:Number, butMode:Boolean, butName:String):void
{
buttons.x = xPosition;
buttons.y = yPosition;
buttons.alpha = .75;
buttons.buttonMode = butMode;
buttons.buttText.buttonText.text = butName;
}
butPosition(b1, 10, 50, true, "Home");
butPosition(b2, 10, 70, true, "Services");
butPosition(b3, 10, 90, true, "Portfolio");
butPosition(b4, 10, 110, true, "Contact");
var inTween:Tween;
var outTween:Tween;
//BUTTON = b1
b1.addEventListener(MouseEvent.MOUSE_OVER, fadeIn1);
b1.addEventListener(MouseEvent.MOUSE_OUT, fadeOut1);
b1.addEventListener(MouseEvent.MOUSE_OVER, moveIn1);
b1.addEventListener(MouseEvent.MOUSE_OUT, moveOut1);
function fadeIn1(event:MouseEvent):void{
inTween = new Tween(b1,"alpha",None.easeNone,.75,1,.1,true);
}
function moveIn1(event:MouseEvent):void{
inTween = new Tween(b1.buttText.buttonText,"x",Strong.easeOut,10,20,.1,true);
}
function fadeOut1(event:MouseEvent):void{
outTween = new Tween(b1,"alpha",None.easeNone,1,.75,.1,true);
}
function moveOut1(event:MouseEvent):void{
outTween = new Tween(b1.buttText.buttonText,"x",Strong.easeOut,20,10,.15,true);
}
//BUTTON = b2
b2.addEventListener(MouseEvent.MOUSE_OVER, fadeIn2);
b2.addEventListener(MouseEvent.MOUSE_OUT, fadeOut2);
b2.addEventListener(MouseEvent.MOUSE_OVER, moveIn2);
b2.addEventListener(MouseEvent.MOUSE_OUT, moveOut2);
function fadeIn2(event:MouseEvent):void{
inTween = new Tween(b2,"alpha",None.easeNone,.75,1,.1,true);
}
function moveIn2(event:MouseEvent):void{
inTween = new Tween(b2.buttText.buttonText,"x",Strong.easeOut,10,20,.1,true);
}
function fadeOut2(event:MouseEvent):void{
outTween = new Tween(b2,"alpha",None.easeNone,1,.75,.1,true);
}
function moveOut2(event:MouseEvent):void{
outTween = new Tween(b2.buttText.buttonText,"x",Strong.easeOut,20,10,.15,true);
}
//BUTTON = b3
b3.addEventListener(MouseEvent.MOUSE_OVER, fadeIn3);
b3.addEventListener(MouseEvent.MOUSE_OUT, fadeOut3);
b3.addEventListener(MouseEvent.MOUSE_OVER, moveIn3);
b3.addEventListener(MouseEvent.MOUSE_OUT, moveOut3);
function fadeIn3(event:MouseEvent):void{
inTween = new Tween(b3,"alpha",None.easeNone,.75,1,.1,true);
}
function moveIn3(event:MouseEvent):void{
inTween = new Tween(b3.buttText.buttonText,"x",Strong.easeOut,10,20,.1,true);
}
function fadeOut3(event:MouseEvent):void{
outTween = new Tween(b3,"alpha",None.easeNone,1,.75,.1,true);
}
function moveOut3(event:MouseEvent):void{
outTween = new Tween(b3.buttText.buttonText,"x",Strong.easeOut,20,10,.15,true);
}
//BUTTON = b4
b4.addEventListener(MouseEvent.MOUSE_OVER, fadeIn4);
b4.addEventListener(MouseEvent.MOUSE_OUT, fadeOut4);
b4.addEventListener(MouseEvent.MOUSE_OVER, moveIn4);
b4.addEventListener(MouseEvent.MOUSE_OUT, moveOut4);
function fadeIn4(event:MouseEvent):void{
inTween = new Tween(b4,"alpha",None.easeNone,.75,1,.1,true);
}
function moveIn4(event:MouseEvent):void{
inTween = new Tween(b4.buttText.buttonText,"x",Strong.easeOut,10,20,.1,true);
}
function fadeOut4(event:MouseEvent):void{
outTween = new Tween(b4,"alpha",None.easeNone,1,.75,.1,true);
}
function moveOut4(event:MouseEvent):void{
outTween = new Tween(b4.buttText.buttonText,"x",Strong.easeOut,20,10,.15,true);
}
Any suggestions would be appreciated.
~reblis
How Do I Make A Loading Bar.. That Really Works.. And Not Just A Decoration
i wanna know how to make A loading bar..
so when people checking the swf..
the swf file will be loaded first .. so you see a progress bar,,
the swf movie starts only when the loading is completed,,
if been trying to figure out this loading bar issue for months..
stil didnt figured it out..
help me please...
Cant Make The Loader.close() Works
Im using a button to load a swf into stage and another to close the connection just to test the function and it keep showing me the progress of the download and call my oncomplete function. this is my external class
Code:
package
{
import flash.events.Event;
import flash.events.ProgressEvent;
import flash.display.Loader;
import flash.net.URLRequest;
public class file_loader
{
public var my_file_loader:Loader;
public function file_loader():void
{
this.my_file_loader = new Loader();
my_file_loader.contentLoaderInfo.addEventListener(Event.COMPLETE,on_file_loaded);
my_file_loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,check_progress);
}
public function on_file_loaded(evento:Event):void
{
trace("file loaded");
}
public function check_progress(evento:ProgressEvent):void
{
var loaded:Number = evento.bytesLoaded;
var total:Number = evento.bytesTotal;
var percent:Number = loaded/total;
trace(percent);
}
public function load():void
{
my_file_loader.load(new URLRequest("myfile.jpg"));
}
public function close():void
{
try
{
my_file_loader.close();
}catch(error:Error){}
}
}
}
The usage for the class is this
Code:
var my_file_loader:file_loader = new file_loader();
my_file_loader.load();
var my_button:MovieClip = this.button_onstage;
my_button.addEventListener(MouseEvent.CLICK,close_load);
function close_load(evento:MouseEvent):void
{
my_file_loader.close();
}
Help Everytime I Make A Button It NEVER Works
I am new to flash, but I got some of the basics sort of figured out. Right now my biggest issues are everytime I make a button it NEVER works. When I use behaviors instead of trying to do it myself then the links from the buttons just open on their own without any clicking. Does anyone have any clues, suggestions?
My other issue is I converted text into a movie clip to make a motion tween. When I hit play and watch the timeline it works great, but when I test the movie the motion tween isn't there. The text just pops up instead of a gradual fade in. Again, any clues?
CS3.....using Actionscript 2.0.....how Do I Make A Popup Window That Actually Works?
Iv'e been trying all types of code and am pulling my hair out......how do i go about making a javascript popup window that works in safari, as well as all the other browsers? Im getting this error when i try to use safari:
Safari doesn’t allow JavaScript to be used in this way.
I just want a simple javascript popup window thats not going to give me any type of problems...please. I have a button on my stage called StartSearch.
What code do i put in the actionscript? where do i place the actionscript? What code and where do i place the code in the html doc where the flash is embedded? Please help
Typer Effect Works... But Can't Make It Work As Function()
oh.. i created an mc with typer effect. it works by typing out the text in the dynamic text box that you want displayed, and then shows each letter one by one using onClipEvent (load) and onClipEvent (enterFrame) that is attached to an empty clip within the typer mc
I tried to create a function to do the same thing but i can't get it working.
Eventually what i want to do is create an array of different texts, and have it display one item, clear the box, and move on to the next. Then when it reaches the last array item, move on in the timeline (i.e. _root.gotoAndPlay(); )
i'll stick this code in here, but i also attached a sample file so you can see what i'm doing...
Code:
onClipEvent (load) {
g = _parent.txt; //txt is the variable name of the textfield which contains the text to be displayed
i = 0;
lastIndex = g.length;
_parent.txt = "";
}
onClipEvent (enterFrame) {
if (i<lastIndex) {
_parent.txt += g.substring(i, i+1);
i++;
}
}
//this was my function attempt, which resides on frame 1 of the typer mc
//
function write(T) {
T = this.displayTxt.text; // displayTxt is instance name of text field
g = T;
i = 0;
lastIndex = g.length;
this.displayTxt.text = "";
this.onEnterFrame = function() {
if (i<lastIndex) {
T += g.substring(i, i+1);
i++;
} else {
delete this.onEnterFrame;
}
};
}
//
this.write("typewriter text i want to type out");
//also i tried to call the function from the main timeline like this:
_root.typer2.write("typewriter text i want to type out, typewriter text i want to type out");
any help would be appreciated... thanks
and if anyone has an idea of how i can incorporate an array into this.. that would be great too..
Thanks in advance
Video/chat Works Locally, Help Me Make It External.
I have an app (chat/video) that works fine locally, I just don't know how to set it up on my external server.
I followed Giacomo Guilizzoni's tutorial at Macromedia:
http://www.macromedia.com/devnet/mx/..._comm_app.html
and it works well locally.
I don't mind paying for a FCS hosting service, but only if that's the only alternative.
Is there a way for me to host FCS locally and point to it from the chat/video app externally?
I appreciate you thoughts and replies.
FCS_Newbie
How I Do To Make A Site Design Works In 800* 600 And 1024 * 768 Screen..
Hi there i'm from venezuela i have two sites......... www.artmequid.com and www.galeriacarmelofernandez.com and i need to make this design avaible to 1024 * 768 screen layout, because now if you see the site's in that resolution (1024 * 768) it's very small..........
Other thing i made a preloaders for both proyect, but they load after than the file are loaded............ why??? what can i do? i like the preloader really show the loaded data from the beginning to the end.......... mmmmmmm other question....... i see the effects come slowly............ in the home page of the gallery when the pictures change if you touch the menu you will see that the animation come slowly.......... why? if something that i can do? (the menu are one swf and the home page its a called movie with the load movie ) Thanks for all! i really value your help...
--------------------------------------------------------------------------------
How To Make An On/Off Sound Button That Works For Multiple Streaming Audio?
Hello Flashmeisters!
I am having some trouble making a button that will resume the sound in my Flash Animation.
I have an animation that is spread over several Layers and several Scenes. I also have sound clips (mp3s) placed on different layers, in many different areas. I was able to make a button that when pressed stops all the sound by using this simple actionscript:
on (release) {
stopAllSounds();
}
My goal is to have a button so users can stop and resume streaming sound at any time throught the animation.
However I can't seem to make a button that after it stops the sound, when pressed again would resume the sound. I have seen some tutorials that explain how to stop and start a single audio file, but how can I make a button that will stop and resume multiple streaming audio files that are placed in several different places?
I made the script below up and was wondering if there is an existing simple actionscript code that would be similar to it that would work for when a button is pressed it would resume the sound?
on (release) {
PlayAllSounds();
}
Many thanks! And any help will be HUGELY apprecaited!
Marsy
Make A Movie Scroll In When One Button Is Clkd N Scroll Out When Another Is Clkd
ok heres the thing...
im fairly new to the whole flash thing, i can do the really basic stuff...
but theres one thing i cant get my head around...
on the site i am creating, i have a menu (6 buttons vertical)
on each button click it loads a different page...
i have the pages set to scroll in from the right in a movie...
what im wanting is that so when u click a different button (for a different page) it will scroll the page in view out again...and then sequencially scroll the page in question in...
(am i making any sense)
ive looked all across the forum and cant find anythign remotely relating to what im after...and also tutorials/user uploaded movies etc on this site and still nothing...
i know its possible because ive seen it done else where...
if anyone has any sites...or any example movies of what im talking about please could i see them...im in serious desperation here :S
Thanks...
Goa
How Do You Make A Scroll Bar?
you know where website have text and to the right of the text box it has a scroll bar to scroll through it, how do you make those in flash? I'm sure it's easy but i cant figure it out!
Anyone Know How To Make A Scroll Box
ok
Does anyone know how to make a scroll box that is similar to an HTML scroll box which displays info. What is the actionscript that is needed to be inputted for it to appear.
Thanks in advance
Can Anybody Help Me To Make This Scroll..
i need a set of movieclips scrollable at a time..and they needs to keep up the padding b/w those movieclips..
can nybody help me with a nice solution?
thanx in advance..
im attaching the fla with this post...
How Do I Make A Custom Scroll Bar
i want to be able to have a scroll bar (of my design and response) that scrolls through body text within a MC. is it as simple as embeding another MC with in my current (primary) movie-clip?
any suggestions would help.
\thanks
drew
HOW TO MAKE A SCROLL BAR IN FLASH?
Hi all!
I want to make a scroll bar in my flash screen. How can I do that??? Can any body help with the Code Snippet??? Its urgent
mAINA
Make Scroll Bar W/o Flash's
how would i do such a thing? and is there any way i can have a button and traget them to that scroll bar window..kinda liek i frames?
How To Make Movie Scroll
Hi,
How can i make my movie scroll, like we are doing it in our browser.
My movie makes a dublicateMovie command and run from _y=50
the next _y position is _y+=20; and so on until user press the button stop.
How can i make the scroll effect.
Thank you.
Eldar52
Can I Make The Right Scroll Bar Disappear?
I want ot get rid of the right scroll bar.
I found a lovely smooth scroller in the open source movies.
I use it and love it so publish my movies just under the size of the browser window so i do not need the browser's right or bottom scroll bars.
The bottom scroll bar disappears when not needed but the right scroll bar does not disappear. It stays there, only its blue bar disappears. This doesn't look that bad but it ruins the overall effect of my site. Can you help?
I Use flash mx and dreamweaver iv
N.B.
Maybe i could link to a swf from my index? This is the effect I want. i am left with only the top part of the browser but i have a problem with this.
If i link to it then try my flash link a window pops up asking me if i want to download the swf i am linking to.
I just want to go from page to page and back again using the back but if i use only swfs and load movie in actions the browser stays in the same movie.
Yours faithfully,
Christopher.
Can You Make Buttons Scroll?
Im trying to look for the most easiest way to scroll a list of pressable buttons. I cant figure out most of the UI compnents. I see the scrollbar, scrolls dynamic text and thats all I could see.
Check out my BGMP at my site...
http://www.geocities.com/royalrw
basically, when I get too much loops (buttons) to add, Im gonna have to either do something like "a next page" or a scroller...
hit me back with some ideas
Cheers
Want Help To Make Filmstrip Scroll
Dear Sir(s),
I would be much thankful to you if you could plzzzzzzzzzzz help me to make image scroller in a vertical filmstrip.
Thanks and have a good day.
Sajid
Could Someone PLEASE Tell Me How To Make This Text Scroll?
i've tried a million different things on my own, and sought help here with no luck.... PLEASE, can someone tell me how to make this text pane scroll??.... and i can't use external txt files.
i pulled the nec. essential elements from my original file and created a new sample file that is attached. i just need the text that displays in the "info" panel to scroll so the user can read all info contained.
PLEASE help......this is driving me absolutely crazy!!
thanks in advance
Please Help: How Do I Make An Area Scroll?
Hello,
I am quite new to Flash, very new to CS3 and have no idea about actionsript.
I am really quite desperate for some help, advice, anything, I spent the whole of yesterday looking for tutorials!
I have made a tab that when you put your mouse over, it plays a movie clip of the tab sliding out to reveal thumbnail pictures. The thing is, there are too many thumbnails to fit on the tab so I really want to make it scroll! I think I read on a message board yesterday that you can't put buttons into movie clips. Is that right because I want the thumbnails to link to certain frames in the flash file when they are clicked. If need be I can remove the movie clip and not have the sliding effect, if that makes sense.
I would very much appreciate anyone reading this to tell me if this will be too difficult to acheive for a newbie? I have attached the file if you would be so kind to check it out.
Many thanks,
Helen
[CS3] How To Make A Scroll Box For A Form
hey guys this is urgent!
im trying to make a form but there is to much content to fit on my stage so im trying to make a scroll box to fit inside my page where users can scroll down and fill in the seperate text fields for the form, plus I outlined the box's so users could see them, can anyone help to fit all these in a scrolling box?
please help, am really desperate as this is for a fairly big company in New Zealand...
Can't Make Text Scroll
I'm something of a beginner to Actionscript, so I followed EXACTLY the directions in Learning ActionScript 2.0 in Adobe Flash to create scrollling text areas in my Flash site. The text does not scroll at all, and, on one of the pages, only one line of the text is showing up. Can someone help, please?
How Do I Make Text Scroll
Hi,
I want to create scrolling text similar to this website: http://www.christianlouboutin.fr/
If you enter the english site and then click on 'biography' which is the photo frame you will see what I want to achieve.
There's a slider on the right hand side which you can move down or up to view the text. It seems realy smooth and just glides - if you get what I mean.
Can anyone point me in the right direction. Maybe a website with a tutorial for idiots or even book that I can go out and buy with really good examples on how to acheive this.
Any help/advice greatly appreciated.
Many thanks in advance
Michael
Trying To Make Some Books Scroll....
Trying to make some books scroll....Howdy.. im trying to make some book that i have scroll (vertically) within a specified spot. Im pretty much a newb at this still.. but does anyone have any ideas.. of the easiest way to go about doing this.
please and thank you.. i really need some help.. to finish up my webpage.
thanks in advance...
|