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




Windows Path



I have a mp3 sequencer made in FlashMX, and users can load their own mp3s from their hard drive to edit and create a sequence. I'm on a mac so I have no way to implement a PC path. So can someone give me the path to the desktop? Also, is there a difference between Win 95, through XP when it comes to this path? I will make this the default area, but it will be fully custom for the advance user. I plan to have the sequencer up by Sunday just in case you are curious to try it.



FlashKit > Flash Help > Flash General Help
Posted on: 04-11-2003, 01:49 PM


View Complete Forum Thread with Replies

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

Correct Path On A Windows Machine
On a Mac we have username/Library/Application Support/Adobe/Flash CS3/en/Configuration/Classes/
(where the aso files are located).
What is the path on a Windows machine?

Xml Based File Path Problem On Windows
Hi
I'm having a problem with a Flash based slideshow based on the tutorial one from here
http://www.adobe.com/support/flash/applications/jpeg_slideshow_xml/index.html
I've added a timed nextSlide function but basically left the actionscript the same apart from that.
The problem is that the file works fine in a html file on any Mac browser I care to test in, Firfox,Netscape,Safari and even IE5.2 but when I try it in Windows IE6 or firefox, no picture s or titles show. I've tried this under parallels from a "shared" folder, and also on a real pc from the website.
I also tried the original tutorial file and it doesn't seem to work either.
Can anyone cast any light on this problem?
I thought it was the different way paths are defined on Mac & Windows ie / vs so I put everything at the same level and redefined the paths in the xml to be at the same level , but still no go on Windows.
Help! please!

Problem In Running A Flash MX-2004 Application On Windows 98 Adn Windows NT.
Hi all
I have this problem ......here it goes.....
Actually I developed a Flash MX-2004 application which has to run on both mac and windows platforms.
This application does the funciton of a dictionary and has 46 xml files and close to 13000 sound files.
This application runs fine on most Windows platform, however it doesnt work on Windows 98 and Windows NT where though the intro animation comes & the home screen loads....the application part of the program doesnt load.

Why is this so??? I am totally clueless...please help....
Do I have to make the intro and exit animations as separate swf files adn call them????
Please help....

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?

Flash Popup Adverts/windows That Aren't Windows
Hi there

Just wondering if anyone knows any links to tutorials to make those flash adverts you find on websites? They are actual popup windows but flash boxes that appear above a webpage.

I think they use div layers as well as some flash? But im not sure where to find a tutorial!

For an example visit:

http://www.channel4.com/4car/news/index.jsp

(you might need to click on several pages down the left to get one to appear)

Any help on this would be a great help.

Thanks

Is It Possible To Make Windows Icons For Windows Xp With Flash Mx?
I have gotten bored of the simple icons that you automaticly get... and I wondered if its possible to make my own! Is it?

_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

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?

How To Create 'Windows' Windows With Flash?
I'd like to create a windows system like the one we use on windows. This is what i really like:
Yo have some buttons. When u click on any of 'em a popup window opens (inside could be text, image or movieclips or all of 'em). Last window it opens always shows up on top and if u select one that it's behind this comes automaticly to the top. I'd love too if u could minimize 'em and also if eacho one opens into a new swf.
There is a example of what I want here:
http://senocular.com/flash/source.php?id=0.49
But in that example everything is in the same swf, and as I said some lines before I want each window to open into another swf.

...........hope u can help me. Thanks!

_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

Windows Emulator.... Having Trouble With Minimizing The "windows".
I'm creating a website that will behave kinda' like Windows. I have a basic menu that when you click on an option, a window will open up. You can drag the windows and close them. However, I'm having trouble with the minimizing part.

Lets say that I have 3 "windows" (each is a movie clip) called "win1", "win2", and "win3". Each window has an instance of a minimize button. When you click the button, the window should minimize to the bottom of the screen, and line up in the order that it was minimized in (just like Windows). I figured out how to get them to minimize, but I can't get them to sort themselves correctly.

Lets say that I just minimized all three windows in this order:
win1, win2, win3

Now, if I click on win1 to maximize it, I want win2 and win3 to shift over to the left to take the place of win1. Then, if I minimize win1 again, it should go to the end of the row. Resulting in this order:
win2, win3, win1

Does anyone know of any code that I could make these windows sort themselves when they are minimized and maximized?

Thanks!
Lee

Interesting Issue With Flash And Windows - Flash Start With Windows?
Hey guys,
I'm programming a flash application that would run on a user's desktop (using MDM or similar programs to convert to a transparent background EXE).
My client would like to have the users select weather they want to application to start with windows or not. I would like to know how to make my flash application start with Windows without manually adding it (the users won't have to add it to the startup folder themselves). Can flash write to the registry? Can a third party program do it for me? The client wanted to EXE to run without an installation. Thank you very much!
Yuval Karmi

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)

New Windows And Dragabel Windows
Right im new to flash and i need to know how to create a new window inside flash and how to make them dragable

Windows To Mac To Windows Problem
I'm a Mac user and I'm working on a large project with a client who is using Windows XP. My client is creating some Flash content in Windows and then sending the .swfs to me to incorporate into the site.

These files play fine on my computer. I upload them to my web server and my Windows-based clients are able to view them over the web. However, if I email the .swfs back to my client, they won't run on the Windows computer. This is a problem, since it's my client who will ultimately be hosting the site.

There is no problem with .swfs that I publish on my computer and then email to my client.

Any ideas?

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 ?

Launching Flash Windows From Flash Windows
Please can someone help me.

I am trying to create my own personal portfolio on cd. The main interface is a swf and contains a list of buttons (which are the titles of my work). When these buttons are pressed I want to launch a new flash window ontop of the existing one containing the piece of work.

I have looked at javascript popup windows using dreamweaver but have had no luck. I don't know whether this is because you have to use http's or that im thick and have no knowledge of javascript.

If anyone can help me I would greatly appreciate it. I am using Flash MX if it makes a difference. If the solution is using javascript or html can please explain it to me like a 5 year old because I don't know what im doing.

Cheers
Cokey

Launching Flash Windows From Flash Windows
Please can someone help me.

I am trying to create my own personal portfolio on cd. The main interface is a swf and contains a list of buttons (which are the titles of my work). When these buttons are pressed I want to launch a new flash window ontop of the existing one containing the piece of work.

I have looked at javascript popup windows using dreamweaver but have had no luck. I don't know whether this is because you have to use http's or that im thick and have no knowledge of javascript.

If anyone can help me I would greatly appreciate it. I am using Flash MX if it makes a difference. If the solution is using javascript or html can please explain it to me like a 5 year old because I don't know what im doing.

Cheers
Cokey

p.s The new window needs to be a fixed size with no scrollbars, back buttons etc. Just the window.

Loading Flash Windows Projector From Another Flash Windows Projector
I am trying to make the button in my movie load another movie, but I am playing the flash in windows projector, is it posable that you can load a flash windows projector from windows projector, I tried it and had trouble, here is what I had for the action script:

Movie 1 button action script:


on (release) {
loadMovieNum("Movie 2.exe", 0);
}


When I had it as Movie 2.swf it works fine, is it possable to make a .exe to work?

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

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]

Path? ...please Help
Hi all,

Let's assume you have a scroll pane and scroll content is MC1.

What would be the path to that MC1??

_root.ScrollPaneInstanceName ??

Thanks
Natsurfer

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?

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.

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

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,

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

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

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

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

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

Set Path Ai
How would I do a set path ai like they keep following the set path? Such as a race track? thanks

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"

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

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?

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?

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?

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

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.

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

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.

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.

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) ?

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);
}
};

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.

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

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.

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

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