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

 
Re:How to give a flashblock a dynamic scale? 10 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.
      Topics Author Date
    emo
How to give a flashblock a dynamic scale?
spaceman 2008/01/19 08:43
    thread link
thread linkthread link Re:How to give a flashblock a dynamic scale?
admin 2008/01/20 08:29
    thread link
thread linkthread linkthread link Re:How to give a flashblock a dynamic scale?
spaceman 2008/01/20 15:56
    emo
thread linkthread link Re:How to give a flashblock a dynamic scale?
spaceman 2008/01/23 17:37
Go to top Post Reply
get the latest posts directly to your desktop

Thank you