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




A Little Help With Loading Web Site Content With Button Click Please [renamed]



hi all! i'm getting closer to my finished site just a few final glitches to clear up. i have the main guts of the site load up and then when you click on a button i have action script that loads content upon release and the buttons stay put and the page loads up on the left hand side. http://www.freewebs.com/ex_iled/ however, i do have a page (left side) that i want to have load when the initial page loads up for the first time (the home page). now the buttons and the pictures stay put during all page transitions, okay? so no reloading of those.how do i get my home page (left side) to load at the same time as you first open the site and also to load if you were to press the home button without causing the buttons and the pics to reload again? sorry, if this is hard to understand. i know what the hell i'm trying to say, the question is do you understand what i'm saying!? lol! thanks!




View Complete Forum Thread with Replies

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

How'd They Do That? - Loading External Content With Transitions [renamed]
This is the site: http://www.void.pt/void.php?lng=en

the opening squence i suppose it's all just movie tweens between files, but how is this thing done, when you click a button, the middle screen/part of the site, has a transition effect, loads, and there is a new page! i know how to do the transitions, and the loading bar, but how do i exactly tell my button, where to load an external movie file!...

basically, i want it when somone goes to the site, the while site opens, there are transition effects, and three different movies open at three different spots on the site...just like it happens at www.void.com when you enter their site, they got the main window, and the botton right and left windows!

Please if someone could give me a helping hand on this i would really appriciate it!!!!

-AlBERT

How'd They Do That? - Loading External Content With Transitions [renamed]
This is the site: http://www.void.pt/void.php?lng=en

the opening squence i suppose it's all just movie tweens between files, but how is this thing done, when you click a button, the middle screen/part of the site, has a transition effect, loads, and there is a new page! i know how to do the transitions, and the loading bar, but how do i exactly tell my button, where to load an external movie file!...

basically, i want it when somone goes to the site, the while site opens, there are transition effects, and three different movies open at three different spots on the site...just like it happens at www.void.com when you enter their site, they got the main window, and the botton right and left windows!

Please if someone could give me a helping hand on this i would really appriciate it!!!!

-AlBERT

When You Click On A Button, The Button Grows Into A Large Box With The Content Inside
How in the world are people doing that?? Hopefully you know what I mean... and example would be right here. When you click on one of those boxes, you can open the "card" and then the white box grows into a larger box with the content inside. Is there a relatively simple way to do this?

*begging*

Entire Site Content Loading From One Txt File?
Hey,

Ive been looking into whether or not, it is possible to load the entirety of site content dynamically from a text file. I know, how to specifically choose and reference from one txt file to a dynamic text block. But, is there a way to have one huge file? That is to say, can I target certain things within a txt file?

Any help would be appreciated greatly.

Button Click To URL On Web Site?
I know this question has been asked a thousand time, but I have scoured and found no resolution.

I tried to use getURL to point to another page on my web site, without going out and querying a www. address. to no avail.

Anyone with the simple solution please?

Click Button To Open A Web Site
Dear all,

My button does not work. I have created a symbol (button) and change colour when mouse over and down. But how do I make it open the web site I want? I've tried to open Actions and give my button (whose name is Bos_last_button) a script saying getURL('http://www.mywebsite.com', '_blank');

What happens with this is that web page opens the url automatically which I do not want. Why? I've searched actions for another url script but getURL was what I found under Browser network.

Sometimes I also receive an output error saying "Statement must appear within on handler" and then my script. What's that?

/Bo

Update Flash Projector Content From A Web Site With A Button?
Hi there-

I'm using Flash CS3 (but not too familiar with AS3) to create a projector file for a USB memory stick to be distributed at a conference to all attendees. I'm looking for a way to update some of the content on the memory stick with the click of a button.

For example, a user plugs in the stick, clicks "update" and the projector file communicates with an online source (my server) to load an XML database, a text file, a directory of images, etc. dynamically rather than off of the stick.

It would be fantastic if clicking the button simply downloaded a file or directory and replaced a file on the memory stick. Is that possible? Anyone have any ideas?

Thanks so much!

Getting Dynamic News Content (HTML) Into A Flash Home Page [renamed]
ok i want to know if its possible to get this http://www.thoughtlessreason.com/cutenews/show_news.php

as the home page on this site

http://www.thoughtlessreason.com/fa

