External Movie File Script Question
I have finally figured out how to load an external .swf into
my flash file. The only problem is that I want to resize the
external movie to fit in a smaller movie container. The movie now
plays in the correct place but wrong size.
Here is my code, I need to know the parameters to force a
resize:
"on (release) {
//load Movie Behavior
if(this.demo == Number(this.demo)){
loadMovieNum("demo.swf",this.demo, w);
this.demo
} else {
this.demo.loadMovie("demo.swf");
//End Behavior
Thanks
Add this:
//scales to 85%
this.demo._xscale = .85;
this.demo._yscale = .85;
Dan Mode
--> Adobe Community Expert
*Flash Helps*
http://www.smithmediafusion.com/blog/?cat=11
*THE online Radio*
http://www.tornadostream.com
<--check this
*Must Read*
http://www.smithmediafusion.com/blog
"Tazty" <[email protected]> wrote in message
news:et9qlm$ke2$[email protected]..
>I have finally figured out how to load an external .swf
into my flash file.
> The only problem is that I want to resize the external
movie to fit in a
> smaller movie container. The movie now plays in the
correct place but
> wrong
> size.
>
> Here is my code, I need to know the parameters to force
a resize:
>
>
> "on (release) {
>
> //load Movie Behavior
> if(this.demo == Number(this.demo)){
> loadMovieNum("demo.swf",this.demo, w);
> this.demo
> } else {
> this.demo.loadMovie("demo.swf");
>
> }
> //End Behavior
>
> }"
>
> Thanks
>
Similar Messages
-
Hello all,
I am having some trouble making a scrip that watches a folder and moves the files from it to another folder once that are finished exporting from Final Cut Server. So far I have:
tell application "Finder"
set newFiles to every file of "/Volumes/exports/Exports/Sorenson In" whose modification date is greater than (get (current date) - (1 * minutes)) and name extension = "mov"
end tell
tell application "Finder"
move newFiles to "/Volumes/exports/Flash Encoding/"
end tell
I will also need to make it loop indefinitely, but my most immediate concern is it returns an error: "Can't get every file of "/Volumes/exports/Exports/Sorenson In"."
Does anyone have any insight into what I am doing wrong?
Thanks,
PaulI think your logic is wrong.
... whose modification date is greater than (get (current date) - (1 * minutes))
If right now is, say 9:00:00 then you're asking for files whose modification date is greater than 8:59:00 - in other words, files that have been modified in the last minute.
From the sounds of it, you want your script to pause while the files are exported, in which case you want files whose modification date is less than ((get current date) - (1 * minutes)).
The other way of doing this is via a folder action in which case your script is executed whenever a file is moved (or created) in that folder. The advantage here is that you get the actual files that were dropped, so you don't need any special logic to work out which files you need to action. -
External editor file naming question
This topic was covered about a year ago, with 1.1, but I am wondering if there is a solution with1.5:
When I open a file in an external editor (CS3), the file name reverts to the master file name, not the version name. Is there any way to get Aperture to use the version name?
I typically shoot multiple bird species on a single card, so when I download them, I am unable to get my preferred file name for each file on import.
Any suggestions would be appreciated,
Thanks,
Steve
MacPro Mac OS X (10.4.9) 2G Memory, Aperature 1.5.2No, there's still no way to rename Masters short of exporting them with the version name and re-importing.
The only way 'Save As' is going to work from an external editor is if you use exactly the same file name - that is the only file Aperture has sent out and it's the only file that Aperture is expecting back.
Saving with a different file name is functionally the same as copying a new file into the Library using the Finder - Aperture has no way to expect it. You'd have to save to somewhere outside the Library and then import it as a new Master, maybe setting up a hot folder in Automator for automatic importing.
Ian -
I have a web site with a main movie that call to an external
movie.
My question is what is the action script to put a pre loader
in the main movie that will show the loading progress of the
external movie.
(now the preloader is in the external movie and its take time
until its showing the preloader and until then the page looks
empty)
Thanks in advance.Here is a sample I made that uses the progressBar component.
You could use
something similar.
http://www.smithmediafusion.com/blog/?p=31
Dan Mode
*Must Read*
http://www.smithmediafusion.com/blog
*Flash Helps*
http://www.smithmediafusion.com/blog/?cat=11
"mijal2" <[email protected]> wrote in
message
news:e2rfub$bbq$[email protected]..
>I have a web site with a main movie that call to an
external movie.
> My question is what is the action script to put a pre
loader in the main
> movie
> that will show the loading progress of the external
movie.
> (now the preloader is in the external movie and its take
time until its
> showing the preloader and until then the page looks
empty)
>
> Thanks in advance.
>
> -
How to run an external .exe file from an indesign pluging
Hi,
Suppose if I have written an separate application in C++ (.exe file) & need to run it from an indesign pluging(as if a service in windows). have you provided that facilities in your SDK? if it's please let me know how to run an external .exe file from a indesign pluging.
Thanks,I'm actully writing data in PMString to a external txt file.
another question..
if i want to execute an action when the ok button is cliked how can i do it?
whe i add a button(widget) i know how to handle it. please see my code.
// Call the base class Update function so that default behavior will still occur (OK and Cancel buttons, etc.).
CDialogObserver::Update(theChange, theSubject, protocol, changedBy);
do
InterfacePtr<IControlView> controlView(theSubject, UseDefaultIID());
ASSERT(controlView);
if(!controlView) {
break;
// Get the button ID from the view.
WidgetID theSelectedWidget = controlView->GetWidgetID();
if (theChange == kTrueStateMessage)
//if (theSelectedWidget == kEXTCODGoButtonWidgetID
switch(theSelectedWidget.Get())
case kEXTCODGoButtonWidgetID:
this->ViewOutput();
break;
case kEXTCODFindButtonWidgetID:
this->SaveLog();
break;
// TODO: process this
} while (kFalse);
I do two actions "SaveLog" & "ViewOutput()" using two buttons. But i dont know how to execute an action when the ok button is clicked... -
Font Row 2 with .Mov files
I am having real problems playing some my .mov files through Front Row in Leopard.
I am getting the audio and the progress bar and skipping forward and back works fine, but I am getting a black screen with no video. This is not due to my display not being the master monitor or anything like that as all my other videos (.avi .wmv) work fine - and even some of my .mov files are fine.
All the .mov files in question play fine in Quicktime but not in Front Row.
I have also tried removing ALL third party quicktime plugins (divx, flip4mac, perian) and it makes no difference to the .mov files - just can't play any avi or wmv files of course.
All the .mov files are from the same place and are even from the same series of other .mov files that work fine.
Has anyone else come across this or is it just me? Is there some codec in the .mov files that could cause this?
Thanks.Not that anyone else seems to be having this issue, but it appears to only be happening for .mov files that use Sorenson 3 with "Apple PNG Millions+" for the video compression.... just in case anyone cares.
Can someone at least please tell me where I can submit a bug to Apple for this. Thank you. -
Need help with easy script for open / close app and move files
Hi,
I'm not a scripter.. never done anything special perhaps more complicated than /shutdown -s on cmd..
I actually learned ASCII C language on university but never used it in real.
I'm trying to create a basic script that perhaps you could help me or guide me how to do it..
The commands are
1) Close a running app (end task it or force kill it, I prefer end task it)
2) delete files from x location
3) run .exe app from y location
4) close that running app
5) move files from z to y
Perhaps adding few "wait few seconds" commands in between each, so the apps will launch successfully..
My first question will be whats the easiest script language to do that?
I tried VBScript but couldn't find commands for open or close apps.. also for controlling files..
And what commands can do that? I could google them up for better understanding no need for rough guide
And lastly, does it too hard? If it takes more than hour to make it (learn and process) than it ain't worth it..
Thanks alot ahead!
Jordan.hmm 2 questions:
1) taskkill.exe causing me access deny error.. I used "taskkill.exe /IM softwarename.exe"
how do I get permission or something to fix that?
2) on the "move" command..
First, its a "copy" instead.. but I easily figured that out..
but more important is that I want to copy a folder.. with unknown list of way too long files and sub folders..
and all I see is ability to move a file..
Is this possible?
Thanks -
Move files and create unique name something wrong with my script
Can you see where I might be going wrong here?
Just trying to create a unique name if something exists.
In English.
Move file to the destinationFolder
Item exists in destinationFolder > Move file in the destination folder to the fake Trash > If it exists in fakeTrash too then give it a new name an ending of_a.psd then out it in the trash
Once thats done move start file to the destination folder.
Currently when the file exists in the destination folder and in the trash, I get the prompt then the error
error "System Events got an error: Can’t get disk item \"NN_FR10WW06290PK3LE.psd\"." number -1728 from disk item "NN_FR10WW06290PK3LE.psd"
set fileMatrix to {¬
{folderName:"BHS", prefixes:{"BH", "SM", "AL"}}, ¬
{folderName:"Bu", prefixes:{"BU"}}, ¬
{folderName:"Da", prefixes:{"ES"}}, ¬
{folderName:"Di", prefixes:{"DV"}}, ¬
{folderName:"Do", prefixes:{"DJ", "RA"}}, ¬
{folderName:"In", prefixes:{"GT", "CC"}}, ¬
{folderName:"Fr", prefixes:{"FR"}}, ¬
{folderName:"No", prefixes:{"NN"}}, ¬
{folderName:"Ma", prefixes:{"MA", "MF", "FI", "MC", "MH", "MB"}}, ¬
{folderName:"Pr", prefixes:{"PR"}}, ¬
{folderName:"To", prefixes:{"TM15", "TM11", "TM17"}}, ¬
{folderName:"Wa", prefixes:{"WA"}}, ¬
{folderName:"Se", prefixes:{"SE"}}}
tell application "Finder"
set theHotFolder to folder "Hal 9000:Users:matthew:Pictures:HotFolderDone"
set foldericon to folder "Hal 9000:Users:matthew:Pictures:Icons:Rejected Folder Done"
set fakeTrash to folder "Hal 9000:Users:matthew:FakeTrash"
---here
repeat with matrixItem in fileMatrix -- look for folder
set destinationFolder to (folders of desktop whose name starts with folderName of matrixItem)
if destinationFolder is not {} then -- found one
set destinationFolder to first item of destinationFolder -- only one destination
set theFolderName to name of destinationFolder
repeat with aPrefix in prefixes of matrixItem -- look for files
set theFiles to (files of theHotFolder whose namestarts with aPrefix) as alias list
if theFiles is not {} then repeat with startFile intheFiles -- move files
try
move startFile to destinationFolder
on error
activate
display dialog "File “" & (name ofstartFile) & "” already exists in folder “" & theFolderName & "”. Do you want to replace it?"buttons {"Don't replace", "Replace"} default button 2 with icon 1
if button returned of result is "Stop"then
if (count theLastFolder) is 0 thendelete theLastFolder
return
else if button returned of result is"Replace" then
set fileName to get name ofstartFile
if exists file fileName indestinationFolder then ¬
try
--next line moves existing file to the faketrash
move file fileName of destinationFolder to fakeTrash
move file startFile to destinationFolder
--if it already exists in fake trash give it a new name then move that file to fake trash
on error errmess numbererrnum -- oops (should probably check for a specific error number)
log "Error " & errnum& " moving file: " &errmess
set newName to mygetUniqueName(fileName,fakeTrash)
set name of fileNameto "this is a unique name"-- or whatever
set name of fileNameto newName
--Now move the renamed file to the fake trash
move file fileName to fakeTrash
--now move the startfile to destination folder
move file startFile to destinationFolder
end try
else -- "Don't replace"
if not (exists folder "Hal 9000:Users:matthew:Desktop:Rejected Folder Done") then
set theLastFolder toduplicate foldericonto desktop
else
set theLastFolder to folder"Hal 9000:Users:matthew:Desktop:Rejected Folder Done"
end if
delay 0.5
move startFile to theLastFolder with replacing
end if
end try
end repeat
end repeat
end if
end repeat
try
if (count theLastFolder) is 0 then delete theLastFolder
end try
end tell
to getUniqueName(someFile, someFolder)
check if someFile exists in someFolder, creating a new unique file name (if needed) by adding a suffix
parameters - someFile [mixed]: a source file path
someFolder [mixed]: a folder to check
returns [list]: a unique file name and extension
set {counter, suffixes, divider} to {0, "abcdefghijklmnopqrstuvwxyz", "_"}
set someFile to someFile as text -- System Events will use both Finder and POSIX text
tell application "System Events" to tell disk item someFile to set{theName, theExtension} to {name, name extension}
if theExtension is not "" then set theExtension to "." & theExtension
set theName to text 1 thru -((length of theExtension) + 1) of theName -- just the name part
set newName to theName & theExtension
tell application "System Events" to tell (get name of files of folder(someFolder as text))
repeat while it contains newName
set counter to counter + 1 -- hopefully there aren't more than 26 duplicates (numbers are easier)
set newName to theName & divider & (item counter ofsuffixes) & theExtension
end repeat
end tell
return newName
end getUniqueNameThere are numerous errors in your script, and it's a large script so there might be more, but these are the standouts for me:
At line 48 you:
set fileName to get name of startFile
which is fair enough - you then use this to see if the file already exists in the destinationFolder. However, if it does the logic about how to deal with that is flawed.
At line 56 you catch the error:
on error errmess number errnum -- oops (should probably check for a specific error number)
log "Error " & errnum & " moving file: " & errmess
set newName to my getUniqueName(fileName, fakeTrash)
set name of fileName to "this is a unique name" -- or whatever
set name of fileName to newName
--Now move the renamed file to the fake trash
move file fileName to fakeTrash
--now move the startfile to destination folder
move file startFile to destinationFolder
end try
so let's focus on that.
56: catch the error
57: log the error
58: generate a new unique filename
59: change the name of fileName to some other string
Hang on, wait a minute.... we already ascertained that at line 48 you defined fileName as a string object that indicates the name of the file. This is just a string. It's no longer associated with the original file... it's just a list of characters. Consequently you cannot set the 'name' of a string, hence your script is doomed to fail.
Instead, what I think you want to do is set the name of the startFile to the unique string. Files have filenames, and therefore you can set the name.
You have a similar problem on line 64 where you try to 'move file filename to fakeTrash'. fileName is just a string of characters. It isn't enough to identify a file - let's say the file name is 'some.psd'. You're asking AppleScript to move file some.psd to the trash. The question is which some.psd? The one on the desktop? in your home directory? maybe on the root of the volume? or maybe it should search your drive to find any/all files with that name? nope. None of the above. You can't just reference a file by name without identifying where that file is. So you probably want to 'move file fileName of destinationFolder...'
There may be other problems, but they're likely to be related - all issues with object classes (e.g. files vs. strings), or not being specific about which object you want.
As I said before, though, I might be way off - you don't say where the error is triggered to make it easy to narrow down the problem. Usually AppleScript will highlight the line that triggered an error. Knowing what that line is would help a lot. -
Preloader to also preload external f4v files in main movie?
n00b alert... I did search the forum (and several others
online), but either the code got too complicated for me to even
attempt to adjust it, or I didn't find a relevant answer.
So I really hope someone here can help me out.
I've found a preloader code online that works like a charm. I
don't really know what half of it actually means/does, but it
preloads and then plays the mainfile.swf . Me happy.
But the "mainfile.swf" calls external f4v files, and the
problem is that they do not get preloaded. (And that kinda was why
I needed a preloader in the first place...)
I gave all the f4v files instance names within the mainfile
(assume: video01.f4v, video02.f4v etc), and the f4v files
themselves are in the same folder as the mainfile.swf.
What do I need to add to the code to get it to preload
everything?
Thanks in advance!!
ActionScript Code of my preloader is attached.You could load each movie using movieClip.loadClip(); and
check it has been loaded by using a listener and the
"myListener.onLoadInit" script to write your own function to begin
the playhead for that movie. -
Changing the location of movie files to an external hard drive
how do I move specific movie files in iTunes to an external hard drive? I would like to free up space on my computer. Also, I do not want to move my music files or any other files - just a few movie files.
Assuming you know the location where its saved on your PC, you can just move it to the external hard drive. However, if you do that iTunes will show an exclamation mark beside it and mention that it cannot locate the file any longer.
Not sure if this will help, but I had a similar question (with regards to iTunes been unable to locate) and I got my question answered. Here's the link to my question/post.
http://discussions.apple.com/thread.jspa?threadID=2366402&tstart=0 -
Scripting external movies to buttons in main movie, help please?
I'm building an entirely flash based website using Flash CS3 and ActionScript 2. I'm using external movies for the various pages, and putting buttons that control these movies in the main movie file. Normally, I'd simply put the script to control the buttons on the main movie file, not the external ones, but because there's more than two different pages and I'm fading each external clip in and out, I'm wondering if possible to put the script, for the buttons on the main movie, on the external movies.
I hope I've explained it right, any help appreciated.
Thanks.ok, i removed the trace from the main timeline and put that trace on the external portfolio movie, here's the output results.
when testing the main movie i i got: _level0
and when testing the external movie i got: undefined
so, by the looks of the results it is tracing back to main movie from the external one, it's just not got a target in main movie. is that right? we've already made sure all the movie clips and buttons involved are referenced and instance names are correct, so how can it be undefined? -
Automator to move files to external hard drive?
Is it possible to have "automator move files uploaded to my computer automatically from my phone, via motocast (Droid Razr Maxx) which sits in a "pictures" subfolder, and move it to the external hard drive i use to back up my macbook air weekly? I occasionally take photos and videos and were wondering if this is at all possible to do being that I only connect my external hard drive occasionally and not regularly. The external hard drive was partitioned to have a back up drive for time machine and another drive for other (pics&vids) use.
If it is possible can the automator task then trash all files in original pictures subfolder when task is complete to avoid any memory use on macbook air?
Any help is greatly appreciated.sdiaz34 wrote:
The external hard drive was partitioned to have a back up drive for time machine and another drive for other (pics&vids) use.
If it is possible can the automator task then trash all files in original pictures subfolder when task is complete to avoid any memory use on macbook air?
You really don't want to do that.
You'll have only one copy of the files, on the external HD. When (not if) it fails, they'll be lost.
For best results, get another external HD for your photos. Then let Time Machine back up both your internal HD and the external. See Time Machine - Frequently Asked Question #32 for details. -
How to load external subtitles in mov files (in QT)?
Hi everybody,
When I play an avi file, QT is able to load external subtitles (I've Perian installed). However, this week, I downloaded a file from apple, saved it as a mov file and created a subtitle file for it. Then, I put both files in the same directory and used the same name for them (one .mov and the other .srt). When I play it (with QT), the subtitle file doesn't load. Does anybody know what is happening? Is is a problem with mov files? Or is it a problem with files downloaded from apple (some kind of lock?!)?
Thankscowpox wrote:
Hi everybody,
When I play an avi file, QT is able to load external subtitles (I've Perian installed). However, this week, I downloaded a file from apple, saved it as a mov file and created a subtitle file for it. Then, I put both files in the same directory and used the same name for them (one .mov and the other .srt). When I play it (with QT), the subtitle file doesn't load. Does anybody know what is happening? Is is a problem with mov files? Or is it a problem with files downloaded from apple (some kind of lock?!)?
Thanks
You might do better reposting this in the QuickTime forum here:
http://discussions.apple.com/forum.jspa?forumID=932 -
Hello, I have two questions on time capsule I can only have it on my external hd files and free up my internal memory to my mac I can use an external hard drive, in my case a lacie rugged as shared memory for my two computers
I have a mackbook pro and an iMac if I buy a time capsule 2tb airport, I can use it with time machine and what would be the best way to use it.
There is no particular setup required for TM.. both computers will create their own backup sparsebundle which is like a virtual disk.. Pondini explains the whole thing if you read the reference I gave you.
and how to use time capsule airport whit other external hd to use my old lacie airport with the new time capsule
Up to you.. you can plug the external drive into the TC and enjoy really slow file transfers or you can plug it into your computer and use it as external drive.. which is faster than the TC.. and TM can include it in the backup.
Again everything is explained in the reference.. you are not reading it. -
Error code -32731 pops up when I try to move files onto LaCie External HD.
I have a Macbook Air 2014 with i7 and 8gb ram. I have around 20gb left on the internal hard drive.
My current OS is Yosemite, 10.10.2.
I'm unable to paste/move files to my external hard drive and am instead presented with error code -32731. The exact message reads:
"The operation can’t be completed because an unexpected error occurred (error code -32731)."
Related, it seems as if I can't download files directly to the hard drive. In many ways it seems as if I can't write to the drive at all. However, I have those permissions when looking at info.
Any ideas? Thank you very much.
ChrisSome other things to look at.
https://www.google.com/search?btnG=1&pws=0&q=The+operation+cannot+be+completed+b ecause+an+unexpected+error+occurred+(error+code+-50
Maybe you are looking for
-
CO-PA Cost Component do not match with Standard Cost Component Values
Dear Members, The CO-PA Cost Components (as mapped through KE4R), do not match with Standard Cost Component values for the Group Currency. In local currency the values match. System is correctly picking up VPRS value, both in local currency and Group
-
Where is the back button on iphone 5?
Hi, new to iphones. When I open an app like email, text message, often I find there is no way to go back one screen other than hitting the home button to end the app. Am I missing something here? Is there a back button like Safari has but for the ph
-
The feature you are trying to use is on a network resource that is...
I tired opening itunes one day and a message came up saying i didnt have permission to open it. SO I tried downloading it angain and I get a WIndows Intall box that says "the feature you are trying to use is on a network resource that is unavailable.
-
Your Iweb video on TV? ?
I have been looking over some of the I web sites out there and to say the least I was impressed, entertained, amused, and informed. Some excellent sites! I am just inquiring as to how many of you with short video blogs from around 30 seconds to 5 min
-
WLS_1032 install on linux64-bit. Where is the .jar installation software
In the wls install document they reference using a .jar file to use when installing wls_1032 on a linux (RH5) 64-bit machine. In the WLS download area I only find wls1032_linux32.bin. Any help as to where I can find the right .jar file to download wo