How do I find the width of an external swf file that I am loading in
I have loaded in an external swf file and it works fine.
However, when I get the width dimensions of the movieclip that is housing the external swf file it gives me a '0' for the width.
Thanks for your time.
you must wait until loading is complete before trying to access the loaded objects width. at that point you can determine the width,height of the onstage/backstage objects in frame 1 of the loaded swf.
Similar Messages
-
I typically have several open Preview files at any one time and often forget where, sometimes if, I saved them. In Mountain Lion, how do I find the location of an open Preview File? Tried holding option + command in spotlight but I don't see a path name appear anywhere.
Yes, cmd-option on a file you choose in Spotlight and the path will appear at the bottom of the Preview window.
EDIT: Also, if it is bookmarked the path is in Bookmarks. -
How can I find the serial number for my stolen iPad that's associated with my apple ID ?
How can I find the serial number for my stolen iPad that's associated with my apple ID ?
If you registered it with Apple check your registered items at Your Support Profile for Registered Purchases. Also, see iOS- How to find the serial number, IMEI, MEID, CDN, and ICCID number.
What To Do If Your iDevice Is Lost Or Stolen
If you activated Find My Phone before it was lost or stolen, you can track it only if Wi-Fi is enabled on the device. What you cannot do is track your device using a serial number or other identifying number. You cannot expect Apple or anyone else to find your device for you. You cannot recover your loss unless you insure your device for such loss. It is not covered by your warranty.
If your iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should have done in advance - before you lost it or it was stolen - and some things to do after the fact. Here are some suggestions:
This link, Re: Help! I misplaced / lost my iPhone 5 today morning in delta Chelsea hotel downtown an I am not able to track it. Please help!, has some good advice regarding your options when your iDevice is lost or stolen.
1. Reporting a lost or stolen Apple product
2. Find my lost iPod Touch
3. AT&T. Sprint, and Verizon can block stolen phones/tablets
4. What-To-Do-When-Iphone-Is-Stolen
5. What to do if your iOS device is lost or stolen
6. 6 Ways to Track and Recover Your Lost/Stolen iPhone
7. Find My iPhone
8. Report Stolen iPad | Stolen Lost Found Online
It pays to be proactive by following the advice on using Find My Phone before you lose your device:
1. Find My iPhone
2. Setup your iDevice on iCloud
3. OS X Lion/Mountain Lion- About Find My Mac
4. How To Set Up Free Find Your iPhone (Even on Unsupported Devices) -
My Ipad and macbookair have been stolen. How can I find the imei code of both devices considering that were all registered on icloud?
Unless you have configured iCloud on the MacBook Air and made sure that Find My Mac was turned on, you can't track that. And even if you did do that, that is not a foolproof method of tracking, as it relies on the thief connecting to the internet using the guest account on the machine and not getting in to your account and disabling Find My Mac or wiping the hard drive and installing a clean system.
As for the iPad, similar rules apply there. If it is a wifi-only iPad, it cannot be tracked any other way. If it has 3G, your wireless carrier may be able to help you track it. -
How do I find the codec used for a .mov file?
I have a .mov file from 2001 that I can't play. How do I find the correct codec to use for this. Is there somewhere in the file itself some kind of reference to the codec used? I've installed pretty much everything I could find in terms of codecs. I don't care whether on mac or windows. Just need the right codec.
Thorbjørn VynneStill no luck
If anybody out there wanna give it a try please download this clip
http://mhp.tv2nord-digital.dk/fileadmin/resources/thor/dv-00.27.04.11-V180.mov
If you can play it please please let me know with which codec.... I have a whole bunch of files with this codec I need to use
Best regards
Thorbjørn -
How do you find the number of lines in a file?
I need to count how many lines there are in a file, I am using a BufferedReader to read in the data, but how can I find the number of lines?
ThanksThat depends. How do you define a line? Is it a specific number of
characters, a String that's terminated by a newline character or some
combination thereof? -
How can I stop timeline sounds in external swf files from playing during loading?
I am having a problem with timeline sounds in external swf files playing during loading in a main swf. Can anyone help me?
Here is some of the code from the main swf. I hope I have included enough.
Thanks.
import flash.events.MouseEvent;
import flash.display.MovieClip;
import flash.display.Loader;
import flash.events.ProgressEvent;
import flash.events.Event;
import flash.net.URLRequest;
import fl.events.SliderEvent;
import flash.media.SoundTransform;
preloader_mc.fill_mc.scaleX = 0;
var swfA:Array = ["part1.swf","part2.swf"];
var frameA:Array = [];
var currentLoader:Loader;
var swfTotalFrames:int;
var tl:MovieClip = this;
var st:SoundTransform = new SoundTransform()
var index:int = 0;
loadNextF();
play_slider.enabled = false;
function loadNextF():void{
tl["loader_"+index] = new Loader();
tl["loader_"+index].name = index.toString();
tl["loader_"+index].contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,progressF);
tl["loader_"+index].contentLoaderInfo.addEventListener(Event.COMPLETE,completeF);
tl["loader_"+index].load(new URLRequest(swfA[index]));
function progressF(e:ProgressEvent):void{
var fractionLoaded:Number = index/swfA.length+e.bytesLoaded/(e.bytesTotal*swfA.length);
preloader_mc.fill_mc.scaleX = fractionLoaded;
preloader_mc.tf.text = (100*fractionLoaded)+"% Loaded";
function completeF(e:Event):void{
tl["loader_"+index].contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS,progress F);
tl["loader_"+index].contentLoaderInfo.removeEventListener(Event.COMPLETE,completeF);
SoundMixer.stopAll();
var mc:MovieClip = MovieClip(tl["loader_"+index].content);
mc.gotoAndStop(1);
frameA.push(mc.totalFrames);
index++;
if(index<swfA.length){
loadNextF();
} else {
// all loads complete. start play.
restart_mc.buttonMode = true;
restart_mc.alpha = 1;
tl.addEventListener(Event.ENTER_FRAME,playUpdateF);
tl.removeChild(preloader_mc);
preloader_mc = null;
play_slider.enabled = true;
playpause_mc.alpha = 1;
currentLoader = tl["loader_0"];
tl.addChild(currentLoader);
MovieClip(currentLoader.content).play();
sliderParamsF();import flash.events.MouseEvent;
import flash.display.MovieClip;
import flash.display.Loader;
import flash.events.ProgressEvent;
import flash.events.Event;
import flash.net.URLRequest;
import fl.events.SliderEvent;
import flash.media.SoundTransform;
preloader_mc.fill_mc.scaleX = 0;
var swfA:Array = ["part1.swf","part2.swf"];
var frameA:Array = [];
var currentLoader:Loader;
var swfTotalFrames:int;
var tl:MovieClip = this;
var st:SoundTransform = new SoundTransform()
var index:int = 0;
loadNextF();
play_slider.enabled = false;
function loadNextF():void{
tl["loader_"+index] = new Loader();
tl["loader_"+index].name = index.toString();
tl["loader_"+index].contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,progressF);
tl["loader_"+index].contentLoaderInfo.addEventListener(Event.COMPLETE,completeF);
tl["loader_"+index].load(new URLRequest(swfA[index]));
function progressF(e:ProgressEvent):void{
var fractionLoaded:Number = index/swfA.length+e.bytesLoaded/(e.bytesTotal*swfA.length);
preloader_mc.fill_mc.scaleX = fractionLoaded;
preloader_mc.tf.text = (100*fractionLoaded)+"% Loaded";
function completeF(e:Event):void{
tl["loader_"+index].contentLoaderInfo.removeEventListener(ProgressEvent.PROGRESS,progress F);
tl["loader_"+index].contentLoaderInfo.removeEventListener(Event.COMPLETE,completeF);
SoundMixer.stopAll();
var mc:MovieClip = MovieClip(tl["loader_"+index].content);
mc.gotoAndStop(1);
frameA.push(mc.totalFrames);
index++;
if(index<swfA.length){
loadNextF();
} else {
// all loads complete. start play.
restart_mc.buttonMode = true;
restart_mc.alpha = 1;
tl.addEventListener(Event.ENTER_FRAME,playUpdateF);
tl.removeChild(preloader_mc);
preloader_mc = null;
play_slider.enabled = true;
playpause_mc.alpha = 1;
currentLoader = tl["loader_0"];
tl.addChild(currentLoader);
MovieClip(currentLoader.content).play();
sliderParamsF();
///////////////// start sliders /////////////////////////////////
sound_slider.addEventListener(SliderEvent.CHANGE,soundSliderF);
function soundSliderF(e:SliderEvent):void{
st.volume = e.value/100;
tl.soundTransform = st;
play_slider.addEventListener(SliderEvent.CHANGE,playSliderF);
play_slider.addEventListener(MouseEvent.MOUSE_DOWN,playSliderDownF);
//play_slider.addEventListener(MouseEvent.MOUSE_UP,playSliderUpF);
function playSliderDownF(e:MouseEvent):void{
tl.removeEventListener(Event.ENTER_FRAME,playUpdateF);
stage.addEventListener(MouseEvent.MOUSE_UP,playSliderUpF);
function playSliderUpF(e:MouseEvent):void{
tl.addEventListener(Event.ENTER_FRAME,playUpdateF);
function playSliderF(e:SliderEvent):void{
SoundMixer.stopAll();
var frameNum:int = Math.ceil(swfTotalFrames*e.value/100);
var partialTotalFrames:int = 0;
for(var i:int=0;i<frameA.length;i++){
partialTotalFrames += frameA[i];
if(partialTotalFrames>=frameNum){
break;
partialTotalFrames -= frameA[i];
//trace(i,frameNum,frameNum-partialTotalFrames);
if(currentLoader!=tl["loader_"+(i)]){
tl.removeChild(currentLoader);
MovieClip(currentLoader.content).stop();
currentLoader = tl["loader_"+(i)];
tl.addChild(currentLoader);
if(playpause_mc.currentFrame==1){
MovieClip(currentLoader.content).gotoAndPlay(frameNum-partialTotalFrames);
} else {
MovieClip(currentLoader.content).gotoAndStop(frameNum-partialTotalFrames);
function sliderUpdateF(e:Event):void{
var playedFrames:int = 0;
for(var i:int=0;i<Number(currentLoader.name);i++){
playedFrames += frameA[i];
playedFrames += MovieClip(currentLoader.content).currentFrame;
play_slider.value = Math.round(100*playedFrames/swfTotalFrames);
function sliderParamsF():void{
swfTotalFrames = 0;
for(var i:int=0;i<swfA.length;i++){
swfTotalFrames += MovieClip(tl["loader_"+i].content).totalFrames;
///////////////// end sliders //////////////////////////////////
///////////////// start playpause restart ///////////////////////
playpause_mc.addEventListener(MouseEvent.CLICK,playpauseF);
playpause_mc.alpha = .2;
restart_mc.addEventListener(MouseEvent.CLICK,restartF);
restart_mc.buttonMode = false;
restart_mc.alpha = .2;
function playpauseF(e:MouseEvent):void{
if(!e.currentTarget.toggle){
MovieClip(currentLoader.content).stop();
tl.removeEventListener(Event.ENTER_FRAME,playUpdateF);
e.currentTarget.gotoAndStop(2);
} else {
MovieClip(currentLoader.content).play();
tl.addEventListener(Event.ENTER_FRAME,playUpdateF);
e.currentTarget.gotoAndStop(1);
e.currentTarget.toggle = !e.currentTarget.toggle;
///////////////// end playpause //////////////////////////////
function playUpdateF(e:Event):void{
sliderUpdateF(e);
var playingFrame:int = MovieClip(currentLoader.content).currentFrame;
if(playingFrame==frameA[Number(currentLoader.name)]){
// next loader
MovieClip(currentLoader.content).stop();
SoundMixer.stopAll();
MovieClip(currentLoader.content).mute();
var nextIndex:int = Number(currentLoader.name)+1;
if(nextIndex<swfA.length){
tl.removeChild(currentLoader);
currentLoader = tl["loader_"+nextIndex];
tl.addChild(currentLoader);
MovieClip(currentLoader.content).gotoAndPlay(1);
} else {
tl.removeEventListener(Event.ENTER_FRAME,playUpdateF);
playpause_mc.gotoAndStop(2);
playpause_mc.toggle = !playpause_mc.toggle;
//playpause_mc.alpha = .2;
// all swfs have completed play
function restartF(e:MouseEvent):void{
MovieClip(currentLoader.content).stop();
tl.removeChild(currentLoader);
SoundMixer.stopAll();
MovieClip(currentLoader.content).mute();
currentLoader = tl["loader_"+0];
tl.addChild(currentLoader);
if(playpause_mc.currentFrame==1){
MovieClip(currentLoader.content).gotoAndPlay(1);
} else {
MovieClip(currentLoader.content).gotoAndStop(1); -
I can't find the stamp in properties, etc.. does not show up. I do not know how to otherwise get the date. This is Version 1.4 (Acrobat 5.x) DPE build 5095
The data is not there at all. My mention of hidden metadata (perhaps confusing) is to emphasise that there IS NO hidden metadata, because that would be a Bad Thing.
-
How do I find the path to a TestStand sequence file using LabVIEW
My LabVIEW application launches a bunch of teststand sequences, provided it has the complete path to each of them. I want to make it more flexible by providing it just the name of the TestStand sequence so that it will go and find the path to the sequence by searching a directory structure. TestStand has a neat FindFile() function that can do this, but I need to do this from within LabVIEW. Is there a way to do it?
There are a few ways to do this depending on how you are getting the sequence files. If you are calling the GetSequenceFileEx method, you can just pass the GetSeqFile_FindFile (0x20) flag in the SequenceFileFlags property. If you are using the ApplicationMgr.OpenSequenceFile method, this is automatically done for you.
If you want to use the FindFile function in general, you can use the Engine.FindFile method.
Allen P.
NI -
How can I find the path of an external hard drive?
I am using Virtual Box to install linux to an external usb flash drive. It gives me a list of drives:/ dev/sda, /dev/sda2 (type: ext 4), /dev/sda5 (type: swap). Which one is my external flash drive. This is very import and so I don't write per my current operating system, so please be certain. How can I find out which one is my external flash drive? Thank you!
Open the Disk Utility in the /Applications/Utilities/ folder, click on the partition, choose Info, and look at the disk identifier.
(113804) -
I have so many photos on my Mac I only have 1G of memory left. How can I move the photos to the external hard drive that is plugged into my iMac.
1GB? It's a miracle your Mac is running at all!
This is our resident iPhoto guru, Terence Devlin's, advice:
You can move your iPhoto Library to an external disk:
1. Quit iPhoto
2. Copy the iPhoto Library Folder as an entity from your Pictures Folder to the External Disk.
3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space. -
How do I control the location of an external swf?
Hey again,
Sorry this probably seems rudimentary, but how do I control
the location of a swf I load into my main movie? I'm trying to load
in a slideshow and am having a hard time getting it where I want it
to be. Thank you so much in advance. Again sorry for the ignorant
posts.
Davetyrione wrote:
> Hey again,
>
> Sorry this probably seems rudimentary, but how do I
control the location of a
> swf I load into my main movie? I'm trying to load in a
slideshow and am having
> a hard time getting it where I want it to be. Thank you
so much in advance.
> Again sorry for the ignorant posts.
>
> Dave
>
the only way to control it is to define the right path to
your loaded files.
There really isn't any other way. If the file is in a folder,
it has to be in
your path folder/name.swf
Best Regards
Urami
"Never play Leap-Frog with a Unicorn."
<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
</urami> -
The telescope instruction says open a Terminal and put in ls/dev/* and other such things and all I get back is that none of them are recognised.
JeffersEWhy don't you call the telescope company for support and let them explain it to you. Usually there is software involved with those types of telescopes and if that software doesn't support Mac, it won't matter how or what USB port you plug it into because no drivers or anything will load for it.
-
How do I find the image type of an image file
This was posted on the LabView forum in error yesterday, Please excuse the dual post.
I am trying to open a JPEG image. If I do not know the image type (8U, 16I, GrayscaleSingle, ... etc)... is there a way to find out that information?
If you open the file using IMAQ ReadFile...you have to supply a Create Image input to allocate space...the input specifies a type to read...but if the type of the stored data is not the type specified in the read file you either read the file as the type specified, or the file does not produce any values...(and no error is produced).
Examples:
Store a JPEG as a Single Percision Floating point image.
Use a Creat File to specify that the file is read with the following types...with the following results
Type Specified Type Read Resulting image
U8 U8 8 bit image appears
16I 16I
Solved!
Go to Solution.Hummer1,
There are two methods to accomplish this:
1) IMAQ GetFileInfo, which has quite a few outputs involving the image details.
2) Read JPEG File, which you can unbundle the image data output to get the image depth, or other attributes.
I would reccomend the IMAQ function, due to it being more detailed.
Hope this helps
Chris Van Horn
Applications Engineer -
How do I find the password to unlock iphone backup file?
I upgraded to 5.0 and when trying to restore it asks for the backup file password. What is this? I have tried my apple id password and Itunes password and it doesn't work? I have nothing on my phone right now.
You may have an encrypted backup. If you don't know the password, your data may be lost on that backup.
But, there is another way.
If you have multiple backups, shift-click restore from backup, and I believe you should get a menu listing your backups, I hope this helps you.
You can try certain other backups and such to restore too, they may or may not be encrypted, if they are, then I suppose you're out of luck.
If you find one of your backups that does not have encryption, you're good to go until you remember or retrieve your password.
In this case, is this a lost or stolen iPhone? Counterfeit, brought off eBay, etc?
If so then I cannot help you on that, nobody can.
If you have a passcode lock set on your iPhone, unlock it first (to tell iTunes that you own the phone of course) then disconnect and reconnect if necessary.
But like I said, if it's not your iPhone then we cannot help you. Sorry.
Maybe you are looking for
-
What is the purpose of the GC threshold setting feature in WLS 7.X? JVM GC documentation and other GC related information resources suggest this is at best pointless and probably degrading to system performance. We are talking specifically of a thres
-
Delivery not created in make to order cycle
Hi i am in the make to order process scenario and facing problems while creating a delivery after production order has been confirmed. The steps followed are 1. i create an order with M1 and quantity 100 - T code : VA01 2. i create a sales order BOM
-
Support for CUCM 8.6 in B200 M3
Is the new B200 M3 a supported platform for deploying Cisco Unified Communication Manager 8.6? The tested reference configuration available at Unified Communication virtualization wiki does not list B200 M3 as a supported platform . Please can anyone
-
PowerMac G5 hangs after going into screen saver power save mode
I have a PowerMac G5 and it's been working fine, but as of late has been hanging. I had a couple of external disks on the machine ( Maxtor OneTouch II and a OneTouch III). I recently added two more OneTouch III and stripped the three OneTouch III's t
-
How to manually recover user state data saved to a State Migration Point
Hi, In SCCM 2012, how would you recover the User State saved to the State Migration Point manually? In SCCM 2007 you could do what was outlined here: http://social.technet.microsoft.com/Forums/en-US/configmgrosd/thread/159affd3-1726-4829-a0f4-0c87548