sorta like an iframe type thing, im sorta new to flash but i can get around i mean i did make that site and all

Getting Dynamic News Content (HTML) Into A Flash Home Page [renamed]
ok i want to know if its possible to get this http://www.thoughtlessreason.com/cutenews/show_news.php

as the home page on this site

http://www.thoughtlessreason.com/fa

sorta like an iframe type thing, im sorta new to flash but i can get around i mean i did make that site and all

Trying To Make A Web Site With Menu [renamed]
Alright, so I'm designing a site that has 4 parts (for the sake of explanation)

Part 1 is the menu which will be it's own .swf, which I would like to have align to the top center of the browser even if you resize the browser.

Part 2 is the content which I'd like to align to the center of the page, even when you resize the browser. This is also an .swf which corresponds with the menu.swf

Part 3 and 4 don't have to be .swf's, but are just graphics in the top right corner and the other in the bottom left that stay in the corner even when the browser is resized.

I have no idea where to start and am not sure if this is even possible. Any help is greatly appreciated.

Built Site On Mac, Looks Ok, On PC There Are Extra Boxes? [renamed]
I built my site through a Mac yet when I check the finished file through a PC, all these random white boxes appear around images and text. Where are they coming from? How do I avoid that?

Looking To Have Tutorial For Site Tested For Quality [renamed]
hey mods, or kirupa, just wondering,
is there any way for us to send you guys tutorials we have created for testing, then if you find them to have no errors be posted on this site, because i have created a pretty in-depth tutorial with .doc(tut), FLA(mx), and swf files.

so yeah, i want to know if you find any errors, and if you find it good enough for the site.

Site Doesn't Show Up In FF/Opera [renamed]
Quick issue. In IE the site shows up fine, in Firefox or Opera the site is there, no one can see it though.

Any ideas?

Thanks.

One More Question From New Guy - Aligning Art Elements In Site [renamed]
Hello
I have had some difficulty trying to align some of my art elements together up on my site.

I have done some searching and have discovered that a lot of it has to do with moving
elements in tenths of pixels ( Y:1.0 Y:8.2 )

though I seem to have fixed the majority of problems ( some still exist though)
I have prety muched noticed that when I test my flash movie (at 100 percent) things "appear" to be lined up, but if I zoom in to 200 percent I can tell that there not.

I guess what id really like to do is lock everything to a whole pixel snap, no more of moving things in fractions of a pixel, it seem crazy to spend 20 miniute to line up an art element!

Questions About Site Tracking And Customization [renamed]
HI,
i am creating an Php mysql database driven articles site but i have

facing some problems
so that i can't continue creating my site i will very thankfulll to any

body who answer my questions,My questions are on this link

http://information-world.110mb.com/index.html

any reply will be appreciated,
thanks

Creating A 4-sectioned Site With Transitions [renamed]
hi everyone!

i have to make a site consisting of 4 sections, inside these swf i want to have buttons that should load any other of the site's sections and do a transition between what is loaded and the next swf.

i've been working with AS3 for just 3 months and learning OOP as i go, kicking and screaming..
so yeah,,, what would be the structure to do something like this??

let's trip the light fantastic

Loading MC In Different Positions On Button Click
I need some help. Is there a way I can have a MC load in different positions when you click on a button? Not a external SWF a Movieclip.

Like this:

Button 1: Position 1
Button 2: Position 2

like that?

Loading A Txt File On A Click Of A Button..
Trying to load 5 seperate .txt files. One per button click, ..what is the easiest way of doing this?.

stop();
1year.onPress = function(){
loadVariables("1year.txt", 0);
gotoAndStop(15);
}
5years.onPress = function(){
loadVariables("5years.txt", 0);
gotoAndStop(16);
}
10years.onPress = function(){
loadVariables("10years.txt", 0);
gotoAndStop(17);
}
20years.onPress = function(){
loadVariables("20years.txt", 0);
gotoAndStop(18);
}
30year.onPress = function(){
loadVariables("30years.txt", 0);
gotoAndStop(19);
}
rollout.onRollout = function(){
gotoAndStop(14);
}

[CS3] Loading Text On Button Click
I must admit I am not a Flash Newbie...just a Flash designer (same thing right!)

Anyway, I finally am faced with the need to design a layout, where the user clicks a button, then below the button (I assume in a dynamic text box) a predetermined (not random) number appears.

Like: press button one, a 1 appears, press button two, the number 2 appears.

