Hi, i've uploaded a project so you can see exactly my problem.... http://oini.com/dev/flash/index.html
the top bit of flash is the original, the second i have only altered the width parameters to be 100%. Please download the .fla file. THere are 2 layers, one with the animated bar on and one with the logo. I want only the background bar to stretch to the screen width and the text to remain the same scale! Ive tried using stage.scale = "noscale" in several ways but i am new to flash and struggling a bit.
Any help would be greatly appreciated.
Thanks!
3 1731
Hi, theS70RM.
The method for avoiding the movie to scale is Stage.scaleMode = "noScale";
It must be written that same exact way, because actionscript is case-sensitive.
I don't know why would you do that, just make the movie's width wider. There's no way to scale some elements and others not.
At least not with pure actionscript. Maybe passing parameters with javascript or something, if you can get a little creative.
Are you trying to make the with of the movie change under different screen resolutions?
Just let the movie scale or not scale at all, or get creative with some other alternatives.
Kind regards,
The_Nephilim
Hi, i've uploaded a project so you can see exactly my problem.... http://oini.com/dev/flash/index.html
the top bit of flash is the original, the second i have only altered the width parameters to be 100%. Please download the .fla file. THere are 2 layers, one with the animated bar on and one with the logo. I want only the background bar to stretch to the screen width and the text to remain the same scale! Ive tried using stage.scale = "noscale" in several ways but i am new to flash and struggling a bit.
Any help would be greatly appreciated.
Thanks!
Hi, theS70RM.
The method for avoiding the movie to scale is Stage.scaleMode = "noScale";
It must be written that same exact way, because actionscript is case-sensitive.
I don't know why would you do that, just make the movie's width wider. There's no way to scale some elements and others not.
At least not with pure actionscript. Maybe passing parameters with javascript or something, if you can get a little creative.
Are you trying to make the with of the movie change under different screen resolutions?
Just let the movie scale or not scale at all, or get creative with some other alternatives.
Kind regards,
The_Nephilim
ok, thanks. I was sure i had seen an example yesterday of exactly what i was trying to achieve but cant find it today! I will post it when i do though. Do you know can the canvas be dynamically resized? this may help me to get the exact effect i am looking for.
Cheers
If you find it in pure actionscript post it in this thread, that would be awesome.
And no, the Stage (if that's what you're meaning) can't be resized dynamically with actionscript, the width (and height also) property is read-only, so you can't change it's value.
You can try to resize it with javascript, but I don't think it's going to help much, because when the html object is larger than the swf the movie, if it doesn't stretch, leaves a wide margin at the left side.
But there's a workaround. With a JavaScript/ActionScript integration using the ExternalInterfa ce class.
With the ExternalInterfa ce you can communicate with JavaScript and it's really easy. You can make a javascript function to return the window's width and redraw the embed flash, and in flash you can make a function that depending on the window's width you adjust some movieclips. IMPORTANT: allowScriptAcce ss (in the embed element) must be set to "always" in order to communicate properly with JavaScript, or it won't work at all.
I'm thinking about writing an article about using the ExternalInterfa ce, if I do it, I'll post it in the flash articles forum.
Best regards,
The_Nephilim
ok, thanks. I was sure i had seen an example yesterday of exactly what i was trying to achieve but cant find it today! I will post it when i do though. Do you know can the canvas be dynamically resized? this may help me to get the exact effect i am looking for.
Cheers
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Gustav Medler |
last post by:
Hello,
there is a known problem with Opera and the execution of content shown
in <NOSCRIPT> tag.
Everythings works fine, if there is only one simple script like:
http://www.dr-wald.de/test/Opera-NOSCRIPT.html
Switching off Javascript will show the alternative content. Javascript
enabled will only show the JS-content, _not_ the <NOSCRIPT> content.
|
by: Keith Rowe |
last post by:
Hello,
I am trying to reference a Shockwave Flash Object on a vb code behind page
in an ASP.NET project and I receive the following error:
Guid should contain 32 digits with 4 dashes
(xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
On the aspx page I have the object tag as follows:
|
by: JIM.H. |
last post by:
Hello,
Our web site is developed by someone else and I see they used macromedia
flash player. Now sometimes on some computers the text in the flash do not
show up, and sometime it asks to download macromedia flash and it starts
showing the text. How does everyone else handle flash in their web sites, is
there any way we can force to download flash at the background?
Thanks,
|
by: dscriv |
last post by:
Hello,
I have Netscape 8.0.4 (in Firefox mode) and Flash 8.0.24.0.
I also have IE and Firefox installed.
If I go to this page, which contains a Flash detection movie:
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_15507
all three browers successfully run the Flash movie and show the same
version of Flash to be installed.
However, if I try to use a javascript Flash detection solution, it does
|
by: post2google |
last post by:
I was thinking about where to go for lunch the other day, so I went to
hardees.com to see what the menu looked like these days. What
comes up is a big note that my flash version is not new enough so I
can't use the site. What complete losers!
When are businesses going to understand that the purpose of a web
site is to communicate with customers or business parterns and NOT
so your "web master or "web engineer" can show off what they...
| |
by: JJ |
last post by:
Although this question involves Flash, I suspect the actual issue is an asp
one..
I am trying to open the web.sitemap file in an .swf file enbedded in an asp
page (I'm working in VS 2005).
I get an error in Flash when it trys to open this file using standard Flash
commands. However when I change the file name and command to 'Web.xml'
it works. (it also works if I don't change the name, but run the swf in
flash player and not via the...
|
by: Neo Geshel |
last post by:
Greetings.
BACKGROUND:
My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are
delivered as application/xhtml+xml for all non-MS web clients, and as
text/xml for all MS web clients (Internet Explorer).
My flash content was originally brought in via the “flash satay” method,
but I have since used some server-side magic do deliver one <objecttag
|
by: bdbeames |
last post by:
I have a menu on the right side of my page and a flash object in the center. When a certain option in the menu is select a sub menu pops and floats left. The problem is, depending on the browser and OS i.e.(firefix,ubuntu) the submenu is behind the flash. How can i fix this problem. I googled for the last day and the only thing I found was to put the flash in it's own div and set the z-index to -1. This solved nothing.
here is a copy of...
|
by: patronise |
last post by:
My problem is that I'm wrestling to make the LoadMovie and UnloadMovie functions work for me. Here is the layout of my flash file: I've got several seperate flash files and I can jump to any one of them by pressing a specific key to load another flash file. Here is the code I'm using for this bit:
Now when the next flash file is loaded, I use this bit of code to get rid of the previous flash file.
Now this does work in getting...
|
by: vijaypatidar |
last post by:
hi
i am using flash action script 3 for streaming video and audio via web cam and mice to flash media server.as all know that flash uses nellymoser audio codec for recording audio. i want to convert flash media server flv to 3gp for that i am using ffmpeg but after conversion i am getting audio video synchronization problem.
the problem is coming due to the nellymoser audio codec.
here anyone can suggest me right way to stream audio from...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |