Flashblocks Flash CMS
Welcome, Guest
Please Login or Register.    Lost Password?
How to give a flashblock a dynamic scale? (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: How to give a flashblock a dynamic scale?
#3859
spaceman ()
User Offline Click here to see the profile of this user

 
How to give a flashblock a dynamic scale? 7 Months, 3 Weeks ago
hi!
would be great if anybody could help me or give me an idea with dynamically scaling the flashblock height without scaling the content loaded(in my case a text field which should have its myTXTflashblock._height=Stage.height)


here comes the code:
Code: :

 lstrn = new Object(); lstrn.onResize = function() {inhalt0.HOMESITE.NEWS._height Stage.height-240;}



i'm not sure if this will work at all but the basic idea was to set a listener for onRezize, and if Stage.height has changed it should be same height for the flashblock - so the question is :
why will it resize/scale the text in the field itself and how do i get it running that way, that only a text.length>=stage height will enable the scrollbar function otherwise scrollbars would be disabled?
or do i have to add enable/disable-function seperately in the text module? not sure anymore what to do. i'm bit confused cause my experiments show me a working file flashblock with text but it resizes the fontsize itself too ...

thx for help in advance:)
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/01/19 14:18 By spaceman. Reason: tryed out something and want to tell also^^
  The administrator has disabled public write access.
#3864
admin ()
User Online Now Click here to see the profile of this user
Flashblocks Birthdate: 2005-02-14
 
Re:How to give a flashblock a dynamic scale? 7 Months, 2 Weeks ago
If we are talking about Flashblocks 1 - Developer and basic, then you can attach a flashblock with attachMovie and set it's width and height.
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/01/20 17:37 By admin.
  The administrator has disabled public write access.
#3867
spaceman ()
User Offline Click here to see the profile of this user

 
Re:How to give a flashblock a dynamic scale? 7 Months, 2 Weeks ago
thx , will try it out :)
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#3891
spaceman ()
User Offline Click here to see the profile of this user

 
Re:How to give a flashblock a dynamic scale? 7 Months, 2 Weeks ago
thx for the answer about attaching movie clip via actionscript. that works now for me.
i'm able f.ex. to attach a flashblock nested in mcNews , (mcNews uses linkage-identifier news)

when doing so all will be displayed fine,100%scale.

My basic script added to the onResize-script looks like this

Code: :

  Stage.scaleMode "noScale"; Stage.align "TL"; lstrn = new Object(); lstrn.onResize = function() { news._height=Stage.height-100}; Stage.addListener(lstrn); lstrn.onResize(); attachMovie("news","news",100); news._x=100 news._y=100


lstrn.onResize = function() {...this is part i'm unsure about...};

when a onResize happends my created instance should not resize the fontsize as it does yet , i want it only to add or subtract height of the textfield depending on the calculated stage.height. -
if there is enough height it should be displayed without scrollbars.
if user turns browserwindow in smaller scale the textfield should be displayed and recalculate the textfields and the scrollbars height.
This is what i wanted to do, but by now my script only rescales the news instance AND the fontsize of my textblock.(f.ex. with resizing browserscale, at a height=300 fontsize goes 5 or 6,with heights 700+ it gets a 16+ font and bigger...can't i have a one sized font that way?) i can add a screen if that helps to understand the problem...

Could it be that i have to add code anywhere into the scrollbarscripts or the cmsOBJ scroll sys?do i have to change txtbox._height f.ex?
Or is there a trick getting this to work anyhow?


thanks for sharing your time with my problem, you may faster know what to do :)
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/01/23 17:45 By spaceman. Reason: correctiong my wrong selected words to come closer to the point
  The administrator has disabled public write access.
Go to top Post Reply
get the latest posts directly to your desktop

Thank you