Real simple, but for a Flash designer (meaning I am not a code-guy) it is scary.

So I'm sure all you code-guys can do this in your sleep, with hands tied behind your back.

Can someone give me simple direction on how to do this...please

And please do not say something like...

gee. "just set the variable to this and do that" cause I wouldn't know how to do that.

Maybe if you all can help with this simple task, it will help me start to learn AS.

Oh, I'm using Flash CS3, AS 2.0

thanks.

John

Loading A Movieclip With The Click Of A Button
Hello everyone;

I've just picked a random template from templatemonster.com to illustrate what exactly I wish to achieve:

http://www.templatemonster.com/flash...tes/10627.html

If you look at that template, whenever you click on the main navigation buttons, the exiting animation of that page's content as well as the loading animation of the new page's content is consistent whether you were to work your way from the far left button to the right or vice versa.

What I have done is created 5 seperate movieclips and placed each one on a seperate layer. I have placed each consecutive movieclip one frame ahead of the previous movieclip so that the 5 keyframes resemble "5 steps" on the timeline. I have also created 5 buttons and added the gotoAndPlay behaviour to each button so that when the button it clicked, it jumps to the targeted frame and plays the movieclip that is there (I added the stop(); actionscript code at the end of each movieclip).

Here is my problem: If I'm on, say, the 3rd page and I want to go back to the 1st page, I don't see the "fade-out, fade-in" effect that I have created for the first movieclip, instead, the first movieclip substitutes the 3rd instantly without any animation. I know that the first movieclip's keyframe is before the 3rd page's keyframe on the timeline so it's jumping back but how can I make the movieclip play from the beginning?

In the file attached, only the first 2 links work, but it's sufficient to show you what I mean.

I hope someone can help, Many thanks

7arith

Movieclip Loading On Button Click
hi folks,

ive got a series of buttons that dynamically call text onto my page, and i also now have a movie clip that is a sliding door that i intend to use to close across the text area, load the text, and open again

Problem im having is that i cant get the movieclip of the door to play when a button is clicked.

I've got this code on the buttons:

on (release) {

_root.maindooranim.gotoAndPlay(2);

set("var", eval("var1") );
}

but im not sure why it ignores the root line and only loads the content

help!

What's A Good Site For Downloading Free Sounds? [renamed]
Hey, I'm not sure if this is the right category for my question, but in case it's not, don't get all butthurt about it I'm using Flash MX though

Does anybody know a good site for downloading sounds (e.g. for buttons or animation)? Free onces that is..

Thx

What's A Good Site For Downloading Free Sounds? [renamed]
Hey, I'm not sure if this is the right category for my question, but in case it's not, don't get all butthurt about it I'm using Flash MX though

Does anybody know a good site for downloading sounds (e.g. for buttons or animation)? Free onces that is..

Thx

Loading Dynamic Text From Button Click
Hey folks...in the Flash-based website I'm designing, I've got a series of navigation buttons (imported from Fireworks) and a dynamic text area. I'm trying to get an external text file to load into that text area when you click on a certain button. Loading text from a file in and of itself is not a problem, because I've got a text file that loads into the text area when the page is intially loaded. My intuition tells me that I need to use the "loadVariable" action on the button (either on Press or Release), and I've tried this, but with no success. What am I missing? Thanks much!

-Scot

Loading Movie Clip On Button Click
I'm trying to figure out how to load a movie clip when you click a particular button. Any help is appreciated!

Scot

Loading An External Swf File On A Button Click
How do i load an external flash movie into a current running movie without opening it in a movie clip. It should be triggered on a moouse click event.
by "without opening it in a movie clip" i mean not placing the movie clip on the time line. It should be script generated.

Help With Loading External Swf And Viewing Them On Button Click...?>>
Hi All,

I have a problem with loading external swf. I have a couple of SWF in a server (LAN server). I can load the swf using loadMovie, but it takes a lot of time because its first of all over LAN and the size of the swf is quite large, say 120 MB eg.

Is there any way I can preload the loading of swf? Actually there is a loading video which takes around 10 seconds or so, and a main index page where a user can decide to choose a section. I wish to preload the swf's during this 10 seconds. can i?

Can anyone give me an easy loadMovie link? Im not so good at it.

Thanks in advance.

Regards
Roshan

