Paths Help
Are there any tutorials that help with paths? I have a MC in my main movie that i'm loading an external swf file into. i want to put actions in that swf file that control things in my main movie. i'm new to flash. what type of path would i use?
FlashKit > Flash Help > Flash General Help
Posted on: 11-25-2003, 05:56 PM
View Complete Forum Thread with Replies
Sponsored Links:
Targetting Dynamic Paths Within Dynamic Paths...
Hello,
I'm already aquainted with the Advanced Pathing tutorial, but I have a question relating to taking it a step further:
I've created a series of dynamically named empty movie clips, and filled each of them with a dynamically named clip from the library. Now, applying actions and properties to the empty movie clips is easy enough, but my problem is that I can't figure out the syntax for applying actions and properties to the dynamically named clip from the library that is inside the dynamically named empty movie clip.
My first instincts have been to try:
ActionScript Code:
_root[emptyclipname][innerclipname].foo
and when that didn't work, I tried:
ActionScript Code:
_root[emptyclipname].onEnterFrame = function(){
this[innerclipname].foo
}
I'm really at a loss here. Is what I'm attempting to do even possible?
View Replies !
View Related
Paths
I have a movie that is looping in the root (level0) with some buttons, these buttons are within a movie clip "butoes", lets call them "butoes1", "butoes2", ...
When I touch one of these buttons 2 things happens:
- Is loaded one loading movie ("loading.swf") in level1
- Is assigned one variable "abrir" that will define which flash movie is going to be loaded to level1 after the loading.
My problem is that i don't know how to read the value of the variable abrir in the loading movie.
I'll be very gratefull if anyone help me solve this prob
View Replies !
View Related
Plz Help With Mc Paths
Hey.
I have some mc:s woth buttons inside on the scene. When I move my mouse over one of them (a picture) the same picture but bigger should fading in. I've done this but I've got 2 problems. The first is that when you move your mouse out from the button the larger picture should fade in, and if they're been any mistake the other mc:s (same thing) should also fade out if any of them are still big. I'm using this code but it isn't working!!!!
The button lies inside a mc that lies on the scene, and the button should change things inside other mc:s laying on the same scene.
On frame 6 the bigger pic fade out.
The tell target "/" is suppose to get back to the scene from the mc.
on (rollOut) {
tellTarget ("/") {
tellTarget ("slakt") {
gotoAndPlay (6);
}
tellTarget ("kort") {
gotoAndPlay (6);
}
tellTarget ("mig") {
gotoAndPlay (6);
}
tellTarget ("hiss") {
gotoAndPlay (6);
}
tellTarget ("box") {
gotoAndPlay (6);
}
tellTarget ("bank") {
gotoAndPlay (6);
}
tellTarget ("bazooka") {
gotoAndPlay (6);
}
tellTarget ("aj") {
gotoAndPlay (6);
}
tellTarget ("synsk") {
gotoAndPlay (6);
}
}
}
The other problem is that the mc:s lay next to each other so close that if one of them fade to a bigger picture it may be overlapped by other mc:s.
How can I make it so that the mc:s that's fading in the large pic is the mc on top of ther others on the scene? Is that difficult?
Thx for any help.
If you don't understand let me know so I can rephrase.
Here's the adress to the movie I'm working with. Use meny "arbeten" and then press on "flash" and there lay the mc:s.
http://www.grace.se/~tgy.hema/hemsida.html
View Replies !
View Related
Paths
I have a flash movie that loads jpg's. I want to be able to use this flash movie on different pages of my site in diffent folders and different levels. On the pages that are on a diffent folder level the movie doesn't load the images, because the path is incorrect.
../assets/movie.swf
../..assets/movie.swf
Is there a way that I could keep the path to the image consistant with the swf., so I don't have to make several movie that have diffent paths to the image?
I hope this makes sense... If not let me know and I will try to explain it better.
Thanks
View Replies !
View Related
Paths
I am trying to create a flash movie with a map of great britain and a route from the top to the bottom.
After some intro animation the map zooms up to the top and displays the route line (which is also the path for a dot that follows it)
I want to animate the dot following the path whilst moving the map slowly upwards so that it ends up at the bottom corner.
I can't attach the dot to the path when it's converted to a symbol to enable it to move up but without making it a symbol the path doesn't move up with the map.
Does that make sense?!
Please help!
View Replies !
View Related
Paths...always Paths....Please Help
Hi Flashers.
To put it in a nutshell:
Scene 1, Main timeline,
frame 1 -- calls MC(1)
where,
MC(1) calls MC(2)
MC(2) calls MC(3)
In MC(3) there's a button which calls Scene 2, frame 1....
No way to get it work...
AS in the button:
code:
on (release) {
_root.gotoAndPlay ("Scene 2",1);
}
I've also tried changing _root by _parent or _level0 without success.
Anybody can help??
Thank you.
Manare
View Replies !
View Related
Paths
i am loading an external movie into my main time line. the external movie is my navigation.
i am loading in a text file that has my content.
i have a dynamic text box on the main time line of my main movie.
now..here is the question.
in my external nav movie that i am loading in how do i tell it where to display the text. I have my variables and instance name of my dynamic text box....but it will not display...something wrong with the path?
how can i tell the external nav movie that my dynamic text box to display content in actually in the main movie?
thanks
c
View Replies !
View Related
Paths
i want to make a simple program whereby when you click on a button an object is released so that it travels along a pre defined path. will it be better to simply animate the motion along the path with key frames, or to use code to tell the object where the path is?
View Replies !
View Related
Paths?
Ok i wanna have something move on a certain area, ive seen tutorials about paths I think? like i draw a line then i can jsut make my object follow it? true or false?! thanks!
View Replies !
View Related
Paths
Hello!
This is my first post. I hope I can make myself clear (Iīm not a native english speaker...).
Ok, hereīs the deal: I have two movie clips, letīs say mc1 e mc2, one in frame 1 and the other in frame 2. I want to know if itīs possible to make a button inside mc2 go to a specific frame (for example, frame 16) into the timeline of mc1. Iīve named every instance and frame.
Iīve tried, on a button from mc2:
on (release) {
_parent.mc1.gotoAndStop(16);
}
and
on (release) {
_root.mc1.gotoAndStop(16);
}
or
on (release) {
_parent.gotoAndPlay("mc1", 16);
}
Nothing seems to work. Can anyone tell me if itīs possible and, if so, which path should I use?
Thanks a lot!
Ane
View Replies !
View Related
Can't Get The Paths Right
Hi,
I have quick question about paths. I am working with a scrolling script which works fine if it's on the main timeline....
Code:
onClipEvent (load) {
scrollerpc = 0;
contentorigy = _root.text._y;
}
onClipEvent (enterFrame) {
scrollerpc = ((this._parent.Scrollbar.scroller._y / this._parent.Bar._height) * 100);
// defined this variable which is the difference between the current position and the final (linear) position
var dif = -_root.text._y + (contentorigy - ((scrollerpc / 100) * (_root.text._height - _root.Bar._height + _root.Scrollbar.scroller._height)));
_root.text._y += dif / 5; // add "pieces" of that difference
// change 5 to o ther values to get different behaviors
}
but when i put it in a movieclip (instance name "big") and i tried changing the code around a bit like this.....
Code:
onClipEvent (load) {
scrollerpc = 0;
contentorigy = big.text._y;
}
onClipEvent (enterFrame) {
scrollerpc = ((this._parent.Scrollbar.scroller._y / this._parent.Bar._height) * 100);
// defined this variable which is the difference between the current position and the final (linear) position
var dif = -big.text._y + (contentorigy - ((scrollerpc / 100) * (big.text._height - big.Bar._height + big.Scrollbar.scroller._height)));
big.text._y += dif / 5; // add "pieces" of that difference
// change 5 to o ther values to get different behaviors
}
it does not work, i don't think i targeted all the paths correctly. Also, i am trying to avoid using "_root" because I will load this .swf into another one later on and I think I will run into more problems then.
I'm a little confused about the "_parent" and "_this"
thanks.
View Replies !
View Related
Paths
i have a root swf holding all the other externally loaded movies. i would like to send a command frmo the external movie to the main movie. how's it done?
View Replies !
View Related
Paths
If I load a movie into a blank MC on the _root timeline, do I always have to put:
ActionScript Code:
_root.blank.mc.path_to_object
in the script? Or can I just use [as] object[as]
?
thanks
View Replies !
View Related
Paths
is there a way with paths to get from one movie clip back to the root timeline and into another movie clip, i can get to the main timeline using
on (release) {
_root
But is there a way i can use
_root.something.gotoAndPlay();
its been wrecking me head!!!!
cheers.
View Replies !
View Related
Paths?
I'm not sure how paths work in AS 3.0... It looks like _parent doesn't work anymore...
here's my code that i'm using with the document class setting for the FLA
Code:
package
{
import flash.display.MovieClip;
import flash.events.Event;
public class MyApp extends MovieClip
{
public function MyApp()
{
//init
trace("MyApp init()");
}
public function freakOut():void
{
trace("FREAK OUT!!");
}
}
}
now I have a movieclip on the stage. inside that movieclip i have a graphic, and then this code on the actions layer...
Code:
import flash.events.MouseEvent;
addEventListener(MouseEvent.MOUSE_DOWN, onPress);
function onPress(event:MouseEvent):void
{
trace("event"+event);
//_parent.freakOut();
}
i commented out the _parent.freakOut() thing... I'm trying to find out how I could call a function from the main class that is initialized when the flash player starts...
in the MyApp class there is a method called "freakOut"... how do I call this from that movieclip?
btw... the MouseEvent thing works fine...
thanks!
View Replies !
View Related
Paths In AS3
I have this movieclip on stage with a button in it.
when I click the button, I want to load an image on to an x and y position, on the stage.
something like this:
ActionScript Code:
function loadImagemGrande_func(j:String) {
var pathImagemGrande:URLRequest = new URLRequest(j);
var loadImagemGrande:Loader = new Loader();
loadImagemGrande.load(pathImagemGrande);
function showImagemGrande(e:Event):void {
loadImagemGrande.content.x = //a stage x coordinate
loadImagemGrande.content.y = //a stage y coordinate
addChild(loadImagemGrande.content);
var animaImagemGrandeWidth = new Tween(loadImagemGrande.content, "width", Strong.easeIn, 0, 250, 1, true);
var animaImagemGrandeHeight = new Tween(loadImagemGrande.content, "height", Strong.easeIn, 0, 188, 1, true);
}
loadImagemGrande.contentLoaderInfo.addEventListener(Event.COMPLETE, showImagemGrande);
}
function disparaLoadImagemGrande(e:MouseEvent):void {
loadImagemGrande_func("imagem.jpg");
}
button.addEventListener(MouseEvent.CLICK, disparaLoadImagemGrande);
how can I do this, please???
thank you..
View Replies !
View Related
Paths
obviously i'm a beginner. i'm making a game in which there is a tweened button (in a movie clip) which is in another movie clip. for this button to work as if it were on the main stage (if the button reached a certain point), i know i would use something like: _root.movieclip1.turkeybutton;
but where do i put this script?
if anyone could please help me, i would appriciate it.
View Replies !
View Related
Paths
i am loading swfs into a movieclip. I have this image scroller that i need to get the correct paths to. the name of the movieclip that holds the swf is "container". this scroller has 2 ways to make it work. you can either click the forward back buttons or you can click the boxes under it. now the buttons are in movie clips too. the forward back buttons are in a movieclip called "symbol13" and the boxes are in a movieclip called "toprow". so I assume the path should be :
_root.container.symbol13 and _root.container.toprow
i used this but it still wont work. anyclues??
View Replies !
View Related
Paths
i have a button in a movie clip. when its clicked it loads a swf into a movie clip on the main root. the script does load the movie clip but when you click another button it doesn't play the outro animation. here is the script i am using
ActionScript Code:
if (_root.container.currMovie == undefined) {
_root.container.currMovie = "port";
_root.container.loadMovie("port.swf");
} else if (_root.container.currMovie != "port") {
if (container._currentframe>= container.midframe) {
_root.container.currMovie = "port";
container.play();
}
}
container is the movie clip on the main root that the swf is being loaded into. i know its just a path issues but ive tried everything-anyone see anyting wrong?
you can see where im at www.tchristos.com/moonstep
View Replies !
View Related
Help With Paths
I'm having trouble accessing functions in the root timeline. How is it you communicate with the parent or root path from a movie clip? The function works fine IN the root path.
In root path:
var urequest:URLRequest = new URLRequest;
(also frame 49 is named "MYEFFECT");
In the movie clip (myClip_mc):
myButton.addEventListener(MouseEvent.CLICK, myClick);
function myClick(e:MouseEvent):void{
urequest = new URLRequest("
View Replies !
View Related
Paths?
I've searched.... probably used the wrong verbiage, but here goes:
http://www.actionscripts.org/tutoria...s/index2.shtml
See that page? I don't understand how to dock layers under each other?
How would I get a layer under another layer? Maybe I am missing the point...
View Replies !
View Related
Can Anyone Help With AS Paths In This?
I have finished customizing this 360 degree panorama viewer from an example I found. Now I need to load this as a SWF into another movie.
Since I am loading this into another SWF, and the asolute paths could change, I need to get all the actionscript calls relative, not absolute. Can anyone fix this for me, or give me some hints?
Here is some of the code:
Code:
onClipEvent (enterFrame)
{
if (_xscale > myscale*10) {
_xscale = myscale*10
_yscale = myscale*10
}
if (_xscale < myscale*minXs) {
_xscale = myscale*minXs
_yscale = myscale*minXs
minXT = true
}
if (_root.arrower.zoomin) {
lastX = _x
if (minXT <> true) {
_x = obj_x * _root.arrower.scalefactor
_x += _root.x
} else {
_x = lastX
minXT = false
}
_y = obj_y * _root.arrower.scalefactor
_y += _root.y
} else {
_x += _root.dx
_y += _root.dy
}
actual_W = getProperty(_level0.img, _width)
actual_XF = getProperty(_level0.img, _xscale)/100
actual_WXF = init_width * actual_XF
actual_R = (_root.img._x + actual_WXF/2 + (h-1)*actual_WXF)
actual_L = (_root.img._x - actual_WXF/2 - (i-1)*actual_WXF)
actual_T = (_level0.img._y - _level0.img._height/2)
actual_B = (_level0.img._y + _level0.img._height/2)
minY = 0
maxY = _root.movieH
minX = 0
maxX = _root.movieW
if (actual_L >= minX) {
if (_root.panorama){
_x = _width/2
} else {
duplicateMovieClip (_level0.img.central, "left"+i, i+10000)
prevL = "left"+(i-1)
prevLX = getProperty(prevL, _x)
setProperty("left" + i, _x, prevLX - init_width)
i = i + 1
for(iDel=1; iDel<h; iDel++) {
removeMovieClip("right"+iDel)
}
h = 1
}
}
if (actual_R <= maxX) {
if (_root.panorama){
_x = (_root.movieW - ((_width)/2))
} else {
duplicateMovieClip (_level0.img.central, "right"+h, h)
prevR = "right"+(h-1)
prevRX = getProperty(prevR, _x)
setProperty("right" + h, _x, prevRX + init_width)
h = h + 1
for(hDel=1; hDel<i; hDel++) {
removeMovieClip("left"+hDel)
}
i = 1
}
}
if(actual_T >= minY) {_y = _height/2}
if(actual_B <= maxY) {_y = (_root.movieH - ((_height)/2))}
// for debugging
actual_X = _x
actual_Y = _y
}
onClipEvent (load)
{
ok = ok2 = 1
beginX = _x
h = 1
i = 1
myscale = _xscale
minXs = _root.movieH/_height
init_width = _root.img.central._width
setProperty("central",_x,0)
setProperty("central",_y,0)
}
onClipEvent (mouseDown)
{
obj_x = _x - _root.x
obj_y = _y - _root.y
}
View Replies !
View Related
FLV Paths On CD
Hi am used to director but am doing a project in Flash, I have a main movie, into that loads another movie using (loadMovie("Chapter3/ch3vid.swf","mt_mc") this works fine, (ch3vid.swf") has an FLV vid with controls for stopping etc. This all works fine until i try it on another computer, then the flv will not load. It seems to be a path thing, i cant embed as they are to big.
The content path is (C:Documents and SettingsBruceMy DocumentsWork FilesMultimedia rtMainvideosch1introbw3.flv). Which is fine from my machine.
Basically i need to find a way to show FLVs from a cd. I have one that works, it loads directly into the main swf with content path (videos/intro1.flv)
FLVs are going into a video folder as there are alot, five chapters plus others.)
When all works the project will be compacted using swf studio by northcode.
Any help would be appreciated.
View Replies !
View Related
XML And Paths
I'm having a problem with file paths. I have a master SWF that uses XML to pull in my section SWFs. Everything works when I embed the master SWF, as long as it is in the same folder as the HTML page. When I try to put all the SWFs and XML into a subfolder, the browser hangs, and I get the "Do you want to abort script?" warning.
Here is my XML, pretty simple:
Code:
<accordion>
<tab title="START" src="title.swf"/>
<tab title="RESEARCH" src="research.swf"/>
<tab title="PRODUCT" src="product.swf"/>
<tab title="PLACE" src="place.swf"/>
<tab title="PROMOTION" src="promotion.swf"/>
<tab title="PRICE" src="price.swf"/>
<tab title="IMPACT" src="impact.swf"/>
</accordion>
It works like this:
/index.html
/master.swf
/data.xml
/other swfs
But not like this:
/index.html
/flash/master.swf
/flash/data.xml
/flash/other swfs
I need all the files in a subfolder. Any suggestions on what I need to do to get it to work that way.
View Replies !
View Related
Paths?
I've searched.... probably used the wrong verbiage, but here goes:
http://www.actionscripts.org/tutoria...s/index2.shtml
See that page? I don't understand how to dock layers under each other?
How would I get a layer under another layer? Maybe I am missing the point...
View Replies !
View Related
Can Anyone Help With AS Paths In This?
I have finished customizing this 360 degree panorama viewer from an example I found. Now I need to load this as a SWF into another movie.
Since I am loading this into another SWF, and the asolute paths could change, I need to get all the actionscript calls relative, not absolute. Can anyone fix this for me, or give me some hints?
Here is some of the code:
Code:
onClipEvent (enterFrame)
{
if (_xscale > myscale*10) {
_xscale = myscale*10
_yscale = myscale*10
}
if (_xscale < myscale*minXs) {
_xscale = myscale*minXs
_yscale = myscale*minXs
minXT = true
}
if (_root.arrower.zoomin) {
lastX = _x
if (minXT <> true) {
_x = obj_x * _root.arrower.scalefactor
_x += _root.x
} else {
_x = lastX
minXT = false
}
_y = obj_y * _root.arrower.scalefactor
_y += _root.y
} else {
_x += _root.dx
_y += _root.dy
}
actual_W = getProperty(_level0.img, _width)
actual_XF = getProperty(_level0.img, _xscale)/100
actual_WXF = init_width * actual_XF
actual_R = (_root.img._x + actual_WXF/2 + (h-1)*actual_WXF)
actual_L = (_root.img._x - actual_WXF/2 - (i-1)*actual_WXF)
actual_T = (_level0.img._y - _level0.img._height/2)
actual_B = (_level0.img._y + _level0.img._height/2)
minY = 0
maxY = _root.movieH
minX = 0
maxX = _root.movieW
if (actual_L >= minX) {
if (_root.panorama){
_x = _width/2
} else {
duplicateMovieClip (_level0.img.central, "left"+i, i+10000)
prevL = "left"+(i-1)
prevLX = getProperty(prevL, _x)
setProperty("left" + i, _x, prevLX - init_width)
i = i + 1
for(iDel=1; iDel<h; iDel++) {
removeMovieClip("right"+iDel)
}
h = 1
}
}
if (actual_R <= maxX) {
if (_root.panorama){
_x = (_root.movieW - ((_width)/2))
} else {
duplicateMovieClip (_level0.img.central, "right"+h, h)
prevR = "right"+(h-1)
prevRX = getProperty(prevR, _x)
setProperty("right" + h, _x, prevRX + init_width)
h = h + 1
for(hDel=1; hDel<i; hDel++) {
removeMovieClip("left"+hDel)
}
i = 1
}
}
if(actual_T >= minY) {_y = _height/2}
if(actual_B <= maxY) {_y = (_root.movieH - ((_height)/2))}
// for debugging
actual_X = _x
actual_Y = _y
}
onClipEvent (load)
{
ok = ok2 = 1
beginX = _x
h = 1
i = 1
myscale = _xscale
minXs = _root.movieH/_height
init_width = _root.img.central._width
setProperty("central",_x,0)
setProperty("central",_y,0)
}
onClipEvent (mouseDown)
{
obj_x = _x - _root.x
obj_y = _y - _root.y
}
View Replies !
View Related
Using Paths...
Hi
I have one main.swf that with "loadMovie" loads clip2.swf and with the same method clip2.swf load in itself clip3.swf
My question is how can I route some event from clip3 to clip2
__________________________________
I have this at clip3 but doesnīt work
on (release) {
_root.clip2.gotoAndPlay("intro");
}
____________________________________
I also tried this
on (release) {
_level0.clip2.gotoAndPlay("intro");
}
____________________________________
Any idea or help?
Thank you
.
View Replies !
View Related
Paths ?
Hi out there!
I want to instantiate a text variable which is inside an movieclip.
This MC is on the overframe of a button and that button is again inside a MC.
So I thought that I could call that variable, but nothing happens...
I tried this one already :
++++++++++++++++++++++++++++++++++++
myfirstMc.myButton.mySecondMcInsideButton.text="mytext";
++++++++++++++++++++++++++++++++++++
thanx, Joeri
View Replies !
View Related
Paths
hello everyone, im new to flash but not a computer newbie, i already do development and decided to give flash a whirl and so far i like
but one thing is really getting on my nerves. I have come to the stage where i am starting to break up my files into multiple swf docs and loading them thro the loadmovie action and get a bit of fancy preloading happening.
BUT when i load a mc into the main time line, none of my buttons on the main time line work. i know i have to fix the paths but i thought i had.
what i had b4 was:
movie clip called content, when buttons got clicked they went to different labels in the content instance of the clip.
now when i load in the movie clip into an empty mc called content1,
content1.loadmovie("content.swf") my content1.gotoandStop("whatever") doesnt work. so i tried _root.content1.gotoandstop("whatever"); still nothing, and loads more...
i have tried loads of things and am almost out of patience. can anyone give me pointers in the right direction? even a decent tutorial anywhere that explains loading mc and using them with actionscript would be cool
View Replies !
View Related
Paths To Objects...?
Hi everybody,
I have a prob:
I got a flashmovie (jack.swf), which contains a telltarget command:
on (rollOver) {
tellTarget ("_level0.info") {
gotoAndStop (2);
}
}
info is a movieclip. Ok this works fine, but I want to insert this movie (jack.swf) into an other swf .I do this with the loadmovie action:
loadMovie ("jack.swf", "_level0.target");
Ok, this works fine, too. The problem now is, that when I rollover the button, jack.swf dont do what it should (telltarget...gotoandplay), Flash says:
Target not found:Target="_level0.info" Base="_level0.target"
View Replies !
View Related
Button Paths
ok ive got an irritating problem.
on my main stage i have two movie clips (MC1 and MC2)
in MC2 theres another movie clip (MC2a) which contains 3 buttons.
I want these buttons to open a specific labelled frame in MC1.
i cant get em to do it - anybody know how?
View Replies !
View Related
Paths Within Files
I have developed a site with multiple swf files within a directory called 'flashfiles' that load each other.
I am trying to run these files from an index.htm file in the root directory i.e. run the start.swf file that loads all the rest of the files.
If I run it from a file /flashfiles/index.htm they all work.
But when I try it from index.htm with the start.swf in both the root and flashfiles directory I get no joy....
I have tried inserting the 'base' code in the html, and it works in Dreamweaver - but not when I try and view it via a browser.
Does this mean that ALL movie loads within my swf files have to be referenced with 'flashfiles/' inorder to work?
Help!
View Replies !
View Related
Target Paths?
Okay.. I am creating scroll bars.... but i need to know to to make a target path... so that it appears in the "insert target path" window... can someone please tell me how?
View Replies !
View Related
Rellative Paths
i dont know if this is actually considererd actionscript, but what the heck. i want to have my flash site work off of a relative path, so instead of puting something like "geturl http://www.poopmam.com/ss1.htm" it would be "/ss1.htm" where you don't have to be connected online to view, just have all of the data.
i would have figured you could just use '/' or '' but i tried that and no luck... if anybody knows give me a hoot or reply to this.
thanks
scott nadeau
View Replies !
View Related
Using LoadSound And Paths
I'm making a CD-ROM with SWF's in one folder, and the MP3 files in a subfolder called "sound". Hence:
[swffolder] - contains SWF's
+[sound] - contains MP3's
I'm using loadSound, but the path I'm specifying doesn't work:
mySound.loadSound("/sound/test.mp3", false);
Is there any way to specify the URL as a path to a relative subfolder, without having to specify the whole path starting at the root?
Thanks!
View Replies !
View Related
Problem With Paths
allright, here is what I supposed the code of my line should be:
_root["Menu.btns2.btn"+Pos].gotoAndStop(1);
but this won't work..
I checked it out with a fixed value:
_root.Menu.btns2.btn1.gotoAndStop(1);
And this works, but I need to change the value because I have 6 different "btn" movie clips,
btn1, btn2, btn3, etc
So I need to access them from the _root
There is a problem with my synthax, could somebody help me out? I can't find any example on
the web.
The main problem is that instead of using, say _root["Menu"+Pos].gotoAndStop(1); ,
I'm using a path inside the [] -> _root["Menu.btns2.btn"+Pos]
Hope someone can help !! Thanks!
View Replies !
View Related
StartDrag And Paths
I have a MC with a ball, on a path, and it is animated. Now I was wondering if I could use the startDrag () function so that when the user clicked on the ball, they could move the ball, but itwould be constrainted to the path? The path is rather complex, because it is for a maze idea. Any help would be appreciated...thanks...
View Replies !
View Related
Dynamic Paths
Alright this is a tough one.
Here is an example:
Number = 5;
_parent['Person' +Number] = new Object();
In the above example, a simple dynamic path is used to make a new object depending on the value of the variable Number. The result would be the same as _parent.Person5 = new Object();
But what happens when that variable contains an actual path?
Path = '_root.Person5.Arm.Hand';
What if I want to assign .Fingers = 5; to whatever path contained within Path?
Thanks, Kim
View Replies !
View Related
Local Paths
Here's my current problem.
I have a webpage that loads my .swf file from the same path and it works fine.
however, i have an option so that users can download the .swf to their local PC. now, when i specify to load it from their local pc (eg: value="c:/path/file.swf") it simply will not work.
i know that it used to work some time ago when i used Flash5, but not that I'm on FlashMX i cant get it working again.
Any ideas??
View Replies !
View Related
Paths Problem
i am having problems passing commands from my main timeline to a loaded swf. i have 5 sections which loads into a movieclip. my navigation bar is in the main timeline. when the user clicks a button of a certain section, i want it to go a certain frame of the loaded movie. how do i do this??
thanks in advance.
View Replies !
View Related
Paths And Masking
I want a "curvy" path to draw itself.
I have traced a persons face with the pen tool. I want the path I drew to come "flying in" and draw itself. I assume this is done with masking, but how in the WORLD do you mask a curvy path?
I hope I have given enough info that my question makes sense...
Thank you for your time!
View Replies !
View Related
Help Needed With Paths
I got a problem with paths. In my main movie(main.swf) i load (me.sfw). Everything works fine with that. In me.swf i load several pictures. It works well when i run only me.swf, but in main move those pictures don't load. Here's a code sample for a button that loads a picture:
code: on (press) { _root.imageholder.loadMovie("image.jpg");
}
imageholder - empty movieclip. How should i specifie the path?
Thnx
View Replies !
View Related
Movie Paths
Hello,
I have developed a simple shell movie which calls in external SWF files and enables variables to be passed between these external files. These files are loaded into Level 1.
The actionscript (e.g. STARTDRAG) in each external SWF file works when each file is played as a standalone movie. However, when I run the shell movie and call an external movie, the actionscript in the external file ceases to work.
I know that this has something to do with levels and paths, but I'm not sure how how to specify these correctly.
Below is the coding I've used as part of my STARTDRAG routine (WORDMC and IBEAMMC are movie clips. Could someone please help me out by giving me an example how to specify the required paths.
Thanks so much.
---------------------------------------------------------------------
on (press) {
startDrag ("/wordmc");
}
on (release, releaseOutside) {
stopDrag ();
if (getProperty("/wordmc", _droptarget) eq ("/ibeammc")) {
setProperty ("/wordmc", _alpha, 0);
setProperty ("/ibeammc", _alpha, 100);
setProperty ("/startmenu1", _alpha, 0);
setProperty ("/startmenu2", _alpha, 0);
setProperty ("/startmenu3", _alpha, 0);
setProperty ("/allprogs", _alpha, 0);
setProperty ("/ibeammc", _alpha, 0);
setProperty ("/taskbarword", _alpha, 0);
} else {
setProperty("/wordmc", _x, /:wordmc_x);
setProperty ("/wordmc", _y, /:wordmc_y);
}
}
Thanks.
Eva
View Replies !
View Related
Using Strings In Paths
I have a for loop which duplicates a movieclip called "mc" in the root. mc has a text field called "tf" inside and I want to load the different texts that I get from an external file to every different copy of the MC "mc". I have written a code but it seems not to work.. Can you help me?
-----
for(i=0; i<Number(loadVarsText.num);i++) {
// num is the number of variables
duplicateMovieClip(mc,"mc"+i,i+1);
lev = "_level"+(i+1);
mec = "mc"+i;
v = "var"+i;
eval(lev).eval(mec).tf.text = loadVarsText.eval(v);
setProperty("mc"+i,_x,100);
setProperty("mc"+i, _y,i*15);
}
-----
Thanx..
View Replies !
View Related
Targeting Paths
hi everyone,
very sinple doubt:
every time we have to target a file in our directories,
for example using -get url-load movie-etc,
we can write the full address http://www ........../ourfile.html
or the relative from where we are folder/ourfile.html
but what if we want to taget a file that is in a folder (one step back) behind the one we are at the moment (in the tree structure),
what do we write if we donīt want to put the full address ????
can we put a sort of ../otherfolder/otherourfile.html
thats all,
thanks
View Replies !
View Related
|