Path Problem ?
Hi, need help
How can I take a printout of a movie clip on scene 1, if the button is pressed on scene 2.
My movie clip contains two frames and each frame has one page.
I want that when I press a button which is on scene 2, then the print of the movie clip which is on the scene 1 must be taken out.
Please do write me the path.
Regards
Ashish
ActionScript.org Forums > Flash General Questions > Other Flash General Questions
Posted on: 01-08-2003, 03:28 PM
View Complete Forum Thread with Replies
Sponsored Links:
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.
View Replies !
View Related
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?
View Replies !
View Related
_root.path="http://www.sitename.com/path/FlashSite/"; Script Issue While Online
Hi there,
I inserted _root.path="http://www.sitename.com/path/FlashSite/"; in the beginning of my action script (2.0). This script accessing contents from an access database, which is working fine, when I tested from my local system folder. But no content from database is displaying while it tested from my localserver (127.0.0.1/path/FlashSite) or from online server.
From a search I found it might be the issue with "Network Access Warning". Is there any other reason? If this is the reason, then how can I resolve it?
For example, how should I replace this -
setTimeout( function(){ _root.content01.content02.gotoAndStop("cont_a");}, 1000 );
Thanks in advance
Shine
View Replies !
View Related
Variable Path Name --> Path=_root
instName="inst1";
path="_root";
Element.prototype.setVisible = function(){
[path+"."+instName]._visible=true;
}
I am trying to build a variable path to an instance. Normally I would do something like this[var]._x, but this doesn't work with _root.
Any ideas?
View Replies !
View Related
_root.path="http://www.sitename.com/path/FlashSite/"; Problem While Online
Hi there,
I inserted _root.path="http://www.sitename.com/path/FlashSite/"; in the beginning of my action script (2.0). This script accessing contents from an access database, which is working fine, when I tested from my local system folder. But no content from database is displaying while it tested from my localserver (127.0.0.1/path/FlashSite) or from online server.
From a search I found it might be the issue with "Network Access Warning". Is there any other reason? If this is the reason, then how can I resolve it?
For example, how should I replace this -
setTimeout( function(){ _root.content01.content02.gotoAndStop("cont_a");}, 1000 );
Thanks in advance
Shine
View Replies !
View Related
Wrong Path Given, What Path To Use?, And Why?
Since the beginning of my Flash time, i never solved the 'giving path' problem in Action Script.
Most of the time my paths work, but sometimes they only work in an empty .fla file and not in my homepage.fla file with the code in another scene.
This time it's the code in the timeline (layer: actions, frame 2, scene: control_panel_sc, .fla file: homepage.fla):
stop();
ccbTime.addItem("tidfme2");
I tried naming the path to:
this.ccbTime.addItem("tidfme2");
super.ccbTime.addItem("tidfme2");
_root.ccbTime.addItem("tidfme2");
_parent.ccbTime.addItem("tidfme2");
_global.ccbTime.addItem("tidfme2");
_level.ccbTime.addItem("tidfme2");
_leven0.ccbTime.addItem("tidfme2");
this._root.ccbTime.addItem("tidfme2");
even adding the scene name to it:
this._root.control_panel_sc.ccbTime.addItem("tidfm e2");
etc. (thus the above paths again + scene name)
All paths above don't work, meaning, i can't see the value in a component ComboBox, though in an empty .fla file i do see this value.
Because you can't help me out without actually seeing the .fla file, i uploaded it:
(every link is the same file, so just choose one URL).
http://pcxpert.dyndns.org/homepage.fla
http://pcxpert.dyndns.org/homepage.zip
http://www.uploading.com/?get=YQ0G1UIC zip version
http://www.uploading.com/?get=VWE6WZKO .fla version
http://members.lycos.nl/johnwhello/homepage.fla
http://members.lycos.nl/johnwhello/homepage.zip
ftp://pcxperting:flash@pcxpert.dyndns.org/homepage.fla
ftp://pcxperting:flash@pcxpert.dyndns.org/homepage.zip
Also, you're authorized to change any file at ftp://pcxperting:flash@pcxpert.dyndns.org (the future pcxperting.com that is made by and made for pcxperts)
View Replies !
View Related
AS3 - Path Problem ? Var In Path Problem Not Working
hitrect1_mc.buttonMode = true;
hitrect2_mc.buttonMode = true;
hitrect3_mc.buttonMode = true;
hitrect4_mc.buttonMode = true;
hitrect1_mc.addEventListener(MouseEvent.CLICK , cl1);
hitrect2_mc.addEventListener(MouseEvent.CLICK , cl1);
hitrect3_mc.addEventListener(MouseEvent.CLICK , cl1);
hitrect4_mc.addEventListener(MouseEvent.CLICK , cl1);
function cl1 (e:MouseEvent):void{
xa=e.currentTarget.name.charAt(7);
for (i=1;i<=xa;i++){
targets = "bar"+String(i)+"s_mc";
trace (targets);
soundrect_mc.targets.gotoAndStop(2);
}
well it traces bar1s_mc if it's exact as the code.
if i remove soundrect_mc.targets.gotoAndStop(2); it traces all targets.all 4 of them.How do i make flash recognize "targets" as a path to a movie clip ?
View Replies !
View Related
Path
hi all,
i have an mc(1) on the main timeline and another mc(2) inside mc(1); what would the path be to control mc(2) from within mc(1)? i tried things like:
mc1 and mc2 = instance names of mc(1) and mc(2)
_root.mc1.mc2.gotoAndPlay(2);
or simply
mc2.gotoAndPlay(2);
none of these work;
i appreciate any help here.
thx
View Replies !
View Related
Path?
Ok, I've been trying this for hours now...still can't get it working...
Let's suppose I have a holder MC placed in _root.othermc.HolderMC and now I'm loading an external swf (my.swf, located on a different domain than Holder MC) into this Holder. What do the LOADED and the TOTAL vars below have to look like ?!?!?
Holder.loadMovie("http://www.whatever.com/my.swf");
Holder._x = 0;
Holder._y = 0;
this.onEnterFrame = function() {
LOADED = Holder.getBytesLoaded();
TOTAL = Holder.getBytesTotal();
PERC = LOADED/TOTAL*100;
Please.....anyone...
[Edited by Natsurfer on 08-09-2002 at 03:28 PM]
View Replies !
View Related
Path
Hello again .. :-)
I am having trouble with loading and unloading movies.
this is my setup:
Mastermovie: _root.createEmptyMovieClip("container", 10);
loadMovie("pan_svaneke1.swf", "container");
container._x = 30 ;
container._y = 40 ;
* Container
- pan_svaneke1.swf
* dragcontrol
* picture
* image
In the image clip I have a botton
and now I want to unload pan_svaneke1.swf and replace/load pan_svaneke2.swf ....and so on But how?
View Replies !
View Related
Path To CD
Does anyone know how to create a dynamic path to a users cd player? I am working on a site that all the flash, images and sound files will be distributed on a cd and called from a html page.
View Replies !
View Related
Help Path?
sometimes I have the hardest time understanding the parent-child relationship. OK, heres what i got. ive got 4 buttons on my main timeline, each with a drop down menu with three buttons. (now these are all called with movie clips by functions.)
now I need to (attachMovie) an effect on the rollover buttons from the drop down menu. follow?
=============================================
\ DropMenuMC is the name of the MC that triggers when the user rolls over one of the main 4 buttons. negative (resides in DropMenuMC)and is the instance name of the MC/button
that needs to be rolled over to get the effect (DMfxID the export name, DMfx the instance name).
=============================================
negative.onMouseUp = function() {
_root.attachMovie("DMfxID","DMfx",6);
_root.DMfx._x = negative._x;
_root.DMfx._y = negative._y;
}
=============================================
i set the depth to 6 (because its just higher than the last depth that was set)
I have this action placed on the first frame of DropMenuMC. i have tried it on the main timeline and have tried several variations of a target path to get it to work. any inkling of an understanding thrown my way will be greatly appreciated - thanks.
geoff
View Replies !
View Related
Path From Php
Hi guys,
I would like to know one thing. I have an external movie called register.swf that fits in the middle of my index page. I have created a form in php called contact.php. This form opens in a new window. It is a pop-up window, in fact. When the person has finished to fill in the form, he or she presses the send button. By doing this, it calls an other php file called email3.php. Now, this php file meant to send all the information to my email address. However, I am using one line at the end and I don't know what to call to add the final touch of my message: Your request has been sent. Thank you!
Here is the code I am using in flash: echo "_root.input.EmailStatus=Complete - Your mail has been sent";
php?>
Let me comment: _root should be where all my external movies are going. input is the flash layer where my variable name called: EmailStatus is located. Now, is it the right path? It is all I am asking.
Thank you,
View Replies !
View Related
Path Q...HELP PLEASE
i have a MC named "bob1_mc" in my root timeline...i have "bob2_mc" inside of "bob1_mc"...at a certain point of "bob2_mc" i want to jump to frame label "two" in "bob1_mc"...right now i have...:
_root.bob1_mc.gotoAndStop ("two");
whats wrong here, it doesnt work...?
thanks
View Replies !
View Related
How To Set A Path?
Hello everybody,
I have a question to which the answer may be very simple, but I cannot find it anywhere.
I would like to show a picture in a movie clip called holder.
For that I use a variable called 'pic'. Right now this picture is
saved in the same folder as my fla-document. My question is: what
do I need to type after the variable called 'url' to be able to load the pic from another folder on my pc. For example:
/desktop/my_pics/
url = ???
pic = ???; (e.g. homer.jpg)
loadMovie(url, pic, "holder");
If you know the answer please let me know
View Replies !
View Related
Help With A Path Please.
hi, i have built a contact form in a previous project and am not brilliant at actionscript.
the original project is one .fla/.swf the different pages are in keyframes along the timeline. The contact page has a movie clip named contact_mc. The submit button has code and includes the path below to load variables to.
loadVariables("newmail.php", "_root.contact_mc", "POST");
In the new project i have a .fla named flash_root which has different .swf movies loaded in as the different pages.
_root.createEmptyMovieClip("empty_page_mc", 2);
all pages are loaded into this empty container.
So; i have contact_page.swf loaded into empty_page_mc and the movie clip contact_mc is in/on the contact_page.
Do i need to change the path above to _root.contact_page.contact_mc
or
_root.empty_page_mc.contact_mc?????
if you can help can you give a bit of a description as to why which path is right so i dont forget the principles behind it.
Many thanks
Stu
View Replies !
View Related
Path Help
Why does this work for the MC outside of another clip, but not for the MC inside of another clip. I have included trace actions that show the path that is being passed.
Thanks.
_t
View Replies !
View Related
Path Help
say I have a main folder called flash
now i have a menu.swf file in the flash folder
also in the flash folder I have the folder pages
within pages i have a homepage.swf and hometext.swf ( which loads a home.txt file from a text folder within the pages folder )
now in homepage.swf, the file hometext.swf is loaded into an empty movie clip called mtClipText
the homepage.swf is loaded into an empty movie clip in the main movie home.swf called mtClipContent, where menu.swf is also loaded into a different empty movie clip called mtClipMenu
so if i wanted to click on Home in the menu.swf file in the main directory "flash" how do I get it to load the hometext.swf file into the empty clip in homepage.swf
View Replies !
View Related
What Is The Path..
Hi there
What would be the path for a dynamic textbox loaded into a swf that is loaded into a scrollpane
so I have the scrollpane, inside it a swf and inside the swf a dynamic textbox......that I can't seem to find.....
thanks anyone who could help me "stay on the path"
View Replies !
View Related
Path
Hello
I am learnig how to use 3dflashanimator and have a problem...
I know how to force the element to follow the path but what do I need to do if I want it to follow the path and rotate around itself's center at the same time???
Regards
Wojtek
View Replies !
View Related
Path
I have put together a Mp3 player and it works on my desktop and when I click on my swf file in go-live it works but when I click when I'm in the local browser the songs do not play even thought there all in the same file and the path is correct. is there an answer to this problem?
View Replies !
View Related
Path
I have a movie clip on my stage called "main". Inside that movie clip, I have 5 other movie clips called "thumb1","thumb2","thumb3","thumb4","thumb5".
Than I have an action on the main stage with these actions...
code: loadMovie("th_1.swf", _root.main.thumb1);
loadMovie("th_2.swf", _root.main.thumb2);
loadMovie("th_3.swf", _root.main.thumb3);
loadMovie("th_4.swf", _root.main.thumb4);
loadMovie("th_5.swf", _root.main.thumb5);
This action is suppose to load some other swf files onto the stage.
It works if I have my "thumb1","thumb2","thumb3","thumb4","thumb5" clips on the main stage. But if I put them into the "main" movie clip it doesn't work.
I suspect it has something to do with the path, but not sure.
Any ideas of what I'm doing wrong?
Please?
View Replies !
View Related
Specifying A Path With AS3
This is probably a simple matter, but I am having an issue with the path when I reference files. For some reason when I try to call an swf with flash it starts looking at the root folder when it is posted on the server.
Let me see if this makes sense. Here is my hierarchy.
Root
>pages
>>homepage
--mainfile.swf
>>>images
---subfile0.swf
---subfile1.swf
I want mainfile.swf to look in images to reference the two subfiles. For some reason it starts the search for the images folder in the Root. Here is the code that is used for mainfile.swf to try and reference the subfiles:
banners = new Array("images/subfile0.swf", "images/subfile1.swf");
function randomBanners() {
randomNumber = random (banners.length);
loadMovie (banners[randomNumber], "_root.bgClip");
}
randomBanners();
How do I get it to search from the folder that contains mainfile.swf?
View Replies !
View Related
FLV Path
Hi
I have a mediaplayer component on the stage which plays a video with the folloing code
Quote:
movie_mc.setMedia("my_video.flv","FLV");
The file must play from the web and cd: from the CD the root is one folder, and when playing from the Web, the root is another.
But I would like to have one .swf.
Is there listener to check if it loads, and if not load the other url?
thanks
View Replies !
View Related
SWF Path
For the love of God, I'm trying to load a local SWF from something like this
media/blah.swf
my main SWF is in the same directory as "media" though not inside it.
I'm getting a #2035: URL Not Found. I have a ioErrorHandler and its returning teh URL below:
file:///C|/Documents%20and%20Settings/Gman/Desktop/PTC/project8/media/_PDF7.swf
If I copy and paste this in a browser window it brings up the file (_PDF7.swf), why can't flash sees this?
any help would be greatly appreciated.
View Replies !
View Related
Path To Jpg?
Hello,
I got this anoying problem that i can not get rid of.
It's is the path to my jpg.
This jpg will load into a movie clip along side a txt file.
This txt file and the jpg are both in a different folder then that my mc is (It's one down, called collectie).
My code is:
Code:
on (press) {
//Create the LoadVars object and load data
myData = new LoadVars()
myData.load("collectie/collectie2006_1.txt")
//Callback handler and binding
myData.onLoad = function(succes){
if(succes){
titel_txt.htmlText = "<b>"+this.Title+"</b>"
tekst_txt.text = this.Comments
foto_mc.binnenfoto_mc.loadMovie(this.Image)
trace(foto_mc.binnenfoto_mc);
} else trace("Error loading data")
}
}
I know i set the path towards the txt file but can not figure it out how to set the path to the jpg.
anyone?
Thanks,
Demeter
View Replies !
View Related
Right Path ?
What i'm trying to do is i've 2 files,i've uploaded one. This file which has been uploaded has a button which will open my other file called blah.htm. This button isn't working properly cuz the path i set is wrong .This path should be like /..blah.htm or something ,i'm not sure . Eg. when we've to load a file in flash ,we use load movie action," blah.swf" i wanna do the same thing but in this case it can't be done like we do in flash , its an html site , eg. when we click on "about button" on an html site the about section loads, in this case the about section hasn't loaded by load movie action , the path wasn't on release load movie blah.swf ,level 1 ,in this case path was like c:/..blah.htm or something. The path i'm setting is wrong, i need help with that.Can anyone help ?
Thankyou.
View Replies !
View Related
Path
what is wrong with this code? i think it has to do with pathing.
ActionScript Code:
on (release) {
stopDrag ();
if(this.letterA._droptarget == "_parent.target2"){
trace("ok");
tellTarget("_parent.target2"){
setProperty("_parent.letterA",_visible,false);
gotoAndPlay("show1");
}
}
}
basically i want to load the movie clip called dragdrop to the main movie clip, called holder. but it didn't work at all.
View Replies !
View Related
Path 2 Obj
I am an ActionScript Newbie. I have some doubt in path to objects. In the main time line there is only one frame and two layers. A movie clip (named m1) is in the 1st frame of the main time line. In the other layer, on the main time line is a dynamic text box with a variable v1. If I wish to display the _x position of a rectangle in the mc (m1) in the text box, I set the action as v1=_root.m1._x in the 2nd layer 1st frame but it doesn't works. how do I refer directly to the rectangle (v1=_root.m1.rectangle._x) ?
View Replies !
View Related
Path To Pic/s HELP
WTF:
This is a dynamic photo array that calls thumbs, txt and images from an xml file.
QUESTION:
I can't figure out how to set/change the location that the pics are called from?
BLA BLA BLA:
The xml path for text is a path type that I'm familiar with -- gallery_xml.load("stuffisHERE/gallery.xml"); -- but I just can't see where to put the path to pics. There is a path built into the xml file example I used -- <gallery path="stuffisHERE/"> -- but that doesn't seem to effect anything. As it stands, the code below requires the pic's to be in the same folder as the .swf.
---------------
spacing = 10;
bar._visible = false;
containerMC._alpha = 0;
var pArray = new Array();
var tArray = new Array();
var t2Array = new Array();
var t3Array = new Array();
var t4Array = new Array();
var t5Array = new Array();
var t6Array = new Array();
var thumbArray = new Array();
MovieClip.prototype.loadPic = function(pic) {
containerMC._alpha = 0;
cur = pic;
this.loadMovie(pArray[pic]);
this._parent.onEnterFrame = function() {
var t = containerMC.getBytesTotal(), l = containerMC.getBytesLoaded();
bar._visible = true;
percentage._visible = true;
per = Math.round((l/t)*100);
if (t != 0 && Math.round(l/t) == 1 && containerMC._width != 0) {
var w = containerMC._width+spacing, h = containerMC._height+spacing;
border.resizeMe(w, h);
bar._visible = false;
percentage._visible = false;
title.text = tArray[pic];
medium.text = t2Array[pic];
date.text = t3Array[pic];
plate.text = t4Array[pic];
series.text = t5Array[pic];
paper.text = t6Array[pic];
delete this.onEnterFrame;
} else {
bar._width = per;
percentage.text = per+" % loaded";
}
};
};
MovieClip.prototype.resizeMe = function(w, h, pic) {
var speed = 3;
this.onEnterFrame = function() {
this._width += (w-this._width)/speed;
this._height += (h-this._height)/speed;
if (Math.abs(this._width-w)<1 && Math.abs(this._height-h)<1) {
this._width = w;
this._height = h;
containerMC._x = this._x-this._width/2+spacing/2;
containerMC._y = this._y-this._height/2+spacing/2;
containerMC._alpha += 5;
if (containerMC._alpha>90) {
containerMC._alpha = 100;
delete this.onEnterFrame;
}
}
};
};
var gallery_xml = new XML();
gallery_xml.ignoreWhite = true;
gallery_xml.onLoad = function(success) {
if (success) {
var gallery = this.firstChild;
//you had here i=-1;etc it should zero, cause xml(childnodes) are like arrays zerobased
for (var i = 0; i<gallery.childNodes.length; i++) {
tArray.push(gallery.childNodes[i].attributes.title);
t2Array.push(gallery.childNodes[i].attributes.medium);
t3Array.push(gallery.childNodes[i].attributes.date);
t4Array.push(gallery.childNodes[i].attributes.plate);
t5Array.push(gallery.childNodes[i].attributes.series);
t6Array.push(gallery.childNodes[i].attributes.paper);
pArray.push(gallery.childNodes[i].attributes.source);
thumbArray.push(gallery.childNodes[i].attributes.thumb);
}
// it takes a little time before the arrays are set, so we need an interval
//to be sure that the arrays are defined
//interval for loading the first picture
delay = setInterval(loadFirst, 100);
//interval for duplicating the thumbs, the id is global,
//so it can be easy reset in scrll
_global.idsetTh = setInterval(dragwindow.scrll, "setThumbs", 100);
//interval for loading the thumb pictures
_global.idloTh = setInterval(dragwindow.scrll, "lothmb", 100, 0);
} else {
persentage.text = "Error!";
}
};
//function for loading the first picture
function loadFirst() {
clearInterval(delay);
//0 is the first pic in the array
containerMC.loadPic(0);
}
gallery_xml.load("barcelona/gallery.xml");
prevb.onRelease = function() {
//cur == 0 ;-))
if (cur == 0) {
containerMC.loadPic(pArray.length-1);
} else {
containerMC.loadPic(cur-1);
}
};
nextb.onRelease = function() {
if (cur == pArray.length-1) {
//loadPic(0)!!! ;-)))
containerMC.loadPic(0);
} else {
containerMC.loadPic(cur+1);
}
};
View Replies !
View Related
Path Help
Maybe I'm being a bone head here but could someone help me with understanding paths. I've enclosed a zip file that I believe will make quick work of it all. What I want is for the button on the main level to play the animation on level 3.
View Replies !
View Related
FLV Across UNC Path
I am writing a large piece of education software for schools. It is mostly written in Flash but uses Director to handle the FileIO. After 9 months of development one of the final problems that I have is that the FLV files will not run when the application (which is an EXE) is run over a UNC path.
The path to the FLV needs to be absolute as the software allows schools to install ‘resource packs’ (containing FLVs, JPGs etc, etc) on any server and the application pulls in the resources from these different locations. All the other ‘resources’ load in fine (i.e. the SWFs, MP3s and JPGs) but the FLVs will not play. I am using the FLvPlayback componant and I assume that I am hitting a security issue with the playback of FLV files across UNC paths (which I assume Flash treats with the same security as Cross-Domain). Is there a solution or is it the case that there is no way to playback an FLV file across a UNC path.
Regards,
James
View Replies !
View Related
Following A Path. . . Exactly
Hi there,
I am trying to animate what I can only best describe as a 'Heart Rate Monitor' animation.
I want a small line to cross the screen with the typical up-and-down characteristics of a heart rate monitor. The basic principal is easy. Create a symbol, create a path, connect them and then motion tween...
However, even when set to 'orient to path' the line jerks around the corner from one way to the other. Is it possible to get the line to curve around the corner instead?
In essence what I am looking to do is animate a straight line around a corner, but have the straight line curve around the corner with the path instead of flicking from one direction to the other.
Hope someone can make sense of that!
Cheers,
Al.
View Replies !
View Related
Path Help
In the attached example, why does the clip located outside of another clip work properly, while the clip inside another clip does not.
In this example, I have a "masterMC" that is made up of "partMCs."
The "partMCs" are all asigned Color Objects named "thisColor."
The "thisColor" objects are then all assigned the correct colors.
This is all done via action script and works nicely in the "masterMC" located outside of another MC. It doesn't work with an identicle "masterMC" located within another MC.
I have included a trace action that shows the path that is being called.
Please help.
Thanks.
_t
View Replies !
View Related
Path To TXT?
Hey all. I am trying to create a new flasher that loads the news from an external .txt file. It seems very simple, but nowhere can I find how to path my news ticker to my external file. I am using one of the tutorials on Kirupa.com.
Here's the link: http://www.kirupa.com/developer/mx/newsflasher.htm
I am getting stuck near the end where it reads:
"-- PATH TO TXT: 'set a path to your external TXT'"
Any help would be appreciated.
View Replies !
View Related
Following The Path...
Ok first of all you're very wellcome to tell me if this question has been already answered ..but here it is... I know how to make object to follow the path (motion guide) but I need couple of objects following different paths but when i roll over one of those objects
the hole sistem should stop.Object would be buttons. And don't really know how to do it with motion guide.Need help thank you...
View Replies !
View Related
Get Path?
Hi, how am I going to get the path of a file that I've selected
with a FileReference.browse()?
I can get the name and stuff, but how can I get the whole path?
View Replies !
View Related
Path To MC?
Hi,
I'm trying to load a picture into a mc, binnenfoto_mc, that is in another mc,foto_mc, that are in the swf called, collectie2. This collectie2 i will load into my main movie, ed.swf.
Now my problem is that the text files will load but the picture i can not get to load to its mc.
What am i doing wrong here?
Code:
on (press) {
myData = new LoadVars()
myData.load("collectie/collectie2006_2.txt")
myData.onLoad = function(succes){
if(succes){
titel_txt.htmlText = "<b>"+this.Title+"</b>"
tekst_txt.text = this.Comments
foto_mc.binnenfoto_mc.loadMovie(this.Image)
} else trace("Error loading data")
}
}
Thanxs,
Demeter
View Replies !
View Related
Path?
What path should be given inside a btn. to open a file on a remote server. Eg. C:My Documentsme.html(path) is a hyper link or internal link in my computer , it won't work on remote server.What's the correct path to open me.html on remote server ,how should i set path inside a button which will open the above mentioned file ?
Thankyou.
View Replies !
View Related
Path Help
In the attached example, why does the clip located outside of another clip work properly, while the clip inside another clip does not.
In this example, I have a "masterMC" that is made up of "partMCs."
The "partMCs" are all asigned Color Objects named "thisColor."
The "thisColor" objects are then all assigned the correct colors.
This is all done via action script and works nicely in the "masterMC" located outside of another MC. It doesn't work with an identicle "masterMC" located within another MC.
I have included a trace action that shows the path that is being called.
Please help.
Thanks.
_t
View Replies !
View Related
Path To TXT?
Hey all. I am trying to create a new flasher that loads the news from an external .txt file. It seems very simple, but nowhere can I find how to path my news ticker to my external file. I am using one of the tutorials on Kirupa.com.
Here's the link: http://www.kirupa.com/developer/mx/newsflasher.htm
I am getting stuck near the end where it reads:
"-- PATH TO TXT: 'set a path to your external TXT'"
Any help would be appreciated.
View Replies !
View Related
The Path
here's how my movie is "layered"...
a movie clip called "mainmenu" which holds another clip called "leaves" and a dynamic text field called "menusubject". "leaves" holds about 6 buttons which i'm wanting to use to change the text in "menusubject" here is what i have now...
Code:
on (rollOver) {
_root.mainmenu.menusubject = "Menu One";
}
on (rollOut) {
_root.mainmenu.menusubject = "";
}
now...i was thinking that _root would take the command to the beginning then you work your way back in via naming off the instances. am i real far off cause this isn't working. much appreciated...
View Replies !
View Related
MC Path
I have an MC with an arry of textfields set up like this
Code:
repTextFields = ["firstName_txt", "lastName_txt", "street_txt", "city_txt", "state_txt", "zip_txt", "email_txt", "password_txt", "confirmPassword_txt"];
On the root level I have a function that enables the tabbing of those textfields
This function is called also from another function on the root.
The problem is getting the correct path of the textfields when they are strings in the arry. I have to keep them as strings in the array.
Code:
function enableTabbing(mc, arr) {
trace("ARR :"+mc[arr]);
var path = mc[arr];
for (var i = 0; i<path.length; i++) {
path[i].tabEnabled = true;
}
}
the function is called like this
Code:
enableTabbing(mainContentPanel_mc.repContent, "repTextFields");
mainContentPanel_mc.repContent would be the mc that has the array in it
"repTextFields" would be the array name
I used it as a sring but that would just give me the string elements in the array and not the full path
example: _level0.mainContentPanel_mc.repContent.email_txt
How can I get this path with the enableTabbing function I have above
Code:
this[textFields[i]]
The above would work if I used it inside the mc that the array resided in.
Thanks
View Replies !
View Related
Flv Path
I'm having some trouble again with loading FLV's through the browswer.
Works fine through the Flash Player standalone and in test movie mode.
I have a script that detects the player type and uses the appropriate pathname
Here it is
Code:
var type:String = System.capabilities.playerType;
trace(type)
switch(type){
case "External":
contentPath = "../video/vid.flv"
break;
case "StandAlone":
contentPath = "../video/vid.flv"
break;
case "PlugIn":
contentPath = "video/vid.flv"
break;
case "ActiveX":
contentPath = "video/vid.flv"
break;
}
It doesn't load in the browser from some reason.
Any thoughts?
View Replies !
View Related
Path
Hi,
I am having a path problem. The frame that I want to attain is located on level 1, frame 2, within movie clip mc1.
I want to click the green oval button from the root level, but cannot figure out how to reach the "FRAME 2"
Kindly advise
View Replies !
View Related
Swf Path And XML Help
Anyone know this, please?
From XML I load thumbnails (like gallery).
Insted of loading large image from thumbnails I call flash
movie (preview.swf) from directory w0001, w0002, etc (these directories are child to directory gallery).
If I run preview.swf everything works fine,
but problem is when I run gallery.swf. In right panel
preview.swf appears, but it says that cannot find
"C:Gallery1.jpg"
but original location of that file are
"C:Galleryimagesw00011.jpg"
It it to easy to write down path to that location, but I need to tell gallery.swf to look for pictures from directory w0001, w0002, etc.
This is important if I deside later to create more directories (w0003, w0004 ,..., w1000), without compiling again.
Sorry if I was n't clear. Just say and I try to write more carefull.
My Eglish is not so good.
Thanks in advance.
View Replies !
View Related
Variables Path?
i'm trying to set the value of a variable that i'm loading, this is the AS i have attached to the button now.
on (release) {
_level2.targetx = 800;
loadMovieNum ("barspics.swf", 2);
}
it does nothing. i've tried several variations, still nothing. i'm trying to set teh variable from my home movie to level 2. I can't do it from within the movie clip because i already have it set for a different event.
thanks
e
View Replies !
View Related
Please Help With Absolute Path
On scene 1 I have an MC "drop", in drop I have an MC "tx" with the instance name "vtext" as below
_root
drop
vtext
within MC "drop" I want to duplicate instance "vtext" and I have been trying to use the code below, it doesn't work. What am I doing wrong?
_root.drop.duplicateMovieClip(_root.drop.vtext, "vtext"+vn, vn)
Thanks
View Replies !
View Related
Specific Path......
I have a mc that i want to go down a random path either at 25 x or 50 x. Can someone help me out with this coding. I know its something simple i jsut cant remember. And i need it either at 25 or 50 so
_x = random(500)+360;
wont work
View Replies !
View Related
|