[MX04] Loading Different Text File On Button Click
Hi i have a dynamic text box which i have loaded a text file into with the following code:


Code:
myData = new LoadVars();
myData.onLoad = function(){
news_txt.htmlText = this.content;
};
myData.load("news1.txt");
stop();
that works fine, but now i have a button (called next_btn) which i want to change the loaded file displayed when i click on it.

i tried adding this code:

var current = 1;
next_btn.onRelease = function() {
current += 1;
myData.load("news" + current + ".txt");
};

hoping it would load in my next file called news2.txt and then news3.txt etc...
but nothing happens when i click on the button.
what have i done wrong?

Loading Two Swf's Next To Each Other [renamed]
ok wow!! i need HELP big time with some stuff! first of all..im trying to load an .swf movie (or file which ever it is) into my main movie...well the way im doing that is by clicking a button and then the movie loads...then im wanting to be able to click another button and load a different movie BUTTTT when i do this right now the second button's movie loads right over the first buttons movie!! what do i do?!?


also im wanting to make a text scroller with JUST the slider. how can i go about this?

p.s.
would appreciate just verbal help b/c i would like to try to do this without using someone elses stuff ...if thats ok...?!

Loading Two Swf's Next To Each Other [renamed]
ok wow!! i need HELP big time with some stuff! first of all..im trying to load an .swf movie (or file which ever it is) into my main movie...well the way im doing that is by clicking a button and then the movie loads...then im wanting to be able to click another button and load a different movie BUTTTT when i do this right now the second button's movie loads right over the first buttons movie!! what do i do?!?


also im wanting to make a text scroller with JUST the slider. how can i go about this?

p.s.
would appreciate just verbal help b/c i would like to try to do this without using someone elses stuff ...if thats ok...?!

External Content Loader With Multiple Content Types (trouble Loading Graphics)
Hey all!

I am yet another new project. Our flash designer here isn't a big AS guy, and asked me to write a reusable class so that he can load a variety of content types using minimal amount of code on his part. It's also going to be the main component piece in a larger external content player once I'm done with the class itself, so I am making the loading functions into public methods of the loader object than can be called from a button, etc.

