Making .mov to loop inside flash
I have a seamless quicktime .mov of clouds I want to use as a background.
I set my flash animation to loop...but at the end of the .mov file instead of looping it just quits.
How do I get the quicktime .mov file to loop within flash?
Using Flash CS4
Re: Loop inside a loop making performance poor!!!Yup, it probably will be.
Your nested loops have an advantage in that they give you control over the process of what is happening. Unfortunately due to several factors including context switching between pl/sql and the sql engine this process is all but certain to be slower than doing the work in SQL.
Instead of nested loops which call a procedure define a cursor directly your routine to get the data, then use a bulk collect - you can read about them in the documentation - to load your collection. One select with a bulk collect is all but certain to be faster than loading each row one item at a time.
Similar Messages
-
Captivate movie clips looping in Flash
I've read the discussions on the forum, but nothing seems to
be able to stop a captivate 2 movie clip from looping when brought
into Flash. I exported the captivate movie with the default values,
converted it to a movie clip in Flash8 so I could resize it,
brought the movie clip into the Flash movie by dragging it to the
stage. Everything looks great, but I can't stop the clip from
looping. Stop commands placed within the movie clip seem to have no
effect nor do commands put on the main timeline.
Thanks for the help.Hi there
Hopefully someone here will have an answer for you. In the meantime you might also wish to post this question in the forums for Acrobat.
Click here to visit the Acrobat forums
Cheers... Rick
Click here for Adobe Certified Captivate and RoboHelp HTML Training
Click here for the SorcerStone Blog
Click here for RoboHelp and Captivate eBooks -
Can we open Web pages inside Flash Movie!!!!!
Is there a way to open HTML Webpages inside Flash Movies
Please Help...............you can display certain html tags in an html-enabled
textfield or a textarea component. but you can't display a webpage,
per se. -
I'm experiencing a severe backlash from users of Flash
applications due to the frustration generated from encountering a
continuous bombardment of messages during the intialization of
Flash applications that reads:
"A script in this movie is causing Macromedia Flash Player 8
to run slowly. If it continues to run, your computer may become
unresponsive. Do you want to abort the script?"
What's worse is there are only two, very limited options for
users. The first is to continue on and the second is to simply
abandon the app and apparently forget about trying to accomplish
whatever it was you were accessing the application for. I'm going
to continue scouring Live Docs, Google, etc and hopefully I'll be
able to post my own answer soon. In the meantime, any input on the
matter would be VERY welcome.
Can anyone shed some light on this please?bpt349,
> I'm experiencing a severe backlash from users of Flash
> applications due to the frustration generated from
encountering
> a continuous bombardment of messages during the
intialization
> of Flash applications that reads:
>
> "A script in this movie is causing Macromedia Flash
Player 8
> to run slowly.
You're saying "users of Flash applications." Do you mean
*all* Flash
applications? Or just one?
> I'm going to continue scouring Live Docs, Google, etc
and
> hopefully I'll be able to post my own answer soon. In
the
>meantime, any input on the matter would be VERY welcome.
You don't have to scour very far. This message occurs when
something
inside a given SWF file is poorly written -- perhaps an
infinitely recursing
function, perhaps some other un-optimized looping or an
incredible amount of
unchecked math operations. But this certainly isn't something
that just
happens.
Can you nail this to one particular file? If so, the
developer of that
file needs to start troubleshooting her/her own code.
David
stiller (at) quip (dot) net
Dev essays:
http://www.quip.net/blog/
"Luck is the residue of good design." -
Loop Inside loop, time out error.
Pls look into the below code, In this im looping inside a loop.
Im looping thru the internal table( say 2000 records ) which has data from a select query, inside this loop i need to calculate the total of output qty which is available in the another VIEW/TABLE which might return 10 records in each iteration of the inner loop.
This process takes huge time to process also gives out runtime out error.
pls help.
LOOP AT itablnpln INTO walnpln.
contot = 0.
This particular query loop takes large time to process
SELECT distinct * INTO CORRESPONDING FIELDS OF TABLE itablnp
FROM zvprdconf where aufnr = walnpln-aufnr and
j_3asize = walnpln-j_3akordx and stzhl eq ' ' and stokz ne 'X'.
IF sy-subrc EQ 0.
*Earlier i used this looping.
*loop at itablnp into walnp.
contot = contot + walnp-J_3ALMNGA.
move walnp-J_3ASIZE to walnpln-J_3ASIZE.
endloop.
*Currently tried with the following,
LOOP AT itablnp ASSIGNING <fs_itablnp>.
contot = contot + <fs_itablnp>-J_3ALMNGA.
move <fs_itablnp>-J_3ASIZE to walnpln-J_3ASIZE.
ENDLOOP.
walnpln-output = contot.
move zvprdconf-isdd to walnpln-zdate.
move zvprdconf-isdz to walnpln-ztime.
endif.
ENDLOOP.
regs,
RajaDear Naresh,
Even after changing the code as below, i m getting the same error.pls help.
IF SY-SUBRC = 0.
SORT ITABLNPLN.
DELETE ADJACENT DUPLICATE FROM ITABLNPLN COMPARING ALL FIELDS.
ENDIF.
pls find the complete code as below.
code]
*& Report SAPMZLINEPLANRPT
INCLUDE ZLPR_TOP.
*Event AT Selection-Screen on Block Param.
AT SELECTION-SCREEN ON BLOCK sorter.
CHECK All = 'X'.
*Event Start-Of-Selection.
START-OF-SELECTION.
Data: zstat type jest-stat.
data: stklocaf type mska-lgort.
data: stklocas type mska-lgort.
FIELD-SYMBOLS <fs_itablnp> LIKE LINE OF itablnp.
CLEAR it_ZVPRODDET.
SELECT DISTINCT ZVPODbukrs ZVPODaufnr ZVPOD~objnr
jeststat ZVPODwerks ZVPODarbpl ZVPODJ_3AKORD2
zvpodplnbez zvpodaufnr zvpodkdauf zvpodkdpos
zvpodj_3akord1 zvpodj_3akord2 zvpod~j_3akordx
zvpodj_3absnr zvpodmatnr zvpod~j_4kscat
zvpodmvgr4 zvpodj_3acada zvpodj_4krcat zvpodmenge
zvpodposnr zvpodkunnr zvpodaufpl zvpodaplzl
zvpodplnnr zvpodarbid zvpodsteus zvpodbismt
zvpodwerks zvpodj_3akvgr6 zvpod~j_3arqda
zvpodmvgr5 zvpodaudat zvpod~j_3addat
zvpodvtweg zvpodobjnr zvpod~bukrs
zvpodfsavd zvpodssavd zvpod~bstkd
zvpodbstdk zvpodihrez zvpod~bstkd_e
zvpodbstdk_e zvpodihrez_e zvpod~arbpl
zvpodvgw01 zvpodkvgr2 zvpod~vsart
FROM ZVPOD
INNER JOIN jest ON ZVPODobjnr = jestobjnr
INTO CORRESPONDING FIELDS OF table it_ZVPRODDET where
plnbez in FGM and arbpl in wc and werks in plant
and SSAVD in eldate
and J_3AKORD2 in cups and jest~inact ne 'X'.
SORT it_ZVPRODDET BY aufnr stat.
LOOP AT it_ZVPRODDET INTO wa_ZVPRODDET.
IF wa_ZVPRODDET-stat = 'I0045' . " TECO - compl
DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr.
ELSEIF wa_ZVPRODDET-stat = 'I0009' . " CNF - Confirmed
DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr.
ELSEIF wa_ZVPRODDET-stat = 'I0012' . " DLV - Delivered
DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr.
ELSEIF wa_ZVPRODDET-stat = 'I0046' . " CLSD - Closed
DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr.
ELSEIF wa_ZVPRODDET-stat = 'I0076' . " DLFL - Del Flag
DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr.
ELSEIF wa_ZVPRODDET-stat = 'E0003' . " SCLS - Short Close
CLEAR tj30t.
SELECT SINGLE txt04
FROM tj30t INTO tj30t-txt04
WHERE stsma = 'PRDHOLD' AND
estat = 'E0003' AND
txt04 = 'SCLS' AND
spras = 'EN'.
IF sy-subrc = 0.
DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr.
ENDIF.
ENDIF.
Condition for Prod Order released - REL
IF wa_ZVPRODDET-stat = 'I0002'.
mreleased = 'Y'.
else.
mreleased = 'N'.
endif.
zstat = wa_ZVPRODDET-stat.
IF mreleased = 'N'.
DELETE it_ZVPRODDET WHERE aufnr = wa_ZVPRODDET-aufnr
and stat = zstat.
ENDIF.
ENDLOOP.
case mark.
when All.
LOOP AT it_ZVPRODDET INTO wa_ZVPRODDET.
zaufnr = wa_zvproddet-aufnr.
zarbid = wa_zvproddet-arbid.
move wa_zvproddet to walnpln.
append walnpln to itablnpln.
endloop.
clear walnpln.
if not itablnpln is initial.
SELECT distinct * INTO CORRESPONDING FIELDS OF TABLE itablnp
FROM zvprdconf FOR ALL ENTRIES IN itablnpln
where aufnr = itablnpln-aufnr and
j_3asize = itablnpln-j_3akordx and stzhl eq ' ' and stokz ne 'X'.
if sy-subrc = 0.
sort itablnpln by aufnr j_3asize.
DELETE ADJACENT DUPLICATES FROM ITABLNPLN COMPARING ALL FIELDS.
endif.
endif.
LOOP AT itablnpln INTO walnpln.
contot = 0.
IF sy-subrc EQ 0.
LOOP AT itablnp ASSIGNING <fs_itablnp> where aufnr = walnpln-aufnr and j_3asize = walnpln-j_3akordx.
contot = contot + <fs_itablnp>-J_3ALMNGA.
move <fs_itablnp>-J_3ASIZE to walnpln-J_3ASIZE.
ENDLOOP.
walnpln-output = contot.
move zvprdconf-isdd to walnpln-zdate.
move zvprdconf-isdz to walnpln-ztime.
endif.
walnpln-wip = walnpln-menge - contot.
if walnpln-werks = '1000'.
stklocaf = '1050'.
stklocas = '1060'.
elseif walnpln-werks = '2000'.
stklocaf = '2150'.
stklocas = '2160'.
endif.
select single kunnr into walnpln-ship from vbpa where
vbeln = walnpln-KDAUF and PARVW = 'WE'.
zship = walnpln-ship.
move zship to walnpln-ship.
select single kalab into walnpln-zactqty from mska
where matnr = walnpln-plnbez
and j_3asize = walnpln-J_3AKORDX and LGORT = stklocaf.
condense walnpln-kdauf.
zsales = walnpln-kdauf.
concatenate zsales 'S' into zso.
select single kalab into walnpln-zsndqty from mska
where matnr = walnpln-plnbez
and j_3asize = walnpln-J_3AKORDX and LGORT = stklocas
and J_4KSCAT = zso.
zmatn = walnpln-plnbez.
zsale = walnpln-KDAUF.
walnpln-kdauf = zsale.
walnpln-plnbez = zmatn.
zcust = walnpln-kunnr.
walnpln-kunnr = zcust.
select single bezei into walnpln-season from TVV2T where
kvgr2 = walnpln-kvgr2 and SPRAS = 'E'.
select single bezei into walnpln-shipmode from T173T where
vsart = walnpln-vsart and SPRAS = 'E'.
STRL = strlen( walnpln-j_3akord2 ).
if strl = 4.
move walnpln-j_3akord2 to walnpln-j_3akord3.
clear walnpln-j_3akord2.
endif.
move zremk to walnpln-remk.
MODIFY itablnpln FROM walnpln.
contot = 0.
clear itablnp.
ENDLOOP.
PERFORM build_fieldcatalog.
PERFORM build_layout.
PERFORM display_alv_report.
endcase.
[/code]
regs,
raja[ -
How to avoid the loop inside the loop? as it reduces the performance.
hi masters,
i have 2 internal tables having 1 same field. eg table itab having f1, f2, f3 fields and itab1 having f1, f4 and f5 fields. let us consider the data in the itab and itab1 is like below given
itab-f1 itab-f2 itab-f3 itab1-f1 itab1-f4 itab1-f5
10 aa 11 10 abc 456
10 bb 15 10 def 655
10 ff 13 10 ghi 456
11 dd 16 10 tre 455
11 zz 24 11 ftr 256
11 ii 54 11 kjh 556
12 hh 24 12 fjk 751
now i want the result in final table like below
f1 f2 f3 f4 f5
10 aa 11 abc 456
10 aa 11 def 655
10 aa 11 ghi 456
10 aa 11 tre 455
10 bb 15 abc 456
10 bb 15 def 655
10 bb 15 ghi 456
10 bb 15 tre 455
10 ff 13 abc 456
10 ff 13 def 655
10 ff 13 ghi 456
10 ff 13 tre 455
11 dd 16 ftr 256
11 dd 16 kjh 556
11 zz 24 ftr 256
11 zz 24 kjh 556
11 ii 54 ftr 256
11 ii 54 kjh 556
12 hh 24 fjk 751
i can get this result using the
Loop at itab.
loop at itab1 where f1 = itab-f1.
process....
endloop.
endloop.
but it is very slow. i want to avoid this loop inside the loop and i want to implement the same program using read table.. like below..
Loop at itab.
Read table itab1 with key ....
process...
endloop.
Is it possible? to get multiple records from itab2 using read statement or with READ statement that using CASE Statement or IF statemetnt.
Plz help me...hi,
please try the following code
TYPES:
begin of ty_itab2,
f1
f2
f3
f4
f5
end of ty_itab2.
DATA:
lw_tab2tmp type ty_itab2,
lt_tab2tmp type standard table of ty_itab2.
sort it_itab by f1.
loop at it_itab into lw_itab.
at new f1.
CLEAR lt_tab2tmp[].
loop at it_itab1 into lw_itab1 where f1 = lw_itab-f1.
CLEAR lw_tab2tmp.
move-corresponding lw_itab1 to lw_tab2tmp.
append lw_tab2tmp into lt_tab2tmp.
end loop.
"while there is no data with f1 in it_itab1
if lt_tab2tmp is initial.
lw_tab2tmp-f1 = lw_itab-f1.
append lw_tab2tmp into lt_tab2tmp.
endif.
end at.
CLEAR lw_tab2tmp.
MOVE-CORRESPONDING lw_itab to lw_tab2tmp.
modify lt_tab2tmp from lw_tab2tmp TRANSPORTING f2 f3 where not f1 is initial.
append lines of lt_tab2tmp into lt_itab2.
end loop.
lt_itab2 is the final table.
There may be some syntactically errors.
I have not a system to test it now, please test it. -
Controlling Captivate movies from a parent Flash movie
Hello, i am in the works of onverting my old AS2 code, for controlling Captivate movies lodaded into a Flash container, over to AS3 becasue of the transition to Captivate 5. There were some weird issues in AS2 and Captivate 3 which i fortunately vere able to solve when i first made this container. Now i am getting weird and unpredictable results when trying to set the appropriate variables in the Captivate move. The main culprit is: rdcmndRewindAndStop, it does indeed rewind the movie, but... it starts playing again... Could anyone be so kind to give me the reason why or better even provide me with a solution to this unneeded change, its quite annoying, and no rdcmndPause does not help, not before rdcmndRewindAndStop or after, the movie is happily trottling along...
sincerely
Frustrated developer with a bloody short deadlineHello and thanks for replying, yes it worked! But... we have to manually edit 40+ files to make this stupid thing to work... Do you know if there is any way i can put those scripts in a flash object, or better even modify the movie from the parent container? This is making our production process way longer than is affordable tbh, a single project consists usually of over 100 captivate movies, and we simply can't manually edit each and every one of them.
I wish i could get my hands on a Captivate developer ;p -
Load html document inside flash
I have been informed that it is possible to load an html
document inside flash, that you use an HTML tag, but I cannot find
it in the scripts, can anyone show an example and explain how to
make it work or if there is a tutorial for creating this inside of
flash.
ThanksDear All
I do not know why they call themselves professionals in flash and html, while they can not help us with a simple webpage inside a flash movie.
No offense
I was trying the whole week to do that by checking if any body post any tip over the internet, but as usual the profs said that you can only make it in test and only text and bla bla bla.....
Let me tell you that I have managed to open a whole webpage in my flash website.
I have this page that is html and have so many codes and things that I do not know, and in my flash website I have a menu which one of its buttons must open that html file, and as every body knows that you will loose the whole work if you poped up another window from your flash website.
So Cheer up I have managed to open my html page in my flash movie website.
You can check it up following this link www.compuhometech.com/html_inside_flash/index.html
If you like to have it please mail me : [email protected]
Thank you -
I'm continually getting a "movie script error" in regards to
a looping interactive. The following message: "A script in this
movie is causing Adobe Flash Player 9 to run slowly. If it
continues to run, your computer may become unresponsive. Do you
wish to abort the script?" frustratingly comes up despite numerous
startups and taking off information from the server. It seemed to
occur slightly after uploading some content to the admin server
which delivers the info to flash upon rebooting. However this last
time it just cycles through a small portion frantically. How do I
find out where the problem is and fix it?
any clues?
thanks in advance, PatrickHi Patrick and welcome to our community
What product are you using? This is the forum for Adobe
RoboHelp. Your post seems to imply that you are using a Flash
output of some type. Is it FlashHelp? Or are you possibly dealing
with Adobe Captivate? Or maybe Flash itself?
Cheers... Rick -
Repeatedly, this error code suddenly appears on the screen and I don't have a clue what it means or what to do: "A script in this movie is causing Adobe Flash Player to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort the script?
No Yes"Hi,
Some "movies' are actually Flash files.
This means the Flash App will play them (possibly in a browser in some cases).
Depending where this item is and how it is playing it may be effected by other things
A web page can include javascript.
Apple uses javascript here to help with creating the posting box, the Edit options, Adding pics/smilies and the like.
Sometimes the javascript can be what is called a runaway process and gets sort of stuck in an endless loop.
If it is a free standing item then it might be triggered by AppleScript on the Mac. (or be modified in some way)
Again if the Script (normally written with a upper case S) is not perfect it can cause problems.
9:09 pm Wednesday; February 26, 2014
iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro 2Gb (Snow Leopard 10.6.8)
Mac OS X (10.6.8),
Couple of iPhones and an iPad -
Html content inside flash ? how?
Hello, I have the following problem ... I have a flash site where in the back there is a Content Management System for the site moderator to post offers. So when the users visit the site they can see the offer and if they like it to contact the company. But inside the Content management system i have a textarea where the moderator wants to paste-in some tables in a html format ... something like this ...
GENERAL
2G Network
GSM 900 / 1800 / 1900
GSM 850 / 1800 / 1900 - US version
Announced
2006, November. Released 2007, January
Status
Discontinued
SIZE
Dimensions
106.4 x 43.6 x 11.7 mm, 56 cc
Weight
91 g
DISPLAY
Type
TFT, 16M colors
Size
240 x 320 pixels, 2.0 inches, 31 x 41 mm
- Downloadable wallpapers, screensavers
SOUND
Alert types
Vibration; Downloadable polyphonic, MP3 ringtones
Speakerphone
Yes
MEMORY
Phonebook
1000 entries, Photocall
Call records
20 dialed, 20 received, 20 missed calls
Internal
7.8 MB
Card slot
microSD, up to 2GB
DATA
GPRS
Class 10 (4+1/3+2 slots), 32 - 48 kbps
EDGE
Class 10, 236.8 kbps
3G
No
WLAN
No
Bluetooth
Yes, v2.0
Infrared port
No
USB
Yes, miniUSB
CAMERA
Primary
2 MP, 1600x1200 pixels
Video
Yes, QCIF
Secondary
No
FEATURES
Messaging
SMS, MMS, Email, Instant Messaging
Browser
WAP 2.0/xHTML
Radio
Stereo FM radio; Visual radio
Games
Yes + Downloadable
Colors
Silver, Black, Red-Silver, White-Silver
GPS
No
Java
Yes, MIDP 2.0
- Push to talk
- MP3/MP4/AAC/AAC+/eAAC+ player
- Voice memo
- Voice command
- T9
- Organizer
BATTERY
Standard battery, Li-Ion 860 mAh (BL-4C)
Stand-by
Up to 348 h
Talk time
Up to 3 h 30 min
Basically a table with some text in it ... but then i need to save this in some file (this is still done in the php) and after it is saved in a file I need to somehow show it in its table form inside a textarea in flash. Or if not in a textarea in some other way inside the flash movie i need to display that content in its table form. What I am using now is a web text editor from http://ckeditor.com/ which provides a way to paste the table in the content management system (or admin panel) and then it saves it to a file. The problem is how do I display the table inside flash ?Flash has very limited support of html tags and tables are not included. So if you want to show an html table then your best bet will be to link to an html web page.
-
I know this question has probably been asked and answered before, but after searching/reading in the forums, I'm still confused.
So I would like my VI to effectively move a stage a given distance with incremental sizes with pauses of between each step.
Effectively: "Go To" _____ With X step size: causes the VI to: move, pause, move pause...etc until the stage has reached the end.
To accomplish this I set up a for loop inside a case structure, and took the "Go To" / by Step Size to get the number of iterations the loop aught to run (labview apparently rounds the double result to the integer form), and then I send the "Step Size" to the MoveAbs VI.
I am not sure if my logic is terribly off, but when I perform the command, the stage at least moves, but not to the correct location.When I inserted probes, they list the correct values being sent to the subvi's etc...
Does anyone have an idea why this would not work? Any better ideas to institute this type of motion?
Thanks
Attachments:
delayedmotiontrial2.vi 85 KBHey Tim,
I've got another question for you--I've been working on the program and I think I finally understand the basic outline. I've been trying to add other subvi's to increase functionality and I came across a problem:
The error list says that the selector values of the case structure are not unique--which is true of the program I am sending you. So naturally I deleted the extra "VI INI" which was tagged onto the default case. However doing so caused my program to crash--or more accurately cycle in an infinite loop. The program initializes over and over again. The "INI VI" sends another "INI VI" to the array and gets stuck.
I am not quite sure what is wrong, because when I looked at the original program you had sent to me, and earlier versions I had edited, I noticed that they have the same code within the "INI VI" case...in addition, now when I open previous programs--that were functioning perfectly well before--I get the same error message complaining about "not unique selector values". I honestly don't recall ever adding "INI VI" to the default case...
I am attaching the program and was wondering your thoughts, especially given the retrospective error...
Let me know if I was unclear in explaining the problem etc...and thanks again for your help. Others' input welcomed too!
Nathan
Attachments:
DelayedMotionTrial7c.vi 85 KB
State Machine States.ctl 5 KB -
Filereference Upload - A script in this movie is causing Adobe Flash...
This appears to be a sore topic these days. I have searched and found a large number of postings with this flash player message (A script in this move is causing Adobe Flash Player -n- to run slowly. If it continues...) But I haven't found a posting where it is resolved. I am trying to provide my client with an upload script. What I have so far works on small files but results in the aforementioned error message on large files. I saw a message a few days ago that talked about writing an onEnterFrame routine in a dummy movie clip that increments a counter, but there were no details about what that code might look like. I have tried several iterations of that logic to no avail. I know I am not the only one with this problem, and I do need to find a solution. I don't think that the server php settings are the problem. Does anyone have any ideas?
Thanks in advance,
GW
Action script from Layer 1: Frame 1 -
_global.states = Array("AL", "AK", "AS", "AZ", "AR", "CA", "CO", "CT", "DE", "DC", "FM", "FL", "GA", "GU", "HI", "ID", "IL", "IN", "IA", "KS", "KY", "LA", "ME", "MH", "MD", "MA", "MI", "MN", "MS", "MO", "MT", "NE", "NV", "NH", "NJ", "NM", "NY", "NC", "ND", "MP", "OH", "OK", "OR", "PW", "PA", "PR", "RI", "SC", "SD", "TN", "TX", "UT", "VT", "VI", "VA", "WA", "WV", "WI", "WY");
_global.states.sort();
_global.keepMemory = false;
this.mc_uploadCtr.mc_stateError._visible = false;
this.mc_uploadCtr._visible = false;
this.mc_uploadCtr.enabled = false;
// Get upload data
var xmlData=new XML();
xmlData.ignoreWhite=true;
xmlData.onLoad = function(ok:Boolean) {
if (ok) {
processXmlData(this);
} else {
dt_main.text = "XML did not load";
function processXmlData(xml:XML) {
_global.notifyToEmail = xml.firstChild.childNodes[0].childNodes[0].nodeValue;
_global.notifyFromEmail = xml.firstChild.childNodes[1].childNodes[0].nodeValue;
_global.notifyFromName = xml.firstChild.childNodes[2].childNodes[0].nodeValue;
System.useCodepage = true;
xmlData.load('uploadData.xml');
_global.keepInMemory = function(keep:Boolean) {
if ((keep == true) and (_global.keepMemory == false)) {
_global.keepMemory = true;
this.createEmptyMovieClip("dummy_mc", 999);
this.dummy_mc.onEnterFrame = function () {
while(_global.keepMemory == true) {
var count:Number = count + 1;
} else {
if (_global.keepMemory = true) {
_global.keepMemory = false;
this.dummy_mc.unloadMovie();
stop();
Action Script from upload movie clip:
import flash.net.FileReference;
var progressBar:MovieClip;
var reference:FileReference = new FileReference();
var referenceListener:Object = {};
var scriptLocation:String = 'uploader.php';
var progressBarHeight:Number = 10;
var progressBarY:Number = 50;
var progressBarColor:Number = 0x66ccff;
reference.addListener(referenceListener);
referenceListener.onSelect = activateUploadButton;
referenceListener.onProgress = updateProgress;
referenceListener.onComplete = checkIn;
referenceListener.onHTTPError = handleError;
referenceListener.onIOError = handleError;
referenceListener.onSecurityError = handleError;
btn_uploadFile._visible = false;
btn_selectFile.onRelease = choose;
btn_uploadFile.onRelease = uploadCurrent;
function activateUploadButton():Void {
display_txt.text = reference.name;
btn_uploadFile._visible = true;
btn_uploadFile.enabled = true;
function choose():Void {
reference.browse([{description:'Images (*.ai, *.drw, *.jpg, *.jpeg, *.gif, *.pdf, *.png, *.psd, *.psp, *.tif,)', extension:'*.ai; *.drw; *.jpg; *.jpeg; *.gif; *.pdf; *.png; *.psd; *.psp; *.tif'}]);
function handleError(errorName:String, detail:Object):Void {
restart();
if (arguments.length === 2) {
if (typeof detail === 'number') {
display_txt.text = 'HTTP Error #'+detail;
} else {
display_txt.text = 'Security Error: '+detail;
} else {
display_txt.text = 'IO Error';
function makeProgressBar(x:Number, y:Number):MovieClip {
var bar:MovieClip = createEmptyMovieClip('progressBar_mc', 0);
bar._visible = false;
bar.beginFill(progressBarColor);
bar.lineTo(display_txt._width, 0);
bar.lineTo(display_txt._width, progressBarHeight);
bar.lineTo(0, progressBarHeight);
bar.lineTo(0, 0);
bar.endFill();
bar._width = 0;
bar._visible = true;
bar._x = x;
bar._y = y;
return bar;
function restart():Void {
removeMovieClip(progressBar);
display_txt.text = '';
btn_uploadFile._visible = false;
btn_selectFile._visible = true;
function updateProgress(fileReference:FileReference, bytesLoaded:Number, bytesTotal:Number):Void {
display_txt.text = fileReference.name+' - '+Math.ceil((bytesLoaded/bytesTotal)*100)+'%';
progressBar._width = Math.ceil(display_txt._width*(bytesLoaded/bytesTotal));
function uploadCurrent():Void {
btn_selectFile._visible = false;
btn_uploadFile.enabled = false;
progressBar = makeProgressBar(0, progressBarY);
_global.keepInMemory(true);
reference.upload(scriptLocation);
function checkIn():Void {
_global.keepInMemory(false);
moveFile();
notify()
restart();
function moveFile():Void {
_global.uploadedFile = (_global.uploadFolder + '/' + reference.name);
// var lv_result:LoadVars = new LoadVars();
// var lv_move = new LoadVars();
// lv_move.fileName = reference.name;
// lv_move.rootFolder = (_global.rootFolder);
// lv_move.sourceFolder = (_global.uploadFolder);
// lv_move.targetFolder = (_global.uploadFolder);
// lv_move.sendAndLoad("mover.php", lv_result, "POST");
function notify():Void {
var st_companyName:String = ('<tr><td>Company name:</td><td>'+_global.companyName+'</td></tr>')
var st_contactName:String = ('<tr><td>Contact name:</td><td>'+_global.contactName+'</td></tr>')
var st_phoneNumber:String = ('<tr><td>Phone number:</td><td>'+_global.phoneNumber+'</td></tr>')
var st_address:String = "";
if (_global.address2 <> "") {
st_address = ('<tr><td>Address:</td><td>'+_global.address1+'</td></tr><tr><td> </td><td>'+_global.address2+'</td></tr><tr><td> </td><td>'+_global.addressCity+', '+_global.addressState + ' ' + _global.addressZip + '</td></tr>');
} else {
st_address = ('<tr><td>Address:</td><td>'+_global.address1+'</td></tr><tr><td> </td><td>'+_global.addressCity+', '+_global.addressState+' '+ _global.addressZip + '</td></tr>');
var st_email:String = ('<tr><td>E-Mail:</td><td>'+_global.email+'</td></tr>')
var st_quantity:String = ('<tr><td>Quantity:</td><td>'+_global.quantity+'</td></tr>')
var st_sides:String = ('<tr><td>Sides:</td><td>'+_global.sides+'</td></tr>')
var st_paperWeight:String = ('<tr><td>Paper weight:</td><td>'+_global.sides+'</td></tr>')
var st_jobDescription:String = ('<tr><td>Desc/Title of job:</td><td>'+_global.jobDescription+'</td></tr>')
var st_uploadedFile:String = ('<tr><td>Uploaded file:</td><td>'+_global.uploadedFile+'</td></tr>')
var result_lv:LoadVars = new LoadVars();
result_lv.onLoad = function(success:Boolean) {
if (success) {
} else {
var lv_notify = new LoadVars();
lv_notify.sender_fromEmail = _global.notifyFromEmail;
lv_notify.sender_toEmail = _global.notifyToEmail;
lv_notify.sender_fromName = _global.notifyFromName;
lv_notify.sender_subject = ('File received from ' + _global.companyName);
lv_notify.sender_message = ('<table width="550" border="1" align="left">' + st_companyName + st_contactName + st_phoneNumber + st_address + st_email + st_quantity + st_sides + st_paperWeight + st_jobDescription + st_uploadedFile + '</table>');
lv_notify.sendAndLoad("sendmail.php", result_lv, "POST");
return;
uploader.php -<?php
if ($_FILES['Filedata']['name']) {
upload_max_filesize = 100M;
post_max_size = 100M;
move_uploaded_file($_FILES['Filedata']['tmp_name'], 'uploads/' . basename($_FILES['Filedata']['name']));
?>Thank you, your answer was helpful. The problem was occuring before I entered the the code you referred to. But your response made me realize that the problem did, indeed, have to do with code that was running during the upload. I isolated the problem to the progress bar logic, which I suspect is not a coding error, but just too many cycles for the player to put up with during a long upload. I am now searching for another method of displaying upload status without a tight piece of code that loops a lot.
Thank you again kglad! -
Odd -- Can't Move Around Files on Flash Drive
I've encountered a strange issue in the last couple days. I've searched the forum and couldn't find anything; pardon me if this has come up before.
I keep lots of files on a 2GB Geek Squad USB drive and I use it all the time. Recently, I've sometimes been unable to move files around within the drive itself. If I try to drag a file to a new folder, for example, the pointer gets that white "do not enter" sign underneath it. This doesn't happen all the time -- I was just able to move a file into a new folder that earlier today I could not move.
Even when this happens I can still seemingly copy files to and from the drive, just not move them around inside the drive itself.
I have read and write permissions on this drive. When the problem occurs I check and I still have the permissions (that is, it doesn't mysteriously switch itself on and off). It's formatted FAT16.
Can anyone take a guess as to why it lets me move files sometimes and other times it doesn't?
Thanks!Well, FAT16 does work up to 2GB, so it might be fine.
As to your question about the 256/512 entries, sorry, that's over my head!
When you open the Flash Drive on the Mac, how many items, (files & folders), are there visible at the top level? Some FAT16 implementations have a limit of 256 entries at the top level, (folders can have more in them), other FAT16 implementations have a 512 item limit.
I'd try Disk Utility on the Mac to Format/Erase one to FAT32 and see if that helps, or if it's not needed for use with PCs, Format it MacOS Extended. -
What format camcorder for video editing. Making movies?
My 14 yr old son is into making movies. He needs a better camcorder. He makes stop motion movies as well as scripted movies with props. He edits them on his computer and some are really good, especially after he ads special effects to them.
I want to get him a better camera for filiming. Preferrably not over $600 or so. What is the best format video camera for editing on the computer and one that is good for shooting movies. It should have a spot light on it I assume for low light contitions, even though he sets up lights sometimes when he shoots.
Any suggestions as what I should get him? Thanks in advanced.
AranonThe HF200, along with all other decent high definition camcorders that use flash memory, DVDs, or hard drives, uses AVCHD. And yes, AVCHD is difficult to work with for two reasons:
1) Many software packages didn't/don't support it, but this has changed dramatically in the past year. Apparently Windows Live Movie Maker in Windows 7 supports it. (Not in Windows Vista or earlier.)
2) It requires a lot of CPU power compared to what systems are currently capable of to work with, just like standard definition video did back in 1998-2000. This will also get easier over time.
Both of the above are the price you pay for being on the cutting edge in terms of video quality.
Tape-based HD camcorders use HDV, which is MPEG-2 based. This is somewhat easier to work with, but I would not reccommend a tape-based camcorder (motor noise, ruggedness, cost of media, etc.)
*disclaimer* I am not now, nor have I ever been, an employee of Best Buy, Geek Squad, nor of any of their affiliate, parent, or subsidiary companies.
Maybe you are looking for
-
Error while configuring Oracle Internet Directory
Hi All, I have installed OID according to instructions in http://download.oracle.com/docs/cd/E21764_01/install.1111/b32474/start.htm#BEHHHCBB I was trying to configure OID using instructions given in section 6.5 Only OID Without a WebLogic Domain at
-
I have a replacement macbook air operating on Yosemite. How do I download and install the Adobe Design Premium CS 5.5 that I had on my old machine? Can I do that or do I have to pay for a new version?
-
Hi everyone I have entered involved party in Marketing work center >> Lead menu and from this involved party with also i have entered party role but when i am going to make report on this involved parties in lead menu i got issue ins
-
P4M Freezes with WiFI PCI Card
My PC freezes requiring a reboot. This has occured since I recently replaced an IDE HDD with a SATA HDD. The PC freezes pretty quicky; sometimes when everything is up and running for a few minutes, othertimes at the XP logon screen This is associat
-
Disc dosen't insert into superdrive
hi guys i hope you can help me. I looked over different sites but i cannot find a solution to it. anyways when i try to insert any cd/dvd into the superdrive, it dosent go in at all. it pushes the media to the left and it seems like there is somethin