ActionScript 3.0 :: Custom Complete Event For Recursive Directory Listing?

Jun 16, 2009

I wrote a class with directory is listing recursive in async mode all file and subdirectories, sub subdirectories...
 
The problem is that i can not find the solution to dispatch the custom Complete Event then the all files and directories are listened and added to array.

package flashmaster.classes.application
{  
import flash.filesystem.File;
import flash.events.Event;

[Code].....

View 1 Replies


Similar Posts:


Actionscript :: Application Becomes Unresponsive During Directory Listing In Flex 3

Jun 11, 2011

I have designed an AIR application that displays a list with all txt files located in C: directory. I have used following code:

var videoListsArr:ArrayList = new ArrayList();
var folder:File = new File(driveName+":\");
folder.getDirectoryListingAsync();

[Code].....

This function works fine but it is being executed the application is hang and become unresponsive. how to resolve this problem that it displays the list of txt file without making application unresponsive ?

View 2 Replies

Actionscript 3 :: Recursive Folder/Directory Copy With Air?

Sep 13, 2010

Is it possible to use pause/resume function to this??

source.copyTo( destination );

It would be great if you can send it at the earliest.

View 2 Replies

Flash :: Media Server - Main.asc File To Return The Current Directory Listing To A Application

Aug 12, 2009

I need the main.asc file to return the current directory listing to a flash application.

[Code]...

View 1 Replies

Flash :: Upload A Complete Directory Structure With Flex?

Jan 4, 2011

Is it possible to upload a complete folder with subdirectories and files (in the subdirectories) in Flex?

I am using a Flex / BlazeDS / Spring application. The question is not how to transfer the data to the server.The question is: if it is possible to get access to the files and subfolders (recursive) with Flex?

View 2 Replies

ActionScript 3.0 :: URLLoader Fires Event.COMPLETE Although Not Complete

Jun 14, 2011

I made a test where I download a file using URLLoader - something like this:

[Code]....

in the middle of the downloading process I physically disconnect the internet connection. the download stalls - but after aproximately 30 seconds downloadSuccessful is invoked, although only half of the data was downloaded. how can I make sure that the data to be downloaded is complete and correct?

View 2 Replies

ActionScript 3.0 :: Complete Event Triggered But Loading Can't Complete

Feb 17, 2011

I am loading in binary files with the url class which can be quite large 10mb + and it works fine on my server but another server I am testing on it can sometimes not work. Sometimes it will not load the file and other times it will only load about 20% and it throw a complete event??? Then of course other times it works fine. This server is https maybe that has something to do this it?

View 0 Replies

ActionScript 3.0 :: Make A Recursive Button Event?

Mar 14, 2011

I have a menu of 4 buttons and I'm trying to not be redundant and recursively use the same over, out, clicked function for each button by passing it's instance through the event handler.

I haven't had a whole lot of success finding the answer except locating a thread about creating custom classes....Which would be great, but I don't want to re-create my entire structure now. So I was wondering what the best approach might be.

Here's the code I've been working on.

[Code].....

View 4 Replies

Actionscript 3 :: Flex 4 Disptaching Custom Event From Custom Component (why Flex Converting Custom Event To Mouseevent)?

Mar 2, 2012

This is NOT duplicate of my earlier post (its is slightly different)But this is similar issue with similar error but its not the same error The error I am getting now is below while dispatching the custom event from my custom component

TypeError: Error #1034: Type Coercion failed: cannot convert events::MapEvent@a74ab51 to flash.events.MouseEvent.
dispatchEvent(new MapEvent(MapEvent.CLICKED_ON_MAP));

Note: The error in my earlier post is giving below error message

Type Coercion failed: cannot convert flash.events::Event@81ecb79 to com.events.ShopEvent

The difference here are two things, the earlier error is while converting flash event to custom event and now this one is while converting custom event to flash event and secondly, I have no clue why it is trying to convert to the mouseevent where I am just dispatching my custom event with proper listeners.

This is my custome event

package events
{
import flash.events.Event;
import ui.map.MapElement;

[code]...

View 1 Replies

ActionScript 3.0 :: Create Custom Event Class If I Dont Need To Pass Custom Property With That Event?

Dec 28, 2009

Is there a point of creating custom event class if i dont need to pass custom property with that event?

View 3 Replies

ActionScript 3.0 :: Progress Event Is Working Like Complete Event?

Feb 3, 2010

i am using progress event to load video file from url, but it is not showing me preloader, code:-

ActionScript Code:
var urlRequest:URLRequest;
var urlLoader:URLLoader;
urlRequest = new URLRequest("video.flv");

[Code].....

View 2 Replies

Actionscript 2.0 :: Install Custom Classes Into The Global Directory?

Aug 28, 2008

successfully install custom classes into the global actionscript directory?

View 1 Replies

Media Server :: Setting Custom Virtual Directory In VOD Application

Jun 15, 2010

I am running Flash Media Streaming Server 3.5.1 r516 on a CentOS system. I also have WHM/cPanel installed on this system. My scenario is this. We have a large number of MP4 media files that are currently located in a web root directory created by cPanel: /home/mediafa/public_html/fullservices. These all work without a problem when doing progressive downloads. However, we also want to make them streamable with FMS as well. From the documentation, I should be able to create an entry in the /<fms install dir>/applications/vod/Application.xml file to look up files in that folder.

Here is my VirtualDirectory block:
<StreamManager><VirtualDirectory>
<!-- Specifies application specific virtual directory mapping for recorded streams.-->
<Streams>/;/home/mediafa/public_html/fullservices</Streams>
<Streams>/;${VOD_COMMON_DIR}</Streams>
<Streams>/;${VOD_DIR}</Streams>
</VirtualDirectory></StreamManager>

However, when I try to connect to a file that is in that directory, I get a 404 error in the access.00.log file. I've tried to change the owner/group on the fullservices folder as well as the owner/group of the target file to the fms user/group, but I still cannot connect to it. The connection address is rtmp://<ipAddress>/vod/mp4:1005-03m_256k.mp4.

View 1 Replies

IDE :: Mac - Upload The Image On Event.Complete Event?

Apr 14, 2010

I have made my application in CS4 using as3.0. In my application there is one browse btn that upload image/picture on my application. It upload the image on Event.Complete event. This thing work in window's OS perfectly but in Mac it open a window on the click of browse but wont upload the image in my application.

View 1 Replies

ActionScript 2.0 :: Custom Player Is Now 99% Complete, Just One Details Is Missing?

Apr 1, 2007

The one thing that is not working is that the video starts automatically and it shouldn't. I might be wrong but i think the problem lies in the play/pause edit panel, here is a screenshot:Even in the tutorial the teacher put a stop script so that playback is initiated by the audience. That's what the "stop" script is about but the movie still plays automatically when I test it

View 3 Replies

Actionscript 3 :: Make A Custom Auto-complete Component In Flex?

Nov 30, 2010

I need to make an auto complete component in flex that fetches the auto complete results from a remote database using a webservice. I have the webservice and querying part worked out. I've already made custom components in action script by extending VBoxes. However I cannot figure out how to generate the popup window that is supposed to show under the text input in my auto complete text box.

[Code]...

View 2 Replies

ActionScript 3.0 :: Return Data From Custom Class On Complete Loading?

Feb 11, 2010

How do you return data from a custom class, and only when something in the custom class has completed something. For example, let's say I have this code in the custom class[code]...

This, of course, doesn't work. I need the whatever.getLoadedObject() method to wait until the loading has finished inside the custom class then do whatever with the image loaded.

View 2 Replies

ActionScript 2.0 :: Release Custom Cursor After Drag Actions Complete?

Nov 15, 2011

I have an FLA that "erases" an image to reveal something below, at which point the cursor (an eraser bitmap) needs to be released in order for the user to use it to click a print button. You can click the print button with the erase function cursor, but I feel like it is not good user interface. The AS below should delete the eraser cursor and advance to another frame but it isn't.

Code:
stop();
Mouse.hide();
this.createEmptyMovieClip("maskMC_mc", this.getNextHighestDepth());
floorLogoPic_mc.setMask(maskMC_mc);

[Code]....

View 1 Replies

Flex :: Event Flows For Built-in Event And Custom Event

Aug 22, 2011

I hava a custom component and it contains a child icon. If I add a mouse-click event listener to both component(click-listener1) and icon(click-listener2), the event dispatched sequence is click-listener2, then click-listener1. I can understand it. But if I add a custom event to component (listener1), and mouse-click event to icon(listener2), when icon is clicked, the component will dispatch the custom event. In my test, the event dispatched sequence is listener1, then listener2. It doesn't match with event-bubbles rule.

In my opinion The custom event is dispatched in listener2, which triggers listener1. Why event flow sequence is not listener2, listener1?

In component.

icon.addEventListener(MouseEvent.CLICK, iconClickHandler);
private function iconClickHandler(event:MouseEvent):void
{

[Code].....

View 1 Replies

ActionScript 3.0 :: [Flex3] Custom Component Initializes 3 Times On Creation Complete?

Aug 4, 2009

I have a custom AS3 component in a very simple MXML file. The custom component just loads an external SWF using SWFLoader.If you look at the output (below) you'll see it's actually loading the SWF only once, but it instantiates it twice!! What the?Main.mxml is just the Application tag and then this:

Code:
<myComponent:SlideViewer title="SlideViewer" swfName="slides/productInfo" />
SlideViewer.as has this:

[code].....

View 3 Replies

Actionscript 3 :: Flex 4.5 Not Listening To Custom Event Dispatched In Custom Class?

Nov 4, 2011

I have the following situation:I have an event handler, that displays small messages in my application's statusbar.These messages get passes through by dispatching events from custom components.A simple message could be like "HTTP Error" or so.Now, the main event listener, in the main application file, listens to the event dispatched by any custom component,but seems to refuse listening to events dispatched by custom AS classes.Here is my code for the custom event:

package main.events
{
import flash.events.Event;[code]..

So to sum it all up:

- The event listener listens to the custom event dispatched by any custom component.

- The event listener does not listen to the custom event duspatched by an AS class.

Those who wonder, the event really gets dispatched, that's why I added a trace call.

View 2 Replies

IDE :: Event.Complete Not Triggered?

Nov 9, 2009

my completeHandlerI would like it to be triggered when the progress bar is complete.

// uploader script
var URLrequest:URLRequest = new URLRequest("http://mysite.php");
// image types

[code].....

View 1 Replies

ActionScript 3.0 :: Custom Property With Custom Event- A Quick Way?

Aug 25, 2009

i am a bit embarassed to ask this, but i do this so much i have to ask. Occasionally, i need to pass/handle custom events on the fly. Rather than creating a whole custom event class, i will just do something like

Code:
myObject.dispatchEvent(new Event('thisCustomEvent'));
//and then handle it later

[code]....

View 12 Replies

Flex :: Dispatching Custom Event From A Custom Component?

Sep 8, 2011

I have a custom Flex 4.5 component (to be used in a List) -

Game.mxml (represents a clickable playing table in a card game):
<?xml version="1.0" encoding="utf-8"?>
<s:ItemRenderer [code].......

But I never see the "game clicked: " trace. Does anybody please know why? I'm probably missing something minor, because I can see the "Clicked: 8946" trace.

View 3 Replies

Flex :: Disptaching Custom Event From Custom Component?

Feb 16, 2012

This is similar to the question asked here. I am dispatching custom event "ShopEvent" but i am getting error "Type Coercion failed: cannot convert flash.events::Event@81ecb79 to com.events.ShopEvent"Note: Error is thrown from the parent custom component (3rd code snippet), I have added more details thereThis is my custom event. See the first constant, I copy pasted the event name in custom components.

package com.events
{
import flash.events.Event;

[code]......

View 3 Replies

ActionScript 3.0 :: FileReference Not Getting Complete Event?

Feb 24, 2009

Let me start by mentioning that I am using a program called "Koolmoves" that outputs AS3 compliant flash for player 9-10.

For some reason my filereference is not recieving COMPLETE event. Every works fine and file is uploaded etc, and I see the byte total match up in my progress event. but never get the complete event, I also tried the uploadCompleteData event as well and have tried with the PHP code sending a response and also without.

AS3 Code (pb1 and pb2 are buttons)

PHP Code:
import flash.display.Sprite;
import flash.events.*;
import flash.net.FileReference;

[Code].....

View 1 Replies

ActionScript 3.0 :: Event.COMPLETE Isn't Firing

Sep 21, 2009

Can anyone see why my event.Complete isn't firing

[Code]...

View 4 Replies

ActionScript 3.0 :: Event.COMPLETE Not Firing On PNG?

Dec 5, 2009

I'm sure some users on this forum will be aware that AddThis are dropping the Clearspring Launchpad, so I'm writing a new API to get ready for the changeover. Part of that is a base UI that will create buttons for social network sharing destinations. At the moment, AddThis contain all the icons in a single long strip that is 16x3520 pixels in size [URL]...
 
What I'm trying to do is load this into a utility class, but the Event.COMPLETE event never fires, and if the Loader class that loads it is added to the stage, the bitmap is never shown. I thought it was maybe a dimensions issue, but what is curious is that if I place the PNG on a Flash stage and export as a SWF, it loads no problem. If I dump it out as a JPEG, no problem. Its ONLY when the file is a PNG that there are problems trying to load it. I even tried dropping it out as a 24-bit PNG (the original is 8) but that had no effect.

View 2 Replies

ActionScript 3.0 :: Event.Complete Fires Twice

Dec 20, 2009

I am using the code below to load 3 images to use a cursors later in the code.
 
private function loadCursors():void
{
for(var i:Number = 0;i < csrPathArr.length; i++)
{

[Code]....
 
It doesn't work because "updateNumCsrLoaded" is firing 6 times (twice per image) instead of 3. I could just change the if statement to "if (numCsrLoaded == 6)" but this is not

View 5 Replies

ActionScript 3.0 :: Getting Event.COMPLETE In Loop?

Sep 13, 2009

I'm having an issue with a Loader() loading the correct file I need. I've racked my brain and cannot figure out what I'm missing.I have a loop running with a new Loader() each iteration and adding a COMPLETE listener to load the file.

ActionScript Code:
for(var i:uint = 0; i<4; i++)
{

[code]...

As you can see I'm adding the child itemLoader right away, but want it in my addImage function. The problem is I cannot seem to pass any kind of variable with it, telling it "when image 4 is loaded, add image 4". Because the Event comes through, it's the loaderInfo, not the Loader(). The loop finishes before the COMPLETE is finished, and it always seems to add the very last image for each one (last iteration of loop).how to add the image once it's loaded?

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved