Relative Sizes on HTMLTEXT on FLASH
Hi
I have a problem suing relative sizes on a HTMLtext on FLash
I create the the textArea i set the size and everything if I
do it by
actionscript everything works fine except when i setup the
htmltext, the
text disspears so I need to re-set the embeded font with:
myTextFormat.font = Varfont;
textBox.embedFonts = true;
textBox.setTextFormat(myTextFormat);
But using this lines I lose the previous size. that i
assigned before when i
created the textarea. And goes to a standard size... dont
know why, i am
using a different TextFormat.....
And If i want to use the size i was using , all the text
becomes the same
size (but is the size that I want)...
If I create the text area manually using the gui, it works
well.
¬_¬
>-------------------------------------------------------------------------------------<
The main problem is... why the the text dissapears when i set
a new html
text???
>-------------------------------------------------------------------------------------<
Thanks.
1. Really there are a few functions that i skiped yesterday:
3. The font is linked and embeded in library.
public function setHTMLText(texto:String):Void {
textBox.html = true;
textBox.htmlText = texto;
public function setEmbedFont(__font) {
_font = __font;
_embed = true;
setTextStyle(__font);
public function setTextStyle(__font:String, __bold:Boolean,
__underline:Boolean, __italic:Boolean) {
var myTextFormat:TextFormat = new TextFormat();
myTextFormat.font = _font;
textBox.setTextFormat(myTextFormat);
public function setTextSize(__size:Number) {
var myTextSize:TextFormat = new TextFormat();
myTextSize.size = _size;
textBox.setTextFormat(myTextSize);
Kind of constructor:
autotext_txt.setTextSize(20);
//1 if I activate this one the text will dissapear after
asigning a new
text. And I will need to apply the embed font again.
autotext_txt.setEmbedFont("Arial2");
autotext_txt.setHTMLText(This is a text (big text) | <font
size="-5"
color="#dddddd"> Small Text</font>');
autotext_txt.setEmbedFont("Arial2");
Why dont u have a try?
Thanks,
J
"kglad" <[email protected]> escribió en
el mensaje
news:elo6bk$pu3$[email protected]..
> 1. where's Varfont defined?
> 2. htmtext should be htmlText.
> 3. have you defined a linkage id for a library font?
Similar Messages
-
Problem using relative sizes on a HTMLtext
Hi
I have a problem using relative sizes on a HTMLtext on Flash
ActionsScript
2.0
Something like:
htmltext= '<font size="+5">TITLE</font>Text
Praragraph...'
(+5 in normal HTML means is 5 points bigger than the standard
text.)
I create the the textArea i set the size and everything if I
do it by
actionscript everything works fine except when i setup the
htmltext, the
text disspears so I need to re-set the embeded font with:
myTextFormat.font = Varfont;
textBox.embedFonts = true;
textBox.setTextFormat(myTextFormat);
But using this lines I lose the previous size. that i
assigned before when i
created the textarea. And goes to a standard size... dont
know why, i am
using a different TextFormat.....
And If i want to use the size i was using , all the text
becomes the same
size (but is the size that I want)...
If I create the text area manually using the gui, it works
well.
¬_¬
>-------------------------------------------------------------------------------------<
The main problem is... why the the text dissapears when i set
a new html
text???
>-------------------------------------------------------------------------------------<
Thanks.1. Really there are a few functions that i skiped yesterday:
3. The font is linked and embeded in library.
public function setHTMLText(texto:String):Void {
textBox.html = true;
textBox.htmlText = texto;
public function setEmbedFont(__font) {
_font = __font;
_embed = true;
setTextStyle(__font);
public function setTextStyle(__font:String, __bold:Boolean,
__underline:Boolean, __italic:Boolean) {
var myTextFormat:TextFormat = new TextFormat();
myTextFormat.font = _font;
textBox.setTextFormat(myTextFormat);
public function setTextSize(__size:Number) {
var myTextSize:TextFormat = new TextFormat();
myTextSize.size = _size;
textBox.setTextFormat(myTextSize);
Kind of constructor:
autotext_txt.setTextSize(20);
//1 if I activate this one the text will dissapear after
asigning a new
text. And I will need to apply the embed font again.
autotext_txt.setEmbedFont("Arial2");
autotext_txt.setHTMLText(This is a text (big text) | <font
size="-5"
color="#dddddd"> Small Text</font>');
autotext_txt.setEmbedFont("Arial2");
Why dont u have a try?
Thanks,
J
"kglad" <[email protected]> escribió en
el mensaje
news:elo6bk$pu3$[email protected]..
> 1. where's Varfont defined?
> 2. htmtext should be htmlText.
> 3. have you defined a linkage id for a library font? -
Swf increase size mystery publishing into Flash 8 and Flash CS4
Hello,
i discovered recently that a swf build with Flash 8 IDE, published for Flash Player 8 get a different size when published with Flash CS4 IDE.
You can reproduce that effect with all sort of swf.
I did a report for each publish (same .fla into Flash 8 IDE and Flash CS4 IDE)
The result was : all vector graphics, all fonts, all bitmaps, all actionscript code increased
From test.fla, i did one key frame with :
- a dynamic TextField with some simple chars in it = "Test Chars",
- a simple shape with brush tool
- and one movieclip with an ordinary circle
Size report from Flash 8 :
test.swf Rapport sur l'animation
Image # Image octets Total octets Séquence
1 14419 14419 Séquence 1 (Image d'exportation des classes AS 2.0)
Séquence Forme octets Texte octets ActionScript octets
Séquence 1 86 132 0
Symbole Forme octets Texte octets ActionScript octets
clip_circle 69 0 0
Nom de la police octets Caractères
Arial 14056 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxy z{|}~ˆ˜–—‘’‚“”„†‡•…‰‹›€™
Size report from Flash CS4 :
test.swf Rapport sur l'animation
Image # Image octets Total octets Séquence
1 18932 18932 Séquence 1 (Image d'exportation des classes AS 2.0)
Séquence Forme octets Texte octets ActionScript octets
Séquence 1 103 174 0
Symbole Forme octets Texte octets ActionScript octets
clip_circle 91 0 0
Nom de la police octets Caractères
ArialMT 18467 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxy z{|}~ˆ˜–—‘’‚“”„†‡•…‰‹›€™
Does somebody knows something about this strange phenomen ?Didn't look at the file size of the FLA, just the SWF as I didn't even necessarily resave the CS4 as CS6. No edits were made, I tried it with a simple open and publish just to make sure I wasn't doing anything to change the file and the resulting file was heavier (kb).
I looked through the size reports and saw that while image compression was better in the CS6 version, the fonts were all heavier than they were in the CS4 version and this put it over the 40kb limit. -
Why is audio file size larger than in Flash?
I use both Flash and Captivate. Final file size is a big consideration. I wondered why the file size of the audio in Captivate is almost twice as large as the same audio if it's used in Flash. I'm using the same audio settings for both. Does anyone know what causes the audio compression to be different in Captivate than in Flash?
OK, sounds like memory will be fine, so let's look at some other stuff...
Is it only one particularly keynote presentation that slows up for you, or does keynote behave in the same way even if you start from scratch and create a new presentation?
If it's just the one presentation then there's probably some content (possibly video) within it that KN takes exception to. Sometimes a single problematic slide or piece of content can slow down the whole app.
Is the problematic presentation one that was imported from Powerpoint? If so, import it again and look carefully at the import error/warning logs.
Before you start keynote, start up activity monitor - which will give you an indication of what programs are using all the CPU/memory/disk bandwidth etc. You'll then have an idea of whether it is KN maxing out on CPU or whether anything else is dragging the system down.
Another thing you could try would be to log in to a different user account on your machine (create one if necessary) and then try opening the presentation from within this different account. If this works for you then it suggests a problem with the keynote plist file in your original user account.
I don't know if it'd be acceptable to you, but if you could post a link to your problematic presentation then I could download it and try it out on my normally reliable Keynote on one of my computers. (Make sure that you've ticked the box to embed all media in the presentation)
Hope some of this is helpful,
Mike. -
Scroll bar not showing relative size correctly
I'm not sure of the correct terminology so please bear with me. In CS4 when I zoomed in on an image, the bar at the bottom would show the size of the image now on screen relative to the full size. i.e. if I go from 50% to 100% the bar would be half the size indicating that I am only seeing half the image. At least I think that was the case in CS4.
Here's and example from CS6.
Open an image, choose "Command-0" to make it fill the window, and the percentage is 48.16%. The bar at the bottom is not there, but if it was I assume it would fill the width of the window.
I select "Command-+" to zoom in, and the percentage goes to 50%. The bar now fills about 30% of the window width indicating that I have zoomed in a whole lot, but I haven't. There is only a little bit of image on either side not visible, the rest is a huge grey area extending left right, and up and down.
How do I make the bar indicate the true amount of zoom, and how do I get rid of that grey area?Yes, it's working as designed.
There's a feature called "overscrolling" which allows you to scroll past the edge of the document, and it's only available when the document is larger than the displayable area. You'll see it work if you zoom an image to be *just* larger than your space and use the (what seems like too-short) scroll bar.
This inconsistency, between when the document will all fit in the displayable area, and when it exceeds the space, is the real root of the problem.
People have complained about this for a long time, and Adobe doesn't listen. Thing is, some folks would like to be able to scoll or pan to offset an image that DOES all fit so as to be able to comfortably sketch on the edge - or for whatever reason. That would make it more consistent.
Here's a reproduction of the problem, and scroll of the image that's slightly bigger than the window to illustrate:
Here the image all fits - no scroll bars:
Here the image has been zoomed in a little more - the scroll bars have appeared and are about 1/3 the size of the image:
Here the image has been scrolled almost to the limit of the horizontal scroll bar:
It's working as designed. That doesn't mean the design is right,
-Noel -
Still not supporting relative size of objects?
Hi everybody!
Am I blind? Just downloaded and installed iWork '09, hoping they added the possibility to adjust the size of objects like pictures in a relative manner, finally.
Let's say, you have some screenshots for creating a documentary. All of different sizes. You want all of them to appear in your Pages document at 50 % of their original size. How can you manage this? I still didn't find a way for this simple task.
Have I really to use Word for Pages can't help me with this?
Regards,
OlafApple deliver with the operating system several scripts allowing us to manipulate our pictures.
Here is one of them edited to divide the pictures dimensions by two.
--[SCRIPT Half_size}
property done_foldername : "Reduced Images"
property originals_foldername : "Original Images"
property newimage_extension : "jpg"
-- the list of file types which will be processed
-- eg: {"PICT", "JPEG", "TIFF", "GIFf"}
property type_list : {"TIFF", "GIFf", "PNGf", "PICT", "JPEG"}
-- since file types are optional in Mac OS X,
-- check the name extension if there is no file type
-- NOTE: do not use periods (.) with the items in the name extensions list
-- eg: {"txt", "text", "jpg", "jpeg"}, NOT: {".txt", ".text", ".jpg", ".jpeg"}
property extension_list : {"tif", "tiff", "gif", "png", "pict", "pct", "jpeg", "jpg"}
on adding folder items to this_folder after receiving these_items
tell application "Finder"
if not (exists folder done_foldername of this_folder) then
make new folder at this_folder with properties {name:done_foldername}
end if
set the results_folder to (folder done_foldername of this_folder) as alias
if not (exists folder originals_foldername of this_folder) then
make new folder at this_folder with properties {name:originals_foldername}
set current view of container window of this_folder to list view
end if
set the originals_folder to folder originals_foldername of this_folder
end tell
try
repeat with i from 1 to number of items in these_items
set this_item to item i of these_items
set the item_info to the info for this_item
if (alias of the item_info is false and the file type of the item_info is in the type_list) or (the name extension of the item_info is in the extension_list) then
tell application "Finder"
--set name of this_item to "YK#" & (text -4 thru -1 of ("0000" & i))
my resolveconflicts(thisitem, originals_folder, "")
set the new_name to my resolveconflicts(thisitem, results_folder, newimage_extension)
set the source_file to (move this_item to the originals_folder with replacing) as alias
end tell
processitem(sourcefile, new_name, results_folder)
end if
end repeat
on error error_message number error_number
if the error_number is not -128 then
tell application "Finder"
activate
display dialog error_message buttons {"Cancel"} default button 1 giving up after 120
end tell
end if
end try
end adding folder items to
on resolveconflicts(thisitem, target_folder, new_extension)
tell application "Finder"
set the file_name to the name of this_item
set file_extension to the name extension of this_item
if the file_extension is "" then
set the trimmed_name to the file_name
else
set the trimmed_name to text 1 thru -((length of file_extension) + 2) of the file_name
end if
if the new_extension is "" then
set target_name to file_name
set target_extension to file_extension
else
set target_extension to new_extension
set target_name to (the trimmed_name & "." & target_extension) as string
end if
if (exists document file target_name of target_folder) then
set the name_increment to 1
repeat
set the new_name to (the trimmed_name & "." & (name_increment as string) & "." & target_extension) as string
if not (exists document file new_name of the target_folder) then
-- rename to conflicting file
set the name of document file target_name of the target_folder to the new_name
exit repeat
else
set the name_increment to the name_increment + 1
end if
end repeat
end if
end tell
return the target_name
end resolve_conflicts
-- this sub-routine processes files
on processitem(sourcefile, new_name, results_folder)
-- NOTE that the variable this_item is a file reference in alias format
-- FILE PROCESSING STATEMENTS GOES HERE
try
-- the target path is the destination folder and the new file name
set the target_path to ((results_folder as string) & new_name) as string
with timeout of 900 seconds
tell application "Image Events"
launch -- always use with Folder Actions
set this_image to open file (source_file as string)
scale this_image by factor 0.5
save this_image as JPEG in file target_path with icon
close this_image
end tell
end timeout
on error error_message
tell application "Finder"
activate
display dialog error_message buttons {"Cancel"} default button 1 giving up after 120
end tell
end try
end process_item
--[/SCRIPT]
If you don't know the way we use that, enter the Finder's Help and search for "folder action".
Yvan KOENIG (from FRANCE vendredi 16 janvier 2009 20:26:11) -
Hitting a specific file size when exporting from Flash CS5
I need to export three banners to .swf from flash and they all need to be under 61K. They all use photographs and are 5-7 seconds long each and the dimentions are 300x250 px, 300x600 px & 728x90 px. Is there any way I can put in the specific file size in the program and make it under 61k? I tried using the publish settings and lowering the quality and even at 40% quality the file size only went down 20KB from 147 to 127. If you cannot do that in the program is there any third party programs that can be used to do this? Thanks for your help!
What you should do is set the Publish Settings to generate a size report. That way you will have a detailed listing of what each element of the design contributes to the file weight. I would guess that the images are going to be the heavy hitters, so you might need to use image software to optimize them as much as possible before importing them into Flash.
-
Captivate 3 is wrong size when importing into Flash CS3
I've tried exporting, publishing etc. and no matter how I
try, when I import into Flash CS3 the size of the Captivate content
(background screens, in particular) are too small. For example, I
captured a 423x424 area for my Captivate project. When I import
into a Flash CS3 project with the same dimensions the Captivate
content (screens) are more like 203x203.5 and the mouse path and
slide context starting positions are upper left corner. I've tried
adjusting some of the importing settings but can't get the screens
the right size unless I resize each one manually - and I have
around 100. Any help greatly appreciated!
-ScottI am using captivate 3 and I get an error whenever I try to
export to flash cs3. unknown error.
why the hell doesnt Adobe say that flash is required to
export to flash BEFORE I buy the software? I am using my pc for
captivate, but am primarily mac based and was going to edit in
flash on my mac. but captivate didnt allow for me to export to
flash at all without any kind of flash installed. I installed a
demo version of flash, but the export is coming up with an error.
any ideas out there? adobe??? I'm currently using vista OS.
thanks in advance. r -
Saving keyframe size settings when opening Flash CS3
Is there any way within Flash CS3 that allows the default
size settings for the keyframes within the timeframe from the
standard "Normal" to another size, such as "Medium"?
Screenshot
of keyframe settings in Flash CS3
I would love it if Flash CS3 allowed you to save a certain
size as a default setting so that you didn't have to constantly
adjust this info every time you opened up a .fla file.
Yeah - I know - it's pretty minor in the grand scheme of
things, but still would be nice.
Thanks -
KevinI haven't been clicking things fast. It happens when I try to save. It's not random. I've spent a decent amount of time on google and haven't found a solution. There are a lot of results about freezing and crashing, but I haven't found any on freezing due to saving.
I know it should be fine, but that's what's weird about it. It shouldn't be freezing like this and it's at a point where it's not something I can ignore. -
Htmltext in flash actionscript3.0
hi
below is my simple code
import flash.text.TextField;
var labelText:String='<p>this is first text <img src="https://www.paypal.com/en_GB/i/btn/btn_buynowCC_LG.gif" id="paypal_button"> this is last text</p>';
var label:TextField = new TextField();
label.border=true;
label.multiline=true;
label.wordWrap=true;
label.width=800;
label.height=300;
addChild(label);
label.htmlText=labelText;
o/p
so my problem is my image always goto new line... i's not coming in text line (indicate red arrow), so what i do? i want image and text one line...
help pls
thnxagain not a perfect way to do this, there is probably a better way with regex but its beyond me
will separate the string you have given into its parts
it doesn't remove leading spaces
and it doesn't work with < img only <img
var imgTag:String = "<img";
var endTag:String = "/>";
var str:String = "this is text <img src='image.png' /> this is test text <img src='image2.png' /> this is last text <img src='image3.png' /> end line"
var results:Array = [];
var currentIndex:int = 0;
while (currentIndex < str.length)
var index:int = str.indexOf(imgTag, currentIndex);
if (index == currentIndex)
index = str.indexOf(endTag, currentIndex) + 2;
if (index < 0)
index = str.length;
var term:String = str.substring(currentIndex, index);
results.push(term);
currentIndex = index;
trace(results); -
Hi...
I have been consistently facing a serious problem regarding the firefox I use. It's Firefox 20.0.1. I use Windows 7 and I have 8 gb of Ram.
The problem is after I launch Firefox two dialogue boxes appear in quick succession one telling that "svchost.exe has stopped working" and another is telling about "Adobe Flash Player 11.6 r602 has stopped working". The firefox immediately stops working and I have to use the task manager to close the program...even resort to restart the computer sometimes.
Please tell me solution applying which I can get out of this problem.
Thanks
SamTry updating to Flash 11.7, then Reset Firefox [[Reset Firefox – easily fix most problems]]
-
What can I do aout Adobe Flash Player blocking view of internet sites?
1. System Preferences > Other/ Flash Player > Advanced > Delete All
Press the "Delete All" button
Install Adobe Flash Player.
http://get.adobe.com/flashplayer/
Follow the prompts.
Quit Safari.
Restart computer. Relaunch Safari.
2. Allow Plug-ins
Safari > Preferences > Security
Internet Plug-ins > "Allow plug-ins"
Enable it.
Press " Manage Website Settings" button for more options. -
Not PR related, but related for some: Firefox and Flash
Sorry if this is the wrong forum (mods, please move to the correct forum if you want), but since there are many people around here who publish to the web, I thought I would share with you some problems I encountered with:
Windows 8 64 Enterprise
Firefox 18, and
Adobe Flash Player plug-in.
This is a terrible combination. After installing Flash Player, Firefox often comes to a halt, not responding anymore and the only solution is a complete removal of the Flash Player. This applies to all 10.x and 11.x versions of the Flash plug-in. In TaskManager or Process Explorer this weird behavior is shown as two instances of the plug-in running.
The remedy:
In Explorer, navigate to C:\Windows\SysWOW64\Macromed\Flash and open the file 'mms.cfg'. Add a single line:
ProtectedMode=0
to this file and save. Now restart Firefox and your problems have gone.Never noticed this behavior myself.
-
What is the maximum size of a .swf flash file that can be created for DMM
Please help,
I am running DMM 5.2.1 and was wondering what is the maximum size of a .swf file that can be created and play SMOOTHLY on the screens (screen dimension 1366 x 768px).
Kind regards.Hi Nicholas,
You can refer to the content creation best practices documented at the following link:
http://www.cisco.com/en/US/docs/video/digital_media_systems/5_x/5_2/dmd/best/practices/guidelines.html#wp1168116
As you can read there:
- if the SWF file size is greater than 500KB, you may start to see high memory consumption on the DMP.
- regarding resolutions, the SWF can be up to 1920 x 1080 when animations within the SWF are small and are restricted to a 640x480 region.
Regards,
Marco -
Relative size of sga_max_size and sga_target to the physical memory
Dear Experts,
I have installed oracle 10.2.0.4 on AIX 5.3 with 32 GB of physical memory.
Let us say other applications on the server consume 10 GB of physical memory.
Now how should i plan the size of SGA_TARGET and SGA_MAX_SIZE on the same.As per Oracle® Database Performance Tuning Guide 10g Release 2 (10.2):
You must then divide the resulting memory between the SGA and the PGA.
For OLTP systems, the PGA memory typically accounts for a small fraction of the total memory available (for example, 20%), leaving 80% for the SGA.
For DSS systems running large, memory-intensive queries, PGA memory can typically use up to 70% of that total (up to 2.2 GB in this example).
Good initial values for the parameter PGA_AGGREGATE_TARGET might be:
For OLTP: PGA_AGGREGATE_TARGET = (total_mem * 80%) * 20%
For DSS: PGA_AGGREGATE_TARGET = (total_mem * 80%) * 50%
where total_mem is the total amount of physical memory available on the system.
(http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14211/memory.htm#i49320)
Maybe you are looking for
-
What to do if I have 2 apple ID's.How to use one and the other just as a email?
I have 2 apple ID's, an old moble me email and a new Apple ID using my Gmail How to use the new @gmail Apple ID as my primary and the @me.com just as an email?
-
I'm taking a computer class in college that requires Microsoft Office 2007. I would like to install it on my Mac, but I can't figure out how to do so. When I put the DVD rom in, it doesn't prompt me to install it. Thanks for the help
-
Itunes has no sound why on imac
I cannot get any sound from any of the podcasts on itunes
-
Hi: In KP06, i have there are fields like cost center(group) and cost element(group). I have created a cost center Canteen costs and have given it in KP06, i want to ask that in cost element field do i need to give cost element relevant to t
-
Hyperion Shared services Migration/Export import
Hi, We are migrating the OS from Windows to UNIX in Essbase System 9. I am trying to export the exixting grous/filter access from the Windows environment (shared services--Single sign on) to the unix server. There are several cubes in the Windows, bu