I have the code for the text and html parts working (although I can't get stage.width and stage.height to work in the class or from the frame).

The problem I have is that I can't get the graphics content to load (the swf/pic content). Could you please check my code and tell me what I'm missing? I'm sure it's something simple, like it always is.

thanks a million!

-Fish


-----------------------------


ActionScript Code:
package
{
   
    /**
    * External Multimedia Loader Class
    * @author $(DefaultUser)
    * Add new MultiLoader object and insert media type (all lowercase) and object path to control initial loaded object
    * To load a new object, call the MultiLoader.load* methods (loadText, loadPic, loadSwf, or loadHtml as appropriate), passing the path to the external file.
    */
   
    import flash.display.*;
    import flash.events.*;
    import fl.transitions.*;
    import fl.transitions.easing.*;
    import flash.net.URLLoader;
    import flash.net.URLRequest;
    import flash.text.TextField;
   
    public class MultiLoader extends MovieClip
    {
        private var media:String;
        private var path:String;
        public var textObj:TextField = new TextField;
        public var picObj:MovieClip = new MovieClip;
        public var swfObj:MovieClip = new MovieClip;
        public var htmlObj:TextField = new TextField;
        private var objLoader:Loader = new Loader();
        private var objType:String;
        private var textLoader:URLLoader = new URLLoader();
       
       
       
        public function MultiLoader(mediaType:String,objPath:String)
        {
            media = mediaType;
            path = objPath;
           
            if (media == "text" || media == "TEXT" || media == "Text")
            {
                loadText(objPath);
            }
            else if (media == "pic" || media == "PIC" || media == "Pic")
            {
                loadPic(objPath);
            }
            else if (media == "swf" || media == "SWF" || media == "Swf")
            {
                loadSwf(objPath);
            }
            else if (media == "html" || media == "HTML" || media == "Html")
            {
                loadHtml(objPath);
            }
            else
            {
                trace("ERROR: Media type not supported. Media type must be 'text', 'pic', 'swf', or 'html'.");
            }
        }
       
        public function loadText(txtPath):void
        {
            objType = "text";
           
            if (this.numChildren > 0)
            {
                this.removeAllChildren();
            }
           
            this.addChild(textObj);
            this.textLoader.load(new URLRequest(txtPath));
            this.textObj.wordWrap = true;
            this.textObj.multiline = true;
            this.textLoader.addEventListener(Event.COMPLETE, addTextContent);
            //this.textObj.width = this.width;
            //this.textObj.height = this.height;
        }
       
        public function loadPic(picPath):void
        {
            trace("loadPic started");
           
            objType = "pic";
           
            if (this.numChildren > 0)
            {
                this.removeAllChildren();
            }
           
            this.addChild(picObj);
            this.objLoader.addEventListener(Event.COMPLETE, addObjLoader);
            this.objLoader.load(new URLRequest(picPath));
           
            trace("loadPic completed");
        }
       
        public function loadSwf(swfPath):void
        {
            trace("loadSwf started");
            objType = "swf";
           
            if (this.numChildren > 0)
            {
                this.removeAllChildren();
            }
           
            this.addChild(swfObj);
            this.objLoader.addEventListener(Event.COMPLETE, addObjLoader);
            this.objLoader.load(new URLRequest(swfPath));
           
            trace("loadSwf completed");
        }
       
        public function loadHtml(htmlPath):void
        {
            objType = "html";
           
            if (this.numChildren > 0)
            {
                this.removeAllChildren();
            }
           
            this.addChild(htmlObj);
            this.textLoader.load(new URLRequest(htmlPath));
            this.htmlObj.wordWrap = true;
            this.htmlObj.multiline = true;
            this.textLoader.addEventListener(Event.COMPLETE, addTextContent);
        }
       
        private function removeAllChildren():void
        {
            if (objType == "pic")
            {
                this.picObj.removeChild(objLoader);
            }
            else if (objType== "swf")
            {
                this.swfObj.removeChild(objLoader);
            }
            else
            {
                trace("objType != 'pic' or 'swf.' objType = '" + objType + "'.");
            }
           
            while ( this.numChildren > 0 )
            {
                this.removeChildAt(0);
            }
        }
       
        private function addObjLoader(event:Event):void
        {
            trace("addObjLoader started");
           
            if (objType == "pic")
            {
                trace("trying to load pic");
                this.picObj.addChild(this.objLoader);
                this.picObj.objLoader.removeEventListener(Event.COMPLETE, addObjLoader);
            }
            else if (objType== "swf")
            {
                trace("trying to load swf");
                this.swfObj.addChild(this.objLoader);
                this.swfObj.objLoader.removeEventListener(Event.COMPLETE, addObjLoader);
            }
            else
            {
                trace("ERROR: Cannot add object loader. The 'objType' variable does not contain correct media type. The function 'addObjLoader' should only be called when objType is 'pic' or 'swf'. In this case, objType is '" + objType + "' .");
            }
           
            trace("addObjLoader completed");
        }
       
        private function addTextContent(event:Event):void
        {
            if (objType == "text")
            {
                this.textObj.text = event.target.data as String;
                this.textLoader.removeEventListener(Event.COMPLETE, addTextContent);
            }
            else if (objType == "html")
            {
                this.htmlObj.htmlText = event.target.data as String;
                this.textLoader.removeEventListener(Event.COMPLETE, addTextContent);
            }
            else
            {
                trace("ERROR: Cannot add text content. The 'objType' variable does not contain correct media type. The function 'addTextContent' should only be called when objType is 'text' or 'html'. In this case, objType is '" + objType + "' .");
            }
        }

    }
   
}

I Click On A Button , A Line Pops Up Under The Button I Click On A Different Button..
anyone know how to make this work?

this is what i want , when i click on a button a want a line to pop up under the button then when i click on another botton , i want that same line to move under the new button . if some1 could do a very basic one and put the .fla file that would be perfect. thanx

[fmx] Problems With Loading Into A MovieClip Via A String [renamed]
Alright, I know this is a mess, please forgive me.
I'm trying to get it to load into one of the movies that its creating but it doesn't seem to like the string, if I manually enter _root.holder_mc.mc_0 it works fine.

Any ideas?


Code:
#include "com.qlod.LoaderClass.as"
var depth = 0;
var myLoader = new com.qlod.LoaderClass();
var picPath = "";
var pics = ['winterrangep1.jpg',
'winterrangep2.jpg',
'winterrangep3.jpg',
'winterrangep4.jpg',
'winterrangep5.jpg',
'winterrangep6.jpg'];
var picText = [''];
var picCount = _root.pics.length - 1;
var objIndex= 0;
var nextX = 265.4;
var nextY = 293.9;
var prevX = 0;
var prevY = 297.4;
MovieClip.prototype.loadObj = function (file, i) {
if (file.length) {
trace(i);
objWhereToLoad = "_root.holder_mc.mc_"+i;
objWhereToLoad = objWhereToLoad.toString();
trace(objWhereToLoad);
myLoader.load(objWhereToLoad, file);
var mc_loader = _root.attachMovie("loader", "mc_loader", 4);
mc_loader._x = nextX-mc_loader._width/2;
mc_loader._y = nextY;
mc_loader.loadBar.onLoadProgress = function(loaderObj) {
this._xscale = loaderObj.getPercent();
trace(this + ' Progress: ' + loaderObj.getPercent());
};
mc_loader.loadBar.onLoadComplete = function(success, loaderObj) {
removeMovieClip(mc_loader);
current_index++;
load****();
trace(this + ' Complete');
};
myLoader.addListener(mc_loader.loadBar);
} else {
trace(this + ' No Image to Load');
}
};
var holder_mc = _root.createEmptyMovieClip("holder_mc", _root.depth++);
current_index = 0;
load**** = function () {
//var mc = loadMovie(""+pics[current_index]+"", holder_mc["mc_"+current_index]);
loadObj(pics[current_index], current_index);
if (last_index == current_index) {
break;
}
var last_index = current_index;
};
load****();
for (i=0; i<pics.length; i++) {
holder_mc.createEmptyMovieClip("mc_"+i+"", depth++);
}

Loading Random Background Problems [renamed]
I am looking for someone skilled with Flash, a Wizard hopefully...

I have been trying to create a .swf that loads a Random background image (like the one on Kirupa's MX tutorial on this site) ... and my skills are just too insuficient.. I got it working but the images loads in sequence too fast and my general composition and work is kinda messy...

Is there someone here who is interested in helping out ?

The project is for our website, we are a non-commercial gaming clan, and alot of programmers, but none of us have any serious Flash experience. We are able to advertise/link back to anyone who might wanna help us out.

Contact me on email: therseus@gmail.com

Loading An Image Into A MovieClip, Then Into BitmapData [renamed]
Hello,

I am trying to load an image into a movieclip and then draw the contents of the movieclip to a bitmapData object. Below is some sample code.


Code:
target.jpg_mc.loadMovie(url);
target.createEmptyMovieClip("loader_mc", 100);
target.loader_mc.bmc = target.jpg_mc; // movieclip where to load original image
target.loader_mc.tmc = target.bmp_mc; // movieclip with smoothed image
target.loader_mc.onEnterFrame = function(){

bl = this.bmc.getBytesLoaded();
bt = this.bmc.getBytesTotal();
if (bl >= bt && bt > 4 && this.bmc._width > 0 && this.bmc._height > 0){
//target._parent._visible = true;

this.bmc._visible = false;

var bitmap = new BitmapData(this.bmc._width, this.bmc._height, true);
this.tmc.attachBitmap(bitmap, 100,"auto", true);
bitmap.draw(this.bmc);

Stage.addListener(target);

target.gotoAndPlay("in");
this.removeMovieClip();
}
}
For some reason it always draws a white box rather than the image. Has anyone ever seen this happen with the bitmapData class?

Thanks for any help!

Wade

[fmx] Problems With Loading Into A MovieClip Via A String [renamed]
Alright, I know this is a mess, please forgive me.
I'm trying to get it to load into one of the movies that its creating but it doesn't seem to like the string, if I manually enter _root.holder_mc.mc_0 it works fine.

Any ideas?


Code:
#include "com.qlod.LoaderClass.as"
var depth = 0;
var myLoader = new com.qlod.LoaderClass();
var picPath = "";
var pics = ['winterrangep1.jpg',
'winterrangep2.jpg',
'winterrangep3.jpg',
'winterrangep4.jpg',
'winterrangep5.jpg',
'winterrangep6.jpg'];
var picText = [''];
var picCount = _root.pics.length - 1;
var objIndex= 0;
var nextX = 265.4;
var nextY = 293.9;
var prevX = 0;
var prevY = 297.4;
MovieClip.prototype.loadObj = function (file, i) {
if (file.length) {
trace(i);
objWhereToLoad = "_root.holder_mc.mc_"+i;
objWhereToLoad = objWhereToLoad.toString();
trace(objWhereToLoad);
myLoader.load(objWhereToLoad, file);
var mc_loader = _root.attachMovie("loader", "mc_loader", 4);
mc_loader._x = nextX-mc_loader._width/2;
mc_loader._y = nextY;
mc_loader.loadBar.onLoadProgress = function(loaderObj) {
this._xscale = loaderObj.getPercent();
trace(this + ' Progress: ' + loaderObj.getPercent());
};
mc_loader.loadBar.onLoadComplete = function(success, loaderObj) {
removeMovieClip(mc_loader);
current_index++;
load****();
trace(this + ' Complete');
};
myLoader.addListener(mc_loader.loadBar);
} else {
trace(this + ' No Image to Load');
}
};
var holder_mc = _root.createEmptyMovieClip("holder_mc", _root.depth++);
current_index = 0;
load**** = function () {
//var mc = loadMovie(""+pics[current_index]+"", holder_mc["mc_"+current_index]);
loadObj(pics[current_index], current_index);
if (last_index == current_index) {
break;
}
var last_index = current_index;
};
load****();
for (i=0; i<pics.length; i++) {
holder_mc.createEmptyMovieClip("mc_"+i+"", depth++);
}

Loading Random Background Problems [renamed]
I am looking for someone skilled with Flash, a Wizard hopefully...

I have been trying to create a .swf that loads a Random background image (like the one on Kirupa's MX tutorial on this site) ... and my skills are just too insuficient.. I got it working but the images loads in sequence too fast and my general composition and work is kinda messy...

Is there someone here who is interested in helping out ?

The project is for our website, we are a non-commercial gaming clan, and alot of programmers, but none of us have any serious Flash experience. We are able to advertise/link back to anyone who might wanna help us out.

Contact me on email: therseus@gmail.com

Link Button To Url [renamed]
hi guys.
i have a button MC.

question, how i can do that when i click the button go to www.ventura.com.do???

look the code

Code:
this.boton_mc.onRollOver = function() {
boton_mc.gotoAndPlay("over");
}
this.boton_mc.onRollOut = function() {
boton_mc.gotoAndPlay("out");

}

Button Question [renamed]
hi,

i am new at ths forum, but istill know how to use flash, but not too much in actionscript.

Thus, i have a problem that i cant solve.

I have a button that is actually a MC but it performs a function as a button(its more flexible whaen it is a MC).
So i have a script written in "Scence 1" for the button on an empty layer in a last keyframe which works. Here is the script:

this.app_mc.onRollOver = function() {
app_mc.gotoAndPlay("_over")
}

this.app_mc.onPress = function() {
app_mc.gotoAndPlay("_hit")
}

this.app_mc.onRollOut = function() {
app_mc.gotoAndPlay("_up")
}


AS you see "app_mc" is my MC button . Noe in my firs part of my script it goes to the rite frame, preformes the rite function but it stops at the end of "_over" , but i want it to repeat again from that frame.

Please i need help in doing that i can't fgure out how.

P.S. I tried going in to the "app_mc" itself and try an "if" tatment or this.app_mc.gotoAndPlay("_over"); , but it didn't work. Please help SOS.

[F5]Button Question [renamed]
i new to actionscript and am not sure where to begin so i will explin what i would like to do.
i have a myspace site that i have created a div overlay with...<a href="www.myspace.com/li0id" target="_blank">myspace page</a>

i have created a new layout for it using psp9 and made an iPOD nano image...

href="http://img.photobucket.com/albums/v179/li0id/iPOD.jpg" target="_blank">iPOD</a>

now what i would like to do is use actionscript so when you click on the menu button a image wil pop up in the ipod screen and when u click the play button something else will pop up

thanmks in advanced

Click To Activate Content In IE7...the Best Way Around?
Has anyone found the best way around this for a novice HTML person?

Click To Activate To Use This Content?
hi there,

i got another question for you flash guru that you might be able to help me :D

in IE there is this box around my flash and i have to click it before everything else work. how can i solve this problem??

cheers,

Problems With GetURL Targeting - Loading Into _self [renamed]
Hi!

I'm having a problem using getUrl, can anyone pleeease help??

I've written my own code and used code from here:

on (release) {
getURL("http://www.kirupa.com", "_blank");
}


Everything works fine while testing in Flash, but if you try to load a page into "_self" whilst in a browser window, nothing happens. I'm sure this is something really simple I've missed, but what???

The code I'm using is from a function and goes like this...

//release instructions from function
mc.onRelease = function() {
this.gotoAndStop("down");
this.btnMask._x = btnOut;
getUrl (link, "_self");
}

//function call
btnMC1.onEnterframe =
function() {
menuControl(this, "http://www.google.co.uk")
};

Everything's working fine, except loading pages into _self. Can anyone please help??

Cheers in advance!!

[MX2004]Button Problems? [renamed]
WHY DON'T HELP ME ? WHY ????????
Plese help me !

I give you my *FLA and fix it to me !
http://99b1.net/download/index.zip

I want the navigator stop when I put mouse on the button and can click all buttons in the navigator but I can't do that !

Plese help me ! I need it quickly ! Thanks

Sequence After Button Press [renamed]
hi flash guru's

working on my new site and have a navigational issue. i've uploaded just the basic navigational elements to keep it simple here:

http://hamptondowson.com/example/lay...RotateTest.swf

if you click on the colored squares, they rotate and the main content changes accordingly. it seems that this motion doesn't always go smoothly on many machines as two things happening at once.

what i'd like is for a user to click a button, the squares rotate and THEN the content annimates to next section. as opposed to both rotation and content annimation happening at once.

here's the FLA if anyone would be so kind as to offer me a solution:
http://hamptondowson.com/example/lay...RotateTest.fla

the main issue is obviously keeping motion nice and smooth so if my scripts could be streamlined, please advise.

thank you very much
doug

Button Problem With Javascript [renamed]
Well folks....

btn_Up.onRelease = function() {
getURL("javascript:Launch('http://www.kirupa.com', 400, 300)");
};

That button must launch a page but dont do it.... why ??
please i know it's simple... but i dont know about AS.-....

Thanks...

[MX2004]Button Problems? [renamed]
WHY DON'T HELP ME ? WHY ????????
Plese help me !

I give you my *FLA and fix it to me !
http://99b1.net/download/index.zip

I want the navigator stop when I put mouse on the button and can click all buttons in the navigator but I can't do that !

Plese help me ! I need it quickly ! Thanks

[AS2] Drag - Pan - Click To Zoom XML Content
Hi,

An example of creating a Drag and Click to Zoom navigation system. Where content loads into one large movieClip that is scaled up and positioned with a mouse click. It uses mouse listeners to provide mouse functionality in the parent movieClip without destroying any button events in loaded content. I was interested in working out multiple button event handling in AS2 as well as creating a drag and zoom navigation system for a website I am currently building. Content can be dragged around in both a scaled down and scaled up state. Content can either center in the screen or be positioned. The example also uses custom cursors to provide interface feedback when using mouseListeners, which do not trigger the built in cursor handling in Flash. The custom cursors only run when the content is scaled down. I turn them off when the content is scaled up to allow for interaction with the externally loaded swfs etc.

Updated 10 Jan, 2007: Bug fixes, shift to using tweenlite for all tweening. I found a subtle bug with mcTween when two tweens were operating on one object at the same time. Also implemented a navigation widget version, where a small widget mimics the layout of the main content. Main content can be navigated via this widget.

To scale down from a scaled up state, you need to double click.

Content is loaded in via XML and is laid out via either a crude grid making function or pulls in layout information from the XML file.

You can have a look at the file here: http://www.noponies.com/dev/slidernav/

And get the source files here: Source Files (Flash 8, Flash CS3)

Requires TweenLite http://www.tweenlite.com

I built it for specific purpose, but there may be stuff that is useful in there for everyone else. Hopefully there are enough comments in the script for you to make any edits. Let me know if its rubbish etc..

MouseEvent.CLICK & Loader.content
Ok, I've read up on this and I know adding MouseEvent.CLICK to Loader.content does nothing. I'm looking for an explanation, in code, as to how this is supposed to work then. I've tried


Code:
container.addChild( Loader.content );
container.addEventListener( MouseEvent.CLICK, handleClick );
I've tried


Code:
var swf:MovieClip = Loader.content as MovieClip;
container.addChild( swf );
container.addEventListener( MouseEvent.CLICK, handleClick )
;

I've tried a few other ways too, but nothing seems to be working, and I can't find this solution out there, so Please, Help!

thanks

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