Direct Path To Frame Name
I am trying to go an instance of a movie clip to play an animation when mousing over a separate movie clip (mouse over text, shape next to text animates), but I think I have the path wrong. Is there a way to target a specific frame inside a movie clip (or specific frame name)
I am using the following.
ActionScript Code: on (rollOver) { _root.BuildNav.Start.gotoAndPlay("begin");}on (rollOut) { _root.BuildNav.Start.gotoAndPlay("stop");}on (release) { getURL("http://www.whatever.com");} Or is the problem not with the pathing?
I have tried everything I know - should be a simple solution, but it has been a while since I have used flash....grrrrrr
ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 01-25-2005, 09:48 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Path Direct
I'm trying to create a floor plan thing, where by when you click on 1 of the button, it will direct you to the points you selected.
Lets say if I have point A-D, and between those points, some i might need to select whether I turn left of right. The idea I have now is at every point, I will check the var, whether it should go right or left or go straight. I tried to use onEnterframe but the MC keeps on looping nonestop. This is what I have now.test.fla
I'm using animations to draw the line to link from a point to another, but how could I use scripts to draw the lines so that in future I could add in more points with different distance.
And is it a good way to check the var point by point, cause if have have like hundreds of points, I may need to write like a lot of scripts here.
Thanx if anyone of you could help me here.
Path Direct Problem
This is my code. It works fine in the root but I want it for specific reasons inside a MC. The MC instance is called Image_block
//Definitions
max_aantal=6;
aantal = 3;
projectnummer = "014";
//Image loading code
newLoad = new LoadVars();
newLoad.onLoad = function(success) {
if (success) {
for (i=1; i<=aantal; i++) {
loadMovie(newLoad[projectnummer+"link"+i], _root["win"+i]);
}}};
//External file loading code
newLoad.load("myLinks.txt");
What happens now is that a maximum of 6 images is supposed to be loaded. the variable "aantal" (translation:amount) defines how many of these are to be loaded (I don't always need 6). Projectnummer(translation: project number) is the variable that differs between the project pages.
The flash file displayes only 1 image now.
Using GetURL For A Direct Path Link.
I am having issues with linking to a page that I know will be in a specific place on the hard drive. My application is a training app and we have instructions to tell the school exactly where to place the technical manual. My app, though, needed to use ASP so it is in the IIS folder while the tech manual is not.
The app is located at: C:inetpubwwwrootimi and the manual page is at C:ietmindex.htm
So I've tried using the following for the link in Flash:
getURL("C:ietmindex.htm", "_blank");
But when I click this link, it doesn't do anything.
Chris
How To Direct Loaded Movie To Frame 2?
I am sure this is a simple one to answer, so excuse my lack of knowledge in advance. I have a preloader that loads "MRMaster.swf" into a container. What I want to do is after it is done loading, I want the loaded movie to play on a particular frame # or frame label. Everything seems to work properly up to this point, but I do not know the proper coding to direct the movie to the frame i want it to go to... Here is the code that is on the actions layer of the preloader:
____________________________________________
Code:
var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
myMCL.addListener(myListener);
myListener.onLoadProgress = function(target_mc:MovieClip, bytesLoaded:Number, bytesTotal:Number) {
var loaded:Number = Math.round((bytesLoaded/bytesTotal) * 100);
progressBar.gotoAndStop(loaded);
}
myMCL.loadClip("MRMaster.swf","container");
_________________________________________________
Now I just want "MRMaster.swf" to play on the 2nd frame.
Can anyone help me with this one?
Thanks so much in advance!
Button Homepage Direct It To Swf And A Particular Frame
I have .swf file on my home page that has two buttons. It is suppose to be: when you click on a button it will direct you to a new url page in the website, then to a frame within the .swf file on that url page.
I have taken over a website job and do not have a lot of experience with Flash 8 Professional.
I have tried actions on the button:
on (release){
getURL("http://www.micro-trains.com/special edition_navy.htm", "loco")
}
It will go to the right page but not to the correct frame, and stay there. Which is Scene 1, loco, or frame 7.
Any help would be greatly appreciated. I have been trying so many different things but been unsuccessful with this one huge stumbling block.
roxtheo
Path To Frame 2 In MovieClip
I have this code on a button. Why wont it start on frame 2 of the movieclip I have on the frame labelled "movie2".
It starts playing at frame 1 no matter what digit I set it to.
on (keyPress "2") {
_root.gotoAndPlay("movie2", 2);
}
Frame Label Causes Path Problem?
I have this code on a button and it works perfect...
on (release) {_root.logo.gotoAndStop(104);
this.contents.loadMovie("hno411.swf");
}
I am learning that frame labels are a good idea. So I went to frame 104 of my logo MC and labeld it hall. I went back to the button and changed 104 to hall
on (release) {_root.logo.gotoAndStop(hall);
this.contents.loadMovie("hno411.swf");
}
the button no longer takes me to the appropriate place. What am I missing?
Generate Path To Frame Dynamically
hi folks,
i am trying to load a movie into level 10 of another one (which works just fine). the container clip contains a movieclip that works as a timer so that the movie in level 10 should jump to another frame every 5 seconds.
these frames have names such as bewegung1, bewegung2, ...
i tried to make the timer-script generate the path to the frame dynamically as follows:
onClipEvent (load) {
timer = getTimer()+5000;
bewegungsnummer = 1;
logomove = "bewegung"+bewegungsnummer;
}
onClipEvent (enterFrame) {
verweildauer = getTimer();
if (verweildauer>timer) {
_level10.logo.gotoAndStop(logomove);
timer += 5000;
bewegungsnummer += 1;
}
}
i am just not able to make flash accept the path to the frame.
please, what am i doing wrong?
you can get the fla's on http://www.8ung.at/fjperchtoldsdorf/tek-tips/fjhp.zip
regards
Firegambler
_btn Path Target Frame In Parent
Hi
I'm trying to make a navigation system that consists of 4 btns in a movie clip (instance on main stage called eclipse_mc) The 4 btns are all on an guide so they can loop. I have a hidden large button in a layer above those 4 btns & guide that onRollOver/Out triggers the rotation. That works fine. (not sure if layering these things causes any interference)
http://rosedarosa.com/test/test_v6.html is how far I've gotten.
The problem is I am lost about the code and location of the code to trigger the onPress or on(press) or onRelease on the four boxes (see url) to move the time line to a frame in the main timeline.
Below is a variation of what I've tried. The report#_btn(s) are the four btns that don't work. The rotate_btn is the hidden btn that does. This code is in the first frame of the movie clip that holds the btns. Again I'm trying to target the main timeline.
I've put a btn as a separate btn on the main timeline (blue square bottom right) which I had to use the on(press) to get to go to frame 50 (couldn't figure out how to get it to work on the 1st frame. This is only a test to see frame 50 and won't be there in the final.
Thanks very much for your time!
stop();
rotate_btn.onRollOver = function () {
play();
}
rotate_btn.onRollOut = function () {
stop();
}
/*** report1 **/
report1_btn.onPress = function () {
this._parent.gotoAndPlay(50);
};
/*** report2 **/
report2_btn.onPress = function () {
_root.gotoAndPlay(50);
};
/*** report3 **/
report3_btn.onPress = function () {
this._parent.gotoAndPlay(50);
};
/*** report4 **/
report4_btn.onPress = function () {
gotoAndPlay(50);
};
Worked Out Path Now Just Need .reverse To Loop So It Goes Back More Than ONE Frame
Heres what I have
a movie called reverse with 3 keyframes
on keyframe1 I have stop()
on keyframe2 I have _level0.welcome.prevFrame();
on keyframe3 I have _level0.welcome.prevFrame();gotoandPlay(2);
I have placed this in a movie called welcome on the last keyframe because thats the one I want played backwards.
on the button I have on (release) {
gotoAndStop;
_level0.welcome.reverse.play();
}
Can anyone explain why the movie is only going back ONE frame?
Taget Path Problems With Targeting A Frame Of A Movie Thats Not Loaded
Hello all, I have tried lots of work arounds and still can't get this to work.
I have a stop frame that loads a movie, I need to target a frame of that movie.. even though its not yet loaded because I have one target for all my content. this works whens its loaded:
on (release) {
_root.container.loader.work.gotoAndStop("work_ad") ;
}
is there a way to have an path for a frame for a movie that is not yet loaded?
like:
on (release) {
_root.container.loader.work.gotoAndStop("work","wo rk_ad");
}
any help would be great... thanks!
Using Eval Function And Variable In A Path (target Path)
Hello,
I have to reprogram some of my website and it calls to conjugate strings in a way that's beyond my understanding. Please help me with some suggestions. Kind regards.
the original code is:
code:
if (_global.useCount<10) {
//hide
var diff = 10-_global.useCount;
for (diff; diff>0; diff--) {
eval(String(11-diff))._visible = false;
}
}
There are buttons named 1 to 10 and this turns off the ones that are not used. Now I want to nest those buttons in subclip "buttonsRow", instead of having them on main timeline. How do I rewrite that code to make it work with new path?
I have already tried the "associative array" method, but it don't really know how to pack the whole eval function in there. I've tried many combinations, like:
code:
this.buttonRow[eval(String(11-diff))]_visible = false;
//or
this.buttonRow["eval(String(11-diff))"]_visible = false;
//or
buttonRow[eval(String(11-diff))]._visible = false;
//or
buttonRow["eval(String(11-diff))"]._visible = false;
//or
buttonRow[eval(11-diff)]._visible = false;
// or
buttonRow[8]._visible = false;
//the last one at least turns off button 8, lol
Some of those return syntax error and some just don't work. Anyone have any ideas? Thank you again.
Cannot Export An Avi Of Motion Along A Path When Path Is Specified With Action Script
Hello!
I have the following problem: I am using Flash 8 Professional to produce a series of avi files showing the motion of a dot along different paths. Whenever I use the drawing tools to draw the path everything is all right: I can export both a swf and an avi file showing the motion. The problems start when I use action acript to specify the path: then a swf can be exported, but not an avi file (Flash acts as if it is exporting but the avi file produced shows only a stationary dot). Can anybody help me?
Re-Use Then Re-Direct...
I would like to reuse a very complicated animation in my flash file. Once the user clicks on a button, I want this certain animation to play through (located within the scene's frames) and then based on the user slecetion, load to another frame.
I'm new to action scripting, so if you can understand this question, I'd appreciate any words of advice. Thanks
-Ben
Re-direct
I have a static xhtml page with flash intro and would like to re-direct a browser without flash plug-in directly to the main page.
I think this is possible, but can't seem to find a script for it.
Flash page - http://www.kennethandco.com/index.html
Home Page - http://www.kennethandco.com/main.html
Any help is most appreciated. Thanks!
Can Someone Direct Me?
I want to take three lines of text, tween them into a circular shape, rotate them around the circle, and then fade in a graphic inside the circle. I'm a newbie, so I don't know the correct terms to use. I've gotten to the point of getting the three lines of text fade onto the screen. Where do I go from here...I'm not sure what terms to look for in the help section.
Thanks much!
Can Anybody Help Direct Me With This Please?
The owner of my company asked me to add some store items to his wife's website, but I have a slight problem. (I am not a full blooded coder by the way, I was hired for graphic/print design, but I have built websites in flash before) Anyway, before I came here they turned to a design agency to build the website, and the way they coded this particular page, they made it so that you can only remove, and then replace the items. His wife just wants to add new items without removing anything. We got in contact with the old agency, and now they are asking for 425 dollars to rework this which I think is a bit overpriced. Maybe it's not, but I think they should have coded it this way in the first place.
Anyway, if anybody has any ideas or can direct me toward a way to fix this, I would be very grateful! Here is the original FLA file. Any feedback at all would be truly appreciated. I need to be able to add more items, or have fewer items dynamically and allow for variable dynamic content as apposed to having it static like it is now. Any ideas?
Thank you in advance!!
How Do I Re-direct?
Hey all, I have a password box and stuff and it works well with the If/Else scripting and stuff but I have a problem. I don't know how to re-direct it to the page I want it to after someone enters in the correct password. They enter it in, it says "Password Granted" and then it just has the button and the text. How do I re-direct?
Direct To URL?
Aftre my intro i need the animation to redirect the user to a url, how would i go about this??
thanks in advance
Direct Download
Is it possible to create a link, that starts direct the download? So that i can chose the directory where it'll be saved...
Thx
Can Some Direct Me The Post Or Tut That....
I need to know how to open a pop up window from inside flash to html page. This what i want to do: i have a flash website and i have thumb nail picture (inside flash) and what i want is when i click on the thum nail i want it to open another window (i want an html pop up window) thats a blank page. i have try doing it with thise actionscript
-----
onClipEvent (load) {
getURL ("http://home.collegeclub.com/bluepitbull/files/640/0003.jpg", "_blank");
}
----------
help help because it doent worl properly
Direct Download
Is there some way of having a user download a file to their drive as a result of clicking on a button. I'm looking to have the user be able to download an mp3 file to their drive without having to right click and then choose the "save to disk" option. Thanks in advance--JOE
Direct To Action.
HI,
I got a bit of problem with my website, Need someone to advise me.
Like most of the website did, i got intro on mine too, after intro end, I find my window a bit blank, because all my button is on the side, and the middle of window nothing. Can U picture it? What I'm need to do is before the intro end, Direct to contact.swf first. So that the end of intro i got contact info on my window, But Problem is, how to direct link a external movie.swf from the frame. The Reason I don use "LoadMovie" because if i click other button(launch other external.swf) I need unloadMovie. Is There anyway to do this.
Hope U guy understand what I mean. Thanks.
Regard,
Amiwai
Direct Email
I made a button with the action get url so people get my email adress in there mailprogram like hotmail. I gues this is totally wrong it won't find its adress. Can't get into hotmail without pasword. How do I make a direct email please help me.
Thanks (newbie)
How To Direct A Popup
i know the script.. theres is one problem...
i can generate one popup but another button with another popup.. does dthat work?
how do i do it than?
Pause & Re-direct...Please Help
I have a movie intro...when the intro is done playing, I want it to wait for 4 seconds, then go to a new SWF on level 0. How do I do that???????
Direct Input
ok i have a qustion, i'm gonna make this question as easy as possible
now i have a flash file, on it i have 5 boxes, 1 blue, 1 red, 1 yellow, 1 black, 1 green.... and i have an input box right under the boxes, next to the input box is a submit box(its not active this is wat i'm here for) now wat i want to do is type a color in the input box and click submit, when i submit i want to light highlight or maybe enlarge or whatever i just want the system to work, well i know its not exactly a system but how can i do that???
but when i make a new entry i want the previous entry to restore to the way it was before,
please help
Please Direct Me To A Tutorial That....
I am trying to attach 7 music clips to 7 buttons that stop all sound so that each can play. But I want the sounds to load from the server.
Does anyone know of any tutorials or have any ideas that I may play around with?
Thanks,
NYmagic
Auto Direct?
Is there any way i can automatically redirect a user to a non flash site if flash is not deteced on their system from within my intro movie?
Paul
Direct Edit
if i load a gif animation file into flash how do i directly edit the layer without effecting any of the other layers
if you have an answer, please reply
Flash Re-Direct
I have my main movie www.tsigold.com
Now I also have 10 other www.blankcompany.com
I have it now when you go to one of them for example www.tapetechtools.com and it hits my logo page so when you hit the logo it takes you to www.tsigold.com.
Can I have it where when you type in for example www.tapetechtools.com it automaticly hits the logo page then re directs them to www.tsigold.com.
[F8] Embedded Vs Direct (swf) On Mac
Hi all,
firstly thanx to all for a great forum - saved my skin many a time
I have a weird one here - i hope someone else has experienced this and can offer some insight...
I'm developing a video coaching programme based in-part on Jereon's flvPlayer.. (ain't it great!)
The flv clips in the app are 540x200 - so we expected some slow-down on old machines and thought we could encode another low-quality set if we really needed to...
During testing we found that flv playback (and general flash speed) was suffering on older macs (x.4 700Mhz, 640Mb RAM ish)...
We tried some Mac tricks like speedFreak (gives maximum system resources to foremost app), and tried mulitudes of different flv encodings (both kbps and fps) to try to get something watchable.. pretty much to no avail - the movies ended up looking very very compressed and still wouldn't play smoothly.
We turned off smoothing and deblocking...
We tried different browsers -Firefox was slightly more capable than Safari and old IE's were dismal... but none would do anything close to 'good enough'
We tried different swf embedding techniques from Adobe, Bobby VanderSomething, etc, and we tried direct object/embed without detection to be sure ... nothing was changing....
Then I started having problems with Bobby's UFO that i hadn't seen before when reloading the page.. (not related) But, it did cause me to try calling the swf directly in the browser...
i.e No embedding: http://this.com/this.swf
Suddenly everything was working sweet as a nut! I switched back to our original clips (On2 ~300kbps, 30fps) and turned deblocking back on. Blow me down - it's still running like a dream even on an old Mac clunker with other apps running.
We've not had any problems with flv playback speed on any Windows machines in testing.. only on basic spec iMacs
Can anyone please confirm that the actual embedding of flash movies in HTML somehow reduces available resources or something(!?) - when using a Mac of similar spec mentioned above.
We'd love to get to the bottom of this as we don't want to have to launch the app 'outside' of the (HTML-based CMS-driven) site it currently fit's so neatly into.
Many thanx in advance if you can help even in the slightest - and many thanx for reading this far (!)
Best,
VV
Direct Preloader
What would be the actionscript for sending the movie to a certain frame after it loads?
Direct HitTest
i'm trying to use a code to preform a hitTest in flash
ActionScript Code:
onClipEvent (enterFrame){
if (hitTest(_root.blah)){
_root.blahblahblah
}
}
this code works great and all, but it looks for the hitTest of the shape outline, not the actuall shape.
if anyone knows how to make the hitTest look for the actuall shape, please let me know.
Thank you very much.
Embedding Vs Direct On Mac
Hi all,
I have a weird one here - i hope someone else has experienced this and can offer some insight...
I'm developing a video coaching programme based in-part on Jereon's flvPlayer.. (ain't it great!)
The flv clips in the app are 540x200 - so we expected some slow-down on old machines and thought we could encode another low-quality set if we really needed to...
During testing we found that flv playback (and general flash speed) was suffering on older macs (x.4 700Mhz, 640Mb RAM ish)...
We tried some Mac tricks like speedFreak (gives maximum system resources to foremost app), and tried mulitudes of different flv encodings (both kbps and fps) to try to get something watchable.. pretty much to no avail - the movies ended up looking very very compressed and still wouldn't play smoothly.
We turned off smoothing and deblocking...
We tried different browsers -Firefox was slightly more capable than Safari and old IE's were dismal... but none would do anything close to 'good enough'
We tried different swf embedding techniques from Adobe, Bobby VanderSomething, etc, and we tried direct object/embed without detection to be sure ... nothing was changing....
Then I started having problems with Bobby's UFO that i hadn't seen before when reloading the page.. (not related) But, it did cause me to try calling the swf directly in the browser...
i.e No embedding: http://this.com/this.swf
Suddenly everything was working sweet as a nut! I switched back to our original clips (On2 ~300kbps, 30fps) and turned deblocking back on. Blow me down - it's still running like a dream even on an old Mac clunker with other apps running.
We've not had any problems with flv playback speed on any Windows machines in testing.. only on basic spec iMacs
Can anyone please confirm that the actual embedding of flash movies in HTML somehow reduces available resources or something(!?) - when using a Mac of similar spec mentioned above.
We'd love to get to the bottom of this as we don't want to have to launch the app 'outside' of the (HTML-based CMS-driven) site it currently fit's so neatly into.
Many thanx in advance if you can help even in the slightest - and many thanx for reading this far (!)
:)
Best,
VV
Direct Connection To DB
I was just wondering if there is a way to directly connect a Flash program (web based or not) to a database without a scripting page such as PHP, JAVA, ASP... I don't think you can, but I would like to be totally sure there isn't a way. Thanks in advance for your help.
Vectorflash
Edited: 01/11/2007 at 10:08:51 PM by Derek_k
How Did They Do This ? Direct Navigation
I've seen a few sites with this sort of navigation and have been wondering for months about the kind of AS framework that would be needed to get this working, any tips, suggestions, codes and links to tutorials on this would be great !
http://pdl.warnerbros.com/wbmovies/k...ang/flashsite/
Direct Reach With The URL
hi to all .
frist am glad to be a new member in this great Forum .
i hope you accept & like me.
i have some littel problem i hope to find the answer and help for it here.
some time when i visit some site i find the Url changing when press any button and the page never change also the main flash movie is still in the page . in the same time you can reach that movie or that section by using the URL directly ..
for exampel :
the link in shown like this = "www.site.com/#contact" in this case it will show the Contact form Movie in the main movie
or "www.site.com/#start" in this it will show the frist main movie
this site http://www.fantasy-interactive.com/#start use what i mean
what i think in this case when you hit the button it will Load an external SWF Movie to the main Movie and change the URL in sasme time .
what i need is how to do some thing like that ?
i thing is some thing with the "java"
sorry for this long " Story" am trying to make my Qs clear
and My poor English
waiting for reply's
regards
Neon .
Online? Lan? Direct Ip?
Hi! I am new here!
I am a pretty good flash actionscripter, and i would like to create something new for me. I have many friends over the internet and i would like to see all of them at one place. Here is my project:
I want to create a small world, kinda 4 small maps (maybe 640*480) where you can walk around, and chat. I know online games and things like that are rare, but i am sure i can learn that.
If any of you can help me, or give me some nice tutorial link or etc, plz do so!
Have a nice day
Direct Connect HELP
hey i was wondering if anyone could directly connect to me ( must have xp to do this) and help me get this infinite menu thing working, pleeeeeeeeeeeeeeease
msn:eckostylez@hotmail.com
aim:Cheez209
Direct Me To A Tutorial
Hi, i am trying to create the ususal flash photo gallery with thumbnails that follow the mouse and when you click the thumbnail a large version appears, can someone point me in the way of a good tutorial for this effect?
•••Direct Connection
I want to make a direct connection between 2 computers. It is possible with as3?
Direct Pop-Up Window?
Hi!
I was wondering... Is it possible for a user to go directly to a pop-up flash window with just having to enter the html/swf address in a browser's address box?
for example: *I typed http://website.com/flash.swf in the address box.
* then hit enter/go
* a pop-up flash window appears
If it is possible... Please tell me how? I would really appreciate any help! Thanks!!
btw, im a noob. ^_^
Strange Re-direct
Hi
I am quite new to flash and actionscript. On my site www.louandelcats.co.uk I created a flash video. At the end of it it says "Click Here". I used actionscript to enable the user to click on it and to be taken to the relevant page which is www.louandelcats.co.uk/phpbb/index.php
The script I used was:
clickhere.onPress = function(){getURL("phpbb/index.php");}
But it takes me to a page:
http://www.louandelcats.co.uk/www.lo...hpbb/index.php
and obviously cannot find it.
anyone know what I may be doing wrong?
thanks
cass27
Direct Nav To My.swf File
Is there a way to prevent someone from typing in the direct path of my swf file. i.e myurl.com/my.swf
The page it is loaded in is password protected but if someone new the name of the swf they could access it without severing up in credentials.
|