Timeline Controlled By Explorer Address?
Hi!
I've got a question for all of you FLASH-masters out there.
I'm currently working on a website, based on ASP and a database. It loads the content on the page from a database.
Now to the problem. I've got a flash menu/image viewer at the top of the page. ( ex. When I klick on "About" the menu/movie clip shows an "About" image). The problem is that the website is based on only ONE page (default.asp) So, whenever I klick on a link, let's say "About" the page reloads and the About page is shown, BUT! the flash menu/movie is reloaded and moves back to the start of the timeline ( In this case the "welcome" image).
My question is: Is there a way to tell what part of the movie clip to be shown based on the explorer address, or is there another way around this problem?
I don't want to use frames on my website because then the scroller is "miss placed".
I hope I have explaind my problem fairly well, so you all can understan what the h*ll I'm talking about.
Thank you!
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 03-27-2006, 06:32 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
No Explorer Task Bar, Address Bar Or Buttons
Can anyone please tell me how to create a movie that is played in explorer without showing the Explorer task bar, address bar and buttons (i.e. Back, Forward, Stop, Refresh, Home, etc.)? Also, How can I prevent the user from resizing the window? Finally, how can I make the movie autoplay if I put it on a CD?
Strange Code Appears In I Explorer Address Bar.
I have the following code which I shamelessly cut and pasted into a swf file (I want it to open an html window of desired size, etc.):
here is the code:
on (release) {
getURL ("javascript:window.open('http://www.yourdomain.com/yourpage.html','windowName','width=400,height=160, top=0,left=0,toolbar=no,scrollbars=no,resizable=no ,menubar=no,status=no,directories=no,location=no') ; void(0);");
}
When I click the button I get:
javascript:window.open('http://www.yourdomain.com/yourpage.html'
in the address bar.
Why?
Chris :-)
Strange Code Appears In I Explorer Address Bar.
I have the following code which I shamelessly cut and pasted into a swf file (I want it to open an html window of desired size, etc.):
here is the code:
on (release) {
getURL ("javascript:window.open('http://www.yourdomain.com/yourpage.html','windowName','width=400,height=160, top=0,left=0,toolbar=no,scrollbars=no,resizable=no ,menubar=no,status=no,directories=no,location=no') ; void(0);");
}
When I click the button I get:
javascript:window.open('http://www.yourdomain.com/yourpage.html'
in the address bar.
Why?
Chris :-)
Load Movie Based On Explorer Address?
Hi!
I've got a question for all of you FLASH-masters out there.
I'm currently working on a website, based on ASP and a database. It loads the content on the page from a database.
Now to the problem. I've got a flash menu/image viewer at the top of the page. ( ex. When I klick on "About" the menu/movie clip shows an "About" image). The problem is that the website is based on only ONE page (default.asp) So, whenever I klick on a link, let's say "About" the page reloads and the About page is shown, BUT! the flash menu/movie is reloaded and moves back to the start of the timeline ( In this case the "welcome" image).
My question is: Is there a way to tell what part of the movie clip to be shown based on the explorer address, or is there another way around this problem?
I don't want to use frames on my website because then the scroller is "miss placed".
I hope I have explaind my problem fairly well, so you all can understan what the h*ll I'm talking about.
Thank you!
Help W. Timeline Controlled Mcs
I've been successful controlling my movie clips from the main timeline however I recently entered a text movie clip into the timeline and I cannot figure out for the life of me how to control the movie from the timeline. I can get it to play, but the movie stops there.
I've been using:
Code:
stop();
_root.gotoAndPlay("framelabel");
but with the text effect where it uses so much AS I dont know what to put to make it continue on to the next frame label when its completed.
Code:
stop();
//
textvar = textvar.split("");
//
this.letter_mc._visible = false;
//
numberOfLetters = 0;
Xsetter = this.letter_mc._x;
thisTimeline = this;
//
buildLetters = function () {
if (numberOfLetters<textvar.length) {
//
duplicateMovieClip(letter_mc, "letter_"+numberOfLetters, numberOfLetters+1);
//
thisTimeline["letter_"+numberOfLetters].shadow_txt_mc.textbox.text = textvar[numberOfLetters];
thisTimeline["letter_"+numberOfLetters].top_txt2_mc.textbox.text = textvar[numberOfLetters];
thisTimeline["letter_"+numberOfLetters].top_txt_mc.textbox.text = textvar[numberOfLetters];
//
thisTimeline["letter_"+numberOfLetters].shadow_txt_mc.textbox.autoSize = true;
thisTimeline["letter_"+numberOfLetters].top_txt2_mc.textbox.autoSize = true;
thisTimeline["letter_"+numberOfLetters].top_txt_mc.textbox.autoSize = true;
//
thisTimeline["letter_"+numberOfLetters]._x = Xsetter;
//
Xsetter += thisTimeline["letter_"+numberOfLetters].top_txt_mc.textbox._width;
numberOfLetters++;
//
} else {
clearInterval(letterInterval);
}
};
//
letterIntervel = setInterval(buildLetters, 110);
I've defied the pass variable and just freeformed my text in on the MC frame AS. if someone could help me figure out how to make this movie perhaps, onClipEvent.stop and go to the designated frame label I'd really appreciate it. Thanks!
Timeline Controlled By Curser
I am looking at trying to make the users curser control timeline action ie move the mouse left and right thus moving the timeline pointer left and right. Would there be tutorial on this. I cannot find one. Thanks.
Movie Timeline Controlled By Mouse Position.
I have no idea how to do this. What I want to be able to do is create a movie symbol with however many frames and have it controlled by the y position of the mouse on the stage. For instance, when the mouse is in the middle of the flash stage, the corresponding movie is in the middle of the timeline. The flash movie I want to create is 700x400 in dimension. Can anyone help me with this?
Creating A Cursor Controlled Scrolling Timeline
hey, could someone help me out, I wanna create a scrolling timeline, but I don't understand the code to make the timeline move faster or slower depending on where the mouse is. I understand how to advance the timeline using the mouseMove action, but I want the timeline to "float" I've seen it done alot, but I can't find a tutorial on how to do it. Thanks
Address Root Timeline From Loaded Swf
OK, I am a newbie at anything past the basics with Actionscript, so bear with me, please. Here is what Iam trying to do:
I have a movie where the start is a group of people, when you click on an individual, they get bigger and the others shrink and some text appears describing the selected person. The way that I am trying to do it is: The starting swf has the group, clicking on a person starts the playhead and the image fades out. The mouse event also loads a swf on the next level that has the selected person large and the others small. The loaded movie fades in as the level 0 movie plays and stops. The effect is very nice.
However, then I want to click on the now small figures and load the appropriate swf on another level and unload the one previous. I have placed buttons on the swf that gets loaded with the script to unload movie and go to a point on the level o movie where I have an action to loadmovie that corresponds to the particular person.
The first one works, but that's it. I can't seem to address the timeline of the level 0 movie (_root?) to start the playhead to move to the frame label where the action is.
I am trying it this way, because I don't want the different images to load until someone wants them to. The bitmaps are kind of big. I could just have them all in the same swf at different places on the timeline. That just seems so clunky to me.
Anyone with any suggestions? Sorry to go on so long.
Thank you.
How To Address The Main Timeline From The Loaded Movie?
Hi,
i got a movie loaded in my main timeline(_root) in the frame 20.
and i got a stop() action as well in the same frame. Am loading the movie at a level8. now, i want once the loaded movie is finished playing, i want the main timeline's playHead move to frame21.
so, what i did was, i written the code in last frame of the loading movie like this:
_root.gotoAndStop(21);
\this doesn't work.
__root.nextFrame();
\this too doesn't work.
can i use some sort of function, to sort my problem?
How To Address Main Timeline From The Loaded Movie?
Hi,
i got a movie loaded in my main timeline(_root) in the frame 20.
and i got a stop() action as well in the same frame. Am loading the movie at a level8. now, i want once the loaded movie is finished playing, i want the main timeline's playHead move to frame21.
so, what i did was, i written the code in last frame of the loading movie like this:
_root.gotoAndStop(21);
\this doesn't work.
__root.nextFrame();
\this too doesn't work.
can i use some sort of function, to sort my problem?
Help Slider To Control Timeline Doesn't Like Internet Explorer
I created (using someone elses open source fla) a zooming map that is controlled with a slider. The finished product works great in Firefox, Safari and Netscape on a Mac. It works okay in IE 5.2 on a Mac (you have to refresh your browser to make it work). But it doesn't work in IE for the PC. It works in FireFox on PC but you have to refresh.
You can look at the file at http://www.hawkart.com/slider-zoom-m...2_content.html
I've also put a link to the zipped fla file so you can look at the action script. It uses actionscript 1.0.
If anyone has any suggestions of what might be the problem, please let me know.
Internet Explorer And Flash - Freakin Explorer Bar
Okay, I'm pretty new at with Flash, and the whole actionscript/xml/xhtml stuff. When I upload my .swf to the web, I always get that explorer bar dropping bombs everytime I open the page. And I get it on just about every computer. Is there a special embed tag or some trick I'm missing to make that thing go away. Also, why do some sites automatically focus and others not. How do I do that?
MC Controlled By Buttons
hi
in my scene i got 7 buttons that play a headline for each, should disappear when next headline comes in.
every headline is a MC (MovieClip), assigned with instance name (u1, u2,...). this mc is a couple of frames long. on frame one i have a stop action on an empty keyframe. the fadein ani is from frame 2 - frame 21. on frame 21 i have a stop action. from frame 22 till endframe i have my fadeout ani.
in my scene, on each button, i have an action that tells my headline-mc s to play if currentframe == frame21, else stop (i.e.:to tell mc s to play fadein-ani / fadeout-ani).
somehow they don`t fadeout / disappear , makin me crazy
thanx 4 everything
Controlled Pop-up Windows
Can anyone tell me how I can open a url in a new window with its size controlled and without the toolbars?
How Are These Movies Controlled?
Hi
Could someone take a look at http://www.urchin.com/
You will see in the bottom left corner there is a flash movie that when you put your mouse over one of the titles say "corporate" it plays the movie associated to that title, and when you mouse off, it cycles through all the logos. This is the same for the other titles "Education", "Government" etc.
How would this be achieved, could someone please give me some help!
Controlled From Ext. File
Can I control the location of a movie clip from a text or xml file?
I know flash can get info from an ext. file but can it be controlled by one?
So in the ext. file u hav some think long the lines of – mc01 = x50 y250
If any can help it would be much appreciated
Cheers
Nav Controlled By Function()
Hi,
I'm trying to control the navigation of my latest site using a function to move the playhead to a specific frame on the main time line. I've followed a tutorial but the blasted thing doesn't work.
Anyone know what I've done wrong? I have 5 pages and have made sure all the buttons have been named correctly and so on.
The script I'm using is...
};
this.buttons.profile_mc.profile_btn.onRelease = function() {
gotoAndStop("profile");
};
this.buttons.products_mc.products_btn.onRelease = function() {
gotoAndStop("products");
};
this.buttons.offers_mc.offers_btn.onRelease = function() {
gotoAndStop("offers");
};
this.buttons.services_mc.services_btn.onRelease = function() {
gotoAndStop("services");
};
this.buttons.contacts_mc.contact_btn.onRelease = function() {
gotoAndStop("contact");
};
Cheers
Steve
Script Controlled FLV
I am currently working on a flash site with a talking head video. What I'm looking to do is when the video completes, to have that last frame of the video fade to the first frame with the video rewound and ready to play again when the user chooses. Is there any tutorials out there that anyone knows about? or any help would be very much appreciated. thank you. _w
Playlist Controlled Into Non-playlist Controlled?
Hi,
I have made a mp3 player based upon (but with my own design) this tutorial:
http://www.thegoldenmean.com/techniq...yer_v2_01.html
But as in my original design there is no room (or need) for a visual playlist, I want to get rid of it. I want my player to be completely controllable by these four buttons: prev/stop/play-pause/next, instead of having to double click in the playlist to enable playing of a song.
(Basically the player exists ONLY out of these four buttons, visually).
Is there some kind of standard/procedure/tutorial for turning playlist controlled mp3-players into button-controlled mp3-players?
Does anyone wanna give it a go? All tips would be appreciated as I have unsuccessfully tried it myself for ..many many hours now.
I've attached the .fla as well as a zipfile containing 3 other files (songList.xml.php, arrays.php, id3v2.php) which should be placed in a folder called "tracks" (in that same folder mp3 files should be place in order to test the player)
regards,
M.T.Pilot
(n.b. I used flash MX pro and actionscript 1.0 for this)
EDIT: attachments removed due to inactivity of this thread
Controlled Loop?
I know the most basic command in ActionScripts to keep my
Flash video from looping (stop();). Can I apply that command if I want
to end on a scene used previously in the movie (as in the example in
the
notes)? How does that work such that my movie doesn't stop after the
initial use of that scene and go no further?
Ideally, I would like to use the same scene as an opening and closing
sequence to my movie. However, after the second use, I would like to
have text saying "The End." Is there an if/then statement that defines
if this has played before or something?
Actionscript Controlled FLV
I am currently working on a flash site with a talking head video. What I'm looking to do is when the video completes, to have that last frame of the video fade to the first frame with the video rewound and ready to play again when the user chooses. Is there any tutorials out there that anyone knows about? or any help would be very much appreciated. thank you. _w
Keyboard Controlled Xs
I'm just making a quick flash movie with 3 large gray Xs in the center. I want to be able to press the number 1 and then the first X will light up. Then, if the number 1 is pressed again the X will turn back to gray. I would like to be able to do this for X 2 and 3 as well. So all independant. I would also like there to be a buzzer sound when pressed. I'm kinda looking for a judge panel type thing. But any hints as to what I need to do in action script would be great!
Key Controlled Navigation
I want to make an interface that can be controlled by the mouse or by the arrow keys - the only simlat to what I'm trying to achieve is the game Colin McRae.
Lets say I have 3 buttons. If I move my mouse on any of them it gets an mouse over effect.
What I want to do is to combine this with the arrow keys that should be able to jump between the buttons - and the one selected is in the "over" state - to select it I press return.
How on earth is this achieved?
Would be more than grateful on any tips or hints!
Also posted on actionscript.org without any luck.....
Thanks
/sput
Timer Controlled MCs?
I think this is very simple but I can't seem to produce the correct code. I have 5 mc's and I want them to rotate forward with swapDepth every 20 seconds or so. I have the swapDepth working but I need a way to tell the mc's to run there internal animation and swap to the front in timed sequence. (I dont want to use long tweens because obvioulsy that sucks)
Basicly every 2O seconds I would like the mc's to swaps depth to the front and play that mc's animation. Help?
-Agent C4
Vertical Pan Btn Controlled
Hi Team,
I am trying to make a background scroll vertically. The scrolling should be controlled by three buttons. Top, middle, and bottom, also with some easing. I have been trying to make it work with tweens but it seems to complicated. I looked at the following tutorial
http://www.kirupa.com/developer/flas..._image_pan.htm
and have been trying to modify it but with no luck. Does anyone know where I can find a tutorial for doing this please let me know. If you don't know what I am talking about, here is an example of what I am trying to create:
http://www.buscarov.com/
Thank you
BonWhis
One Button, Two MC's Controlled
I have one MC with the following AS:stop();
this.onEnterFrame = function() {
if (rewind == true) {
prevFrame();
}
}
_root.about_btn.onRollOver = function() {
rewind = false;
play();
}
_root.about_btn.onRollOut = function() {
rewind = true;
}This works fine. However, I want the button "about_btn" to also control a second MC, but flip the rewind properties, like so:stop();
this.onEnterFrame = function() {
if (rewind == true) {
prevFrame();
}
}
_root.about_btn.onRollOver = function() {
rewind = true;
}
_root.about_btn.onRollOut = function() {
rewind = false;
play();
}but no such luck with the second MC. Even if I apply the same AS code to the second MC, it still won't work. Thoughts?
How Are These Movies Controlled?
Hi
Could someone take a look at http://www.urchin.com/.
You will see in the bottom left corner there is a flash movie that when you put your mouse over one of the titles say "corporate" it plays the movie associated to that title, this is the same for the other titles "Education", "Government" etc.
How would this be achieved, could someone please give me some help!!
Microphone Controlled Mc
hi,
I was wondering if it was possible to control mc with a microphone.
Want I want to do is to have a sphere in the center of the scene , and when we whistle to microphone i want the spehere to blur...
Thats it
Thx
LF...
Code For Map Controlled By MC
Last edited by coatimundi : 2003-07-07 at 12:55.
I'm trying to do what this map does so we can map canoe trails we're building here in the swamps of Louisiana.
Can anyone point me to a tutorial for the code?
coati
How Are These Movies Controlled?
Hi
Could someone take a look at http://www.urchin.com/.
You will see in the bottom left corner there is a flash movie that when you put your mouse over one of the titles say "corporate" it plays the movie associated to that title, this is the same for the other titles "Education", "Government" etc.
How would this be achieved, could someone please give me some help!!
Time Controlled Flash
I am considering designing a screen saver by making a flash file and using SWF Studio to convert to a screensaver. The file is to be a countdown to an important date. I'm new to actionscript and would like advice as to the best way to do this. How do I get the info to change at a pre determined date/time? say a daily screen that says "X days to go !" ...I understand that there is a date object but am unsure how to use this. Any help gratefully received.
Tahnks
Facing Keyboard-controlled MC
I am making a fairly complex turret in my little-known space game that doesn't have a name and can only be seen on my hard-drive.
This turret needs to face the playership, which is a movie clip controlled by the keyboard. Every 2 seconds or so, the turret will fire a bullet at the playership.
Help.
Mouse Controlled Movie
Hey guys
I was wondering if it was possible to make it so that a movie clip moves in accordance with mouse movement. For example, if the mouse moved all the way to the left, then the movie clip would move all the way to the right. And the movie clip location would be constantly updated as the mouse was moving. Thanks everyone
Don
--> Visualisations Controlled By Audio ?
Flash MX has loads of support for audiovisual files. Is there any way to have inputs coming direct from audio, to make a graphic equaliser?
If so, could those inputs be hooked up to a load of visuals to create audio controlled visuals??
Cheers,
matt
Controlled Chain Reaction?
I am handling a dangerous piece of script here: I would like to create some sort of chain reaction where one Mc gets cloned then these two have two other duplicates and so on.
I am struggling with the fact that my code inherited from one MC to the next causes an uncontrolled cloning frenzy. How can I do this in a controlled way without the code crashing on me?
I noticed that a lot of the duplicates carry the same name. How can I prevent this?
Code:
///onload Movieclip
Movieclip.prototype.createDupe=function(Clip){
i=Math.floor(Math.random()*3);
if(_root.Dupe10==undefined){
var thisDupe = Number(Clip._name.substr(4));
newDupe= thisDupe+Direction[i];
///duplicate and name MC Dupe
duplicateMovieClip(Clip,"Dupe"+ newDupe, newDupe);
///put the new dupe in place
_root["Dupe"+ newDupe]._x = _root.Clip._x+XPosition[i];
_root["Dupe"+ newDupe]._y = _root.Clip._x+YPosition[i];
}else{
break;
}
};
Is anybody out there with a genuine idea?
Loading MC Controlled By A Button
Hi,
How can I load a movieclip using the control of a button
In other words, on release or click, mc(X) should appear on the stage...
please help
thanks
Subnavigation Controlled In HTML
Hi guys,
I'm very bad at actionscripting so I'll ask you guys:
I found a site that controlled its subnavigation via HTML with this code:
EMBED id="flashmovie" src="./swf/nav/diensten_sub.swf?mNav=2&sNav=2&basehref=http://www.usmedia.nl/"
I can see in this code they send variables to the swf diensten_sub.swf (?mNav=2&sNav=2). What does this do exactly, and how? Are they pointing the swf to a certain scene?
I'm creating a side I dont want to make in frames, but when pushing a button it loads a new HTML with the same swf, but the button has to stay highlighted. Usually it reloads the swf and it starts at the beginning...
any ideas on how to do this?
thanks
Masked Layer Can't Be Controlled?
i have a mc which i'm controlling from its parent with clip.gotoAndStop(frameVariable);. it works fine until i add a mask layer to the layer with the mc on it.
don't tell me you can't control mc's if they are masked!!
Button Controlled Animation Help
i've made a simple animation with a ball bouncing, controlled by buttons( one to start, another to stop) but i haven't figured out how to make it so the ball continuously bounces until i press stop. my teacher had showed us to put a stop action at the start of the clip, and the only way that i have found to keep the ball bouncing is to take that stop out, but that makes it so the ball is bouncing when i load the clip. could someone help me out here?
Horizontal Cursor Controlled Nav Bar HELP
i am using a turtorial for a "Horizontal Cursor Controlled Nar bar"
It uses images as buttons that scroll across the screen.. well,
id like to use it as a picture gallery nav... where the thumbnails
scroll and when you click one, it will load the full sized image in
the same window above.
I dont care if it loads the image in the flash movie, or in the
html above the scrolling movie, but i cant think of how to make it
work... i am still very new to this all!
THANKS FOR THE HELP!!!!
jason
Mouse Controlled Navigation
I should have posted this one here the first time around:
--->Click Here
I've been working at it the past couple of days but I couldn't get anywhere. Hope someone here has some idea what I'm talking about.
A Time Controlled Movie
hello, i was wondering, how do you add time to a random .swf movie? i have different .swf appearing each time you hit a refresh button and i was wondering how to add a timer so that the .swf changes every 15 seconds. right now my script looks like this...
randomClips = new Array("d+l A_news.swf", "maashaven B_news.swf", "maashaven A_news.swf", "gipsy A_news.swf", "gipsy B_news.swf", "d+l B_news.swf", "gw A_news.swf", "gw B_news.swf","soundscapes A_news.swf", "soundscapes B_news.swf");
//this is on one line//
//next lines reads this//
function randomBackground() {
randomNumber = random(randomClips.length);
loadMovie(randomClips[randomNumber], "_root.mtClip");
}
randomBackground();
what is the time script and where would it go?
Open In Controlled Window
Hey I need to make a link from a .swf that opens another .swf in a new window.
This window needs to be controlled. If I were to use HTML I would script it with this code.
(<a href="#mansei!" ONCLICK="window.open('hosting/space.htm', 'NewWindow','toolbar=no,location=no,directories=no ,status=no,menubar=no,scrollbars=yes,resizable=no, copyhistory=yes,width=441,height=357')">)
Here the window wouldn't have a toolbar, menubar, and wouldnt be resizeable.
Is it possible to do this in flash?
Thanks.
|