Find the width of a JPEG loaded into a clip
I load a page of the bio information. Next to the photo of the person (photos may vary in width), I want to put a column of buttons 20 pixels to the right of the photo. After I load the photo in a clip from film empty, so I try to get the width of the photo in order to understand the position x, buttons next to him. Here's what I have:myImage = "images /" + _level0.images [link];
loadMovie (myImage, image_mc);
JPEG load OK in image_mc.
trace ("image_mc._x =" + image_mc._x);
I get "Image_mc._x = 393" as expected.
trace ("myImage._width =" + myImage._width);
I get "image_mc._width = undefined".
trace ("image_mc._width =" + image_mc._width);
I get "image_mc._width = 0".
How can I find the width of the loaded JPEG?
you are probably trying to get the width until the image is fully loaded... Use the MovieClipLoader class to load the image into the empty clip, then use the onLoadInit event to get a sample of the video clips (which corresponds to the width of the images).
var mcLoader:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
myListener.onLoadInit = {function(target:MovieClip):Void}
trace (image_mc._width);
};
mcLoader.addListener (myListener);
mcLoader.loadClip (myImage, image_mc);
Tags: Adobe Animate
Similar Questions
-
Everytime I try to log in my original admin. Account, it is said that it does not find the profile, then product to load a temporary profile instead, one without personal settings or memory. What is that?... and how can I solve this problem?
Hello
These methods should help for Windows 7 or Vista.
References to Vista also apply to Windows 7.
You can try to fix it with Safe Mode - repeatedly press F8 as you bootup. THE ADMIN
Safe Mode account has no default password (so unless someone changed
the password should be available).Some programs such as the Google Updater (if you've added the Google toolbar,
Chrome or Google Earth) has been known to cause this problem.Error message when you log on to a Windows Vista-based or Windows 7
computer by using a temporary profile: "the user profile Service has no logon.Unable to load the user profile.
http://support.Microsoft.com/kb/947215Difficulty "the user profile Service has no logon. User profile cannot be loaded. "Error in Windows 7
http://www.SevenForums.com/tutorials/186131-user-profile-service-failed-logon-user-profile-cannot-loaded.htmlHow to fix error "the user profile Service has no logon. Could not load user profile. "in Vista & Windows 7.
http://www.Vistax64.com/tutorials/130095-user-profile-service-failed-logon-user-profile-cannot-loaded.htmlHow to fix error "your user profile was not loaded correctly! You have visited
logged on with a temporary profile. "in Vista & Windows 7.
http://www.Vistax64.com/tutorials/135858-user-profile-error-logged-temporary-profile.htmlBE VERY CAREFUL IF YOU USE THIS ONE:
DO NOT USE THE ACCOUNT HIDDEN ON A DAILY BASIS! If it corrupts you are TOAST.
----------------------------------------------------------------------------------------------------------
For Windows 7:
http://www.SevenForums.com/tutorials/507-built-administrator-account-enable-disable.htmlUse the hidden administrator account to lower your user account APPLY / OK then
Raise it to ADMIN. This allows clear of corruption. Do the same for other accounts
If necessary after following the above message.You can use the hidden - administrator account to make another account as an ADMINISTRATOR with
your password even (or two with the same password) use a test or difficulty to another.You can run the command Admin account hidden from the command prompt
from there if necessary.How Boot for Windows 7 System Recovery Options or use a Windows 7 boot disk.
http://www.SevenForums.com/tutorials/668-system-recovery-options.htmlWhat are the system recovery options in Windows 7?
http://Windows.Microsoft.com/en-us/Windows7/what-are-the-system-recovery-options-in-Windows-7How to create a Windows 7 system repair disc
http://www.SevenForums.com/tutorials/2083-system-repair-disc-create.html----------------------------------------------------------------------------------------------------------
For Vista:
How to enable or disable the real built-in Administrator account in Vista
http://www.Vistax64.com/tutorials/67567-administrator-account.htmlUse the hidden administrator account to lower your user account APPLY / OK then
Raise it to ADMIN. This allows clear of corruption. Do the same for other accounts
If necessary after following the above message.You can use the hidden - administrator account to make another account as an ADMINISTRATOR with
your password even (or two with the same password) use a test or difficulty to another.You can run the command Admin account hidden from the command prompt
from there if necessary.This tells you how to access the System Recovery Options and/or a Vista DVD
http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspxWhat are the system recovery options in Windows Vista?
http://Windows.Microsoft.com/en-us/Windows-Vista/what-are-the-system-recovery-options-in-Windows-VistaHow to create a Vista - free methods recovery disk
http://www.Vistax64.com/tutorials/141820-create-recovery-disc.html---------------------------------------------------------------------------------------------------------
If you can't access your old account you can still use an Admin to migrate to one
new (remember to always leave an account Admin who is not used except)
to test and difficulty).Difficulty of a corrupted user profile
http://windowshelp.Microsoft.com/Windows/en-AU/help/769495bf-035C-4764-A538-c9b05c22001e1033.mspxI hope this helps.
Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="">-><- mark="" twain="" said="" it="">->
-
I use the file below to load a series of images into a container named containerSprite. The size of each image varies and I want to be able to calculate the width of the container, so I can place compared to the position of containerSprite navigation buttons. My code does not work when loading the first image - when I use trace("WIDTH="+containerSprite.width) I get 0 the first time.
How or where would I set up an event listener that fires only when image loading is complete.
Thanks for helping me think through this process.
<? XML version = "1.0" encoding = "utf-8"? >
" < = xmlns:mx mx:Application ' http://www.Adobe.com/2006/MXML " "layout = "absolute" applicationComplete ="init ()" >
< mx:Script >
<! [CDATA]
import the mvc. SlideShowTextView;
import flash.display. *;
import flash.events. *;
import flash.net.URLRequest;
import the mvc. SlideShowModel;
import the mvc. SlideShowView;
import the mvc. Model;
import the mvc. View;
import flash.text.TextField;private var slideModel:SlideShowModel;
private var slideView:SlideShowView;
private var textView:SlideShowTextView;
private var req:URLRequest = new URLRequest("data.xml");
private var containerSprite:Sprite;
private var s:Shape;
private var titleText:TextField
private var numbersText:TextField
private function init (): void {}
titleText = new TextField;
numbersText = new TextField;
containerSprite = new Sprite;
containerSprite.addEventListener (MouseEvent.CLICK, containerClicked)
s = new shape;
containerSprite.addChild (s)
holder.addChild (containerSprite)
holder.addChild (titleText)
holder.addChild (numbersText)
slideView = new SlideShowView (containerSprite);
slideModel = new SlideShowModel;
textView = new SlideShowTextView (titleText, numbersText);
slideView.model = slideModel;
textView.model = slideModel;
slideModel.addEventListener (Model.MODEL_CHANGE, dataChanged);
slideModel.load (req);
titleText.x=0//containerSprite.x
titleText.y=500//containerSprite.y+containerSprite.height+10
numbersText.x=500//containerSprite.x+containerSprite.width-100
numbersText.y = titleText.y
}
private void dataChanged(event:Event):void {}
trace ("width =" + containerSprite.Width)}
private void containerClicked(event:MouseEvent):void {}
slideModel.setCurrentIndex(slideModel.currentIndex+1)
}
[]] >
< / mx:Script >
< mx:UIComponent id = 'holder' horizontalCenter = "-250" / >
< / mx:Application >You'll have to catch the Event.COMPLETE of each Image
Alex Harui
Flex SDK Developer
Adobe Systems Inc..
-
Is it possible to get a list of the refnums all ActiveX objects loaded into memory?
Specifically, I want to programmtically save and close an open excel workbook which has not yet been registered and I don't know the name of. LabVIEW.
I know how to manipulate the workbooks I open from a saved location, but don't know how to take any workbook is open on my computer and save it to a known location.
Thank you!
I saw this post and thought it might be a similar method for ActiveX objects to vi:
DaveRines wrote:
Specifically, I want to programmtically save and close an open excel workbook which has not yet been registered and I don't know the name of. LabVIEW.
I know how to manipulate the workbooks I open from a saved location, but don't know how to take any workbook is open on my computer and save it to a known location.
Thank you!
I saw this post and thought it might be a similar method for ActiveX objects to vi:
This should work:
If you want to change the path or to have more control over the options, you can replace '_Workbook/Save' method with
In this case, if you want to avoid pop-ups, make the 'Visible' and 'DisplayAlerts' FALSE properties when you open the Application in the first node of ActiveX
-
Data filtering of the subsidiary ledger which are loaded into the tables of BAW of EBS
Hi all
Thank you for taking the time to read this post.
Environment
Applications of Oracle's BI 7.9.6 (financial and analytical project)
Oracle E-Business Suite 11.5.10
Question
I would like to be able to filter the source EBS 11.5.10 (mainly by the operational unit) that are loaded in the BAW. I've implemented financial analytics and project analytics and to the departure I intended according to the instructions described in the documentation of Oracle Oracle BI Configuration Guide Applications for Informatica PowerCenter section 5.2.2.4 users how to specify the great book or series of books for which GL Data is extracted, but then realized that it wasn't relevant to the General Ledger and would not impact the subsidiary ledgers.
I want to filter a (large) special operational unit (org_id) whose business do not want to include in their BI reporting at this stage.
Is it possible to do easily thanks to the configuration? I don't really want to be change all workflow or deletion at the .rpd level.
I can implement security OU_ORG to limit the data that end users have visibility to display, but my goal is not to fill the BAW tables withthis data in the first place (mainly as a result of the quality of the data volumes and data) which are perform my execution Plans.
Kind regards
Gary.Gary, this can be done by a simple configuration. For the moment, this done as a customization. Basically, you need to add a filter to the mappings of extract (SDE) that you want to limit the data.
-
When I save the changes to the hair using the tool change the geometry in a file .fuse on the computer. These changes are lost when I load the model to the fuse. Is this a bug?
Saved to disk:
Reloaded in fuse:
Post edited by: Allan Chaney I've included screenshots.
Thank you much for the details. I tested it on Windows and Mac and reproduced. Doesn't seem to be a bug (but not a guarantee). I've done some characters, recorded their soft-mod-ness very well. I connected with the engineers for more tests and we will have fixed as soon as possible!
-
I can't find the videos I want to import into Photoshop CS5
Hi all! I can't seem to import videos in Adobe Photoshop CS5 Extended, all the videos I have on my computer have a wmv format. Whenever I run PSCS5, these are my steps: file > import > video layers images, but when I click on the folder I put my videos in, no videos appear in this folder. I have the latest version of QuickTime installed on my pc. I am using windows vista and my pc is HP. Thank you in advance.
Silkrooster is correct. WMV is not a QT CoDec / Format is not compatible with the legacy AVI handler. You must convert it into another program first before being able to use it in PS. something VirtualDub for Adobe Media Encoder...
Mylenium
-
How can I find the width of my button at run time?
In my application, button labels change at run time and they are changing width, I usually know what the new width of the button when his label was changed, how can I get it?
This method works. It seems that until creationComplete width is not accessible.
-
difficulties to find the blocker, I need to get into the aarp vita
I am away from my wifi I have an another internet but pop up blockers prevent their impossible help of blockers fing the meeting happens
Hello
What exactly are you trying to accomplish?
Please provide more specific information on the matter and correct error messages. This could help us help you better.
The following articles contain information on Blocker:
Internet Explorer Pop - Up Blocker: frequently asked questions
http://Windows.Microsoft.com/en-us/Windows7/Internet-Explorer-pop-up-Blocker-frequently-asked-questions
Internet Explorer Add-ons: frequently asked questions
http://Windows.Microsoft.com/en-us/Windows7/Internet-Explorer-Add-ons-frequently-asked-questions -
I can't find the library of Photos to import into Lightroom 6 apples.
In the sources of importation on LR6, there no pictures option to select. I had the opening, then imported this photo library a few weeks back. Hated the photo and now wants to use LR6. But no Photos available for import library... Any ideas?
Hello
You can export your photos from the Photos app. There is a point under file - export - export original unmodified. After that you can import them from the file system in LR.
Kind regards
Daniel (from Switzerland)
-
find the width of the stage of a class
I know that this should be simple, but for some reason, it does not...
I want to create a 'Square' class that will automatically bounce back on the "walls" (edge of the stage), so he needs to know the dimensions of the stage to do this. But using of Stage.stageWidth or one of a dozen other things I've tried just does not work.
The error I get is:
TypeError: Error #1009: cannot access a property or method of a null object reference.
to Square()
at SquareTest()
My code is less to-if anyone can help, that would be much appreciated!Its Stadium, no stage
stage.stageWidth -
How to find the absolute position of the end of the text, it can be one or more,
How to find the absolute position of the end of the text, it can be one or more,
in the position I need to inseart the image of the size of the font that it friendly ordinary view sequiential - image as custom image
Please help us find the position of the text, and even for a function more, I demanded the conclusion the text length
I want to do we will be right and the other will be left how I can I align is their way to find the width of the label or text?
Thank you
This should help align your labels layouts, depending on what you did you do could go with absolute layout, docking station or stack (allows you to align the top to bottom or left to right)
I'm not too sure that everything, however, to determine the length of the text, I would think that you could store the text in a string and then somehow programmatically count each letter & do return a result... not exactly on how to do it but it's an idea
-
Possible to find the vertical height
Hi all
Is it possible to find the vertical height of the character.
1. without using to create the concept of contours
2. to find the width, we use (app.selection [0] .endHorizontalOffset - app.selection [0] .horizontalOffset)
3. to find the height?
Thanks in advance
Siraj
N ° Moreover, endHorizontalOffset etc. is not as precise as outlines. He
you will add left and right character encompassing, but not the
right and left edge real visible.
-
Here's what I do. My main timeline includes 3 "pages/mc. One is called index, which is just the basic design. The other is called ssfp_mc. Ssfp_mc has a loader_mc that loads external SWF in the 'content' section.
Here's the problem:
In the external swf that is loaded into the loader_mc, there is an another content_mc which contains 3 things:
1 us.
2. dynamic text (scrolling)
3 buttons to control the scrolling
When the external swf file is loaded to the dynamic text does not appear. The border comes and buttons appear, but the text is empty.
I have therefore two .fla files ssfp.fla and ssfphome.fla (external swf). When I saw the ssfphome.fla the movie plays correctly and my text is there. It is only when I saw the ssfp.fla and load ssfphome.swf as the text disappears.
Can someone help me please?
Thank you
nofx1728I got it to work! Yippy. I forgot to include the police. Thanks for your efforts. I really appreciate it.
Thank you
nofx1728
-
I use InDesign CC 2015 to a new intall of creative cloud on a new hard drive after the old one crashed. I always have access to my files on the old HARD drive and you have copied most of my files on the new drive. When I go to print in InDesign, the program seems to know what settings of the printer, I used on files that I created, but I don't see no presets. When I go to load the application InDesign presets where I should look to load the files .prst and that's what I want to know. They are on the local drive? If yes where? They are on the cloud in my Adobe account where I have my cloud files? I will keep searching my computer, but if someone knows the answer, please help.
Printer presets are stored in the InDesign Defaults, a part of the whole of the preferences file. You should open the ID on the old system and then click on the dialog box define where you can select them and click on save, and then on the new system, you can load the game that you just saved.
Maybe you are looking for
-
Can I find out if a track is stereo?
V.12.3.2.35 iTunes, can I know if a track/song is stereo or mono? I tried "Get Info" but I can't find a tab in this regard. Thank you for your suggestions.
-
Access QosmioPlayer and HDD on Qosmio F20
Hello! I just bought a laptop Toshiba Qosmio F20 and I'm very satisfied with it, except that I can't browse and play the media files on my hard drive. There are versions of Qosmio Player - original or modified - that come with this feature, which all
-
Windows XP Home Edition does not load in any mode after reboot to uninstall Norton
I wanted to get rid of Norton anti-virus, then, I have downloaded and run the Norton Uninstaller. After what seemed an eternity he finished and asked me to restart the computer to complete the uninstalation. I clicked the botton "Restart now" and aft
-
update of the dv6t-7000 bios that sucks
Board of Directors of system-181E BIOS Version - F.29 Unfortunately I have updated my BIOS even though it was working fine. Now, the CPU never goes in turbo mode and rarely even tops out at he rated speed. Programs are slower to load and every thing
-
How do I Duplex for a MAC OSx Mountain Lion HP C4795
Unable to find the option. Is it supported?