473,395 Members | 1,442 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

flash problem

107 100+
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!
Aug 15 '07 #1
3 1712
xNephilimx
213 Expert 100+
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!
Aug 16 '07 #2
theS70RM
107 100+
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
Aug 16 '07 #3
xNephilimx
213 Expert 100+
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 ExternalInterface class.
With the ExternalInterface 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: allowScriptAccess (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 ExternalInterface, 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
Aug 16 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
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:...
9
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...
2
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...
1
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:...
115
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...
5
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...
8
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...
3
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...
1
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...
4
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...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
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,...
0
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...
0
tracyyun
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.