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




Browse Through An Xml (skip Nodes)



Hello all,First of all excuse my badly written english because I'm french I'm actually having problems with some AS code. I have a news ticker successfuly adapted from this site, and it's working okay. But I have to add some features I cannot solve by myself, so I 'm asking some help here. My problem is the following : By what means can I force the Setinterval to be "skipped" (I'd like to add a fast forward/rewind buttons) with a simple MC ? I know a bit about the clearInterval function, but this leads to an akward behaviour of my flash movie (once skipped, the XML is not read in a chronological order… and so on).The trick is that I I have differents controls type : - a simple combo previous/next + play-pause buttons - 4 areas that lead to a particular node (which works partially) Instead of posting the whole code here, I attach my source .fla + XML (to be renamed as .xml extension is not recognized in the attachments) for you to see how messy is my code (more than partially adapted from the news_ticker.fla used on the tutorials here)Thanks anyone for helping me with some answers so I'll be able to finish this project thanks,K.



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 03-26-2007, 03:40 PM


View Complete Forum Thread with Replies

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

Help - Flash Splash Page, Skip, Skip Always, Play.
Hello,

I am trying to give users a way to skip the splash page this time, or ALWAYS skip it. I made that happen by using placing this code on the "skip always" button: (website: http://www.evbc.org/frog/main/index.html )

on(release, keyPress "<Enter>"){
user.data.name = "skip";
user.flush();
_root.gotoAndStop(50);
}

In the first frame of the timeline, I have this code to see if we should skip:

user = SharedObject.getLocal("user_profile");
trace(user.data.name)
if (user.data.name != "skip"){
_root.gotoAndPlay(2);
} else {
trace(user.data.name);
getURL("http://www.evbc.org/frog/main/home.aspx");
}

Ok, so far so good, but if they ever want to play the intro again, how can I set the "SKIP" variable back to "PLAY"? The SharedObject feature will only let you read/write from the same .swf.

Thanks for any help,

-fjhughes

Adding Nodes And Child Nodes To An Xml Tree
Hello Ed, and every1 else.

Can i first say a big thank you for your effort, you didnt have to and i really appreciate it...im somewhat of a novice and am finding my feet.

I can now attach a comment to a node. Prior to that I have imported my xml file - which contains the tree into flash and can now display the tree structure and all of its nodes. the comment is there so thats great.

Is there any way though that you can update the xml file with the comment that you have submitted.

i.e. after you have attached the comment with a node, is there any way that the comment willl be passed through to that xml file itself?

Im thinking i need an attribute in the xml file called say "comment" and somehow when you press the submit button to attach the comment to a node the xml file (the "comment" attribute within) is also updated with the comment.

Skip Flash Intro This Time Only V. Skip Always
Hi there.

I am currently looking for code that would allow the visitor to choose whether or not they want to skip the intro only during this visit or if they would like to skip it permanently. I currently have a script that places a cookie on the users machine and automatically does not show the intro for up to 30 days afterwards. However, I am needing something a bit more flexible instead that allows the user to choose.

Can anyone help? Please?

Thanks in advance.

Flash Intros.....to Skip Or Not To Skip?
Hi folks,

I'm creating a site for a company and this thing is driving me crazy!!
The index or main page has a Flash Intro..BUT they want the intro to be played just the first time someone visits the website, in other words,everytime you open a browser window. If you play the intro, go to another page, and then return to the main, the movie should start from the last frame.

I tried to fix this with Local Shared Objects...but i'm only able to play the full animation in my first visiit! Then the "cookie" do not allow me to play the animation ANYMORE! I want to reset the cookie everytime i close the browser window.....HOW?

Flash Intros.....to Skip Or Not To Skip?
Hi folks,

I'm creating a site for a company and this thing is driving me crazy!!
The index or main page has a Flash Intro..BUT they want the intro to be played just the first time someone visits the website, in other words,everytime you open a browser window. If you play the intro, go to another page, and then return to the main, the movie should start from the last frame.

I tried to fix this with Local Shared Objects...but i'm only able to play the full animation in my first visiit! Then the "cookie" do not allow me to play the animation ANYMORE! I want to reset the cookie everytime i close the browser window.....HOW?

Want To Make A "browse" Button To Browse Users Pc
Anyone know of a component or just a way to make a visual that the user can view and browse their computer to attach a file from their computer to a submit form? Basically it would function similiarly to the "Browse" button at the bottom of this page. Thanks.

Browse?
Hi guys, im trying to setup a browse button using flash8 (keyword, trying)

I have a button component named brws_btn
and a text input named file_url
on stage

I am trying to make it so when a user selects a file from the browse the full url to the file is displayed in the file_url field...
Can anyone help?
I tryed it myself below is what i have....
It doesn't work...


Code:
import flash.net.FileReference;
import flash.net.FileReferenceList;
var listener:Object = new Object();
var files:FileReferenceList = new FileReferenceList();
files.addListener(listener);
brws_btn.addEventListener("click", addFiles);
function addFiles(event:Object):Void {
files.browse([{description:"Mp3 Files", extension:"*.mp3"}]);
}
listener.onOpen = function(f:FileReference):Void {
file_url.text = f.name;
};
Thanks for your time

~Gabor

Browse
Hi,
Is it possible to make a browse button in flash 8?
this is not an internet application. This application that im making that this browse button would be in would be downloaded onto the persons hardrive.
Thanks

OS Browse...
I was asked the question if Flash would be able to browse and upload a file from the user's computer? I wasn't sure, does anyone have the answer?

Thanks in advance...

Browse Button
Hi,

I'd like to know if it's possible to create a browse button in Flash that let choose a file from his hard drive?

and if it's possible can u tell me how can i do it ?

thanks a lot

bye

Browse Feature - HELP
Anyone know how to create a browse feature so files can be searched for on the user's hard drive and uploaded into the flash file?

similar to this <input type="file">

thanx!

Browse Window
Hey I need to somehow allow my user to browse through his harddrive for image files and get the file path to the file he selects and put it in a text box. How can I get a browse window like that? Is there a component for it, possibly? I've looked for one, but didn't find any.


Thanks,
Rick

Browse From Current To Next
Hi,
thank you for reading this!
Well, I am not good att actionscripting. As you can see from the following:
What is the difference between this:

Code:
gotoAndStop(currentframe + 1);
And this:

Code:
_root.gotoAndStop(_root._currentframe+1);
.
I want to simply browse from one frame to the next frame in the main timeline.
The first one sends me back a couple of frames and the second one I found here and I haven´t tried that yet.

Thanx!
Regards
ik.

Browse Function?
hey all, I was just wondering if there's anybody that got an idea for how I can add a Browse function where it will be possible to choose a diretory, like those dialogboxes that sometimes are used in different programs.
I can't seem to find anything on a thing like this, and I have been thinking of maybe I have to use some kinda java applet, but truth is I never tried using java since I can never find any good tuts on the language.. :/

hope somebody got any good ideas for a solution

thanks!

Button To Browse A CD
Hello, I'm new to the forum. I was hoping someone could tell me how to make a button that can access files on a CD. The CD has the Flash projector on it and autoruns as soon as it is popped in. In the movie there are buttons that are supposed to access files on the same CD. Any help would be appreciated.

Browse Window/Box?
Is there a way to make a browse window open so that a user could select a file??

i have a mp3 player that i made with flash, it loads the file, plays it, and can pause stop, gotoNExt and it has a volume control. instead of making the user type in the name of the file and hit the load button, can i make a browse window come up.

with that, a user would be able to select the file, the path would automatically be copyied into the inputTxt field, and then that user would hit load. [then the mp3 file would load - or give an error]

-Any help would be much appreciated;
--Steve

Browse Button
Is there a way to make a browse button in flash?

Browse For File
Hey everyone, i'm writting a program to allow users to upload files to a server through Flash. Does anyone know how to bring up the "Browse for files" Dialog box with flash. so users can search there hard drive for the files they want to upload. I know how to do this with Javascript, but i need it to work inside a flash movie. Thanks for the help.

Browse Files
Hello!

I've created a mail form.

I just need now a help in placing on it something like a "Browse..." button, so I can browse my local disc, and then have a string with a path to this file, that I will send to php code.


Where I can find something like this?? Or how I can create something like this??

Or maybe it can not be done in Flash?

Thank you for any help...

Browse For File
Hello,

Is it possible to create a browse button in flash that allow the user to select a file on their hard drive, which will then be submitted to a web server?

Cheers, guys - you've been really helpful

Browse HD For Image
Greetings all!
Please give me a clue... I want to load an external image into my swf but I want the user to be able to browse their hard drive for the image of their choice. I've searched in vain for a tutorial. Anyone have any insight to this?
Thanks.

How Do I Add A Browse Function
how do I add a browse function to a form allowing a user to attach a file from their hard drive before submission?
cheers in advance

Browse To Upload
Hey everyone! I'm on a team that is developing an interface in Flash MX 2004 Professional and we need to have the functionality where the user can upload a file (graphic, textfile, or music file) from their computer to our server. Is there an easy way to do this? Any direction will be greatly appreciated!

Browse Button
hey everybody... i was wondering if any body knew of like a flash component or something where you can press a browse button and search your comp for a file... and then up load it

just like this, only in flash
http://www.imageshack.us/

is this possible?

[CS3] Flash Browse
Hi Everyone,

I have created a CD-ROM using Flash CS# Professional and AS2, which displays various buttons linking .pdfs, .docs, .pps, and other files.

Does anyone know how I could enable a search of the documents found on the CD? I know that I could create an index in Adobe, but I would rather the directory of the CD to appear. Can any one give any ideas on how I would go about doing this?

Thank you,
Rehannah

Browse For File
hi..

I need to open the windows open dialog box from action script...

I tried the following code, in which i selected a jpg file and loaded it in a movieclip.. It works fine.. But with a small problem.. The problem is that , it can load only the files from the current folder. If i try to open the files from other folders, it doesn't work..

can anybody help me to solve this problem...

here is the code i tried...

import flash.net.FileReference;
var listener:Object = new Object();
var filename;
listener.onSelect = function(selectedFile:FileReference):Void
{
filename=selectedFile.name;
mc.loadMovie(filename);
loadimage=filename;
};
var imageFile:FileReference = new FileReference();
imageFile.addListener(listener);
browse.onPress = uploadImage;
function uploadImage(event:Object):Void
{
imageFile.browse([{description: "Image Files", extension: "*.jpg;*.gif;*.png"}]);
}

Browse And (up)load A Swf Into The Swf?
I'm creating an application, and the end user will need to browse and upload (or just load) a swf into the application.

Is this possible? I quickly glanced over the FileUpload sample file, but I don't know if that will get me what I'm looking for.

Any thoughts?

Browse CD Function
Well, have you ever wondered how the pros create the "Browse CD" button's script using flash and AppleScript. Well I thought the same and wanted to know how to do it. I just can't figure it out. I use "geturl" and link it to the folder and then it opens it in Firefox (Default browser), is there a way to always open it in the Explorer on Windows, and Finder in Mac.

Please could you tell me how to open folders in Mac and Windows in their file browsers Finder and Explorer

Hwo To Make Browse Btn
hi guys, i need to make a browse btn to loade a pic into my PicLoader

when i press on the " browse.btn " make me able to browse my PC partition drive to uplade any pic i want,

FileReferenceList / Browse
I'm using the code below as part of an upload application that we're working on and what I want is for the user to be able to select browse multiple times, and the code below removes previously queued files each time the browse function is invoked. How do I fix this? This isn't the full code, but it's enough to show the problem.

ActionScript Code:
package
{
    import flash.display.SimpleButton;
    import flash.display.Sprite;
    import flash.external.*;
    import flash.events.*;
    import flash.net.FileReferenceList;
    import flash.net.FileReference;
    import flash.net.URLRequest;
    import flash.net.URLRequestMethod;
    import flash.net.URLVariables;
    import flash.events.MouseEvent;

    public class selectonly extends Sprite
    {
        private var _fileref:FileReferenceList = new FileReferenceList();
        private var file:FileReference = null;

        public function selectonly()
        {
            trace("start");
            this._fileref.addEventListener(Event.SELECT, this.selectHandler);
            this._fileref.addEventListener(Event.CANCEL,  this.cancelHandler);
            this.addEventListener(MouseEvent.CLICK, browsefiles); 
           
            ExternalInterface.addCallback("browsefiles", browsefiles);
        }
               
        private function selectHandler (event:Event):void
        {
            trace("select handler");
           
            var file_reference_list:Array = this._fileref.fileList;
            var item:FileReference;
           
            var queuedFiles:Number = file_reference_list.length;;
            trace(queuedFiles);
           
            for (var i:Number = 0; i < file_reference_list.length; i++)
            {
                trace(i);
                item = file_reference_list[i];
                var jsArgument:String = item.name;
                var fileresult:Object = ExternalInterface.call("filelist", jsArgument, i);
            }
        }
               
        private function cancelHandler (event:Event):void
        {
            trace("cancel handler");
        }
               
        public function browsefiles(event:Event)
        {
            this._fileref.browse();
        };
       
       

    }
}

Browse Function
Hi guys,
I have a button which, when clicked, should open a window where you can see a the contents of a folder on a the CD in the CD drive. I have this code

import flash.net.FileReference;

var listener:Object = new Object();
listener.onSelect = function(file:FileReference):Void {
var url:String = 'disegni/DESIGNSTATE' + file.name;
getURL(url, '_top');

txt.text = 'File selected: ' + file.name;
}

listener.onCancel = function(file:FileReference):Void {
txt.text = 'User cancelled';
}

var fileRef:FileReference = new FileReference();
fileRef.addListener(listener);

mc.onPress = function() {
fileRef.browse();
}


the button has an instance name of "mc".

if i wanted to put this code ON THE BUTTON itself instead of on a keyframe on the timeline, how would i need to change the code?

Thanks guys for any eventual help!
mike

How To Browse Cd In Flash
Hi all,

Please help me!!! i wan to know how to browse the cd from a flash projector.

thanks in advance

Browse Button
I don't understend how to get the information about the file that was uploaded. I neet the information because i want to insert the file in data base.



Code:
var fileReferenceList:FileReferenceList = new FileReferenceList();
DobaviKarikatura.BrowseButton.addEventListener(MouseEvent.CLICK, onClick);
function onClick(event:MouseEvent):void
{
fileReferenceList.browse();
}

Uploading Without Browse()?
IS there a way to upload files using the FileReference Class without using the browse() function? I would like to just tell Flash what classes to upload without the browse box popping up.

Any ideas?

Browse For Files
Hello,

I have encountered a problem, which might sound simple but I've spent hours trying to find the solution - without success.
I need a command which will open a browse window on client's computer, in order to retreive a path to a selected file and to store it in text field or a variable. Thanks!

Filereference.browse
hey, please if someone can help me, i'm trying to build a full function music player, the problem is that i can't make a usefull open button. I have try whit the filereference.browse() function but is not enought, I can see the file size nad name, but I can not load the file. For example I can find the file but and error by the path is show like 'can't load file file////C:/...........'.

can anyone tell me a way to set a path or read the path of the choosen file. Thanks.

BROWSE Not Working
Hi all, up until a few days ago the Browse command worked normally. Now the dialog only shows up when I launch the SWF, but not when I launch the HTML. Here's the code (taken from the Help Manual):









Attach Code

import flash.net.FileReference;

var listener:Object = new Object();
listener.onSelect = function(file:FileReference):Void {
trace("Opened " + file.name);
}

listener.onCancel = function(file:FileReference):Void {
trace("User cancelled");
}

var fileRef:FileReference = new FileReference();
fileRef.addListener(listener);
fileRef.browse();

Browse Button
Hi,

I need browse function for subscribe form.
Users must send me some data about them and
pictures from local drive to my mail?

Anyone?

Browse In Flash
This is kind of a misc. question:
Can you by any means of java script or anything else get a browse window to pop up from within flash?
Return the selected file, or even get a php script to upload it?

Thankyou.

SIZE THE SWF IN BROWSE
yow! good day..
i create one flash movie and will insert in html archive w/ 100% for Width and Height.
But inserted the file and changing to w=100% and h=100% the movieClips inner the swf was resizeded too!
:'(
i read something in kirupaForum.com about Stage.Object but i dont know use this code.

please any one can help me?
----->

Thks!

Browse Dialog Box
I'm creating an online mp3 player for a TAFE project, but i want the users to be able to play mp3 files from their own computer. So I'm wondering if theres a way to open a browse dialog box or something so the user can open their files.

Thanks,
Brendan Smith

Reg Browse Method
Hi all,

When I call the browse function it stores the file as an object in my filereference instance. If I can get the path of the file it is damn easy, but the flash.net.fileReference class only gives the name / size etc, but not the file path when we call the browse function.

Is there a way to get the file path when we call the browse function?

Thanks
Thil

Browse Button
Hi,

I need browse function for subscribe form.
Users must send me some data about them and
pictures from local drive to my mail?

Anyone?

Browse In Flash
This is kind of a misc. question:
Can you by any means of java script or anything else get a browse window to pop up from within flash?
Return the selected file, or even get a php script to upload it?

Thankyou.

Browse Pc For Files
I’m developing an application that will run on a local PC as a projector file. The user needs to be able to browse their PC for .jpg files and click on the desired file name. The file name would then be stored and the image would be displayed later in the movie using loadMovie. How can I do this?

Browse Button
Thanks a lot buddies to answer my previous post, it certainly helped alot. There was another thing i wanted to ask, is it possible to create a browse button in Flash to upload a file from a client PC to the server ?

Browse Disk From Swf
Hi,

I need to browse the local disk throgh the flash movie,
Same as the File Button in html,
Is there a build-in method or must i do this by server side coding???


Thanks Eyan

Directory Browse....
Hello, i would like to have a listBox that would GET all files that are somewhere in a folder at my server. Do i need Flash remoting to do something like this? Can´t it be done just using some external PHP script?

Thanks.

FMX-browse Button
Hi everyone!

I was wondering if there is any way to have a browse button in flash. I'm referrring to those html buttons that allow the user to select a file from their computer to be uploaded to the server. i.e: attachment in a web based email site.
I've never seen this feature in flash, I'm not even sure that exisits...unfortunately I have always seen this issue resolved by poping an html window instead.
Any ideas welcome.

thanks!

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